query_id
stringlengths
32
32
query
stringlengths
7
129k
positive_passages
listlengths
1
1
negative_passages
listlengths
88
101
ee815932888b9b849f0ce78033d4d804
String name, int red, int green, int blue
[ { "docid": "e29cf7cee5d15fd3681574144cba1c1d", "score": "0.0", "text": "abstract void bite();", "title": "" } ]
[ { "docid": "4783952d07642cd1c16c639d8d929840", "score": "0.7439239", "text": "String getColor();", "title": "" }, { "docid": "4783952d07642cd1c16c639d8d929840", "score": "0.7439239", "text": "String getColor();", "title": "" }, { "docid": "4783952d07642cd1c16c639d8d929840", "score": "0.7439239", "text": "String getColor();", "title": "" }, { "docid": "4783952d07642cd1c16c639d8d929840", "score": "0.7439239", "text": "String getColor();", "title": "" }, { "docid": "53f424e896113b8292b00e19e49fde83", "score": "0.7124121", "text": "public String getColor();", "title": "" }, { "docid": "53f424e896113b8292b00e19e49fde83", "score": "0.7124121", "text": "public String getColor();", "title": "" }, { "docid": "334594e407e02a5bf9d57db7facdceea", "score": "0.70506364", "text": "String get_color();", "title": "" }, { "docid": "f6d612d920f53dcd69135422933ab050", "score": "0.69621783", "text": "String color();", "title": "" }, { "docid": "203598c29509193de790e8f3e68c2706", "score": "0.6927446", "text": "String getColorAsString();", "title": "" }, { "docid": "131a8cd40026359b9eb746a65a087a12", "score": "0.68501925", "text": "protected int getColor (String name)\n {\n return getColor(name, _msgs, DEFAULT_BACKGROUND);\n }", "title": "" }, { "docid": "4bd86017b063cb05d7d0c418430e2cca", "score": "0.6846319", "text": "public String toString() {\r\n\t\treturn red + \" \" + green + \" \" + blue; \r\n\t}", "title": "" }, { "docid": "03e1ef18d5c58ab0615de1830273a273", "score": "0.68197596", "text": "@Override\r\n\tpublic String getColor() {\n\t\treturn \"blue\";\r\n\t}", "title": "" }, { "docid": "268294103039d7361fe15c3788885595", "score": "0.67459744", "text": "public Color getColor(int r, int g, int b);", "title": "" }, { "docid": "588a6bec3a6798d103f4015608e923bd", "score": "0.6736158", "text": "public abstract String getColor();", "title": "" }, { "docid": "f802c271ce8ec2e7e063f42bbe032f00", "score": "0.6703384", "text": "private void execute_color(Graphics g) {\n Token blue = operands.pop();\n Token green = operands.pop();\n Token red = operands.pop();\n g.setColor(new Color(red.getNumber(),green.getNumber(),blue.getNumber()));\n }", "title": "" }, { "docid": "20a24484a46a485d373e7a934fc9526b", "score": "0.66500777", "text": "void setColor(String value);", "title": "" }, { "docid": "a4c8d6bdae4c2780238f4c1b5791208b", "score": "0.6605149", "text": "int getColor();", "title": "" }, { "docid": "a4c8d6bdae4c2780238f4c1b5791208b", "score": "0.6605149", "text": "int getColor();", "title": "" }, { "docid": "3a2920eec9dc2797392e9279eee71f56", "score": "0.66009533", "text": "public String getColorText(){\n\t\tString name = \"\";\n\t\tif (color.equals(Color.red))\n\t\t\tname = \"RED\";\n\t\telse if (color.equals(Color.green))\n\t\t\tname = \"GREEN\";\n\t\telse if (color.equals(Color.blue))\n\t\t\tname = \"BLUE\";\n\t\telse if (color.equals(Color.black))\n\t\t\tname = \"BLACK\";\n\t\t\t\n\t\treturn name;\n\t}", "title": "" }, { "docid": "3cc9fef9782c3d4f5cff1c70f8b3122c", "score": "0.65590453", "text": "private static void testOne() {\n\t\tColorFactory colorFactory = ColorFactory.getInstance();\n\t\t\n\t\t/**\n\t\t * Get Red color.\n\t\t */\n\t\tColor red = colorFactory.getColor(ColorType.RED);\n\t\tred.drawColor();\n\t\t\n\t\t/**\n\t\t * Get Green color.\n\t\t */\n\t\tColor green = colorFactory.getColor(ColorType.GREEN);\n\t\tgreen.drawColor();\n\t\t\n\t}", "title": "" }, { "docid": "674c6c142adaed570a16341f2a0ad6b1", "score": "0.6526844", "text": "private Color getColor(String RGBparameter) \r\n\t{\r\n\t\tStringTokenizer st;\r\n\t\tString token;\r\n\t\tboolean flag=false;\r\n\t\tColor color = Color.black; \r\n\t\t\r\n\t\tString colorRGB = getParameter(RGBparameter);\r\n\t\t\r\n\t\tif (colorRGB!=null)\r\n\t\t{\r\n\t\t int red=0, green=0, blue=0;\r\n\t\t flag=false;\r\n\t\t st = new StringTokenizer(colorRGB, \",\");\r\n\t\t \r\n\t\t token = st.nextToken();\r\n\t\t if (token!=null && token.length()>0)\t\r\n\t\t \t{try {red = Integer.parseInt(token); } \r\n\t\t\t\tcatch(NumberFormatException e) \r\n\t\t\t\t{ flag = true; } \r\n\t\t\t if (red>255) red=255;\r\n\t\t\t if (red<0) red=0;} \r\n\t\t\r\n\t\tif (st.hasMoreElements())\r\n\t\t{ \r\n\t\ttoken = st.nextToken();\r\n\t\tif (token!=null && token.length()>0)\t\r\n\t\t\t{try {green = Integer.parseInt(token); } \r\n\t\t\t\tcatch(NumberFormatException e) \r\n\t\t\t\t{ flag = true; } \r\n\t\t\t if (green>255) green=255;\r\n\t\t\t if (green<0) green=0;} \r\n\t\t}\r\n\t\t\r\n\t\tif (st.hasMoreElements())\r\n\t\t{\r\n\t\ttoken = st.nextToken();\r\n\t\tif (token!=null && token.length()>0)\t\r\n\t\t\t{try {blue = Integer.parseInt(token); } \r\n\t\t\t\tcatch(NumberFormatException e) \r\n\t\t\t\t{ flag = true; } \r\n\t\t\t if (blue>255) blue=255;\r\n\t\t\t if (blue<0) blue=0;}\r\n\t\t} \r\n\t\t\r\n\t\tcolor = new Color(red, green, blue);\r\n\t\t}\r\n\t\telse \r\n\t\t{\tSystem.out.println (\"parametr \\\"\"+RGBparameter+\"\\\" for the color doesn't exist, using default...\");\r\n\t\t\tif (RGBparameter.equals(\"buttonColorRGB\")) color = new Color(110,250,110);\r\n\t\t\tif (RGBparameter.equals(\"panelColorRGB\")) color = new Color(154,209,183);\r\n\t\t\tif (RGBparameter.equals(\"fontColorRGB\")) color = new Color(0,100,100);\r\n\t\t}\r\n\t\t\r\n\t\tif (flag) \r\n\t\t{\tSystem.out.println(\"error in parameter \\\"\"+RGBparameter+\"\\\" (isn't it three numbers divised by commas?) using default...\");\r\n\t\t\tif (RGBparameter.equals(\"buttonColorRGB\")) color = new Color(110,250,110);\r\n\t\t\tif (RGBparameter.equals(\"panelColorRGB\")) color = new Color(154,209,183);\r\n\t\t\tif (RGBparameter.equals(\"fontColorRGB\")) color = new Color(0,100,100);\r\n\t\t}\r\n\t\t\r\n\t\treturn (color);\r\n\t}", "title": "" }, { "docid": "9d07422b2554c8dab00dd846485acfa5", "score": "0.6478224", "text": "public String displayColour();", "title": "" }, { "docid": "e70ee90f1f7a914831cdc85348dcbaee", "score": "0.64412016", "text": "public double fillColor(String red, String green, String blue){\n\t\tSystem.out.println(\"Figure.fillColor() parametros -> String red, String green, String blue\");\n\t\treturn 1;\n\t}", "title": "" }, { "docid": "7ab2566f959f4c43720a3539d52a41b0", "score": "0.64240265", "text": "String getColor(int index){\n return colores[index];\n }", "title": "" }, { "docid": "129a46a8a4e140c39c2ec8867dd305e3", "score": "0.64163405", "text": "ArrayString colors();", "title": "" }, { "docid": "58871e9dcce675adb3093a92b5ddd5d9", "score": "0.64062357", "text": "public void setColor(String color);", "title": "" }, { "docid": "58871e9dcce675adb3093a92b5ddd5d9", "score": "0.64062357", "text": "public void setColor(String color);", "title": "" }, { "docid": "58871e9dcce675adb3093a92b5ddd5d9", "score": "0.64062357", "text": "public void setColor(String color);", "title": "" }, { "docid": "8a57c2dee538114a5444294e6dc109d5", "score": "0.63927066", "text": "public static String toRGBString(int red, int green, int blue) {\n return \"rgb(\" + red + \",\" + green + \",\" + blue + \")\";\n }", "title": "" }, { "docid": "1b7ad0ea6c644695b8144e54baba229b", "score": "0.6390024", "text": "public String getColorLightString(){\n double r = (double) color.getRed()/255;\n double g = (double) color.getGreen()/255;\n double b= (double) color.getBlue()/255;\n\n return \"color rgb <\"+r+\",\"+g+\",\"+b+\">\";\n }", "title": "" }, { "docid": "f34c4af860146915886ba93154010077", "score": "0.6386623", "text": "public void setColor(String string) {\n\t\t\n\t}", "title": "" }, { "docid": "1bc22b39c46a5b5b3494e86df5b7221f", "score": "0.63619184", "text": "private Color setColor(int i){\n\t\tif(i < 2){\n\t\t\treturn Color.RED;\n\t\t}\n\t\telse if (i<4){\n\t\t\treturn Color.ORANGE;\n\t\t}\n\t\telse if (i<6){\n\t\t\treturn Color.YELLOW;\n\t\t}\n\t\telse if (i<8){\n\t\t\treturn Color.GREEN;\n\t\t}\n\t\telse return Color.CYAN;\n\t\t\n\t}", "title": "" }, { "docid": "d42ef5ea07964a4b195e6118c07f546c", "score": "0.6341821", "text": "private DashboardStatusColor(String n) {\r\n name = n;\r\n }", "title": "" }, { "docid": "c21eb58a5c557427fd59dd488a738f71", "score": "0.6336313", "text": "Color createColor();", "title": "" }, { "docid": "68e6ee092aad9dc84e10aa7a4e5bd6dd", "score": "0.63350135", "text": "public Color(int r, int g, int b) {\n this.red = r;\n this.green = g;\n this.blue = b;\n }", "title": "" }, { "docid": "d9467620945939748a4cc49a7529e6ee", "score": "0.632013", "text": "static function string GetTeamColoredName(string Name, int Team, optional bool bVIP)\n{\n // Filter existing color tags\n Name = class'Utils.StringUtils'.static.Filter(Name);\n // Green\n if (bVIP)\n {\n return \"[c=00FF00]\" $ Name $ \"[\\\\c]\";\n }\n // Blue\n else if (Team == 0)\n {\n return \"[c=0000FF]\" $ Name $ \"[\\\\c]\";\n }\n // Red\n return \"[c=FF0000]\" $ Name $ \"[\\\\c]\";\n}", "title": "" }, { "docid": "7dbb2dbf1238e0a774c87a05b7f35cc7", "score": "0.63109523", "text": "public void ColorDesign() {\r\n\t\tString Ausgewaehlt = \"Default\";\r\n\t\tColor Schwarz = new Color(0, 0, 0);\r\n\t\tString Blau = \"#1736E6\";\r\n\t\tString Rot = \"#E30302\";\r\n\t}", "title": "" }, { "docid": "bdb89abd06584bea1c0feaa3c69a27af", "score": "0.6308634", "text": "String getCharacterColor();", "title": "" }, { "docid": "91849bdb450f47f881273d4e992de40c", "score": "0.63009125", "text": "@AutoEscape\n\tpublic String getColor();", "title": "" }, { "docid": "a8c71abeb40da01a9251e16a416650c7", "score": "0.6289863", "text": "public void setColor(java.lang.String value) {\n this.color = value;\n }", "title": "" }, { "docid": "213e59b2e89ae80e619ef5d4c28f0138", "score": "0.6282798", "text": "public void setColour(int r, int g, int b ){\n colour = new Color(r,g,b);\n \n }", "title": "" }, { "docid": "6138c28045ca1c933df2170c5be9c61f", "score": "0.6271761", "text": "Color getColor();", "title": "" }, { "docid": "6138c28045ca1c933df2170c5be9c61f", "score": "0.6271761", "text": "Color getColor();", "title": "" }, { "docid": "6138c28045ca1c933df2170c5be9c61f", "score": "0.6271761", "text": "Color getColor();", "title": "" }, { "docid": "1f6bcdb5d78f70d73f0eec4292de5dd1", "score": "0.6265372", "text": "public String getColor()\n {\n return color; \n }", "title": "" }, { "docid": "36ef0e1a335e4f3929bc880735135865", "score": "0.6259454", "text": "public String toString() {\n return String.format(\"%d %d %d\", this.red, this.green, this.blue);\n }", "title": "" }, { "docid": "acbc054474b63c98be23cd92b5835ff0", "score": "0.62379694", "text": "public static void main(String[] args) {\n\t\tColor c1 = Color.RED; \n System.out.println(c1); \n\t\t\n\t}", "title": "" }, { "docid": "db575fa0362a338aef9fc778ba4f2f99", "score": "0.622798", "text": "Color getColor( );", "title": "" }, { "docid": "28f9ee5b97a698b2f0b0c92714cd42d0", "score": "0.6209219", "text": "public int getColor(){\n\treturn color;\n }", "title": "" }, { "docid": "5f69df0aa1cccd40855104dec852673d", "score": "0.6190091", "text": "public int getColor(){\n return color.ordinal();\n }", "title": "" }, { "docid": "352853e19f1a8bd3faf74733fff6cb50", "score": "0.618484", "text": "public void setColors(String c){\n color=c;\n }", "title": "" }, { "docid": "71774f8c0998a374bb74cdac9aa32a75", "score": "0.6184178", "text": "@Test\n public void testDynamicColour(){\n _painter.setColour(new Color(135,100,50));\n _painter.getColour();\n assertEquals(\"setColour java.awt.Color[r=135,g=100,b=50])getColour java.awt.Color[r=135,g=100,b=50])\",_painter.toString());\n }", "title": "" }, { "docid": "3b5b4db551932caa9f8c18e3d847ba74", "score": "0.6168982", "text": "public static void main(String args[]) {\n\n\n String s = Color.getValue(0).getDesc();\n System.out.println(\"获取的值为:\" + s);\n\n\n Color color = Color.valueOf(\"GREEN\");\n System.out.println(color.getDesc());\n\n Color.values().toString();\n\n\n Color s2 = Color.getValue(0);\n System.out.println(\"获取的值为:\" + s2.toString());\n\n// for Color.\n\n System.out.println( Color.values().length + \"\");\n\n }", "title": "" }, { "docid": "8db977b889ee7bec400de90b43b72162", "score": "0.6163802", "text": "private Color Color(int i, int i0, int i1) {\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\n }", "title": "" }, { "docid": "6cd3319e20a8e26efb599c1531ecd1b9", "score": "0.6152943", "text": "public Color getColor();", "title": "" }, { "docid": "6cd3319e20a8e26efb599c1531ecd1b9", "score": "0.6152943", "text": "public Color getColor();", "title": "" }, { "docid": "3b1bfd18724a558fec253ff9cb1633df", "score": "0.6152072", "text": "public Color getColor(String name) {\n return hashMap.get(name);\n }", "title": "" }, { "docid": "bf51dd239304a927ede7c58625560a95", "score": "0.6150528", "text": "public int getgreen() {return green;}", "title": "" }, { "docid": "9947c4005e9a5c91649063ec814ed58f", "score": "0.6144256", "text": "@Override\r\n\tpublic void color() {\n\r\n\t}", "title": "" }, { "docid": "2ee96a21974aa0a7ad0bbc78e06fdea5", "score": "0.6135741", "text": "public IColor set(int r, int g, int b, int a);", "title": "" }, { "docid": "7381c9413ef24d050dbc3d63860e5856", "score": "0.61236423", "text": "private void initializecolor(){\n for( int i=1;i<=10;i++ ){\n colourdatas[i] = new colourdata();\n }\n colourdatas[1].color=\"#32cd32\";colourdatas[1].colorname=\"Green\";\n colourdatas[2].color=\"#ff0000\";colourdatas[2].colorname=\"Red\";\n colourdatas[3].color=\"#1e90ff\";colourdatas[3].colorname=\"Blue\";\n colourdatas[4].color=\"#fa7305\";colourdatas[4].colorname=\"Orange\";\n colourdatas[5].color=\"#ffff00\";colourdatas[5].colorname=\"Yellow\";\n colourdatas[6].color=\"#553426\";colourdatas[6].colorname=\"Brown\";\n colourdatas[7].color=\"#030303\";colourdatas[7].colorname=\"Black\";\n colourdatas[8].color=\"#fa05ac\";colourdatas[8].colorname=\"Pink\";\n colourdatas[9].color=\"#a709f6\";colourdatas[9].colorname=\"Purple\";\n colourdatas[10].color=\"#555555\";colourdatas[10].colorname=\"Grey\";\n }", "title": "" }, { "docid": "384ebac76b0b8374b17bbb6f3bc38ead", "score": "0.6117086", "text": "void setColor(int color);", "title": "" }, { "docid": "9532ebbbf005562b78a733fbf4e3c503", "score": "0.61137336", "text": "private Color Color(int i, int i0, int i1, int i2) {\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\n }", "title": "" }, { "docid": "d90fc8acf5770c749d716aace412a04e", "score": "0.61070293", "text": "public HW02_Color (int R, int G, int B) {\r\n try {\r\n this.R = R;\r\n this.G = G;\r\n this.B = B;\r\n }\r\n catch (Throwable oError) {\r\n HW02_Utility.handleError(oError);\r\n }\r\n }", "title": "" }, { "docid": "6372b05e1dbd9c4579695646224d6c91", "score": "0.6106283", "text": "public static String makeColorDef(int r, int g, int b) {\r\n StringBuilder sb = new StringBuilder(40);\r\n sb.append('(').append(r % 256).append(\", \");\r\n sb.append(g % 256).append(\", \").append(b % 256).append(')');\r\n return sb.toString();\r\n }", "title": "" }, { "docid": "005fab70b2fd122c406b06f3e97e3a19", "score": "0.61062", "text": "public Color(int red, int green, int blue) {\n this(red, green, blue, 255);\n }", "title": "" }, { "docid": "52d9d57e1a515df0fdfb2f12ebc71ca9", "score": "0.61058086", "text": "public String getColor(){\n return color;\n }", "title": "" }, { "docid": "52d9d57e1a515df0fdfb2f12ebc71ca9", "score": "0.61058086", "text": "public String getColor(){\n return color;\n }", "title": "" }, { "docid": "db03286c564737df1059d3e171623c87", "score": "0.61039907", "text": "public int getred() {return red;}", "title": "" }, { "docid": "bcace5c6f98545b3b9d26ed423db0553", "score": "0.61017835", "text": "String getBackgroundColor();", "title": "" }, { "docid": "d0847f305a7476f16ece559bef5ba520", "score": "0.6097092", "text": "protected int getColor (String name, MessageBundle msgs, int defaultColor)\n {\n if (name.isEmpty()) {\n return defaultColor;\n }\n name = \"c.\" + name;\n return msgs.exists(name) ? Integer.parseInt(msgs.get(name), 16) : defaultColor;\n }", "title": "" }, { "docid": "8ad8f1939a48453a26a82527d893f085", "score": "0.60939884", "text": "public String getColor(){\n return this.color;\n }", "title": "" }, { "docid": "814aeb4c783d72b1600d8a33276a4da6", "score": "0.6093066", "text": "IColor getColor();", "title": "" }, { "docid": "814aeb4c783d72b1600d8a33276a4da6", "score": "0.6093066", "text": "IColor getColor();", "title": "" }, { "docid": "c2322f76e38293228e93247fc97b79de", "score": "0.6090182", "text": "int getTextColor();", "title": "" }, { "docid": "372e97e88bc30b93b580dcc3dfc9edd1", "score": "0.6084251", "text": "@SuppressWarnings(\"unused\")\n\tprotected void writeColor(final double red, final double green, final double blue) {\n\t\t/* Do nothing by default */\n\t}", "title": "" }, { "docid": "b66cf8314241427a332332457dabffe7", "score": "0.60798424", "text": "public Color getColor(RGB rgb);", "title": "" }, { "docid": "1947105ba93bae85c4b267ef5ef1cc02", "score": "0.6078187", "text": "@Test\n public void testGetColor() {\n assertEquals(Color.WHITE, wr1.getColor());\n assertEquals(Color.WHITE, wr2.getColor());\n assertEquals(Color.BLACK, br1.getColor());\n assertEquals(Color.BLACK, br2.getColor());\n }", "title": "" }, { "docid": "53a90890cc244fa08e8a6ade6172ad9f", "score": "0.60769767", "text": "private static void add(String name, Color color) {\n colorMap.put(name.toLowerCase(), color);\n }", "title": "" }, { "docid": "c5cac29f19889d8d8304b6d3f0ee2e20", "score": "0.60735166", "text": "@Override\r\n \tpublic void setColor(String color) {\n \t\t\r\n \t}", "title": "" }, { "docid": "6cd63084fcac3d1c368e6f4a687789ff", "score": "0.60731566", "text": "PlayerColor getColor();", "title": "" }, { "docid": "5fd7740722eb13be58f2629bcb6e9f4d", "score": "0.6072003", "text": "public Rook(String color){\r\n\t\tsuper(color); \r\n\t}", "title": "" }, { "docid": "c50ee55c93dc20e9f4d6dafc1c043618", "score": "0.60542595", "text": "private String returnColor(String tag) {\n return TAG_COLORS[Math.abs(tag.hashCode()) % TAG_COLORS.length];\n }", "title": "" }, { "docid": "86b01d088a7385fb64e087879beecd6d", "score": "0.60481495", "text": "public static Color color(int red, int green, int blue) {\n\t\treturn SINGLETON.createColor(red, green, blue, 255);\n\t}", "title": "" }, { "docid": "9db76506e4fa1f618b9133e9af3c7e82", "score": "0.6047679", "text": "public String getColor()\n\t{\n\t\t\n\t return color;\t\n\t \n\t}", "title": "" }, { "docid": "86775ace928dc09c243c50b068b5a961", "score": "0.60444725", "text": "public static void main(String[] args) {\n\t\tColor1 c1 = Color1.BLUE;\n\t\tSystem.out.print(c1);\n\n\t}", "title": "" }, { "docid": "6d702990132f4072a0876287eac32bc7", "score": "0.60408556", "text": "private LEDcolorsType(int value, String name, String literal) {\n\t\tthis.value = value;\n\t\tthis.name = name;\n\t\tthis.literal = literal;\n\t}", "title": "" }, { "docid": "2a7db4c437a5d8c3b3f3fc892539ec51", "score": "0.6040082", "text": "public String getName()\n\t{\n\t\tif (getColor() == Color.red)\n\t\t\treturn \"Red\";\n\t\telse\n\t\t{\n\t\t\tif(getColor() == Color.blue)\n\t\t\t\treturn \"Blue\";\n\t\t\telse\n\t\t\t{\n\t\t\t\tif(getColor() == Color.green)\n\t\t\t\t\treturn \"Green\";\n\t\t\t}\n\t\t}\n\t\t\treturn \"White\";\n\t}", "title": "" }, { "docid": "e1cb5b32653913f077aca274db14ec7d", "score": "0.6035662", "text": "public String getColor()\r\n {\r\n return color;\r\n }", "title": "" }, { "docid": "e1cb5b32653913f077aca274db14ec7d", "score": "0.6035662", "text": "public String getColor()\r\n {\r\n return color;\r\n }", "title": "" }, { "docid": "76efd0333be5afb750bdc1d7c649a4fc", "score": "0.6030073", "text": "public int getColor() {\n\treturn color;\n }", "title": "" }, { "docid": "eb1563227f7346c6f2b43f04861a1e83", "score": "0.6020114", "text": "public Color(float red, float green, float blue)\n {\n this(red, green, blue, 1f);\n }", "title": "" }, { "docid": "01541d90d7fda919b8de17e89dd80876", "score": "0.6018997", "text": "public String getColor () {\n return color;\n }", "title": "" }, { "docid": "fff00834db48a0bb5e8c5ab15b43b665", "score": "0.6018129", "text": "@Test\n public void testGetColor() {\n assertEquals(Color.WHITE, wb1.getColor());\n assertEquals(Color.WHITE, wb2.getColor());\n assertEquals(Color.BLACK, bb1.getColor());\n assertEquals(Color.BLACK, bb2.getColor());\n }", "title": "" }, { "docid": "8a68f36e96c0502e74ad80ca1b0bd5ec", "score": "0.6016515", "text": "static public Color GetColor(String status)\r\n\t{\r\n\t\tif (status.contains(\"D_INT_WAIT\"))\r\n\t\t\treturn Color.YELLOW;\r\n\t\telse if (status.contains(\"D_PROC\"))\r\n\t\t\treturn Color.WHITE;\r\n\t\telse if (status.contains(\"D_MERGE\"))\r\n\t\t\treturn Color.ORANGE;\r\n\t\telse if (status.contains(\"D_SPLIT\"))\r\n\t\t\treturn Color.MAGENTA;\r\n\t\telse if (status.contains(\"D_OUT\"))\r\n\t\t\treturn Color.GREEN;\r\n\t\telse if (status.contains(\"D_TRANS_OUT\"))\r\n\t\t\treturn Color.GREEN;\r\n\t\telse if (status.contains(\"D_TRANS_IN\") || status.contains(\"D_TRANS_IN_MERGE\"))\r\n\t\t\treturn Color.BLUE;\r\n\t\telse if (status.contains(\"D_PROC_WAIT\"))\r\n\t\t\treturn Color.RED;\r\n\t\telse if (status.contains(\"D_WASH\"))\r\n\t\t\treturn new Color(149,179,215);\r\n\t\telse if (status.contains(\"D_WASTE\"))\r\n\t\t\treturn Color.CYAN;\r\n\t\telse if (status.contains(\"D_NORM\"))\r\n\t\t\treturn new Color(195,214,155);\r\n\t\telse if (status.contains(\"C_DIRTY\"))\r\n\t\t\treturn new Color(0.580f, 0.463f, 0.290f, 0.5f);\r\n\t\telse // D_NORM & C_DIRTY\r\n\t\t\treturn Color.BLACK;\r\n\t}", "title": "" }, { "docid": "72c5c93697bd99c68553b46d2719eca5", "score": "0.60148084", "text": "public Color getForegroundColor();", "title": "" }, { "docid": "340366db4e5378828bfce4b89f35c5e3", "score": "0.6011896", "text": "public Color getColor(String colorString){\n //int red = Integer.parseInt(colorString.substring(1,3),16);\n //int green = Integer.parseInt(colorString.substring(3,5),16);\n //int blue = Integer.parseInt(colorString.substring(5,7),16);\n return new Color(Integer.parseInt(colorString.substring(1),16));\n }", "title": "" }, { "docid": "af57599671e311bc1c8241508d651bb4", "score": "0.60080206", "text": "public Color getStoneColor();", "title": "" }, { "docid": "901cdb316c1d15d0431ba25a177e9416", "score": "0.6003424", "text": "public static void printRed(String msg) { \n printColor(msg, Color.RED); \n }", "title": "" }, { "docid": "b1b27ee1049bb8c569449c1af8180e3f", "score": "0.60006744", "text": "public Color(float red, float green, float blue) {\r\n\t\tthis.redFloat = red;\r\n\t\tthis.greenFloat = green;\r\n\t\tthis.blueFloat = blue;\r\n\t\t\r\n\t\tthis.red = (int) this.redFloat;\r\n\t\tthis.green = (int) this.greenFloat;\r\n\t\tthis.blue = (int) this.blueFloat;\r\n\t}", "title": "" }, { "docid": "d1a5680c90e7765687ee1eadb5c19256", "score": "0.5999668", "text": "public void setColor (String newColor){ \n //Se utiliza la nomenclatura set\n this.color = newColor; \n\n }", "title": "" } ]
9a32b4ef0d76e19098d6d84b064aee79
repeated .fpidemic_prevention.Journey journeys = 43;
[ { "docid": "caf5d035e12016ce604ea0527bfaf370", "score": "0.5316161", "text": "java.util.List<? extends fpidemic_prevention.Report.JourneyOrBuilder> \n getJourneysOrBuilderList();", "title": "" } ]
[ { "docid": "bb30f18b780698625d27fcf629e568cd", "score": "0.6087347", "text": "fpidemic_prevention.Report.Journey getJourneys(int index);", "title": "" }, { "docid": "80c0f7e8be8b7b430e0c9911ac27ab69", "score": "0.5421204", "text": "java.util.List<fpidemic_prevention.Report.Journey> \n getJourneysList();", "title": "" }, { "docid": "4809c91c7c473342463f037e93fcb5f3", "score": "0.5268575", "text": "public IntermediateAI() {\r\n\t\topenSpotsLeft = 9;\r\n\t}", "title": "" }, { "docid": "ea80f91b236717d074286fcad5881f03", "score": "0.52241194", "text": "fpidemic_prevention.Report.JourneyOrBuilder getJourneysOrBuilder(\n int index);", "title": "" }, { "docid": "d73ef09c51234ae23b1ea48f340f57ef", "score": "0.5181459", "text": "private void forwardPiston(){\r\n firstSolenoid.set(DoubleSolenoid.Value.kForward);\r\n secondSolenoid.set(DoubleSolenoid.Value.kForward);\r\n }", "title": "" }, { "docid": "e961dfa125c397a3ee3fcb6d1e2c6a3a", "score": "0.5139459", "text": "public DoubleHatch() {\n addSequential(new AutoDrive(\"forward\", 5));\n addSequential(new AutoTurn(\"right\", 30));\n addSequential(new AutoDrive(\"forward\", 6));\n addSequential(new AutoTurn(\"left\", 30));\n addSequential(new AutoDrive(\"forward\", 1.1));\n //add hatch deploy\n addSequential(new AutoDrive(\"reverse\", 1));\n addSequential(new AutoTurn(\"left\", 125));\n addSequential(new AutoDrive(\"forward\", 14));\n addSequential(new AutoTurn(\"left\", 40));\n addSequential(new AutoDrive(\"forward\", 3.2));\n //something something hatch\n addSequential(new AutoDrive(\"reverse\", 3));\n addSequential(new AutoTurn(\"left\", 141));\n addSequential(new AutoDrive(\"forward\", 16));\n addSequential(new AutoTurn(\"right\", 63));\n\n\n\n\n\n\n\n }", "title": "" }, { "docid": "ba010b004e5556b7ad931c298bc7b46c", "score": "0.51098335", "text": "public void setCountMoveTurn(int count){\n countMoveTurn=count;\n }", "title": "" }, { "docid": "9cd862781f3f1b2131f1166e2a9fd8dc", "score": "0.5099169", "text": "private void patrol() {\n\t\t\n\t}", "title": "" }, { "docid": "8ba38264ba2f140e2b6c4eb236832e10", "score": "0.50378084", "text": "@Override\r\n\tpublic void reinforcementPhase(int armies, String[] countryList) {\r\n\t\treinforcement(armies, countryList);\r\n\t\tdriver.nottifyObservers(driver.getGameTurnDriver().getPhase());\r\n\t\tdriver.switchPhase();\r\n\t\tturnDriver.playTurn();\r\n\t}", "title": "" }, { "docid": "8de4084894fb2669e1a286848a5de625", "score": "0.50291204", "text": "@Override\n\tpublic int[] tourJour() {\n\t}", "title": "" }, { "docid": "7f712173007ec54bd2ce89872c74b42e", "score": "0.50278246", "text": "public java.util.List<? extends fpidemic_prevention.Report.JourneyOrBuilder> \n getJourneysOrBuilderList() {\n return journeys_;\n }", "title": "" }, { "docid": "dfc82d1c5309d847f7f9e6f6e3023516", "score": "0.5023392", "text": "private void nextTurn() {\n\n }", "title": "" }, { "docid": "f48cf07f465f15cf4a4076192e06b3d2", "score": "0.50194126", "text": "public JourneyPattern() {\n }", "title": "" }, { "docid": "7d5e927144b49c170617bd54044dfbf4", "score": "0.50169", "text": "public void next_Turn(){}", "title": "" }, { "docid": "e16a6c30077c9e1209cb39a6f66456e3", "score": "0.49787912", "text": "@Override\n protected void phaseFive() {\n }", "title": "" }, { "docid": "30a85f785edb3469698ea8403226861d", "score": "0.49730542", "text": "P whoseTurnIs();", "title": "" }, { "docid": "d119a18033423501a36716494a7044ba", "score": "0.4926051", "text": "@Override\r\n\tprotected int POISON_DELAY()\r\n\t{\r\n\t\treturn 2;\r\n\t}", "title": "" }, { "docid": "8311a0d7e2249e35b39545c1bb6b0ba5", "score": "0.49256173", "text": "int getTravelRangeDeparting();", "title": "" }, { "docid": "1e6f8068a04f75bef2004be80dc81679", "score": "0.49246347", "text": "public void startJourney() {\n groupIsAcceptingNewMembersAndNotMoving = false;\n }", "title": "" }, { "docid": "8dd4b46d7d77cb1f16da2c5942b9c1cd", "score": "0.49211192", "text": "public void takeOneTurn() {\n\t}", "title": "" }, { "docid": "dc2500e5cb89010f3c5056597b2d7fc8", "score": "0.49142545", "text": "private CapacitatedVehicleRoutingProblemWithTimeWindows() {}", "title": "" }, { "docid": "c1efaa7ae4e3d1af4f6c29f20e58224a", "score": "0.4910094", "text": "public void autonomousContinuous() {\r\n }", "title": "" }, { "docid": "885c29e4f77a6b4b582e474d6c632cd7", "score": "0.49045798", "text": "public PropertyTycoonBoard(int numberOfPlayers, int numberOfBots) {\n Player[] players = new Player[numberOfPlayers + numberOfBots];\n // Land[] lands = new Land[40];\n\n ArrayList<Player.Name> names = new ArrayList<>();\n names.add(Player.Name.boot);\n names.add(Player.Name.smartphone);\n names.add(Player.Name.goblet);\n names.add(Player.Name.hatstand);\n names.add(Player.Name.cat);\n names.add(Player.Name.spoon);\n\n for (int i = 0; i < numberOfPlayers; i++) {\n if (players[random.nextInt(numberOfPlayers + numberOfBots)] == null) {\n players[i] = new Player(names.remove(random.nextInt(6)));\n } else {\n i--;\n }\n }\n for (int i = 0; i < numberOfBots; i++) {\n if (players[random.nextInt(numberOfPlayers + numberOfBots)] == null) {\n players[i] = new PlayerBot(names.remove(random.nextInt(6)));\n } else {\n i--;\n }\n }\n for (Player p : players) {\n this.players.add(p);\n }\n\n // lands.add();\n\n /*\n lands[0] = new NonTradableLand(\"Go\", \"Pass here to get £200. \", LandEvent.Go);\n lands[1] = new;\n lands[2] = new;\n lands[3] = new;\n lands[4] = new;\n lands[5] = new;\n lands[6] = new;\n lands[7] = new;\n lands[8] = new;\n lands[9] = new;\n lands[10] = new;\n lands[11] = new;\n lands[12] = new;\n lands[13] = new;\n lands[14] = new;\n lands[15] = new;\n lands[16] = new;\n lands[17] = new;\n lands[18] = new;\n lands[19] = new;\n lands[20] = new;\n lands[21] = new;\n lands[22] = new;\n lands[23] = new;\n lands[24] = new;\n lands[25] = new;\n lands[26] = new;\n lands[27] = new;\n lands[28] = new;\n lands[29] = new;\n lands[30] = new;\n lands[31] = new;\n lands[32] = new;\n lands[33] = new;\n lands[34] = new;\n lands[35] = new;\n lands[36] = new;\n lands[37] = new;\n lands[38] = new;\n lands[39] = new;\n */\n\n }", "title": "" }, { "docid": "bc8a8902f4de48c04fe8c9f8f91cd5ac", "score": "0.48975763", "text": "public boolean hasJourneys() {\n return fieldSetFlags()[3];\n }", "title": "" }, { "docid": "1bd4794fdac25b825e7dc517fafbc1a3", "score": "0.48967707", "text": "@Override\n protected void initialize() {\n linearOffset = (drivetrain.getLeftDistance()+drivetrain.getRightDistance())/2;\n angularOffset = drivetrain.getAngle();\n double[][][] profiles = HBRSubsystem.generateSkidSteerPseudoProfile(PIDPointValue, 0, Parameters.I_SAMPLE_LENGTH, 14, 20, 26, Parameters.W_WIDTH, RobotMap.DT, true, true);\n for(int i = 0; i < profiles[0].length; i++){\n profiles[0][i][0] += linearOffset;\n profiles[1][i][0] += angularOffset;\n }\n drivetrain.setMode(Drivetrain.Follower.DISTANCE, HBRSubsystem.Mode.FOLLOWER);\n drivetrain.setPIDMode(Drivetrain.Follower.DISTANCE, HBRSubsystem.PIDMode.POSITION);\n drivetrain.setILimit(Drivetrain.Follower.DISTANCE, 0);\n drivetrain.setFeedforward(Drivetrain.Follower.DISTANCE, 0, 0.07, 0.01);\n drivetrain.setFeedback(Drivetrain.Follower.DISTANCE, 0.64, 0, 0);\n drivetrain.resetIntegrator(Drivetrain.Follower.DISTANCE);\n\n // angle PID\n drivetrain.setMode(Drivetrain.Follower.ANGLE, HBRSubsystem.Mode.FOLLOWER);\n drivetrain.setPIDMode(Drivetrain.Follower.ANGLE, HBRSubsystem.PIDMode.POSITION);\n drivetrain.setILimit(Drivetrain.Follower.ANGLE, 0);\n drivetrain.setFeedforward(Drivetrain.Follower.ANGLE, 0, 0.11, 0.02);\n drivetrain.setFeedback(Drivetrain.Follower.ANGLE, 1.25, 0, 0.15);\n drivetrain.resetIntegrator(Drivetrain.Follower.ANGLE);\n\n drivetrain.setProfile(Drivetrain.Follower.DISTANCE,profiles[0]);\n drivetrain.setProfile(Drivetrain.Follower.ANGLE,profiles[1]);\n \n drivetrain.resume(Drivetrain.Follower.DISTANCE);\n drivetrain.resume(Drivetrain.Follower.ANGLE);\n drivetrain.setEnabled(true);\n // drive.enable();\n \n }", "title": "" }, { "docid": "f0b9f9ca212959703f3f2c5288153b50", "score": "0.48963526", "text": "int getTaillePolice();", "title": "" }, { "docid": "2373d95f035707f00d8f3c4ec7ebd45e", "score": "0.48892438", "text": "public int getNumOfTrophies(){return this.numOfTrophies;}", "title": "" }, { "docid": "cffeb825fd24bc4546b49096a06c3577", "score": "0.48874927", "text": "@Override\n public void robotPeriodic() {\n }", "title": "" }, { "docid": "cffeb825fd24bc4546b49096a06c3577", "score": "0.48874927", "text": "@Override\n public void robotPeriodic() {\n }", "title": "" }, { "docid": "cffeb825fd24bc4546b49096a06c3577", "score": "0.48874927", "text": "@Override\n public void robotPeriodic() {\n }", "title": "" }, { "docid": "cffeb825fd24bc4546b49096a06c3577", "score": "0.48874927", "text": "@Override\n public void robotPeriodic() {\n }", "title": "" }, { "docid": "cffeb825fd24bc4546b49096a06c3577", "score": "0.48874927", "text": "@Override\n public void robotPeriodic() {\n }", "title": "" }, { "docid": "cffeb825fd24bc4546b49096a06c3577", "score": "0.48874927", "text": "@Override\n public void robotPeriodic() {\n }", "title": "" }, { "docid": "cffeb825fd24bc4546b49096a06c3577", "score": "0.48874927", "text": "@Override\n public void robotPeriodic() {\n }", "title": "" }, { "docid": "dc17a936fccbe57f63007be5faae0c7f", "score": "0.48787367", "text": "@Override\n public void robotPeriodic() {}", "title": "" }, { "docid": "c113e3620fe2e725ea1987eccbc0431e", "score": "0.4876924", "text": "int getJourneysCount();", "title": "" }, { "docid": "2b40429daf9c9c42c58e7e3a8c909a0b", "score": "0.48759612", "text": "public void setTurns(int turns) {\n _jailedTurns = turns;\n }", "title": "" }, { "docid": "5f686ee4137f922cd0d9cdd164bbe909", "score": "0.48747334", "text": "public fpidemic_prevention.Report.JourneyOrBuilder getJourneysOrBuilder(\n int index) {\n return journeys_.get(index);\n }", "title": "" }, { "docid": "6018f9a20e9581eb09bd25b2d2a09c49", "score": "0.48654258", "text": "public void assignReinforcements() throws Exception {\n\t\tif (d_game_state != GameState.GamePlay) {\n\t\t\treturn;\n\t\t}\n\n\t\t// calc the number of starting reinforcement armies for each player\n\t\tfor (IPlayerModel l_player : d_players) {\n\t\t\tif (l_player.isLoser()) {\n\t\t\t\tl_player.setReinforcements(0);\n\t\t\t} else {\n\t\t\t\tint l_num_countries = l_player.getPlayerCountries().size();\n\t\t\t\tl_num_countries = l_num_countries / 3;\n\t\t\t\tif (l_num_countries < 3) {\n\t\t\t\t\tl_num_countries = 3;\n\t\t\t\t}\n\t\t\t\tl_player.setReinforcements(l_num_countries);\n\t\t\t}\n\t\t}\n\n\t\t// scan all the countries for every continent, and if all the countries owner\n\t\t// are the same player then add the continent extra army to the players\n\t\t// reinforcements.\n\t\tArrayList<IContinentModel> l_continents = d_map.getContinents();\n\t\tArrayList<ICountryModel> l_continent_countries;\n\t\tIPlayerModel l_xplayer1;\n\t\tIPlayerModel l_xplayer2;\n\t\tfor (IContinentModel l_continent : l_continents) {\n\t\t\tl_continent_countries = l_continent.getCountries();\n\t\t\tl_xplayer1 = null;\n\t\t\tboolean l_owns_all = false;\n\t\t\tfor (ICountryModel l_country : l_continent_countries) {\n\t\t\t\tl_xplayer2 = l_country.getOwner();\n\t\t\t\tif (l_xplayer2 == null) {\n\t\t\t\t\tl_owns_all = false;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tif (l_xplayer1 == null) {\n\t\t\t\t\tl_xplayer1 = l_xplayer2;\n\t\t\t\t\tl_owns_all = true;\n\t\t\t\t}\n\t\t\t\tif (l_xplayer1 != l_xplayer2) {\n\t\t\t\t\tl_owns_all = false;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (l_owns_all) {\n\t\t\t\t// all countries in continent are owned by player - add extra reinforcements.\n\t\t\t\tint l_rein = l_xplayer1.getReinforcements();\n\t\t\t\tl_rein += l_continent.getExtraArmy();\n\t\t\t\tl_xplayer1.setReinforcements(l_rein);\n\t\t\t}\n\t\t}\n\n\t\t// status update notification\n\t\tfor (IPlayerModel l_player : d_players) {\n\t\t\tString l_msg = l_player.getName() + \" received \" + l_player.getReinforcements() + \" reinforcements.\";\n\t\t\tgetMsg().setMessage(MsgType.Informational, l_msg);\n\t\t}\n\t}", "title": "" }, { "docid": "751f8420110843c784de54ccda2a8a4d", "score": "0.48605266", "text": "public void setup() {\n frameRate(framerate);//increase this to make the dots go faster\n popu = new Population(popuSize, maxSteps);//create a new population with 1000 members\n walls = new Wall();\n cGoal = new Goal();\n\n cGoal.setP(goals[0][0], goals[0][1]); \n\n}", "title": "" }, { "docid": "4b5fec2397c519b5a5644dfad66fcce2", "score": "0.48575214", "text": "public FramedVehicleJourneyRef() {\n }", "title": "" }, { "docid": "c8de130fbe83d1b7388e8d854268a3f0", "score": "0.4848139", "text": "interface Automobile { \n\n int numberOfSpeakers = 4; \n int hasSpeakers = false; \n\n\tpublic boolean hasTurbo();\n}", "title": "" }, { "docid": "9a417ea6cce51cb76c13567dc80772d5", "score": "0.48472932", "text": "public void teleopContinuous() {\r\n }", "title": "" }, { "docid": "11c8eb0484ec7bf449cb5ac80fd9eb2d", "score": "0.48407498", "text": "public InstantTest() {\n// wheel = Robot.currentWheel;\n// requires(wheel);\n for (SwerveWheel wheel : Robot.swerveWheels) {\n requires(wheel);\n }\n }", "title": "" }, { "docid": "48f2cdd78212923ebf26665d5675afba", "score": "0.48338503", "text": "@Override\n\tpublic void delayRide() {\n\t\t\n\t}", "title": "" }, { "docid": "a4463beb661d0af4c5aac1e4beeb8ae1", "score": "0.4803729", "text": "protected void initialize() {\n \tstartDistance = Robot.drive.getDistance();\n \tturnDistance = startDistance + 73.0;\n \tfinishDistance = turnDistance + 40.0;\n \textraDistance = finishDistance + 10.0;\n }", "title": "" }, { "docid": "c4743886d043af6874a25b3a3670640d", "score": "0.4797054", "text": "public void movie() {\n\t\tint[] restrictions = { 5, 2, 0 };\n\t\tint[] post_restrictions = {};\n\t\tassignNecessary(movieTimes, 3, restrictions, post_restrictions);\n\t}", "title": "" }, { "docid": "c8ab3086dbe2223e4e9c774f9cb77c13", "score": "0.47956428", "text": "public void teleopPeriodic() {\n Scheduler.getInstance().run();\n driveTrain.dankMemes(oi.pilotJoystick);//awesome arcade drive method name\n SmartDashboard.putNumber(\"Ultrasonic1\", RobotMap.driveTrainUltrasonicM.getRangeInches());\n SmartDashboard.putNumber(\"RawEncoder\", RobotMap.catapultArmArmEncoder.getValue());\n ledTable.putNumber(\"pattern\", SmartDashboard.getNumber(\"LedPattern\", 1));\n ledTable.putNumber(\"doTheRestart?\", SmartDashboard.getNumber(\"MakeThisNumber1IfYahWannaRestartTheCameraSoftwareOfJestice\", 0));\n if(oi.coJoystick.getRawAxis(1) > 0.5)\n \tRobotMap.pickupArmsVerticalArm.set(-.5);\n else if(oi.coJoystick.getRawAxis(1) < -0.5)\n \tRobotMap.pickupArmsVerticalArm.set(.5);\n else\n \tRobot.pickupArms.stopVertically();\n if(oi.coJoystick.getPOV(0) == 180)\n \tRobot.pickupArms.spinArmsOut();\n else if(oi.coJoystick.getPOV(0) == 0)\n \tRobot.pickupArms.spinArmsIn();\n else\n \tRobot.pickupArms.stopSpinning();\n \n if(oi.pilotJoystick.getRawButton(1))\n \tRobot.catapultArm.stopClamp();\n double[] centX = table.getNumberArray(\"centerX\", defaultValue);\n if(oi.pilotJoystick.getRawButton(9) /*&& RobotMap.driveTrainUltrasonicM.getRangeInches() > 77.5 && RobotMap.driveTrainUltrasonicM.getRangeInches() < 82.5*/) {//arbitrary distance values \t\n \tSmartDashboard.putBoolean(\"button9\", true);\n \tfor(double xxx : centX)\n \t{\n \t\tDriverStation.reportError(xxx + \" \", false);\n \t\tfinal int TESTNUM = 165;\n \t\tif(xxx > TESTNUM+25) {\n \t\t\tRobot.driveTrain.set(-.3, 0);\n \t\t\tTimer.delay(.5);\n \t\t\tRobot.driveTrain.kidRanIntoTheStreet();\n \t\t} else if(xxx > TESTNUM+5) {\n \t\t\tRobot.driveTrain.set(-.15, 0);\n \t\t\tTimer.delay(.5);\n \t\t\tRobot.driveTrain.kidRanIntoTheStreet();\n \t\t} else if(xxx < TESTNUM-25) {\n \t\t\tRobot.driveTrain.set(0, .3);\n \t\t\tTimer.delay(.5);\n \t\t\tRobot.driveTrain.kidRanIntoTheStreet();\n \t\t} else if(xxx < TESTNUM-5) {\n \t\t\tRobot.driveTrain.set(0, .15);\n \t\t\tTimer.delay(.5);\n \t\t\tRobot.driveTrain.kidRanIntoTheStreet();\n \t\t}\n \t}\n }\n if (oi.pilotJoystick.getRawButton(8)) {\n \tdouble distance = RobotMap.driveTrainUltrasonicM.getRangeInches();\n \tif (distance < 77.5) {\n \t\tRobot.driveTrain.set(.2 + (80 - distance) * 0.01, -.2 - (80 - distance) * 0.01);\n \t} else {\n \t\tRobot.driveTrain.set(-.2 - (distance - 80) * 0.01, .2 + (distance - 80) * 0.01);\n \t}\n }\n if(!oi.pilotJoystick.getRawButton(9))\n \tSmartDashboard.putBoolean(\"button9\", false);\n }", "title": "" }, { "docid": "cf9f457fb896aac6102ac27ede28a561", "score": "0.47935742", "text": "public java.util.List<fpidemic_prevention.Report.Journey> getJourneysList() {\n return journeys_;\n }", "title": "" }, { "docid": "a876e9a3b18f34e083222ce4bbc7a0cc", "score": "0.47927254", "text": "public Builder addJourneys(fpidemic_prevention.Report.Journey value) {\n if (journeysBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureJourneysIsMutable();\n journeys_.add(value);\n onChanged();\n } else {\n journeysBuilder_.addMessage(value);\n }\n return this;\n }", "title": "" }, { "docid": "004589012f27aff1e447066bb94d7c6d", "score": "0.4790442", "text": "public void Passenger_death(int person){ passenger_arrived.add(person); }", "title": "" }, { "docid": "52103f1f042d67e3148915c975d486dd", "score": "0.47891173", "text": "public void nextTurn() {\n\t\tturn = (turn+1) % 6;\n\t}", "title": "" }, { "docid": "506e422ce699a436dd1ee0e9edcd6818", "score": "0.47869262", "text": "public zigzag() //matches classname (case-sensitive)\n{\nbot = new DifferentialPilot(50, 50, Motor.B, Motor.C); //instantiate a DifferentialPilot object named \"bot\"\n\n}", "title": "" }, { "docid": "77e0788f7c1b62e7f2f71e101d9ebc15", "score": "0.4778539", "text": "public void traitement();", "title": "" }, { "docid": "5f29fe9ec5f2b6542ad67aa7727ba3c7", "score": "0.4776349", "text": "public CorrespondanceEtapes() {\n correspondances = new HashMap<>(10);\n }", "title": "" }, { "docid": "9606248346886fbeaf0e88ce7baa35db", "score": "0.47716498", "text": "public void addLife(){\n\t\tif (lives < 3){\n\t\t\tlives++;\n\t\t}\n\t}", "title": "" }, { "docid": "78d5ee8e2162e256efa2d89d2da0a878", "score": "0.47584832", "text": "void setNextParty(int nextParty);", "title": "" }, { "docid": "80a63e264ecaf1b465e23c539536a69c", "score": "0.4756163", "text": "public void cambiarTurno(){\n _cantJugadas=0;\n if(_turno==1){\n _jug1= _jug1+_puntajeTmp;\n _turno=2;\n } else\n {\n _jug2= _jug2+_puntajeTmp;\n _turno=1;\n } reiniciarTmp();\n }", "title": "" }, { "docid": "81d7db570efbe6e48932023fee388fa7", "score": "0.47490656", "text": "private void sequenceWaypoints() {\n\t\tint number = 0;\n\t\tfor (Waypoint waypoint : this.getWaypoints()) {\n\t\t\tString designator = Integer.toString(number);\n\t\t\twaypoint.setDesignator(designator);\n\t\t\tif (waypoint.hasDepiction() && waypoint.getDepiction().hasAnnotation()) {\n\t\t\t\twaypoint.getDepiction().getAnnotation().setText(designator);\n\t\t\t}\n\t\t\tnumber++;\n\t\t}\n\t}", "title": "" }, { "docid": "a69e33224ffcf08985b942f2ed22df9d", "score": "0.47452974", "text": "public void atStartOfTurn() {\n }", "title": "" }, { "docid": "e4a97e08f3c57dc9d36ad715bd2ac4de", "score": "0.47427812", "text": "public void turn()\r\n {\r\n //is there even a junction for turning there\r\n Junction junction = (Junction) getOneObjectAtOffset(0,0,Junction.class);\r\n if(junction!=null)\r\n {\r\n //how far am I in the different dimensions from the pacman\r\n int offsetX = getX()-pacman.getX();\r\n int offsetY = getY()-pacman.getY();\r\n //an array for storing the priority of the directions\r\n int[] order = new int[4];\r\n //is the distance in x or y bigger? the bigger one is prioritised\r\n if(Math.abs(offsetX)>Math.abs(offsetY))\r\n {\r\n //if pacman is right\r\n if(offsetX<0)\r\n {\r\n //I want to go right the most\r\n order[0]=0;\r\n //and left the least\r\n order[3]=180;\r\n } else {\r\n //and vice versa\r\n order[0]=180;\r\n order[3]=0;\r\n }\r\n if(offsetY<0)\r\n {\r\n //same thing as above but with the y-axis\r\n order[1]=90;\r\n order[2]=270;\r\n } else {\r\n order[1]=270;\r\n order[2]=90;\r\n }\r\n //and the same with reversed x- and y-axis priorities\r\n } else {\r\n if(offsetX<0)\r\n {\r\n order[1]=0;\r\n order[2]=180;\r\n } else {\r\n order[1]=180;\r\n order[2]=0;\r\n }\r\n if(offsetY<0)\r\n {\r\n order[0]=90;\r\n order[3]=270;\r\n } else {\r\n order[0]=270;\r\n order[3]=90;\r\n } \r\n } \r\n //if you can go left and want to go left\r\n if(order[0]==0&&junction.right==true)\r\n {\r\n setRotation(0);\r\n }else if(order[0]==90&&junction.down==true)\r\n {\r\n setRotation(90);\r\n } else if(order[0]==180&&junction.left==true)\r\n {\r\n setRotation(180);\r\n } else if(order[0]==270&&junction.up==true)\r\n {\r\n setRotation(270);\r\n } else if(order[1]==0&&junction.right==true)\r\n {\r\n setRotation(0);\r\n } else if(order[1]==90&&junction.down==true)\r\n {\r\n setRotation(90);\r\n //if the most desirable scenario is impossible, try the next(and so on)\r\n } else if(order[1]==180&&junction.left==true)\r\n {\r\n setRotation(180);\r\n } else if(order[1]==270&&junction.up==true)\r\n {\r\n setRotation(270);\r\n } else if(order[2]==0&&junction.right==true)\r\n {\r\n setRotation(0);\r\n } else if(order[2]==90&&junction.down==true)\r\n {\r\n setRotation(90);\r\n } else if(order[2]==180&&junction.left==true)\r\n {\r\n setRotation(90);\r\n } else if(order[2]==270&&junction.up==true)\r\n {\r\n setRotation(270);\r\n } else if(order[3]==0&&junction.right==true)\r\n {\r\n setRotation(0);\r\n } else if(order[3]==90&&junction.down==true)\r\n {\r\n setRotation(90);\r\n } else if(order[3]==180&&junction.left==true)\r\n {\r\n setRotation(180);\r\n } else if(order[3]==270&&junction.up==true)\r\n {\r\n setRotation(270);\r\n } \r\n } \r\n }", "title": "" }, { "docid": "72fc310e74d1a8197abbaf75b30e1007", "score": "0.47345448", "text": "public WhiteWalkers(){\n\t\tthis.nombre = \"WhiteWalkers\";\n\t\tthis.id = \" \";\n\t\tdeadPjs = new Cola <personaje>();\n\t\tthis.tipo = \"caminante\";\n\t}", "title": "" }, { "docid": "439794d7fce9081db5e55cdf8077cf63", "score": "0.47327945", "text": "@Override\n\tpublic void onAdvance(List<Body> bodies, double time) {\n\t\t\n\t}", "title": "" }, { "docid": "2de2a0c94abbb1aea6186ba9205cb1b7", "score": "0.47314414", "text": "public Husky(){\n\t\tmoveCount = -1;\n\t}", "title": "" }, { "docid": "ee78d5ecf90ae5da90b70e71144da79f", "score": "0.47310764", "text": "public fpidemic_prevention.Report.Journey getJourneys(int index) {\n return journeys_.get(index);\n }", "title": "" }, { "docid": "758ec22741754a7cbc22795d28aa4152", "score": "0.47248274", "text": "public void reiniciarJuego(){\n _jug1=0;\n _jug2=0;\n _turno=1;\n _puntajeTmp=0;\n _valorDado=0;\n _cantJugadas=0;\n }", "title": "" }, { "docid": "26cb4fe5d235622cfefb113d7630dd2f", "score": "0.47197878", "text": "public interface Pacman extends Location {\n void die();\n void moveAwayFrom();\n}", "title": "" }, { "docid": "9e0664b15a94bab0dfb8125cabd1ea30", "score": "0.4713507", "text": "@Override\n public void robotPeriodic() {\n }", "title": "" }, { "docid": "430204e99658b2504f4545a819d35bd3", "score": "0.47132275", "text": "public void setJourneys(java.util.List<java.lang.CharSequence> value) {\n this.journeys = value;\n }", "title": "" }, { "docid": "ddff3695717d9c94b818f522b130f49a", "score": "0.47119308", "text": "public void autonomousPeriodic(){\n if (secondAuto) {\n auto_rotation_command = -(-180 - DrivetrainSubsystem.getInstance().getGyro().getYaw())/500; \n NetworkTableInstance.getDefault().getTable(\"limelight\").getEntry(\"pipeline\").setNumber(4);\n DrivetrainSubsystem.getInstance().drive(new Translation2d(0, 0), auto_rotation_command, false);\n if ((DrivetrainSubsystem.getInstance().getGyro().getYaw() + 180 < 10) && (DrivetrainSubsystem.getInstance().getGyro().getYaw() + 180 > - 10)) {\n secondAuto = false;\n }\n }\n else {\n DrivetrainSubsystem.getInstance().drive(new Translation2d(0, 0), subSystem.getInstance().autoAllignment(), false);\n positions = subSystem.getInstance().getRobotPosition(DrivetrainSubsystem.getInstance().getGyro().getYaw() + 180, subSystem.getInstance().distance_estimator(ty.getDouble(0.0)));\n if (subSystem.getInstance().areWeThereYet(positions[0], positions[1], waypoint_1[0], waypoint_1[1])) {\n reachedFirstPosition = true;\n }\n else {\n auto_command = subSystem.getInstance().calc_x_and_y_command(positions[0], positions[1], waypoint_1[0], waypoint_1[1]);\n DrivetrainSubsystem.getInstance().drive(new Translation2d(auto_command[0], auto_command[1]), subSystem.getInstance().autoAllignment(), true);\n }\n }\n // If waypoint distance <5ft but >1ft scale speed down relative to distance, bottom out speed at .1\n // DETERMINE IF I HAVE REACHED THE CURRENT WAYPOINT AND IF SO, TRACK WAYPOINT COMPLETION\n // If waypoint reached navigate to next waypoint using above logic\n\n \n // DrivetrainSubsystem.getInstance().drive(new Translation2d(0, 0), subSystem.getInstance().autoAllignment(), false);\n \n }", "title": "" }, { "docid": "a98e23a7c2d0176464e0d9d27f410f2e", "score": "0.47102293", "text": "void setReadyToTravel();", "title": "" }, { "docid": "920d8a626d7f8b7e46c322a87c8aae8b", "score": "0.47090048", "text": "public fpidemic_prevention.Report.Journey.Builder addJourneysBuilder() {\n return getJourneysFieldBuilder().addBuilder(\n fpidemic_prevention.Report.Journey.getDefaultInstance());\n }", "title": "" }, { "docid": "dd42a4e23a909978db3ef6e4b2c5e91b", "score": "0.47026387", "text": "public void setSteps(List<Step> _steps){ steps = _steps; }", "title": "" }, { "docid": "320b393c2059df69a45d0f3ee9220929", "score": "0.47025695", "text": "public void q34(){\n if(this.proxCaractereIs(LETRAS)){\n saida = saida + this.proxCaractere;\n leProxCaractere();\n q22();\n }else\n this.tokenReconhecido = Token.WHILE;\n }", "title": "" }, { "docid": "ec042bb02994b69ca8af1eaf0b7e6361", "score": "0.46941972", "text": "public void run()\n{\nbot.travel(650);\nbot.rotate(30);\nbot.travel(700);\nbot.rotate(185);\nbot.travel(860);\nbot.rotate(285);\nbot.travel(1050);\nbot.rotate(-215);\nbot.travel(1050);\nbot.rotate(285);\nbot.travel(800);\nbot.stop();\n}", "title": "" }, { "docid": "1d0deda11e813ce6b974289f33bffa21", "score": "0.46880078", "text": "public TurnMonitor(int init)\n{\nturn = init;\n}", "title": "" }, { "docid": "d2c307522f90079ff23392d26963d0ff", "score": "0.46878004", "text": "private void repeatJourney(final int departureDate, final int nbRepetitions, final int frequence,\r\n final Journey journey) {\r\n int nextDeparture = departureDate;\r\n for (int i = 0; i < nbRepetitions; i++) {\r\n final Journey cloneJ = journey.clone();\r\n nextDeparture = Journey.addTime(nextDeparture, frequence);\r\n cloneJ.setDepartureDate(nextDeparture);\r\n window.println(cloneJ.toString());\r\n catalog.addJourney(cloneJ);\r\n }\r\n }", "title": "" }, { "docid": "b42b054dfaac7d94036bce6ecf272a0e", "score": "0.46857792", "text": "private void pepe() {\n\t\t\n\t}", "title": "" }, { "docid": "c1c5d00715cc196d7911808c57175e4c", "score": "0.4682207", "text": "@Override\n public void fly() {\n for(int i=0;i<6;i++)\n {\n turkey.fly();\n }\n }", "title": "" }, { "docid": "84a8cf1ea5caf519abfb721a99635906", "score": "0.46746084", "text": "public void nextDose()\n {\n\n }", "title": "" }, { "docid": "bea7bad7a703e598d51d6b7433506133", "score": "0.46716753", "text": "public int getTurn(){\n return turn;\n }", "title": "" }, { "docid": "1234e341f6e99fc2c4423f0b051384af", "score": "0.46701843", "text": "public void setPit() { pit = true; nothing = ok = visited = wumpus = false; }", "title": "" }, { "docid": "57bcff9f0a732ddf830238c534e26b0f", "score": "0.46631444", "text": "public void mo2063a() {\n }", "title": "" }, { "docid": "1a7bae1838c2622f8e73c192e0ae6e70", "score": "0.46590304", "text": "private void moins() {\n\t\t\n\t}", "title": "" }, { "docid": "093e6ae4bf66dc47efe817929256b0a2", "score": "0.46525744", "text": "public void meleeBotPursue() {\n for(Robot robot : robots) {\n if(robot instanceof MeleeBot) {\n if(robot.roomIndex == player.roomIndex) {\n ((MeleeBot)robot).pursue = true;\n } else {\n ((MeleeBot)robot).pursue = false;\n }\n }\n }\n}", "title": "" }, { "docid": "e1c0fc257dd00dfea0abff11e2de8e31", "score": "0.4647821", "text": "public void nextPhase(){\n idxPhaseGame++;\n idxPhaseGame%=3;\n if (idxPhaseGame==0){\n turn%=2;\n turn++;\n }\n }", "title": "" }, { "docid": "865cdcf285efe1d3a5aebee2f3d6960c", "score": "0.46436292", "text": "@Override\n\tpublic void jumpFwd(long steps) {\n\t\tfor(long i=0; i < steps; i++) {\n\t\t\tfwd();\n\t\t}\n\t}", "title": "" }, { "docid": "28b6857697cf5d54f290d2386d82d9ad", "score": "0.46421674", "text": "public void resetJailTurns() {\n\t\tthis.jailTurns = 0;\n\t}", "title": "" }, { "docid": "ee3a74156e95ae5300faa9dad1b82cbc", "score": "0.46387714", "text": "protected void setup() {\n Object[] args = getArguments();\n if (args != null && args.length > 0) {\n noOfNeighs = Integer.parseInt(args[0].toString());\n neighId = new int[noOfNeighs];\n //System.out.println(getLocalName()+\" \"+args.length);\n for (int i = 1; i < noOfNeighs + 1; i++) {\n neighId[i - 1] = Integer.parseInt(args[i].toString()) + 1;\n //System.out.println(\"Agent: \" + getLocalName()+ \" has neighboor: \" + neighId[i]);\n }\n Pmin = Double.parseDouble(args[noOfNeighs + 1].toString());\n Pmax = Double.parseDouble(args[noOfNeighs + 2].toString());\n b_cost = Double.parseDouble(args[noOfNeighs + 3].toString());\n c_cost = Double.parseDouble(args[noOfNeighs + 4].toString());\n }\n System.out.println(getLocalName() + \" found parameters: \" + Pmin + \" \" + Pmax + \" \" + b_cost + \" \" + c_cost);\n\n //Extract agent id\n agentId = Integer.parseInt(getLocalName().replaceAll(\"[a-zA-Z]\", \"\"));\n iter.agentId = agentId;\n iter.timestamp = 0;\n //System.out.println(\"Agent: \" + getLocalName()+ \" has Id: \" + agentId);\n\n // Register the agent in the yellow pages\n DFAgentDescription dfd = new DFAgentDescription();\n dfd.setName(getAID());\n ServiceDescription sd = new ServiceDescription();\n sd.setName(\"Load\" + agentId);\n sd.setType(\"Curtailment\");\n\n //assign neighboors as properties on the DF\n for (int i = 0; i < neighId.length; i++) {\n Property agentProperty = new Property();\n agentProperty.setName(\"Neighboor \" + (i + 1));\n agentProperty.setValue(neighId[i]);\n sd.addProperties(agentProperty);\n }\n dfd.addServices(sd);\n try {\n DFService.register(this, dfd);\n } catch (FIPAException fe) {\n fe.printStackTrace();\n }\n\n // one object containing info for each neighboor and one for temporary storage\n neighData = new iterData[neighId.length];\n tempData = new iterData[neighId.length];\n //objects must be constructed independently --> to be better implemented\n for (int i = 0; i < neighId.length; i++) {\n neighData[i] = new iterData();\n tempData[i] = new iterData();\n }\n\n /* discover neighboors and coordinator */\n addBehaviour(new WakerBehaviour(this, 30000) {\n protected void handleElapsedTimeout() {\n addBehaviour(new FindNeighboors());\n }\n });\n\n //write data in file\n try {\n writer = new PrintWriter(getLocalName() + \".txt\", \"UTF-8\");\n } catch (FileNotFoundException ex) {\n Logger.getLogger(CurtailAgent.class.getName()).log(Level.SEVERE, null, ex);\n } catch (UnsupportedEncodingException ex) {\n Logger.getLogger(CurtailAgent.class.getName()).log(Level.SEVERE, null, ex);\n }\n writer.println(\"Record keeping!!\");\n\n /*enviroment of the agent*/\n //behaviors\n receiveBehaviour = new receiveFromNeighboors();\n listen = new listenState();\n\n System.out.println(getLocalName() + \" waiting to receive from coordinator......\");\n addBehaviour(listen);\n\n// addBehaviour(new WakerBehaviour(this, 10000) {\n// protected void handleElapsedTimeout() {\n// addBehaviour(new startNegotiation());\n// }\n// });\n }", "title": "" }, { "docid": "9001c6ae3aded1e3b9467f2c32068f85", "score": "0.4638483", "text": "public void onScannedRobot(ScannedRobotEvent e) {\n\t\tStates.update(getEnergy(),\t\t//positive energy is good (my energy is bigger)\r\n\t\t\t\t\te.getDistance(),\r\n\t\t\t\t\tgetGunHeat(),\r\n\t\t\t\t\t0,\r\n\t\t\t\t\t0);\r\n\t\t\r\n//\t\tif(getEnergy() > 40)\r\n//\t\t{\r\n//\t\t\tif (getGunHeat() == 0 && Math.abs(getGunTurnRemaining()) < 10)\r\n//\t\t\t\tsetFire(Math.min(400 / e.getDistance(), 3));\r\n//\t\t}\r\n\t\t\r\n\t\tdouble firePower = Math.min(400 / e.getDistance(), 3);\r\n\t // calculate gun turn toward enemy\r\n\t double turn = getHeading() - getGunHeading() + e.getBearing();\r\n\t // normalize the turn to take the shortest path there\r\n\t setTurnGunRight(normalizeBearing(turn));\r\n\t \r\n\t //Squaring Off\r\n\t //setTurnRight(e.getBearing() + 90);\r\n\r\n\t \r\n\t \r\n\t \r\n\t //QLEARNING\r\n\t if(firstrun)\r\n\t\t{\r\n\t\t\t//record initial state as state1\r\n\t\t\t//Update Variables\r\n\r\n\t\t\tstate1 = States.getCurrentState();\r\n\t\t\tstate1NN = States.getCurrentStateNN();\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t//take a random action\r\n\t\t\t//action1 = Q.actionOfMaxQ(state1);\t\t//which is basically the first action.\r\n\t\t\t//executeAction(action1);\r\n\t\t\t\r\n\t\t\tRandom randomGenerator = new Random();\r\n\t\t\taction1 = randomGenerator.nextInt(States.numActions - 1);\r\n\t\t\texecuteAction(action1, firePower);\r\n\t\t\t\r\n\t\t\tfirstrun = false;\r\n\t\t}else{\r\n\t\t\t//learn();\r\n\t\t\t\r\n\t\t\t\r\n\t\t\tint tempState = States.getCurrentState();\r\n\t\t\tint[] tempStateNN = States.getCurrentStateNN();\r\n\t\t\tif(tempState != state2)\r\n\t\t\t{\r\n\t\t\t\t\r\n\t\t\t\t//state2 is the CURRENT State. state1 is the previous\r\n\t\t\t\t\r\n\t\t\t\t//Q LEARNING\r\n\t\t\t\tstate2 = tempState;\r\n\t\t\t\tstate2NN = tempStateNN;\r\n\t\t\t\t//Q.QLearning(state1, action1, state2, reward);\t\t\t\t\t\t\t\t\t//How can we update NN\r\n\t\t\t\tNeuralNet.trainNN(state1NN, action1, state2NN, reward);\r\n\t\t\t\t//store current state as state1\r\n\t\t\t\tstate1 = state2;\r\n\t\t\t\tstate1NN = state2NN;\r\n\t\t\t\t//reset reward\r\n\t\t\t\treward = 0;\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t//take action\r\n\t\t\t\tif(Math.random() > epsilon )\r\n\t\t\t\t{\r\n\t\t\t\t\t//action1 = Q.actionOfMaxQ(state1);\t\t\t\t\t\t\t\t\t\t\t//Get it from NN\r\n\t\t\t\t\t\r\n\t\t\t\t\t//int tempStateNN[] = States.getCurrentStateNN();\t\t\t\t//returns vector of Energy, Distance, and GunHeat\r\n\t\t\t\t\taction1 = NeuralNet.actionOfMaxQNN(tempStateNN);\r\n\t\t\t\t\t\r\n\t\t\t\t\t//executeAction(action1, firePower);\r\n\t\t\t\t}else{\r\n\t\t\t\t Random randomGenerator = new Random();\r\n\t\t\t\t action1 = randomGenerator.nextInt(States.numActions - 1);\r\n\t\t\t\t //executeAction(action1, firePower);\t\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tif(action1 == 1 && getGunHeat() != 0)\r\n\t\t\t\treward += -3;\r\n\t\t\r\n\t\t\texecuteAction(action1, firePower);\r\n\r\n\t\t\t}\r\n\t \r\n\t \r\n\t \r\n//\t //SARSA\r\n//\t if(run==0)\r\n//\t\t{\r\n//\t\t\t//record initial state as state1\r\n//\t\t\t//Update Variables\r\n//\r\n//\t\t\tstate3 = States.getCurrentState();\r\n//\t\t\t\r\n//\t\t\t\r\n//\t\t\t//take a random action\r\n//\t\t\t//action1 = Q.actionOfMaxQ(state1);\t\t//which is basically the first action.\r\n//\t\t\t//executeAction(action1);\r\n//\t\t\t\r\n//\t\t\tRandom randomGenerator = new Random();\r\n//\t\t\taction3 = randomGenerator.nextInt(States.numActions - 1);\r\n//\t\t\texecuteAction(action3, firePower);\r\n//\t\t\t\r\n//\t\t\trun = 1;\r\n//\t\t\t\r\n//\t\t}else if(run==1){\r\n//\t\t\t\r\n//\t\t\treward2 = reward;\r\n//\t\t\t\r\n//\t\t\tstate2 = state3;\r\n//\t\t\taction2 = action3;\r\n//\t\t\tstate3 = States.getCurrentState();\r\n//\t\t\t\r\n//\t\t\t\r\n//\t\t\t//take a random action\r\n//\t\t\t//action1 = Q.actionOfMaxQ(state1);\t\t//which is basically the first action.\r\n//\t\t\t//executeAction(action1);\r\n//\t\t\t\r\n//\t\t\tRandom randomGenerator = new Random();\r\n//\t\t\taction3 = randomGenerator.nextInt(States.numActions - 1);\r\n//\t\t\texecuteAction(action3, firePower);\r\n//\t\t\t\r\n//\t\t\t\r\n//\t\t\t\r\n//\t\t\trun = 2;\r\n//\t\t}else{\r\n//\t\t\t\r\n//\t\t\t\r\n//\r\n//\t\t\t\r\n//\t\t\t\r\n//\t\t\tint tempState = States.getCurrentState();\r\n//\t\t\tif(tempState != state3)\r\n//\t\t\t{\r\n//\t\t\t\t\r\n//\t\t\t\treward1 = reward2;\r\n//\t\t\t\treward2 = reward;\r\n//\t\t\t\t\r\n//\t\t\t\tstate1 = state2;\r\n//\t\t\t\taction1 = action2;\r\n//\t\t\t\tstate2 = state3;\r\n//\t\t\t\taction2 = action3;\r\n//\t\t\t\t\r\n//\t\t\t\tstate3 = tempState;\r\n//\t\t\t\tQ.SARSA(state1, action1, state2, action2, reward1);\r\n//\r\n//\t\t\t\t//reset reward\r\n//\t\t\t\treward = 0;\r\n//\t\t\t\t\r\n//\t\t\t\t\r\n//\t\t\t\t//take action\r\n//\t\t\t\tif(Math.random() > epsilon )\r\n//\t\t\t\t{\r\n//\t\t\t\t\taction3 = Q.actionOfMaxQ(state1);\t\t\r\n//\t\t\t\t\t//executeAction(action1, firePower);\r\n//\t\t\t\t}else{\r\n//\t\t\t\t Random randomGenerator = new Random();\r\n//\t\t\t\t action3 = randomGenerator.nextInt(States.numActions - 1);\r\n//\t\t\t\t //executeAction(action1, firePower);\t\r\n//\t\t\t\t}\r\n//\t\t\t}\r\n//\t\t\t\r\n//\t\t\tif(action3 == 1 && getGunHeat() != 0)\r\n//\t\t\t\treward += -3;\r\n//\t\t\r\n//\t\t\texecuteAction(action3, firePower);\r\n//\r\n//\t\t\t}\r\n\t\t\t\r\n\t\t\r\n\t\t\r\n\t\tsetTurnRadarLeftRadians(getRadarTurnRemainingRadians());\r\n\t}", "title": "" }, { "docid": "521e9d3da512824a57b4494b36040754", "score": "0.46366772", "text": "public void inteligenciaArtificial() {\n\t\t\n\t}", "title": "" }, { "docid": "41c5ac69f5a95613fd0da6bdeea3bd7d", "score": "0.4634892", "text": "void updatePercepts() {\n //Location r1Loc = model.getAgPos(0);\n Literal newMov = Literal.parseLiteral(\"done\");\n\t\taddPercept(\"judge\",newMov); \n }", "title": "" }, { "docid": "e8026f097750725da40d9d2975aeb671", "score": "0.4634126", "text": "public BoardingPassCounter()\r\n {\r\n nrOfPasses = 0;\r\n }", "title": "" }, { "docid": "02b19fcbfd96f1a7ad863d24ea3fa60e", "score": "0.46338147", "text": "public void incrementNoParticipations() {\n this.noParticipations++;\n }", "title": "" }, { "docid": "46b3f8148dff93efc0fb29f020698e77", "score": "0.46282646", "text": "private void periodicMantainance()\n {\n\n }", "title": "" }, { "docid": "e92241fdd80a201150b5ec42a36758bc", "score": "0.46257347", "text": "public void LPF() {\n \n }", "title": "" }, { "docid": "a7cd2b44d849f35a41c920f6743f5633", "score": "0.46242905", "text": "public void processJourney(Journey journey) throws IOException, DataException {\r\n\t\tthis.travelPassOfUser = new DataFactory(inputPath,outputPath).listPassByUser(userId);\r\n\t\tthis.journey = journey;\r\n\t\t\r\n\t\t\r\n\t\tjourney.setId(Utils.buildJourneyId(user.getId()));\r\n\t\t\r\n\t\t\t/**\r\n\t\t\t * Try to create the cheapest travel pass, update previous pass of user\r\n\t\t\t * If not found a pass to updating, so have to create new pass,\r\n\t\t\t */\r\n\t\t\tboolean updatedPassSucces =false;\r\n\t\t\t\r\n\t\t\tString departZone = new DataFactory(inputPath,outputPath).getStationById(journey.getDepartName()).getZone();\r\n\t\t\tString arriveZone = new DataFactory(inputPath,outputPath).getStationById(journey.getArriveName()).getZone();\r\n\t\t\t\r\n\t\t\tString startTime = journey.getStartTime();\r\n\t\t\tString dateOfJourney = startTime.substring(0,8);// ddMMyyyy\r\n\t\t\t\r\n\t\t\tfor (Pass myPass : travelPassOfUser) {\r\n\t\t\t\tboolean is2Hours = myPass.isHours();\r\n\t\t\t\tboolean isAllDay = myPass.isAllDay();\r\n\t\t\t\tboolean isCoverDate = myPass.isCoverDate(dateOfJourney);\r\n\t\t\t\tboolean isCoverTime = myPass.isCoverTime(startTime);\r\n\t\t\t\tboolean isCoverZone = myPass.isCoverZone(departZone, arriveZone);\r\n\t\t\t\tif(isCoverZone) {\r\n\t\t\t\t\tSystem.out.println(\"Trying to fit Journey to previous your Travel Pass [\" + myPass+\"]\");\r\n\t\t\t\t\tif(is2Hours && !isCoverTime){\r\n\t\t\t\t\t\tdouble price = myPass.getPrice();\r\n\t\t\t\t\t\tdouble newPrice = new DataFactory(inputPath,outputPath).getPriceByPeriodAndZone(OPTION.ALL_DAY, myPass.getZone());\r\n\t\t\t\t\t\tSystem.out.println(\"The current Travel Pass [\" + myPass+\"] But the new Journey is outside that time:\" + startTime);\r\n\t\t\t\t\t\tdouble plusPrice = newPrice-price;\r\n\t\t\t\t\t\tplusPrice = Math.floor(plusPrice * 100) / 100;\r\n\t\t\t\t\t\t double credit = user.getCredit();\r\n\t\t\t\t\t\tif (credit < price) {\r\n\t\t\t\t\t\t\toutput.setText(Utils.showErrorDialog(\"Try upgrade your Travel pass to All day need [$\"+plusPrice+\"]. But not enough fund [$\"+credit+\"]\"+\r\n\t\t\t\t\t\t\t\t\t\t\t\t\"\\n Recharge your ticket please.\"));\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tdouble rate = user.getDiscount(startTime);\r\n\t\t\t\t\t\tuser.setCredit(credit - plusPrice*rate);\r\n\t\t\t\t\t\tString confirm = Utils.inputYesNo(\"\\n Try upgrade your Travel pass to All day need [$\"+plusPrice+\"]. \\n Do you want upgrate to All Day?\" );\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tif (confirm.equals(OPTION.NO)){\r\n\t\t\t\t\t\t\toutput.setText(\" OPTION.NO \");\r\n\t\t\t\t\t\t\treturn ; // cancel\r\n\t\t\t\t\t\t}\t\t\t\r\n\t\t\t\t\t\tnew DataFactory(inputPath,outputPath).storeUser(user);\t\t\t\t\t\r\n\t\t\t\t\t\tmyPass.setStatus(TICKET_STATUS.UPDATED);\r\n\t\t\t\t\t\tmyPass.setLength(OPTION.ALL_DAY);\r\n\t\t\t\t\t\tmyPass.setPrice(newPrice);\r\n\t\t\t\t\t\tnew DataFactory(inputPath,outputPath).storeTravelPass(myPass);\r\n\t\t\t\t\t\tjourney.setPass(myPass);\r\n\t\t\t\t\t\tupdatedPassSucces =true;\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\toutput.setText(Utils.showInformationDialog(\"Great. Updated Travel pass to All day. This is cheaper\" + myPass));\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t}else if(is2Hours && isCoverTime){\r\n\t\t\t\t\t\tUtils.showInformationDialog(\"Your Journey already fit time 2Hours: \" + myPass);\r\n\t\t\t\t\t\toutput.setText(\"Your Journey already fit time 2Hours: \" + myPass);\r\n\t\t\t\t\t\tupdatedPassSucces =true;\r\n\t\t\t\t\t\tjourney.setPass(myPass);\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t}else if(isAllDay && isCoverDate){\r\n\t\t\t\t\t\tupdatedPassSucces =true;\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\toutput.setText(Utils.showInformationDialog(\"Your Travel pass already purchased All day: \" + myPass));\r\n\t\t\t\t\t\tjourney.setPass(myPass);\r\n\t\t\t\t\t\tbreak;\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 * We could not found a better travel pass, So you need create new travel pass\r\n\t\t\t */\r\n\t\t\tif(!updatedPassSucces){\r\n\t\t\t\toutput.setText(Utils.showWarningDialog(\"We could not found a travel pass, So you need creat new travel pass. Click 'Buy Pass'\"));\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\t\r\n\t\tnew DataFactory(inputPath,outputPath).storeJourney(journey);\r\n\t\toutput.setText(\"Your journey [\"+journey.getId()+\"] is for [\"+journey.getPass().getZoneName()+\"] \" + \" starting at \" + journey.getStartTime()+\". \\n Enjoy your travel!\");\r\n\t}", "title": "" }, { "docid": "1509bd3c5986ada65cbaee274167a287", "score": "0.46184874", "text": "public void setJourneyTime(int journeyTime) {\n this.journeyTime = journeyTime;\n }", "title": "" }, { "docid": "99098063ba184c6fd9e3120e5b912d14", "score": "0.46179", "text": "public void step(SimState state) {\n\t\t\r\n\t\tif (Calendario.giorno == 2) {\r\n\t\t\t\r\n\t\t\tModel model = (Model) state;\r\n\t\t\r\n\t\t\tList<CAP> listaCAPordinata = new ArrayList<CAP>(); //lista dei CAP serviti dal dfl ordinati per domanda decrescente\r\n\t\t\r\n\t\t\tlistaCAPordinata.addAll(dfl.CAPassociati);\r\n\t\t\r\n\t\t\tlistaCAPordinata.sort(new CAPDemandComparator());\r\n\t\t\r\n\t\t\tif (dfl.inventoryWeight > 0) {\r\n\t\t\t\tif (dfl.dFLWeeklyDemand > 0) {\r\n\t\t\t\t\tfor (CAP cap : listaCAPordinata) {\r\n\t\t\t\t\t\tdouble qtaSpedita = 0;\r\n\t\t\t\t\t\tif (dfl.inventoryWeight > 0) {\r\n\t\t\t\t\t\t\tif (cap.actualDemand < dfl.inventoryWeight) {\r\n\t\t\t\t\t\t\t\tqtaSpedita = cap.actualDemand;\r\n\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\tqtaSpedita = dfl.inventoryWeight;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\tdfl.inventoryWeight = dfl.inventoryWeight - qtaSpedita;\r\n\t\t\t\t\t\t\tdfl.dFLWeeklyDemand = dfl.dFLWeeklyDemand - qtaSpedita;\r\n\t\t\t\t\t\t\tcap.actualDemand = cap.actualDemand - qtaSpedita;\r\n\t\t\t\t\t\t\tcap.weekDemandSatisfied = cap.weekDemandSatisfied + qtaSpedita;\t\t\t\t\t\r\n\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\r\n\t\t\t//System.out.println(\"DFL_DayOfDeliveryTimer\" + dfl.name + \" \" + Calendario.giorno + \" \" + Calendario.steps);\r\n\t\t}\r\n\r\n\t}", "title": "" }, { "docid": "aff2440bfe6ef9fb06cbc9b7aca30e08", "score": "0.46154383", "text": "public void camiMesCurtPassantPerLlocs(Cami actual, int o){\r\n\r\n Candidats iCan=actual.inicialitzarCandidats(o);\r\n\r\n while (! iCan.esFi()){\r\n\r\n if (actual.potSerMillor(optim,iCan,\"temps\")){\r\n\r\n actual.anotar(iCan,llocsIntermitjos,passat);\r\n\t\t\t\r\n\t\t\tIterator<Lloc> itr = llocsIntermitjos.iterator();\r\n\r\n if (! iCan.esFi())\r\n camiMesCurtPassantPerLlocs(actual,iCan.actual());\r\n\r\n if (actual.esMillor(optim,\"temps\") & actual.Complet(desti, passat)){ //actual menys temps i actual conte desti i totes les posicions de passat==true\r\n optim=actual; \r\n }\r\n\r\n actual.desanotar(iCan,llocsIntermitjos,passat); \r\n }\r\n iCan.seguent();\r\n }\r\n}", "title": "" } ]
1adc649d12f37e721e69a70fe54498d7
Sets the number of agents in the space.
[ { "docid": "51bf8114c84de1cb390946945fcfd9ee", "score": "0.0", "text": "public void setSize(int size) {\n this.size = size;\n }", "title": "" } ]
[ { "docid": "04b6c718d6cef1aca599244b282aa007", "score": "0.77203107", "text": "protected void updateNumberOfAgents() {\n setNbAgs(getEnvironmentInfraTier().getRuntimeServices().getAgentsNames().size());\n }", "title": "" }, { "docid": "aac11cd738f204cb91ee9952cde0d443", "score": "0.67117643", "text": "void setSpawnCount(int spawnCount);", "title": "" }, { "docid": "8c0b16761879dd79ac651e0151442066", "score": "0.6324365", "text": "@java.lang.Override\n public int getAgentsCount() {\n return agents_.size();\n }", "title": "" }, { "docid": "d746251ee79543076452130e518bc9e0", "score": "0.6222927", "text": "void setCount(int count);", "title": "" }, { "docid": "dceadb2615505e9be76f8e50ba22cb4b", "score": "0.61997855", "text": "public int getAgentsCount() {\n if (agentsBuilder_ == null) {\n return agents_.size();\n } else {\n return agentsBuilder_.getCount();\n }\n }", "title": "" }, { "docid": "0f94e14a551d1564e4896ee90e246b0b", "score": "0.61400634", "text": "@Override\n\tpublic int set_num_of_passengers() {\n\t\treturn 100;\n\t}", "title": "" }, { "docid": "b6c40fcb3171a228c610389c557d6611", "score": "0.6107132", "text": "public void setNumElevators(int newNumElevators) {\n\t\tif ((newNumElevators < UtilityInformation.MIN_NUM_ELEVATORS) || \n\t\t (newNumElevators > UtilityInformation.MAX_NUM_ELEVATORS)) {\n\t\t\tSystem.out.println(\"Error: Elevator value is outside of valid range.\");\n\t\t\tsuper.teardown();\n\t\t\tthis.teardown();\n\t\t\tSystem.exit(1);\n\t\t}\n\n\t\tthis.numElevators = newNumElevators;\n\n\t\t// Update all of the Floor objects that belong to this FloorSubsystem\n\t\tfor (Floor currFloor : floors) {\n\t\t\tcurrFloor.setNumElevatorShafts(newNumElevators);\n\t\t}\n\t}", "title": "" }, { "docid": "3b9efea5a292ddbaeab541b3ad7825cb", "score": "0.6035273", "text": "void setWildCreatureCount(int num);", "title": "" }, { "docid": "1280501445b0446a54df275ee6e56370", "score": "0.5974365", "text": "public void setNumOfTenters(String tenters) {\r\n\t\tthis.numOfTenters = tenters;\r\n\t}", "title": "" }, { "docid": "42da55f7c94945cac434217bf544b8f5", "score": "0.5866117", "text": "public void setCount(int value) {\n this.count = value;\n }", "title": "" }, { "docid": "abdc4d1447a478d38d576433b1491961", "score": "0.58428913", "text": "public void setManyPeople(int manyPeople) {\r\n this.manyPeople = manyPeople;\r\n }", "title": "" }, { "docid": "bec19226aa1511b715fc80829dcc4aba", "score": "0.5838937", "text": "public void setThreads(int threadCount) {\n }", "title": "" }, { "docid": "0073afbc2e6c1be7c555c844848864bb", "score": "0.5838899", "text": "public void setNumberOfTags(int num) {\n collection.findOneAndUpdate(and(eq(\"_id\", 0), eq(\"redTeam.members.deviceID\", deviceID)), set(\"redTeam.members.$.numOfTags\", num));\n collection.findOneAndUpdate(and(eq(\"_id\", 0), eq(\"blueTeam.members.deviceID\", deviceID)), set(\"blueTeam.members.$.numOfTags\", num));\n }", "title": "" }, { "docid": "1094d0e02648bc5232c24432606e0ee2", "score": "0.5802305", "text": "public Builder setCurrentManCount(int value) {\n bitField0_ |= 0x00000002;\n currentManCount_ = value;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "c1a053ecc4fd1682b633768fb1008903", "score": "0.57984114", "text": "public void setAmmoCount(int value) \n\t{\n\tfAmmoCount = value;\n\t}", "title": "" }, { "docid": "50981b9579c5be42c6c171b803b83f03", "score": "0.57744217", "text": "int getAgentsCount();", "title": "" }, { "docid": "6083a9a589c689a8a4e34ebc032167fa", "score": "0.57672465", "text": "public void setNumberOfJails(int num) {\n collection.findOneAndUpdate(and(eq(\"_id\", 0), eq(\"redTeam.members.deviceID\", deviceID)), set(\"redTeam.members.$.numOfJails\", num));\n collection.findOneAndUpdate(and(eq(\"_id\", 0), eq(\"blueTeam.members.deviceID\", deviceID)), set(\"blueTeam.members.$.numOfJails\", num));\n }", "title": "" }, { "docid": "0cef8404cb2b954303ef61da6b5adcb4", "score": "0.5763049", "text": "private void makeAgents() {\r\n\t\tagents.clear();\r\n\t\tfor (int i = 0; i < numOfAgents; i++) {\r\n\t\t\tagents.add(new Agent(env,agents));\r\n\t\t}\r\n\t\t\r\n\t}", "title": "" }, { "docid": "49b9319eaf4d05b8b57e7508625ac26e", "score": "0.57564807", "text": "public void setAgents(String agents) {\n this.agents = agents == null ? null : agents.trim();\n }", "title": "" }, { "docid": "5767a9e6985dca4e7cd4cf4964f792b5", "score": "0.5754137", "text": "public Builder setManCount(int value) {\n bitField0_ |= 0x00000002;\n manCount_ = value;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "2eb2792df1930a308ac44b96f46885f2", "score": "0.5749362", "text": "KubernetesCluster.Update withAgentVirtualMachineCount(int agentCount);", "title": "" }, { "docid": "de4546c371e3cdab381c52de1af428ac", "score": "0.5742942", "text": "public void setNumberOfPeople(Integer numberOfPeople) {\r\n this.numberOfPeople = numberOfPeople;\r\n }", "title": "" }, { "docid": "f65ee99729d33ff039526bcad6a5087c", "score": "0.5737473", "text": "public void setCount(int count) {\n\n\t}", "title": "" }, { "docid": "31616ffc0c6f0c45f2acf5024a51251b", "score": "0.5737365", "text": "public void setActionCount(int x){\r\n actionCount = x;\r\n }", "title": "" }, { "docid": "67f5315be4b90070a7ca2646711cce42", "score": "0.57263684", "text": "void setNumberOfEmployees(Integer numberOfEmployees);", "title": "" }, { "docid": "383964cb6db7bb7f9877302b2d15f3ac", "score": "0.5725868", "text": "public void setNumOfPassengers(int adults, int children, int infants) {\n $(passengerSelector).click();\n if (adults > 1) {\n for (int i = 0; i < (adults - 1); i++) {\n $(adultsPlus).click();\n }\n }\n for (int i = 0; i < children; i++) {\n $(childrenPlus).click();\n }\n for (int i = 0; i < infants; i++) {\n $(infantsPlus).click();\n }\n }", "title": "" }, { "docid": "3b649afe7df7ea9b1388325d3b8b4249", "score": "0.5724948", "text": "public void setCount(int c) {this.count = c;}", "title": "" }, { "docid": "f521ea4118b904e9a400ac50f4cc5263", "score": "0.57231665", "text": "private void setCount(int count) {\n this.count = count;\n }", "title": "" }, { "docid": "58653e9c95fc44155fbbd71e060e2998", "score": "0.5722137", "text": "public void setNUMBER_OF_ELEMENTS(int nUMBEROFELEMENTS) {\n\t\tNUMBER_OF_ELEMENTS = nUMBEROFELEMENTS;\n\t}", "title": "" }, { "docid": "c896a7ef7983e84bbdb17f7659b67995", "score": "0.5716524", "text": "public void setEateries(int num){\n\t\tthis.numRestaurants = num;\n\t}", "title": "" }, { "docid": "b240612845ec14faa4e7f3d16c254a64", "score": "0.57046723", "text": "public void setNumberOfCaptures(int num) {\n collection.findOneAndUpdate(and(eq(\"_id\", 0), eq(\"redTeam.members.deviceID\", deviceID)), set(\"redTeam.members.$.numOfCaps\", num));\n collection.findOneAndUpdate(and(eq(\"_id\", 0), eq(\"blueTeam.members.deviceID\", deviceID)), set(\"blueTeam.members.$.numOfCaps\", num));\n }", "title": "" }, { "docid": "92966125c4b5c95324ce9f244b0aaa1b", "score": "0.57032025", "text": "public void setCount(final int count) {\n\t }", "title": "" }, { "docid": "021a1aacf3a19aada84f210bc2a0e415", "score": "0.5699914", "text": "public void setNumOfViews(long value) {\r\n this.numOfViews = value;\r\n }", "title": "" }, { "docid": "72bac64a8b4b7f222485bc37192c83d8", "score": "0.5672689", "text": "public void setCount(int count){\n //set this.count to count input parameter\n this.count = count;\n }", "title": "" }, { "docid": "e04ee3d2ffca848628eceb244e838e2b", "score": "0.5656062", "text": "public void setCount(int count) {\r\n\t\t\r\n\t\tcnt = count;\r\n\t}", "title": "" }, { "docid": "ecb1aae68326c1b0f959180fedc8153b", "score": "0.5647193", "text": "void setNumberOfEmployees(Integer value);", "title": "" }, { "docid": "aca2de4730a66cb9fea7fe98384ec872", "score": "0.5644781", "text": "public int getAgentListCount() {\n return agentList_.size();\n }", "title": "" }, { "docid": "b1fa518bbe6ca55e83a1a2060e16475a", "score": "0.56419164", "text": "abstract void setCount( int index, int value );", "title": "" }, { "docid": "f7cd1c3bd7a41cbc1b0265a3cedd8e6d", "score": "0.5630637", "text": "public void setCount(int count) { this.numberOfAccesses = count; }", "title": "" }, { "docid": "eb1d02a7f57d36939dfca381a682a189", "score": "0.5620048", "text": "public void setCount(int count) {\n this.count = count;\n }", "title": "" }, { "docid": "6ce90513f324ffad1f0d31f647b403c7", "score": "0.5611998", "text": "public void setNumOfEvents(int value) {\n this.numOfEvents = value;\n }", "title": "" }, { "docid": "ec891d204cbf7156a5fac837ba0f3301", "score": "0.5609996", "text": "@Public\n @Stable\n public abstract void setNumContainers(int numContainers);", "title": "" }, { "docid": "86cd3201a61366a5b2cde537edf43776", "score": "0.5609581", "text": "public void setNoOfNodes(int noOfNodes) {\n\t\tthis.noOfNodes = noOfNodes;\n\t}", "title": "" }, { "docid": "906b0363f92246518fd1c214f5977d27", "score": "0.56027955", "text": "public void incTotalEnemies() {\n \tthis.totalEnemies++;\n }", "title": "" }, { "docid": "f82cc5b5548f482b560ec6860f3a021f", "score": "0.5592599", "text": "protected void setNumberElements(int n){\n numberElements=n;\n communityOfElement = new int[numberElements];\n}", "title": "" }, { "docid": "17283765ccf044d11cf5193083884005", "score": "0.5584294", "text": "@Override\n\tpublic void setNumThreads( final int numThreads )\n\t{\n\t}", "title": "" }, { "docid": "bd40f6fa76d9de3faaadef57589431a7", "score": "0.557622", "text": "public void setNbAgs(int n) {\n nbAgs = n;\n }", "title": "" }, { "docid": "1874c0938a513a9679e6ff4e82ef44ee", "score": "0.55696505", "text": "public void setNumInstances(int instances) {\r\n\t\tnumInstances = instances;\r\n\t}", "title": "" }, { "docid": "cc1b86917d54eee3757a27ed84259712", "score": "0.55665255", "text": "public int getNumFireStationAgents() {\n\t\treturn 1;\n\t}", "title": "" }, { "docid": "e5a701e77b30a5496f147aff7b322cd9", "score": "0.5565836", "text": "public void setCount(int i ) {\n\t\tcount = i;\n\t}", "title": "" }, { "docid": "0952c3f43c0ff737c0f6d88b479cc7cd", "score": "0.5563356", "text": "int getAgentListCount();", "title": "" }, { "docid": "f171761ae5fc4628e8e0040fc447c01e", "score": "0.5554728", "text": "public Builder setRoomCount(int value) {\n bitField0_ |= 0x00000002;\n roomCount_ = value;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "d41b02836a7904360296503d49d44024", "score": "0.5543112", "text": "public static void setNumPlayer(int value){\n numPlayers=value;\n }", "title": "" }, { "docid": "e4355bb0f6d7d692e354450e9dd8dd1d", "score": "0.5533617", "text": "void setCardsCount(int[] cardsCount) throws RemoteException;", "title": "" }, { "docid": "ec133c52d3fbfaeef5c771d5f8cc536b", "score": "0.5527104", "text": "final public void SetLvlEnemies(int varLvlEnemies) {\n lvlEnemies = varLvlEnemies;\n }", "title": "" }, { "docid": "38456524f25f23de05d3e5de5a517a03", "score": "0.5523441", "text": "public void setActingAgent(int agentNum){\n\t\tthis.actingAgent = agentNum;\n\t\tthis.jointPolicy.setTargetAgent(agentNum);\n\t}", "title": "" }, { "docid": "da98dcc1ba4579b3d361e929cb96f29a", "score": "0.5522638", "text": "KubernetesCluster.Update withAgentVirtualMachineCount(String agentPoolName, int agentCount);", "title": "" }, { "docid": "45917ff68490223ac54198894f694fc9", "score": "0.55197173", "text": "public void incrementNumConsultations() {\n\t\tnumOfConsultations += 1;\n\t}", "title": "" }, { "docid": "082c95c388cb141f363498f73192699c", "score": "0.550947", "text": "public void setNumOfObjects(int numOfObjects) {\n\t\tthis.numOfObjects = numOfObjects;\n\t}", "title": "" }, { "docid": "8dfd9f81f3c08d6593dad80f92f710b2", "score": "0.5500968", "text": "public Builder setNumAssets(long value) {\n \n numAssets_ = value;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "303a07f2fd9d5b72ede63ad3a769830e", "score": "0.5491858", "text": "@Override\r\n\tpublic void updateagents(Agents agents) {\n\t\tagentMapper.updateagents(agents);\r\n\t}", "title": "" }, { "docid": "82a8d959588013fc02337276b83621e2", "score": "0.5484834", "text": "public int getNumDroneAgents() {\n\t\treturn this.droneAgents.size();\n\t}", "title": "" }, { "docid": "787aabce14539f5ae2290fbd04253914", "score": "0.54834366", "text": "public void changeNbLives(int nbLives) { this.nbLives = this.nbLives + nbLives; }", "title": "" }, { "docid": "25ce77e86391f444d06db2c8b3b252a8", "score": "0.54763025", "text": "private void createAgents(int nombreAgents, int size, Environement env) {\n\t// Create the list of agents\n\tthis.agents = new ArrayList<Agent>();\n\n\tfor (int indexAgent = 0; indexAgent < nombreAgents; indexAgent++) {\n\t int x = Coordonnees.obtenirPositionRandom(size);\n\t int y = Coordonnees.obtenirPositionRandom(size);\n\n\t Bille newAgent = new Bille(x, y);\n\t newAgent.setEnvironnement(env);\n\t this.agents.add(newAgent);\n\t}\n }", "title": "" }, { "docid": "542e35cb37d6ee8c4568046ebe838b35", "score": "0.5471366", "text": "public int getAgentListCount() {\n if (agentListBuilder_ == null) {\n return agentList_.size();\n } else {\n return agentListBuilder_.getCount();\n }\n }", "title": "" }, { "docid": "582300815f5257eeb85b48abb0fcea4d", "score": "0.5467617", "text": "public void setNumForks(int newCount){ \n\t\tthis.count = newCount; \n\t\tif (newCount > 0) {\n\t\t\ttriggered = false;\n\t\t}\n\t}", "title": "" }, { "docid": "1abea0b5767b866746d3386687793db7", "score": "0.54670316", "text": "public void setVisits(int n) {\n visits = n;\n }", "title": "" }, { "docid": "b8dcf0680aa84da7b531ffc1412e78e9", "score": "0.54653984", "text": "public void setNumPlayers(int numPlayers) {\n if (numPlayers >= 1 || numPlayers <= 4)\r\n this.numPlayers = numPlayers;\r\n else\r\n numPlayers = 1;\r\n }", "title": "" }, { "docid": "c941bcbca42dbee95cbe180fc1ba4902", "score": "0.54520977", "text": "public Builder setMaxManCount(int value) {\n bitField0_ |= 0x00000004;\n maxManCount_ = value;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "d6c8725fda6b0fa820e787cf33cdfd7f", "score": "0.5450519", "text": "public void setNoOfCards(Integer value) {\n setAttributeInternal(NOOFCARDS, value);\n }", "title": "" }, { "docid": "3de0a8edd8296c13e483dce88de8744b", "score": "0.5445948", "text": "public void setNumberOfThreads(long value) {\n this.numberOfThreads = value;\n }", "title": "" }, { "docid": "8924dee7eb462ea2cbc7ffff1c4e6401", "score": "0.54446524", "text": "public void setCount(int count) {\n this.count = count;\n }", "title": "" }, { "docid": "7b2f894f69e2d35c2cdd8ab2e035c115", "score": "0.543794", "text": "void setPeople(int people) {\n\t\tif(people < 2)\r\n\t\t\treturn;\r\n\t\tthis.people = people;\r\n\t}", "title": "" }, { "docid": "18860da895f480fdecefc10de6568531", "score": "0.54282093", "text": "private void setCount(EntitySet entitySet) {\n if (entitySet.getCount() == null) {\n entitySet.setCount(entitySet.getEntities().size());\n }\n }", "title": "" }, { "docid": "72e4819e49f28d5cfb88f10e5b99afb4", "score": "0.5426863", "text": "public void setNumberOfElements(int v) {\n if (NGram_Type.featOkTst && ((NGram_Type)jcasType).casFeat_numberOfElements == null)\n jcasType.jcas.throwFeatMissing(\"numberOfElements\", \"hw1.nlp.NGram\");\n jcasType.ll_cas.ll_setIntValue(addr, ((NGram_Type)jcasType).casFeatCode_numberOfElements, v);}", "title": "" }, { "docid": "d9baa08f49516dfe24e6cdf6c0cfa45a", "score": "0.5417914", "text": "public void setNumberOfGames(int numberOfGames) {\n\t\tSlotMachine.numberOfGames = numberOfGames;\n\t}", "title": "" }, { "docid": "30db768a46a258dc6f62eb8cfc0d50e8", "score": "0.54124975", "text": "public void setElementCount(int newElementCount)\n {\n elementCount = newElementCount;\n }", "title": "" }, { "docid": "875852013ab699629b607b004a1203f5", "score": "0.54059774", "text": "public static void setNumberOfThreads(int numThreads) {\n cSetNumberOfThreads(numThreads);\n }", "title": "" }, { "docid": "ffcbe1bec71315ad0521d7b579a9947b", "score": "0.53928953", "text": "protected void setCount( Integer count){\tthis.count = count; }", "title": "" }, { "docid": "7365fcbc8e67a4b8aef7a341473eb4e7", "score": "0.538859", "text": "public void setNumberofWomen(Integer numberofWomen)\n/* */ {\n/* 1038 */ this.numberofWomen = numberofWomen;\n/* */ }", "title": "" }, { "docid": "dc377b88ed70fa5734d55afb2cde754a", "score": "0.53850037", "text": "public void incrementNumHouses() throws MaxHousesException {\n if (this.numHouses == 5) {\n throw new MaxHousesException(\n \"ERROR: YOU CANNOT ADD ANY MORE HOUSES TO THIS PROPERTY!\");\n } else {\n this.numHouses += 1;\n }\n }", "title": "" }, { "docid": "981de2f739d7b0b4ae4b15fd6dcc8153", "score": "0.5381752", "text": "void setNoOfStories(java.math.BigDecimal noOfStories);", "title": "" }, { "docid": "9140b64e224c68e61fee40d8be0df80e", "score": "0.5378643", "text": "public void setNumIterations(int iters);", "title": "" }, { "docid": "7c0b568776cd13ac9d8b1da232376eda", "score": "0.53619194", "text": "public void setAgents(Map<ServiceTypeEnum, ServiceStateUpdateAgent> agents)\r\n {\r\n agents_ = agents;\r\n }", "title": "" }, { "docid": "719d5011b7c070597540d46e758317ce", "score": "0.535945", "text": "void initAgents() {\n Runtime rt = Runtime.instance();\n//Create a container to host the Default Agent\n Profile p = new ProfileImpl();\n p.setParameter(Profile.MAIN_HOST, \"localhost\");\n p.setParameter(Profile.MAIN_PORT, \"10098\");\n p.setParameter(Profile.GUI, \"true\");\n ContainerController cc = rt.createMainContainer(p);\n java.lang.String[][] top = new String[6][];\n top[0] = new String[] {\"3\", \"5\", \"6\", \"2\", \"4\"};\n top[1] = new String[] {\"1\", \"3\"};\n top[2] = new String[] {\"2\", \"1\", \"4\"};\n top[3] = new String[] {\"1\", \"3\", \"5\"};\n top[4] = new String[] {\"4\", \"6\", \"1\"};\n top[5] = new String[] {\"1\", \"5\"};\n try {\n for (int i = 1; i <= MainController.numberOfAgents; i++) {\n AgentController agent = cc.createNewAgent\n (Integer.toString(i), \"ru.spbu.mas.DefaultAgent\", top[i - 1]);\n agent.start();\n }\n } catch (Exception e) {\n e.printStackTrace();\n }\n }", "title": "" }, { "docid": "075ec1b804bbc322f76115bdf4a83379", "score": "0.53550476", "text": "public void setTotalProbeCount(int count) {\n\t\tensureArraySize(count - 1);\n\t}", "title": "" }, { "docid": "dc0285b7b8586c71e479bfab5bfbb2f8", "score": "0.53469163", "text": "public void setCount(int c)\n {\n m_cPort = c;\n }", "title": "" }, { "docid": "0678a8f0ff2ac5607aa40f61507e2950", "score": "0.5346021", "text": "public void setNumOfRows()\r\n\t{\r\n\t\tnumOfRows= rows.size();\r\n\t}", "title": "" }, { "docid": "3805415a061bad0eafdaf64a4430aac2", "score": "0.5344197", "text": "public void setTournamentSize(int size){\r\n Selection.setTournamentSize(size);\r\n }", "title": "" }, { "docid": "3aede371e7c5532ed5b857919b557625", "score": "0.53382444", "text": "public void setNumberOfLegs(int newLegs) {\n this.numberOfLegs = newLegs;\n }", "title": "" }, { "docid": "c525e16555546bfbc14f7d1f4f9cec0b", "score": "0.53205013", "text": "public void setKontragents(EntityImpl value) {\n setAttributeInternal(KONTRAGENTS, value);\n }", "title": "" }, { "docid": "c32202b7ff651be1238fcf6627d35e3b", "score": "0.53135633", "text": "public void setNumIntervals(int num) {\n m_NumIntervals = num;\n }", "title": "" }, { "docid": "ff236d66d57214b422da6098c3a9b190", "score": "0.5308843", "text": "public void setNumberOfRegions(int regions) throws DeviceException;", "title": "" }, { "docid": "aa38d771eba57aa008467e29c78d5431", "score": "0.5308039", "text": "private void setNoOfParts(int noOfParts) {\r\n\tthis.noOfParts = noOfParts;\r\n }", "title": "" }, { "docid": "18aee7e912d8347f487270782e8e0ccb", "score": "0.5303018", "text": "public void setAgents(Collection multiAgents) {\n\t\t\tif (multiAgents != null) {\n\t\t\t\tIterator iter = multiAgents.iterator();\n\t\t\t\twhile (iter.hasNext()) {\n\t\t\t\t\tOnStudyChemoAgentDE onStudychemoAgentDE = (OnStudyChemoAgentDE) iter.next();\n\t\t\t\t\tgetAgentMembers().add(onStudychemoAgentDE);\n\t\t\t\t}\n\t\t\t}\n\t}", "title": "" }, { "docid": "6a2186016de4998e05fad5889b24a3d7", "score": "0.53019893", "text": "public void setNumberOfAnimals(int numberOfAnimals) {\n Animal.numberOfAnimals = numberOfAnimals;\n }", "title": "" }, { "docid": "e335f579e0b6996fe7d0fc0c9695cdd3", "score": "0.52961254", "text": "@Override\r\n\tpublic void setNumberOfNode(int numberOfNode) {\n\t\tthis.numberOfNode = numberOfNode;\r\n\t}", "title": "" }, { "docid": "b511fe192cf3570f4d71f173ae29c4b7", "score": "0.5295127", "text": "public void SetNumberOfFeatureLocations()\n\t{\n\t\tArrayList<Integer> noLocs = new ArrayList<Integer>();\n\t\t\n\t\t// remember the starting position of each feature location, but do not add it twice\n\t\tfor (UUID id : featureConstants.keySet())\n\t\t{\n\t\t\tFeatureConstant constant = FeatureExpressionCollection.GetFeatureConstant(featureConstants.get(id), id);\n\t\t\tif (!noLocs.contains(constant.start))\n\t\t\t\tnoLocs.add(constant.start);\n\t\t}\n\t\t\n\t\tthis.processedLoac = this.loac.size();\n\t\tthis.numberFeatureLocations = noLocs.size();\n\t}", "title": "" }, { "docid": "dd2ac85e7dc392e43002b55db8a87fa5", "score": "0.5286565", "text": "public void setNumber(int n)\r\n {\r\n number = n;\r\n }", "title": "" }, { "docid": "850291c4f032015f00fbde583761600f", "score": "0.5285419", "text": "public Builder setNumChildren(long value) {\n \n numChildren_ = value;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "14cb4d6a047f8cf0ada70be74e54af03", "score": "0.5283351", "text": "public void setOcc(int num)\n {\n occupier=num;\n }", "title": "" } ]
141dc82ba4e5a3bbd2cb0f5e73887c17
read spring config java class
[ { "docid": "5a92bc6b70ccdf2a9e534c9fdb33fbd0", "score": "0.0", "text": "public static void main(String[] args) {\n AnnotationConfigApplicationContext context =\n new AnnotationConfigApplicationContext(DemoConfig.class);\n\n // get the beans from spring container\n AccountDAO accountDAO = context.getBean(\"accountDAO\", AccountDAO.class);\n\n // call method to find the account\n List<Account> accounts = null;\n try {\n accounts = accountDAO.findAccounts(false);\n } catch (Exception e) {\n System.out.println(\"Main program... caught exception: \" + e);\n }\n\n // display the accounts\n System.out.println(\"Main program after throwing: \" + accounts);\n\n // close the context\n context.close();\n }", "title": "" } ]
[ { "docid": "cc6219fda5d599744ef1460ccd75dbfa", "score": "0.6302351", "text": "public Config getConfig();", "title": "" }, { "docid": "33878d816d721e9579081805b50c0dde", "score": "0.60454345", "text": "ConfigFactory getConfigFactory();", "title": "" }, { "docid": "471e915cf547710e15279f0de0ee6718", "score": "0.6038525", "text": "@Override\n\tpublic String getConfig() {\n\t\treturn config;\n\t}", "title": "" }, { "docid": "42c2038004143ab0973ecbc3b8274c1f", "score": "0.5965293", "text": "<T> T getConfiguration(String configId, Class<T> configClass);", "title": "" }, { "docid": "508c1e785bc6d66439f7aba45a96ac9f", "score": "0.5960173", "text": "public static BuildLogConfig readConfig() throws IOException, JsonParseException, JsonMappingException, NullPointerException {\n // get the config class to later map the YAML's content to\n Class<BuildLogConfig> configClass = BuildLogConfig.class;\n\n // create a YAML factory to read the YAML file\n YAMLFactory yamlFactory = new YAMLFactory();\n\n // create an object mapper to read JSON files\n ObjectMapper mapper = new ObjectMapper(yamlFactory);\n\n /*\n // get the path to the jar\n ProtectionDomain domain = BuildLogConfig.class.getProtectionDomain();\n CodeSource source = domain.getCodeSource();\n URL url = source.getLocation();\n File jarPath = new File(url.getPath());\n\n // split the path to get the last folder\n String[] paths = jarPath.getAbsolutePath().split(Pattern.quote(File.separator));\n String configPath = paths[paths.length - 1];\n */\n\n\n InputStream stream = BuildLogConfig.class.getResourceAsStream(\"/\" + path);\n if (stream != null) {\n return mapper.readValue(stream, configClass);\n }\n File file = new File(path);\n return mapper.readValue(file, configClass);\n\n /*\n // depending on the folder the code was called from either\n // - this project\n // - a project using this project as a jar\n if (configPath.equals(\"classes\")) {\n // this project\n File file = new File(path);\n\n // map the configuration within the YAMl file to a new instance of the config class\n return mapper.readValue(file, configClass);\n } else {\n // a project using this project as a jar\n InputStream stream = BuildLogConfig.class.getResourceAsStream(\"/\" + path);\n\n // map the configuration within the YAMl file to a new instance of the config class\n return mapper.readValue(stream, configClass);\n }*/\n }", "title": "" }, { "docid": "cf48fd963a201bc26d71efe0d0435316", "score": "0.59525985", "text": "public String getConfig();", "title": "" }, { "docid": "37e8728c988993498aceb11cd9544d54", "score": "0.59292746", "text": "public static Object get(String what) {\r\n return s_configuration.getBean(what);\r\n }", "title": "" }, { "docid": "73d7912ee35f6255e5a4a68973106a66", "score": "0.5917786", "text": "public Configuration getConfiguration();", "title": "" }, { "docid": "040f9b7418193742c25cfd9fd57dcef6", "score": "0.5868357", "text": "private void parseConfig(){\n\t\tthis.config = new Properties();\n\t\t//load config properties file\n\t\ttry {\t\t\t\t\n\t\t\tInputStream fis = getClass().getResourceAsStream(CONFIG_PATH);\n\t\t\tconfig.load(fis);\n\t\t\tif (fis != null)\n\t \t\tfis.close();\n\t\t} \n\t\tcatch (FileNotFoundException e){\n\t\t\tthis.writeToProbeLog(Level.SEVERE,\"config file not found\");\n\t\t} \n\t\tcatch (IOException e){\n\t\t\tthis.writeToProbeLog(Level.SEVERE,\"config file parsing error\");\n\t\t}\n\t}", "title": "" }, { "docid": "701e050d6bbfeaf0ad66f8fc994bd95b", "score": "0.5867295", "text": "private static void readConfig(){\n host = Configuration.getConfig().getString(\"MySQL.host\");\n database = Configuration.getConfig().getString(\"MySQL.database\");\n username = Configuration.getConfig().getString(\"MySQL.username\");\n password = Configuration.getConfig().getString(\"MySQL.password\");\n poolSize = Configuration.getConfig().getInt(\"MySQL.poolsize\");\n port = Configuration.getConfig().getInt(\"MySQL.port\");\n }", "title": "" }, { "docid": "701e050d6bbfeaf0ad66f8fc994bd95b", "score": "0.5867295", "text": "private static void readConfig(){\n host = Configuration.getConfig().getString(\"MySQL.host\");\n database = Configuration.getConfig().getString(\"MySQL.database\");\n username = Configuration.getConfig().getString(\"MySQL.username\");\n password = Configuration.getConfig().getString(\"MySQL.password\");\n poolSize = Configuration.getConfig().getInt(\"MySQL.poolsize\");\n port = Configuration.getConfig().getInt(\"MySQL.port\");\n }", "title": "" }, { "docid": "5d878999b2da3db5d1db370c742e4632", "score": "0.5861307", "text": "public void loadConfig();", "title": "" }, { "docid": "7b09d5b8a5b89ef576725997dc199f4e", "score": "0.58557475", "text": "public Config getConfig(){\n return config;\n }", "title": "" }, { "docid": "4bd3ab2a0d615716b31266ee5dd2266c", "score": "0.5779735", "text": "Config getHazelcastConfig(String filename);", "title": "" }, { "docid": "21946c008d0b6c55a22ae1fedffc9665", "score": "0.57690954", "text": "public interface CustomSpringConfig {\n\n\tvoid setApiPackage(String apiPackage);\n\tvoid setModelPackage(String modelPackage);\n\tboolean isBuilderSupported();\n\tvoid enableBuilderSupport();\n\tvoid excludeSupportingFiles();\n}", "title": "" }, { "docid": "11095f839343668f4d865d0660c32565", "score": "0.5755978", "text": "PSServiceConfigurationBean getConfigurationBean();", "title": "" }, { "docid": "2656f14e521c72cbf7bf884f7aefa885", "score": "0.5746987", "text": "@Override\n public void loadConfig() {\n }", "title": "" }, { "docid": "bb9f72941b93de51c12168041aeb3cb7", "score": "0.5746917", "text": "public static void main(String[] args) {\n AnnotationConfigApplicationContext ctx=new AnnotationConfigApplicationContext(\"org.example.use\");\n DataSourceConfig bean = (DataSourceConfig)ctx.getBean(\"dataSourceConfig\");\n System.out.println(bean.getDiverClass());\n ctx.close();\n System.out.println(bean);\n }", "title": "" }, { "docid": "89045549dda5f9ff21414d500d1e6099", "score": "0.5738112", "text": "Config getConfig(String pid) throws IOException ;", "title": "" }, { "docid": "026de754fc3e44d5a502bfd0aeab2a6f", "score": "0.5725888", "text": "public U getConfig() { return config; }", "title": "" }, { "docid": "d0bb1ff935a4ca97e719cf3169e35e8b", "score": "0.57066447", "text": "void readConfig(String parameter) throws RemoteException;", "title": "" }, { "docid": "5cd020eb67864e680c3facf16cf39481", "score": "0.5705129", "text": "PropertyMap getConfiguration();", "title": "" }, { "docid": "ba7c7d70dd405218aa6a3b5b7e67f72f", "score": "0.5691791", "text": "public void readConfigurations(Document configDoc);", "title": "" }, { "docid": "942875be26ccd06ecc367ef7b4daafd5", "score": "0.5686163", "text": "Map<String, String> configs();", "title": "" }, { "docid": "c787f037fe4044b52658007202d314db", "score": "0.5673138", "text": "Map<String, String> getConfiguration();", "title": "" }, { "docid": "83739fd7fce3dd272f70ee4d28aa60c5", "score": "0.56617004", "text": "protected abstract String getConfigurationProperty(String name);", "title": "" }, { "docid": "fc3983bfaf54ed3993f937d92ac98e7e", "score": "0.56545556", "text": "ClassFileLocator getClassFileLocator();", "title": "" }, { "docid": "2108aa3d78932d505a170e8b68dcc048", "score": "0.5654497", "text": "public interface ConfigurationReader {\n\n /**\n * Adds a new configuration resource.\n * \n * @param configuration\n */\n void addConfiguration(URL configuration);\n\n /**\n * Adds a new binding ie a variable which name will be evaluated reading the\n * configuration script\n */\n void addBinding(String key, Object reference);\n\n /**\n * Clear all configuration data.\n */\n void reset();\n\n /**\n * Builds configuration data.\n * \n * @return true if method complete succesfully, false otherwise.\n */\n boolean build();\n\n /**\n * Builds configuration data for the given enviroment.\n * \n * @return if method complete succesfully\n */\n boolean build(String enviroment);\n\n /*\n * Usable in edge cases, ie ...\n * \n * @param <T>\n * \n * @param key\n * \n * @param type\n * \n * @return a typed instance for the given key or null, if key not found\n */\n // <T> T get(String key, Class<T> type);\n\n /**\n * Get a configuration value\n * \n * @param key\n * @return the value of the specified key, implicitally casted as required\n * or null if something goes wrong\n */\n <T> T get(String key);\n\n Map<String, Object> getAllProperties();\n\n /*\n * \n * @param prefix\n * \n * @return a map of configurations data with key starting with prefix\n */\n Map<String, Object> getBulk(String prefix);\n\n // Map<String, Object> getBulk(String prefix, ConfigObject configObject);\n\n // void parseAppConfiguration(String appConfigurationPath);\n\n // void parseDatasetConfiguration(String datasetConfigurationPath);\n \n /**\n * \n * @return a brand new instance\n */\n ConfigurationReader getDedicatedInstance();\n\n}", "title": "" }, { "docid": "25dfa2166b608e3a8e2b08351a8ab8f3", "score": "0.5652731", "text": "public interface ConfigService {\n\n /**\n * 根据key 去配置中心取配置\n * @param key\n * @return\n */\n public String getConfigValue(String key);\n}", "title": "" }, { "docid": "29e3fc41a5f141ab48bacef3cfa6f958", "score": "0.56373394", "text": "public Properties getConfigProperty();", "title": "" }, { "docid": "1a1b95a621037c8b7a8db679ee9f6410", "score": "0.5626574", "text": "public static MappingConf parseMappingConf(){\n\t\tYamlReader reader=null;\n\t\ttry {\n\t\t\treader = new YamlReader(new FileReader(\"servicemapping.yml\"));\n\t\t} catch (FileNotFoundException e) {\n\t\t\t\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t\tMappingConf mappingConf=null;\n\t\ttry {\n\t\t\tmappingConf = reader.read(MappingConf.class);\n\t\t} catch (YamlException e) {\n\t\t\t\n\t\t\te.printStackTrace();\n\t\t}\n\n\t\treturn mappingConf;\n\t}", "title": "" }, { "docid": "5908b3460902445b50a0b56279b1dd8b", "score": "0.5600812", "text": "Class<?> getPropertyClass();", "title": "" }, { "docid": "027d455cd891641a431b4618a8d2baf6", "score": "0.55969733", "text": "public ComponentConfig getConfiguration();", "title": "" }, { "docid": "e4a219972f1efc1b95eb3f173206b0c2", "score": "0.55919534", "text": "public static String getConfig (String config) throws IOException {\r\n String resource = \"./application.properties\";\r\n\r\n Properties properties = new Properties();\r\n InputStream input = new FileInputStream(resource);\r\n\r\n properties.load(input);\r\n\r\n return properties.getProperty(config);\r\n }", "title": "" }, { "docid": "47ff53f3f95c43ea0c5b280ff31ba548", "score": "0.5590062", "text": "public abstract String getConfigurationPath();", "title": "" }, { "docid": "2cdbaace6369be87060872f1becb3895", "score": "0.55642706", "text": "private SignatureConfig getConfig(String resource) throws Exception {\n return new SignatureConfigBuilder().readFromFile(new InputStreamReader(TestUtils.getResourceAsStream(this.getClass(), resource))).build();\n }", "title": "" }, { "docid": "74e576cffce7780d834cdffa14294b6d", "score": "0.5562558", "text": "public interface WebConfig extends Config {\n /**\n * Value BASE_CONFIG.\n */\n WebConfig BASE_CONFIG = ConfigFactory.create(WebConfig.class, System.getenv(), System.getProperties());\n\n /**\n * Value service.url.\n *\n * @return url. url\n */\n @Key(\"service.url\")\n String getUrl();\n}", "title": "" }, { "docid": "7f859e7cf3077bf4edc7b12354057e76", "score": "0.5536941", "text": "public Object getConfig(String name) {\n return configs.get(name);\n }", "title": "" }, { "docid": "0e2f7b16da41f585b16fc8eac85bc0b7", "score": "0.5512914", "text": "ObjectName loadConfiguration(URI configId) throws NoSuchConfigException, IOException, InvalidConfigException;", "title": "" }, { "docid": "f3117ac95110f7f9fe67ef103d048a81", "score": "0.5508977", "text": "static Config loadCurrentConfig() throws IOException {\n if (!configFile.exists()) {\n return null;\n }\n ObjectMapper mapper = new ObjectMapper(new YAMLFactory());\n return mapper.readValue(configFile, Config.class);\n }", "title": "" }, { "docid": "20099f86415867ae0c3f6c45271ce84c", "score": "0.5508182", "text": "Config getConfig(String factoryPid, String identifier) throws IOException ;", "title": "" }, { "docid": "9be4f8af8b1f9e75bb9a831343911200", "score": "0.55050975", "text": "public Configuration getConfiguration(){\n\t\tConfiguration objReturn = null;\n\t\ttry {\n\t\t\tobjReturn = this.getConfigurationProviderObject().getConfiguration();\n\t\t} catch (ExceptionZZZ e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn objReturn;\n\t}", "title": "" }, { "docid": "486020d2e5db2aecf4b1271717b8dc51", "score": "0.5467605", "text": "public abstract Properties retrieveConfiguration() throws ConfigurationException;", "title": "" }, { "docid": "96a823705795316d788e7ae18bb8d9ad", "score": "0.54480517", "text": "public Map<String, Object> getConfiguration();", "title": "" }, { "docid": "770089b1ed76d253dfc1f154da9e0f39", "score": "0.5447013", "text": "public String getConfig() {\n\t\treturn this.config;\n\t}", "title": "" }, { "docid": "b27c1c44b3123701cc68ee1bebf99e50", "score": "0.5425832", "text": "public <T> T get(Class<T> klass) throws ConfigurationException {\n return get(klass, null);\n }", "title": "" }, { "docid": "c5afb5b092f663204d20f2aa499dcc74", "score": "0.5425694", "text": "String getConfigPath();", "title": "" }, { "docid": "9df21c5d5274f283ecae13c0f5827ee0", "score": "0.54090846", "text": "public String Config(){\n\t\treturn Config;\n\t}", "title": "" }, { "docid": "6c7b977c32d19cefa246d3618b6e0b80", "score": "0.5408356", "text": "public String getConfigurationInfo(){\n return config.toString();\n }", "title": "" }, { "docid": "d126ac7d2ea8c73a355d92eb8292fc4e", "score": "0.54026526", "text": "io.cucumber.messages.Messages.SourcesConfig getSourcesConfig();", "title": "" }, { "docid": "d1345bd332d72b67c0fbd611dc9de8e2", "score": "0.5382686", "text": "public Config createConfig();", "title": "" }, { "docid": "b081e49dd60fd094f70f60a5361f8a9c", "score": "0.53823537", "text": "protected ResourceBundle getConfig() {\n\t\treturn fConfig;\n\t}", "title": "" }, { "docid": "2add0a1e67b9b4ae97c63445646287eb", "score": "0.53808594", "text": "public HTTPRequestConfig read() {\n try {\n File fXmlFile = new File(filePath);\n DocumentBuilderFactory dbFactory = DocumentBuilderFactory\n .newInstance();\n DocumentBuilder dBuilder = dbFactory.newDocumentBuilder();\n Document doc = dBuilder.parse(fXmlFile);\n doc.getDocumentElement().normalize();\n\n Node rootNode = doc.getFirstChild();\n NodeList rootChilds = rootNode.getChildNodes();\n\n for (int i = 0; i < rootChilds.getLength(); i++) {\n Node rootChildNode = rootChilds.item(i);\n if (rootChildNode.getNodeType() != Node.ELEMENT_NODE) {\n continue;\n }\n\n switch (rootChildNode.getNodeName()) {\n case \"before\":\n readMacroConfig(rootChildNode);\n break;\n case \"request\":\n readRequestNodeConfig(rootChildNode);\n break;\n case \"after\":\n// readAfterNodeConfig(rootChildNode);\n break;\n case \"expects\":\n readExpectConfig(rootChildNode);\n break;\n case \"timeout\":\n int timeout = Integer.parseInt(rootChildNode\n .getFirstChild().getNodeValue());\n requestConfig.setTimeout(timeout);\n break;\n default:\n break;\n }\n }\n } catch (Exception e) {\n e.printStackTrace();\n }\n\n return requestConfig;\n }", "title": "" }, { "docid": "d683ca8a2836371e5262847564383656", "score": "0.53757817", "text": "@PostConstruct\r\n\tprivate void init() {\n\t\tsuper.getConfigSpring();\r\n\t}", "title": "" }, { "docid": "323978b2c303ae4b8aeb23922137c146", "score": "0.53665096", "text": "IClassResolver getClassResolver();", "title": "" }, { "docid": "7e3ac4c892fd1056f807abbb5bfa2c29", "score": "0.53605765", "text": "private static Object getConfig() {\n\treturn null;\r\n}", "title": "" }, { "docid": "433aef2869498af61661b61cf8d0dbfc", "score": "0.5347069", "text": "@Override\n public abstract IsisConfiguration getConfiguration();", "title": "" }, { "docid": "9351200e77511d45c3d9026b2717c8c2", "score": "0.5336372", "text": "public com.gensym.util.Sequence getInstanceConfigurationForClass() throws G2AccessException {\n java.lang.Object retnValue = getStaticAttributeValue (SystemAttributeSymbols.INSTANCE_CONFIGURATION_);\n return (com.gensym.util.Sequence)retnValue;\n }", "title": "" }, { "docid": "cb81aa97095b441d1a811795afb4f2d9", "score": "0.53264743", "text": "public < T > T getConfiguredClass( String classPropertyKey, Object... params );", "title": "" }, { "docid": "1e11ec6bd2d47da19fe6916bfb916364", "score": "0.53243816", "text": "void fetchConfig();", "title": "" }, { "docid": "b018dd9634191390f160bdebeb727e14", "score": "0.5318854", "text": "public interface ConfigService {\n\n /**\n * Configuration types\n */\n enum ConfigType {\n SYSTEM, MODULE, MODULE_DEFAULT, USER\n }\n\n /**\n * Get the config for the specified PID\n *\n * If it does not exist yet, create a new config\n *\n * @param pid The config PID\n * @return the Config object\n * @throws IOException exception\n */\n Config getConfig(String pid) throws IOException ;\n\n /**\n * Get the settings for the specified factory PID and identifer\n *\n * If it does not exist yet, create a new config\n *\n * @param factoryPid The factory PID\n * @param identifier The identifier\n * @return the Config object\n * @throws IOException exception\n */\n Config getConfig(String factoryPid, String identifier) throws IOException ;\n\n /**\n * Persist the changes on the config into the the Configuration Manager storage\n * @param config The config to store\n * @throws IOException exception\n */\n void storeConfig(Config config) throws IOException;\n\n /**\n * Delete the associated configuration\n *\n * @param config The config to delete\n * @throws IOException exception\n */\n void deleteConfig(Config config) throws IOException;\n\n /**\n * Get all configurations currently deployed\n *\n * @return the list of configurations files saved along with their type\n */\n Map<String, ConfigType> getAllConfigurationTypes();\n\n /**\n * Store configurations into JCR\n *\n * @return the list of configurations files saved\n */\n Collection<String> storeAllConfigurationsToJCR();\n\n /**\n * Restore configurations from JCR\n *\n * @param types The types to store, null for all configurations\n * @return the list of restored configurations\n */\n public Collection<String> restoreConfigurationsFromJCR(Collection<ConfigType> types);\n\n /**\n * Auto save configuration on change\n */\n void setAutoSaveToJCR(boolean autoSave);\n\n}", "title": "" }, { "docid": "81b6aa0afe299e7b49284b058cfb010c", "score": "0.5304313", "text": "public interface Configuration {\n String getEndpoint();\n String getRepositoryUID();\n String getBranchName();\n String getCommitHash();\n}", "title": "" }, { "docid": "482101a1a1e4ad8af656224d875a13c4", "score": "0.5297402", "text": "protected abstract JsonNode getConfig() throws Exception;", "title": "" }, { "docid": "f5878f8923b622db46202f0fc55740ba", "score": "0.528188", "text": "public static void read()\n\t{\n\t\t\n\t\tFileInputStream objfile = null;\n\t\ttry {\n\t\t\tobjfile = new FileInputStream(filePath);\n\t\t} catch (FileNotFoundException e) {\n\t\t\tSystem.out.println(\"File not found\");\n\t\t\tSystem.exit(0);\n\t\t}\n\t\ttry {\n\t\t\tobj.load(objfile); \n\t\t} catch (IOException e) {\n\t\t\tSystem.out.println(\"Unable to load the configuration file\");\n\t\t\tSystem.exit(0);\n\t\t}\n\t}", "title": "" }, { "docid": "6bf4a433dc0b8b5bcf914e4920edf010", "score": "0.52727586", "text": "@Override\n\tpublic Map<String, String> getConfiguration() {\n\t\treturn CommonUtils.getConfiguration();\n\t}", "title": "" }, { "docid": "4580c112ddbc8440f11075136b63b7b7", "score": "0.52597463", "text": "public static void readConfig() {\r\n Configuration cfg = CommonProxy.config;\r\n try {\r\n cfg.load();\r\n initConfig(cfg);\r\n } catch (Exception e1) {\r\n ModMain.logger.log(Level.ERROR, \"Problem loading config file!\", e1);\r\n } finally {\r\n if (cfg.hasChanged()) {\r\n cfg.save();\r\n }\r\n }\r\n }", "title": "" }, { "docid": "34c5450e7e9ce201bac62a6ba03baf24", "score": "0.52594703", "text": "public CanalInstanceConfigFinder(){\n super(CanalInstanceConfig.class);\n }", "title": "" }, { "docid": "ef3bb88dfe877ef58dd34aa92d459d4c", "score": "0.525608", "text": "DOMConfigurationReader(){}", "title": "" }, { "docid": "a908ac351c2dea0062b4c1ccad5faa6b", "score": "0.5254845", "text": "CB configBean();", "title": "" }, { "docid": "578e98a3e09162be821d2fb64733c4d0", "score": "0.5249038", "text": "@Override\n public Configuration getConf() {\n return configuration;\n }", "title": "" }, { "docid": "578e98a3e09162be821d2fb64733c4d0", "score": "0.5249038", "text": "@Override\n public Configuration getConf() {\n return configuration;\n }", "title": "" }, { "docid": "edc0ea6efb2285a0bfb5a3e5f2097ae5", "score": "0.52424216", "text": "private IConfigurationElement getConfigurationElement() {\r\n \t\treturn config;\r\n \t}", "title": "" }, { "docid": "cb5fd5da34c3ca56a0cb970ad04d3a9f", "score": "0.5238428", "text": "private Config() { }", "title": "" }, { "docid": "8df1b7ac54847949103f17303d114d2b", "score": "0.5232438", "text": "String[] getConfigurations(Bundle bundle);", "title": "" }, { "docid": "c9d684ffae870f316a0373c818e6363e", "score": "0.5229505", "text": "private CurationServiceConfig(ServletConfig conf) {\n readContextParams(conf.getServletContext());\n }", "title": "" }, { "docid": "2d44438d2f8babedf75600318c75654c", "score": "0.5224596", "text": "public static void main(String[] args) {\n\t\tApplicationContext ctx=new ClassPathXmlApplicationContext(\"com/Kamal/Spring/PropertyPlaceHolder/config.xml\");\n\t\tMyDAO md=(MyDAO)ctx.getBean(\"dao\");\n\t\tSystem.out.println(md);\n\t}", "title": "" }, { "docid": "fe200643dcb08d0b376a7b39e2f854d4", "score": "0.5223633", "text": "public String getConfigValue(String key)\n {\n String value = null;\n if (springEnv != null)\n {\n value = springEnv.getProperty(key);\n }\n return value;\n }", "title": "" }, { "docid": "e199784d17a558c545516143df876cc0", "score": "0.52206963", "text": "public static FileConfiguration getConfig() {\n return config;\n }", "title": "" }, { "docid": "8f8f07d44ae0d8c9b837abf5424a0ea2", "score": "0.521714", "text": "public RequestConfig getConfig() {\n/* 95 */ return this.config;\n/* */ }", "title": "" }, { "docid": "052a3ebf3255a01db10b6a0252b924dc", "score": "0.5206602", "text": "public String get(String name) {\n return conf.get(name);\n }", "title": "" }, { "docid": "4f25da74e5e4f697d48f93982219d70d", "score": "0.520349", "text": "public static <T> T loadConfig(Class<T> clazz) {\n String configName;\n if (clazz.isAnnotationPresent(ConfigFile.class)) {\n ConfigFile annotation = clazz.getAnnotation(ConfigFile.class);\n configName = annotation.name() + annotation.extension();\n } else {\n configName = clazz.getSimpleName() + DEFAULT_EXTENSION;\n }\n return loadConfig(clazz, configName);\n }", "title": "" }, { "docid": "43ceef40c1793b663c8a70b76f72be2f", "score": "0.5194993", "text": "public final FileConfig getConfig() {\n return meta.getConfig();\n }", "title": "" }, { "docid": "f9c4da2c088f1b306f7f27a14d3f62d7", "score": "0.5180337", "text": "private static Element readConfigFile() throws ParserConfigurationException, SAXException, IOException{\r\n\t\t\r\n\t\tDocumentBuilderFactory docBuilderFactory = DocumentBuilderFactory.newInstance();\r\n DocumentBuilder docBuilder = docBuilderFactory.newDocumentBuilder();\r\n document = docBuilder.parse (new File(ConfigXML.FILE_NAME));\r\n\r\n // normalize text representation\r\n //doc.getDocumentElement ().normalize ();\r\n return document.getDocumentElement();\r\n\t}", "title": "" }, { "docid": "bc88c2ad29495f3919b7cb6a1b9f0db1", "score": "0.5180329", "text": "@Override\r\n\tpublic String getConfigType()\r\n\t{\r\n\t\treturn configType;\r\n\t}", "title": "" }, { "docid": "334e338053dd260224f2aa67ae301ee5", "score": "0.5180063", "text": "public void loadConfigBean() throws IOException{\n PropertiesManager prop = new PropertiesManager();\n prop.loadPropertiesTxtFile(config, \"\", \"ConfigurationEmail\");\n }", "title": "" }, { "docid": "afcd8ecad79df67eb27faabb2b96b45e", "score": "0.5177938", "text": "public Object fetchpropvaluemethod(String key) throws IOException\n\t{\n\t\tFileInputStream file=new FileInputStream(System.getProperty(\"user.dir\")+\"\\\\src\\\\config_files\\\\config1.properties\");\n// benifit of user.dir= if migrating this code to another system then some one else use this code then \n//System.getProperty(\"user.dir\") will give you the current location of your propeject \n\t\tProperties prop=new Properties();\n\t\tprop.load(file);\n//\t\tSystem.out.println(prop.getProperty(\"url\"));\n//\t\tSystem.out.println(prop.getProperty(\"name\"));\n\t\treturn prop.getProperty(key);\n\t}", "title": "" }, { "docid": "bb465d3cdb18bc39cd59ea18e35e5d8e", "score": "0.5175954", "text": "public String getConfigType();", "title": "" }, { "docid": "bb9c863161778e279c81ace9fbcf253b", "score": "0.5175541", "text": "public interface Configuration {\n\n String PROFILES = \"profiles\";\n\n String PROFILES_PRODUCTION = \"prod\";\n String PROFILES_TEST = \"test\";\n\n String DEFAULT_HANDLER_CLASS = \"defaultHandlerClass\";\n String SERVICE_PACKAGE = \"servicePackage\";\n\n String SERVICE_PORT = \"svc.port\";\n\n}", "title": "" }, { "docid": "5dc3e0bad6708be80d13cf41fe5190c3", "score": "0.51703686", "text": "public static void main(String[] args) {\n AnnotationConfigApplicationContext applicationContext = new AnnotationConfigApplicationContext(MainConfig.class);\n for (String beanDefinitionName : applicationContext.getBeanDefinitionNames()) {\n System.out.println(\"bean的名称:\"+beanDefinitionName);\n }\n }", "title": "" }, { "docid": "4ea087d4d5b3f2802ebd27a18107c4bc", "score": "0.5169666", "text": "@Test\n\tpublic void getBean() {\n\t\tInputStream resourceAsStream = SimpleIOC.class.getClassLoader().getResourceAsStream(\"ioc.xml\");\n\t\tSimpleIOC bf = new SimpleIOC(resourceAsStream);\n\t\tWheel wheel = (Wheel) bf.getBean(\"wheel\");\n System.out.println(wheel);\n\t\tCar car = (Car)bf.getBean(\"car\");\n\t\tSystem.out.println(car);\t\t\n\t}", "title": "" }, { "docid": "3e8e66d079b0e72a00e3654022007f2a", "score": "0.5169503", "text": "public static void main(String[] args) {\n\n ApplicationContext app = new FileSystemXmlApplicationContext(\"src/main/resources/spring/applicationContext.xml\");\n Car ca = app.getBean(\"myCar\",Car.class);\n System.out.println(ca);\n }", "title": "" }, { "docid": "32072215337150336ffc1176133a66ee", "score": "0.5165406", "text": "public void loadConfig() {\n\t\tprop = new Properties();\n\t\t// Constructor\n\t\ttry {\n\t\t\tFileInputStream ip = new FileInputStream(System.getProperty(\"user.dir\") + \"\\\\src\\\\main\\\\java\\\\com\\\\qa\\\\config\\\\config.properties\");\n\t\t\tprop.load(ip);\n\t\t\tlog.info(\"Config File has been loaded\");\n\t\t\t\n\t\t}\n\t\tcatch(FileNotFoundException e ){\n\t\t\tlog.info(\"Exceptions Occurs--\"+e.getMessage());\n\t\t\te.printStackTrace();\n\t\t}\n\t\tcatch(IOException e){\n\t\t\tlog.info(\"Exceptions Occurs--\"+e.getMessage());\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "title": "" }, { "docid": "5f6d4cefb3dc1b505ea50e0f3cbbe21b", "score": "0.51540864", "text": "public final Config getConfig() {\n return this.config;\n }", "title": "" }, { "docid": "5c1b65af46d18d674b5d0b89a1cb50d6", "score": "0.5152864", "text": "public static String currentConfiguration()\n {\n StringBuffer rtn = new StringBuffer(1024);\n\n String loggingConfigClass = System.getProperty(\"java.util.logging.config.class\");\n String loggingConfigFile = System.getProperty(\"java.util.logging.config.file\");\n boolean configClassOK = false;\n\n if (loggingConfigClass == null)\n {\n rtn.append(\"No java.util.logging.config.class class is set.\\n\");\n }\n else\n {\n rtn.append(\"java.util.logging.config.class is set to '\").append(loggingConfigClass).append(\"'\\n\");\n\n try\n {\n Class c = Class.forName(loggingConfigClass);\n c.newInstance();\n rtn.append(\"This class was loaded and a new instance was sucessfully created.\\n\");\n configClassOK = true;\n }\n catch (ClassNotFoundException e)\n {\n e = null;\n rtn.append(loggingConfigClass).append(\" could not be found.\");\n }\n catch (InstantiationException e)\n {\n e = null;\n rtn.append(loggingConfigClass).append(\" could not be instantiated.\");\n }\n catch (IllegalAccessException e)\n {\n e = null;\n rtn.append(loggingConfigClass).append(\" could not be accessed.\");\n }\n }\n\n if (loggingConfigFile == null)\n {\n rtn.append(\"No java.util.logging.config.file file is set.\\n\");\n }\n else\n {\n rtn.append(\"java.util.logging.config.file is set to '\").append(loggingConfigFile).append(\"'\\n\");\n\n File loggingFile = new File(loggingConfigFile);\n rtn.append(loggingFile.getAbsolutePath()).append(\"\\n\");\n\n if (!loggingFile.exists() || !loggingFile.isFile())\n {\n rtn.append(\"This file does NOT EXIST.\\n\");\n }\n\n if (loggingConfigClass != null)\n {\n if (configClassOK)\n {\n rtn.append(\"This file is ignored because java.util.logging.config.class is set.\\n\");\n }\n }\n }\n\n Handler[] handlers = Logger.getLogger(\"\").getHandlers();\n listHandlers(handlers, rtn);\n\n return rtn.toString();\n }", "title": "" }, { "docid": "4c9b25ecb980e5edae66c15e737a2fc7", "score": "0.5152735", "text": "ApplicationGatewayGetConfiguration getConfig(String gatewayName) throws IOException, ServiceException, ParserConfigurationException, SAXException;", "title": "" }, { "docid": "b6f6103b3b524b618aeb8cff487ef3d2", "score": "0.51526886", "text": "private void readConfig() throws IOException {\n\t\tthis.databaseProperties = new Properties();\r\n\t\tURL url = ClassLoader.getSystemResource(\"database.properties\");\r\n\t\tthis.databaseProperties.load(url.openStream());\r\n\t\t/*\r\n\t\t * If I were to read it from startup directory\r\n\t\t * \r\n\t\t * java.util.Properties props = new java.util.Properties(); String path\r\n\t\t * = getClass().getProtectionDomain().getCodeSource().\r\n\t\t * getLocation().toString().substring(6); java.io.FileInputStream fis =\r\n\t\t * new java.io.FileInputStream (new java.io.File( path +\r\n\t\t * \"\\\\myprops.props\")); props.load(fis); System.out.println(props);\r\n\t\t */\r\n\t}", "title": "" }, { "docid": "9721a34fb00f778cf16be63f19ab3d80", "score": "0.51452637", "text": "public CoderParams getConfig() {\n return config;\n }", "title": "" }, { "docid": "425e32f7518ce8ef9f2febf4fd2244e2", "score": "0.51442564", "text": "private Config() {\n\n\t}", "title": "" }, { "docid": "9b5d9611674ec541df75e21068ec1895", "score": "0.5137536", "text": "public static void main(String[] args) {\n\n AnnotationConfigApplicationContext annotationConfigApplicationContext =\n new AnnotationConfigApplicationContext(MainConfig.class);\n Person person = (Person) annotationConfigApplicationContext.getBean(\"person\");\n System.out.println(person);\n String[] beanDefinitionNames = annotationConfigApplicationContext.getBeanDefinitionNames();\n for (String beanDefinitionName : beanDefinitionNames) {\n System.out.println(beanDefinitionName);\n }\n }", "title": "" }, { "docid": "7bd64d13fd01073d8692c2f111ae5df6", "score": "0.5136345", "text": "public static String getPropertyValue(String key){\n\t\tString value=\"\";\n\t\ttry{\n\t\tProperties prop = new Properties();\n\t\tprop.load(GetPropertyValue.class.getResourceAsStream(\"/config.properties\"));\n\t\tvalue= prop.getProperty(key);\n\t\t}\n\t\tcatch (FileNotFoundException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\tcatch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn value;\n\t}", "title": "" }, { "docid": "63a3fee539f67d01cedd36cd785d1834", "score": "0.5136252", "text": "private static synchronized void loadConfigsForSource(String source) {\n // If DNE in parserConfigMap then load\n if (!parserConfigMap.containsKey(source)) {\n try {\n StringBuilder jsonData = new StringBuilder();\n InputStream i = ParserFactory.class.getClassLoader().getResourceAsStream(String.format(CONFIG_PATH, source));\n BufferedReader r = new BufferedReader(new InputStreamReader(i));\n\n String line;\n while ((line = r.readLine()) != null) {\n jsonData.append(line);\n }\n i.close();\n\n ObjectMapper mapper = (new ObjectMapper()).registerModule(new JodaModule());\n JsonNode config = mapper.readTree(jsonData.toString());\n JsonNode sourceName = config.at(Constants.ESCAPED_SOURCE);\n LOGGER.debug(\"Config for source\" + sourceName.toString() + \"is : \" + jsonData.toString());\n if (!sourceName.isMissingNode() && sourceName.isTextual() && sourceName.asText() != null) {\n loadCrawlConfig(config);\n loadParsingConfig(config);\n } else {\n String error = String.format(\"Exception=ConfigFactoryError source name is missing \" + \"from the config for the source=%s\", source);\n logAndThrowException(error);\n }\n } catch (Exception ex) {\n String error = String.format(\"Exception=ConfigFactoryError Error loading configs for the source=%s\",source);\n logAndThrowException(error, ex);\n }\n }\n }", "title": "" } ]
99a3a829606267fe1861b9d90271790e
Gets the inner com.azure.resourcemanager.mediaservices.fluent.models.AssetTrackOperationStatusInner object.
[ { "docid": "28d6594c17670e1c7113066e980ab666", "score": "0.69381714", "text": "AssetTrackOperationStatusInner innerModel();", "title": "" } ]
[ { "docid": "ca0c94d4385aa056292bdb55132c2bf3", "score": "0.6594709", "text": "public interface AssetTrackOperationStatus {\n /**\n * Gets the name property: Operation identifier.\n *\n * @return the name value.\n */\n String name();\n\n /**\n * Gets the id property: Operation resource ID.\n *\n * @return the id value.\n */\n String id();\n\n /**\n * Gets the startTime property: Operation start time.\n *\n * @return the startTime value.\n */\n OffsetDateTime startTime();\n\n /**\n * Gets the endTime property: Operation end time.\n *\n * @return the endTime value.\n */\n OffsetDateTime endTime();\n\n /**\n * Gets the status property: Operation status.\n *\n * @return the status value.\n */\n String status();\n\n /**\n * Gets the error property: The error detail.\n *\n * @return the error value.\n */\n ManagementError error();\n\n /**\n * Gets the inner com.azure.resourcemanager.mediaservices.fluent.models.AssetTrackOperationStatusInner object.\n *\n * @return the inner object.\n */\n AssetTrackOperationStatusInner innerModel();\n}", "title": "" }, { "docid": "224267cae31a49fc4852236351a15622", "score": "0.54497564", "text": "public OperationStatus getOperationStatus() {\n return this.operationStatus;\n }", "title": "" }, { "docid": "526efdd93c9f0222fa106e7c4a11f83d", "score": "0.49857965", "text": "public int getStatus() {\n if (progress != null && progress.getAttributes() != null) {\n return progress.getStatus();\n }\n return status;\n }", "title": "" }, { "docid": "13ede9c0aa965480c952f22c16b97d12", "score": "0.49522132", "text": "public UploadStatus getStatus() {\n return status;\n }", "title": "" }, { "docid": "69e45d9cf814a5919cb79a7caf913dc6", "score": "0.47667214", "text": "public io.toit.proto.toit.model.JobProto.JobStatusOrBuilder getStatusOrBuilder() {\n if (statusBuilder_ != null) {\n return statusBuilder_.getMessageOrBuilder();\n } else {\n return status_ == null ?\n io.toit.proto.toit.model.JobProto.JobStatus.getDefaultInstance() : status_;\n }\n }", "title": "" }, { "docid": "d8aa371643ee3001619f62057c208ec6", "score": "0.47205046", "text": "public Integer getOpstatus() {\n return opstatus;\n }", "title": "" }, { "docid": "c3e7321565516a584ee803276f2532d8", "score": "0.4707359", "text": "public io.kubernetes.client.proto.V1beta1Extensions.IngressStatusOrBuilder\n getStatusOrBuilder() {\n if (statusBuilder_ != null) {\n return statusBuilder_.getMessageOrBuilder();\n } else {\n return status_ == null\n ? io.kubernetes.client.proto.V1beta1Extensions.IngressStatus.getDefaultInstance()\n : status_;\n }\n }", "title": "" }, { "docid": "96e2777397a1c746694566db52e65165", "score": "0.47039804", "text": "public io.toit.proto.toit.model.JobProto.JobStatus getStatus() {\n if (statusBuilder_ == null) {\n return status_ == null ? io.toit.proto.toit.model.JobProto.JobStatus.getDefaultInstance() : status_;\n } else {\n return statusBuilder_.getMessage();\n }\n }", "title": "" }, { "docid": "602d0d99dafc3bb8fff3d3f30717f4c2", "score": "0.46854547", "text": "public Float getStatus() {\n return status;\n }", "title": "" }, { "docid": "ce28b051c05f500e228615765c4cb06a", "score": "0.46227634", "text": "public long getStatus() {\n return status_;\n }", "title": "" }, { "docid": "b072b3ee2842d8f7bae708e3aa75772b", "score": "0.46188685", "text": "public ResultStatusEnum getStatus() {\n return status;\n }", "title": "" }, { "docid": "e3e3bb27d422edf224d1bb533e7f2d90", "score": "0.4615451", "text": "public StatusEnum getStatus() {\n\t\treturn status;\n\t}", "title": "" }, { "docid": "5828d7c888cb7a1cd87c12e01a361e30", "score": "0.4605927", "text": "public io.toit.proto.toit.model.JobProto.JobStatusOrBuilder getStatusOrBuilder() {\n return getStatus();\n }", "title": "" }, { "docid": "fcae52e4a736fa22aee49fb34d729755", "score": "0.45973226", "text": "public long getStatus() {\n return status_;\n }", "title": "" }, { "docid": "37d1be87960c5bc959d9bba8dced3466", "score": "0.45920718", "text": "public Float getStatus() {\n return status;\n }", "title": "" }, { "docid": "50d9ced59e0939a704b742f816616006", "score": "0.4588481", "text": "public io.kubernetes.client.proto.V1beta1Extensions.IngressStatus getStatus() {\n if (statusBuilder_ == null) {\n return status_ == null\n ? io.kubernetes.client.proto.V1beta1Extensions.IngressStatus.getDefaultInstance()\n : status_;\n } else {\n return statusBuilder_.getMessage();\n }\n }", "title": "" }, { "docid": "a8bad02936cb2487c0cbac6bef906082", "score": "0.45695922", "text": "public io.kubernetes.client.proto.V1beta1Extensions.IngressStatusOrBuilder\n getStatusOrBuilder() {\n return status_ == null\n ? io.kubernetes.client.proto.V1beta1Extensions.IngressStatus.getDefaultInstance()\n : status_;\n }", "title": "" }, { "docid": "32198f87f764e6bace54864566a51cfd", "score": "0.456269", "text": "public io.kubernetes.client.proto.V1beta1Extensions.DaemonSetStatusOrBuilder\n getStatusOrBuilder() {\n return status_ == null\n ? io.kubernetes.client.proto.V1beta1Extensions.DaemonSetStatus.getDefaultInstance()\n : status_;\n }", "title": "" }, { "docid": "af6edd0efe5df43de390c9347cfef997", "score": "0.45580027", "text": "public io.kubernetes.client.proto.V1beta1Extensions.DaemonSetStatusOrBuilder\n getStatusOrBuilder() {\n if (statusBuilder_ != null) {\n return statusBuilder_.getMessageOrBuilder();\n } else {\n return status_ == null\n ? io.kubernetes.client.proto.V1beta1Extensions.DaemonSetStatus.getDefaultInstance()\n : status_;\n }\n }", "title": "" }, { "docid": "aa6192e9ae705440e97a17e502a816e4", "score": "0.45386487", "text": "public Object getStatus() {\n\t\treturn status;\n\t}", "title": "" }, { "docid": "d5625fa799c1da609019aec51862f9bb", "score": "0.4525439", "text": "public int getStatusValue() {\n return status_;\n }", "title": "" }, { "docid": "d5625fa799c1da609019aec51862f9bb", "score": "0.4525439", "text": "public int getStatusValue() {\n return status_;\n }", "title": "" }, { "docid": "d5625fa799c1da609019aec51862f9bb", "score": "0.4525439", "text": "public int getStatusValue() {\n return status_;\n }", "title": "" }, { "docid": "a12ea05a23ac6616e9852e77cc6bdecf", "score": "0.45166853", "text": "public io.toit.proto.toit.model.JobProto.JobStatus getStatus() {\n return status_ == null ? io.toit.proto.toit.model.JobProto.JobStatus.getDefaultInstance() : status_;\n }", "title": "" }, { "docid": "38f75b07ff4b8715d420d5f7927bf183", "score": "0.4513964", "text": "public java.lang.Object getStatus() {\n return status;\n }", "title": "" }, { "docid": "11db29a58f7b545c2aa9c180ecc771b1", "score": "0.4505481", "text": "public float getStatus() {\n\t\treturn status;\n\t}", "title": "" }, { "docid": "f5bca6d10d4f93eef8424da5c4b2e721", "score": "0.44947696", "text": "alluxio.grpc.SyncPointStatus getSyncStatus();", "title": "" }, { "docid": "6efe2c112f2fee85eb745a297e23d3b8", "score": "0.44852647", "text": "public int getConceptStatus() {\n\t\tif(isParentFinding())\n\t\t\treturn getFeature().conceptStatus;\n\t\treturn conceptStatus;\n\t}", "title": "" }, { "docid": "094d85441cb990e6330c8655cb068204", "score": "0.4482676", "text": "public int getStatus() {\n return status_;\n }", "title": "" }, { "docid": "739fe2606c314dc0af2cff978c982c38", "score": "0.44818342", "text": "public AnalysisStatusWsResponse analysisStatus(AnalysisStatusRequest request) {\n return call(\n new GetRequest(path(\"analysis_status\"))\n .setParam(\"branch\", request.getBranch())\n .setParam(\"component\", request.getComponent())\n .setParam(\"pullRequest\", request.getPullRequest()),\n AnalysisStatusWsResponse.parser());\n }", "title": "" }, { "docid": "1a006e4c28e78d19ea5d6d2172649f16", "score": "0.44773066", "text": "public com.ua.mytrinity.tv_client.proto.MovieServer.AddFavoriteMovieResponse.Result getStatus() {\n @SuppressWarnings(\"deprecation\")\n com.ua.mytrinity.tv_client.proto.MovieServer.AddFavoriteMovieResponse.Result result = com.ua.mytrinity.tv_client.proto.MovieServer.AddFavoriteMovieResponse.Result.valueOf(status_);\n return result == null ? com.ua.mytrinity.tv_client.proto.MovieServer.AddFavoriteMovieResponse.Result.OK : result;\n }", "title": "" }, { "docid": "1e73800e2317bffc06dfcdbf00aafd0f", "score": "0.44755933", "text": "public Status getStatus() {\r\n return status;\r\n }", "title": "" }, { "docid": "1e73800e2317bffc06dfcdbf00aafd0f", "score": "0.44755933", "text": "public Status getStatus() {\r\n return status;\r\n }", "title": "" }, { "docid": "bcb6ccf70c84a3b5b004bddc6514156c", "score": "0.4472974", "text": "public Integer getStatus() {\n return status;\n }", "title": "" }, { "docid": "bcb6ccf70c84a3b5b004bddc6514156c", "score": "0.4472974", "text": "public Integer getStatus() {\n return status;\n }", "title": "" }, { "docid": "bcb6ccf70c84a3b5b004bddc6514156c", "score": "0.4472974", "text": "public Integer getStatus() {\n return status;\n }", "title": "" }, { "docid": "bcb6ccf70c84a3b5b004bddc6514156c", "score": "0.4472974", "text": "public Integer getStatus() {\n return status;\n }", "title": "" }, { "docid": "bcb6ccf70c84a3b5b004bddc6514156c", "score": "0.4472974", "text": "public Integer getStatus() {\n return status;\n }", "title": "" }, { "docid": "bcb6ccf70c84a3b5b004bddc6514156c", "score": "0.4472974", "text": "public Integer getStatus() {\n return status;\n }", "title": "" }, { "docid": "bcb6ccf70c84a3b5b004bddc6514156c", "score": "0.4472974", "text": "public Integer getStatus() {\n return status;\n }", "title": "" }, { "docid": "bcb6ccf70c84a3b5b004bddc6514156c", "score": "0.4472974", "text": "public Integer getStatus() {\n return status;\n }", "title": "" }, { "docid": "bcb6ccf70c84a3b5b004bddc6514156c", "score": "0.4472974", "text": "public Integer getStatus() {\n return status;\n }", "title": "" }, { "docid": "bcb6ccf70c84a3b5b004bddc6514156c", "score": "0.4472974", "text": "public Integer getStatus() {\n return status;\n }", "title": "" }, { "docid": "bcb6ccf70c84a3b5b004bddc6514156c", "score": "0.4472974", "text": "public Integer getStatus() {\n return status;\n }", "title": "" }, { "docid": "bcb6ccf70c84a3b5b004bddc6514156c", "score": "0.4472974", "text": "public Integer getStatus() {\n return status;\n }", "title": "" }, { "docid": "bcb6ccf70c84a3b5b004bddc6514156c", "score": "0.4472974", "text": "public Integer getStatus() {\n return status;\n }", "title": "" }, { "docid": "bcb6ccf70c84a3b5b004bddc6514156c", "score": "0.4472974", "text": "public Integer getStatus() {\n return status;\n }", "title": "" }, { "docid": "bcb6ccf70c84a3b5b004bddc6514156c", "score": "0.4472974", "text": "public Integer getStatus() {\n return status;\n }", "title": "" }, { "docid": "bcb6ccf70c84a3b5b004bddc6514156c", "score": "0.4472974", "text": "public Integer getStatus() {\n return status;\n }", "title": "" }, { "docid": "bcb6ccf70c84a3b5b004bddc6514156c", "score": "0.4472974", "text": "public Integer getStatus() {\n return status;\n }", "title": "" }, { "docid": "3d7fb2a2b3eaa05f5f34ff8487ce918e", "score": "0.4470779", "text": "public String getUploadStatus() {\n return mUploadStatus;\n }", "title": "" }, { "docid": "9f62ef333a8782af0bc69f0e135eae98", "score": "0.44666794", "text": "public io.kubernetes.client.proto.V1beta1Extensions.IngressStatus.Builder getStatusBuilder() {\n bitField0_ |= 0x00000004;\n onChanged();\n return getStatusFieldBuilder().getBuilder();\n }", "title": "" }, { "docid": "b9e691b52a0305b76adfcebf81d70ad1", "score": "0.44661084", "text": "com.clarifai.grpc.api.status.StatusOrBuilder getStatusOrBuilder();", "title": "" }, { "docid": "98ab41b2d207e20a768b9aa88194c72f", "score": "0.44650033", "text": "public int getStatusValue() {\n return status_;\n }", "title": "" }, { "docid": "98ab41b2d207e20a768b9aa88194c72f", "score": "0.44650033", "text": "public int getStatusValue() {\n return status_;\n }", "title": "" }, { "docid": "98ab41b2d207e20a768b9aa88194c72f", "score": "0.44650033", "text": "public int getStatusValue() {\n return status_;\n }", "title": "" }, { "docid": "50ed32ab3d232e34dfea202ea99b9bdf", "score": "0.44550118", "text": "public com.google.protobuf.ByteString getStatusInfo() {\n return instance.getStatusInfo();\n }", "title": "" }, { "docid": "50ed32ab3d232e34dfea202ea99b9bdf", "score": "0.44550118", "text": "public com.google.protobuf.ByteString getStatusInfo() {\n return instance.getStatusInfo();\n }", "title": "" }, { "docid": "cc11db184c15273f2305f6ea7437f680", "score": "0.44539556", "text": "public com.google.protobuf.ByteString getStatusInfo() {\n return statusInfo_;\n }", "title": "" }, { "docid": "cc11db184c15273f2305f6ea7437f680", "score": "0.44539556", "text": "public com.google.protobuf.ByteString getStatusInfo() {\n return statusInfo_;\n }", "title": "" }, { "docid": "4d9865dd1ffbd883081ae19326a7830a", "score": "0.44518286", "text": "public Status getStatus() {\n\t\treturn status;\n\t}", "title": "" }, { "docid": "4d9865dd1ffbd883081ae19326a7830a", "score": "0.44518286", "text": "public Status getStatus() {\n\t\treturn status;\n\t}", "title": "" }, { "docid": "2db78dd36e6199261a764f84d43a53f7", "score": "0.44510978", "text": "public Integer getStatus() {\n\t\treturn status;\n\t}", "title": "" }, { "docid": "2db78dd36e6199261a764f84d43a53f7", "score": "0.44510978", "text": "public Integer getStatus() {\n\t\treturn status;\n\t}", "title": "" }, { "docid": "2db78dd36e6199261a764f84d43a53f7", "score": "0.44510978", "text": "public Integer getStatus() {\n\t\treturn status;\n\t}", "title": "" }, { "docid": "f1f5e6c83f0edad5c4bedf7a9c8a68ad", "score": "0.44510803", "text": "public java.lang.String getStatus() {\n java.lang.Object ref = status_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs = \n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n status_ = s;\n return s;\n }\n }", "title": "" }, { "docid": "754f03f6bb1604f4dff458f4fef265a4", "score": "0.44503802", "text": "public io.kubernetes.client.proto.V1beta1Extensions.ScaleStatusOrBuilder\n getStatusOrBuilder() {\n if (statusBuilder_ != null) {\n return statusBuilder_.getMessageOrBuilder();\n } else {\n return status_ == null\n ? io.kubernetes.client.proto.V1beta1Extensions.ScaleStatus.getDefaultInstance()\n : status_;\n }\n }", "title": "" }, { "docid": "4e6f7b956f96ead7340f2112f3c59cef", "score": "0.44500318", "text": "public com.ua.mytrinity.tv_client.proto.MovieServer.AddFavoriteMovieResponse.Result getStatus() {\n @SuppressWarnings(\"deprecation\")\n com.ua.mytrinity.tv_client.proto.MovieServer.AddFavoriteMovieResponse.Result result = com.ua.mytrinity.tv_client.proto.MovieServer.AddFavoriteMovieResponse.Result.valueOf(status_);\n return result == null ? com.ua.mytrinity.tv_client.proto.MovieServer.AddFavoriteMovieResponse.Result.OK : result;\n }", "title": "" }, { "docid": "6ac315fdfa96a43e1890bbdd952c4b7e", "score": "0.44458076", "text": "private com.google.protobuf.SingleFieldBuilderV3<\n io.kubernetes.client.proto.V1beta1Extensions.IngressStatus,\n io.kubernetes.client.proto.V1beta1Extensions.IngressStatus.Builder,\n io.kubernetes.client.proto.V1beta1Extensions.IngressStatusOrBuilder>\n getStatusFieldBuilder() {\n if (statusBuilder_ == null) {\n statusBuilder_ =\n new com.google.protobuf.SingleFieldBuilderV3<\n io.kubernetes.client.proto.V1beta1Extensions.IngressStatus,\n io.kubernetes.client.proto.V1beta1Extensions.IngressStatus.Builder,\n io.kubernetes.client.proto.V1beta1Extensions.IngressStatusOrBuilder>(\n getStatus(), getParentForChildren(), isClean());\n status_ = null;\n }\n return statusBuilder_;\n }", "title": "" }, { "docid": "5eadcfc3197fb33627ad6f18aa4b36de", "score": "0.44401684", "text": "public Status status() {\n return this.status;\n }", "title": "" }, { "docid": "5ae7aef9bb002dc6d6c6a2e500122d88", "score": "0.44366783", "text": "public int getStatus() {\n return status_;\n }", "title": "" }, { "docid": "5ae7aef9bb002dc6d6c6a2e500122d88", "score": "0.44366783", "text": "public int getStatus() {\n return status_;\n }", "title": "" }, { "docid": "dc9a0ffd1ec879c2d2ac0527bc728d7c", "score": "0.44362846", "text": "public Integer getStatus() {\r\n return status;\r\n }", "title": "" }, { "docid": "dc9a0ffd1ec879c2d2ac0527bc728d7c", "score": "0.44362846", "text": "public Integer getStatus() {\r\n return status;\r\n }", "title": "" }, { "docid": "dc9a0ffd1ec879c2d2ac0527bc728d7c", "score": "0.44362846", "text": "public Integer getStatus() {\r\n return status;\r\n }", "title": "" }, { "docid": "dc9a0ffd1ec879c2d2ac0527bc728d7c", "score": "0.44362846", "text": "public Integer getStatus() {\r\n return status;\r\n }", "title": "" }, { "docid": "dc9a0ffd1ec879c2d2ac0527bc728d7c", "score": "0.44362846", "text": "public Integer getStatus() {\r\n return status;\r\n }", "title": "" }, { "docid": "ed6a5c6b1607a2e7fb086322e15fadcb", "score": "0.4431486", "text": "public Integer getStatus() {\r\n\t\treturn status;\r\n\t}", "title": "" }, { "docid": "ed6a5c6b1607a2e7fb086322e15fadcb", "score": "0.4431486", "text": "public Integer getStatus() {\r\n\t\treturn status;\r\n\t}", "title": "" }, { "docid": "9c8655f558bb9dbf1362d92b02bcca1d", "score": "0.44283193", "text": "public com.ua.mytrinity.tv_client.proto.EpgSearchIndex.GetSearchIndexResponse.Result getStatus() {\n @SuppressWarnings(\"deprecation\")\n com.ua.mytrinity.tv_client.proto.EpgSearchIndex.GetSearchIndexResponse.Result result = com.ua.mytrinity.tv_client.proto.EpgSearchIndex.GetSearchIndexResponse.Result.valueOf(status_);\n return result == null ? com.ua.mytrinity.tv_client.proto.EpgSearchIndex.GetSearchIndexResponse.Result.OK : result;\n }", "title": "" }, { "docid": "ca7953ff9c177c64f530bf1dbe12d68b", "score": "0.4419399", "text": "public Integer getStatus() {\n return this.status;\n }", "title": "" }, { "docid": "ca7953ff9c177c64f530bf1dbe12d68b", "score": "0.4419399", "text": "public Integer getStatus() {\n return this.status;\n }", "title": "" }, { "docid": "da667749dbb6f5fdb844838f529130aa", "score": "0.44168118", "text": "public com.ua.mytrinity.tv_client.proto.EpgSearchIndex.GetSearchIndexResponse.Result getStatus() {\n @SuppressWarnings(\"deprecation\")\n com.ua.mytrinity.tv_client.proto.EpgSearchIndex.GetSearchIndexResponse.Result result = com.ua.mytrinity.tv_client.proto.EpgSearchIndex.GetSearchIndexResponse.Result.valueOf(status_);\n return result == null ? com.ua.mytrinity.tv_client.proto.EpgSearchIndex.GetSearchIndexResponse.Result.OK : result;\n }", "title": "" }, { "docid": "202082aeb6b34e34431c6c823b7b6649", "score": "0.44057316", "text": "public Status getStatus() {\n return this.status;\n }", "title": "" }, { "docid": "202082aeb6b34e34431c6c823b7b6649", "score": "0.44057316", "text": "public Status getStatus() {\n return this.status;\n }", "title": "" }, { "docid": "6aaa9004d5f800db282430df746b2daf", "score": "0.44028068", "text": "IStatus getStatus();", "title": "" }, { "docid": "454e5783757ab453714da5dcb7c44428", "score": "0.4392383", "text": "public java.lang.String getStatus() {\n java.lang.Object ref = status_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n if (bs.isValidUtf8()) {\n status_ = s;\n }\n return s;\n }\n }", "title": "" }, { "docid": "454e5783757ab453714da5dcb7c44428", "score": "0.4392383", "text": "public java.lang.String getStatus() {\n java.lang.Object ref = status_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n if (bs.isValidUtf8()) {\n status_ = s;\n }\n return s;\n }\n }", "title": "" }, { "docid": "454e5783757ab453714da5dcb7c44428", "score": "0.4391593", "text": "public java.lang.String getStatus() {\n java.lang.Object ref = status_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n if (bs.isValidUtf8()) {\n status_ = s;\n }\n return s;\n }\n }", "title": "" }, { "docid": "37c7988542e8ab2fb3e3081cac44e93c", "score": "0.43895411", "text": "public io.kubernetes.client.proto.V1beta1Extensions.DaemonSetStatus getStatus() {\n if (statusBuilder_ == null) {\n return status_ == null\n ? io.kubernetes.client.proto.V1beta1Extensions.DaemonSetStatus.getDefaultInstance()\n : status_;\n } else {\n return statusBuilder_.getMessage();\n }\n }", "title": "" }, { "docid": "2764101e529aa197f397d8c847b6e3a2", "score": "0.4384455", "text": "public Long getStatus() {\n return this.Status;\n }", "title": "" }, { "docid": "17d3bf34a8c568fedd7dc456933717ea", "score": "0.4383091", "text": "@java.lang.Override public int getStatusValue() {\n return status_;\n }", "title": "" }, { "docid": "17d3bf34a8c568fedd7dc456933717ea", "score": "0.4383091", "text": "@java.lang.Override public int getStatusValue() {\n return status_;\n }", "title": "" }, { "docid": "17d3bf34a8c568fedd7dc456933717ea", "score": "0.4383091", "text": "@java.lang.Override public int getStatusValue() {\n return status_;\n }", "title": "" }, { "docid": "17d3bf34a8c568fedd7dc456933717ea", "score": "0.4383091", "text": "@java.lang.Override public int getStatusValue() {\n return status_;\n }", "title": "" }, { "docid": "17d3bf34a8c568fedd7dc456933717ea", "score": "0.4383091", "text": "@java.lang.Override public int getStatusValue() {\n return status_;\n }", "title": "" }, { "docid": "17d3bf34a8c568fedd7dc456933717ea", "score": "0.4383091", "text": "@java.lang.Override public int getStatusValue() {\n return status_;\n }", "title": "" }, { "docid": "17d3bf34a8c568fedd7dc456933717ea", "score": "0.4383091", "text": "@java.lang.Override public int getStatusValue() {\n return status_;\n }", "title": "" }, { "docid": "17d3bf34a8c568fedd7dc456933717ea", "score": "0.4383091", "text": "@java.lang.Override public int getStatusValue() {\n return status_;\n }", "title": "" }, { "docid": "916970cf3235b05d4a454d6c88edc868", "score": "0.43769753", "text": "public Status getStatus() {\r\n\t\treturn status;\r\n\t}", "title": "" } ]
c8a7e6d7a585a4869121d1ac65d7c8da
Return the integer value of this status code.
[ { "docid": "554c95eebf0fbadd5f1796526d2aa9c2", "score": "0.0", "text": "public Integer value() {\n\t\treturn this.value;\n\t}", "title": "" } ]
[ { "docid": "099106f7cbc8eff0167fec5bfc6dcd40", "score": "0.8299378", "text": "int getStatusCodeValue();", "title": "" }, { "docid": "d5625fa799c1da609019aec51862f9bb", "score": "0.7945841", "text": "public int getStatusValue() {\n return status_;\n }", "title": "" }, { "docid": "d5625fa799c1da609019aec51862f9bb", "score": "0.7945561", "text": "public int getStatusValue() {\n return status_;\n }", "title": "" }, { "docid": "d5625fa799c1da609019aec51862f9bb", "score": "0.7945561", "text": "public int getStatusValue() {\n return status_;\n }", "title": "" }, { "docid": "98ab41b2d207e20a768b9aa88194c72f", "score": "0.78813887", "text": "public int getStatusValue() {\n return status_;\n }", "title": "" }, { "docid": "98ab41b2d207e20a768b9aa88194c72f", "score": "0.78813887", "text": "public int getStatusValue() {\n return status_;\n }", "title": "" }, { "docid": "98ab41b2d207e20a768b9aa88194c72f", "score": "0.788093", "text": "public int getStatusValue() {\n return status_;\n }", "title": "" }, { "docid": "17d3bf34a8c568fedd7dc456933717ea", "score": "0.7846287", "text": "@java.lang.Override public int getStatusValue() {\n return status_;\n }", "title": "" }, { "docid": "17d3bf34a8c568fedd7dc456933717ea", "score": "0.7846287", "text": "@java.lang.Override public int getStatusValue() {\n return status_;\n }", "title": "" }, { "docid": "9069573290af8127e98b22da44c90b57", "score": "0.78085816", "text": "@java.lang.Override public int getStatusValue() {\n return status_;\n }", "title": "" }, { "docid": "9069573290af8127e98b22da44c90b57", "score": "0.78085816", "text": "@java.lang.Override public int getStatusValue() {\n return status_;\n }", "title": "" }, { "docid": "9069573290af8127e98b22da44c90b57", "score": "0.78085816", "text": "@java.lang.Override public int getStatusValue() {\n return status_;\n }", "title": "" }, { "docid": "188756591749bf6bef639edabbec7ed3", "score": "0.77959126", "text": "public long getStatusCode() {\n if (this.status != null && this.status.getStatusCode() != null && this.status.getStatusCode().getValue() != null) {\n return this.status.getStatusCode().getValue().longValue();\n }\n return -1L;\n }", "title": "" }, { "docid": "7e081570a423c71fb2198c6f0dbcc4d0", "score": "0.7693389", "text": "@java.lang.Override public int getStatusValue() {\n return status_;\n }", "title": "" }, { "docid": "3933a575fdeb65b714e955da6ee683b7", "score": "0.76763755", "text": "@java.lang.Override\n public int getStatusValue() {\n return status_;\n }", "title": "" }, { "docid": "b5efed5ac00487bdce9af89a6a36cbe9", "score": "0.7668386", "text": "public Integer getStatusCode() {\n return this.statusCode;\n }", "title": "" }, { "docid": "d98322567f251085b1304843f10928c6", "score": "0.76399887", "text": "public Integer getStatusCode() {\n return statusCode;\n }", "title": "" }, { "docid": "b92dd57f59cd160cdaeea1df1e7af851", "score": "0.7478909", "text": "@java.lang.Override\n public int getStatusValue() {\n return status_;\n }", "title": "" }, { "docid": "174d92c452bdca744c940245065c93cc", "score": "0.74372953", "text": "int getStatusValue();", "title": "" }, { "docid": "174d92c452bdca744c940245065c93cc", "score": "0.74372953", "text": "int getStatusValue();", "title": "" }, { "docid": "174d92c452bdca744c940245065c93cc", "score": "0.74372953", "text": "int getStatusValue();", "title": "" }, { "docid": "174d92c452bdca744c940245065c93cc", "score": "0.74372953", "text": "int getStatusValue();", "title": "" }, { "docid": "174d92c452bdca744c940245065c93cc", "score": "0.74372953", "text": "int getStatusValue();", "title": "" }, { "docid": "174d92c452bdca744c940245065c93cc", "score": "0.74372953", "text": "int getStatusValue();", "title": "" }, { "docid": "174d92c452bdca744c940245065c93cc", "score": "0.74372953", "text": "int getStatusValue();", "title": "" }, { "docid": "174d92c452bdca744c940245065c93cc", "score": "0.74372953", "text": "int getStatusValue();", "title": "" }, { "docid": "174d92c452bdca744c940245065c93cc", "score": "0.74372953", "text": "int getStatusValue();", "title": "" }, { "docid": "174d92c452bdca744c940245065c93cc", "score": "0.74372953", "text": "int getStatusValue();", "title": "" }, { "docid": "6ac58f592f798e7624a90c6737add3ed", "score": "0.7390743", "text": "public int statusCode() {\n return statusCode;\n }", "title": "" }, { "docid": "c25e3732f8f800e57e53196c29ef330c", "score": "0.7362648", "text": "public int getStatusCode() {\n return statusCode;\n }", "title": "" }, { "docid": "78dde51013719b5a60fb18b0cd59f666", "score": "0.73533386", "text": "public int getStatusCode() {\n return statusCode_;\n }", "title": "" }, { "docid": "81c58ae36475b6d21bb1e3655f012d02", "score": "0.7333578", "text": "public int getStatusCode() {\n return mStatusCode;\n }", "title": "" }, { "docid": "d00f8d3d8d9e46904535592c9c70214e", "score": "0.7321125", "text": "public int getStatusCode() {\n return statusCode_;\n }", "title": "" }, { "docid": "0d83fbdd70d713ed1d7815a3b5c48151", "score": "0.73202896", "text": "public int getStatusCode() {\n return statusCode;\n }", "title": "" }, { "docid": "0d83fbdd70d713ed1d7815a3b5c48151", "score": "0.73202896", "text": "public int getStatusCode() {\n return statusCode;\n }", "title": "" }, { "docid": "1df105065da0b5aeb67cfe289d98002c", "score": "0.7257551", "text": "public StatusCode getStatusCode() {\n\t\tif (useBoundaryValue()) {\n\t\t\treturn StatusCodeValues[getRandomIndex(StatusCodeValues)];\n\t\t}\n\n\t\treturn getRandomStatusCode();\n\t}", "title": "" }, { "docid": "3212794f05e4280d3adb5e3167467cd6", "score": "0.72567415", "text": "public int getStatusCode() {\n\t\treturn statusCode;\n\t}", "title": "" }, { "docid": "4144f530456ccfeada2e81d015be5d0b", "score": "0.71499485", "text": "public int getStatusCode() {\r\n\t\t\treturn mStatusCode;\r\n\t\t}", "title": "" }, { "docid": "39e269ac0819bff5bb28650e7ddeb40d", "score": "0.71466595", "text": "public String getStatusCode()\r\n {\r\n return statusCode;\r\n }", "title": "" }, { "docid": "4849f7bb7bb1c3ec8f2f35c60220df61", "score": "0.7123787", "text": "public int getHttpStatusCode() {\n\t\treturn httpStatusCode;\n\t}", "title": "" }, { "docid": "d3d77ad6927c8f275c2ef103d36ba538", "score": "0.70903194", "text": "private int getStatus() {\r\n\t\ttry {\r\n\t\t\treturn responseJSON.getInt(\"status\");\r\n\t\t} catch (JSONException e) {\r\n\t\t\treturn 0;\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "38d0651163846addee34daebfec54e22", "score": "0.7085397", "text": "public String getStatusCode() {\n return (String)getAttributeInternal(STATUSCODE);\n }", "title": "" }, { "docid": "37c2c287338cd6f1c453fb9c8b5fb4d9", "score": "0.7080705", "text": "public int intValue() {\n\t\treturn value;\n\t}", "title": "" }, { "docid": "584d85dab93c30d6d7967d01b4935893", "score": "0.7071227", "text": "public int getStatus() {\n\t\t\treturn this.status;\n\t\t}", "title": "" }, { "docid": "23ba47f87a87862dfed81b2f735dfe79", "score": "0.70546305", "text": "public String getStatusCode() {\n return statusCode;\n }", "title": "" }, { "docid": "e5773e875cd8da1cccfbb61b984561e5", "score": "0.7053051", "text": "public String statusCode() {\n return this.statusCode;\n }", "title": "" }, { "docid": "ed6a5c6b1607a2e7fb086322e15fadcb", "score": "0.70501876", "text": "public Integer getStatus() {\r\n\t\treturn status;\r\n\t}", "title": "" }, { "docid": "1bd98452bba23024f4e0c2dc758ac7d2", "score": "0.70353794", "text": "public String getStatusCode() {\r\n\t\treturn statusCode;\r\n\t}", "title": "" }, { "docid": "e6dfe7ffdd7e9b0d5e0f53a9b3308558", "score": "0.7026915", "text": "public int getStatus() {\n\t\treturn this.status;\n\t}", "title": "" }, { "docid": "dc9a0ffd1ec879c2d2ac0527bc728d7c", "score": "0.70221674", "text": "public Integer getStatus() {\r\n return status;\r\n }", "title": "" }, { "docid": "dc9a0ffd1ec879c2d2ac0527bc728d7c", "score": "0.70221674", "text": "public Integer getStatus() {\r\n return status;\r\n }", "title": "" }, { "docid": "dc9a0ffd1ec879c2d2ac0527bc728d7c", "score": "0.70221674", "text": "public Integer getStatus() {\r\n return status;\r\n }", "title": "" }, { "docid": "2df7e859cd25e7665244679d88843248", "score": "0.7012604", "text": "public java.lang.String getStatusCode() {\n return statusCode;\n }", "title": "" }, { "docid": "b384b124f23b93896673f25808beda8d", "score": "0.700277", "text": "StatusCodeType getStatusCode();", "title": "" }, { "docid": "848b970729e0a4fbe8151e27397f778b", "score": "0.697262", "text": "public int intValue() {\n return value;\n }", "title": "" }, { "docid": "a5d66c6197fb5bcbced401efc7247f0b", "score": "0.69687927", "text": "public int getErrorCode() {\n return (apiErrorCode);\n }", "title": "" }, { "docid": "342233476493885da40df2ee89f57871", "score": "0.6957626", "text": "int getStatusCode();", "title": "" }, { "docid": "342233476493885da40df2ee89f57871", "score": "0.6957626", "text": "int getStatusCode();", "title": "" }, { "docid": "342233476493885da40df2ee89f57871", "score": "0.6957626", "text": "int getStatusCode();", "title": "" }, { "docid": "342233476493885da40df2ee89f57871", "score": "0.6957626", "text": "int getStatusCode();", "title": "" }, { "docid": "0be4eb8fe9179b168c369bf03717772a", "score": "0.69555557", "text": "protected int getStatusCode() {\n return DEFAULT_SC;\n }", "title": "" }, { "docid": "bcb6ccf70c84a3b5b004bddc6514156c", "score": "0.69523597", "text": "public Integer getStatus() {\n return status;\n }", "title": "" }, { "docid": "bcb6ccf70c84a3b5b004bddc6514156c", "score": "0.69523597", "text": "public Integer getStatus() {\n return status;\n }", "title": "" }, { "docid": "bcb6ccf70c84a3b5b004bddc6514156c", "score": "0.69523597", "text": "public Integer getStatus() {\n return status;\n }", "title": "" }, { "docid": "bcb6ccf70c84a3b5b004bddc6514156c", "score": "0.69523597", "text": "public Integer getStatus() {\n return status;\n }", "title": "" }, { "docid": "bcb6ccf70c84a3b5b004bddc6514156c", "score": "0.69523597", "text": "public Integer getStatus() {\n return status;\n }", "title": "" }, { "docid": "bcb6ccf70c84a3b5b004bddc6514156c", "score": "0.69523597", "text": "public Integer getStatus() {\n return status;\n }", "title": "" }, { "docid": "bcb6ccf70c84a3b5b004bddc6514156c", "score": "0.69523597", "text": "public Integer getStatus() {\n return status;\n }", "title": "" }, { "docid": "bcb6ccf70c84a3b5b004bddc6514156c", "score": "0.69523597", "text": "public Integer getStatus() {\n return status;\n }", "title": "" }, { "docid": "bcb6ccf70c84a3b5b004bddc6514156c", "score": "0.69523597", "text": "public Integer getStatus() {\n return status;\n }", "title": "" }, { "docid": "bcb6ccf70c84a3b5b004bddc6514156c", "score": "0.69523597", "text": "public Integer getStatus() {\n return status;\n }", "title": "" }, { "docid": "bcb6ccf70c84a3b5b004bddc6514156c", "score": "0.69523597", "text": "public Integer getStatus() {\n return status;\n }", "title": "" }, { "docid": "bcb6ccf70c84a3b5b004bddc6514156c", "score": "0.69523597", "text": "public Integer getStatus() {\n return status;\n }", "title": "" }, { "docid": "bcb6ccf70c84a3b5b004bddc6514156c", "score": "0.69523597", "text": "public Integer getStatus() {\n return status;\n }", "title": "" }, { "docid": "bcb6ccf70c84a3b5b004bddc6514156c", "score": "0.69523597", "text": "public Integer getStatus() {\n return status;\n }", "title": "" }, { "docid": "bcb6ccf70c84a3b5b004bddc6514156c", "score": "0.69523597", "text": "public Integer getStatus() {\n return status;\n }", "title": "" }, { "docid": "bcb6ccf70c84a3b5b004bddc6514156c", "score": "0.69523597", "text": "public Integer getStatus() {\n return status;\n }", "title": "" }, { "docid": "bcb6ccf70c84a3b5b004bddc6514156c", "score": "0.69523597", "text": "public Integer getStatus() {\n return status;\n }", "title": "" }, { "docid": "bcb6ccf70c84a3b5b004bddc6514156c", "score": "0.69523597", "text": "public Integer getStatus() {\n return status;\n }", "title": "" }, { "docid": "bcb6ccf70c84a3b5b004bddc6514156c", "score": "0.69523597", "text": "public Integer getStatus() {\n return status;\n }", "title": "" }, { "docid": "bcb6ccf70c84a3b5b004bddc6514156c", "score": "0.69523597", "text": "public Integer getStatus() {\n return status;\n }", "title": "" }, { "docid": "bcb6ccf70c84a3b5b004bddc6514156c", "score": "0.69523597", "text": "public Integer getStatus() {\n return status;\n }", "title": "" }, { "docid": "2db78dd36e6199261a764f84d43a53f7", "score": "0.69489926", "text": "public Integer getStatus() {\n\t\treturn status;\n\t}", "title": "" }, { "docid": "2db78dd36e6199261a764f84d43a53f7", "score": "0.69489926", "text": "public Integer getStatus() {\n\t\treturn status;\n\t}", "title": "" }, { "docid": "6ff69e1b3c3c1831ed27873568d70376", "score": "0.6946882", "text": "@Schema(description = \"The status of the last request\")\n public StatusCodeEnum getStatusCode() {\n return statusCode;\n }", "title": "" }, { "docid": "094d85441cb990e6330c8655cb068204", "score": "0.6939163", "text": "public int getStatus() {\n return status_;\n }", "title": "" }, { "docid": "094d85441cb990e6330c8655cb068204", "score": "0.6939163", "text": "public int getStatus() {\n return status_;\n }", "title": "" }, { "docid": "4e0d903915f2d25727672d997858f38f", "score": "0.6920498", "text": "public int getStatusTypeValue() {\n return statusType_;\n }", "title": "" }, { "docid": "f17348c3df1979d58ac6531104ad9be8", "score": "0.6914853", "text": "public int getIntValue() {\n return intValue_;\n }", "title": "" }, { "docid": "396689b03c5db145897ad03a94e473cc", "score": "0.69127136", "text": "CS getStatusCode();", "title": "" }, { "docid": "22fd0be86e643d9ce5f23c7c4b3ff002", "score": "0.6899438", "text": "public int getStatus() {\n\n\t\treturn status;\n\t}", "title": "" }, { "docid": "f6acb2418ab55aa44b69370e5c91fb1e", "score": "0.6898864", "text": "public int intValue() {\n return (value);\n }", "title": "" }, { "docid": "5ae7aef9bb002dc6d6c6a2e500122d88", "score": "0.6897488", "text": "public int getStatus() {\n return status_;\n }", "title": "" }, { "docid": "5ae7aef9bb002dc6d6c6a2e500122d88", "score": "0.6897488", "text": "public int getStatus() {\n return status_;\n }", "title": "" }, { "docid": "841ccd4d1948fac7d151b2a83cc415eb", "score": "0.68945247", "text": "public String getStatusCode() {\n\t\treturn mStatusCode;\n\t}", "title": "" }, { "docid": "e77f62b8d5f40dd26c9fad1bbe8cd710", "score": "0.6891593", "text": "public int getStatusTypeValue() {\n return statusType_;\n }", "title": "" }, { "docid": "9c1e19692a74fc6e86da049365b181c4", "score": "0.6883248", "text": "public int intValue() {\n/* 299 */ return this.value;\n/* */ }", "title": "" }, { "docid": "0acae26534b027746ef7aefbca714b87", "score": "0.68697155", "text": "public int getIntValue() {\n return intValue_;\n }", "title": "" }, { "docid": "65c3b859eecb7d794fba9970ac5eaddf", "score": "0.6865047", "text": "public int getValue() {\n return value_;\n }", "title": "" }, { "docid": "65c3b859eecb7d794fba9970ac5eaddf", "score": "0.6865047", "text": "public int getValue() {\n return value_;\n }", "title": "" }, { "docid": "2bb1efbf269c0e2dd92637256daef266", "score": "0.68623495", "text": "public final int getValue()\n {\n return value;\n }", "title": "" } ]
f749257f4d5cb3d94015f7cc3d9c437e
string metric_family_name = 2;
[ { "docid": "a94df789e9512720d17d865093624d1c", "score": "0.60556656", "text": "@java.lang.Override\n public java.lang.String getMetricFamilyName() {\n java.lang.Object ref = metricFamilyName_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs = \n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n metricFamilyName_ = s;\n return s;\n }\n }", "title": "" } ]
[ { "docid": "93f28b456132ea945483934c1597cbce", "score": "0.73236215", "text": "java.lang.String getMetricFamilyName();", "title": "" }, { "docid": "8e46f0fe9af59610da3f9e06f264a0f4", "score": "0.6079431", "text": "prometheus.Types.MetricMetadata.MetricType getType();", "title": "" }, { "docid": "fd34eb26f23c167c4be4faa555cdaa8e", "score": "0.60349745", "text": "public Builder setMetricFamilyName(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n metricFamilyName_ = value;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "3d6227f0d6e9afc1c2ecd510566db6c8", "score": "0.60324705", "text": "public java.lang.String getMetricFamilyName() {\n java.lang.Object ref = metricFamilyName_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n metricFamilyName_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "title": "" }, { "docid": "9e6ad6fd3c6bde200d2ccf7f909ee781", "score": "0.5894254", "text": "prometheus.Types.LabelMatcher.Type getType();", "title": "" }, { "docid": "61892d7f25ef4c9551975735ff60caa8", "score": "0.58650833", "text": "com.google.protobuf.ByteString\n getMetricFamilyNameBytes();", "title": "" }, { "docid": "3f9e9d22117ac3887b74c05f27da5b2e", "score": "0.582821", "text": "NFP_String getFamily();", "title": "" }, { "docid": "bdb3d8e76bb31acca7957203c9c594bf", "score": "0.56947047", "text": "String getFamily();", "title": "" }, { "docid": "a825551cb852f55ad81207a4119141c2", "score": "0.5621712", "text": "@Test\n public void getMetricName() {\n assertEquals(\"CLD\",CLD.getMetricName());\n assertNotEquals(\"\",CLD1.getMetricName());\n assertEquals(\"CLD\",CLD2.getMetricName());\n assertNotEquals(\"AA\",CLD3.getMetricName());\n assertNotEquals(\"\",CLD1.getMetricName());\n }", "title": "" }, { "docid": "471505a0d94fb4dff42fee03781dcc13", "score": "0.5489683", "text": "public Builder setMetricFamilyNameBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n checkByteStringIsUtf8(value);\n \n metricFamilyName_ = value;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "0fbd830b479db4180515e528a8260ae8", "score": "0.5461518", "text": "public String getMetricName() {\n\t\treturn metricName;\n\t}", "title": "" }, { "docid": "bf59e24815f06f75c1b65d6b7bb42518", "score": "0.54215276", "text": "public interface ENTITYFACTORY_QOS_POLICY_NAME\n{\n\tjava.lang.String value = \" EntityFactory\";\n}", "title": "" }, { "docid": "ca5dea923b9a5633f25ab2338a02758a", "score": "0.53985506", "text": "@Override public int metricId() {\n return ordinal();\n }", "title": "" }, { "docid": "16f86249ea17d1bae8ea7ad79acbc956", "score": "0.5354512", "text": "@Override\n public int getMetricsCategory() {\n return 1;\n }", "title": "" }, { "docid": "e0b978f305192439cd608bde20c78e14", "score": "0.53422695", "text": "java.lang.String getMetrics(int index);", "title": "" }, { "docid": "f4d23f1ee829a2c7daa181aca0c4996f", "score": "0.53409785", "text": "public void initMetric(){\n\t\t\n\t}", "title": "" }, { "docid": "79e34d6ed3b901a5aae838200c3df846", "score": "0.53239083", "text": "public String zzhc(String str) {\n if (this.mContentResolver == null) {\n return null;\n }\n ContentResolver contentResolver = this.mContentResolver;\n String valueOf = String.valueOf(\"gms:playlog:service:sampling_\");\n String valueOf2 = String.valueOf(str);\n return zzafz.zza(contentResolver, valueOf2.length() != 0 ? valueOf.concat(valueOf2) : new String(valueOf), (String) null);\n }", "title": "" }, { "docid": "7f4bf82442b18fa2e9c2c1cc0c6aa31c", "score": "0.5269475", "text": "public static String getFamily(String unit){\n return \"volume\";\n }", "title": "" }, { "docid": "470fd01596f01f464642d9ad4c9944f6", "score": "0.52590764", "text": "@java.lang.Override\n public com.google.protobuf.ByteString\n getMetricFamilyNameBytes() {\n java.lang.Object ref = metricFamilyName_;\n if (ref instanceof java.lang.String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n metricFamilyName_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "title": "" }, { "docid": "40b0f42d7a721d9c372e27124a03d334", "score": "0.5237191", "text": "@Override\n\tpublic String getName() {\n\t\treturn \"pMOEAD-STAT-\" + processorNumber;\n\t}", "title": "" }, { "docid": "114c229bf6a917739aa460fbd803d5b1", "score": "0.52315146", "text": "String classificationName();", "title": "" }, { "docid": "489e7a48d9a7389f419197d473229c70", "score": "0.52264154", "text": "public com.google.protobuf.ByteString\n getMetricFamilyNameBytes() {\n java.lang.Object ref = metricFamilyName_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n metricFamilyName_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "title": "" }, { "docid": "b0ebd364d08fe94b996dce827e8b32fb", "score": "0.5196181", "text": "public Integer teMetric();", "title": "" }, { "docid": "3d30d42ebab1c2b5efa4db6fb49f5b32", "score": "0.5186679", "text": "public void setFamily(String f) {\n family = f.toLowerCase(Locale.ENGLISH);\n }", "title": "" }, { "docid": "8c4c7da58d397981630f19a6e7d92967", "score": "0.5171973", "text": "private String getMetricNames() {\r\n\r\n ArrayList<String> metricNames = new ArrayList<String>();\r\n for (Entry<String, MetricParameter> entry : this.parameterMap.entrySet()) {\r\n Integer lickert = entry.getValue().getLickert();\r\n if (lickert == 0) {\r\n metricNames.add(entry.getKey());\r\n continue;\r\n }\r\n for (Integer i = 1; i <= lickert; i++) {\r\n metricNames.add(entry.getKey() + \"_\" + String.valueOf(i));\r\n }\r\n }\r\n metricNames.addAll(this.parameterMap.keySet());\r\n return Utils.generateCommaSeparatedString(metricNames, true);\r\n }", "title": "" }, { "docid": "600cc6053f0566fc5a3a098fb6ca0a47", "score": "0.5166657", "text": "IMetricSystem getMetricSystem();", "title": "" }, { "docid": "ea3d6875a1ff6b3d8cd8b88b2f8f6c55", "score": "0.51322466", "text": "Long lookupGaugeValue(String name);", "title": "" }, { "docid": "e4085dcb340b16c5a237d069d051dbe4", "score": "0.5129962", "text": "String getFactName();", "title": "" }, { "docid": "6cc1bbff446223229d3fa369368e3095", "score": "0.510481", "text": "public static String getName(){\r\n return \"my format\";\r\n }", "title": "" }, { "docid": "2aa18a223c4dd4336b2a1c838e677eda", "score": "0.5098958", "text": "public void setMetricValue(java.lang.String metricValue) {\r\n this.metricValue = metricValue;\r\n }", "title": "" }, { "docid": "8f1c20755a04a0835758cfba817b771d", "score": "0.5094206", "text": "String getGenus();", "title": "" }, { "docid": "e001a76f7d2475bb2437c1d5500a7922", "score": "0.5093067", "text": "public void setFontFamilyName(java.lang.String param){\n localFontFamilyNameTracker = true;\n \n this.localFontFamilyName=param;\n \n\n }", "title": "" }, { "docid": "e001a76f7d2475bb2437c1d5500a7922", "score": "0.5093067", "text": "public void setFontFamilyName(java.lang.String param){\n localFontFamilyNameTracker = true;\n \n this.localFontFamilyName=param;\n \n\n }", "title": "" }, { "docid": "e001a76f7d2475bb2437c1d5500a7922", "score": "0.5093067", "text": "public void setFontFamilyName(java.lang.String param){\n localFontFamilyNameTracker = true;\n \n this.localFontFamilyName=param;\n \n\n }", "title": "" }, { "docid": "ef1a5884d6808174a27a08ba032cf2f3", "score": "0.5076946", "text": "@Override public String getDescription()\n{\n return device_label;\n}", "title": "" }, { "docid": "f16faf6c699b3c587e2b850987aa5673", "score": "0.50523394", "text": "public interface Device_AddrFamily {\n\n public static final int DEVICE_TCP = 0;\n public static final int DEVICE_UDP = 0+1;\n\n}", "title": "" }, { "docid": "55762c33f993357c0ad2760a5b913fd0", "score": "0.5050086", "text": "public String mo24709d() {\n return \"logstats\";\n }", "title": "" }, { "docid": "e0110a84d12f3bc61c50393bdffa069b", "score": "0.5045508", "text": "public void setMetric(Metric metric) {\n this.metric = metric;\n }", "title": "" }, { "docid": "48085781449dfc8a444f7c99c25e626d", "score": "0.5024358", "text": "private void set_stats(){\n\t\tstr=5;\r\n\t\trange=1;\r\n\t}", "title": "" }, { "docid": "4c64cfd9d1d39b757d5e767f41c013c8", "score": "0.5014433", "text": "@Override\n\tpublic String toString() {\n\t\treturn toMetricString();\n\t}", "title": "" }, { "docid": "b80167d85d5ca11480c12b4ee7575585", "score": "0.5011417", "text": "public String metricsScreenName() {\n return \"\";\n }", "title": "" }, { "docid": "f1e3df96f4e0d1a6b7435540cd685cb8", "score": "0.50060403", "text": "public void setTeMetric(Integer teMetric);", "title": "" }, { "docid": "8e6f5fbd63f7b033019f3a623e17f38b", "score": "0.49891204", "text": "UsageName name();", "title": "" }, { "docid": "60873dae9fd8ad042ff1521411c4c696", "score": "0.49494246", "text": "public SensorMetricType () {\n }", "title": "" }, { "docid": "d37ecd05020e65837af640f047d617da", "score": "0.49373895", "text": "String kindString();", "title": "" }, { "docid": "3142219b5dd8f1962c7f44c94459ace0", "score": "0.4924321", "text": "public java.lang.String getMetricValue() {\r\n return metricValue;\r\n }", "title": "" }, { "docid": "801edc7ff78dd663106bde355171d51d", "score": "0.49233216", "text": "public interface StatsConstants {\n\n String DEFAULT_NAMESPACE = \"default\";\n\n /**\n * The character that delimits hierarchy levels in {@link StatsKey} names.\n */\n char KEY_HIERARCHY_DELIMITER = '.';\n\n int KEY_HIERARCHY_ROOT_DEPTH = 1;\n\n /**\n * The default unit used in {@link org.stajistics.configuration.StatsConfig} instances.\n */\n String DEFAULT_UNIT = \"ms\";\n}", "title": "" }, { "docid": "6167ad07295533c3bfbfdb478dddf56b", "score": "0.4921757", "text": "ObjectName getStatistics();", "title": "" }, { "docid": "4803318edb1cde335c5fdd25ca7adb43", "score": "0.49150968", "text": "public abstract void computeStatistics(String inValue);", "title": "" }, { "docid": "46eacad95bbb1748c16af44228c2dd15", "score": "0.49125868", "text": "public String getFamilyName();", "title": "" }, { "docid": "940aa858a0b01fa8d602cba84c3e0284", "score": "0.49044546", "text": "private static String m425l(String str) {\n return \".YFlurrySenderIndex.info.\".concat(String.valueOf(str));\n }", "title": "" }, { "docid": "3b31c8f8c98efa1d776bde84d229202d", "score": "0.4904413", "text": "public java.lang.String getFontFamilyName(){\n return localFontFamilyName;\n }", "title": "" }, { "docid": "3b31c8f8c98efa1d776bde84d229202d", "score": "0.4904413", "text": "public java.lang.String getFontFamilyName(){\n return localFontFamilyName;\n }", "title": "" }, { "docid": "3b31c8f8c98efa1d776bde84d229202d", "score": "0.4904413", "text": "public java.lang.String getFontFamilyName(){\n return localFontFamilyName;\n }", "title": "" }, { "docid": "9c3d7e712aa5e80cd710931c0e84d8b7", "score": "0.48941436", "text": "java.lang.String getMetricsSchemaUri();", "title": "" }, { "docid": "6ea67b6f34e64eb560675bd579a7f58b", "score": "0.4893174", "text": "@Override\n public String getName() {\n return \"UCUM\";\n }", "title": "" }, { "docid": "77841b15ec4b4834e897acbb425947ce", "score": "0.4889504", "text": "String getConfnum();", "title": "" }, { "docid": "9530b092b57a050706b50d0c92ce166c", "score": "0.48842558", "text": "@java.lang.Deprecated\n public A withNewMetricName(java.lang.String arg0);", "title": "" }, { "docid": "1d4a26eb8b72681df3a9b0d0857b0cef", "score": "0.4879235", "text": "private void getEventScore(String name) {\n }", "title": "" }, { "docid": "35f7b85922a997920701f102087a6065", "score": "0.48771733", "text": "String trafficProperty();", "title": "" }, { "docid": "35f7b85922a997920701f102087a6065", "score": "0.48771733", "text": "String trafficProperty();", "title": "" }, { "docid": "c9d2b2f2994706e95b8bf820b1daaea6", "score": "0.48732904", "text": "String histogramString();", "title": "" }, { "docid": "4027d1642dfa5e8e6ca072da1a1108a0", "score": "0.48700064", "text": "public String metricsScreenName() {\n return null;\n }", "title": "" }, { "docid": "4027d1642dfa5e8e6ca072da1a1108a0", "score": "0.48700064", "text": "public String metricsScreenName() {\n return null;\n }", "title": "" }, { "docid": "25b33ef5b1f35a7dd967636d45ea9135", "score": "0.48672637", "text": "public String family() {\r\n return this.family;\r\n }", "title": "" }, { "docid": "4a27434f1857726728a8683a22d96f7b", "score": "0.48671702", "text": "String getStorage_class_specifier();", "title": "" }, { "docid": "36409ffa2af711e22d8f8dc42db853e7", "score": "0.48657665", "text": "private static String toPrometheusString_(List<String> s) {\n return String.join(\"_\",\n s.stream()\n .map(PrometheusMetrics::escapeprometheus)\n .collect(Collectors.toList()));\n }", "title": "" }, { "docid": "ec24e3f76da0328daf440f33a0313eae", "score": "0.48641694", "text": "public String metricsScreenName() {\n return \"Стройка\";\n }", "title": "" }, { "docid": "065291743cadcda4b032563861ccd4d9", "score": "0.486342", "text": "public String getFamilyName()\r\n {\r\n return getSemanticObject().getProperty(data_familyName);\r\n }", "title": "" }, { "docid": "d57317007ded82782d10ad5bb2e4c384", "score": "0.48623848", "text": "public String getFamily() {\n Object ref = family_;\n if (ref instanceof String) {\n return (String) ref;\n } else {\n com.google.protobuf.ByteString bs = \n (com.google.protobuf.ByteString) ref;\n String s = bs.toStringUtf8();\n if (bs.isValidUtf8()) {\n family_ = s;\n }\n return s;\n }\n }", "title": "" }, { "docid": "611f12ae874898cf888a0c5d70da0031", "score": "0.4848557", "text": "private static String getDisplayMeasure (String unitOfMeasure){\n\n String unitToDisplay;\n\n switch (unitOfMeasure){\n case Constants.GRAMS_JSON_NAME:\n unitToDisplay = Constants.GRAMS_DISPLAY_NAME;\n break;\n case Constants.CUP_JSON_NAME:\n unitToDisplay = Constants.CUP_DISPLAY_NAME;\n break;\n case Constants.OUNCE_JSON_NAME:\n unitToDisplay = Constants.OUNCE_DISPLAY_NAME;\n break;\n case Constants.KILO_JSON_NAME:\n unitToDisplay = Constants.KILO_DISPLAY_NAME;\n break;\n case Constants.TEA_SPOON_JSON_NAME:\n unitToDisplay = Constants.TEA_SPOON_DISPLAY_NAME;\n break;\n case Constants.TABLE_SPOON_JSON_NAME:\n unitToDisplay = Constants.TABLE_SPOON_DISPLAY_NAME;\n break;\n // if unit is of type UNIT, don't display anything for the unit - as in \"3 eggs\"\n default: unitToDisplay = \"\";\n\n }\n return unitToDisplay;\n }", "title": "" }, { "docid": "b8f90a399b10ab9e9c72308df183c364", "score": "0.48373684", "text": "public void setMetricName(String metricName) {\n\t\tthis.metricName = metricName;\n\t}", "title": "" }, { "docid": "52bdf36ee86c6406a6d8fd021208a82e", "score": "0.48005858", "text": "String theoreticalHistogramString();", "title": "" }, { "docid": "74142b181602bf16408a3dc32536f8b1", "score": "0.47983253", "text": "SensorType(String abbreviature) {\n\t\t\tthis.abbreviature = abbreviature;\n\t\t}", "title": "" }, { "docid": "239387bdf7ffe0ac0f0d106e9435f776", "score": "0.47938967", "text": "private int getUniqueMetadataStringId() throws MetricException {\n generateUniqueStringIds();\n int id = unusedIds.iterator().next();\n unusedIds.remove(id);\n return id;\n }", "title": "" }, { "docid": "e03c19e4421a621485d8bf366ef56f4e", "score": "0.47894725", "text": "String topicName();", "title": "" }, { "docid": "656c4f7c1f7b16c42666451c0e75a726", "score": "0.47818053", "text": "@Override\n public void onGADeviceName( String name ) {\n }", "title": "" }, { "docid": "350bf9ca509fe98de138efebbe444e5d", "score": "0.4780276", "text": "java.lang.String getSa1();", "title": "" }, { "docid": "deda5b3bbe5775981a8841ef04adef09", "score": "0.47758597", "text": "public interface Constant {\n long G = 1024*1024*1024;\n //指标精度\n int precision = 4;\n String CHORUS_QUEUE = \"chorus\";\n}", "title": "" }, { "docid": "12df43e5785d118dbaee8f0f6db82790", "score": "0.47681233", "text": "public int getMetricDataFormat() {\n return metric_data_format;\n }", "title": "" }, { "docid": "f47eaffdb3400511cd3d05981e176267", "score": "0.4766315", "text": "String getSystem();", "title": "" }, { "docid": "df101e479fb5875cee9608d932f0e80f", "score": "0.4752529", "text": "String kind();", "title": "" }, { "docid": "b2b00e00b51095be2430e407b031f841", "score": "0.4750172", "text": "prometheus.Types.Chunk.Encoding getType();", "title": "" }, { "docid": "0a358acad65da65c1fc7a149fec6c054", "score": "0.47471604", "text": "protected void populateMetricNameCache() {\n\t\ttry {\n\t\t\tScanner scanner = hClient.newScanner(\"tsdb-uid\");\n\t\t\tscanner.setFamily(\"name\");\n\t\t\tscanner.setQualifier(\"metrics\");\n\t\t\tArrayList<ArrayList<KeyValue>> results = null;\n\t\t\twhile((results = scanner.nextRows().joinUninterruptibly())!=null) {\n\t\t\t\tfor(ArrayList<KeyValue> arrList: results) {\n\t\t\t\t\tfor(KeyValue keyValue: arrList) {\n\t\t\t\t\t\tString metricName = new String(keyValue.value());\n\t\t\t\t\t\tif(!metricName.startsWith(\"san.\")) continue;\n\t\t\t\t\t\tnameCache.add(metricName.hashCode());\n\t\t\t\t\t\tLOG.warn(\"Added Metric Name [\" + metricName + \"] to cache\");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tLOG.warn(\"Added [\" + nameCache.size() + \"] to cache\");\n\t\t} catch (Exception e) {\n\t\t\tLOG.error(\"Failed to populate metric name cache\", e);\n\t\t\tthrow new RuntimeException(\"Failed to populate metric name cache\", e);\n\t\t}\n\t}", "title": "" }, { "docid": "3e8c2708225a6a6a31b307fd5a27d1df", "score": "0.47418576", "text": "com.google.protobuf.Value getMetrics();", "title": "" }, { "docid": "0f08ed96e1075bbf402259bdf8e57cf9", "score": "0.47381833", "text": "@Override\n public String \n getTypeName() \n {\n return \"Queue Stats\";\n }", "title": "" }, { "docid": "9fe8e07279182ba67b8141eade6f2ddf", "score": "0.47284433", "text": "public Integer getMeasuringFieldNumber() {\n return this.measuringFieldNumber;\n }", "title": "" }, { "docid": "674b90cdc21492b1368cc915ab074d07", "score": "0.47263366", "text": "@Override\n\tpublic String getName(int which) {\n\t\treturn \"quality.sums\";\n\t}", "title": "" }, { "docid": "410ac3a45f6bda4ab19cc968a0995fe6", "score": "0.472574", "text": "String getLabelKey();", "title": "" }, { "docid": "ea7c09fd96377e708df0195006977203", "score": "0.47228825", "text": "io.dstore.values.StringValue getFrameName();", "title": "" }, { "docid": "ffbc4995773423733072326885fb6154", "score": "0.47169027", "text": "public String getFamily() {\n Object ref = family_;\n if (!(ref instanceof String)) {\n String s = ((com.google.protobuf.ByteString) ref)\n .toStringUtf8();\n family_ = s;\n return s;\n } else {\n return (String) ref;\n }\n }", "title": "" }, { "docid": "cf7dd1f06d8700f667e6861f5bdc6a8b", "score": "0.47043246", "text": "String getReportNameWithGroup();", "title": "" }, { "docid": "64a4b8ef969e0fe992553585a76bb047", "score": "0.47042128", "text": "private String m21152jd(String str) {\n Map ayb = C7211d.ayb();\n Integer num = ayb != null ? (Integer) ayb.get(str) : null;\n if (num == null) {\n return null;\n }\n try {\n return C4681i.m12184Gp().mo25017Gs().getApplicationContext().getString(num.intValue());\n } catch (Exception unused) {\n LogUtils.m14222e(\"MediaManager\", \"find name resource error\");\n return null;\n }\n }", "title": "" }, { "docid": "76cebe0a9ec0801f35e3b14ea9d6b58c", "score": "0.47003478", "text": "public static int\r\nvalue(String s) {\r\n\treturn classes.getValue(s);\r\n}", "title": "" }, { "docid": "23cba3c390dc63273eedfcf02ca97c8b", "score": "0.46981093", "text": "public String typeTest(){\r\n\t\treturn String.format(\"Hourly\");\r\n\t}", "title": "" }, { "docid": "8329e843ee858732678226d635d76bec", "score": "0.46883518", "text": "@Override\n public void initMeasure(String name, Class<? extends MetricImpl> class1,\n String parentDimension) throws NotImplementedException {\n }", "title": "" }, { "docid": "9abe31b9dc43042064aee132946b4930", "score": "0.46873868", "text": "NFP_Frequency createNFP_Frequency();", "title": "" }, { "docid": "3ae0b52cafae730598112121cfe102db", "score": "0.46765393", "text": "com.google.protobuf.ByteString getFamily();", "title": "" }, { "docid": "f09934d9492c0de137bb7afdd9017e05", "score": "0.46762353", "text": "public String mo6833a() {\n return \"get_network_type\";\n }", "title": "" }, { "docid": "2d474f95bf47ff5e0fc1e8e7f004f98f", "score": "0.46738276", "text": "String describe();", "title": "" } ]
85952491277c89267145b125c9af7816
This method helps pick a word randomly from the words array
[ { "docid": "acd9d18f2290870abcbf47f35c555579", "score": "0.67874384", "text": "public String pickARandonWord(int upperLimit, String[] arrayOfGame) {\r\n\t\tRandom rand = new Random();\r\n\t\tint indexValue = rand.nextInt(upperLimit);\r\n\t\tString wordsSelected = arrayOfGame[indexValue];\r\n\t\treturn wordsSelected;\r\n\t}", "title": "" } ]
[ { "docid": "870b3a2d84aded22b47ee2a0b7ee7c2d", "score": "0.8459763", "text": "public static String pickWord(String[] words) {\r\n\t\tint choice = (int) (Math.random() * words.length);\r\n\t\treturn words[choice].toUpperCase();\r\n\t}", "title": "" }, { "docid": "3a54b377d18705dfb016958cb470ffaa", "score": "0.83801603", "text": "public static String[] pickRandomWord(String[] wordsArray){\n\t\tString pickedWord = \"\";\r\n\r\n\t\tpickedWord = wordsArray[(int)(Math.random()* wordsArray.length)];\r\n\t\tString[] letters = pickedWord.split(\"(?!^)\");//Negative lookahead for start of string, means not positioined before the start of input. Picks word per line\r\n\t\treturn letters;\r\n\t}", "title": "" }, { "docid": "0fd1d8c2e6b7c3438b63c3b28ea7aa99", "score": "0.76406324", "text": "public String getRandomWords() {\n Collections.shuffle(words);\n return words.get(0);\n\n }", "title": "" }, { "docid": "c6700348562a3979ebb96e58235aaa53", "score": "0.763504", "text": "public static String randomWordGenerator(ArrayList<String> words){\r\n \tint rdm = new Random().nextInt(words.size());\r\n \tString temp = words.get(rdm);\r\n \treturn temp;\r\n }", "title": "" }, { "docid": "08060e07b9942457092c26524df82049", "score": "0.7487612", "text": "public Word pickAWord()\n {\n // build a list of pigs\n ArrayList<Pig> pigs = new ArrayList<Pig>();\n for (PhysicalObject phob : scene) {\n if (phob instanceof Pig) {\n pigs.add((Pig)phob);\n }\n }\n // pick one word at random\n return pigs.get(MyGdxGame.alea.nextInt(pigs.size())).getWord();\n }", "title": "" }, { "docid": "cbfb60c8f1740998924971c49e3a9836", "score": "0.7281351", "text": "public String chooseWord() throws FileNotFoundException{\n\tString temp = \"words.txt\";\n\t\n\tfileName=new File(temp);\n\tArrayList<String> wordArray=new ArrayList<>();\n\t\n\tScanner fileScanner=new Scanner(fileName);\n\twhile(fileScanner.hasNext()){\n\t\twordArray.add(fileScanner.next());\n\t}\n\t\n\tRandom yourRandom = new Random();\t\t// pick a random word for the game\n\tString randomWordNew = wordArray.get(yourRandom.nextInt(wordArray.size()));\n\trandomWord=randomWordNew.toLowerCase();\n\t//System.out.println(\"Random word is:\"+randomWord);\n\n\tfor(int iterator=0;iterator<randomWord.length();iterator++)\n\t{\n\tSystem.out.print(\"_ \");\n\t\n\t}\n\tfor(int i=0;i<foundletter.length;i++){\n\t\tfoundletter[i]='_';\n\t\t\n\t}\n\t\n\treturn randomWord;\n}", "title": "" }, { "docid": "e4f683320dc473bf020a1fbb8359c6b0", "score": "0.7168477", "text": "public void newWord() {\n int nr = number.nextInt(allWords.length);\n word = allWords[nr];\n\n }", "title": "" }, { "docid": "f2e5b90c2ffd094e7b9b1f46f3b3acdb", "score": "0.7134225", "text": "private void runGetRandomWord(String message, ArrayList<String> words) {\n Class<?>[] parameters = {ArrayList.class};\n Object[] args = {words};\n String result = (String) runStaticMethod(\"getRandomWord\", parameters, args);\n assertTrue(message, words.contains(result));\n }", "title": "" }, { "docid": "f15a63753b4c77e8c6091a37e539cb41", "score": "0.7062645", "text": "public String selectGameWord() {\n\t\tRandom rando = new Random();\n\t\tsetGameWord(this.words[rando.nextInt(9)]);\n\t\treturn getWord();\n\t}", "title": "" }, { "docid": "341061e4010cf705c0815c81f9d08f18", "score": "0.7005245", "text": "public WordGenerator(final String[] words)\n\t{\n\t\tthis.words = Arrays.asList(words);\n\t\tshuffle();\n\t}", "title": "" }, { "docid": "711e70863c5cd353cd7535e6ee59148b", "score": "0.6957041", "text": "public String getRandomWord() {\n if (wordsCars.isEmpty()) return \"NO-DATA\"; // if the file is missing or corrupted, it will send this message\n return wordsCars.get((int)(Math.random()*wordsCars.size())); // If program is set, it will begin the game chosing a random word from the file.\n }", "title": "" }, { "docid": "214d6fc6bb331c5cd5d4b59543a5478d", "score": "0.6939306", "text": "public String useRandomWord(){\n if (this.theBag.size() == 1){\n this.uses.remove(0);\n return this.theBag.remove(0);\n } else if(this.theBag.size()>1) {\n Random r = new Random(System.currentTimeMillis());\n int index = r.nextInt(this.theBag.size()-1);\n this.uses.remove(index);\n return theBag.remove(index);\n } else { //empty bag\n return null;\n }\n }", "title": "" }, { "docid": "cd1c4d3db280cfab219777ec19416f9f", "score": "0.682325", "text": "public String getRandomWord(int a)\n\t{\n\t\t\n\t\t\n\t\t\n\t\tRandomIndex = RandomNumbers.nextInt(a);\t\n\t\tselectedWord=wordList.get(RandomIndex);\n\t\treturn(selectedWord);\n\t\t\n\t}", "title": "" }, { "docid": "7b7ad67b6de0a59eba267d891c8ed632", "score": "0.68062687", "text": "private String getRanddomWord(){\n Log.d(TAG, \"getRanddomWord()\");\n if (dictionary != null) {\n Random rand = new Random();\n return dictionary.get(rand.nextInt(dictionary.size()));\n }\n return null;\n }", "title": "" }, { "docid": "6f017f78d5b59677e433d6fd53204a6c", "score": "0.67644954", "text": "public String pickGoodStarterWord() {\n int upperBound;\n String testWord;\n ArrayList<String> sizeToWordsList;\n while (true) {\n sizeToWordsList = sizeToWords.get(wordLength);\n upperBound = sizeToWordsList.size();\n testWord = sizeToWordsList.get(random.nextInt(upperBound));\n if (wordLength < MAX_WORD_LENGTH)\n wordLength++;\n break;\n\n }\n return testWord;\n }", "title": "" }, { "docid": "4c7fa45d76780b7107c90ec40986a550", "score": "0.6690208", "text": "public Word askWord() {\n\n if (words.isEmpty()) {\n return null;\n }\n\n Random r = new Random();\n\n Word a = words.get(r.nextInt(words.size()));\n active = a;\n words.remove(a);\n\n return a;\n\n }", "title": "" }, { "docid": "8b17e368f677d7779a5f878f3d9eac57", "score": "0.6677801", "text": "public String randomWord(int randomNthWord);", "title": "" }, { "docid": "a30f46194e720522327a4e80ce76f380", "score": "0.66601473", "text": "public String getRandomNextWord(Random generator)\r\n\t{\n\t int rnd = generator.nextInt(nextWords.size());\r\n\t return nextWords.get(rnd);\r\n\t}", "title": "" }, { "docid": "cb25daeb908e7693241d9ce23513c66d", "score": "0.6644649", "text": "public String getRandomNextWord(Random generator)\n\t\t{\n\t\t\tint size = nextWords.size();\n\t\t\tint index = generator.nextInt(size);\n\t\t\t\n\t\t\t\n\t\t return nextWords.get(index);\n\t\t}", "title": "" }, { "docid": "434287764103bdad19411da30a30182f", "score": "0.6619904", "text": "public void initializeWord() {\r\n //get random integer from 0-9 to determine which option from the\r\n //possibel word array to use, and set the mystery word\r\n int random = (int) (Math.random() * 10);\r\n selectedWord = possibleWords[random];\r\n\r\n //make correct number of blanks for display\r\n for (int i = 0; i < selectedWord.length(); i++) {\r\n wordStatus[i] = \"_\";\r\n }\r\n }", "title": "" }, { "docid": "054038497d0fe312413a3f808fb14e1d", "score": "0.6619134", "text": "public static String randomWord(){\n \n final String[][][] book = {\n {\n {\"ALICE was beginning to get very tired of sitting by her sister on the \\n\", \n \"bank, and of having nothing to do. Once or twice she had peeped into the \\n\", \n \"book her sister was reading, but it had no pictures or conversations in \\n\", \n \"it, \\\"and what is the use of a book,\\\" thought Alice, \\\"without pictures or \\n\", \n \"conversations?\\\" \\n\"},\n {\"So she was considering in her OWN mind (as well as she could, for the \\n\", \n \"day made her feel very sleepy and stupid), whether the pleasure of \\n\", \n \"making a daisy-chain would be worth the trouble of getting up and \\n\", \n \"picking the daisies, when suddenly a White Rabbit with pink eyes ran \\n\", \n \"close by her. \\n\"},\n {\"There was nothing so very remarkable in that, nor did Alice think it so \\n\", \n \"very much out of the way to hear the Rabbit say to itself, \\\"Oh dear! Oh \\n\", \n \"dear! I shall be too late!\\\" But when the Rabbit actually took a watch \\n\", \n \"out of its waistcoat-pocket and looked at it and then hurried on, Alice \\n\", \n \"started to her feet, for it flashed across her mind that she had never \\n\", \n \"before seen a rabbit with either a waistcoat-pocket, or a watch to take \\n\", \n \"out of it, and, burning with curiosity, she ran across the field after \\n\", \n \"it and was just in time to see it pop down a large rabbit-hole, under \\n\", \n \"the hedge. In another moment, down went Alice after it!\"}\n },{\n {\"\\\"WHAT a curious feeling!\\\" said Alice. \\\"I must be shutting up like a \\n\", \n \"telescope!\\\" \\n\"},\n {\"And so it was indeed! She was now only ten inches high, and her face \\n\", \n \"brightened up at the thought that she was now the right size for going \\n\", \n \"through the little door into that lovely garden. \\n\"},\n {\"After awhile, finding that nothing more happened, she decided on going \\n\", \n \"into the garden at once; but, alas for poor Alice! When she got to the \\n\", \n \"door, she found she had forgotten the little golden key, and when she \\n\", \n \"went back to the table for it, she found she could not possibly reach \\n\", \n \"it: she could see it quite plainly through the glass and she tried her \\n\", \n \"best to climb up one of the legs of the table, but it was too slippery, \\n\", \n \"and when she had tired herself out with trying, the poor little thing \\n\", \n \"sat down and cried. \\n\"},\n {\"\\\"Come, there's no use in crying like that!\\\" said Alice to herself rather \\n\",\n \"sharply. \\\"I advise you to leave off this minute!\\\" She generally gave \\n\", \n \"herself very good advice (though she very seldom followed it), and \\n\", \n \"sometimes she scolded herself so severely as to bring tears into her \\n\", \n \"eyes. \\n\"},\n {\"Soon her eye fell on a little glass box that was lying under the table: \\n\", \n \"she opened it and found in it a very small cake, on which the words \\\"EAT \\n\", \n \"ME\\\" were beautifully marked in currants. \\\"Well, I'll eat it,\\\" said \\n\", \n \"Alice, \\\"and if it makes me grow larger, I CAN reach the key; and if it \\n\", \n \"makes me grow smaller, I can creep under the door: so either way I'll \\n\", \n \"get into the garden, and I don't care which happens!\\\" \\n\"},\n {\"She ate a little bit and said anxiously to herself, \\\"Which way? Which \\n\", \n \"way?\\\" holding her hand on the top of her head to feel which way she was \\n\", \n \"growing; and she was quite surprised to find that she remained the same \\n\", \n \"size. So she set to work and very soon finished off the cake.\"} \n },{\n {\"The King and Queen of Hearts were seated on their throne when they \\n\", \n \"arrived, with a great crowd assembled about them--all sorts of little \\n\", \n \"birds and beasts, as well as the whole pack of cards: the Knave was \\n\", \n \"standing before them, in chains, with a soldier on each side to guard \\n\", \n \"him; and near the King was the White Rabbit, with a trumpet in one hand \\n\", \n \"and a scroll of parchment in the other. In the very middle of the court \\n\", \n \"was a table, with a large DISH of tarts upon it. \\\"I wish they'd get the \\n\", \n \"trial done,\\\" Alice thought, \\\"and hand 'round the refreshments!\\\" \\n\"},\n {\"The judge, by the way, was the King and he wore his crown over his great \\n\", \n \"wig. \\\"That's the jury-box,\\\" thought Alice; \\\"and those twelve creatures \\n\", \n \"(some were animals and some were birds) I suppose they are the jurors.\\\" \\n\"},\n {\"Just then the White Rabbit cried out \\\"Silence in the court!\\\" \\n\"}, \n {\"\\\"HERALD! read the accusation!\\\" said the King.\"}\n }\n };\n\n Random rand = new Random();\n int pgnumber = rand.nextInt(3);\n int paragraph = rand.nextInt(book[pgnumber].length);\n int sentence = rand.nextInt(book[pgnumber][paragraph].length);\n String selected = book [pgnumber][paragraph][sentence];\n String [] arrsentence = selected.split(\" \");\n String word = arrsentence[rand.nextInt(arrsentence.length)];\n return word;\n }", "title": "" }, { "docid": "b12a452fb407d98c27b9fa9eb6a6020a", "score": "0.6558848", "text": "private void setWords() {\n\t\tchosenWords=new ArrayList<DefinedWord>();\n\t\tfor(int index=0; index<MAX_NUMBER_WORDS; ) {\n\t\t\tDefinedWord chosenWord=null;\n\t\t\tfinal int NUMWORDLIST=3;\n\t\t\tfinal int MAXWORDSFROMLIST=MAX_NUMBER_WORDS/NUMWORDLIST;\n\t\t\t\n\t\t\t//Evenly distribute randomly chosen word from wordlists\n\t\t\tswitch(index/MAXWORDSFROMLIST) {\n\t\t\t\tcase 0:\n\t\t\t\t\tchosenWord=WordList.getRandomLarge();\n\t\t\t\t\tbreak;\n\t\t\t\tcase 1:\n\t\t\t\t\tchosenWord=WordList.getRandomMedium();\n\t\t\t\t\tbreak;\n\t\t\t\tcase 2:\n\t\t\t\t\tchosenWord=WordList.getRandomSmall();\n\t\t\t\t\tbreak;\n\t\t\t}\n\t\t\t//Check for duplicates\n\t\t\tif(!chosenWords.contains(chosenWord)) {\n\t\t\t\tchosenWords.add(chosenWord);\n\t\t\t\tindex++;\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "ca5fe90d0bf6f18a8f3bc7df0ef343ac", "score": "0.65316427", "text": "public String removeRandomWord(){\n if (this.theBag.size() == 1){\n this.uses.remove(0);\n return this.theBag.remove(0);\n } else if(this.theBag.size()>2) {\n Random r = new Random(System.currentTimeMillis());\n int index = r.nextInt(this.theBag.size()-1);\n this.uses.remove(index);\n return theBag.remove(index);\n } else { //empty bag\n return null;\n }\n }", "title": "" }, { "docid": "25855427a0bdf22d1c2b9598f8763556", "score": "0.649945", "text": "private void selectWord(){\n num = rng.nextInt(1000);\n if(num >= 0 && num <= 199){\n word = wordBank[0];\n }\n else if(num >= 200 && num <= 399){\n word = wordBank[1];\n }\n else if(num >= 400 && num <= 599){\n word = wordBank[2];\n }\n else if(num >= 600 && num <= 799){\n word = wordBank[3];\n }\n else {\n word = wordBank[4];\n }\n }", "title": "" }, { "docid": "8df495e8c3271030aae46dca1ca498cf", "score": "0.64822114", "text": "public String generateWord() {\n double sample = Math.random();\n double sum = 0.0;\n for (String word : wordCounter.keySet()) {\n sum += wordCounter.getCount(word) / total;\n if (sum > sample) {\n return word;\n }\n }\n return \"*UNKNOWN*\"; // a little probability mass was reserved for unknowns\n }", "title": "" }, { "docid": "739e37e09943c1b1843d77cc52654e04", "score": "0.6350127", "text": "public static void getWord() {\n\t\tword.clear();\n\t\tguesslist.clear();\n\t\tint rnd = new Random().nextInt(wordlist.length);\n\t\tawnser = wordlist[rnd];\n\t\tfor (char ch : awnser.toCharArray()) {\n\t\t\tword.add((\"#\" + ch).toUpperCase());\n\t\t}\n\t}", "title": "" }, { "docid": "9e11cf8ba450c465736f09522a64bdb8", "score": "0.6302241", "text": "public int getRandomBeginningWord(List <String> words){\n\t\tString s = (String) RiTa.random(beginnings);\n\t\twords.add(s);\n\t\treturn beginnings.size();\n\t}", "title": "" }, { "docid": "0d752fdc3b45dab34fbc94f3ab2320fc", "score": "0.63002926", "text": "private void shuffle()\n\t{\n\t\tCollections.shuffle(words);\n\t\tindex = 0;\n\t}", "title": "" }, { "docid": "bb8b83b34a3ce01eebbef292625916e4", "score": "0.6240671", "text": "public String getRandomElement(ArrayList<String> list) {\n\n // generate a random number, then return random element in ArrayList\n int rand = (int) (Math.random() * list.size());\n String word = list.get(rand);\n removeWord(word, list);\n return word;\n }", "title": "" }, { "docid": "cad088308bba5a246f83c3739977e49e", "score": "0.6198457", "text": "public List<String> generatePhrase(int numWords) {\n\t\tList <String> words = new ArrayList<String>();\n\t\twords.add(getRandomBeginningWord());\n\n\t\t//now choose a next word based on probability\n\t\t//repeat, increasing N context until stop condition\n\t\tfor (int i=1; i<numWords; i++){\n\t\t\tSystem.out.println(\"choosing word \" + i);\n\t\t\t//update ngram size based on # words chosen so far\n\t\t\tint n = 0;\n\t\t\tif (words.size()+1<=NGRAM)\n\t\t\t\tn = words.size()+1; \n\t\t\telse n = NGRAM;\n\n\t\t\t//get ngrams\n\t\t\tHashMap<ArrayList<String>, Integer> ngrams = allNgramCounts.get(n);\n\t\t\t//get all possible next words\n\t\t\tSet<ArrayList<String>> allPoss = ngrams.keySet();\n\n\t\t\tList<String> currentNgram = words.subList(words.size()-(n-1), words.size());\n\n\t\t\tArrayList<String> weightedPossibilities = new ArrayList<String>();\n\t\t\tfor (ArrayList<String> focus : allPoss){\n\t\t\t\tif (focus.subList(0, n-1).equals(currentNgram)){\n\t\t\t\t\t//add word to weighted possibility list times = weight/strength of this ngram\n\t\t\t\t\tfor (int times=0; times<ngrams.get(focus); times++) weightedPossibilities.add(focus.get(focus.size()-1));\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (weightedPossibilities.size()>0){\n\t\t\t\t//choose \n\t\t\t\t//System.out.println(\"Number of options: \" + weightedPossibilities.size());\n\t\t\t\twords.add((String) RiTa.random(weightedPossibilities));\n\t\t\t}\n\t\t\telse{\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\treturn words;\n\t}", "title": "" }, { "docid": "17768ac42a8d368f63f9fd27062a0d82", "score": "0.6179297", "text": "public static String getRandomWord() {\n int r = (int) (Math.random()*999);\n Scanner sc = null;\n try {\n sc = new Scanner(new File(\"top.txt\")).useDelimiter(\"\\n\");\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n }\n while(r >= 0) {\n sc.next();\n r--;\n }\n return sc.next().replace(\"\\r\",\"\");\n }", "title": "" }, { "docid": "b1f4ebccf4eb3524a6e23002f8cd13d1", "score": "0.61731756", "text": "public String returnElement(String[] Adjectives, String[] Noun){\n int randomAdj = new Random().nextInt(Adjectives.length);//method to randomize adj//\n int randomNoun = new Random().nextInt(Noun.length);//method to randomize noun//\n return (Adjectives[randomAdj] + \" - \"+ Noun[randomNoun]);\n}", "title": "" }, { "docid": "4c27fb9393a020f87ec87821bbec3e99", "score": "0.6156806", "text": "public static String randomElement(String[] randomArray){\n int randomEl = (int)(Math.random()*randomArray.length -1 );\n return randomArray[randomEl];\n }", "title": "" }, { "docid": "b87c79aa63d00ffc66b040c733b7269c", "score": "0.6109845", "text": "private String weightedWordSelection() {\n\t\tArrayList<Pair<String,Double>> potentialStarters = new ArrayList<>();\n\t\t\n\t\tfor (MarkovChain mc : listOfWords) {\n\t\t\tpotentialStarters.add(new Pair<String, Double>(mc.getWord(), 0.0 + mc.getOccurrences()));\n\t\t}\n\t\t\n\t\tEnumeratedDistribution<String> weightedSelection = new EnumeratedDistribution<>(potentialStarters);\n\t\t\n\t\treturn weightedSelection.sample();\n\t}", "title": "" }, { "docid": "338af0444ec167e7bfc3a9f89d04f74a", "score": "0.60947883", "text": "public String createWord()\n {\n Random random = new Random();\n char[] word = new char[random.nextInt(12)+3];\n for(int j = 0; j < word.length; j++)\n {\n word[j] = (char)('a' + random.nextInt(26));\n }\n String newWord = new String(word);\n return newWord;\n }", "title": "" }, { "docid": "89304edd9c6ccf11e0d4185f73be1410", "score": "0.6023204", "text": "public static String getRandomPatronymic() {\r\n //String names[]={\"\",\"\",\"\",\"\",\"\",\"\"};\r\n String vegetablePatronymics[] = {\"Tomato\", \"Potato\", \"Cucumber\",\r\n \"Corn\", \"Onion\", \"Cabbage\"};\r\n\r\n return vegetablePatronymics[new Random().nextInt(vegetablePatronymics.length - 1)];\r\n }", "title": "" }, { "docid": "b18cf7f4d47b55f8dbed33fc710e1399", "score": "0.6002532", "text": "public void selectPresentWord();", "title": "" }, { "docid": "493ed80a545ddad7858b3efbdf2137c0", "score": "0.5994726", "text": "private static String randomItem(String[] listOfStrings) {\n int listSize = listOfStrings.length;\n Random random = new Random();\n int randomNumberWithinIndex = random.nextInt(listSize);\n return listOfStrings[randomNumberWithinIndex];\n\n }", "title": "" }, { "docid": "6b34cbc5463dcb093cb066c6fb1ae472", "score": "0.59843755", "text": "public void generateRandPhrases() {\r\n\t\tfor (int i = 0; i < numPhrases; i++)\r\n\t\t\tthis.generateRandomPhrase();\r\n\t}", "title": "" }, { "docid": "17b1525d2b5b79feab4a804db1fdb159", "score": "0.5978658", "text": "public List<String> generatePhrase(int numWords, String start) {\n\t\tList <String> words = new ArrayList<String>();\n\t\twords.add(start);\n\n\t\t//now choose a next word based on probability\n\t\t//repeat, increasing N context until stop condition\n\t\tfor (int i=1; i<numWords; i++){\n\t\t\t//System.out.println(\"choosing word \" + i);\n\t\t\t//update ngram size based on # words chosen so far\n\t\t\tint n = 0;\n\t\t\tif (words.size()+1<=NGRAM)\n\t\t\t\tn = words.size()+1; \n\t\t\telse n = NGRAM;\n\n\t\t\t//get ngrams\n\t\t\tHashMap<ArrayList<String>, Integer> ngrams = allNgramCounts.get(n);\n\t\t\t//get all possible next words\n\t\t\tSet<ArrayList<String>> allPoss = ngrams.keySet();\n\n\t\t\tList<String> currentNgram = words.subList(words.size()-(n-1), words.size());\n\n\t\t\tArrayList<String> weightedPossibilities = new ArrayList<String>();\n\t\t\tfor (ArrayList<String> focus : allPoss){\n\t\t\t\tif (focus.subList(0, n-1).equals(currentNgram)){\n\t\t\t\t\t//add word to weighted possibility list times = weight/strength of this ngram\n\t\t\t\t\tfor (int times=0; times<ngrams.get(focus); times++) weightedPossibilities.add(focus.get(focus.size()-1));\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (weightedPossibilities.size()>0){\n\t\t\t\t//choose \n\t\t\t\t//System.out.println(\"Number of options: \" + weightedPossibilities.size());\n\t\t\t\twords.add((String) RiTa.random(weightedPossibilities));\n\t\t\t}\n\t\t\telse{\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\treturn words;\n\t}", "title": "" }, { "docid": "cc081acdeff7f15f0341f83e64378b6a", "score": "0.59681684", "text": "public String randRead(int wordLength) {\n\t\tArrayList<String> wordList = myWordMap.get(wordLength);\n\t\t\n\t\tif (wordList == null || wordList.size() == 0) {\n\t\t\treturn null; //there are no words of this length\n\t\t}\n\t\t\n\t\tint selection = myRandom.nextInt(wordList.size());\n\t\treturn wordList.get(selection);\n\t}", "title": "" }, { "docid": "5d9ab6bf8bf5b01263dbdcb764f71133", "score": "0.59492975", "text": "public PlayWord nextWord() {\n position++;\n if (playWords.size() <= position + 2) {\n List<PlayWord> nextWords = new ArrayList<>(playWords);\n Collections.shuffle(nextWords);\n playWords.addAll(nextWords);\n }\n\n return playWords.get(position + 1);\n }", "title": "" }, { "docid": "ba49cbe6713a1d43db3944bceecdb152", "score": "0.5939198", "text": "public static String getRandomName() {\r\n //String names[]={\"\",\"\",\"\",\"\",\"\",\"\"};\r\n String names[] = {\"Arnold\", \"Gerald\", \"Harold\",\r\n \"Helga\", \"Bob\", \"Lila\"};\r\n\r\n return names[new Random().nextInt(names.length - 1)];\r\n }", "title": "" }, { "docid": "7d215c8ed79e863306ab685cf2ec1cd5", "score": "0.5933777", "text": "@Override\r\n\tpublic String generateText(int numWords) {\r\n\t // TODO: Implement this method\r\n\t\t// if the generator has not been trained\r\n\t\tif(wordList.isEmpty()){\r\n\t\t\treturn \"\";\r\n\t\t}\r\n\t\telse if(numWords==0){\r\n\t\t\treturn \"\";\r\n\t\t}\r\n\t\t// if the generator has been trained\r\n\t\telse{\r\n\t\t\tint numAdded = 1;\r\n\t\t\tstarter = wordList.get(0).getWord();\r\n\t\t\tString currWord = starter;\r\n\t\t\tString output = \"\";\r\n\t\t\toutput += currWord;\r\n\t\t\tArrayList<String> words = new ArrayList<String>();\r\n\t\t\tfor (ListNode n: wordList){\r\n\t\t\t\twords.add(n.getWord());\r\n\t\t\t}\r\n\t\t\twhile(numAdded<numWords){\r\n\t\t\t\tListNode curr;\r\n\t\t\t\tcurr = wordList.get(words.indexOf(currWord));\r\n\t\t\t\tString w = curr.getRandomNextWord(rnGenerator);\r\n\t\t\t\toutput = output + \" \" + w;\r\n\t\t\t\tcurrWord = w;\r\n\t\t\t\tnumAdded++;\r\n\t\t\t}\r\n\t\t\treturn output;\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "14fedede88592653673caa726d05d42e", "score": "0.591444", "text": "private String getRandomNamePart(String[] nameParts){\n return nameParts[random.nextInt(nameParts.length)];\n }", "title": "" }, { "docid": "374b2df48ab02338fa766c5539ddaf52", "score": "0.58922386", "text": "public String AI_pick(){\n \tString[] list = {\"rock\", \"paper\", \"scissors\"};\n \tint idx = new Random().nextInt(list.length);\n \tString random = (list[idx]);\n \treturn random;\n }", "title": "" }, { "docid": "aec5ec6b9d3084e7fb268618b075370d", "score": "0.5871264", "text": "public static String getRandomBaseWordCandidate() {\n\t\tif (baseWordCandidates == null || baseWordCandidates.size() == 0) {\n\t\t\tinitalizeBaseWordCandidates();\n\t\t}\n\t\treturn baseWordCandidates.get(RAND.nextInt(baseWordCandidates.size()));\n\t}", "title": "" }, { "docid": "88825f3bd64dbb86823f5e8d6c283f31", "score": "0.5870684", "text": "private String computerPick() {\n\t\tRandom random = new Random();\r\n\t\tint index = random.nextInt(asdf.size());\r\n\t\tSystem.out.println(index);\r\n\t\tString w = asdf.get(index);\r\n\t\treturn w;\r\n\t}", "title": "" }, { "docid": "ac530f9547aa9c9739e4a886f7cf15de", "score": "0.58449775", "text": "public List<String> getRandomChildren(List<String> words){\n\t\tList<String> children = getChildren(words);\n\t\tCollections.shuffle(children);\n\t\treturn children;\n\t}", "title": "" }, { "docid": "5776859f4ae9dcc80baf6de2cb34fadc", "score": "0.5814742", "text": "public void addWordsToPuzzle(){\n SecureRandom rng = new SecureRandom();\n for(int i=0;i<letterArray.length;i++){\n int maxStart = letterArray[i].length - (wordList[i].length()-1);\n int num = rng.nextInt(maxStart);\n for(int j=0;j<wordList[i].length();j++){\n letterArray[i][j + num] = wordList[i].charAt(j);\n }\n }\n }", "title": "" }, { "docid": "02d67fc5c9a71f5ca4cbe64e4e09810e", "score": "0.57930374", "text": "public String getRandom(int length) {\n\t\tif (!hasLength(length))\n\t\t\tthrow new IllegalArgumentException(\"Dict has no words of \" +\n\t\t\t\t\t \"length \" + length);\n\t\tList<String> words = wordLists.get(length - 1);\n\t\treturn words.get(rand.nextInt(words.size()) );\n\t}", "title": "" }, { "docid": "b601542ebd1c879c7df462b3a650363e", "score": "0.5767051", "text": "private static String pickWord(Queue<String> q, int[][] charFreq) {\n int maxScore = 0;\n String pick = q.peek();\n for (var w : q) {\n int wScore = 0;\n for (var i = 0; i < 6; i++) wScore += charFreq[i][w.charAt(i)-'a'];\n if (wScore > maxScore) {\n pick = w;\n maxScore = wScore;\n }\n }\n return pick;\n }", "title": "" }, { "docid": "c7eb1d6e08c39c06a68516f9c5f0443d", "score": "0.57590103", "text": "public String[] findWords(String[] words) {\n String[] rowWords = new String[words.length];\n int count = 0;\n boolean flag;\n for (String s : words) {\n flag = true;\n String ss = s.toLowerCase();\n for (int i = 0; i < ss.length() - 1; i++){\n if (rowCount(ss.charAt(i)) != rowCount(ss.charAt(i+1))){\n flag = false;\n break;\n }\n }\n if (flag){ rowWords[count++] = s; }\n }\n String[] rString = new String[count];\n System.arraycopy(rowWords, 0, rString, 0, count);\n return rString;\n }", "title": "" }, { "docid": "d79068c0aefb2f77daaa79d766ca8a09", "score": "0.5730718", "text": "private void pickAnswer() {\n int index = random.nextInt(animalArrayList.size());\n String animalName = animalArrayList.get(index);\n questions.add(animalName);\n this.answer = animalName;\n }", "title": "" }, { "docid": "d8ca2ebd03817425c5d7c1fb56e3b4f0", "score": "0.5722207", "text": "public void onClick(View v) {\n String[] names = getResources().getStringArray(R.array.name);\n Random rand = new Random();\n int n = rand.nextInt(names.length-1);\n textView.setText(names[n]);\n\n }", "title": "" }, { "docid": "d7ba41d03f98a134637e0c9fb120c359", "score": "0.5717491", "text": "public Word next()\n\t{\n\t\tif (index == words.size())\n\t\t{\n\t\t\tshuffle();\n\t\t}\n\t\treturn new Word(words.get(index++));\n\t}", "title": "" }, { "docid": "18a50474af48e661d01a48ca99beec7e", "score": "0.56832004", "text": "public String createWord(int numLetters)\n {\n Random random = new Random();\n char[] word = new char[numLetters];\n for(int j = 0; j < word.length; j++)\n {\n word[j] = (char)('a' + random.nextInt(26));\n }\n String newWord = new String(word);\n return newWord;\n }", "title": "" }, { "docid": "9eba9bb5644a254a6327b331c0b62fe2", "score": "0.56743443", "text": "public void setWords(String[] w)\n\t{\n\t\tthis.words = w;\n\t}", "title": "" }, { "docid": "dbd1b94385907aa8d28425f18f077d60", "score": "0.56597215", "text": "public void generateWords(String permutation, String word) {\n\n if (isWordValid(permutation) == true) { // if valid word, generateBaseScore() & create / store word object\n int wordScore = generateBaseScore(permutation);\n word myWord = new word(wordScore, permutation);\n wordsGenerated.add(myWord);\n }\n\n for (int i = 0; i < word.length(); i++) {\n\n generateWords(permutation + word.charAt(i), word.substring(0, i) + word.substring(i + 1, word.length()));\n }\n }", "title": "" }, { "docid": "96cdf0dc6b7dc9bb05c327146071d3ad", "score": "0.5657756", "text": "public void fillWordList() {\r\n possibleWords[0] = \"AZURE\";\r\n possibleWords[1] = \"FJORD\";\r\n possibleWords[2] = \"GAZEBO\";\r\n possibleWords[3] = \"GNARLY\";\r\n possibleWords[4] = \"SPHINX\";\r\n possibleWords[5] = \"ZEPHYR\";\r\n possibleWords[6] = \"ONYX\";\r\n possibleWords[7] = \"BLITZ\";\r\n possibleWords[8] = \"VIXEN\";\r\n possibleWords[9] = \"MATRIX\";\r\n }", "title": "" }, { "docid": "59f7232e4a56f8997f5240d964e46e14", "score": "0.56484616", "text": "public void RandomString(View view){\n\n int arrayIndex = new Random().nextInt(aboutMe.length);\n String newText = aboutMe[arrayIndex];\n TextView aboutTextView = (TextView)findViewById(R.id.aboutTextView);\n aboutTextView.setText(newText);\n\n }", "title": "" }, { "docid": "e55e727dd9cef693d0474742bc08c8b2", "score": "0.56471765", "text": "private static void playFirst() {\n\n\t\tSystem.out.println(\"Please enter a word\");\n\n\t\tScanner sc = new Scanner(System.in);\n\t\tString input = sc.nextLine();\n\n\t\t// check if word\n\t\t// a. Exists as a word previously used\n\t\t// b. Has an answer retort in the dictionary provided.\n\n\t\tif (!used.contains(input)) {\n\t\t\tused.add(input);\n\t\t\tCollections.shuffle(list);\n\n\t\t\tString prev = \"\";\n\t\t\tfor (int i = 0; i < list.size(); i++) {\n\t\t\t\tchar last = input.charAt(input.length() - 1);\n\t\t\t\tif (list.get(i).charAt(0) == last) {\n\t\t\t\t\tSystem.out.println(\"My word is \" + list.get(i));\n\t\t\t\t\tprev = list.get(i);\n\t\t\t\t\tlist.remove(i);\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\tgetListSize(list);\n\t\t\tcheckWin(prev);\n\n\t\t\t// replay with having to start with last letter of previous word\n\n\t\t\tplayAgain(prev);\n\n\n\t\t} else {\n\t\t\tsc.close();\n\t\t\tlose();\n\t\t}\n\t}", "title": "" }, { "docid": "f9e86ecbe76d1c64218980065898303e", "score": "0.56461257", "text": "public String generateText() {\n\t\tif (listOfWords.isEmpty()) {\n\t\t\treturn \"\";\n\t\t}\n\t\t\n\t\tArrayList<String> possibleSentenceStarts = new ArrayList<>();\n\t\tString retVal = \"\",\n\t\t\t currentWord = \"\";\n\t\t\n\t\tint currentNumWordsSentence = 0;\n\t\t\n\t\t// Adds all the possible words into an array list\n\t\tfor (MarkovChain mc : listOfWords) {\n\t\t\tif (mc.isCapital()) {\n\t\t\t\tpossibleSentenceStarts.add(mc.getWord());\n\t\t\t}\n\t\t}\n\t\t\n\t\tdo {\n\t\t\t// Chooses the first word of the sentence\n\t\t\tif (possibleSentenceStarts.isEmpty()) {\n\t\t\t\t// Use common articles to start the sentence\n\t\t\t\tif (Math.random() <= 0.5) {\n\t\t\t\t\tint randomNum = ThreadLocalRandom.current().nextInt(0, commonArticles.length);\n\t\t\t\t\tcurrentWord = commonArticles[randomNum];\n\t\t\t\t}\n\t\t\t\t// Choose a random word from the list of words to start the sentence by using a weighted selection based on the number of occurrences\n\t\t\t\telse {\n\t\t\t\t\tcurrentWord = weightedWordSelection();\n\t\t\t\t}\n\t\t\t}\n\t\t\telse {\n\t\t\t\tint randomNum = ThreadLocalRandom.current().nextInt(0, possibleSentenceStarts.size());\n\t\t\t\tcurrentWord = possibleSentenceStarts.get(randomNum);\n\t\t\t}\n\t\t\t\n\t\t\tchar lastCharacterFirstWord = currentWord.charAt(currentWord.length() - 1);\n\t\t\tif (!(lastCharacterFirstWord == '!' || lastCharacterFirstWord == '.' || lastCharacterFirstWord == '?')) {\n\t\t\t\tcurrentNumWordsSentence++;\n\t\t\t}\n\t\t} while (currentNumWordsSentence == 0);\n\t\t\n\t\tretVal += currentWord + \" \";\n\t\tint numWordsTotal = ThreadLocalRandom.current().nextInt(10, 30);\n\t\tint currentNumWords = 1;\n\t\t\n\t\twhile (currentNumWords != numWordsTotal) {\n\t\t\tchar lastChar = currentWord.charAt(currentWord.length() - 1);\n\t\t\tboolean endOfSentence = (lastChar == '!' || lastChar == '.' || lastChar == '?');\n\t\t\t\n\t\t\t// Keeps generating words until a word without punctuation is given if the sentence has not reached the minimum size yet\n\t\t\tdo {\n\t\t\t\tcurrentWord = getNextWord(currentWord);\n\t\t\t\tlastChar = currentWord.charAt(currentWord.length() - 1);\n\t\t\t\tendOfSentence = (lastChar == '!' || lastChar == '.' || lastChar == '?');\n\t\t\t} while (currentNumWordsSentence < minWordsInSentence && endOfSentence);\n\t\t\t\n\t\t\tretVal += currentWord + \" \";\n\t\t\tcurrentNumWords++;\n\t\t\tcurrentNumWordsSentence++;\n\t\t\t\n\t\t\t// Resets the count for words in the current sentence\n\t\t\tif (currentNumWordsSentence > minWordsInSentence && endOfSentence) {\n\t\t\t\tcurrentNumWordsSentence = 0;\n\t\t\t}\n\t\t}\n\t\t\n\t\tretVal = retVal.substring(0,1).toUpperCase() + retVal.substring(1, retVal.length() - 1);\n\t\t\n\t\t// Adds a period for punctuation, otherwise randomizes the ending punctuation mark\n\t\tif (Character.isLetterOrDigit(retVal.charAt(retVal.length() - 1))) {\n\t\t\treturn retVal + \".\";\n\t\t}\n\t\t\n\t\tchar[] punctuation = { '.', '!', '?' };\n\t\tchar endingPunctuation = punctuation[ThreadLocalRandom.current().nextInt(0, punctuation.length)];\n\t\t\n\t\treturn retVal.substring(0, retVal.length() - 1) + endingPunctuation;\n\t}", "title": "" }, { "docid": "1d66f02b155b6b479cd2a34b7225eb8a", "score": "0.5629162", "text": "public String pickGoodStarterWord() {\n\n String starterWord = \"\";\n\n int noOfAnagrams;\n do {\n // pick a word of length wordLength\n if(count < sizeToWords.get(wordLength).size()){\n starterWord = sizeToWords.get(wordLength).get(count);\n }\n else{\n wordLength = (wordLength + 1)%MAX_WORD_LENGTH;\n count = 0;\n }\n count++;\n\n // check no of anagrams\n noOfAnagrams = getAnagramsWithOneMoreLetter(starterWord).size();\n\n }while (noOfAnagrams < MIN_NUM_ANAGRAMS);\n\n\n return starterWord;\n }", "title": "" }, { "docid": "1e67962d606f12ccd04e12917dc5135f", "score": "0.5626175", "text": "private String getRandomTrigram(ConcurrentHashMap<String, ArrayList<String>> wordMap) {\n ArrayList<String> keyList = new ArrayList<>(wordMap.keySet());\n String randomKey = keyList.get(new Random().nextInt(keyList.size()));\n //System.out.println(\"getting random key --\"+randomKey);\n return randomKey;\n }", "title": "" }, { "docid": "d2ec853966892f7bd392205bad469cc1", "score": "0.5620082", "text": "public Hangman(String[] allWords) {\n this.allWords = allWords;\n number = new Random();\n newWord();\n hiddenWord = new char[word.length()];\n visible = new boolean[word.length()];\n triesLeft = 10;\n badLettersUsed = \"\";\n\n for(int i = 0; i < getRealWord().length(); i++)\n hiddenWord[i] = '-';\n\n }", "title": "" }, { "docid": "71a9b5b9601a591d81c638d71a33e04b", "score": "0.56198096", "text": "public <T> T choose(T[] items) {\n return items[nextInt(items.length)];\n }", "title": "" }, { "docid": "d25dcaf631e8414d0f620ebed7a06af4", "score": "0.5614045", "text": "String makeAClue(String puzzleWord) {\n\t\tArrayList<Character> puzzleLetters = new ArrayList<Character>();\n\t\tArrayList<Character> clueLetters = new ArrayList<Character>();\n\t\tfor (char singleChar : puzzleWord.toCharArray()) {\n\t\t\tpuzzleLetters.add(singleChar);\n\t\t}\n\t\tRandom random = new Random();\n\t\twhile (!puzzleLetters.isEmpty()) {\n\t\t\tint randomCharacterIndex = random.nextInt(puzzleLetters.size()); // Obtain a random letter\n\t\t\tclueLetters.add(puzzleLetters.get(randomCharacterIndex));\n\t\t\tpuzzleLetters.remove(randomCharacterIndex);\n\t\t}\n\t\tString clueWord = clueLetters.stream().map(singleChar -> singleChar.toString()).collect(Collectors.joining());\n\t\treturn clueWord;\n\t}", "title": "" }, { "docid": "ba173954c00f2bd76c9b3d89cdbad241", "score": "0.5612918", "text": "public String getRandomText() {\n return decisions.get(random.nextInt(decisions.size()));\n }", "title": "" }, { "docid": "f782045f99590865a1feb42ee1c48ccf", "score": "0.5612454", "text": "public char[] getRandomDisChar() {\n // chars random index set\n HashSet<Integer> charIndexSet = new HashSet<>();\n int[] charIndex = new int[disCharWordNum];\n Random random = new Random();\n int index = 0;\n while (charIndexSet.size() != disCharWordNum) {\n index = random.nextInt(chars.length);\n if (!charIndexSet.contains(index)) {\n charIndex[charIndexSet.size()] = index;\n charIndexSet.add(index);\n }\n }\n for (int i = 0; i < disCharWordNum; i++) {\n disChar[i] = chars[charIndex[i]].charAt(0);\n }\n\n return disChar;\n }", "title": "" }, { "docid": "42b77e9e30a140a6f46695d1946fb7b8", "score": "0.5602937", "text": "public ScrabbleWord getScrabbleWord(char[][] board, char[] availableLetters)\n {\n\n\n\n\n\n return new ScrabbleWord(\"MYWORD\", 0, 0, 'h');\n }", "title": "" }, { "docid": "d9ad632603f73d3abf82d61ea0d3da22", "score": "0.55996835", "text": "private void printFullWord(String randomWord){\r\n\t\tSystem.out.println(\"The secret word was: \" + randomWord + \"\\n\");\r\n\t}", "title": "" }, { "docid": "de4ed2139900ba9d1a0f8803099dd73f", "score": "0.5585733", "text": "private static String createSentance1(int numWords) {\n StringBuilder sb = new StringBuilder(numWords * 2);\n for (int i = 0; i < numWords; i++) {\n sb.append(TestUtil.randomSimpleString(r, 1, 1));\n }\n return sb.toString();\n }", "title": "" }, { "docid": "1655408448a0bf252d36d0b6d9adec5d", "score": "0.55844456", "text": "private String getNewWord(){\n\t\n\tExpandableListAdapter source=new MyExpandableListAdapter();\n\tint groupSize = source.getGroupCount();\n\tRandom groupRandom = new Random();\n\tint groupInt = groupRandom.nextInt(groupSize);\n\tRandom childRandom = new Random();\n\tint childSize = source.getChildrenCount(groupInt);\n\tint childInt = childRandom.nextInt(childSize);\n\tString sourceWord = source.getChild(groupInt, childInt).toString().toLowerCase();\n\ttip=source.getGroup(groupInt).toString(); // displays the groupname as a hint for the anagram\n\t\n\treturn sourceWord;\n\t\n}", "title": "" }, { "docid": "1c065f151fb44b6098ed9e50126c5f69", "score": "0.5580075", "text": "private static DelayFunction getRandom(DelayFunction[] array) {\n\t\tint index = rnd.nextInt(array.length);\n\t\treturn array[index];\n\t}", "title": "" }, { "docid": "6dab1bfecefeab36263f31edfde49a6d", "score": "0.5557341", "text": "public WordGenerator()\n\t{\n\t\ttry\n\t\t{\n\t\t\tfinal IResourceStream resource = new ResourceStreamLocator().locate(WordGenerator.class,\n\t\t\t\t\"org/apache/wicket/examples/hangman/WordList\", null, null, Locale.getDefault(),\n\t\t\t\t\".txt\", false);\n\t\t\tfinal String wordlist = Streams.readString(resource.getInputStream());\n\t\t\twords = Arrays.asList(wordlist.split(\"\\\\s+\"));\n\t\t\tshuffle();\n\t\t}\n\t\tcatch (IOException | ResourceStreamNotFoundException e)\n\t\t{\n\t\t\tthrow new RuntimeException(\"Couldn't read word list\");\n\t\t}\n\t}", "title": "" }, { "docid": "4582f7c472945677db0b29d39663e5c4", "score": "0.5555602", "text": "private static String randomDist()\r\n\t{\r\n\t\tfinal String[] arr = {\"Chicago, IL\", \"New York City, NY\", \"London, UK\", \"Seattle, WA\",\r\n\t\t\t\t\"Miami, FL\", \"Hong Kong\", \"Mumbai, India\", \"Dubia, UAE\", \"Libya, Africa\", \"Moskau, Russia\", \"Venezuela\"};\r\n\r\n\t\tint pos = (int)(Math.random() * (arr.length) );\r\n\r\n\t\treturn arr[pos];\r\n\r\n\t}", "title": "" }, { "docid": "c58976d422573b0b230507a264bed369", "score": "0.55524117", "text": "private void verifyWordsDefined(String[] words) {\n throw new UnsupportedOperationException(\"Not supported yet.\"); // To change body of generated\n // methods, choose Tools |\n // Templates.\n }", "title": "" }, { "docid": "9f24801b003b01ac233a9d7c7fd326de", "score": "0.55442744", "text": "public void selectNextWord() {\n wordNumber++;\n }", "title": "" }, { "docid": "c73245ffee1fb040499134b2b826abdc", "score": "0.5541779", "text": "public Word getMostLikely() {\n RandomCollection<Word> collection = new RandomCollection<>();\n for (Word key : wordsAfter.keySet()) {\n collection.add(wordsAfter.get(key), key);\n }\n\n return collection.next();\n }", "title": "" }, { "docid": "a636e303f617f18e4d72d98d6ec2dbc2", "score": "0.55393845", "text": "private void playGame(Word word) {\r\n randomWord = word.getWord(); // get random word for choosed level and choosed category\r\n //let's encrypt word\r\n for (int i = 0; i < randomWord.length(); i++)\r\n displayWord = displayWord.append(\"_\");\r\n int index = randomWord.indexOf(\" \"); // get space in word\r\n // let's replace spaces in word\r\n while (index >= 0) {\r\n displayWord.setCharAt(index, ' ');\r\n index = randomWord.indexOf(\" \", index + 1);// Start searching for next word if exist\r\n }\r\n //label for displaying word so far\r\n wordL = new JLabel(displayWordSoFar());\r\n wordL.setBounds(10, 45, 340, 25);\r\n wordL.setFont(new Font(\"SansSerif\", Font.BOLD, 12));\r\n panel.add(wordL);\r\n }", "title": "" }, { "docid": "0e82dcbeb68a75a482a94594a0fdc494", "score": "0.5535582", "text": "public static String generateRandom(int n, String[] corpus){\r\n\t\tString result = \"\";\t\t\t\t//n = number of words to be generated\r\n\t\tString punct = \"\";\r\n\t\tfor (int i=0; i<n; i++){\r\n\t\t\tresult += corpus[r.nextInt(corpus.length)] + \" \";\r\n\t\t}\r\n\t\tresult = Character.toUpperCase(result.charAt(0)) + result.substring(1);\r\n\t\tpunct += \".\" + \"?\" + \"!\";\r\n\t\tresult = result.substring(0, result.length()-1);\r\n\t\tresult += punct.charAt(r.nextInt(punct.length()));\r\n\t\tSystem.out.println(result);\r\n\t\t\r\n\t\treturn result;\r\n\t}", "title": "" }, { "docid": "48251bca7acd4b827b59b2a8f642b0d9", "score": "0.55162174", "text": "public static void ProblemThree(Random rand) {\n Scanner scanner = new Scanner(System.in);\n System.out.println(\"Hi, what's your name?\\n\");\n String name = scanner.nextLine();\n // random print \"I believe in you!\" or \"You suck!\"\n String[] believe = {\"I believe in you, \" + name, \"I don't believe in you, \" + name + \", you suck.\", \"I don't believe in you, \" + name + \", you suck.\",\"I don't believe in you, \" + name + \", you suck.\"};\n int x = rand.nextInt(4);\n System.out.println(believe[x]);\n }", "title": "" }, { "docid": "2c06bca227c8a8716fd1978f082dd6dc", "score": "0.5507487", "text": "public void printWordPavlas() {\r\n\t\t\r\n\t\tSystem.out.print(\"The random word is now: \");\r\n\t\t\r\n\t\tfor (int i=0; i<wordToGuessLength; i++) {\r\n\t\t\twordToGuess[i]='-'; //Add \"-\" to all positions of word's char array\r\n\t\t\tSystem.out.print(\"-\");\r\n\t\t}\r\n\t\tSystem.out.println(\"\\n\");\r\n\t}", "title": "" }, { "docid": "2714cf30fccc7c8e57b15351439b962f", "score": "0.55019605", "text": "@Test\n public void testGetScrambledword() {\n System.out.println(\"getScrambledword\");\n int index = 0;\n StaticWords instance = new StaticWords();\n String expResult = \"batsartcoin\";\n String result = instance.getScrambledword(index);\n assertEquals(expResult, result);\n\n }", "title": "" }, { "docid": "6aff3cd0c706d7949e224980da7bdff8", "score": "0.54831195", "text": "@Override\n public void onCreate(@Nullable Bundle savedInstanceState) {\n MainActivity.sharedPref.savePreferenceInteger(WINDOWS, 2);\n\n // когда показывать провописание\n spelling = new HashSet();\n // spelling.add(0);\n // spelling.add(6);\n // spelling.add(8);\n\n super.onCreate(savedInstanceState);\n db = MainActivity.bd_word;\n\n words_arr_bd = new ArrayList<>();\n words_arr_learning = new ArrayList<>();\n\n other = new Other();\n long timestamp = Learning.other.getCurrentTimeStamp();\n // масив всех слов до текущего timestamp\n words_arr_bd = db.getWordDAO().getWordByTimeStamp(timestamp);\n\n // Log.d(TAG, \"onCreate: отсортированный входящий лист words_arr_bd \" + words_arr_bd.size());\n for (Word word : words_arr_bd) {\n if (word.timeStamp != 0) {\n words_arr_learning.add(word);\n }\n }\n\n\n Collections.sort(words_arr_learning, new Comparator<Word>() {\n public int compare(Word w1, Word w2) {\n return Long.valueOf(w1.timeStamp).compareTo(Long.valueOf(w2.timeStamp));\n }\n });\n\n\n // если изучающих слов меньше чем 30 то добавим новых\n if (words_arr_learning.size() < 30) {\n // добавляем новые слова\n Random random = new Random();\n int words_arr_bd_size = words_arr_bd.size() > 25 ? 25 : words_arr_bd.size();\n // Log.d(TAG, \"onCreate: words_arr_bd_size = \" + words_arr_bd_size);\n for (int i = 0; i < words_arr_bd_size; i++) {\n int rand = random.nextInt(words_arr_bd.size());\n // выбираем из всех 25 рандомных\n words_arr_learning.add(words_arr_bd.get(rand));\n }\n }\n\n/*\n for (Word word : words_arr_learning) {\n Log.d(TAG, \"onCreate: \" + word.toString());\n }\n Log.d(TAG, \"onCreate: words_arr_learning.size \" + words_arr_learning.size());\n*/\n }", "title": "" }, { "docid": "60ea8e90a22d1c82bca66913d5d830fc", "score": "0.5471443", "text": "public String getPhrase(){\n if (phraseList.size()==0)\n return \"\";\n\n int rnd = (int) (Math.random()*phraseList.size());\n String returnPhrase = phraseList.get(rnd);\n phraseList.remove(returnPhrase);\n return returnPhrase;\n }", "title": "" }, { "docid": "80ec4114da8c67c90ffa30efefae62fb", "score": "0.5465554", "text": "@Override\r\n\tString makeAClue(String puzzleWord) {\r\n\t\tchar [] word = puzzleWord.toCharArray(); \r\n\t\tint len = word.length;\r\n\t\tint dash = 0;\r\n\t\twhile ((double) dash/len < 0.5) { //the loop keeps running when less than 50% of the word has been replaced with dashes\r\n\t\t\tint index = (int) (Math.random() * len); //pick a random index\r\n\t\t\tif (word[index] != ('-')) {\r\n\t\t\t\tfor (int i = 0; i < len; i++) {\r\n\t\t\t\t\tif (word[index] == word[i] && i != index) {\r\n\t\t\t\t\t\tword[i] = '-';\r\n\t\t\t\t\t\tdash += 1;\r\n\t\t\t\t\t}\r\n\t\t\t\t} //if the character at index is repeated in the word, change that repeated occurrence to dash\r\n\t\t\t\tword[index] = '-';//change the character at index to dash\r\n\t\t\t\tdash += 1;\r\n\t\t\t}\r\n\t\t}\r\n\t\tString dashedWord = new String(word); //change the character array to a string\r\n\t\treturn dashedWord; //return the string\r\n\t}", "title": "" }, { "docid": "ecbb637c26e8c97d9193ca34ae98b925", "score": "0.544032", "text": "public List<String> resolve(List<String> existingWords) {\n\t\tList <String> words = new ArrayList<String>();\n\t\twords.addAll(existingWords);\n\n\t\t//now choose a next word based on probability\n\t\t//repeat, increasing N context until stop condition\n\t\twhile (! isEndWord(words.get(words.size()-1))){\n\t\t\t//System.out.println(words);\n\t\t\t//System.out.println(\"choosing word towards end word\");\n\t\t\t\n\t\t\t//update ngram size based on # words chosen so far\n\t\t\t//limit to bigram for this\n\t\t\tint n = 0;\n\t\t\tif (words.size()+1<=BIGRAM)\n\t\t\t\tn = words.size()+1; \n\t\t\telse n = BIGRAM;\n\n\t\t\t//get ngrams\n\t\t\tHashMap<ArrayList<String>, Integer> ngrams = allNgramCounts.get(n);\n\t\t\t//get all possible next words\n\t\t\tSet<ArrayList<String>> allPoss = ngrams.keySet();\n\n\t\t\tList<String> currentNgram = words.subList(words.size()-(n-1), words.size());\n\n\t\t\tArrayList<String> weightedPossibilities = new ArrayList<String>();\n\t\t\tfor (ArrayList<String> focus : allPoss){\n\t\t\t\tif (focus.subList(0, n-1).equals(currentNgram)){\n\t\t\t\t\t//add word to weighted possibility list times = weight/strength of this ngram\n\t\t\t\t\tfor (int times=0; times<ngrams.get(focus); times++) weightedPossibilities.add(focus.get(focus.size()-1));\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (weightedPossibilities.size()>0){\n\t\t\t\t//choose \n\t\t\t\t//System.out.println(\"Number of options: \" + weightedPossibilities.size());\n\t\t\t\twords.add((String) RiTa.random(weightedPossibilities));\n\t\t\t}\n\t\t\telse{\n\t\t\t\t//System.out.println(\"no more options\");\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\treturn words;\n\t}", "title": "" }, { "docid": "1092b0830b8a0aba61b918b5082fd5e5", "score": "0.5439295", "text": "private String _fetchNonTranslatedWord() {\n for (WordData.Word word : randomWords) {\n if (word.getSouceLang() != null && word.getSouceLang().equalsIgnoreCase(langCode) && word.getTranslatedValue() != null) {\n continue;\n } else {\n return word.getName();\n }\n }\n return null;\n }", "title": "" }, { "docid": "f41459f041b0266f55256c9d4e779de6", "score": "0.543683", "text": "private void selectWordColor(){\n num = rng.nextInt(1000);\n if(num >= 0 && num <= 199){\n wordColor = wordBank[0];\n }\n else if(num >= 200 && num <= 399){\n wordColor = wordBank[1];\n }\n else if(num >= 400 && num <= 599){\n wordColor = wordBank[2];\n }\n else if(num >= 600 && num <= 799){\n wordColor = wordBank[3];\n }\n else {\n wordColor = wordBank[4];\n }\n }", "title": "" }, { "docid": "9bf057309c0dd43abd319c113817178b", "score": "0.54364437", "text": "private String pickRandomPosition()\r\n {\r\n String[] positionArray = \r\n {\"A\", \"A\", \"M\", \"M\", \"M\", \"M\", \"D\", \"D\", \"D\", \"D\", \"G\"}; //list of positions based on the field\r\n \r\n int max = 10;\r\n int min = 0; //average = 66 between skills\r\n Random r = new Random();\r\n\r\n int randomNum = r.nextInt((max-min) + 1) + min;\r\n \r\n String position = positionArray[randomNum];\r\n return position;\r\n }", "title": "" }, { "docid": "ad71de0eb638b360e55751a4cff11887", "score": "0.5422322", "text": "public void WordCloudImage(List<String> text) throws Exception {\n\t\t\n\t\t\n\t\tArrayList<String> MostUsedWords = new ArrayList<String>();\n\t\tRandom rand = new Random(); // used random for words and colors\n\t\t\n\t\t\n\t\tFont font = new Font(Font.SANS_SERIF, Font.BOLD, 62);\n\t\t BufferedImage image = new BufferedImage(4000,4000, BufferedImage.TYPE_4BYTE_ABGR);\n\t\t\n\t\n\t\t Graphics graphics = image.getGraphics();\n\t\t \n\t\t font = new Font(Font.SANS_SERIF, Font.ITALIC, 200);\n\t\t graphics.setColor(Color.red);\n\t\t graphics.setFont(font);\n\t\t graphics.drawString(\"Data Structures\", 0, 200);\n\n\t\t font = new Font(Font.SANS_SERIF, Font.ITALIC, 200);\n\t\t graphics.setFont(font);\n\t\t graphics.setColor(Color.yellow);\n\t\t graphics.drawString(\"and Algorithms\", 0, 400);\n\n\t\t font = new Font(Font.MONOSPACED, Font.PLAIN, 200);\n\t\t graphics.setFont(font);\n\t\t graphics.setColor(Color.orange);\n\t\t graphics.drawString(\"2019 Assignment\", 0, 600);\n\t\t \n\t\t font = new Font(Font.MONOSPACED, Font.PLAIN, 200);\n\t\t graphics.setFont(font);\n\t\t graphics.setColor(Color.green);\n\t\t graphics.drawString(\"G00359994 - Thomas Kenny\", 0, 900);\n\t\t \n\t\t int r = rand.nextInt(256);\n\t\t int g = rand.nextInt(256);\n\t\t int b = rand.nextInt(256); // I used the sample code on Moodle to create image\n\t\t int r2 = 0 , g2 =0 , b2 = 0; // I added the for loop to display the chosent amount words in random locations on the image\n\t\t System.out.println(\"If you would like the colors to be random type 1 or create your color type 2 \");\n\t int Choice= reader.nextInt(); \n if(Choice == 1) {\n \t \n \t \n \t\tfor (int i = 0;i <= MaxNumWords; i++) { // loops until it reaches how many words you wanted to display\n \t\t\t\t\n \t\t\t font = new Font(Font.MONOSPACED, Font.ITALIC, rand.nextInt(250) + 100); // I used the .Random to get different sized fonts for each word\n \t\t\t graphics.setFont(font);\n \t\t\t Color randomColour = new Color(r,g,b); \n \t\t\t r = rand.nextInt(256);\n \t\t\t g = rand.nextInt(256); // I used this to get the colors to be random \n \t\t\t b = rand.nextInt(256); \n \t\t\t graphics.setColor(randomColour); \n \t\t\t\n \t\t\t graphics.drawString(text.get(i) , rand.nextInt(3000), rand.nextInt(3000)); \n \t\t\t++i;\n \t\t\t} \n \t\t\n \t\t\t graphics.dispose();\n \t\t\t ImageIO.write(image, \"png\", new File(ImageName + \".png\")); //creates the image\n \t\t\t\n \t\t\t }\n else if(Choice == 2) {\n \t \n System.out.println(\"Enter a number between 1 and 256 for R\"); \t \n r2 = reader.nextInt(); \n \n System.out.println(\"Enter a number between 1 and 256 for G\"); \t // I added the function so the user can make their own color \n g2 = reader.nextInt(); \n \n System.out.println(\"Enter a number between 1 and 256 for B\"); \t \n b2 = reader.nextInt(); \n\n Color UserColour = new Color(r2,g2,b2); \n \n \n\t\tfor (int i = 0;i <= MaxNumWords; i++) { \n\t\t\t\t\n\t\t font = new Font(Font.MONOSPACED, Font.ITALIC, rand.nextInt(250) + 100); \n\t\t graphics.setFont(font);\n\t\t graphics.setColor(UserColour); \n\n\t\t graphics.drawString(text.get(i) , rand.nextInt(3000), rand.nextInt(3000)); //same as above \n\t\t++i; \n\t\t} \n\t\n\t\t graphics.dispose();\n\t\t ImageIO.write(image, \"png\", new File(ImageName + \".png\")); \n\t\t\n\t\t }\n\t}", "title": "" }, { "docid": "f0db69963ed97e527f69817d8f09ddac", "score": "0.5421969", "text": "private void settablistWord() {\n\t\tarrlistword = new ArrayList<MyWord>();\n\t\tMyWord []word = new MyWord[5];\n\t\tint []a = new int[5];\n\t\tint so = (int)(Math.random()*500);\n\t\ta[0]=5;a[1]=300;a[2]=1000;a[3]=1500;a[4]=2500;\n\t\tfor(int i=0;i<5;i++)\n\t\t{\n\t\t\ta[i]=a[i]+so;\n\t\t\tword[i] = db.getWord(a[i]);\n\t\t\tarrlistword.add(word[i]);\n\t\t}\n\t\tdb = new DictionaryDataBase(this);\n\t\tarrstrword =new ArrayList<String>();\n\t\tarrstrnghia =new ArrayList<String>();\n\t\tarrphatam =new ArrayList<String>();\n\t\tarrloai =new ArrayList<String>();\n\t arrmean = new ArrayList<String>();\n\n\n\t\tarrstrword.removeAll(arrstrword);\n\t\tarrloai.removeAll(arrloai);\n\t\tarrphatam.removeAll(arrphatam);\n\t\tarrstrnghia.removeAll(arrstrnghia);\n\t\tarrmean.removeAll(arrmean);\n\n\n\t\tsize = arrlistword.size();\t\n\t\tlv =(ListView)findViewById(R.id.lvword);\n\t\tsetlist();\n\n\t}", "title": "" }, { "docid": "380d8069b604948e63e7167e8e6657f9", "score": "0.5417376", "text": "public void selectRandom() {\n Random r = new Random();\n selectSpecific(options.get(r.nextInt(options.size())));\n }", "title": "" }, { "docid": "a212c77fbb82c526aa8a0a8096945564", "score": "0.5395919", "text": "private String displayWordSoFar() {\r\n StringBuffer randomWordWord = new StringBuffer();\r\n for (char ch : displayWord.toString().toCharArray()) {\r\n if (ch == ' ')\r\n randomWordWord.append(\" \"); // space\r\n else\r\n randomWordWord.append(ch + \" \"); // letter\r\n }\r\n return randomWordWord.toString();\r\n }", "title": "" }, { "docid": "8d393aaa18631460bb170f5cd9985d0b", "score": "0.53954935", "text": "public void test () {\n //System.out.println(words.length);\n //for (int i = 0; i < words.length; i++) {\n // System.out.println(words[i].getWord());\n //}\n }", "title": "" }, { "docid": "44d3b379741dc8897686160cd4777b33", "score": "0.5392053", "text": "public static List<String> getTestWords(File input) throws IOException{\n int wordCount = getWordCount(input);\n int sampleSize = (int)Math.ceil(wordCount/100);\n long randomPointerLocation;\n RandomAccessFile raf = new RandomAccessFile(input, \"r\");\n StringBuilder wordToAdd = new StringBuilder();\n\n List<String> testWords = new ArrayList<>();\n while (testWords.size() < sampleSize) {\n try {\n wordToAdd.setLength(0);\n randomPointerLocation = Utilities.nextLong(randomGenerator, raf.length());\n raf.seek(randomPointerLocation);\n char c = (char)raf.read();\n if(c != ' '){\n while (c != ' '){\n c = (char)raf.read();\n }\n\n c = (char)raf.read();\n while (c != ' '){\n if(wordToAdd.length() > 100){\n continue;\n }\n wordToAdd.append(c);\n c = (char)raf.read();\n }\n }\n else{\n while (c == ' '){\n c = (char)raf.read();\n }\n while (c != ' '){\n if(wordToAdd.length() > 100){\n continue;\n }\n wordToAdd.append(c);\n c = (char)raf.read();\n }\n }\n if(wordToAdd.length() > 0 ){\n testWords.add(wordToAdd.toString());\n }\n\n }\n catch (EOFException e){\n continue;\n }\n }\n\n return testWords;\n\n }", "title": "" }, { "docid": "96159cff6b7309659280ea276c387bf5", "score": "0.53893214", "text": "private String getRandomNamePart(String[] nameParts, double noneChance){\n if(Math.random()>noneChance){\n return getRandomNamePart(nameParts);\n } else {\n return \"\";\n }\n }", "title": "" }, { "docid": "511a4c402e214fc821941daf4bdf1c71", "score": "0.5389022", "text": "public WordCollection(String [] words){\n collection = new ArrayList<String>();\n for(String s : words) {\n collection.add(s);\n }\n }", "title": "" } ]
f2ac907d0b11c50ad14cbbf2d8ae1da0
This method was generated by MyBatis Generator. This method corresponds to the database table dish_comment
[ { "docid": "91b00d34e6e4dee55118837c975f403f", "score": "0.0", "text": "int insert(DishComment record);", "title": "" } ]
[ { "docid": "6a35ded08cedcacb9db584de4d3bf505", "score": "0.657283", "text": "DishComment selectByPrimaryKey(Integer id);", "title": "" }, { "docid": "290f4caac015e1acee76e9544e977909", "score": "0.62857527", "text": "@GeneratedFromColumn(\"comments\")\n public String getComments() {\n return comments;\n }", "title": "" }, { "docid": "09eb4e77a18f8d77a570eaeef733f948", "score": "0.61634815", "text": "@ManyToOne\n @JoinColumn(name = \"comment\")\n public Comment getComment() {\n return comment;\n }", "title": "" }, { "docid": "d3601945e564bd609c4d6001e55847f9", "score": "0.6057347", "text": "void mo88862a(DbCommentEntity bVar);", "title": "" }, { "docid": "e595199fe4f39bc3b16b5f91dbcd4ec7", "score": "0.5977094", "text": "@Override\n\tpublic Comment getEntity(String sql, String name) {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "f3680601a2d7a11bb6a4c48ec8759b29", "score": "0.59714913", "text": "DO_Comments selectByPrimaryKey(Integer id);", "title": "" }, { "docid": "6b89d5c10d7c27cb76863f9acfbadb7a", "score": "0.59314364", "text": "@Mapper\npublic interface CommentDao {\n String TABLE_NAEM = \" comment \";\n String INSERT_FIELDS = \" entity_id, entity_type, content, created_date, user_id, status \";\n String SELECT_FIELDS = \" id, \" + INSERT_FIELDS;\n\n @Insert({\"insert into\",TABLE_NAEM,\"(\",INSERT_FIELDS,\") values (#{entityId},#{entityType},\" +\n \"#{content},#{createdDate},#{userId},#{status})\"})\n int insertComment(Comment comment);\n\n @Select({\"select\",SELECT_FIELDS,\"from\",TABLE_NAEM,\"where id=#{id}\"})\n Comment seletById(int id);\n\n @Select({\"select\",SELECT_FIELDS,\"from\",TABLE_NAEM,\"order by id desc limit #{offset},#{limit}\"})\n List<Comment> selectLatestComments(@Param(\"offset\") int offset, @Param(\"limit\") int limit);\n\n @Select({\"select\",SELECT_FIELDS,\"from\",TABLE_NAEM,\"where entity_id = #{entityId} and entity_type = #{entityType} \" +\n \"order by created_date desc\"})\n List<Comment> selectCommentsByEntity(@Param(\"entityId\") int entityId,@Param(\"entityType\") int entityType);\n\n @Select({\"select count(id) from\",TABLE_NAEM,\"where entity_id = #{entityId} and entity_type = #{entityType}\"})\n int getCommentCount(@Param(\"entityId\") int entityId,@Param(\"entityType\") int entityType);\n\n @Update({\"update\",TABLE_NAEM,\"set status = #{status} where id = #{commendId}\"})\n void updateStatus(@Param(\"commendId\") int commendId,@Param(\"status\") int status);\n\n @Delete({\"delete from\",TABLE_NAEM,\"where id=#{id}\"})\n void deleteById(int id);\n}", "title": "" }, { "docid": "f8248630351eb995f8ba2a8ef4984b6c", "score": "0.58842146", "text": "public CommentsDao() {\n super(Comments.COMMENTS, com.anzoo_anzoom.database.anzoo_anzoom.tables.pojos.Comments.class);\n }", "title": "" }, { "docid": "261fe3f5d07e3f291b2cc95ea355163d", "score": "0.58656627", "text": "java.lang.String getComment();", "title": "" }, { "docid": "261fe3f5d07e3f291b2cc95ea355163d", "score": "0.58656627", "text": "java.lang.String getComment();", "title": "" }, { "docid": "2e178c11016fb3596fe29d259ddd2cce", "score": "0.5861915", "text": "@Override\n\tpublic Result getComment(Comment comment) {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "d95ff139c4b770c87b77c0a610060c62", "score": "0.5861368", "text": "public interface ProductCommentDAO {\n\t/**\n\t * Query DB table <tt>makeploy_product_comment</tt> for records.\n\t *\n\t * <p>\n\t * The sql statement for this operation is <br>\n\t * <tt>select * from makeploy_product_comment</tt>\n\t *\n\t *\t@param shopId\n\t *\t@param productNo\n\t *\t@param startRow\n\t *\t@param pageSize\n\t *\t@return List<ProductCommentDO>\n\t *\t@throws DataAccessException\n\t */\t \n public List<ProductCommentDO> selectProductCommentByShopIdAndProductNo(String shopId, String productNo, Integer startRow, Integer pageSize) throws DataAccessException;\n\n\t/**\n\t * Query DB table <tt>makeploy_product_comment</tt> for records.\n\t *\n\t * <p>\n\t * The sql statement for this operation is <br>\n\t * <tt>select * from makeploy_product_comment</tt>\n\t *\n\t *\t@param shopId\n\t *\t@param productNo\n\t *\t@return ProductCommentDO\n\t *\t@throws DataAccessException\n\t */\t \n public ProductCommentDO selectNewProductComment(String shopId, String productNo) throws DataAccessException;\n\n\t/**\n\t * Query DB table <tt>makeploy_product_comment</tt> for records.\n\t *\n\t * <p>\n\t * The sql statement for this operation is <br>\n\t * <tt>select * from makeploy_product_comment</tt>\n\t *\n\t *\t@param productNo\n\t *\t@param shopId\n\t *\t@return int\n\t *\t@throws DataAccessException\n\t */\t \n public int selectCommentCountByShopIdAndProductNo(String productNo, String shopId) throws DataAccessException;\n\n\t/**\n\t * Insert one <tt>ProductCommentDO</tt> object to DB table <tt>makeploy_product_comment</tt>, return primary key\n\t *\n\t * <p>\n\t * The sql statement for this operation is <br>\n\t * <tt>insert into makeploy_product_comment(SHOP_ID,USER_ID,PRODUCT_NO,ORDER_ID,STAR_COUNT_ONE,STAR_COUNT_TWO,STAR_COUNT_THREE,COMMENTS,CREATER,GMT_CREATE,MODIFIER,GMT_MODIFIED,MEMO) values (?, ?, ?, ?, ?, ?, ?, ?, ?, CURRENT_TIMESTAMP, ?, CURRENT_TIMESTAMP, ?)</tt>\n\t *\n\t *\t@param productComment\n\t *\t@return int\n\t *\t@throws DataAccessException\n\t */\t \n public int insertProductComments(ProductCommentDO productComment) throws DataAccessException;\n\n}", "title": "" }, { "docid": "a9c86be9c2fe75944af793ab06ec2931", "score": "0.58441055", "text": "public DataComment consultComment(int id_comment){\n DataComment comment = null;\n\n if(licence.contains(203)){\n comment = DB.consultComment(id_comment);\n }\n\n return comment;\n }", "title": "" }, { "docid": "c0f5120f04df398d60105c171ea26eea", "score": "0.58286804", "text": "public int getCommentID() {\n\t\treturn 0;\n\t}", "title": "" }, { "docid": "e261d8e04844d4745fb7e54fcaedeb27", "score": "0.58205", "text": "public void setCommentID() {\n\t\t\n\t}", "title": "" }, { "docid": "3dec049532f70c5f9e7cef857ec49008", "score": "0.58078176", "text": "@Override\n\tpublic Result updateComment(Comment comment) {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "4cf3ca2f3665f6597cb0589e1d0bd956", "score": "0.57887226", "text": "List<DishComment> selectByExample(DishCommentCriteria example);", "title": "" }, { "docid": "fc647a01a703706f4f5c67306304cec4", "score": "0.5780374", "text": "public void setComment(String comment) {\n\t\t\n\t}", "title": "" }, { "docid": "3799680c9055b06fedec31dc7d537000", "score": "0.5756806", "text": "int getCommentId();", "title": "" }, { "docid": "01e590869b5439aaeaef4b64ce519873", "score": "0.5753266", "text": "@Override\n\tpublic Result getAllComment() {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "f38f6d62cdbbf96617719c497ba76025", "score": "0.5746044", "text": "@Nullable\n String comment();", "title": "" }, { "docid": "9abf7d7676e7c3a81110ec6a98c0dc0a", "score": "0.571511", "text": "public int getCommentId() {\n return commentId_;\n }", "title": "" }, { "docid": "3d002ac1ee0222dbfb082f8a3daff214", "score": "0.5713722", "text": "public String getComment() {\r\n return this.comment;\r\n }", "title": "" }, { "docid": "ef1635e40c917b84ed8eb0d11c05c654", "score": "0.57121843", "text": "public Integer getCommentId() {\n return commentId;\n }", "title": "" }, { "docid": "ef1635e40c917b84ed8eb0d11c05c654", "score": "0.57121843", "text": "public Integer getCommentId() {\n return commentId;\n }", "title": "" }, { "docid": "8c1643b52cfe142fca0e41afd78b20e5", "score": "0.57018256", "text": "public void setComment(String comment) {\n }", "title": "" }, { "docid": "95e5b9aca2a08aee7ec9e61a83e99249", "score": "0.57009065", "text": "public String getComment()\r\n {\r\n return this.comment;\r\n }", "title": "" }, { "docid": "b29af80e34e64a4815def852e17284bf", "score": "0.56890684", "text": "public void setComment(String comment) {\r\n this.comment = comment;\r\n }", "title": "" }, { "docid": "77f985acc204239e7b095c88e0980598", "score": "0.56864643", "text": "public int getCommentId() {\n return commentId_;\n }", "title": "" }, { "docid": "a93f014167756c066ce793b57f94de33", "score": "0.56823474", "text": "public void setComment(String comment) {\n this.comment = comment;\n }", "title": "" }, { "docid": "a93f014167756c066ce793b57f94de33", "score": "0.56823474", "text": "public void setComment(String comment) {\n this.comment = comment;\n }", "title": "" }, { "docid": "de6dfab118180507839a1725527b0eb5", "score": "0.56816703", "text": "public void setComment(String comment);", "title": "" }, { "docid": "ebafffc7017de6630ec1060551d52f51", "score": "0.5680799", "text": "public String getComment() {\r\n return comment;\r\n }", "title": "" }, { "docid": "ebafffc7017de6630ec1060551d52f51", "score": "0.5680799", "text": "public String getComment() {\r\n return comment;\r\n }", "title": "" }, { "docid": "493d6d77726f555e075fff666ace2fe7", "score": "0.5664477", "text": "public String getComment() {\n return comment;\n }", "title": "" }, { "docid": "d6ceb410326ec722c450cdd6a0813e04", "score": "0.5660991", "text": "@Override\n\tpublic List<Comment> getAll(String sql) {\n\t\treturn commentDao.getAll(sql);\n\t}", "title": "" }, { "docid": "6282626cfb39c50be8e160a09f99c3a8", "score": "0.56599575", "text": "public interface CommentDao {\n boolean saveComment(CommentEntity comment);\n boolean deleteComment(Long id);\n DataWrapper<List<CommentEntity>> getCommentListByNews(Long newsId,Integer pageSize,Integer pageIndex);\n CommentEntity getCommentById(Long id);\n\n}", "title": "" }, { "docid": "102e19853e76c0aaec18650d2d6277a1", "score": "0.56550485", "text": "public interface CommentDAO {\n public Comment createComment(String creator, String restaurant, String title, String comment, int likes) throws SQLException;\n public Comment getCommentById(String id) throws SQLException;\n public CommentCollection getComments(String restaurantid) throws SQLException;\n public void responseComment(String id, String response) throws SQLException;\n public boolean deleteComment(String id) throws SQLException;\n}", "title": "" }, { "docid": "34bc45fbb53a432f8455618394333a18", "score": "0.56529427", "text": "@Override\r\n\tpublic void recommendDeleteWithComment(int commentNo) {\n\t\tsqlSession.delete(namespace +\"recommendDeleteWithComment\", commentNo);\r\n\t}", "title": "" }, { "docid": "946536b4cbc6b33ecad3b60732f2fbb9", "score": "0.5650749", "text": "public void setComment(String comment) {\n this.comment = comment;\n }", "title": "" }, { "docid": "946536b4cbc6b33ecad3b60732f2fbb9", "score": "0.5650749", "text": "public void setComment(String comment) {\n this.comment = comment;\n }", "title": "" }, { "docid": "946536b4cbc6b33ecad3b60732f2fbb9", "score": "0.5650749", "text": "public void setComment(String comment) {\n this.comment = comment;\n }", "title": "" }, { "docid": "946536b4cbc6b33ecad3b60732f2fbb9", "score": "0.5650749", "text": "public void setComment(String comment) {\n this.comment = comment;\n }", "title": "" }, { "docid": "946536b4cbc6b33ecad3b60732f2fbb9", "score": "0.5650749", "text": "public void setComment(String comment) {\n this.comment = comment;\n }", "title": "" }, { "docid": "946536b4cbc6b33ecad3b60732f2fbb9", "score": "0.5650749", "text": "public void setComment(String comment) {\n this.comment = comment;\n }", "title": "" }, { "docid": "9ed22beefaf80d5ea52809d35d6a116c", "score": "0.5637069", "text": "@AutoEscape\n public String getComment();", "title": "" }, { "docid": "e47cd64a7fe34f30cb8f401549059286", "score": "0.5630363", "text": "public void setCommentId(Integer commentId) {\n this.commentId = commentId;\n }", "title": "" }, { "docid": "e47cd64a7fe34f30cb8f401549059286", "score": "0.5630363", "text": "public void setCommentId(Integer commentId) {\n this.commentId = commentId;\n }", "title": "" }, { "docid": "f893ec1a60f167f7d631ef156dd14510", "score": "0.5629474", "text": "String getComment();", "title": "" }, { "docid": "f893ec1a60f167f7d631ef156dd14510", "score": "0.5629474", "text": "String getComment();", "title": "" }, { "docid": "f893ec1a60f167f7d631ef156dd14510", "score": "0.5629474", "text": "String getComment();", "title": "" }, { "docid": "99563afa920f0256ec5271cbf277d8ef", "score": "0.56281316", "text": "public String getComment() {\n return this.comment;\n }", "title": "" }, { "docid": "99563afa920f0256ec5271cbf277d8ef", "score": "0.56281316", "text": "public String getComment() {\n return this.comment;\n }", "title": "" }, { "docid": "092ebba48e50fc98172d4531e85437cc", "score": "0.5600669", "text": "public String getComment() {\n return comment;\n }", "title": "" }, { "docid": "092ebba48e50fc98172d4531e85437cc", "score": "0.5600669", "text": "public String getComment() {\n return comment;\n }", "title": "" }, { "docid": "092ebba48e50fc98172d4531e85437cc", "score": "0.5600669", "text": "public String getComment() {\n return comment;\n }", "title": "" }, { "docid": "092ebba48e50fc98172d4531e85437cc", "score": "0.5600669", "text": "public String getComment() {\n return comment;\n }", "title": "" }, { "docid": "092ebba48e50fc98172d4531e85437cc", "score": "0.5600669", "text": "public String getComment() {\n return comment;\n }", "title": "" }, { "docid": "092ebba48e50fc98172d4531e85437cc", "score": "0.5600669", "text": "public String getComment() {\n return comment;\n }", "title": "" }, { "docid": "092ebba48e50fc98172d4531e85437cc", "score": "0.5600669", "text": "public String getComment() {\n return comment;\n }", "title": "" }, { "docid": "092ebba48e50fc98172d4531e85437cc", "score": "0.5600669", "text": "public String getComment() {\n return comment;\n }", "title": "" }, { "docid": "b36bc9e3399f09a3b2d88a49884b3593", "score": "0.5596607", "text": "java.lang.String getCommentID();", "title": "" }, { "docid": "54bc5645e22105af1f855ceeb45dbfb2", "score": "0.55804694", "text": "public String getComment() {\r\n\t\treturn comment;\r\n\t}", "title": "" }, { "docid": "5f8d0dc35ba05a9466fd63c99fdc70ab", "score": "0.55802256", "text": "public void deleteacommentdao() {\n\t\t\r\n\t}", "title": "" }, { "docid": "39ad9cdc01cb8f2204c52fb522805051", "score": "0.5575754", "text": "public String getComment() {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "a8da90e09b189541bf9ccbf9e4dd303d", "score": "0.5569707", "text": "public String getComment(OWLObject c) {\n\t\tOWLAnnotationProperty lap = getDataFactory().getOWLAnnotationProperty(OWLRDFVocabulary.RDFS_COMMENT.getIRI()); \n\n\t\treturn getAnnotationValue(c, lap);\n\t}", "title": "" }, { "docid": "d3ecd36e4f1d064d79faa1ed43c2e7be", "score": "0.55547047", "text": "public String\n getComment()\n {\n return comment;\n }", "title": "" }, { "docid": "7562a5cfa9fdf5cf77c86936fda30350", "score": "0.5546047", "text": "DbCommentEntity mo88861a(String str);", "title": "" }, { "docid": "1c5cb321c45ffae1e3f55938a548c765", "score": "0.5543542", "text": "int updateByPrimaryKey(DishComment record);", "title": "" }, { "docid": "928eee5f905ac4418e00032b23c0f724", "score": "0.55399597", "text": "public void setComment(String comment) {\r\n\t\tthis.comment = comment;\r\n\t}", "title": "" }, { "docid": "170a82d4f0b18d4e28dc8074ae535bb4", "score": "0.5512457", "text": "public void createComment(Comments comment) {\n\t\t\n\t}", "title": "" }, { "docid": "cdaf55d037f4985b9bca7b6ede308043", "score": "0.55038863", "text": "List<Comment> findAll() throws DaoException;", "title": "" }, { "docid": "fdf379d2b4eb391503737479cb972187", "score": "0.5501736", "text": "@DISPID(1611071489) //= 0x60070001. The runtime will prefer the VTID if present\n @VTID(30)\n java.lang.String comment();", "title": "" }, { "docid": "97c95089a9af446869144d77494c0ae0", "score": "0.55007744", "text": "public CommentsDao(Configuration configuration) {\n super(Comments.COMMENTS, com.anzoo_anzoom.database.anzoo_anzoom.tables.pojos.Comments.class, configuration);\n }", "title": "" }, { "docid": "e415216d265a8797e80ccc0ef168f382", "score": "0.5494123", "text": "public Long map(DBItemComment dBItemComment) {\n return Long.valueOf(dBItemComment.b());\n }", "title": "" }, { "docid": "92116de8c45f5665e677daa8c3513bab", "score": "0.54904574", "text": "public void setComment(String string) {\n\t\t\r\n\t}", "title": "" }, { "docid": "4464202aa362b0519e6098fc34024f6e", "score": "0.5486163", "text": "public String getComment() {\n\t\treturn comment;\n\t}", "title": "" }, { "docid": "053efc6b955bef59815a7b0e2ade06ac", "score": "0.5484607", "text": "public interface CommentDAO {\n\n List<Comment> findCommentByTargetUser(int targetUid);\n\n void addComment(int uid, int targetUid, String content);\n\n void deleteComment(int uid, int commentId);\n\n int commentCount(int targetUid);\n}", "title": "" }, { "docid": "20eacc7309faefe5dd3246220240f53b", "score": "0.5475625", "text": "public interface CommentMapper {\n int deleteByPrimaryKey(Integer commentId);\n\n List<CommentCustom> selectByArticleId(Integer articleId);\n\n int insert(Comment record);\n\n public Integer getCommentNum()throws Exception;\n\n int insertSelective(Comment record);\n\n //根据文章id获取评论数\n public Integer getCommentNumByArticleId(Integer commentArticleId) throws Exception;\n\n Comment selectByPrimaryKey(Integer commentId);\n\n int updateByPrimaryKeySelective(Comment record);\n\n int updateByPrimaryKey(Comment record);\n}", "title": "" }, { "docid": "74bc16cb0ca56cb6d165286ea562bae2", "score": "0.5469757", "text": "public int insertProductComments(ProductCommentDO productComment) throws DataAccessException;", "title": "" }, { "docid": "c8cc0d9d5fe1a63d986c4b9eec384b95", "score": "0.5466826", "text": "public void setComments(String comments) {\r\n this.comments = comments;\r\n }", "title": "" }, { "docid": "563045560bdc9a2d7ee42031bb0f5aca", "score": "0.54622406", "text": "private void populateCommentList() {\n commentList.add(new Comment(1, \"João Felipe\", 0, \"\", \"01/07/2016\", \"Alguem pode me recomendar um substituto para refrigerante? Eu meio que sou viciado.\", 2 ));\n commentList.add(new Comment(2, \"Maria Claudia\", 0, \"\", \"01/07/2016\", \"Eu vi em algum lugar que suco de saquinho pode ser pior do que o proprio refrigerante\", 5 ));\n commentList.add(new Comment(3, \"João Felipe\", 0, \"\", \"01/07/2016\", \"@Maria Claudia, Sim tbm vi, essa nóticia está aqui no BeHappy, salvei até nos favoritos.\", 6 ));\n commentList.add(new Comment(4, \"Maria Claudia\", 0, \"\", \"01/07/2016\", \"Bom saber! Vou procura-la.\", 8 ));\n }", "title": "" }, { "docid": "3d8ee06438b7ae219f258cd46f425ca7", "score": "0.546142", "text": "public ResultSet showCommentQuery(int pid){\n\t\tString query = \"select ctime, ctext from comment natural join commentOn\"\n\t\t\t\t+ \" where pid = ?\";\n\t\ttry{\n\t\t\tif(conn!=null){\n\t\t\t\tPreparedStatement pstmt = conn.prepareStatement(query);\n\t\t\t\tpstmt.setInt(1, pid);\n\t\t\t\tResultSet result = pstmt.executeQuery();\n\t\t\t\treturn result;\n\t\t\t}\n\t\t}catch(SQLException e){\n\t\t\tSystem.out.println(\"the SQLException is raised in showCommentQuery\");\n\t\t\treturn null;\n\t\t}\n\t\treturn null;\n\t\t\n\t}", "title": "" }, { "docid": "8eab93aa8d500cc7c20a24e8eb1b4e4b", "score": "0.54580367", "text": "public AOComment getComment(int cId) throws DatabaseException {\n\t\ttry {\n\t\t\tAOComment comment = null;\n\t\t\tResultSet rs;\n\n\t\t\tselectComment.setInt(1, cId);\n\t\t\trs = selectComment.executeQuery();\n\n\t\t\tif (rs.next()) {\n\t\t\t\tcomment = buildCommentAO(rs);\n\t\t\t}\n\n\t\t\trs.close();\n\t\t\treturn comment;\n\t\t} catch (SQLException e) {\n\t\t\tthrow new DatabaseException(e);\n\t\t}\n\t}", "title": "" }, { "docid": "522ce182a6d2043dd7b9228ba4a33684", "score": "0.54554456", "text": "public void setComments(String comments) {\n this.comments = comments;\n }", "title": "" }, { "docid": "522ce182a6d2043dd7b9228ba4a33684", "score": "0.54554456", "text": "public void setComments(String comments) {\n this.comments = comments;\n }", "title": "" }, { "docid": "ce2034241d5ffd0966914fd8ed47a90c", "score": "0.54505545", "text": "@DISPID(1611071489) //= 0x60070001. The runtime will prefer the VTID if present\n @VTID(31)\n void comment(\n Holder<java.lang.String> oComment);", "title": "" }, { "docid": "d7f3bbd04255381ed567436b6ead4452", "score": "0.5438494", "text": "@java.lang.Override\n public java.lang.String getCommentID() {\n return commentID_;\n }", "title": "" }, { "docid": "a7f69eb83b1153b35b49856c218ceedb", "score": "0.54337007", "text": "public ProductCommentDO selectNewProductComment(String shopId, String productNo) throws DataAccessException;", "title": "" }, { "docid": "5fc50fc05af184ac89173bd895d713b2", "score": "0.5426049", "text": "public void setComment(String comments)\n {\n comment = comments;\n }", "title": "" }, { "docid": "887b5c71cde525a5982ebb6ff5d3ef88", "score": "0.5424403", "text": "void update(Comment comment) throws DaoException;", "title": "" }, { "docid": "0ed4ed71d30bb13d2c4c39f9f538a58a", "score": "0.54203117", "text": "@java.lang.Override\n public java.lang.String getCommentID() {\n return instance.getCommentID();\n }", "title": "" }, { "docid": "f183137f8637bdccce152b346daf4c8d", "score": "0.54193264", "text": "@Override\r\n\tpublic String getComment() throws NotesApiException {\n\t\treturn null;\r\n\t}", "title": "" }, { "docid": "cb09bf056560a29fe5c06616d2e1739f", "score": "0.5415331", "text": "private AOComment buildCommentAO(ResultSet rs) throws SQLException {\n\t\tAOComment comment;\n\t\tint cId = rs.getInt(\"cid\");\n\t\tint pId = rs.getInt(\"pid\");\n\t\tString name = rs.getString(\"name\");\n\t\tString text = rs.getString(\"text\");\n\n\t\tcomment = new AOComment(cId);\n\t\tcomment.setName(name);\n\t\tcomment.setText(text);\n\t\tcomment.setPId(pId);\n\n\t\treturn comment;\n\t}", "title": "" }, { "docid": "18e848172cd5692740bb083eb678cf3c", "score": "0.5410578", "text": "public interface CommentRepository extends JpaRepository<Comment, String> {\n\n //find ways\n List<Comment> findByMStudentId(String Id);\n List<Comment> findByMTargetId(Long Id);\n List<Comment> findByMDate(Date date);\n List<Comment> findByMId(Long Id);\n\n //modifying\n @Modifying\n @Query(\"update Comment c set c.mContent=?1 where c.mId=?2\")\n int setCommentContentById(String NewContent , Long Id);\n\n\n}", "title": "" }, { "docid": "c6d8a9026b955e959814aa2ea3e7e9b1", "score": "0.5406571", "text": "public String getComment() { return m_strComment; }", "title": "" }, { "docid": "85638ff8274d84cc3a639fa943a8b289", "score": "0.5406331", "text": "public interface CommentDao {\n\n List<Comment> getAllCommentByPostId(int blogId);\n\n void createComment(int blogIdentity, String comment);\n}", "title": "" }, { "docid": "bb39a317c1ab18dcb3f20da83b44aaba", "score": "0.53989255", "text": "@Column\n @Override\n public String getDescription() {\n return super.getDescription();\n }", "title": "" }, { "docid": "341c3ed9a053c9c3df356c7551cf8380", "score": "0.539865", "text": "public final String getComment() {\r\n return comment;\r\n }", "title": "" }, { "docid": "8687623852bbc627a302287d4d360587", "score": "0.5394602", "text": "@Override\n\tpublic Comment getEntity(String sql, int id) {\n\t\treturn commentDao.getEntity(sql, id);\n\t}", "title": "" }, { "docid": "84ec1aebf2b8c41427810afb342f2268", "score": "0.5393468", "text": "@Override\n\tpublic List<mcommentVO> mcommentList(mcommentVO mco) {\n\t\tList<mcommentVO> list = null;\n\t\tlist = mcDao.mcommentList(mco);\n\t\t\n\t\treturn list;\n\t}", "title": "" } ]
56343b78db00fe4fdf6c21720529db6c
Handles the HTTP POST method.
[ { "docid": "7d157b8f115fbef687d3cc2f663e2ff8", "score": "0.0", "text": "@Override\r\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n //processRequest(request, response);\r\n \r\n Usuario usuario = new Usuario();\r\n UsuarioDao usuDao = new UsuarioDao();\r\n Aluno aluno = new Aluno();\r\n AlunoDao aluDao = new AlunoDao();\r\n Funcionario funcionario = new Funcionario();\r\n FuncionarioDao funDao = new FuncionarioDao();\r\n Professor professor = new Professor();\r\n ProfessorDao profDao = new ProfessorDao();\r\n \r\n HttpSession sessao = request.getSession();\r\n \r\n request.setCharacterEncoding(\"UTF-8\");\r\n \r\n String email = request.getParameter(\"inputEmail\");\r\n String senha = request.getParameter(\"inputPassword\");\r\n \r\n System.out.println(\"O email informado é: \"+email);\r\n System.out.println(\"A senha informada é: \"+senha);\r\n \r\n try {\r\n \r\n /**\r\n * Verifica se existe o email cadastrado no sistema\r\n */\r\n if(usuDao.identificarUsuaricoCadastrado(email)){\r\n \r\n // Se entra existe\r\n \r\n usuario = usuDao.realizarLogin(email, senha);\r\n \r\n if( usuario != null ){\r\n // Usuário encontrado\r\n \r\n /**\r\n * BLOCO DE CONDIÇÕES DE USUÁRIOS POR PERFIS\r\n */\r\n aluno = aluDao.pesquisarAluno( usuario.getCodigo() ); // VERIFICA SE O USUÁRIO É O ALUNO\r\n professor = profDao.pesquisarProfessor( usuario.getCodigo() ); // VERIFICA SE O USUÁRIO É PROFESSOR\r\n funcionario = funDao.pesquisarFuncionario( usuario.getCodigo() ); // VERIFICA SE O USUÁRIO É FUNCIONÁRIO\r\n \r\n if( aluno != null ){\r\n // O USUÁRIO É ALUNO\r\n \r\n sessao.setAttribute(\"aluno\", aluno);\r\n // request.setAttribute(\"mensagem\", \"Usuário encontrado é FUNCIONÁRIO PRODUÇÃO\"); \r\n request.getRequestDispatcher(\"TelaPerfilAluno.jsp\").forward(request, response);\r\n \r\n }else if( professor != null ){\r\n // O USUÁRIO É PROFESSOR\r\n \r\n sessao.setAttribute(\"professor\", professor);\r\n \r\n // request.setAttribute(\"professor\", professor);\r\n // request.setAttribute(\"mensagem\", \"Usuário encontrado é PROFESSOR\"); \r\n request.getRequestDispatcher(\"TelaPerfilProfessor.jsp\").forward(request, response);\r\n \r\n }else if( funcionario != null ){\r\n // O USUÁRIO É FUNCIONÁRIO\r\n \r\n if( funcionario.getTipo().equals(\"PRODUÇÃO\") ){\r\n // O USUÁRIO É FUNCIONÁRIO TIPO PRODUÇÃO\r\n \r\n sessao.setAttribute(\"funcionario\", funcionario);\r\n // request.setAttribute(\"mensagem\", \"Usuário encontrado é FUNCIONÁRIO PRODUÇÃO\"); \r\n request.getRequestDispatcher(\"TelaPerfilFuncionario.jsp\").forward(request, response);\r\n \r\n }else if( funcionario.getTipo().equals(\"ADMINISTRADOR\") ){\r\n // O USUÁRIO É FUNCIONÁRIO TIPO ADMINISTRADOR\r\n \r\n sessao.setAttribute(\"funcionario\", funcionario);\r\n // request.setAttribute(\"mensagem\", \"Usuário encontrado é FUNCIONÁRIO PRODUÇÃO\"); \r\n request.getRequestDispatcher(\"TelaPerfilFuncionarioAdministrador.jsp\").forward(request, response);\r\n \r\n }\r\n \r\n }\r\n \r\n \r\n }else{\r\n // Usuário Não encontrado\r\n \r\n request.setAttribute(\"mensagem\", \"Email ou Senha Inválido\");\r\n \r\n request.getRequestDispatcher(\"TelaLogin.jsp\").forward(request, response);\r\n }\r\n \r\n }else{\r\n // Se não, ele não possui cadastrado\r\n \r\n request.setAttribute(\"mensagem\", \"Esse Email não é Cadastrado\");\r\n \r\n request.getRequestDispatcher(\"TelaLogin.jsp\").forward(request, response);\r\n \r\n }\r\n } catch (SQLException ex) {\r\n Logger.getLogger(Login_Controle.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n \r\n }", "title": "" } ]
[ { "docid": "ee7fbccb73c234ce54ffdeda15188ca1", "score": "0.70982885", "text": "public void post() {\n }", "title": "" }, { "docid": "ee7fbccb73c234ce54ffdeda15188ca1", "score": "0.70982885", "text": "public void post() {\n }", "title": "" }, { "docid": "8d09cb2e99f9851ab62878621d5a15d1", "score": "0.7055754", "text": "protected void doPost(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws javax.servlet.ServletException, IOException {\n \n }", "title": "" }, { "docid": "576feee3bb31751b42bd9786caf0ddce", "score": "0.7012962", "text": "@Override\n\tprotected void doPost(Request req, Response rep) throws Exception {\n\t\t\n\t}", "title": "" }, { "docid": "65498fd0c44ab7f02f73e2018ca33680", "score": "0.7002611", "text": "@Override\n protected void doPost(HttpServletRequest request, HttpServletResponse response) {\n processPostRequest(request, response);\n }", "title": "" }, { "docid": "c46d31fdf0b409799e0eb5df9d576c13", "score": "0.68745404", "text": "@Override\n\tpublic void handlePost(HttpServletRequest request,\n\t\t\tHttpServletResponse response, Continuation continuation)\n\t\t\tthrows ServletException, IOException {\n\n\t}", "title": "" }, { "docid": "764787349a01ed26129dd4b73f63a8de", "score": "0.6851651", "text": "@Override\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processPOSTRequest(request, response);\n }", "title": "" }, { "docid": "f3bb9ca2bcf6c4e77e901e7810dab748", "score": "0.6842302", "text": "void doPost(HttpServletRequest req, HttpServletResponse resp) throws IOException;", "title": "" }, { "docid": "06e60258b1084b25c59d1828b0e8e6c0", "score": "0.6687926", "text": "@Override\r\n\tpublic void postHandle(HttpServletRequest request, HttpServletResponse response, Object handler,\r\n\t\t\tModelAndView modelAndView) throws Exception {\n\t\tSystem.out.println(\"post\");\r\n\t}", "title": "" }, { "docid": "99f9516a9afc60cca177a4ef7f96e53d", "score": "0.6614529", "text": "@Override\n public void doPost(HttpServletRequest request, HttpServletResponse response) {\n System.out.println(\"In doPost...\");\n String pathInfo = request.getPathInfo();\n System.out.println(pathInfo);\n if (pathInfo.equals(\"/create\")) {\n createEvent(request, response);\n } else {\n System.out.println(\"Purchase tickets\");\n if (pathInfo.matches(\"/purchase/([\\\\d]+)\")) {\n purchaseTicket(request, response);\n } else {\n System.out.println(\"Invalid Path\");\n }\n }\n }", "title": "" }, { "docid": "ec96451fcd0e762e99e3fc6da2107eed", "score": "0.66124487", "text": "@Override\r\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\r\n throws IOException, ServletException {\n }", "title": "" }, { "docid": "2f1b2a0778c1cc27dcac1e78e3d58222", "score": "0.658959", "text": "@Override\r\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n processPostRequest(request, response);\r\n }", "title": "" }, { "docid": "f40b6cf0a2e2767a683b14ddf07499f1", "score": "0.6561377", "text": "protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n }", "title": "" }, { "docid": "c8333e4c9e75dd2b4fca169bf07d3acb", "score": "0.6557446", "text": "@Override\r\n\tprotected void doPost(HttpServletRequest req, HttpServletResponse resp)\r\n\t\t\tthrows ServletException, IOException {\n\t\tsuper.doPost(req, resp);\r\n\t}", "title": "" }, { "docid": "0149669638c133187d9f12b153595aa8", "score": "0.655463", "text": "@Override\n\tpublic void doPost(HttpServletRequest request, HttpServletResponse response)\n\t\t\tthrows IOException, ServletException {\n\t\tsuper.doPost(request, response);\n\t}", "title": "" }, { "docid": "688a40787bf97069232a0b9e2dda4321", "score": "0.6549596", "text": "@Override\n\tprotected void doPost(HttpServletRequest req, HttpServletResponse resp)\n\t\t\tthrows ServletException, IOException {\n\t}", "title": "" }, { "docid": "9a63e0553fcdd7d13df4a5173b081655", "score": "0.65437514", "text": "@Override\n protected void handlePost(final HttpServletRequest req, final HttpServletResponse resp,\n final Session session) throws ServletException, IOException {\n }", "title": "" }, { "docid": "202598e2a51071851967cb7a5c10e4ed", "score": "0.6539661", "text": "protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t\tSystem.out.println(\"post method called\");\n\t}", "title": "" }, { "docid": "b329cbcdf58a68ad8a0f0672b8c82314", "score": "0.6534796", "text": "@Override\n\tprotected void doPost(HttpServletRequest req, HttpServletResponse resp)\n\t\t\tthrows ServletException, IOException {\n\n\t}", "title": "" }, { "docid": "6563ac4d9c91fb470ad53250b53f0567", "score": "0.6527252", "text": "@Override\n\tprotected void doPost(HttpServletRequest req, HttpServletResponse resp)\n\t\t\tthrows ServletException, IOException {\n\t\tsuper.doPost(req, resp);\n\t}", "title": "" }, { "docid": "9665a7273b5c49d36b801b6ada0d00f9", "score": "0.65227896", "text": "public void doPost(HttpServletRequest request, HttpServletResponse response)\r\n\t\t\tthrows ServletException, IOException {\r\n\r\n\t\t\r\n\t\t\r\n\r\n\t}", "title": "" }, { "docid": "79892633f4837ec3d11732bc0d527722", "score": "0.65149146", "text": "@Override\n\tpublic void postHandle(WebRequest arg0, ModelMap arg1) throws Exception {\n\t\t\n\t}", "title": "" }, { "docid": "f6775e05b9bc6bc401790c633f803519", "score": "0.6511541", "text": "@Override\r\n protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\r\n\r\n }", "title": "" }, { "docid": "c188a692228ec24aad0634ba2aacabdb", "score": "0.6499702", "text": "public void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\n\t\t\n\t\t\n\t}", "title": "" }, { "docid": "eeafdaba0df0fb2e0d9fad756a2c63a3", "score": "0.64832693", "text": "protected void doPost(HttpServletRequest request,\r\nHttpServletResponse response) throws ServletException, IOException {\r\n}", "title": "" }, { "docid": "8133f56887b7711ac5efe915b55d542a", "score": "0.6483063", "text": "public void doPost(HttpServletRequest request, HttpServletResponse response)\r\n\t\t\tthrows ServletException, IOException {\r\n\t\t\r\n\t\t\r\n\t}", "title": "" }, { "docid": "a075fc353c51a744d1b073d99d589c75", "score": "0.6474592", "text": "@Override\r\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n \r\n }", "title": "" }, { "docid": "a075fc353c51a744d1b073d99d589c75", "score": "0.6474592", "text": "@Override\r\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n \r\n }", "title": "" }, { "docid": "75ddad57c5d2cf1910dfae2c0404cfd6", "score": "0.6457442", "text": "public void doPost(HttpServletRequest request, HttpServletResponse response)\r\n throws IOException, ServletException {\r\n\t\t\r\n\t\tcontroller (request, response);\r\n\t\t\r\n\t}", "title": "" }, { "docid": "06fb96b093fea18f232a7a9aa3e620c8", "score": "0.645616", "text": "@Override\n\tpublic int getHttpMethod() {\n\t\treturn Method.POST;\n\t}", "title": "" }, { "docid": "32298a71950bff93b4ee3d515568f090", "score": "0.6453683", "text": "@Override\n protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n }", "title": "" }, { "docid": "dac34781d6c5dbddce97d08d1d3e7c99", "score": "0.6453584", "text": "@Override\r\n\tprotected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tsuper.doPost(req, resp);\r\n\t}", "title": "" }, { "docid": "44e977cd4c26fcd8d67206bce7491337", "score": "0.64508724", "text": "@RequestMapping(method = RequestMethod.POST)\n\tpublic void saludoPost() {\n\n\t}", "title": "" }, { "docid": "83a6fd87238fee5f65bb08e86bf0f65a", "score": "0.6447415", "text": "protected void doPost(HttpServletRequest request, HttpServletResponse response)\n throws IOException\n {\n itsLogger.debug(\"POST to \" + getPath(request));\n String newData = request.getParameter(\"data\");\n if (newData == null)\n {\n response.sendError(HttpServletResponse.SC_BAD_REQUEST,\"'data' is required\");\n return;\n }\n\n String data = findData(request);\n if (data == null)\n {\n itsLogger.debug(\"Creating data\");\n String name = request.getParameter(\"name\");\n if (name == null)\n {\n response.sendError(HttpServletResponse.SC_BAD_REQUEST,\"'name' is required\");\n return;\n }\n else\n {\n String path = saveNewUrl(request,newData,name);\n itsLogger.debug(path + \" created\");\n response.setStatus(HttpServletResponse.SC_OK);\n response.getWriter().println(path);\n }\n }\n else\n {\n itsLogger.debug(\"Updating data\");\n saveData(request,newData);\n response.setStatus(HttpServletResponse.SC_OK);\n }\n }", "title": "" }, { "docid": "bed35871cf72666d57660cb7e096ee94", "score": "0.64445186", "text": "@Override\n\tprotected void doPost(HttpServletRequest req, HttpServletResponse resp)\n\t\t\tthrows ServletException, IOException\n\t{\n\t\tsuper.doPost(req, resp);\n\t}", "title": "" }, { "docid": "f736b228d695be53558914fc3a5b40ba", "score": "0.64438456", "text": "public int post() throws IOException {\n return sendCommand(NNTPCommand.POST);\n }", "title": "" }, { "docid": "6ff2b4ee78fc9ea47c07c74730b0e098", "score": "0.6443748", "text": "public int post() throws IOException {\n\t\treturn sendCommand(NNTPCommand.POST);\n\t}", "title": "" }, { "docid": "038eeb6b4f161b0458d3f7c94f3d90a7", "score": "0.6438884", "text": "public void doPost(HttpServletRequest request, HttpServletResponse response)\n\t\t\tthrows ServletException, IOException {\n\t\t\n\t}", "title": "" }, { "docid": "cee296d08743936acb94a3ad0cf8cdea", "score": "0.6437031", "text": "@Override\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n \n }", "title": "" }, { "docid": "cee296d08743936acb94a3ad0cf8cdea", "score": "0.6437031", "text": "@Override\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n \n }", "title": "" }, { "docid": "55c18f3a6b85a2448d0ee5987f82a300", "score": "0.64231414", "text": "@Override\n\tpublic void httpPost(Void data, RESTServiceHandler<Shop> handler) {\n\t}", "title": "" }, { "docid": "46ed5b49f691b4a4d1ff0aaf7cf9bec7", "score": "0.6419544", "text": "@Override\n\tprotected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tsuper.doPost(req, resp);\n\t}", "title": "" }, { "docid": "46ed5b49f691b4a4d1ff0aaf7cf9bec7", "score": "0.6419544", "text": "@Override\n\tprotected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tsuper.doPost(req, resp);\n\t}", "title": "" }, { "docid": "46ed5b49f691b4a4d1ff0aaf7cf9bec7", "score": "0.6419544", "text": "@Override\n\tprotected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tsuper.doPost(req, resp);\n\t}", "title": "" }, { "docid": "46ed5b49f691b4a4d1ff0aaf7cf9bec7", "score": "0.6419544", "text": "@Override\n\tprotected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tsuper.doPost(req, resp);\n\t}", "title": "" }, { "docid": "46ed5b49f691b4a4d1ff0aaf7cf9bec7", "score": "0.6419544", "text": "@Override\n\tprotected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tsuper.doPost(req, resp);\n\t}", "title": "" }, { "docid": "46ed5b49f691b4a4d1ff0aaf7cf9bec7", "score": "0.6419544", "text": "@Override\n\tprotected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tsuper.doPost(req, resp);\n\t}", "title": "" }, { "docid": "dd22f7e92443148811ce86625a6d9a17", "score": "0.641335", "text": "@Override\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n }", "title": "" }, { "docid": "dd22f7e92443148811ce86625a6d9a17", "score": "0.641335", "text": "@Override\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n }", "title": "" }, { "docid": "6d5eb610ff99e337566abadeb3440a58", "score": "0.6386647", "text": "@Override\n\tprotected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\n\t}", "title": "" }, { "docid": "1b18ccfd2292856972e79dcb2b8fbe80", "score": "0.63844126", "text": "protected void doPost(HttpServletRequest arg0, HttpServletResponse arg1) throws ServletException, IOException {\r\n\t\t// TODO Auto-generated method stub\r\n\t}", "title": "" }, { "docid": "e59e98dad21af3272864ed362f9fa362", "score": "0.6375519", "text": "@Override\r\n\tpublic void postHandle(HttpServletRequest request,\r\n\t\t\tHttpServletResponse response, Object handler,\r\n\t\t\tModelAndView modelAndView) throws Exception {\n\t\t\r\n\t}", "title": "" }, { "docid": "f33c7a180bba4b801efabf93a9a67a3f", "score": "0.6367638", "text": "protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException,\n\t\t\tIOException {\n\t}", "title": "" }, { "docid": "59ae833d7e7416680c4f6ab432bece51", "score": "0.6356407", "text": "@Override\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n\n }", "title": "" }, { "docid": "a043cf416177abe40ef2eaad93965276", "score": "0.6349769", "text": "@Override\n\tprotected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tdoHandle(req, resp);\n\t}", "title": "" }, { "docid": "b40883c9aa56d5213ce4d7bb5a32a672", "score": "0.6326716", "text": "@Override\r\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n \r\n }", "title": "" }, { "docid": "119430eb111ccfff5400bdb533f1070d", "score": "0.6289261", "text": "protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t}", "title": "" }, { "docid": "119430eb111ccfff5400bdb533f1070d", "score": "0.6289261", "text": "protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t}", "title": "" }, { "docid": "119430eb111ccfff5400bdb533f1070d", "score": "0.6289261", "text": "protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t}", "title": "" }, { "docid": "119430eb111ccfff5400bdb533f1070d", "score": "0.6289261", "text": "protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t}", "title": "" }, { "docid": "119430eb111ccfff5400bdb533f1070d", "score": "0.6289261", "text": "protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t}", "title": "" }, { "docid": "119430eb111ccfff5400bdb533f1070d", "score": "0.6289261", "text": "protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t}", "title": "" }, { "docid": "119430eb111ccfff5400bdb533f1070d", "score": "0.6289261", "text": "protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t}", "title": "" }, { "docid": "119430eb111ccfff5400bdb533f1070d", "score": "0.6289261", "text": "protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t}", "title": "" }, { "docid": "119430eb111ccfff5400bdb533f1070d", "score": "0.6289261", "text": "protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t}", "title": "" }, { "docid": "119430eb111ccfff5400bdb533f1070d", "score": "0.6289261", "text": "protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t}", "title": "" }, { "docid": "119430eb111ccfff5400bdb533f1070d", "score": "0.6289261", "text": "protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t}", "title": "" }, { "docid": "119430eb111ccfff5400bdb533f1070d", "score": "0.6289261", "text": "protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t}", "title": "" }, { "docid": "119430eb111ccfff5400bdb533f1070d", "score": "0.6289261", "text": "protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t}", "title": "" }, { "docid": "2a639d3f5003e7bc655ddb7535e09e2f", "score": "0.62864786", "text": "public void doPost(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n doPost(request, response, null);\n }", "title": "" }, { "docid": "5e66c5319aa05cbcfb1fafdb87881f38", "score": "0.627977", "text": "@Override\r\n\tprotected void doPost(HttpServletRequest req, HttpServletResponse res) throws ServletException, IOException {\n\t\tsuper.doPost(req, res);\r\n\t}", "title": "" }, { "docid": "f6496cfc67fb78cccc7b80b037c4d04d", "score": "0.62731946", "text": "@Override\n\tpublic void postHandle(HttpServletRequest request,\n\t\t\tHttpServletResponse response, Object handler,\n\t\t\tModelAndView modelAndView) throws Exception {\n\t\t\n\t}", "title": "" }, { "docid": "61316eef448886ba20cfa74e26bc8c7e", "score": "0.62687194", "text": "@Override\n\tpublic void postHandle(HttpServletRequest request,\n\t\t\tHttpServletResponse response, Object handler,\n\t\t\tModelAndView modelAndView) throws Exception {\n\n\t}", "title": "" }, { "docid": "61316eef448886ba20cfa74e26bc8c7e", "score": "0.62687194", "text": "@Override\n\tpublic void postHandle(HttpServletRequest request,\n\t\t\tHttpServletResponse response, Object handler,\n\t\t\tModelAndView modelAndView) throws Exception {\n\n\t}", "title": "" }, { "docid": "c8d309aec47dc842c6acd39f8a7134d1", "score": "0.62685436", "text": "protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t}", "title": "" }, { "docid": "f89b623a86de7e66a2e1040909dd756e", "score": "0.6238394", "text": "@Override\n protected void processPost(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n }", "title": "" }, { "docid": "f89b623a86de7e66a2e1040909dd756e", "score": "0.6238394", "text": "@Override\n protected void processPost(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n }", "title": "" }, { "docid": "aae60c471f6ab2105382695ebd7c07d0", "score": "0.6235551", "text": "@Override\n protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws IOException {\n String reqBody=req.getReader().lines().collect(Collectors.joining(System.lineSeparator()));\n Gson gson = new Gson();\n try {\n db.connect();\n Patient p = gson.fromJson(reqBody,Patient.class);\n db.executeInsertPatient(p);\n log.info(\"doPost requested: Added patient with patient ID: \"+p.getPatientId()+\".\");\n db.disconnect();\n } catch (SQLException throwables) {\n log.warning(\"Exception thrown:\"+throwables.getStackTrace().toString());\n }\n }", "title": "" }, { "docid": "28c9b467ba08be09eece6e5886a9eaa5", "score": "0.6222243", "text": "public void doPost(HttpServletRequest request, HttpServletResponse response) {\n\t\tHttpSession session = request.getSession();\n\t\t\n\t\tswitch( request.getParameter(\"type\") ) {\n\t\t\tcase \"add\":\n\t\t\t\tadd(request, response);\n\t\t\t\tbreak;\n\t\t\tcase \"add_non_ajax\":\n\t\t\t\taddNonAjax(request, response);\n\t\t\t\tbreak;\n\t\t\tcase \"delete\":\n\t\t\t\tdelete(request, response);\n\t\t\t\tbreak;\n\t\t\tcase \"update\":\n\t\t\t\tupdate(request, response);\n\t\t\t\tbreak;\n\t\t}\n\t}", "title": "" }, { "docid": "5c64354fb132340cb9ca5b49135122d7", "score": "0.6217897", "text": "@Override\r\n\tpublic void postHandle(HttpServletRequest request, HttpServletResponse response, Object handler,\r\n\t\t\tModelAndView modelAndView) throws Exception {\n\t\t\r\n\t}", "title": "" }, { "docid": "b1964f0039ec59cb755d84c238b9b134", "score": "0.62042505", "text": "public void handlePost(RoutingContext event) {\n\t}", "title": "" }, { "docid": "671808463fc13334b63b516e7f332f45", "score": "0.6198185", "text": "@Override\n \t\tpublic void handleMethodPOST(URI uri, HTTPRequest request, ToadletContext ctx) throws ToadletContextClosedException, IOException, RedirectException {\n \t\t\tString pass = request.getPartAsString(\"formPassword\", 32);\n \t\t\tif ((pass.length() == 0) || !pass.equals(core.formPassword)) {\n \t\t\t\twriteHTMLReply(ctx, 403, \"Forbidden\", \"Invalid form password.\");\n \t\t\t\treturn;\n \t\t\t}\n \n \t\t\ttry {\n \t\t\t\tFTOwnIdentity ownIdentity = mFreetalk.getIdentityManager().getOwnIdentity(request.getPartAsString(\"OwnIdentityID\", 64));\n \t\t\t\tmSessionManager.createSession(ownIdentity.getID(), ctx);\n \t\t\t} catch(NoSuchIdentityException e) {\n \t\t\t\tthrow new RedirectException(logIn);\n \t\t\t}\n \n \t\t\twriteTemporaryRedirect(ctx, \"Login successful, redirecting to home page\", Freetalk.PLUGIN_URI + \"/\");\n \t\t}", "title": "" }, { "docid": "1e274dfa9682a294c74cfaa1c9b61326", "score": "0.6165207", "text": "@Override\n\tprotected void doPost(HttpServletRequest req, HttpServletResponse resp)\n\t\t\tthrows ServletException, IOException {\n\t\tlogger.debug(\"POST...\");\n\t\tif ((req.getContentType() == null)\n\t\t\t\t|| (!req.getContentType().equals(\"application/json\"))) {\n\t\t\tresp.sendError(415,\n\t\t\t\t\t\"Only application/json is allowed as request MIME type.\");\n\t\t\tlogger.debug(\"Refused POST request due to wrong MIME type: \"\n\t\t\t\t\t+ req.getContentType());\n\t\t\treturn;\n\t\t}\n\t\tHandleReference handleref;\n\t\ttry {\n\t\t\thandleref = determineHandleReference(req, false);\n\t\t} catch (IllegalArgumentException exc) {\n\t\t\tresp.sendError(400, exc.getMessage());\n\t\t\tlogger.error(exc);\n\t\t\treturn;\n\t\t}\n\t\ttry {\n\t\t\tlogger.debug(\"Processing POST request for Handle \" + handleref);\n\t\t\tif (req.getContentLength() <= 0) {\n\t\t\t\tresp.sendError(400, \"Content missing in POST request!\");\n\t\t\t\tlogger.debug(\"Content missing in POST request\");\n\t\t\t\treturn;\n\t\t\t}\n\t\t\treq.getReader().mark(4096);\n\t\t\tVector<HandleValue> hvNew = parseJSONHandleValues(req.getReader());\n\t\t\t// get old handle values\n\t\t\tHandleValue[] hvOrig = null;\n\t\t\ttry {\n\t\t\t\thvOrig = hsAdapter.resolveHandle(handleref.getHandle(), null,\n\t\t\t\t\t\tnull);\n\t\t\t} catch (HandleException exc) {\n\t\t\t\tthrow new IllegalStateException(\n\t\t\t\t\t\t\"Handle \"\n\t\t\t\t\t\t\t\t+ handleref.getHandle()\n\t\t\t\t\t\t\t\t+ \" does not exist. Use PUT method to create new Handles!\");\n\t\t\t}\n\t\t\tint hsadminsLost = 0;\n\t\t\tint hsadminsGained = 0;\n\t\t\t/*\n\t\t\t * Go through hvNew and determine index values to delete, add and\n\t\t\t * update.\n\t\t\t */\n\t\t\tVector<HandleValue> hvDelete = new Vector<HandleValue>();\n\t\t\tVector<HandleValue> hvAdd = new Vector<HandleValue>();\n\t\t\tVector<HandleValue> hvUpdate = new Vector<HandleValue>();\n\t\t\tfor (HandleValue hv : hvNew) {\n\t\t\t\tint index = hv.getIndex();\n\t\t\t\t// check if original value exists\n\t\t\t\tboolean valueExists = false;\n\t\t\t\tboolean origIsHSAdmin = false;\n\t\t\t\tfor (HandleValue hvo : hvOrig) {\n\t\t\t\t\tif (hvo.getIndex() == index) {\n\t\t\t\t\t\tvalueExists = true;\n\t\t\t\t\t\tif (hvo.getTypeAsString().equals(\"HS_ADMIN\"))\n\t\t\t\t\t\t\torigIsHSAdmin = true;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif ((hv.getData().length == 0) && (hv.getType().length == 0)) {\n\t\t\t\t\t// delete this value (but only if it still exists)\n\t\t\t\t\tif (valueExists) {\n\t\t\t\t\t\thvDelete.add(hv);\n\t\t\t\t\t\tif (origIsHSAdmin)\n\t\t\t\t\t\t\thsadminsLost++;\n\t\t\t\t\t}\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\tif (hv.getTypeAsString().equals(\"HS_ADMIN\"))\n\t\t\t\t\thsadminsGained++;\n\t\t\t\tif (valueExists) {\n\t\t\t\t\thvUpdate.add(hv);\n\t\t\t\t\tif (origIsHSAdmin)\n\t\t\t\t\t\thsadminsLost++;\n\t\t\t\t} else\n\t\t\t\t\thvAdd.add(hv);\n\t\t\t}\n\t\t\t/* security check: prevent removal of ALL HS_ADMIN values */\n\t\t\tint hsadminsOrig = 0;\n\t\t\tfor (HandleValue hv : hvOrig) {\n\t\t\t\tif (hv.getTypeAsString().equals(\"HS_ADMIN\"))\n\t\t\t\t\thsadminsOrig++;\n\t\t\t}\n\t\t\tif (hsadminsOrig + hsadminsGained - hsadminsLost <= 0) {\n\t\t\t\tthrow new Exception(\n\t\t\t\t\t\t\"You are not allowed to remove the last HS_ADMIN value from a Handle!\");\n\t\t\t}\n\t\t\t/* Update values */\n\t\t\tif (hvUpdate.size() > 0) {\n\t\t\t\tHandleValue[] arr = new HandleValue[hvUpdate.size()];\n\t\t\t\tarr = hvUpdate.toArray(arr);\n\t\t\t\thsAdapter.updateHandleValues(handleref.getHandle(), arr);\n\t\t\t}\n\t\t\t/* Add values */\n\t\t\tif (hvAdd.size() > 0) {\n\t\t\t\tHandleValue[] arr = new HandleValue[hvAdd.size()];\n\t\t\t\tarr = hvAdd.toArray(arr);\n\t\t\t\thsAdapter.addHandleValues(handleref.getHandle(), arr);\n\t\t\t}\n\t\t\t/* Delete values */\n\t\t\tif (hvDelete.size() > 0) {\n\t\t\t\tHandleValue[] arr = new HandleValue[hvDelete.size()];\n\t\t\t\tarr = hvDelete.toArray(arr);\n\t\t\t\thsAdapter.deleteHandleValues(handleref.getHandle(), arr);\n\t\t\t}\n\t\t} catch (JsonParseException exc) {\n\t\t\tresp.sendError(400, \"Malformed JSON data in request content: \"\n\t\t\t\t\t+ exc.getMessage());\n\t\t\tlogger.error(\n\t\t\t\t\t\"Could not perform POST operation due to malformed JSON data.\",\n\t\t\t\t\texc);\n\t\t\treturn;\n\t\t} catch (Exception exc) {\n\t\t\tresp.sendError(500,\n\t\t\t\t\t\"Error while processing the request: \" + exc.getMessage());\n\t\t\tlogger.error(\"Error during POST request:\", exc);\n\t\t\treturn;\n\t\t}\n\t}", "title": "" }, { "docid": "8c64a58ba5222b9e000fa7543bc2a779", "score": "0.61601734", "text": "@Override\r\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n postProcessRequest(request, response);\r\n }", "title": "" }, { "docid": "85bcdd02e1e9f2cb1046e97bf641c012", "score": "0.6153186", "text": "@Override\r\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n // processRequest(request, response);\r\n\r\n \r\n }", "title": "" }, { "docid": "0a3bf6a906c2d46fe7b8268431f30deb", "score": "0.6148684", "text": "public void doPost(HttpServletRequest request, HttpServletResponse response) {\r\n\t\tdoGet(request, response);\r\n\t}", "title": "" }, { "docid": "0a3bf6a906c2d46fe7b8268431f30deb", "score": "0.6148684", "text": "public void doPost(HttpServletRequest request, HttpServletResponse response) {\r\n\t\tdoGet(request, response);\r\n\t}", "title": "" }, { "docid": "95485e8d7e79e44f6c11a46789418e2d", "score": "0.61308676", "text": "@Override\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "title": "" }, { "docid": "95485e8d7e79e44f6c11a46789418e2d", "score": "0.61308676", "text": "@Override\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "title": "" }, { "docid": "a6503c6114995a10d8f3b9a22b2064aa", "score": "0.61306846", "text": "public void postHandle(HttpServletRequest request,\r\n\t\t\tHttpServletResponse response, Object handler,\r\n\t\t\tModelAndView modelAndView) throws Exception {\r\n\t}", "title": "" }, { "docid": "63d097a044023ae6458c229518ed0202", "score": "0.61291647", "text": "@Override // NOTE: final since it should be aliased, not overridden\n public final void handlePost(ServletServiceRequest request, ServletServiceResponse response,\n OperationDiagnostics stats) throws IOException\n {\n handlePut(request, response, stats);\n }", "title": "" }, { "docid": "e9b596a9d82eed131fe5b5c923a4f570", "score": "0.6127744", "text": "private Response handlePostRequest(Request req) {\n switch (req.getEndResource()) {\n case \"testcases\":\n return this.addBatch(req);\n case \"add\":\n return this.addTestcase(req);\n default:\n return Response.forbidden();\n }\n }", "title": "" }, { "docid": "9d03881aff51bde598fdeaa178db8380", "score": "0.6113811", "text": "@Override\n public void doPost(final HttpServletRequest req,\n final HttpServletResponse res) throws ServletException, IOException {\n process(req, res);\n }", "title": "" }, { "docid": "1fac2ca46f04694adc9b13924fa21dc2", "score": "0.6113763", "text": "@Override\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n \n }", "title": "" }, { "docid": "df19e47897050ab5afb46c750d70de6e", "score": "0.61113185", "text": "public void postHandle(HttpServletRequest request, HttpServletResponse response, \r\n\t Object handler, ModelAndView mav) {\r\n\t \r\n\t }", "title": "" }, { "docid": "adcccc18aee22fe0c0eaea19635889f3", "score": "0.6110351", "text": "@Override\n public void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n processRequest(request, response);\n }", "title": "" }, { "docid": "e7c3d2167cdbfddeded746fc4e1d0453", "score": "0.61019367", "text": "@Override\n\tpublic void postHandle(HttpServletRequest request, HttpServletResponse response, Object handler,\n\t\t\tModelAndView modelAndView) throws Exception {\n\t}", "title": "" }, { "docid": "be344a772af5e298d69f9fc1f63c110e", "score": "0.60997885", "text": "@Override\n public void postHandle(HttpServletRequest request, HttpServletResponse response, Object handler,\n ModelAndView modelAndView) throws Exception {\n }", "title": "" }, { "docid": "043d1b0a9c041bdd41e9f3f7b99e9f76", "score": "0.6098584", "text": "@Override\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n \n \n }", "title": "" }, { "docid": "ec8b7217a7ea7570a6349c1a80bc5c1d", "score": "0.6097553", "text": "@Override\n\tpublic void postHandle(HttpServletRequest request, HttpServletResponse response, Object handler,\n\t\t\tModelAndView modelAndView) throws Exception {\n\t\t\n\t}", "title": "" }, { "docid": "ec8b7217a7ea7570a6349c1a80bc5c1d", "score": "0.6097553", "text": "@Override\n\tpublic void postHandle(HttpServletRequest request, HttpServletResponse response, Object handler,\n\t\t\tModelAndView modelAndView) throws Exception {\n\t\t\n\t}", "title": "" } ]
25197b4cf814864ecd440f23b9149cb3
TODO Autogenerated method stub
[ { "docid": "1d9e40b2b208b3c45a8a54fca7fcf5bb", "score": "0.0", "text": "@Override\n\tpublic Schoolenterprise findById(int id) {\n\t\tSchoolenterprise schoolenterprise = schoolenterpriseMapper.findById(id);\n\t\treturn schoolenterprise;\n\t}", "title": "" } ]
[ { "docid": "ef1b6c3f597a66c59960d73eadee6f25", "score": "0.6904447", "text": "private void apparence()\n\t\t{\n\n\t\t}", "title": "" }, { "docid": "4862518dedb9e169c3cc620e5ebe04c5", "score": "0.6696056", "text": "@Override\r\n\tpublic void atura() {\n\t\t\r\n\t}", "title": "" }, { "docid": "651ef6275f1a33ed6582a1599cab78d2", "score": "0.66211534", "text": "@Override\n\tpublic void bekle() {\n\t\t\n\t}", "title": "" }, { "docid": "0b5b11f4251ace8b3d0f5ead186f7beb", "score": "0.65677965", "text": "@Override\n\tpublic void comer() {\n\t\t\n\t}", "title": "" }, { "docid": "0b5b11f4251ace8b3d0f5ead186f7beb", "score": "0.65677965", "text": "@Override\n\tpublic void comer() {\n\t\t\n\t}", "title": "" }, { "docid": "c56ced5e9768caa7a88a0e86dc1d02eb", "score": "0.6557507", "text": "@Override\n\tpublic void pintate() {\n\t\t\n\t}", "title": "" }, { "docid": "534c466f09845319b9edaf959a891c09", "score": "0.6546559", "text": "@Override\r\n\tpublic void debriyaj() {\n\t\t\r\n\t}", "title": "" }, { "docid": "c2f383f280f298416bf45e72c374ecfa", "score": "0.64127725", "text": "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "title": "" }, { "docid": "b62a7c8e0bb1090171742c543bf4b253", "score": "0.63762105", "text": "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "title": "" }, { "docid": "b4d7f671f527efc3e048a88ada2fe816", "score": "0.6362821", "text": "@Override\n\tpublic void 말한다() {\n\t\t\n\t}", "title": "" }, { "docid": "b4d7f671f527efc3e048a88ada2fe816", "score": "0.6362821", "text": "@Override\n\tpublic void 말한다() {\n\t\t\n\t}", "title": "" }, { "docid": "b4d7f671f527efc3e048a88ada2fe816", "score": "0.6362821", "text": "@Override\n\tpublic void 말한다() {\n\t\t\n\t}", "title": "" }, { "docid": "b4d7f671f527efc3e048a88ada2fe816", "score": "0.6362821", "text": "@Override\n\tpublic void 말한다() {\n\t\t\n\t}", "title": "" }, { "docid": "df89b968807fade64158ed6c7401bc7a", "score": "0.62550694", "text": "@Override\r\n\tpublic void afficher() {\n\t\t\r\n\t}", "title": "" }, { "docid": "761f5db0b07474bff2090f23a6693efb", "score": "0.6211042", "text": "private void Prodto() {\n\n\t}", "title": "" }, { "docid": "74578344538dd194907dffc0406cacac", "score": "0.6166714", "text": "@Override\n public void suicide() {\n \n }", "title": "" }, { "docid": "10ead2e988bf977cb8edb2bacf974891", "score": "0.61546874", "text": "@Override\n\tprotected void init() {\n\t\t\n\t}", "title": "" }, { "docid": "a2392cc71aaf87bc730f13f37ecdb439", "score": "0.6153736", "text": "private void apparence()\r\n\t\t{\r\n\t\t//Rien\r\n\t\t}", "title": "" }, { "docid": "db51ad8e6f15ad35a767d84e1e1eda68", "score": "0.61275035", "text": "@Override\n\t\t\tpublic void cry() {\n\t\t\t\t\n\t\t\t}", "title": "" }, { "docid": "23f3a7415a3f7463e8a1124d06cf4cf2", "score": "0.609125", "text": "@Override\n\tpublic void valide() {\n\t\t\n\t}", "title": "" }, { "docid": "e24a2515146ce17481b567e14f6d3258", "score": "0.6075012", "text": "public void retrievecart() {\n\t\t\t\r\n\t\t}", "title": "" }, { "docid": "fba36b6a112c0dbc3dd5aa61fe730a40", "score": "0.60609394", "text": "@Override\n\tpublic void subir() {\n\t\t\n\t}", "title": "" }, { "docid": "5c8e848472fb111129ff96ea7e3eea3d", "score": "0.605578", "text": "@Override\n public void pintar() {\n \n }", "title": "" }, { "docid": "280c1f1bfe3582788f566eafe40085dd", "score": "0.60448366", "text": "@Override\n \tpublic void init() {\n \t\t\n \t}", "title": "" }, { "docid": "5f1811a241e41ead4415ec767e77c63d", "score": "0.6023245", "text": "@Override\n\tprotected void init() {\n\n\t}", "title": "" }, { "docid": "2ba22ff158b6e941041f9460eddd0944", "score": "0.5991409", "text": "@Override\n public void operation() {\n \n }", "title": "" }, { "docid": "afc2a2ef708681a23da24526386fa543", "score": "0.5979341", "text": "@Override\r\n\tpublic void demo4() {\n\t\t\r\n\t}", "title": "" }, { "docid": "951638c11e887c3f81bcc83306f4e413", "score": "0.5957303", "text": "@Override\r\n\tpublic void trunon() {\n\r\n\t}", "title": "" }, { "docid": "03a6fa2a6dc40f30e9f67797ea87ac0e", "score": "0.5950196", "text": "@Override\n\tvoid generate() {\n\t\t\n\t}", "title": "" }, { "docid": "86b315eabc97abef1ea325b454b16656", "score": "0.5934478", "text": "@Override\n\tpublic void veneno() {\n\t\t\n\t}", "title": "" }, { "docid": "4f4340003331db95a2feee0084056a02", "score": "0.59033096", "text": "@Override\n\tprotected void inicializar() {\n\n\t}", "title": "" }, { "docid": "28237d6ae20e1aa35aaca12e05c950c9", "score": "0.5902906", "text": "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "title": "" }, { "docid": "77f859c241fd5e1d997f67c3b890833e", "score": "0.5886342", "text": "@Override\n\tpublic void dormir() {\n\t\t\n\t}", "title": "" }, { "docid": "c16fc3362f80f1c0559c76bf68be5792", "score": "0.58815277", "text": "@Override\n\tpublic void affiche() {\n\t\t\n\t}", "title": "" }, { "docid": "a6c80a6456cfc74acaa16a2f9c3063c5", "score": "0.5881057", "text": "@Override\n\t\n\tprotected void initialize() {\n\t\t\n\t}", "title": "" }, { "docid": "bf75e876384ccbd3516440064d914edb", "score": "0.585407", "text": "@Override\r\n\t\t\tpublic void process() {\n\t\t\t\t\r\n\t\t\t}", "title": "" }, { "docid": "22f2421f5b9cc11d1699c42857b4dfe9", "score": "0.5850562", "text": "protected void mo1582st() {\n }", "title": "" }, { "docid": "7d4da85943fb6a6ba61dac3c9ae538b3", "score": "0.58336115", "text": "@Override\n\tpublic void morir() {\n\t\t\n\t}", "title": "" }, { "docid": "d07c1f5c9d405e36c1ebf9e7e586652e", "score": "0.5830177", "text": "private Solution() {\n /** Not using this function**/\n }", "title": "" }, { "docid": "fab6f4103beb4667b90da1eb3672a4fa", "score": "0.5821835", "text": "@Override\n\tprotected void update() {\n\n\t}", "title": "" }, { "docid": "2be71c02c2e214eecbe2c8bd5dfe8cb0", "score": "0.58195674", "text": "@Override\n\tpublic void fortify() {\n\t\t\n\t}", "title": "" }, { "docid": "4112f041d618773e927eaf69a897467b", "score": "0.5817743", "text": "@Override\r\n\tpublic void tempup() {\n\t\t\r\n\t}", "title": "" }, { "docid": "d1236089c8974701d0acd37b2cad6d5b", "score": "0.5809914", "text": "@Override\n\tpublic void init(){\n\t\t\n\t}", "title": "" }, { "docid": "8d9539007d174aa71cae3fdbfe4952c6", "score": "0.5801801", "text": "@Override \n\tpublic void init() {\n\t}", "title": "" }, { "docid": "5783648f118108797828ca2085091ef9", "score": "0.5793788", "text": "@Override\n protected void initialize() {\n \n }", "title": "" }, { "docid": "bcd5f0b16beb225527894894dcaf774f", "score": "0.5789414", "text": "@Override\n\tprotected void update() {\n\t\t\n\t}", "title": "" }, { "docid": "5243b8d363dba36edfd9e64eb96cc9d5", "score": "0.57880706", "text": "@Override\n public int getStatus() {\n return 0;\n }", "title": "" }, { "docid": "b096eae650ba80789eb6446d859169a3", "score": "0.5776792", "text": "protected void mo1586sx() {\n }", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5774479", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5774479", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5774479", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5774479", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5774479", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5774479", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5774479", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5774479", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5774479", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "17cb0676e79dae45623dcbdd6cf2af58", "score": "0.5773822", "text": "@Override\n\tpublic void update() {\n\t\t// TODO Auto-generated method stub\n\n\t}", "title": "" }, { "docid": "849edaa5bbcc7511e16697ad05c01712", "score": "0.57732296", "text": "@Override\n\tpublic void avanzar() {\n\t\t\n\t}", "title": "" }, { "docid": "6c897821a3b00faa6e582b1c5bd5b3c6", "score": "0.57677484", "text": "@Override\r\n\tpublic void direksiyon() {\n\t\t\r\n\t}", "title": "" }, { "docid": "518a761521ca9f5cb8a8055b32b72cda", "score": "0.57596046", "text": "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "title": "" }, { "docid": "81ea0647fff57e17ec5107049b4dbf8b", "score": "0.57594514", "text": "@Override\n public int size() {\n return 1;\n }", "title": "" }, { "docid": "535ccad74dc29933b6b48fea680ba27c", "score": "0.5755988", "text": "@Override\r\n\tpublic void operacion() {\n\t\t\r\n\t}", "title": "" }, { "docid": "1985dddb6264adc2fb069a687b25f36b", "score": "0.57541007", "text": "@Override\n\tpublic void groom() {\n\t\t\n\t}", "title": "" }, { "docid": "33572cd017818797318a53dbacbc00b9", "score": "0.57530975", "text": "@Override\r\n\t\t\tpublic void initialize() {\n\t\t\t\t\r\n\t\t\t}", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.575025", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.575025", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.575025", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.575025", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.575025", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.575025", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.575025", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "a8b768dae1b52549249069e4d6a9253f", "score": "0.57492036", "text": "@Override\n public int getType() {\n return 0;\n }", "title": "" }, { "docid": "b6c53604ad2f38e9cacf958a442de4cf", "score": "0.57409", "text": "@Override\n\tprotected void initAfterData() {\n\n\t}", "title": "" }, { "docid": "734b1972ec29b58535c294e3962d017d", "score": "0.5736822", "text": "@Override\n\tpublic void generar() {\n\t\t\n\t}", "title": "" }, { "docid": "4f5334e4c63e1b16e38cf957e8576a25", "score": "0.5735921", "text": "@Override\n\tpublic void getHaned() {\n\t\t\n\t}", "title": "" }, { "docid": "b143ffd983be4c8f41702b8f934b6f32", "score": "0.57337177", "text": "@Override\r\n\tpublic void init() {\n\r\n\t}", "title": "" }, { "docid": "b143ffd983be4c8f41702b8f934b6f32", "score": "0.57337177", "text": "@Override\r\n\tpublic void init() {\n\r\n\t}", "title": "" }, { "docid": "a7ae27b45bb1a02a96ba4232264be825", "score": "0.57315516", "text": "@Override\n\tpublic void embarcar() {\n\t\t\n\t}", "title": "" }, { "docid": "c6e40448cb261fef3ee1fc3a1f5373f0", "score": "0.57304126", "text": "@Override\n\tpublic void operation() {\n\t\t\n\t}", "title": "" }, { "docid": "a937c607590931387a357d03c3b0eef4", "score": "0.5715831", "text": "@Override\n\tprotected void initialize() {\n\n\t}", "title": "" }, { "docid": "a937c607590931387a357d03c3b0eef4", "score": "0.5715831", "text": "@Override\n\tprotected void initialize() {\n\n\t}", "title": "" }, { "docid": "a937c607590931387a357d03c3b0eef4", "score": "0.5715831", "text": "@Override\n\tprotected void initialize() {\n\n\t}", "title": "" }, { "docid": "ba3ff1d644c6b502f46e78f3112e984c", "score": "0.57151", "text": "@Override\r\n\tpublic void toss() \r\n\t{\n\t\t\r\n\t}", "title": "" }, { "docid": "a1a79ff63f3eb784a0134fc70f7de913", "score": "0.57141805", "text": "@Override\n\tpublic void initdata() {\n\n\t}", "title": "" }, { "docid": "20aa3abef3af4ea8bcf5e834227be04c", "score": "0.57137775", "text": "@Override\n\tpublic void Pessoa() {\n\t\t\n\t}", "title": "" }, { "docid": "6894ea3aa25d3dee3c3dd8331b9a9cdd", "score": "0.57120746", "text": "@Override\n\t public int correr() {\n\t return 7;\n\t }", "title": "" }, { "docid": "d7405dbb7f385c28de1f97859172342b", "score": "0.5705621", "text": "@Override\n\tpublic void affiche() {\n\t}", "title": "" }, { "docid": "f9fa4d6203b441d4a00a824c3219ddb2", "score": "0.5704342", "text": "@Override\n\tprotected void doOperate() {\n\n\t}", "title": "" }, { "docid": "b2858312446172fa25a799c5367d2043", "score": "0.56896037", "text": "Smelting(){\r\n\r\n\t\t}", "title": "" }, { "docid": "2d9072b54f55f18557f92b99be58ec2f", "score": "0.56886935", "text": "@Override\r\n public String toString() {\n\treturn null;\r\n }", "title": "" }, { "docid": "9f7ae565c79188ee275e5778abe03250", "score": "0.56881124", "text": "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "title": "" }, { "docid": "9f7ae565c79188ee275e5778abe03250", "score": "0.56881124", "text": "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "title": "" }, { "docid": "af5603f291fb4fc9dd83e46e0602225b", "score": "0.56868714", "text": "@Override\r\n\tpublic void demo3() {\n\t\t\r\n\t}", "title": "" }, { "docid": "c937f9289f415cfdd7aefc5d621d0867", "score": "0.56740177", "text": "@Override\n protected void inicializar() {\n }", "title": "" }, { "docid": "e8efac2ee01f452014413fb75d28b3a6", "score": "0.5659524", "text": "@Override\r\n\tpublic void initState() {\r\n\t\t// TODO Auto-generated method stub\r\n\t\t\r\n\t}", "title": "" }, { "docid": "1857996533d34551ac38dd34ec5213a3", "score": "0.56573755", "text": "public void koniecReplikacie() {\n\t\t\n\t}", "title": "" }, { "docid": "9d94df716ebd35f7ec07df01763ae94c", "score": "0.5655942", "text": "@Override\n\tpublic void init() {\n\n\t}", "title": "" }, { "docid": "9d94df716ebd35f7ec07df01763ae94c", "score": "0.5655942", "text": "@Override\n\tpublic void init() {\n\n\t}", "title": "" }, { "docid": "9d94df716ebd35f7ec07df01763ae94c", "score": "0.5655942", "text": "@Override\n\tpublic void init() {\n\n\t}", "title": "" }, { "docid": "9d94df716ebd35f7ec07df01763ae94c", "score": "0.5655942", "text": "@Override\n\tpublic void init() {\n\n\t}", "title": "" } ]
25197b4cf814864ecd440f23b9149cb3
TODO Autogenerated method stub
[ { "docid": "4ec6254979228503555845e298d442c0", "score": "0.0", "text": "@Override\r\n\tpublic String moveForth() {\n\t\tif((0<=x && x<=50) && (0<=y && y<=10) && (0<z && z<=50))\r\n\t\t{\r\n\t\t\tz--;\r\n\t\t}\r\n\t\telse if((0<=x && x<=50) && (40<=y && y<=50) && (0<z && z<=50))\r\n\t\t{\r\n\t\t\tz--;\r\n\t\t}\r\n\t\telse if((0<=x && x<=50) && (0<=y && y<=50) && (0<z && z<=10))\r\n\t\t{\r\n\t\t\tz--;\r\n\t\t}\r\n\t\telse if((0<=x && x<=10) && (0<=y && y<=50) && (0<z && z<=50))\r\n\t\t{\r\n\t\t\tz--;\r\n\t\t}\r\n\t\telse if((0<=x && x<=50) && (0<=y && y<=50) && (40<z && z<=50))\r\n\t\t{\r\n\t\t\tz--;\r\n\t\t}\r\n\t\telse if((40<=x && x<=50) && (0<=y && y<=50) && (0<z && z<=50))\r\n\t\t{\r\n\t\t\tz--;\r\n\t\t}\r\n\t\treturn getFormatedCoordinates();\r\n\t}", "title": "" } ]
[ { "docid": "3d9823aba51891281b4bbd4b1818b970", "score": "0.6671074", "text": "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "title": "" }, { "docid": "0b5b11f4251ace8b3d0f5ead186f7beb", "score": "0.6567672", "text": "@Override\n\tpublic void comer() {\n\t\t\n\t}", "title": "" }, { "docid": "ea8460c7314de45803a19bf7c984d4bf", "score": "0.6523024", "text": "@Override\n public void perish() {\n \n }", "title": "" }, { "docid": "5f8d37aee09bc1e9959f768d6eb0183c", "score": "0.6481211", "text": "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "title": "" }, { "docid": "97d296a7afb7dc4215dea52c44825799", "score": "0.6477082", "text": "@Override\n\tpublic void anular() {\n\n\t}", "title": "" }, { "docid": "2dcda7054abb2ac593302e39a2284f12", "score": "0.64591026", "text": "@Override\n\tprotected void getExras() {\n\n\t}", "title": "" }, { "docid": "c2f383f280f298416bf45e72c374ecfa", "score": "0.64127725", "text": "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "title": "" }, { "docid": "b62a7c8e0bb1090171742c543bf4b253", "score": "0.63762105", "text": "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "title": "" }, { "docid": "177192b7240b496ba5aefdfed60037c9", "score": "0.6276059", "text": "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "title": "" }, { "docid": "5a2cf6475b24af1408d07534790462c3", "score": "0.6254286", "text": "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "title": "" }, { "docid": "1f7c82e188acf30d59f88faf08cf24ac", "score": "0.623686", "text": "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "title": "" }, { "docid": "6c2fa45ab362625ae567ee8a229630a4", "score": "0.6223679", "text": "@Override\n\tprotected void interr() {\n\t}", "title": "" }, { "docid": "73463480918eeb854ee253f0b90b8f6a", "score": "0.6201336", "text": "@Override\n\tpublic void emprestimo() {\n\n\t}", "title": "" }, { "docid": "abcadad5e0834117553d2b9f67dbe5da", "score": "0.61950207", "text": "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "title": "" }, { "docid": "abcadad5e0834117553d2b9f67dbe5da", "score": "0.61950207", "text": "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "title": "" }, { "docid": "7c4f2f94b290de5507eb56a649c4fab9", "score": "0.61922914", "text": "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "title": "" }, { "docid": "61358eff9372995c8157b02d47a44a6a", "score": "0.6186996", "text": "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "title": "" }, { "docid": "24836dd83ff94f056e1fcc3c7d1bd342", "score": "0.6173591", "text": "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "title": "" }, { "docid": "a89a6a1e5b118a43de52e5ffd006970b", "score": "0.61327106", "text": "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "title": "" }, { "docid": "50eb8922149b6987def0b49575615f5e", "score": "0.61285484", "text": "@Override\n protected void getExras() {\n }", "title": "" }, { "docid": "1c8a7915e39d52e26f69fe54c7cab366", "score": "0.6080161", "text": "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "title": "" }, { "docid": "b910b894fe7ad3828da2a23b46f46c91", "score": "0.6077022", "text": "@Override\n\tpublic void nefesAl() {\n\n\t}", "title": "" }, { "docid": "c95af00aee2fa41e8a03e3640ca30750", "score": "0.6041561", "text": "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "title": "" }, { "docid": "680ac9d1bc1773741a758290a71e990c", "score": "0.6024072", "text": "@Override\n public void func_104112_b() {\n \n }", "title": "" }, { "docid": "5fda61f75e47491fe0badbfe139070a9", "score": "0.6020252", "text": "@Override\n\tprotected void initdata() {\n\n\t}", "title": "" }, { "docid": "c682095c2b4f1946676c35a1deda3c6f", "score": "0.59984857", "text": "@Override\n\tpublic void nghe() {\n\n\t}", "title": "" }, { "docid": "d96634e617617b62a9a214992c3282f5", "score": "0.59672105", "text": "@Override\n public void function()\n {\n }", "title": "" }, { "docid": "d96634e617617b62a9a214992c3282f5", "score": "0.59672105", "text": "@Override\n public void function()\n {\n }", "title": "" }, { "docid": "2f8bc325cbd58e19eae4acec86ffe12c", "score": "0.5965777", "text": "public final void mo51373a() {\n }", "title": "" }, { "docid": "49a9123d9e9db8177a76f606f354e668", "score": "0.59485507", "text": "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "title": "" }, { "docid": "100a24d43d831707c172dbf3ee5fc24c", "score": "0.5940904", "text": "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "title": "" }, { "docid": "8b18fd12dbb5303a665e92c25393fb78", "score": "0.59239364", "text": "@Override\n\tprotected void initData() {\n\t\t\n\t}", "title": "" }, { "docid": "d61bad95071bf9780632fa87c434bab9", "score": "0.5910017", "text": "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "title": "" }, { "docid": "28237d6ae20e1aa35aaca12e05c950c9", "score": "0.5902906", "text": "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "title": "" }, { "docid": "96b7c88f13f659e23bf631d2d5053b40", "score": "0.58946234", "text": "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "title": "" }, { "docid": "53a77fe02ff8601b7f3a53009ccfd05c", "score": "0.5886006", "text": "public void designBasement() {\n\t\t\r\n\t}", "title": "" }, { "docid": "a515456a9e11b20998e2bfdd6c3dce67", "score": "0.58839184", "text": "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "title": "" }, { "docid": "4da8e9683b65c2cb7a22ee151d8c65e1", "score": "0.58691067", "text": "public void gored() {\n\t\t\n\t}", "title": "" }, { "docid": "4967494f628119c8d3a4740e09278944", "score": "0.5857751", "text": "@Override\r\n\tprotected void initData() {\n\r\n\t}", "title": "" }, { "docid": "b77eac7bccbd213b5d32d3e935c81ffe", "score": "0.58503544", "text": "@Override\n\tpublic void einkaufen() {\n\t}", "title": "" }, { "docid": "d06828119af4f719fc9db2eac57f2601", "score": "0.5847024", "text": "@Override\n protected void initialize() {\n\n \n }", "title": "" }, { "docid": "8c4be9114abb8cb7b57dc3c5d34882a8", "score": "0.58239377", "text": "public void mo38117a() {\n }", "title": "" }, { "docid": "e57f005733f2eb8590150b3f4542b844", "score": "0.5810564", "text": "@Override\n\tprotected void getData() {\n\t\t\n\t}", "title": "" }, { "docid": "2fda59f727914730e1ccc0c0b05e57bd", "score": "0.5810089", "text": "Constructor() {\r\n\t\t \r\n\t }", "title": "" }, { "docid": "9d2f44c3ebe1fb8de1ac4ae677e2d851", "score": "0.5806823", "text": "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "title": "" }, { "docid": "9d2f44c3ebe1fb8de1ac4ae677e2d851", "score": "0.5806823", "text": "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "title": "" }, { "docid": "cc32bfffe770f8a5c5cf88e6af231ff8", "score": "0.5800025", "text": "@Override\n\tpublic void one() {\n\t\t\n\t}", "title": "" }, { "docid": "beee84210d56979d0068a8094fb2a5bd", "score": "0.5792378", "text": "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "title": "" }, { "docid": "beee84210d56979d0068a8094fb2a5bd", "score": "0.5792378", "text": "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "title": "" }, { "docid": "beee84210d56979d0068a8094fb2a5bd", "score": "0.5792378", "text": "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "title": "" }, { "docid": "beee84210d56979d0068a8094fb2a5bd", "score": "0.5792378", "text": "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "title": "" }, { "docid": "beee84210d56979d0068a8094fb2a5bd", "score": "0.5792378", "text": "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "title": "" }, { "docid": "beee84210d56979d0068a8094fb2a5bd", "score": "0.5792378", "text": "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "title": "" }, { "docid": "1260bf70decb91faff8466bae6765ba2", "score": "0.5790187", "text": "private stendhal() {\n\t}", "title": "" }, { "docid": "bcd5f0b16beb225527894894dcaf774f", "score": "0.5789414", "text": "@Override\n\tprotected void update() {\n\t\t\n\t}", "title": "" }, { "docid": "f397b517b3f3532ba47ff3ee806bc420", "score": "0.5787092", "text": "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "title": "" }, { "docid": "54b1134554bc066c34ed30a72adb660c", "score": "0.57844025", "text": "@Override\n\tprotected void initData() {\n\n\t}", "title": "" }, { "docid": "54b1134554bc066c34ed30a72adb660c", "score": "0.57844025", "text": "@Override\n\tprotected void initData() {\n\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5774479", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5774479", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5774479", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5774479", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5774479", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "5e6804b1ba880a8cc8a98006ca4ba35b", "score": "0.5761362", "text": "@Override\n public void init() {\n\n }", "title": "" }, { "docid": "518a761521ca9f5cb8a8055b32b72cda", "score": "0.57596046", "text": "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "title": "" }, { "docid": "518a761521ca9f5cb8a8055b32b72cda", "score": "0.57596046", "text": "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.575025", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.575025", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.575025", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "4a5b709a6553621aa4226737a20ba120", "score": "0.5747959", "text": "@Override\n\tpublic void debite() {\n\t\t\n\t}", "title": "" }, { "docid": "b143ffd983be4c8f41702b8f934b6f32", "score": "0.57337177", "text": "@Override\r\n\tpublic void init() {\n\r\n\t}", "title": "" }, { "docid": "b143ffd983be4c8f41702b8f934b6f32", "score": "0.57337177", "text": "@Override\r\n\tpublic void init() {\n\r\n\t}", "title": "" }, { "docid": "b143ffd983be4c8f41702b8f934b6f32", "score": "0.57337177", "text": "@Override\r\n\tpublic void init() {\n\r\n\t}", "title": "" }, { "docid": "7f454c1ee07328138017395e69b0420e", "score": "0.5721452", "text": "public contrustor(){\r\n\t}", "title": "" }, { "docid": "a937c607590931387a357d03c3b0eef4", "score": "0.5715831", "text": "@Override\n\tprotected void initialize() {\n\n\t}", "title": "" }, { "docid": "2911d3f6b10d531f37ba6cbbb1e4e44a", "score": "0.57142824", "text": "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "title": "" }, { "docid": "0fc890bce2cd6e7184e33036b92f8217", "score": "0.57140535", "text": "public void mo55254a() {\n }", "title": "" }, { "docid": "0fc890bce2cd6e7184e33036b92f8217", "score": "0.57140535", "text": "public void mo55254a() {\n }", "title": "" }, { "docid": "0fc890bce2cd6e7184e33036b92f8217", "score": "0.57140535", "text": "public void mo55254a() {\n }", "title": "" }, { "docid": "0fc890bce2cd6e7184e33036b92f8217", "score": "0.57140535", "text": "public void mo55254a() {\n }", "title": "" }, { "docid": "0fc890bce2cd6e7184e33036b92f8217", "score": "0.57140535", "text": "public void mo55254a() {\n }", "title": "" }, { "docid": "0fc890bce2cd6e7184e33036b92f8217", "score": "0.57140535", "text": "public void mo55254a() {\n }", "title": "" }, { "docid": "0fc890bce2cd6e7184e33036b92f8217", "score": "0.57140535", "text": "public void mo55254a() {\n }", "title": "" }, { "docid": "8862e414d1049ff417c2327b444db61e", "score": "0.5711723", "text": "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "title": "" }, { "docid": "29251cbd61f58d1440af2e558c6a19bc", "score": "0.57041645", "text": "@Override\n\tprotected void logic() {\n\n\t}", "title": "" }, { "docid": "39132efb6b42f8ec625d96ff6226d80b", "score": "0.56991017", "text": "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "title": "" }, { "docid": "86232e6a9aaa22e4403270ce10de01d3", "score": "0.5696783", "text": "public void mo4359a() {\n }", "title": "" }, { "docid": "9f7ae565c79188ee275e5778abe03250", "score": "0.56881124", "text": "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "title": "" }, { "docid": "b1e3eb9a5b9dff21ed219e48a8676b34", "score": "0.56774884", "text": "@Override\n public void memoria() {\n \n }", "title": "" }, { "docid": "c0ca0277e879a2b84cd3748b428dc4fa", "score": "0.56734604", "text": "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "title": "" }, { "docid": "dca752ff24c887a367479fb49a14a486", "score": "0.56728", "text": "private RepositorioAtendimentoPublicoHBM() {\r\t}", "title": "" }, { "docid": "137850fe8be37a8fdff9b5f1d19f9338", "score": "0.56696945", "text": "@Override\n protected void initialize() \n {\n \n }", "title": "" }, { "docid": "51fb4cf832bd3bdab07f36fa0655aed2", "score": "0.5661323", "text": "@Override\r\n\tpublic void getProposition() {\n\r\n\t}", "title": "" }, { "docid": "fb842ef1f250aaba4286c185df305a9b", "score": "0.5657007", "text": "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "title": "" }, { "docid": "9d94df716ebd35f7ec07df01763ae94c", "score": "0.5655942", "text": "@Override\n\tpublic void init() {\n\n\t}", "title": "" }, { "docid": "9d94df716ebd35f7ec07df01763ae94c", "score": "0.5655942", "text": "@Override\n\tpublic void init() {\n\n\t}", "title": "" }, { "docid": "9d94df716ebd35f7ec07df01763ae94c", "score": "0.5655942", "text": "@Override\n\tpublic void init() {\n\n\t}", "title": "" }, { "docid": "cc19c0c7ab1bdc568508b0381e170621", "score": "0.56549734", "text": "@Override\n protected void prot() {\n }", "title": "" }, { "docid": "92ff2215e2946927efe966014fa1b664", "score": "0.5654792", "text": "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "title": "" }, { "docid": "289e1db116de136c64eef3293ece7f16", "score": "0.5652974", "text": "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "title": "" }, { "docid": "502b1954008fce4ba895ad7a32b37b97", "score": "0.5650185", "text": "public void mo55254a() {\n }", "title": "" } ]
23b36106590295c5e88e0a51c62d4459
see JLS 4.10.1, 'subtyping among primitive types'
[ { "docid": "b243b45110181bb8e142702250fb9ece", "score": "0.54365516", "text": "private static boolean isPrimSubtype(PrimTy a, Type other) {\n if (other.tyKind() != TyKind.PRIM_TY) {\n return false;\n }\n PrimTy b = (PrimTy) other;\n switch (a.primkind()) {\n case CHAR:\n switch (b.primkind()) {\n case CHAR:\n case INT:\n case LONG:\n case FLOAT:\n case DOUBLE:\n return true;\n default:\n return false;\n }\n case BYTE:\n switch (b.primkind()) {\n case BYTE:\n case SHORT:\n case INT:\n case LONG:\n case FLOAT:\n case DOUBLE:\n return true;\n default:\n return false;\n }\n case SHORT:\n switch (b.primkind()) {\n case SHORT:\n case INT:\n case LONG:\n case FLOAT:\n case DOUBLE:\n return true;\n default:\n return false;\n }\n case INT:\n switch (b.primkind()) {\n case INT:\n case LONG:\n case FLOAT:\n case DOUBLE:\n return true;\n default:\n return false;\n }\n case LONG:\n switch (b.primkind()) {\n case LONG:\n case FLOAT:\n case DOUBLE:\n return true;\n default:\n return false;\n }\n case FLOAT:\n switch (b.primkind()) {\n case FLOAT:\n case DOUBLE:\n return true;\n default:\n return false;\n }\n case DOUBLE:\n case STRING:\n case BOOLEAN:\n return a.primkind() == b.primkind();\n case NULL:\n break;\n }\n throw new AssertionError(a.primkind());\n }", "title": "" } ]
[ { "docid": "2a01f4e0eda538fe238eb74584be2308", "score": "0.6829432", "text": "public static void primitiveTypesCasting() {\n\t\tSystem.out.println(\"----------------PRIMITIVE TYPE OVERWIEV------------------\");\n\t\tint tmp = 0;\n\t\tboolean debug = ManagementFactory.getRuntimeMXBean().getInputArguments().toString().indexOf(\"jdwp\") >= 0;\n\n\t\tbyte byteType = Byte.MIN_VALUE;\n\t\t;\n\t\tshort shortType = Short.MIN_VALUE;\n\t\tint intType = Integer.MIN_VALUE;\n\t\tlong longType = Long.MIN_VALUE;\n\t\tfloat floatType = Float.MIN_VALUE;\n\t\tdouble doubleType = Double.MIN_VALUE;\n\t\tboolean booleanType = true;\n\t\tchar charType = Character.MAX_VALUE;\n\n\t\tString byteTypeRange = \"[\" + Byte.MIN_VALUE + \",\" + Byte.MAX_VALUE + \")\";\n\t\tString shortTypeRange = \"[\" + Short.MIN_VALUE + \",\" + Short.MAX_VALUE + \")\";\n\t\tString intTypeRange = \"[\" + Integer.MIN_VALUE + \",\" + Integer.MAX_VALUE + \")\";\n\t\tString longTypeRange = \"[\" + Long.MIN_VALUE + \",\" + Long.MAX_VALUE + \")\";\n\t\tString floatTypeRange = \"[\" + Float.MIN_VALUE + \",\" + Float.MAX_VALUE + \")\";\n\t\tString doubleTypeRange = \"[\" + Double.MIN_VALUE + \",\" + Double.MAX_VALUE + \")\";\n\t\tString booleanTypeRange = \"{true,false}\";\n\t\tString charTypeRange = \"[\" + (int) Character.MIN_VALUE + \",\" + (int) Character.MAX_VALUE + \")\";\n\n\t\tSystem.out.println(\"-------------------------BYTE TO ...----------------\");\n\t\tSystem.out.println(\"byteType = \" + byteType + \" to short is \" + (short) byteType\n\t\t\t\t+ \" beacause byteType is in shortType range. \" + shortTypeRange);\n\n\t\tSystem.out.println(\"byteType = \" + byteType + \" to int is \" + (int) byteType\n\t\t\t\t+ \" beacause byteType is in intType range. \" + intTypeRange);\n\t\tSystem.out.println(\"byteType = \" + byteType + \" to long is \" + (long) byteType\n\t\t\t\t+ \" beacause byteType is in longType range. \" + longTypeRange);\n\t\tSystem.out.println(\"byteType = \" + byteType + \" to float is \" + (float) byteType\n\t\t\t\t+ \" beacause byteType is in floatType range. \" + floatTypeRange);\n\t\tSystem.out.println(\"byteType = \" + byteType + \" to double is \" + (double) byteType\n\t\t\t\t+ \" beacause byteType is in doubleType range. \" + doubleTypeRange);\n\t\tSystem.out.println(\"Cannot cast byte to boolean. \" + booleanTypeRange);\n\t\tSystem.out.println(\"byteType = \" + byteType + \" to char is \" + (int) ((char) byteType)\n\t\t\t\t+ \" beacause byteType is out of charType range. \" + charTypeRange + \" [char is unsigned]\");\n\n\t\tSystem.out.println(\"\\n\");\n\n\t\tif (!debug) {\n\t\t\tSystem.out.println(\"SHORT type next ......\");\n\t\t\tSystem.out.println(\"PRESS KEY\");\n\t\t\ttry {\n\t\t\t\ttmp = System.in.read();\n\t\t\t} catch (IOException e) {\n\t\t\t\tSystem.out.println(\"Error when typing key from keyboard...\");\n\t\t\t}\n\t\t}\n\n\t\tSystem.out.println(\"------------------------SHORT to...-----------------\");\n\t\tSystem.out.println(\"shortType = \" + shortType + \" to byte is \" + (byte) shortType + \" because \" + shortType\n\t\t\t\t+ \" is out of byteType range. \" + byteTypeRange);\n\t\tSystem.out.println(\"shortType = \" + shortType + \" to integer is \" + (int) (shortType) + \" because \" + shortType\n\t\t\t\t+ \" is in intType range. \" + intTypeRange);\n\t\tSystem.out.println(\"shortType = \" + shortType + \" to long is \" + (long) (shortType) + \" because \" + shortType\n\t\t\t\t+ \" is in longType range. \" + longTypeRange);\n\t\tSystem.out.println(\"shortType = \" + shortType + \" to float is \" + (float) (shortType) + \" because \" + shortType\n\t\t\t\t+ \" is in floatType range. \" + floatTypeRange);\n\t\tSystem.out.println(\"shortType = \" + shortType + \" to double is \" + (double) (shortType) + \" because \"\n\t\t\t\t+ shortType + \" is in doubleType range. \" + doubleTypeRange);\n\t\tSystem.out.println(\"Cannot cast short to boolean. \" + booleanTypeRange);\n\t\tSystem.out.println(\"shortType = \" + shortType + \" to char is \" + (int) ((char) (shortType)) + \" because \"\n\t\t\t\t+ shortType + \" is out of charType range. \" + charTypeRange + \" [char is unsigned]\");\n\n\t\tSystem.out.println(\"\\n\");\n\t\tif (!debug) {\n\t\t\tSystem.out.println(\"INT type next ......\");\n\t\t\tSystem.out.println(\"PRESS KEY\");\n\t\t\ttry {\n\t\t\t\ttmp = System.in.read();\n\t\t\t} catch (IOException e) {\n\t\t\t\tSystem.out.println(\"Error when typing key from keyboard...\");\n\t\t\t}\n\t\t}\n\n\t\tSystem.out.println(\"------------------------INT to...-----------------\");\n\t\tSystem.out.println(\"intType = \" + intType + \" to byte is \" + (byte) intType + \" because \" + intType\n\t\t\t\t+ \" is out of byteType range. \" + byteTypeRange);\n\t\tSystem.out.println(\"intType = \" + intType + \" to short is \" + (int) (intType) + \" because \" + intType\n\t\t\t\t+ \" is out of shortType range. \" + shortTypeRange);\n\t\tSystem.out.println(\"intType = \" + intType + \" to long is \" + (long) (intType) + \" because \" + intType\n\t\t\t\t+ \" is in longType range. \" + longTypeRange);\n\t\tSystem.out.println(\"intType = \" + intType + \" to float is \" + (float) (intType) + \" because \" + intType\n\t\t\t\t+ \" is in floatType range. \" + floatTypeRange);\n\t\tSystem.out.println(\"intType = \" + intType + \" to double is \" + (double) (intType) + \" because \" + intType\n\t\t\t\t+ \" is in doubleType range. \" + doubleTypeRange);\n\t\tSystem.out.println(\"Cannot cast int to boolean. \" + booleanTypeRange);\n\t\tSystem.out.println(\"intType = \" + intType + \" to char is \" + (int) ((char) (intType)) + \" because \" + intType\n\t\t\t\t+ \" is out of charType range. \" + charTypeRange + \" [char is unsigned]\");\n\n\t\tSystem.out.println(\"\\n\");\n\t\tif (!debug) {\n\t\t\tSystem.out.println(\"LONG type next ......\");\n\t\t\tSystem.out.println(\"PRESS KEY\");\n\t\t\ttry {\n\t\t\t\ttmp = System.in.read();\n\t\t\t} catch (IOException e) {\n\t\t\t\tSystem.out.println(\"Error when typing key from keyboard...\");\n\t\t\t}\n\t\t}\n\n\t\tSystem.out.println(\"------------------------LONG to...-----------------\");\n\t\tSystem.out.println(\"longType = \" + longType + \" to byte is \" + (byte) longType + \" because \" + longType\n\t\t\t\t+ \" is out of byteType range. \" + byteTypeRange);\n\t\tSystem.out.println(\"longType = \" + longType + \" to short is \" + (short) (longType) + \" because \" + longType\n\t\t\t\t+ \" is out of shortType range. \" + shortTypeRange);\n\t\tSystem.out.println(\"longType = \" + longType + \" to int is \" + (int) (longType) + \" because \" + longType\n\t\t\t\t+ \" is out of intType range. \" + intTypeRange);\n\t\tSystem.out.println(\"longType = \" + longType + \" to float is \" + (float) (longType) + \" because \" + longType\n\t\t\t\t+ \" is in floatType range. \" + floatTypeRange);\n\t\tSystem.out.println(\"longType = \" + longType + \" to double is \" + (double) (longType) + \" because \" + longType\n\t\t\t\t+ \" is in doubleType range. \" + doubleTypeRange);\n\t\tSystem.out.println(\"Cannot cast long to boolean. \" + booleanTypeRange);\n\t\tSystem.out.println(\"longType = \" + longType + \" to char is \" + (int) ((char) (longType)) + \" because \"\n\t\t\t\t+ longType + \" is out of charType range. \" + charTypeRange + \" [char is unsigned]\");\n\n\t\tSystem.out.println(\"\\n\");\n\t\tif (!debug) {\n\t\t\tSystem.out.println(\"FLOAT type next ......\");\n\t\t\tSystem.out.println(\"PRESS KEY\");\n\t\t\ttry {\n\t\t\t\ttmp = System.in.read();\n\t\t\t} catch (IOException e) {\n\t\t\t\tSystem.out.println(\"Error when typing key from keyboard...\");\n\t\t\t}\n\t\t}\n\n\t\tSystem.out.println(\"------------------------FLOAT to...-----------------\");\n\t\tSystem.out.println(\"floatType = \" + floatType + \" to byte is \" + (byte) floatType + \" because \" + floatType\n\t\t\t\t+ \" is out of byteType range. \" + byteTypeRange);\n\t\tSystem.out.println(\"floatType = \" + floatType + \" to short is \" + (short) (floatType) + \" because \" + floatType\n\t\t\t\t+ \" is out of shortType range. \" + shortTypeRange);\n\t\tSystem.out.println(\"floatType = \" + floatType + \" to int is \" + (int) (floatType) + \" because \" + floatType\n\t\t\t\t+ \" is out of intType range. \" + intTypeRange);\n\t\tSystem.out.println(\"floatType = \" + floatType + \" to long is \" + (long) (floatType) + \" because \" + floatType\n\t\t\t\t+ \" is out of longType range. \" + longTypeRange);\n\t\tSystem.out.println(\"floatType = \" + floatType + \" to double is \" + (double) (floatType) + \" because \"\n\t\t\t\t+ floatType + \" is in doubleType range. \" + doubleTypeRange);\n\t\tSystem.out.println(\"Cannot cast float to boolean. \" + booleanTypeRange);\n\t\tSystem.out.println(\"floatType = \" + floatType + \" to char is \" + (int) ((char) (floatType)) + \" because \"\n\t\t\t\t+ floatType + \" is out of charType range. \" + charTypeRange + \" [char is unsigned]\");\n\t\tSystem.out.println(\"Max float type = \" + Float.MAX_VALUE + \" casted to int is:\" + (int) Float.MAX_VALUE);\n\n\t\tSystem.out.println(\"\\n\");\n\t\tif (!debug) {\n\t\t\tSystem.out.println(\"DOUBLE type next ......\");\n\t\t\tSystem.out.println(\"PRESS KEY\");\n\t\t\ttry {\n\t\t\t\ttmp = System.in.read();\n\t\t\t} catch (IOException e) {\n\t\t\t\tSystem.out.println(\"Error when typing key from keyboard...\");\n\t\t\t}\n\t\t}\n\n\t\tSystem.out.println(\"------------------------DOUBLE to...-----------------\");\n\t\tSystem.out.println(\"doubleType = \" + doubleType + \" to byte is \" + (byte) doubleType + \" because \" + doubleType\n\t\t\t\t+ \" is out of byteType range. \" + byteTypeRange);\n\t\tSystem.out.println(\"doubleType = \" + doubleType + \" to short is \" + (short) (doubleType) + \" because \"\n\t\t\t\t+ doubleType + \" is out of shortType range. \" + shortTypeRange);\n\t\tSystem.out.println(\"doubleType = \" + doubleType + \" to int is \" + (int) (doubleType) + \" because \" + doubleType\n\t\t\t\t+ \" is out of intType range. \" + intTypeRange);\n\t\tSystem.out.println(\"doubleType = \" + doubleType + \" to long is \" + (long) (doubleType) + \" because \"\n\t\t\t\t+ doubleType + \" is out of longType range. \" + longTypeRange);\n\t\tSystem.out.println(\"doubleType = \" + doubleType + \" to float is \" + (float) (doubleType) + \" because \"\n\t\t\t\t+ doubleType + \" is in floatType range. \" + floatTypeRange);\n\t\tSystem.out.println(\"Cannot cast double to boolean. \" + booleanTypeRange);\n\t\tSystem.out.println(\"doubleType = \" + doubleType + \" to char is \" + (int) ((char) (doubleType)) + \" because \"\n\t\t\t\t+ doubleType + \" is out of charType range. \" + charTypeRange + \" [char is unsigned]\");\n\n\t\tSystem.out.println(\"\\n\");\n\t\tif (!debug) {\n\t\t\tSystem.out.println(\"BOOLEAN type next ......\");\n\t\t\tSystem.out.println(\"PRESS KEY\");\n\t\t\ttry {\n\t\t\t\ttmp = System.in.read();\n\t\t\t} catch (IOException e) {\n\t\t\t\tSystem.out.println(\"Error when typing key from keyboard...\");\n\t\t\t}\n\t\t}\n\n\t\tSystem.out.println(\"------------------------BOOLEAN to...-----------------\");\n\t\tSystem.out.println(\"Cannot cast booleanType to any another primitives types.\");\n\n\t\tSystem.out.println(\"\\n\");\n\t\tif (!debug) {\n\t\t\tSystem.out.println(\"BOOLEAN type next ......\");\n\t\t\tSystem.out.println(\"PRESS KEY\");\n\t\t\ttry {\n\t\t\t\ttmp = System.in.read();\n\t\t\t} catch (IOException e) {\n\t\t\t\tSystem.out.println(\"Error when typing key from keyboard...\");\n\t\t\t}\n\t\t}\n\n\t\tSystem.out.println(\"------------------------CHAR to...-----------------\");\n\t\tSystem.out.println(\"Max charType as number = \" + (int) charType + \" to byte is \" + (byte) charType + \" because \"\n\t\t\t\t+ (int) charType + \" is out of byteType range. \" + byteTypeRange);\n\t\tSystem.out.println(\"Max charType as number = \" + (int) charType + \" to short is \" + (short) charType\n\t\t\t\t+ \" because \" + (int) charType + \" is out of shortType range. \" + shortTypeRange);\n\t\tSystem.out.println(\"Max charType as number = \" + (int) charType + \" to int is \" + (int) (charType) + \" because \"\n\t\t\t\t+ (int) charType + \" is in intType range. \" + intTypeRange);\n\t\tSystem.out.println(\"Max charType as number = \" + (int) charType + \" to long is \" + (long) (charType)\n\t\t\t\t+ \" because \" + (int) charType + \" is in longType range. \" + longTypeRange);\n\t\tSystem.out.println(\"Max charType as number = \" + (int) charType + \" to float is \" + (float) (charType)\n\t\t\t\t+ \" because \" + (int) charType + \" is in floatType range. \" + floatTypeRange);\n\t\tSystem.out.println(\"Cannot cast Max charType as number to boolean. \" + booleanTypeRange);\n\t\tSystem.out.println(\"Max charType as number = \" + (int) charType + \" to double is \" + (double) charType\n\t\t\t\t+ \" because \" + (int) charType + \" is in doubleType range. \" + doubleTypeRange);\n\n\t}", "title": "" }, { "docid": "928c9372875b5ece9054e95a9d251396", "score": "0.6776195", "text": "public interface PrimitiveDataType extends Datatype {\n}", "title": "" }, { "docid": "7ce884ddcfe691381206793c4cd90901", "score": "0.6723712", "text": "@Test\n public void primitiveTypeConversion() {\n int i = 1;\n long l = i;\n\n Assert.assertEquals(1, l);\n }", "title": "" }, { "docid": "b242e255d0a80eed86db3791b952301b", "score": "0.6699178", "text": "@Override\n public void visitTypeIdent(JCPrimitiveTypeTree that) {}", "title": "" }, { "docid": "ed95ebb1b069e7f0bd0142131c034785", "score": "0.6405848", "text": "@Test\n public void primitiveWrappers() {\n Integer foo = 3;\n int bar = foo;\n Integer baz = bar;\n\n // explicit conversion\n int a = 3;\n Integer b = Integer.valueOf(a); // boxing\n int c = b.intValue(); // unboxing\n\n String s = \"1.2\";\n double d = Double.parseDouble(s);\n double e = Double.valueOf(s);\n }", "title": "" }, { "docid": "2d6adfa742f69d3dc18e0dfcfcdb283a", "score": "0.632539", "text": "public abstract AnyInt asAnyInt();", "title": "" }, { "docid": "66b4ea713ddf27df6c8c78fcbf0fd484", "score": "0.6230779", "text": "void visit(PrimitiveType node);", "title": "" }, { "docid": "4b4bfb167d42b24d95eb3d99725b6bac", "score": "0.6205595", "text": "public ClassOrInterfaceType toBoxedPrimitive() {\n throw new IllegalArgumentException(\"type must be primitive\");\n }", "title": "" }, { "docid": "7f83d49163d8ee893188dea09ce1cb36", "score": "0.6197241", "text": "public interface PrimitiveInterface {\n boolean booleanValue();\n\n char charValue();\n\n short shortValue();\n\n int intValue();\n\n long longValue();\n\n float floatValue();\n\n double doubleValue();\n\n String stringValue();\n}", "title": "" }, { "docid": "3e35959294b2b044ec7fa0e1a8763c6c", "score": "0.6161868", "text": "public PrimitiveType toPrimitive() {\n throw new IllegalArgumentException(\"Type must be boxed primitive\");\n }", "title": "" }, { "docid": "6124a923c63d9a2afa612c8197e81035", "score": "0.60973585", "text": "public boolean isBoxedPrimitive() {\n return false;\n }", "title": "" }, { "docid": "63c3424443bfa0c698f39dd13f85e0d0", "score": "0.60880953", "text": "@Override\n\tpublic boolean isStrictSubtyping() {\n\t\treturn false;\n\t}", "title": "" }, { "docid": "bdccc592baaf77db8c07281f4c58890d", "score": "0.60013723", "text": "Primitive createPrimitive();", "title": "" }, { "docid": "8b550cd3a7b4cf202c56dcc4b517d182", "score": "0.5974249", "text": "PrimitiveType createPrimitiveType();", "title": "" }, { "docid": "24261f1e74e22fac6de7b5bdc40e0c64", "score": "0.5966648", "text": "@Override\n TypeVal typeEval() {\n return TypeVal.Int;\n }", "title": "" }, { "docid": "e64d8bbea764cb69451e621457a7e6a7", "score": "0.59194237", "text": "boolean isPrimitive();", "title": "" }, { "docid": "e64d8bbea764cb69451e621457a7e6a7", "score": "0.59194237", "text": "boolean isPrimitive();", "title": "" }, { "docid": "eb9b7af4bb5c23990d5b4103ac0c9e28", "score": "0.59111273", "text": "Type boxingConversion(Type t);", "title": "" }, { "docid": "083eb45c9a7323ee9f2cfb153ea3c646", "score": "0.5896883", "text": "ClassType wrapperClassOfPrimitive(PrimitiveType t);", "title": "" }, { "docid": "845c3ba9f84ae97da07d654439ebfe94", "score": "0.58921385", "text": "public static void knowYourPrimitives(){\n byte b = -100;\n\n //short is two 2 bytes (signed)\n short s = -9;\n\n //int is 4 bytes (signed)\n int i = -9;\n\n //long is 8 bytes long (singed)\n long l = -1000000000;\n\n //Char is 2 bytes long, unsigned\n char c = 101;\n System.out.println(c);\n }", "title": "" }, { "docid": "ebb863011860746ed2c32ee8f5eeda72", "score": "0.589039", "text": "public boolean isPrimitive() {\n return false;\n }", "title": "" }, { "docid": "a914e9ac4c7cc864da86044b3ea2e699", "score": "0.5888431", "text": "public boolean isPrimitive() {\n return false;\n }", "title": "" }, { "docid": "0e65fa611a68cab91be4eaa47b982099", "score": "0.5869485", "text": "public static void testingPrimitives() {\n\tint a = 71771;\n\tSystem.out.println(\"Int a is = \" + a + \".\");\n \n //Shorts are shorter than ints 32 Bytes => 16 bytes; Only useful if memory is a premium.\n\t//Max = 32767\n\t//Min = -32768\n short shot = 857;\n System.out.println(\"short = \" + shot + \".\");\n \n //a byte is a integer, but it is even shorter 8 bytes\n //Max 127 \n //Min -128\n byte bitter = 100;\n \n System.out.println(\"the byte a is = \" + bitter + \".\");\n \n //Longs are Larger than ints, but they are very compatible. When converting types like Shorts or ints, they will\n //be converted by the complier to match their required type. larger than expected ints will become longs.\n //Max 2^63 -1\n //Min -2^63\n \n long john = 99999999999999l;\n \n System.out.println(\"Long is = \" + john + \".\");\n \n /*\n * doubles and floats are types that allow a floating decimal point. Double is 64 bytes while float is 32 bytes.\n Doubles take more memory, but are considered to be more efficient. It is best practice to use doubles over floats.\n only use floats if you are key to save memory on the clients system (only older systems should require this.\n */\n double dub = 398080.809809809;\n //adding a \"d\" at the end of a double helps the system to ensure it counts it as a double.\n double dub2 = 398080.809809809d;\n \n System.out.println(\"Dub2 (double) a is = \" + dub2 + \". The 'd' at the end of the number does not print\");\n System.out.println(\"Dub (double) a is = \" + dub + \". There is no difference in terms of results for this instance\" +\n \"from not having 'd' behind the number\");\n \n //java wants this float type to be a double so you must declare at the end of the float \"f\" for it to remain a float.\n //even Java developers know that it is more efficient to use a double.\n float flow = 9999.9999f;\n float flow2 = 100f;\n \n System.out.println(\"Float flow is = \" + flow + \".\" \n +\" But it should have been 9999.9999 This number was auto converted to fit into a float\"+\n \t\t\"because it was declared as a floa. Here is one that hasn't been converted to an int or tranformed \" + flow2);\n \n \n //java.math.BigDecimal class should be used for currency\n //doubles are more precise than floats.\n \n \n //booleans are true false and store \n boolean japa = true;\n boolean foo = false;\n System.out.println(\"Is it illegal in Japan to drive or operate a bicycle while have ANY alcohol in your system? \" + japa + \".\");\n System.out.println(\"Do I really need to show you a boolean? \" + foo + \".\");\n \n //chars are a single character or unicode. Must be in ' not \"\n //It uses 16 bytes.\n char unicode = '\\u0090';\n char character = 'a';\n \n System.out.println(\"char character is = \" + character + \".\" + \"Char unicode outputs \" + unicode + \".\");\n \n //8 primitives Int, short, byte, long, double, float, boolean and char.\n // String is another data type. It is a actually an object, but it can be used similar to a primitive.\n //so strings are honorary primitives\n String name = \"Robert\";\n System.out.println(\"My name is = \" + name + \".\");\n //The quotes essentially surround the individual characters. Thus it essentially stores multiple chars and ints that\n //can be extracted, but\n \n \n\n\t}", "title": "" }, { "docid": "8901a8d9a7c040b79e3804610c00aaa4", "score": "0.58378935", "text": "public static void main(String[] args) {\n\t\tint numInt=10;//primitive data\n\t\tInteger numInteger=10;//wrapper class\n\t\t\n\t\tdouble numdouble=5.5;\n\t\tDouble numDouble=5.5;\n\t\t\n\t\tlong numlong=20l;\n\t\tLong numLong=numlong;//auto-boxing: converting primitive to wrapper class, \n\t\tSystem.out.println(numLong);\n\t\tSystem.out.println(numlong);\n\t\t\n\t\tBoolean Booleanresult=false;\n\t\tboolean booleanresult=Booleanresult;//Unboxing: converting wrapper class value to primitives\n\t\n\t\tint[] arr=new int[3]; //[0, 0, 0] primitive\n\t\t\n\t\tInteger[] arr1=new Integer[3]; //\n\t\tSystem.out.println(Arrays.toString(arr1));//[null, null, null] wrapper class\n\t\t\n\t\tint num1=10;\n\t\t//num1.method(); primitives does not have methods\n\t\t\n\t\tInteger num2=20;\n\t\tint num3= num2.SIZE;//yes\n\t\t\n\t\n\t}", "title": "" }, { "docid": "f8b6837951e02f718286759416ca503b", "score": "0.58185315", "text": "boolean isPrimitiveType();", "title": "" }, { "docid": "1232b6128787bf6ddabbad694510ae53", "score": "0.57633585", "text": "protected\n abstract\n T applyPrimitive(Type res, Protos.PrimitiveOp op, Object... args);", "title": "" }, { "docid": "f8946132225009a1be1f92f72f44d49c", "score": "0.5731888", "text": "public final JavaParser.primitiveType_return primitiveType() throws RecognitionException {\n JavaParser.primitiveType_return retval = new JavaParser.primitiveType_return();\n retval.start = input.LT(1);\n\n int primitiveType_StartIndex = input.index();\n\n CommonTree root_0 = null;\n\n Token set184=null;\n\n CommonTree set184_tree=null;\n\n try {\n if ( state.backtracking>0 && alreadyParsedRule(input, 49) ) { return retval; }\n\n // Java.g:874:5: ( BOOLEAN | CHAR | BYTE | SHORT | INT | LONG | FLOAT | DOUBLE )\n // Java.g:\n {\n root_0 = (CommonTree)adaptor.nil();\n\n\n set184=(Token)input.LT(1);\n\n if ( input.LA(1)==BOOLEAN||input.LA(1)==BYTE||input.LA(1)==CHAR||input.LA(1)==DOUBLE||input.LA(1)==FLOAT||input.LA(1)==INT||input.LA(1)==LONG||input.LA(1)==SHORT ) {\n input.consume();\n if ( state.backtracking==0 ) adaptor.addChild(root_0, \n (CommonTree)adaptor.create(set184)\n );\n state.errorRecovery=false;\n state.failed=false;\n }\n else {\n if (state.backtracking>0) {state.failed=true; return retval;}\n MismatchedSetException mse = new MismatchedSetException(null,input);\n throw mse;\n }\n\n\n }\n\n retval.stop = input.LT(-1);\n\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\n finally {\n \t// do for sure before leaving\n if ( state.backtracking>0 ) { memoize(input, 49, primitiveType_StartIndex); }\n\n }\n return retval;\n }", "title": "" }, { "docid": "8f01bb37109ee89501f380f206ff3f71", "score": "0.56978405", "text": "public static void main(String[] args) {\n Object a1 = 12;\n Object a2 = 126;\n System.out.println(a1 == a2);\n\n Integer i1 = 45;\n Integer i2 = 89;\n\n // Unboxing a1.intValue() + a2.intValue();\n int res = i1 - 23 * i2 + 45;\n\n\n }", "title": "" }, { "docid": "71d6cfb7df2c1db7777ca4390bcb61c2", "score": "0.5682792", "text": "int getValueTypeValue();", "title": "" }, { "docid": "6ed8fbed182017a0629cd98a60e4f8f7", "score": "0.5659129", "text": "abstract ValueType getTypeForm();", "title": "" }, { "docid": "8a32e300b337941e0bd98d270a883b43", "score": "0.56197727", "text": "TwitterPrimitiveTypeDeclaration createTwitterPrimitiveTypeDeclaration();", "title": "" }, { "docid": "7df0f1ad5d75fd505f30bb56bb3808af", "score": "0.5611826", "text": "public abstract GenericInteger integerValue() throws NotIntegerException;", "title": "" }, { "docid": "de8046c7df9ea15137cc46abdf17d849", "score": "0.55837184", "text": "public T caseIntType(IntType object)\r\n {\r\n return null;\r\n }", "title": "" }, { "docid": "dfadc227d080d511631e86f533f54ccf", "score": "0.5576917", "text": "protected void sequence_TypePrimitive(ISerializationContext context, TypePrimitive semanticObject) {\n\t\tif (errorAcceptor != null) {\n\t\t\tif (transientValues.isValueTransient(semanticObject, JavaRulePackage.Literals.TYPE_PRIMITIVE__TYPE_PRIMITIVE) == ValueTransient.YES)\n\t\t\t\terrorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, JavaRulePackage.Literals.TYPE_PRIMITIVE__TYPE_PRIMITIVE));\n\t\t}\n\t\tSequenceFeeder feeder = createSequencerFeeder(context, semanticObject);\n\t\tfeeder.accept(grammarAccess.getTypePrimitiveAccess().getTypePrimitivePrimitiveEnumRuleCall_1_0(), semanticObject.getTypePrimitive());\n\t\tfeeder.finish();\n\t}", "title": "" }, { "docid": "038b4b70c9367463986bed52acd9f8ea", "score": "0.55622303", "text": "private Object doPrimitiveCast(Type t, Object o, SyntacticElement elem) {\n\t\tClass c = getJavaClass(t);\n\n\t\t//Need to handle the case where casting a null - just return null\n\t\tif (c == null) {\n\t\t\treturn null;\n\t\t}\n\n\t\t//Need to have explicit conversions for the number types\n\t\t//As Double cannot be cast to Integer, and vice versa\n\t\tif (c.equals(Double.class)) {\n\t\t\tDouble d = 0.0;\n\n\t\t\tif (o instanceof Integer) {\n\t\t\t\td = ((Integer)o).doubleValue();\n\t\t\t\treturn d;\n\t\t\t}\n\n\t\t\telse if (o instanceof Double) {\n\t\t\t\td = (Double)o;\n\t\t\t\treturn d;\n\t\t\t}\n\n\t\t\telse {\n\t\t\t\t//Shouldn't happen, indicates a type failure\n\t\t\t\tinternalFailure(\"Casting error - cannot cast between types\", file.filename, elem);\n\t\t\t\treturn null;\n\t\t\t}\n\t\t}\n\n\t\telse if(c.equals(Integer.class)) {\n\n\t\t\t\tInteger i = 0;\n\n\t\t\t\tif (o instanceof Integer) {\n\t\t\t\t\ti = (Integer)o;\n\t\t\t\t\treturn i;\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\t//Shouldn't happen, indicates a type checking failure\n\t\t\t\t\tinternalFailure(\"Casting error - cannot cast between types\", file.filename, elem);\n\t\t\t\t\treturn null;\n\t\t\t\t}\n\t\t}\n\n\t\t//In all other cases, type checker should have paved the way for us\n\t\treturn c.cast(o);\n\t}", "title": "" }, { "docid": "37890e4b48c6191dbb6ada3095ba2743", "score": "0.5555012", "text": "IntType createIntType();", "title": "" }, { "docid": "8cf8b03c6122f20fd9b8aab18dfab9a7", "score": "0.55457556", "text": "private NbtType getPrimitiveType(Object primitive) {\n NbtType type = NBT_ENUM.get(NBT_CLASS.inverse().get(\n Primitives.unwrap(primitive.getClass())\n ));\n \n // Display the illegal value at least\n if (type == null)\n throw new IllegalArgumentException(String.format(\n \"Illegal type: %s (%s)\", primitive.getClass(), primitive));\n return type;\n }", "title": "" }, { "docid": "8be21576840a6fa67e342c73b4850f27", "score": "0.55426776", "text": "@Test\n public void testIsPrimitiveType() {\n String type = \"java/lang/Object\";\n boolean expResult = false;\n boolean result = TypeUtil.isPrimitiveType(type);\n assertEquals(\"Object is not primitive\", expResult, result);\n \n type = \"float\";\n expResult = true;\n result = TypeUtil.isPrimitiveType(type);\n assertEquals(\"float should be primitive\", expResult, result);\n \n type = \"int\";\n expResult = true;\n result = TypeUtil.isPrimitiveType(type);\n assertEquals(\"int should be primitive\", expResult, result);\n \n type = \"double\";\n expResult = true;\n result = TypeUtil.isPrimitiveType(type);\n assertEquals(\"double should be primitive\", expResult, result);\n \n type = \"boolean\";\n expResult = true;\n result = TypeUtil.isPrimitiveType(type);\n assertEquals(\"boolean should be primitive\", expResult, result);\n \n type = \"short\";\n expResult = true;\n result = TypeUtil.isPrimitiveType(type);\n assertEquals(\"short should be primitive\", expResult, result);\n \n type = \"long\";\n expResult = true;\n result = TypeUtil.isPrimitiveType(type);\n assertEquals(\"long should be primitive\", expResult, result);\n \n type = \"byte\";\n expResult = true;\n result = TypeUtil.isPrimitiveType(type);\n assertEquals(\"byte should be primitive\", expResult, result);\n \n type = \"char\";\n expResult = true;\n result = TypeUtil.isPrimitiveType(type);\n assertEquals(\"float should be primitive\", expResult, result);\n \n }", "title": "" }, { "docid": "136f40da5aefeee41df2f261bb965d92", "score": "0.5530295", "text": "public Type analyze(TypeAnalysis typing) { // Add, Sub, Mul, Div\n left.require(typing, Type.INT);\n right.require(typing, Type.INT);\n return type = Type.INT;\n }", "title": "" }, { "docid": "75826f3319bb92015330b9431da63af4", "score": "0.5508836", "text": "public boolean\tisInt ()\t{ return false; }", "title": "" }, { "docid": "21a030caeea734984718afe8996e09a5", "score": "0.5506132", "text": "public boolean isPrimitive() {\n\t\treturn (this instanceof Primitive);\n\t}", "title": "" }, { "docid": "e2df878fcb63f34ad46ec408842e3e41", "score": "0.5502525", "text": "@Override\n public Void visitPrimitiveType(PrimitiveTypeTree primitiveType, Builder builder) {\n builder.setKind(ExpressionKind.LITERAL);\n builder.setType(TypeFactory.make(primitiveType));\n return null;\n }", "title": "" }, { "docid": "a6c34513fe75394c3c75292d0eb874b4", "score": "0.54846936", "text": "public static void main(String[] args) {\n\t\tbyte b=5;\n\t\t// b.\n\t\tByte b1=5;\n\t\tSystem.out.println(b1.byteValue());\n\t\tSystem.out.println(b1.doubleValue());\n\t\tSystem.out.println(b1.equals(b));\n\t\tSystem.out.println(b);\n\t\tSystem.out.println(b1.hashCode());\n\t\tSystem.out.println(b1.intValue());\n\t\tSystem.out.println(b1.floatValue());\n\t\tSystem.out.println(b1.doubleValue());\n\t\tSystem.out.println(b1.toString());\n\t\tSystem.out.println(b1.longValue());\n\t\tSystem.out.println(b1.MAX_VALUE);\n\t\tSystem.out.println(b1.MIN_VALUE);\n\t\tSystem.out.println(Byte.MIN_VALUE);;\n\t\tSystem.out.println(Byte.MAX_VALUE);;;\n\t\tSystem.out.println(Integer.MIN_VALUE);\n\t\tSystem.out.println(Integer.MAX_VALUE);\n\t\t\n\t\tint a=5;\n\t\tInteger c=a;\n\t\t System.out.println(c.hashCode());\n\t\t \n\t\t/* Integer x=10;\n\t\t Integer y=20;\n\t\t System.out.println(a+b);*///--30\n\t\t \n\t\t Integer x=10;\n\t\t Integer y=20;\n\t\t System.out.println(\"x\"+\"y\t\");\n\t\t \n\t\t Integer x1=10;\n\t\t Integer y1=20;\n\t\t String s1=x1.toString();\n\t\t String s2=y1.toString();\n\t\t System.out.println(s1+s2);/// 1020\n\t\t String s3=\"123\";\n\t\t //System.out.println(s3.valueOf(b));\n\t\t System.out.println(s3+5);\n\t\t int z=Integer.parseInt(s3);\n\t\t System.out.println(z+5);\n\t}", "title": "" }, { "docid": "266a678bfa7d8dfb5592457cd3ed8e5e", "score": "0.5478237", "text": "public abstract JType unboxify();", "title": "" }, { "docid": "d5cfc656fb9fd5099635d99f00cd54a8", "score": "0.54560566", "text": "public void testJavaIntrinsicTypeCoercionFromNonJavaMetaFails()\n {\n }", "title": "" }, { "docid": "caafc9b70a942e4237d48556a2808f31", "score": "0.5454697", "text": "public boolean isPrimitiveKeywordTag(int tag) {\n switch( tag ) {\n case TagConstants.TYPETYPE:\n\treturn true;\n\n default:\n\treturn super.isPrimitiveKeywordTag(tag);\n }\n }", "title": "" }, { "docid": "272fb1593beb26847239d84aa507bd8d", "score": "0.5420388", "text": "abstract public Type value();", "title": "" }, { "docid": "ebf1c64cf600e694461e7fe6b3c603bf", "score": "0.5414962", "text": "Type unboxingConversion(Type t);", "title": "" }, { "docid": "c4832bb74373a294761cdae08db0c967", "score": "0.53921604", "text": "@SuppressWarnings(\"unused\")\n private static void assertAllTypeConversions(\n byte byteValue,\n char charValue,\n short shortValue,\n int integerValue,\n long longValue,\n float floatValue,\n double doubleValue) {\n assert getShort(byteValue) == (short) byteValue;\n assert getInt(byteValue) == (int) byteValue;\n assert getLong(byteValue) == (long) byteValue;\n assert getFloat(byteValue) == (float) byteValue;\n assert getDouble(byteValue) == (double) byteValue;\n\n // assert getByte(charValue) == (byte) charValue; // illegal\n // assert getShort(charValue) == (short) charValue; // illegal\n assert getInt(charValue) == (int) charValue;\n assert getLong(charValue) == (long) charValue;\n assert getFloat(charValue) == (float) charValue;\n assert getDouble(charValue) == (double) charValue;\n\n // assert getByte(shortValue) == (byte) shortValue; // illegal\n // assert getChar(shortValue) == (char) shortValue; // illegal\n assert getInt(shortValue) == (int) shortValue;\n assert getLong(shortValue) == (long) shortValue;\n assert getFloat(shortValue) == (float) shortValue;\n assert getDouble(shortValue) == (double) shortValue;\n\n // assert getByte(integerValue) == (byte) integerValue; // illegal\n // assert getChar(integerValue) == (char) integerValue; // illegal\n // assert getShort(integerValue) == (short) integerValue; // illegal\n assert getLong(integerValue) == (long) integerValue;\n assert getFloat(integerValue) == (float) integerValue;\n assert getDouble(integerValue) == (double) integerValue;\n\n // assert getByte(longValue) == (byte) longValue; // illegal\n // assert getChar(longValue) == (char) longValue; // illegal\n // assert getShort(longValue) == (short) longValue; // illegal\n // assert getInt(longValue) == (int) longValue; // illegal\n assert getFloat(longValue) == (float) longValue;\n assert getDouble(longValue) == (double) longValue;\n\n // assert getByte(floatValue) == (byte) floatValue; // illegal\n // assert getChar(floatValue) == (char) floatValue; // illegal\n // assert getShort(floatValue) == (short) floatValue; // illegal\n // assert getInt(floatValue) == (int) floatValue; // illegal\n // assert getLong(floatValue) == (long) floatValue; // illegal\n assert getDouble(floatValue) == (double) floatValue;\n\n // assert getByte(doubleValue) == (byte) doubleValue; // illegal\n // assert getChar(doubleValue) == (char) doubleValue; // illegal\n // assert getShort(doubleValue) == (short) doubleValue; // illegal\n // assert getInt(doubleValue) == (int) doubleValue; // illegal\n // assert getLong(doubleValue) == (long) doubleValue; // illegal\n // assert getFloat(doubleValue) == (float) doubleValue; // illegal\n\n // Do some of the same checks for NewInstance invocations.\n assert new IntValueHolder(byteValue).value == (int) byteValue;\n assert new IntValueHolder(charValue).value == (int) charValue;\n assert new IntValueHolder(shortValue).value == (int) shortValue;\n // assert new IntValueHolder(longValue).value == (int) longValue; // illegal\n // assert new IntValueHolder(floatValue).value == (int) floatValue; // illegal\n // assert new IntValueHolder(doubleValue).value == (int) doubleValue; // illegal\n\n assert new LongValueHolder(byteValue).value == (long) byteValue;\n assert new LongValueHolder(charValue).value == (long) charValue;\n assert new LongValueHolder(shortValue).value == (long) shortValue;\n // assert new LongValueHolder(intValue).value == (long) intValue; // illegal\n // assert new LongValueHolder(floatValue).value == (long) floatValue; // illegal\n // assert new LongValueHolder(doubleValue).value == (long) doubleValue; // illegal\n }", "title": "" }, { "docid": "73b3181aa30d2020757c391c3d399861", "score": "0.5365452", "text": "public abstract boolean isAnyInt();", "title": "" }, { "docid": "fa82c886f0abe56e957532ba7aefa19f", "score": "0.5365182", "text": "@Override\n public boolean isUnboxable() {\n return false;\n }", "title": "" }, { "docid": "5f751a2b5999fa3acfb4ceec736761da", "score": "0.5343613", "text": "@Test public void representationOfIntPrimitive() throws Exception {\n assertEquals(\"i:6100;\", representationOf(6100));\n assertEquals(\"i:-6100;\", representationOf(-6100));\n }", "title": "" }, { "docid": "75b8d3b8bddc197777a1c43784a3c01c", "score": "0.53415185", "text": "private <T> Class<?> getPrimitive(Class<T> type) {\n if (type == Boolean.class)\n return boolean.class;\n else if (type == Character.class)\n return char.class;\n else if (type == Byte.class)\n return byte.class;\n else if (type == Short.class)\n return short.class;\n else if (type == Integer.class)\n return int.class;\n else if (type == Long.class)\n return long.class;\n else if (type == Float.class)\n return float.class;\n else if (type == Double.class)\n return double.class;\n else if (type == Void.class)\n return void.class;\n else\n // Not a primitive\n return type;\n }", "title": "" }, { "docid": "e0cabdee4620c399fab9831b058b1a78", "score": "0.53262186", "text": "EffectFullPrimitive getValuePrimitive();", "title": "" }, { "docid": "3da5a54ad1667ab52cf802e67c35123d", "score": "0.5325149", "text": "boolean primitive(Object operand) {\n return operand.getClass().isPrimitive() ||\n Boolean.class.isAssignableFrom(operand.getClass())\n || String.class.isAssignableFrom(operand.getClass())\n || listVariable.getRawType().isAssignableFrom(operand.getClass())\n || mapVariable.getRawType().isAssignableFrom(operand.getClass());\n }", "title": "" }, { "docid": "51dae5af28ddb21f33de4418b75cc77f", "score": "0.5318974", "text": "public static void workingWithWrapperClasses() {\n\n\n int value1=5;\n // Boxing\n // Integer value2=new Integer(value1); -- Deprecated\n // Autoboxing - automatically the primitive type gets converted to its corresponding wrapper class(Boxed Primitives).\n Integer value3=value1;\n\n // Unboxing - unboxing from wrapper class to corresponding primitive type\n int value4=value3.intValue();\n // Auto-unboxing - automatically unboxing from wrapper class to corresponding primitive type\n int value5=value3;\n\n ArrayList<Integer> arrayList=new ArrayList<>();\n arrayList.add(1);\n arrayList.add(2);\n arrayList.add(3);\n\n // Numeric Promotion - If 2 data types then you basically take the larger datatype for implicit conversion.\n\n int intValue=20;\n float floatValue=20.5f;\n float addValue=intValue+floatValue;\n // typecasting = can lead to data loss and it is also called narrowing conversion\n int addValue1=(int)(intValue+floatValue); // Lost 0.5\n Printer.printMessage(\"Typecasting::\"+addValue1);\n float addValue2=(float)(intValue+floatValue); // Returns float - no data loss\n Printer.printMessage(\"Typecasting::\"+addValue2);\n }", "title": "" }, { "docid": "b3c9af8866d433060ffcb81abfac410a", "score": "0.5312754", "text": "public boolean isPrimitive() {\n\t\treturn isPrimitive;\r\n\t}", "title": "" }, { "docid": "7a187d695b09a3b919deeeecceeab8e5", "score": "0.5302317", "text": "@Override\n public void basicTypes(int anInt, long aLong, boolean aBoolean, float aFloat, double aDouble, String aString) throws RemoteException {\n\n }", "title": "" }, { "docid": "690f15ce601320f75f80f53c0742ac61", "score": "0.52967316", "text": "int getObjectTypeValue();", "title": "" }, { "docid": "4bd006f4ddacac89c5151acc6e670405", "score": "0.5278963", "text": "public static void main(String[] args) {\n int num1= 500;\n Integer num2=num1;\n Integer num3=234;\n\n //unboxing:object>primitive\n Double d1= new Double(100.5);\n double d2 =d1;\n\n double d3= new Double(345.3);\n\n\n\n }", "title": "" }, { "docid": "09128759a50bb868664e4d69b15383f2", "score": "0.5274642", "text": "int getTypeValue();", "title": "" }, { "docid": "09128759a50bb868664e4d69b15383f2", "score": "0.5274642", "text": "int getTypeValue();", "title": "" }, { "docid": "09128759a50bb868664e4d69b15383f2", "score": "0.5274642", "text": "int getTypeValue();", "title": "" }, { "docid": "09128759a50bb868664e4d69b15383f2", "score": "0.5274642", "text": "int getTypeValue();", "title": "" }, { "docid": "09128759a50bb868664e4d69b15383f2", "score": "0.5274642", "text": "int getTypeValue();", "title": "" }, { "docid": "09128759a50bb868664e4d69b15383f2", "score": "0.5274642", "text": "int getTypeValue();", "title": "" }, { "docid": "09128759a50bb868664e4d69b15383f2", "score": "0.5274642", "text": "int getTypeValue();", "title": "" }, { "docid": "09128759a50bb868664e4d69b15383f2", "score": "0.5274642", "text": "int getTypeValue();", "title": "" }, { "docid": "8dd0bd08c6fedcec3af722a5ac393efc", "score": "0.52707404", "text": "public PrimitiveDataTypeTest(String name) {\n\t\tsuper(name);\n\t}", "title": "" }, { "docid": "666c800df9b3279534d8406264c92fad", "score": "0.52687335", "text": "@Override\n public void visit(SimpleType node) {\n }", "title": "" }, { "docid": "85fed5779e3ac7faaf217ad068fb6614", "score": "0.5264856", "text": "@Override\n\t\t\tpublic DataType dataType() {\n\t\t\t\treturn DataTypes.IntegerType;\n\t\t\t}", "title": "" }, { "docid": "79db5802fe312193eaf311cfec6553d0", "score": "0.5253866", "text": "public PrimitiveType parsePrimitiveType(Lex l) {\n int tag;\n\n switch( l.ttype ) {\n case TagConstants.TYPETYPE: tag = TagConstants.TYPECODE; break;\n\n default: return super.parsePrimitiveType(l);\n }\n // get here => tag is defined\n \n int loc = l.startingLoc;\n l.getNextToken();\n return PrimitiveType.make( tag, loc );\n }", "title": "" }, { "docid": "ff1da9759fad4bfa215ccb1e8ef8792b", "score": "0.52425456", "text": "public void testXSDbasics() {\n String xsdIntURI = \"http://www.w3.org/2001/XMLSchema#int\";\n\n // Check int and basic equality processing\n Literal l1 = m.createTypedLiteral(42); // default map\n Literal l2 = m.createTypedLiteral(\"42\", XSDDatatype.XSDint);\n Literal l4 = m.createTypedLiteral(\"63\"); // default map\n\n assertSameValueAs(\"Default map failed\", l1, l2);\n assertEquals(\"Value wrong\", l1.getValue(), Integer.valueOf(42));\n assertEquals(\"class wrong\", l1.getValue().getClass(), Integer.class);\n assertEquals(\"Value accessor problem\", l1.getInt(), 42);\n assertEquals(\"wrong type name\", l2.getDatatypeURI(), xsdIntURI);\n assertEquals(\"wrong type\", l2.getDatatype(), XSDDatatype.XSDint);\n assertDiffer(\"Not value sensitive\", l1, l4);\n checkIllegalLiteral(\"zap\", XSDDatatype.XSDint);\n checkIllegalLiteral(\"42.1\", XSDDatatype.XSDint);\n\n Literal l5 = m.createTypedLiteral(\"42\", XSDDatatype.XSDnonNegativeInteger);\n assertSameValueAs(\"type coercion\", l2, l5);\n\n // Check float/double\n l1 = m.createTypedLiteral(42.42); // default map\n l2 = m.createTypedLiteral(\"42.42\", XSDDatatype.XSDfloat);\n Literal l3 = m.createTypedLiteral(\"42.42\", XSDDatatype.XSDdouble);\n\n assertEquals(\"class wrong\", l1.getValue().getClass(), Double.class);\n assertFloatEquals(\"value wrong\", ((Double)(l1.getValue())).floatValue(), 42.42);\n assertEquals(\"class wrong\", l2.getValue().getClass(), Float.class);\n assertFloatEquals(\"value wrong\", ((Float)(l2.getValue())).floatValue(), 42.42);\n assertFloatEquals(\"Value accessor problem\", l1.getFloat(), 42.42);\n assertEquals(\"wrong type\", l2.getDatatype(), XSDDatatype.XSDfloat);\n assertSameValueAs(\"equality fn\", l1, l3);\n\n // Minimal check on long, short, byte\n checkLegalLiteral(\"12345\", XSDDatatype.XSDlong, Integer.class, 12345 );\n checkLegalLiteral(\"-12345\", XSDDatatype.XSDlong, Integer.class, -12345 );\n checkIllegalLiteral(\"2.3\", XSDDatatype.XSDlong);\n\n checkLegalLiteral(\"1234\", XSDDatatype.XSDshort, Integer.class, (int) (short) 1234 );\n checkLegalLiteral(\"-1234\", XSDDatatype.XSDshort, Integer.class, (int) (short) -1234 );\n checkLegalLiteral(\"32767\", XSDDatatype.XSDshort, Integer.class, (int) (short) 32767 );\n checkLegalLiteral(\"-32768\", XSDDatatype.XSDshort, Integer.class, (int) (short) -32768 );\n checkIllegalLiteral(\"32769\", XSDDatatype.XSDshort);\n checkIllegalLiteral(\"2.3\", XSDDatatype.XSDshort);\n\n checkLegalLiteral(\"42\", XSDDatatype.XSDbyte, Integer.class, (int) (byte) 42 );\n checkLegalLiteral(\"-42\", XSDDatatype.XSDbyte, Integer.class, (int) (byte) -42 );\n checkLegalLiteral(\"127\", XSDDatatype.XSDbyte, Integer.class, (int) (byte) 127 );\n checkLegalLiteral(\"-128\", XSDDatatype.XSDbyte, Integer.class, (int) (byte) -128 );\n checkIllegalLiteral(\"32769\", XSDDatatype.XSDbyte);\n checkIllegalLiteral(\"128\", XSDDatatype.XSDbyte);\n checkIllegalLiteral(\"2.3\", XSDDatatype.XSDbyte);\n\n // Minimal check on unsigned normal types\n checkLegalLiteral(\"12345\", XSDDatatype.XSDunsignedLong, Integer.class, 12345 );\n checkLegalLiteral(\"+12345\", XSDDatatype.XSDunsignedLong, Integer.class, 12345 );\n checkLegalLiteral(\"9223372036854775808\", XSDDatatype.XSDunsignedLong, BigInteger.class, new BigInteger(\"9223372036854775808\"));\n checkIllegalLiteral(\"-12345\", XSDDatatype.XSDunsignedLong);\n\n checkLegalLiteral(\"12345\", XSDDatatype.XSDunsignedInt, Integer.class, 12345 );\n checkLegalLiteral(\"2147483648\", XSDDatatype.XSDunsignedInt, Long.class, 2147483648l );\n checkIllegalLiteral(\"-12345\", XSDDatatype.XSDunsignedInt);\n\n checkLegalLiteral(\"1234\", XSDDatatype.XSDunsignedShort, Integer.class, 1234 );\n checkLegalLiteral(\"32679\", XSDDatatype.XSDunsignedShort, Integer.class, 32679 );\n checkIllegalLiteral(\"-12345\", XSDDatatype.XSDunsignedShort);\n\n checkLegalLiteral(\"123\", XSDDatatype.XSDunsignedByte, Integer.class, (int) (short) 123 );\n checkLegalLiteral(\"129\", XSDDatatype.XSDunsignedByte, Integer.class, (int) (short) 129 );\n checkIllegalLiteral(\"-123\", XSDDatatype.XSDunsignedByte);\n\n // Minimal check on the big num types\n checkLegalLiteral(\"12345\", XSDDatatype.XSDinteger, Integer.class, 12345 );\n checkLegalLiteral(\"0\", XSDDatatype.XSDinteger, Integer.class, 0 );\n checkLegalLiteral(\"-12345\", XSDDatatype.XSDinteger, Integer.class, -12345 );\n checkLegalLiteral(\"9223372036854775808\", XSDDatatype.XSDinteger, BigInteger.class, new BigInteger(\"9223372036854775808\"));\n\n checkLegalLiteral(\"12345\", XSDDatatype.XSDpositiveInteger, Integer.class, 12345 );\n checkIllegalLiteral(\"0\", XSDDatatype.XSDpositiveInteger);\n checkIllegalLiteral(\"-12345\", XSDDatatype.XSDpositiveInteger);\n checkLegalLiteral(\"9223372036854775808\", XSDDatatype.XSDpositiveInteger, BigInteger.class, new BigInteger(\"9223372036854775808\"));\n\n checkLegalLiteral(\"12345\", XSDDatatype.XSDnonNegativeInteger, Integer.class, 12345 );\n checkLegalLiteral(\"0\", XSDDatatype.XSDnonNegativeInteger, Integer.class, 0 );\n checkIllegalLiteral(\"-12345\", XSDDatatype.XSDnonNegativeInteger);\n checkLegalLiteral(\"9223372036854775808\", XSDDatatype.XSDnonNegativeInteger, BigInteger.class, new BigInteger(\"9223372036854775808\"));\n\n checkLegalLiteral(\"-12345\", XSDDatatype.XSDnegativeInteger, Integer.class, -12345 );\n checkIllegalLiteral(\"0\", XSDDatatype.XSDnegativeInteger);\n checkIllegalLiteral(\"12345\", XSDDatatype.XSDnegativeInteger);\n checkLegalLiteral(\"-9223372036854775808\", XSDDatatype.XSDnegativeInteger, BigInteger.class, new BigInteger(\"-9223372036854775808\"));\n\n checkLegalLiteral(\"-12345\", XSDDatatype.XSDnonPositiveInteger, Integer.class, -12345 );\n checkLegalLiteral(\"0\", XSDDatatype.XSDnonPositiveInteger, Integer.class, 0 );\n checkIllegalLiteral(\"12345\", XSDDatatype.XSDnonPositiveInteger);\n checkLegalLiteral(\"-9223372036854775808\", XSDDatatype.XSDnonPositiveInteger, BigInteger.class, new BigInteger(\"-9223372036854775808\"));\n\n checkLegalLiteral(\"12345\", XSDDatatype.XSDdecimal, Integer.class, Integer.valueOf(\"12345\"));\n checkLegalLiteral(\"0.0\", XSDDatatype.XSDdecimal, Integer.class, Integer.valueOf(\"0\"));\n checkLegalLiteral(\"42.45\", XSDDatatype.XSDdecimal, BigDecimal.class, new BigDecimal(\"42.45\"));\n checkLegalLiteral(\"9223372036854775808.1234\", XSDDatatype.XSDdecimal, BigDecimal.class, new BigDecimal(\"9223372036854775808.1234\"));\n checkLegalLiteral(\"123.4\", XSDDatatype.XSDdecimal, BigDecimal.class, new BigDecimal(\"123.4\"));\n checkIllegalLiteral(\"123,4\", XSDDatatype.XSDdecimal);\n\n // Booleans\n checkLegalLiteral(\"true\", XSDDatatype.XSDboolean, Boolean.class, true );\n checkLegalLiteral(\"false\", XSDDatatype.XSDboolean, Boolean.class, false );\n l1 = m.createTypedLiteral(true);\n assertEquals(\"boolean mapping\", XSDDatatype.XSDboolean, l1.getDatatype());\n\n // String types\n checkLegalLiteral(\"hello world\", XSDDatatype.XSDstring, String.class, \"hello world\");\n l1 = m.createTypedLiteral(\"foo bar\");\n assertEquals(\"string mapping\", XSDDatatype.XSDstring, l1.getDatatype());\n\n }", "title": "" }, { "docid": "bfd862efda3ddb33aaa007f14702132a", "score": "0.52347934", "text": "public static void main(String[] args) {\r\n\t\t// TODO Auto-generated method stub\r\n\r\n\t\tbyte b=10;\r\n\t\t\r\n\t\tint i=b; //will accept - automatic type promotion\r\n\t\t\r\n\t\tbyte c=i; //will not accept - because lower type cannot be used into higher type\r\n\t\t\t\t\r\n\t\tbyte d=(byte)i; //type casting makes it possible to store compatible types.\r\n\t\t\r\n\t\tbyte x=10;\r\n\t\tbyte y=20;\r\n\t\t\r\n\t\tbyte sum=x*y; //error is thrown when two bytes are used in an arithmetic operation, the result will bw nteger.\r\n\t\t\r\n\t}", "title": "" }, { "docid": "145df7012d441fa23e1297a069aba097", "score": "0.5227618", "text": "public boolean narrowTypes() {\n return false;\n }", "title": "" }, { "docid": "d0fe2e15becef0207cf605b55f940055", "score": "0.52267534", "text": "public static void main(String[] args) {\n\n\n int a = 10;\n long b = a;// implicit casting is done autamatically\n // b = 10L;\n // int c = b; // b is still long dataType thats why wrong\n int a1 = 100;\n long b1 = (long) a1; // manually doing the implicit casting\n // int c1 = b1;\n System.out.println(\"=====================================\");\n // Explicit Casting: Larger primitives to smaller size\n\n int Inum = 100;\n byte Bnum = (byte) Inum;\n\n short Snum = (short) Inum;\n\n double Dnum = 5.5;\n float Fnum = (float) Dnum;// we can use float,long, int,short,byte = 5.5\n // float Fnum = (int)Dnum; // 5.0\n\n System.out.println(Fnum);\n\n double D1 = 10.5;\n // long L1= (float)D1 !! compile error\n // long L1 = (long) ( (float)D1); you can use\n // long L1 = (float)D1; !! comple error\n\n long L1 = (int) D1;\n System.out.println(L1); //10\n\n float F1 = 60.5f;\n int I1 = (int) F1; //preferred\n System.out.println(I1);//60\n\n long largerNum = 99999999999L;\n\n int intNum = (int) largerNum;\n System.out.println(intNum);// it gives different number because 9999999 is out of int' range\n\n char ch1 = 'a';\n short sh1 = (short) ch1;\n System.out.println(sh1);// you can get number 97 is corresponding number for a\n\n char ch2 = 23456;\n double dbl1 = ch2;\n System.out.println(dbl1); //23456.0\n\n int z1 = 10;\n double tb1 = z1; //10\n short y1 = (short) z1;\n\n\n float f1 = (long) a1;\n long l1 = (long)f1;\n System.out.println(l1);\n\n String name;\n // System.out.println(name);// local variables cannot be used without initilazing\n // name = \"Cybertek\"; // in java : first come first serve\n \n\n\n\n\n\n }", "title": "" }, { "docid": "b115b68696b5431a612f01246840cbd6", "score": "0.52266353", "text": "public interface IPrimitiveTypeName extends ITypeName, IAstToken {\n}", "title": "" }, { "docid": "1c19ea15a8dc8e021256d569e4a54454", "score": "0.52248377", "text": "public void testGenericClass_Integer() throws NotFoundException {\n TypeOracle oracle = moduleContext.getOracle();\n JGenericType genericType = getGenericTestType();\n JClassType type = oracle.getParameterizedType(genericType,\n new JClassType[]{integerType});\n JParameterizedType parameterizedType = type.isParameterized();\n\n validateTypeSubstitution(genericType, parameterizedType,\n new ParameterizedSubstitution(parameterizedType));\n }", "title": "" }, { "docid": "e096506e3b1b8e33834252137056aa9c", "score": "0.52141017", "text": "protected void sequence_PrimitiveType(ISerializationContext context, PrimitiveType semanticObject) {\n\t\tif (errorAcceptor != null) {\n\t\t\tif (transientValues.isValueTransient(semanticObject, AeditPackage.Literals.PRIMITIVE_TYPE__TARGET) == ValueTransient.YES)\n\t\t\t\terrorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, AeditPackage.Literals.PRIMITIVE_TYPE__TARGET));\n\t\t}\n\t\tSequenceFeeder feeder = createSequencerFeeder(context, semanticObject);\n\t\tfeeder.accept(grammarAccess.getPrimitiveTypeAccess().getTargetVARIABLE_TYPEParserRuleCall_0(), semanticObject.getTarget());\n\t\tfeeder.finish();\n\t}", "title": "" }, { "docid": "f4cbdebd3acccc8d99fba667303b1062", "score": "0.521012", "text": "public static void main (String[] args) \r\n {\n Integer i = new Integer(10); \r\n \r\n // unboxing the Object \r\n int i1 = i; \r\n \r\n System.out.println(\"Value of i: \" + i); \r\n System.out.println(\"Value of i1: \" + i1); \r\n \r\n //Autoboxing of char \r\n Character gfg = 'a'; \r\n \r\n // Auto-unboxing of Character \r\n char ch = gfg; \r\n System.out.println(\"Value of ch: \" + ch); \r\n System.out.println(\"Value of gfg: \" + gfg); \r\n \r\n }", "title": "" }, { "docid": "4124f44ddf5acb6876ff7cb6e600f2f9", "score": "0.5175615", "text": "public static Class getPrimitiveType (Class c) {\n if (!c.isPrimitive ()) return c;\n if (c == Integer.class) return Integer.TYPE;\n if (c == Boolean.class) return Boolean.TYPE;\n if (c == Byte.class) return Byte.TYPE;\n if (c == Character.class) return Character.TYPE;\n if (c == Double.class) return Double.TYPE;\n if (c == Float.class) return Float.TYPE;\n if (c == Long.class) return Long.TYPE;\n if (c == Short.class) return Short.TYPE;\n throw new IllegalArgumentException ();\n }", "title": "" }, { "docid": "c2eb6de22335a66bcb60302f478d7afa", "score": "0.5171485", "text": "public T caseScalarType(ScalarType object)\r\n {\r\n return null;\r\n }", "title": "" }, { "docid": "83c0e13c26d3655e09cd715ac6cf9729", "score": "0.5161469", "text": "public static void main(String[] args) {\n\t\tint i = 10; // Primitive Type\n\t\t\n\t\t// Integer Object\n\t\t//Integer iRef = new Integer(10); // Reference Type to represent Integer\n\t\t\n\t\t// Converting Primitive to Integer Object\n\t\t// BOXING\n\t\tInteger iRef = new Integer(i); // Reference Type to represent Integer\n\t\t\n\t\t// Extract Primitive from Reference Type Integer Object\n\t\t// UNBXOING\n\t\tint j = iRef.intValue(); // Get the int value\n\t\t\n\t\tchar ch = 'A';\n\t\tCharacter cRef = new Character(ch);\t// Boxing\n\t\tchar ch1 = cRef.charValue();\n\t\t\n\t\tdouble d = 2.2;\n\t\tDouble dRef = new Double(d);\t\t// Boxing\n\t\tdouble e = dRef.doubleValue();\n\t\t\n\t\t// AUTO-BOXING\n\t\tInteger iRef1 = i; // gets converted by compiler as Integer iRef1 = new Integer(i);\n\t\t\n\t\t// AUTO-UNBOXING\n\t\tint k = iRef1; // gets converted by compiler as Integer int k = iRef1.intValue();\n\t\t\n\t\t// RTP on Wrapper Classes :)\n\t\tObject o = new Integer(10);\n\t\to = new Double(2.2);\n\t\to = new Character('A');\n\t\t\t\t\n\n\t}", "title": "" }, { "docid": "824f9b5360ce34ee6d868f6217f4822c", "score": "0.5159793", "text": "void visit(IntegerType node);", "title": "" }, { "docid": "0aaf15db5fd8c6eb21f050d6e85dc36b", "score": "0.51593715", "text": "public interface SubtypingRepresentatives {\n @NotNull\n KotlinType getSubTypeRepresentative();\n\n @NotNull\n KotlinType getSuperTypeRepresentative();\n\n boolean sameTypeConstructor(@NotNull KotlinType kotlinType);\n}", "title": "" }, { "docid": "f31fa6a64d12433e76fb5ada85021ff4", "score": "0.51349515", "text": "@Test\n public void areSameType_IntToIntInUnion_ReturnsTrue() {\n ITypeSymbol actual = intType;\n ITypeSymbol formal = createUnionTypeSymbol(intType);\n\n ITypeHelper typeHelper = createTypeHelperAndInit();\n boolean result = typeHelper.areSame(actual, formal);\n\n assertThat(result, is(true));\n }", "title": "" }, { "docid": "a0483b0e3211e668cec949db05c278e2", "score": "0.5125603", "text": "private void set_primitive(int typecode, Object val) {\n SchemaType[] members = _schemaType.getUnionConstituentTypes();\n assert (members != null);\n\n boolean pushed = false;\n if (has_store()) {\n NamespaceContext.push(new NamespaceContext(get_store()));\n pushed = true;\n }\n try {\n for (boolean validate = true; validate || !_validateOnSet(); validate = false) {\n for (SchemaType member : members) {\n // candidates must be a logical match for the desired typecode\n if (logical_overlap(member, typecode)) {\n XmlAnySimpleType newval;\n\n try {\n newval = ((SchemaTypeImpl) member).newValue(val, validate);\n } catch (XmlValueOutOfRangeException ignored) {\n // doesn't match this type even though logical categories\n // line up (probably because of restriciton); try the next type.\n continue;\n } catch (Exception e) {\n assert (false) : \"Unexpected \" + e;\n continue;\n }\n\n /* TODO: rethink this - disabling for now.\n\n // OK, now we've got a newval... We have to verify\n // that lexically it doesn't overlap with previous types\n\n String newvaltext = null;\n\n inner: for (int j = 0; j < i; j++)\n {\n if (members[j].getSimpleVariety() == SchemaType.LIST ||\n lexical_overlap(members[j].getPrimitiveType().getBuiltinTypeCode(),\n newval.schemaType().getPrimitiveType().getBuiltinTypeCode()))\n {\n // there is a preceding type that may lexically overlap with ours...\n // if it lexically contains the string representation of our new\n // proposed value, then it's impossible for the union to have our\n // logical value (because it would have been masked) and throw an\n // error.\n if (newvaltext == null)\n newvaltext = newval.stringValue();\n try\n {\n // discard return value\n members[i].newValue(newvaltext);\n\n // oh bad, we succeeded. Our instance lexically looks like a\n // previous type, and this isn't a valid value. Keep on hunting.\n continue outer;\n }\n catch (XmlValueOutOfRangeException e)\n {\n // this is good: this error means that our value doesn't look like\n // the other type.\n continue inner;\n }\n }\n }\n\n */\n\n // No lexical masking: we're OK\n _value = newval;\n _textvalue = _value.getStringValue();\n return;\n }\n }\n if (!validate) {\n break;\n }\n }\n } finally {\n if (pushed) {\n NamespaceContext.pop();\n }\n }\n\n // doesn't match any of the members; throw\n throw new XmlValueOutOfRangeException(XmlErrorCodes.DATATYPE_VALID$UNION,\n new Object[]{val.toString(), QNameHelper.readable(_schemaType)});\n }", "title": "" }, { "docid": "b53a7176c43aa178214c4754cd195bd1", "score": "0.5120819", "text": "public static void main(String[] args) {\n byte byteNumber = 100;//can store max from -128 to 127\n short shortNumber = 1000;//can store numbers from 32768 up to 65535\n int number = 10;//can store up to 2 billion\n long longNumbers = 1367567576576578L;\n double numberWithDecimalPoints = 10.5;\n char characters = 'A';\n boolean flags = true;\n\n String stringNumber = \"10\";\n int convertedNumber = Integer.parseInt(stringNumber);\n\n System.out.println(convertedNumber*2);\n Byte nonPrimitiveByteNumber = 100;\n Short nonPrimitiveShortNumber = 1000;//can store numbers from 32768 up to 65535\n Integer nonPrimitiveNumber = 10;//can store up to 2 billion\n Integer.parseInt(\"10\");\n Long nonPrimitiveLongNumbers = 1367567576576578L;\n Double nonPrimitiveNumberWithDecimalPoints = 10.5;\n Character nonPrimitiveCharacters = 'A';\n Boolean nonPrimitiveFlags = true;\n\n int primitiveInt = 10;\n Integer nonPrimitiveInteger = primitiveInt;\n nonPrimitiveInteger.toString();\n primitiveInt = nonPrimitiveInteger;\n System.out.println(nonPrimitiveInteger.doubleValue());\n\n\n }", "title": "" }, { "docid": "53256e0ca118888eca90f17cf337207d", "score": "0.5117865", "text": "@Test\n public void areSameType_IntInUnionToInt_ReturnsTrue() {\n ITypeSymbol actual = createUnionTypeSymbol(intType);\n ITypeSymbol formal = intType;\n\n ITypeHelper typeHelper = createTypeHelperAndInit();\n boolean result = typeHelper.areSame(actual, formal);\n\n assertThat(result, is(true));\n }", "title": "" }, { "docid": "b9dbb14ea885dc242f48967753ae62a0", "score": "0.51177704", "text": "public static void main(String[] args) {\n\t\tInteger bu = new Integer(1);\n\t\tInteger ub = new Integer(\"23\");\n\t\tSystem.out.println(bu+\" e \"+ub);\n\t\tSystem.out.println(bu.byteValue());\n\t\tSystem.out.println(bu.doubleValue());\n\t\tSystem.out.println(bu.intValue());\n\t\tSystem.out.println(bu.longValue());\n\t\tSystem.out.println(bu.shortValue());\n\t\tSystem.out.println(bu.floatValue());\n\t\t\n\t\tBoolean boop = new Boolean(true);\n\t\tBoolean poob = new Boolean(\"false\");\n\t\tSystem.out.println(boop+\" e \"+poob);\n\t\tSystem.out.println(boop.booleanValue());\n\t\t\n\t\tByte bi = new Byte((byte)3);\n\t\tByte ib = new Byte(\"-3\");\n\t\tSystem.out.println(bi+\" e \"+ib);\n\t\tSystem.out.println(bi.byteValue());\n\t\tSystem.out.println(bi.doubleValue());\n\n\t\tSystem.out.println(bi.intValue());\n\t\tSystem.out.println(bi.longValue());\n\t\tSystem.out.println(bi.shortValue());\n\t\tSystem.out.println(bi.floatValue());\n\t\t\n\t\tCharacter letra = new Character('c');\n\t\tSystem.out.println(letra);\n\t\tSystem.out.println(letra.charValue());\n\n\t\tDouble trouble = new Double(3.4);\n\t\tDouble elbuort = new Double(\"4.3\");\n\t\tSystem.out.println(trouble+\" e \"+elbuort);\n\t\tSystem.out.println(trouble.byteValue());\n\t\tSystem.out.println(trouble.doubleValue());\n\t\tSystem.out.println(trouble.intValue());\n\t\tSystem.out.println(trouble.longValue());\n\t\tSystem.out.println(trouble.shortValue());\n\t\tSystem.out.println(trouble.floatValue());\n\t\t\n\t\tFloat weAll = new Float(7.47F);\n\t\tFloat llAew = new Float(\"4.74\");\n\t\tSystem.out.println(weAll+\" e \"+llAew);\n\t\tSystem.out.println(weAll.byteValue());\n\t\tSystem.out.println(weAll.doubleValue());\n\t\tSystem.out.println(weAll.intValue());\n\t\tSystem.out.println(weAll.longValue());\n\t\tSystem.out.println(weAll.shortValue());\n\t\tSystem.out.println(weAll.floatValue());\n\t\t\n\t\tLong johnson = new Long(1337L);\n\t\tLong nosnhoj = new Long(\"50135\");\n\t\tSystem.out.println(johnson+\" e \"+nosnhoj);\n\t\tSystem.out.println(johnson.byteValue());\n\t\tSystem.out.println(johnson.doubleValue());\n\t\tSystem.out.println(johnson.intValue());\n\t\tSystem.out.println(johnson.longValue());\n\t\tSystem.out.println(johnson.shortValue());\n\t\tSystem.out.println(johnson.floatValue());\n\t\t\n\t\tShort cake = new Short((short) 21);\n\t\tShort ekac = new Short(\"12\");\n\t\tSystem.out.println(cake+\" e \"+ekac);\n\t\tSystem.out.println(cake.byteValue());\n\t\tSystem.out.println(cake.doubleValue());\n\t\tSystem.out.println(cake.intValue());\n\t\tSystem.out.println(cake.longValue());\n\t\tSystem.out.println(cake.shortValue());\n\t\tSystem.out.println(cake.floatValue());\n\t\t\t\n\t}", "title": "" }, { "docid": "57991c84bb4349180519a63cd51d3ba9", "score": "0.51161623", "text": "@Test\n\tpublic void testErasureCast() {\n\t\t@SuppressWarnings(\"rawtypes\")\n\t\tList rawList = stringList;\n\t\t@SuppressWarnings(\"unchecked\")\n\t\tList<Integer> integerList = rawList;\n\t\tAssert.assertNotNull(integerList);\n\t}", "title": "" }, { "docid": "c0214545f41d344e7b40fd529c5b691c", "score": "0.5115834", "text": "public List<Number> subtyped(List<? extends Number> arr) {\n\t\tList<Number> list = new ArrayList<Number>();\n\t\tfor (Number elt : arr)\n\t\t\tlist.add(elt);\n\t\treturn list;\n\t}", "title": "" }, { "docid": "3d00d8a9032c5ae5b43c486354c1082a", "score": "0.51082444", "text": "@CheckReturnValue\n ValueType<D> valueType();", "title": "" }, { "docid": "e432da57514abbe93321779e0ec2d494", "score": "0.5093815", "text": "public static void byteTypeOverview() {\n\t\tSystem.out.println(\"----------------BYTE TYPE OVERWIEV------------------\");\n\n\t\tSystem.out.println(\"Min:\" + Byte.MIN_VALUE + \" Max:\" + Byte.MAX_VALUE);\n\n\t\tbyte byteType = 0;\n\n\t\tSystem.out.println(\"Value: \" + byteType);\n\t\tbyteType = (byte) (Byte.MAX_VALUE + 1);\n\n\t\tSystem.out.println(\"Max value of byte + 1 is:\" + byteType);\n\n\t\tbyteType = (byte) (Byte.MIN_VALUE - 1);\n\t\tSystem.out.println(\"Min value of byte - 1 is:\" + byteType);\n\n\t\tint intType = 1000;\n\t\tbyteType = (byte) intType;\n\t\tSystem.out.println(\"Int type stores:\" + intType);\n\t\tSystem.out.println(\"But int type as byte type is:\" + byteType);\n\t\tSystem.out.println(\"Why? \" + Byte.MIN_VALUE + \"(Min) need to by 0 by \" + Byte.MIN_VALUE + \" + \"\n\t\t\t\t+ (-Byte.MIN_VALUE) + \" and \" + Byte.MAX_VALUE + \"(Max) need to by shifted to \" + Byte.MAX_VALUE + \" + \"\n\t\t\t\t+ (-Byte.MIN_VALUE) + \" to \" + (Byte.MAX_VALUE + (-Byte.MIN_VALUE)));\n\t\tSystem.out.println(\"Now we have [0,\" + (Byte.MAX_VALUE + (-Byte.MIN_VALUE)) + \") so 256 is 0 in this circle.\");\n\t\tSystem.out.println(\"So wee need to shift \" + intType + \" with \" + (-Byte.MIN_VALUE));\n\t\tintType = intType + (-Byte.MIN_VALUE);\n\t\tSystem.out.println(\"Now we have intType:\" + intType);\n\t\tSystem.out.println(\"We need to do \" + intType + \" mod 256 and is:\" + (intType % 256));\n\t\tSystem.out.println(\"And do \" + Byte.MIN_VALUE + \" + \" + (intType % 256) + \" and it is:\"\n\t\t\t\t+ (Byte.MIN_VALUE + (intType % 256)));\n\n\t}", "title": "" }, { "docid": "514ca8f0a8b7b6d7a431270aebad8a68", "score": "0.5091726", "text": "@Test\n public void testPrimitives()\n throws Exception {\n final PrimitivesBean instance = newInstance(builder.<PrimitivesBean>newClass(PrimitivesBean.class));\n final IntrospectionDescriptor<PrimitivesBean> descriptor = introspector.getDescriptor(PrimitivesBean.class);\n\n /* Show off what we've got */\n descriptor.describe(System.err);\n\n /* Start simple: booleans! */\n final IntrospectedProperty<PrimitivesBean> booleanProperty = descriptor.getProperty(\"booleanValue\");\n assertFalse(booleanProperty.read(instance, Boolean.class)); // initially false\n booleanProperty.write(instance, \" tRUe \"); // some space, mixed case...\n assertTrue(booleanProperty.read(instance, Boolean.class));\n booleanProperty.write(instance, \" false \" ); // write false, get string\n assertEquals(booleanProperty.read(instance, String.class), \"false\");\n booleanProperty.write(instance, true); // write false, get string\n assertEquals(booleanProperty.read(instance, String.class), \"true\");\n\n /* Array of numbers to iterate on */\n final Number[] values = new Number[] { new Byte((byte)-12),\n new Short((short) 789),\n new Integer(68438239),\n new Long(32905954670929L),\n new Float(645986754.123),\n new Double(893475348.905678D) };\n\n /* All the number properties (also have \"char\" and \"boolean\" there) */\n final String[] propertyNames = new String[] { \"byteValue\",\n \"shortValue\",\n \"intValue\",\n \"longValue\",\n \"floatValue\",\n \"doubleValue\" };\n\n /* Loop! */\n for (String propertyName: propertyNames) {\n final IntrospectedProperty<PrimitivesBean> property = descriptor.getProperty(propertyName);\n assertEquals(propertyName, property.getName());\n\n /* Initial value should *ALWAYS* be zero */\n assertEquals(property.read(instance, Number.class).intValue(), 0);\n\n /* Go for the numbers */\n for (Number number: values) {\n\n /* We'll loose precision, need to convert the number */\n final Number converted;\n switch (propertyName) {\n case \"byteValue\" : converted = new Byte (number.byteValue()) ; break;\n case \"shortValue\" : converted = new Short (number.shortValue()) ; break;\n case \"intValue\" : converted = new Integer(number.intValue()) ; break;\n case \"longValue\" : converted = new Long (number.longValue()) ; break;\n case \"floatValue\" : converted = new Float (number.floatValue()) ; break;\n case \"doubleValue\": converted = new Double (number.doubleValue()) ; break;\n default: throw new IllegalStateException(\"Wrong property \" + propertyName);\n }\n\n /* First with numbers! */\n property.write(instance, number);\n try {\n assertEquals(property.read(instance, Byte.class), new Byte (converted.byteValue()), \"to byte\");\n assertEquals(property.read(instance, Short.class), new Short (converted.shortValue()), \"to short\");\n assertEquals(property.read(instance, Integer.class), new Integer(converted.intValue()), \"to int\");\n assertEquals(property.read(instance, Long.class), new Long (converted.longValue()), \"to long\");\n assertEquals(property.read(instance, Float.class), new Float (converted.floatValue()), \"to float\");\n assertEquals(property.read(instance, Double.class), new Double (converted.doubleValue()), \"to double\");\n\n } catch (AssertionError error) {\n fail(\"Processing conversion from \" + number.getClass().getSimpleName() + \": \" + number + \" (converted=\" + converted + \") \" + error.getMessage(), error);\n }\n\n /* Then with strings, we write the \"converted\" value as we only parse long or double when writing */\n property.write(instance, converted.toString());\n try {\n assertEquals(property.read(instance, Byte.class), new Byte (converted.byteValue()), \"to byte\");\n assertEquals(property.read(instance, Short.class), new Short (converted.shortValue()), \"to short\");\n assertEquals(property.read(instance, Integer.class), new Integer(converted.intValue()), \"to int\");\n assertEquals(property.read(instance, Long.class), new Long (converted.longValue()), \"to long\");\n assertEquals(property.read(instance, Float.class), new Float (converted.floatValue()), \"to float\");\n assertEquals(property.read(instance, Double.class), new Double (converted.doubleValue()), \"to double\");\n\n } catch (AssertionError error) {\n fail(\"Processing conversion from String representation of \" + converted.getClass().getSimpleName() + \": \" + number + \" (converted=\" + converted + \") \" + error.getMessage(), error);\n }\n }\n }\n }", "title": "" }, { "docid": "c96b8c120dccd76c5e33e7a10200f92d", "score": "0.5088514", "text": "public int getPrimitiveCount() {\n return _myPrimitiveCount;\n }", "title": "" }, { "docid": "dd2e8e798ad5d45d93c3fc3c236578e4", "score": "0.5076751", "text": "public PrimitiveCollection(AbstractPrimitiveType type, TransferObject parent, TypeNode typeNode) {\r\n\t\tsuper(parent, typeNode, typeNode.id());\r\n\t\tthis.type = type;\r\n\t}", "title": "" }, { "docid": "bb0b23c49f4d787e8175028e743f849d", "score": "0.5072639", "text": "public static void main(String[] args)\n throws ClassNotFoundException, NoSuchMethodException, IllegalAccessException,\n InvocationTargetException, NoSuchFieldException {\n SubClass sub = new SubClass();\n Field subf = Reflection.class.getDeclaredField(\"goodString\");\n System.out.println(subf.get(sub));\n\n Reflection obj = new Reflection();\n Class<Reflection> c = Reflection.class;\n\n // test the ability to reflectively get constants, which are usually baked\n // in to bytecodes by the compiler\n Field f = c.getField(\"constValue\");\n System.out.println(f.get(null));\n Field f2 = c.getField(\"constInt\");\n System.out.println(f2.get(null));\n Field f3 = c.getField(\"constFloat\");\n System.out.println(f3.get(null));\n Field f4 = c.getField(\"constDouble\");\n System.out.println(f4.get(null));\n Field f5 = c.getField(\"constLong\");\n System.out.println(f5.get(null));\n Field f6 = c.getField(\"constShort\");\n System.out.println(f6.get(null));\n Field f7 = c.getField(\"constBool\");\n System.out.println(f7.get(null));\n\n Method bytecodeMethod = c.getClass().getMethod(\"toString\");\n Method nativeMethod = c.getClass().getMethod(\"isArray\");\n Method nativeMethodWithArgs = c.getClass().getMethod(\"isInstance\", Object.class);\n Method unboxingMethod = c.getMethod(\"add\", long.class, long.class);\n Method boxingMethod = c.getMethod(\"add\", Long.class, Long.class);\n Method voidMethod = c.getMethod(\"foo\");\n // regular method reflected invocation\n System.out.println(\"toString: \" + bytecodeMethod.invoke(c));\n // native method reflected invocation\n System.out.println(\"is array? \" + nativeMethod.invoke(c));\n // native method reflected invocation with parameters\n System.out.println(\"is instance? \" + nativeMethodWithArgs.invoke(c, obj));\n // unboxing has to be handled specially by our native method invoker\n Long a = new Long(40L);\n Long b = new Long(2L);\n System.out.println(\"unboxing: \" + unboxingMethod.invoke(null, a, b));\n // boxing is handled by javac\n System.out.println(\"boxing: \" + boxingMethod.invoke(null, 1300L, 37L));\n // void return values\n System.out.println(\"void return: \" + voidMethod.invoke(null));\n }", "title": "" }, { "docid": "b8b8fb3fe9cef29bb60a49ffac3287d3", "score": "0.50693655", "text": "@Override\r\n public void visitDerivedDatatype(DerivedDatatype datatype) {\n }", "title": "" }, { "docid": "c7229512108d3b82ada4717e44604970", "score": "0.5068107", "text": "public interface Type<T> {\n\t/**\n\t * Convenient access to an instance representing {@code java.lang.String}.\n\t */\n\tpublic final static Type<String> STRING = new StringType();\n\n\n\t/**\n\t * Convenient access to an instance representing {@code java.lang.Boolean}.\n\t */\n\tpublic final static Type<Boolean> BOOLEAN = new BooleanType();\n\n\n\t/**\n\t * Convenient access to an instance representing {@code java.lang.Integer}.\n\t */\n\tpublic final static Type<Integer> INTEGER = new IntegerType();\n\n\n\t/**\n\t * Convenient access to an instance representing {@code java.lang.Long}.\n\t */\n\tpublic final static Type<Long> LONG = new LongType();\n\n\n\t/**\n\t * Convenient access to an instance representing {@code java.lang.Float}.\n\t */\n\tpublic final static Type<Float> FLOAT = new FloatType();\n\n\n\t/**\n\t * Convenient access to an instance representing {@code java.lang.Double}.\n\t */\n\tpublic final static Type<Double> DOUBLE = new DoubleType();\n\n\n\t/**\n\t * Convenient access to an instance representing {@code java.time.LocalDate} (for {@code java.sql.Date} types).\n\t */\n\tpublic final static Type<LocalDate> DATE = new DateType();\n\n\n\t/**\n\t * Convenient access to an instance representing {@code java.time.LocalTime} (for {@code java.sql.Time} types).\n\t */\n\tpublic final static Type<LocalTime> TIME = new TimeType();\n\n\n\t/**\n\t * Convenient access to an instance representing {@code java.time.LocalDateTime} (for {@code java.sql.Timestamp} types).\n\t */\n\tpublic final static Type<LocalDateTime> DATETIME = new DateTimeType();\n\n\n\t/**\n\t * <p>\n\t * Returns the proper SQL datatype as one of the constants from {@code java.sql.Types}.\n\t * </p>\n\t *\n\t * @return the proper constant from {@code java.sql.Types}, representing the SQL datatype\n\t */\n\tpublic int getRawSQLType();\n\n\n\t/**\n\t * <p>\n\t * Coerces any given object to the actual Java-type this implementation represents. Any and all possible coercion should\n\t * be performed. For example, numeric types should be able to successfully parse a given string. If coercion is impossible\n\t * for any given reason, a {@link CoercionException} must be thrown. This method may <strong>not</strong> throw any other\n\t * exceptions if coercion fails (for example, numeric types may not throw {@code NumberFormatException}s when parsing\n\t * string arguments), not even a {@code ClassCastException}. Implementations must handle a {@code null} value gracefully.\n\t * The expected behavior is to return {@code null}, but if this type has a more sensible representation when given a\n\t * {@code null} value, that may be returned instead too (for example, a non-null numeric type may sensibly return {@code 0}\n\t * when given a {@code null} value).\n\t * </p>\n\t *\n\t * @param object the object of any type to attempt to coerce to this type\n\t * @return the coerced value, possibly {@code null}\n\t * @throws CoercionException if the given {@code object} cannot be gracefully coerced into this type\n\t */\n\tpublic T coerce(Object object) throws CoercionException;\n\n\n\t/**\n\t * <p>\n\t * Sets the given {@code value} at the specified {@code index} on the given {@code statement}. The value may be of any type\n\t * and this instance is responsible for coercing it to the proper value before setting it (using {@link #coerce(Object)}).\n\t * </p>\n\t * <p>\n\t * This instance <strong>must</strong> set the value on the specified index and may not set it on any other index. It may\n\t * also not set any other value, nor any value other than the one given. Because the index is maintained externally from\n\t * this instance, if the value is {@code null} after coercion, it must still be set properly on the statement object.\n\t * </p>\n\t *\n\t * @param value the value to coerce and to set on the statement\n\t * @param statement the prepared statement on which to set the specified value\n\t * @param index the index at which to set the specified value\n\t * @throws CoercionException if {@code value} cannot be gracefully coerced\n\t * @throws SQLException if any call to {@code statement} throws an {@code SQLException}\n\t */\n\tpublic void set(Object value, PreparedStatement statement, int index) throws SQLException;\n\n\n\t/**\n\t * <p>\n\t * Gets the value from the specified column (as specified in the SQL {@code SELECT} clause) and returns it, properly and\n\t * gracefully converted to this appropriate type. If the value received from the resultset was {@code null}, this method\n\t * <strong>must</strong> also return {@code null}. Therefore, implementations should check for this with\n\t * {@code ResultSet#wasNull()} before attempting coercion.\n\t * </p>\n\t *\n\t * @param rs the resultset to get the value from under the specified label\n\t * @param column the label under which to get the value from the resultset\n\t * @return the gracefully converted value from the resultset, or {@code null}\n\t * @throws SQLException if any call to {@code rs} throws an {@code SQLException}\n\t */\n\tpublic T get(ResultSet rs, String column) throws SQLException;\n\n\n\t/**\n\t * <p>\n\t * Createse a {@link Partial} instance that knows how to properly represent the given {@code object} during query\n\t * construction. If the specified {@code object} was {@code null}, this may <strong>not</strong> return {@code null}, but\n\t * must return a proper {@link Partial} implementation that is able to represent a {@code null} of this type, usually by\n\t * returning {@link Partial#NULL}.\n\t * </p>\n\t *\n\t * @param object the object to wrap in a partial\n\t * @return a partial representing the given object\n\t */\n\tpublic Partial asPartial(T object);\n\n\n\t/**\n\t * <p>\n\t * Returns the {@code Class} object that this type represents.\n\t * </p>\n\t *\n\t * @return the Java-type class that this type represents\n\t */\n\tpublic Class<T> getTypeClass();\n}", "title": "" } ]
f98e2b7a2f2694431c54916bf73e8c1c
Set the startTime property: Observation start time.
[ { "docid": "14fd3e00761eb6398363c98859181f17", "score": "0.0", "text": "public QueryStatisticInner withStartTime(OffsetDateTime startTime) {\n if (this.innerProperties() == null) {\n this.innerProperties = new QueryStatisticProperties();\n }\n this.innerProperties().withStartTime(startTime);\n return this;\n }", "title": "" } ]
[ { "docid": "6af2e31e3c71f82d27cf62426dc0149a", "score": "0.8391697", "text": "public void setStartTime(long startTime) {\r\n this.startTime = startTime;\r\n }", "title": "" }, { "docid": "e04e4b3b783e173f8d20434c00c01815", "score": "0.8379712", "text": "@Override\n public void setStartTime(Date startTime) {\n this.startTime = startTime;\n }", "title": "" }, { "docid": "190fc79fbabf53ca482d57b9496d9dfd", "score": "0.8329696", "text": "public void setStartTime(Date startTime) {\n this.startTime = startTime;\n }", "title": "" }, { "docid": "190fc79fbabf53ca482d57b9496d9dfd", "score": "0.8329696", "text": "public void setStartTime(Date startTime) {\n this.startTime = startTime;\n }", "title": "" }, { "docid": "190fc79fbabf53ca482d57b9496d9dfd", "score": "0.8329696", "text": "public void setStartTime(Date startTime) {\n this.startTime = startTime;\n }", "title": "" }, { "docid": "190fc79fbabf53ca482d57b9496d9dfd", "score": "0.8329696", "text": "public void setStartTime(Date startTime) {\n this.startTime = startTime;\n }", "title": "" }, { "docid": "d92503f9c5380cd7ab24bc17552a3987", "score": "0.83083177", "text": "public void setStartTime(java.util.Date startTime) {\n this.startTime = startTime;\n }", "title": "" }, { "docid": "b80e7e2baa2ec964f765ac976d951d8c", "score": "0.8284406", "text": "public void setStartTime(Date startTime)\n {\n this.startTime = startTime;\n }", "title": "" }, { "docid": "df78e5fa4e82a1560e904129819f2646", "score": "0.8272267", "text": "public void setStartTime(Date startTime) {\n\t\tthis.startTime = startTime;\n\t}", "title": "" }, { "docid": "df78e5fa4e82a1560e904129819f2646", "score": "0.8272267", "text": "public void setStartTime(Date startTime) {\n\t\tthis.startTime = startTime;\n\t}", "title": "" }, { "docid": "548ea58b77c2f59c4bee83c2d416de5e", "score": "0.824615", "text": "public void setStartTime(java.lang.Long startTime) {\n this.startTime = startTime;\n }", "title": "" }, { "docid": "4b4d6798f155e69ddfadf5be0a013bd9", "score": "0.82448804", "text": "public static void setStartTime(long startTime) {\r\n State.startTime = startTime;\r\n }", "title": "" }, { "docid": "cb296e5942a3569fb3bbe363897a0c57", "score": "0.8238972", "text": "void setStartTime(final Integer startTime);", "title": "" }, { "docid": "24b9c00f45f931b8fad21af3265f96de", "score": "0.823084", "text": "void setStartTime(long startTime);", "title": "" }, { "docid": "bf207d802c159dc691bcca922423dfda", "score": "0.81388164", "text": "public void setStartTime(Float startTime) {\n this.startTime = startTime;\n }", "title": "" }, { "docid": "efdd4e96820de5c02768d38c77b49fa4", "score": "0.8115769", "text": "public void setStartTime() {\n\t\tthis.startTime = System.currentTimeMillis();\n\t}", "title": "" }, { "docid": "f3ccd366c90135b89248a4c66a8ee6b0", "score": "0.80745256", "text": "public void setStartTime(java.lang.String startTime) {\n this.startTime = startTime;\n }", "title": "" }, { "docid": "4b54c01ee98c01f32e762328716ab0ad", "score": "0.8023456", "text": "public void setStartTime(String startTime) {\n this.startTime = startTime;\n }", "title": "" }, { "docid": "c8ec0976fb3de5788974d13b5a484935", "score": "0.7754173", "text": "public static void setStartTime() {\n startTime = System.nanoTime();\n }", "title": "" }, { "docid": "bfa9e6e62e40900e98e152c34b2b50c4", "score": "0.77398014", "text": "public void setStartTime(String startTime) {\n this.startTime = startTime == null ? null : startTime.trim();\n }", "title": "" }, { "docid": "a7574cc275f5b0c4648973edee66d7db", "score": "0.76573133", "text": "public void setStartTime(){\n this.startTime = System.currentTimeMillis();\n this.startTime += this.timer;\n\n }", "title": "" }, { "docid": "2993a86c3ab93b659f67c8c82bf75f99", "score": "0.7641999", "text": "public void setStarttime(Date starttime) {\n this.starttime = starttime;\n }", "title": "" }, { "docid": "39892f5ed52cec8c5f8cd8b49e0b1524", "score": "0.7624938", "text": "public void setTimeStart(Date timeStart) {\n this.timeStart = timeStart;\n }", "title": "" }, { "docid": "939d7067d9b63adc93cca1b3b242b2a7", "score": "0.7609522", "text": "public void setStartTime(String startTime) {\n\t\tif(startTime.startsWith(\"0\", 0)) {\n\t\t\tthis.startTime = startTime.substring(1);\n\t\t\treturn;\n\t\t}\n\t\tthis.startTime = startTime;\n\t}", "title": "" }, { "docid": "8c462956113ef032a78c13948ec643ee", "score": "0.7522421", "text": "public void setStartTime(String StartTime) {\n this.StartTime = StartTime;\n }", "title": "" }, { "docid": "8c462956113ef032a78c13948ec643ee", "score": "0.7522421", "text": "public void setStartTime(String StartTime) {\n this.StartTime = StartTime;\n }", "title": "" }, { "docid": "8c462956113ef032a78c13948ec643ee", "score": "0.7522421", "text": "public void setStartTime(String StartTime) {\n this.StartTime = StartTime;\n }", "title": "" }, { "docid": "dd9b32756c98eac7a75040ea7f0f3d80", "score": "0.75103533", "text": "public void setStartTime(long startTime) {\n \tautoTest.getTestResult().setStartTime(startTime);\n for (NodeValueChanged listener : callback.keySet()) {\n listener.notifyChanged(callback.get(listener));\n }\n\n }", "title": "" }, { "docid": "2a38a77f60f77db9fd26a7d5f67d931f", "score": "0.75026995", "text": "public Builder setStartTime(long value) {\n \n startTime_ = value;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "2a38a77f60f77db9fd26a7d5f67d931f", "score": "0.75026995", "text": "public Builder setStartTime(long value) {\n \n startTime_ = value;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "e4fe5e2e46643baea38644ebaab00dba", "score": "0.74949944", "text": "public void setStartTime(String startTime)\n {\n String shortenedStart = startTime.substring(0, 19);\n LocalDateTime localStart = LocalDateTime.parse(shortenedStart, fullformatter);\n ZonedDateTime utcStart = localStart.atZone(ZoneId.of(\"UTC\"));\n ZonedDateTime zdtStart = utcStart.withZoneSameInstant(zid);\n String hoursMins = zdtStart.format(datetimeformatter);\n startTimeProperty().set(hoursMins);\n }", "title": "" }, { "docid": "2514b4819cd2bd5d710b207c98b4afce", "score": "0.7475381", "text": "public void setStartTime(Date d) {\n\n this.startTime = d;\n }", "title": "" }, { "docid": "1946eb728bead8872eba4e4e59928e37", "score": "0.7424388", "text": "public void setStartTime(float nStartTime) {\r\n this.startTime = nStartTime;\r\n }", "title": "" }, { "docid": "04315f685f59c2e1c01cce38bf490501", "score": "0.74081874", "text": "public AkamaiToken setStartTime(long startTime) {\n this.startTime = startTime;\n return this;\n }", "title": "" }, { "docid": "5c0bad8a362cb49b4c31a6b6d07bd394", "score": "0.7401613", "text": "public void setTimeStart(String timeStart) {\n this.timeStart = timeStart;\n }", "title": "" }, { "docid": "22b6b23ecbe8ed2fe21b46ed8f2f3d84", "score": "0.7364657", "text": "public void setStart_time(Date start_time);", "title": "" }, { "docid": "0bc3c83630f94c303dd1639f48f5e021", "score": "0.7361305", "text": "public Builder setStartTime(int value) {\n \n startTime_ = value;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "1041d94010d1e9b3a515edf188c9a23f", "score": "0.73402375", "text": "public void setStartTimeStamp(Instant startTimeStamp) { this.startTimeStamp = startTimeStamp; }", "title": "" }, { "docid": "cc6b3eb07f5a7a2d811a0df7373d49a0", "score": "0.72749126", "text": "public void setStartTime(Long time) {\n\t\tif (time < 0) {\n\t\t\tthrow new IllegalArgumentException(\"start time must be positive\");\n\t\t}\n\t\tmyStartTime = time;\n\t\tsetChannelStartTime(time);\n\t}", "title": "" }, { "docid": "f3028b7b45694893f00a6e29044c509f", "score": "0.72242326", "text": "public final void setStartTime(java.util.Date starttime)\r\n\t{\r\n\t\tsetStartTime(getContext(), starttime);\r\n\t}", "title": "" }, { "docid": "9921f96731b36108246b978c6e80a38a", "score": "0.71674573", "text": "public void setStartTimestamp(LocalDateTime startTimeStamp) {\n\t\tthis.startTimestamp = startTimeStamp;\n\t}", "title": "" }, { "docid": "de06a767664d0967ad695f34d060fb9b", "score": "0.71011233", "text": "public static void startTime() {\r\n startTime = System.currentTimeMillis();\r\n }", "title": "" }, { "docid": "e8e21bb16f92077b1987fbf3a6f0d999", "score": "0.7025667", "text": "public final void setStartTime(com.mendix.systemwideinterfaces.core.IContext context, java.util.Date starttime)\r\n\t{\r\n\t\tgetMendixObject().setValue(context, MemberNames.StartTime.toString(), starttime);\r\n\t}", "title": "" }, { "docid": "c4bae54a8d6f4730bb5fc708b17217a9", "score": "0.7022759", "text": "public void setStart(LocalTime start) {\n\t\tthis.start = start;\n\t}", "title": "" }, { "docid": "00b6a3dc823a48a75e8fa0a697260fed", "score": "0.69799316", "text": "public void start(){\n startTime = System.currentTimeMillis();\n }", "title": "" }, { "docid": "4c7d0a6127a20b96fc7618fbcddb8dfc", "score": "0.69790506", "text": "public ManagedIndexHeader setStartTime(Timestamp start) {\n\tstartTime = start;\n\treturn this;\n }", "title": "" }, { "docid": "2b4b262fc4be82cd9688a0696d45f5e1", "score": "0.69739395", "text": "public void setBeginTime(Date beginTime) {\n this.beginTime = beginTime;\n }", "title": "" }, { "docid": "fd05ee0f407932392962984b8a980915", "score": "0.69451886", "text": "public void setStartDate(String startTime) \n\t \n\t { \n\t\t String startHr = startTime.substring(0, 2);\n\t\tString startMin = startTime.substring(3,5);\n\t\tCalendar startCal = Calendar.getInstance();\n\t\tint hr = Integer.parseInt(startHr);\n\t\tstartCal.set(Calendar.HOUR_OF_DAY, hr);\n\t\tstartCal.set(Calendar.MINUTE, Integer.parseInt(startMin));\n\t\tstartCal.set(Calendar.SECOND, 00);\n\t\tstartDate = startCal.getTime(); \n\t\t}", "title": "" }, { "docid": "7a3996f802c95206aad53828180c291e", "score": "0.6903062", "text": "public void setStartTime(String param) {\r\n\r\n this.localStartTime = param;\r\n\r\n\r\n }", "title": "" }, { "docid": "992242a97e68843f726879d90e5f6e06", "score": "0.68689114", "text": "public void setStartTime(TimeAnnotation v) {\n\t\tif (Meeting_Type.featOkTst && ((Meeting_Type) jcasType).casFeat_startTime == null) jcasType.jcas.throwFeatMissing(\"startTime\",\n\t\t\t\t\"org.uimafit.examples.tutorial.type.Meeting\");\n\t\tjcasType.ll_cas.ll_setRefValue(addr, ((Meeting_Type) jcasType).casFeatCode_startTime, jcasType.ll_cas.ll_getFSRef(v));\n\t}", "title": "" }, { "docid": "639e4495cd4f6493b275e3a2c883b947", "score": "0.6851933", "text": "public Date getStartTime() {\n return startTime;\n }", "title": "" }, { "docid": "639e4495cd4f6493b275e3a2c883b947", "score": "0.6851933", "text": "public Date getStartTime() {\n return startTime;\n }", "title": "" }, { "docid": "639e4495cd4f6493b275e3a2c883b947", "score": "0.6851933", "text": "public Date getStartTime() {\n return startTime;\n }", "title": "" }, { "docid": "639e4495cd4f6493b275e3a2c883b947", "score": "0.6851933", "text": "public Date getStartTime() {\n return startTime;\n }", "title": "" }, { "docid": "b8c936a5a63ff6ea93433e4ba92f924e", "score": "0.6821949", "text": "@java.lang.Override\n public long getStartTime() {\n return startTime_;\n }", "title": "" }, { "docid": "b8c936a5a63ff6ea93433e4ba92f924e", "score": "0.6821949", "text": "@java.lang.Override\n public long getStartTime() {\n return startTime_;\n }", "title": "" }, { "docid": "c9a0a165bebf39b815f55b5152a28166", "score": "0.6772573", "text": "public long getStartTime() {\n return startTime;\n }", "title": "" }, { "docid": "eba81a59931b40ebdd159e356b5b5cef", "score": "0.6769763", "text": "@Override\n\tpublic double getStartTime() {\n\t\treturn startTime;\n\t}", "title": "" }, { "docid": "d78b2deede839812f91e6adace18a984", "score": "0.6765769", "text": "public long getStartTime() {\r\n return startTime;\r\n }", "title": "" }, { "docid": "d78b2deede839812f91e6adace18a984", "score": "0.6765769", "text": "public long getStartTime() {\r\n return startTime;\r\n }", "title": "" }, { "docid": "acdc9fc8bd6fb9afa64869633597f3fc", "score": "0.6757945", "text": "@java.lang.Override\n public long getStartTime() {\n return startTime_;\n }", "title": "" }, { "docid": "acdc9fc8bd6fb9afa64869633597f3fc", "score": "0.6757945", "text": "@java.lang.Override\n public long getStartTime() {\n return startTime_;\n }", "title": "" }, { "docid": "1d5086bd7695dfe10998c9f9d66084a9", "score": "0.6752018", "text": "public Date getStartTime() {\n\t\treturn startTime;\n\t}", "title": "" }, { "docid": "1d5086bd7695dfe10998c9f9d66084a9", "score": "0.6752018", "text": "public Date getStartTime() {\n\t\treturn startTime;\n\t}", "title": "" }, { "docid": "342246998c6e34ab157eb4ad18021082", "score": "0.6726526", "text": "public long getStartTime() {\n return startTime;\n }", "title": "" }, { "docid": "342246998c6e34ab157eb4ad18021082", "score": "0.6726526", "text": "public long getStartTime() {\n return startTime;\n }", "title": "" }, { "docid": "47543ca373e624bd22f3f6ca3e9d1345", "score": "0.67205244", "text": "public Date getStartTime()\n {\n return startTime;\n }", "title": "" }, { "docid": "6d9b234b6fa54d61d33b74f79237f5fd", "score": "0.66948247", "text": "public float getStartTime() {\r\n return startTime;\r\n }", "title": "" }, { "docid": "2c41a588a3bb0b997942f88dbe05cc1d", "score": "0.66932297", "text": "public Date getStartTime() {\n\n return this.startTime;\n }", "title": "" }, { "docid": "f69ba3b957ae9c75e42a362d91e3c58f", "score": "0.66844606", "text": "public long getStartTime() {\n\t\treturn startTime;\n\t}", "title": "" }, { "docid": "b316005e5d053fa738b6ec3b43843139", "score": "0.66535324", "text": "@JsonProperty\n public final long startTime() {\n return startTime;\n }", "title": "" }, { "docid": "951be1cd32a0d593aa95983149588466", "score": "0.6637333", "text": "public OffsetDateTime startTime() {\n return this.startTime;\n }", "title": "" }, { "docid": "fa71fd3b77602ef01e57f5e2e0e96827", "score": "0.6630576", "text": "@Override\n public void setMeasuringStartTime(int tin){\n tAccumulate = tin;\n }", "title": "" }, { "docid": "8b7b8a5bda9c6425ab327f7e5578c339", "score": "0.66303575", "text": "public String getStartTime() {\n return startTime;\n }", "title": "" }, { "docid": "8b7b8a5bda9c6425ab327f7e5578c339", "score": "0.66303575", "text": "public String getStartTime() {\n return startTime;\n }", "title": "" }, { "docid": "d4f0d818aa39b3bf1cc89ef50e9c45a1", "score": "0.6601742", "text": "public Timestamp getStartTime() {\n\treturn startTime;\n }", "title": "" }, { "docid": "7d4a6fe2aa293413ac0a6ce5c7df460a", "score": "0.6601107", "text": "@Override\n public Date getStartTime() {\n return this.startTime;\n }", "title": "" }, { "docid": "e07092e4cfc029bf610f5e4883379e11", "score": "0.66000646", "text": "public void setUTCStartTime(String startTime)\n {\n LocalDateTime startLDT = LocalDateTime.parse(startTime.substring(0, 16), datetimeformatter);\n ZonedDateTime zdtTime = startLDT.atZone(zid);\n ZonedDateTime utcTime = zdtTime.withZoneSameInstant(ZoneId.of(\"UTC\"));\n LocalDateTime ldtTime = utcTime.toLocalDateTime();\n Timestamp tsTime = Timestamp.valueOf(ldtTime);\n \n this.startTimestamp = tsTime;\n }", "title": "" }, { "docid": "8912911c53ec33b88bd5ac993839ad02", "score": "0.6590225", "text": "public int getStartTime() {\n return startTime_;\n }", "title": "" }, { "docid": "8be354c7bd70b388f379a12605dd7702", "score": "0.6589048", "text": "public int getStartTime() {\n return startTime_;\n }", "title": "" }, { "docid": "872c1fab36282157a234026e26fa69fc", "score": "0.6587255", "text": "@Override\r\n public void setMeasuringStartTime(int tin){\r\n tAccumulate = tin;\r\n }", "title": "" }, { "docid": "157635f761a3f95a8c75822f95be7ff5", "score": "0.6571185", "text": "public OffsetDateTime getStartTime() {\n return this.startTime;\n }", "title": "" }, { "docid": "311e82767cc1d6fdf1995d1e01f35d2f", "score": "0.6495901", "text": "public void setStart(Date start)\n {\n m_start = start;\n }", "title": "" }, { "docid": "026a091fcf790a64f8acedfc34f19343", "score": "0.6486847", "text": "public java.lang.Long getStartTime() {\n return startTime;\n }", "title": "" }, { "docid": "379fb1b7bc7f5eff3bc955239da1e5c5", "score": "0.64771634", "text": "public void setFirstStartTime() {\n String time = getFirstStartTime();\n if (time == null) {\n Date date = new Date(System.currentTimeMillis());\n mEditor.putString(FIRST_START_TIME, date.toGMTString());\n mEditor.commit();\n }\n }", "title": "" }, { "docid": "29eede5b825805efafa2bcc3b935596d", "score": "0.6471083", "text": "public int getStartTime() {\n\n return startTime;\n }", "title": "" }, { "docid": "9de87a9ca5b02cca656a380ca7879b50", "score": "0.6452583", "text": "@Override\n @JsonFormat(timezone= BsConst.Default.TIMEZONE, pattern= BsConst.Default.FORMAT_TIME)\n public Date getStartTime() {\n return startTime;\n }", "title": "" }, { "docid": "81dedeac6fc22f3599fd6bc1c328653f", "score": "0.6440171", "text": "public void start(){\n isStarted = true;\n startTime = System.currentTimeMillis();\n }", "title": "" }, { "docid": "5ddca7b56a6cd2791a7efc13d1040c39", "score": "0.64337355", "text": "public final void setStart(Date start) {\n\t\t\tnativeSetStart(start.getTime());\n\t\t}", "title": "" }, { "docid": "263337ec154b0428acaf2dad8c50bad7", "score": "0.64272535", "text": "public java.util.Date getStartTime() {\n return this.startTime;\n }", "title": "" }, { "docid": "f58d343d83f7b297446ce542af8a796c", "score": "0.640838", "text": "public void setTime(double t) {\n time = t;\n }", "title": "" }, { "docid": "714ce2c5276a579c7e4191efa36266f9", "score": "0.64063853", "text": "public final Time startTime() {\n return this.observationTimes.get(0);\n }", "title": "" }, { "docid": "5c57801d98fd7bfe9f58a601a9497476", "score": "0.6402187", "text": "public int getStartTime() {\n return this.startTime;\n }", "title": "" }, { "docid": "a668cc09a0c6f698c930e24506b4405b", "score": "0.6400265", "text": "@Override\n public void start() {\n super.start();\n endTime = timeSource.getTime() + (int)(duration * 1000);\n }", "title": "" }, { "docid": "43a281e22742e1a8a3cfa7697d8726af", "score": "0.6399304", "text": "public void setTime(long t);", "title": "" }, { "docid": "d90dc0f0ec6534a7758e9067add83207", "score": "0.6389102", "text": "@Override\n public int getStartTime() {\n return this.startTime;\n }", "title": "" }, { "docid": "610e82ba490d1c361875a4441659e11f", "score": "0.6376223", "text": "public String startTime() {\n return this.startTime;\n }", "title": "" }, { "docid": "7c67e751d18579c8c8aa3aa8156ac819", "score": "0.63720125", "text": "public void startTime() {\n\t\trunning = true;\n\t\tttimer.start();\n\t}", "title": "" }, { "docid": "5ff90ddb39018beeca7b275c7a57defa", "score": "0.6357546", "text": "@DateTimeFormat(pattern = \"yyyy-MM-dd HH:mm:ss\")\n\tpublic void setStart(Date start) {\n\t\tthis.start = start;\n\t}", "title": "" }, { "docid": "9ecc4e7a1120996f5949640676ea478b", "score": "0.63557136", "text": "public void setStart(Date startDate)\n {\n _startDate = startDate;\n }", "title": "" }, { "docid": "c8a0101d44d0ecae026092e2598dc08b", "score": "0.63343626", "text": "@Override\n public Date getStartTime() {\n return this.startT;\n }", "title": "" } ]
f32028f6a5787d3b008457bf94000a88
A human readable message indicating details about the transition. +optional optional string message = 5;
[ { "docid": "dd9567f4095c7da9f12359a3eef9c674", "score": "0.0", "text": "boolean hasMessage();", "title": "" } ]
[ { "docid": "8eee782f5fa1c8bd42d8cfbbaef8b493", "score": "0.6877681", "text": "private void emitTransitionErrorMessage(String message) {\n Rule rule = target.getAssociatedRule();\n emitError(message, rule.getLocation(), /* exitCode= */ null);\n }", "title": "" }, { "docid": "34a12e7f5fe8ec6b457cb355a9f3aac1", "score": "0.611485", "text": "@Override\n\tpublic String getMessage() {\n\t\treturn message;\n\t}", "title": "" }, { "docid": "34a12e7f5fe8ec6b457cb355a9f3aac1", "score": "0.611485", "text": "@Override\n\tpublic String getMessage() {\n\t\treturn message;\n\t}", "title": "" }, { "docid": "34a12e7f5fe8ec6b457cb355a9f3aac1", "score": "0.611485", "text": "@Override\n\tpublic String getMessage() {\n\t\treturn message;\n\t}", "title": "" }, { "docid": "34a12e7f5fe8ec6b457cb355a9f3aac1", "score": "0.611485", "text": "@Override\n\tpublic String getMessage() {\n\t\treturn message;\n\t}", "title": "" }, { "docid": "4d4adc874d563edaad23b98413540087", "score": "0.61109376", "text": "@Override\n public String getMessage() {\n return message;\n }", "title": "" }, { "docid": "4d4adc874d563edaad23b98413540087", "score": "0.61109376", "text": "@Override\n public String getMessage() {\n return message;\n }", "title": "" }, { "docid": "891d6439e8760c0c2b507833287c50a2", "score": "0.59593683", "text": "private String printTransitions() {\n if(transitions.isEmpty()){\n return \"Empty\";\n } else {\n StringBuilder stringBuilder = new StringBuilder();\n for (Map.Entry<Character, List<Character>> entry : transitions.entrySet()) {\n stringBuilder.append(entry.getKey()).append(\": \");\n for(Character stateLabel : entry.getValue()) {\n stringBuilder.append(stateLabel).append(\", \");\n }\n }\n return stringBuilder.toString();\n }\n }", "title": "" }, { "docid": "86b065bd8d3de72aefcef78e5bb0236a", "score": "0.5955708", "text": "public String message();", "title": "" }, { "docid": "668e9ca09b72b5355023037d192650c4", "score": "0.59127825", "text": "@Override\n public String getMessage(){\n return message;\n }", "title": "" }, { "docid": "54c7199ef41917836162d4505ecd2bb2", "score": "0.59127736", "text": "public void displayStatusMessage(String message);", "title": "" }, { "docid": "6ba9401c41ef8660e51bce30e94fab13", "score": "0.5893247", "text": "public void printTransitions() {\n\t\tSystem.out.println(name + \" : \" + transitions.toString());\n\t}", "title": "" }, { "docid": "4efc005eef4f9ed699bde86db653e8ce", "score": "0.5873064", "text": "String message();", "title": "" }, { "docid": "830efb719bde5dfe78c0e3ec808175c2", "score": "0.5840285", "text": "public String getMessage() {\r\n \treturn super.getMessage() + \" : \" + description;\r\n }", "title": "" }, { "docid": "9e95514a7d611d1cca9e05874f1f8120", "score": "0.5825891", "text": "public void ShowMessageInfo(String message) {\n\t\treturn;\n\t}", "title": "" }, { "docid": "9970a972277d2ab37312d565ec30a51b", "score": "0.58006287", "text": "String getMessage();", "title": "" }, { "docid": "9970a972277d2ab37312d565ec30a51b", "score": "0.58006287", "text": "String getMessage();", "title": "" }, { "docid": "9970a972277d2ab37312d565ec30a51b", "score": "0.58006287", "text": "String getMessage();", "title": "" }, { "docid": "885c0152eb47529f16c6364b5f903a06", "score": "0.58004516", "text": "@Override\n\tpublic String getMessage() {\n\t\treturn msg;\n\t}", "title": "" }, { "docid": "74b53eb2c5082bce0f7d4fd1334e2ed6", "score": "0.57919616", "text": "public String getMessage() {\n return message; \n }", "title": "" }, { "docid": "848f1a18bbaf45408cdb94b616f85821", "score": "0.57911694", "text": "public String message() {\n\t\tString expected = message.getText();\t\r\n\t\treturn expected;\t\r\n\t}", "title": "" }, { "docid": "2745d107baec4a7c9b0b5c3d0e224074", "score": "0.5748025", "text": "@javax.annotation.Nullable\n @ApiModelProperty(value = \"A human readable message indicating details about why the workflow is in this condition.\")\n\n public String getMessage() {\n return message;\n }", "title": "" }, { "docid": "49462ef250809c49206d293f5d04f973", "score": "0.5735022", "text": "public String getMessage() {\n return message;\n }", "title": "" }, { "docid": "49462ef250809c49206d293f5d04f973", "score": "0.5735022", "text": "public String getMessage() {\n return message;\n }", "title": "" }, { "docid": "5b1061f1ebfe1ca18e71d8458b8bdf97", "score": "0.57256514", "text": "java.lang.String getMessage();", "title": "" }, { "docid": "5b1061f1ebfe1ca18e71d8458b8bdf97", "score": "0.57256514", "text": "java.lang.String getMessage();", "title": "" }, { "docid": "5b1061f1ebfe1ca18e71d8458b8bdf97", "score": "0.57256514", "text": "java.lang.String getMessage();", "title": "" }, { "docid": "5b1061f1ebfe1ca18e71d8458b8bdf97", "score": "0.57256514", "text": "java.lang.String getMessage();", "title": "" }, { "docid": "5b1061f1ebfe1ca18e71d8458b8bdf97", "score": "0.57256514", "text": "java.lang.String getMessage();", "title": "" }, { "docid": "5b1061f1ebfe1ca18e71d8458b8bdf97", "score": "0.57256514", "text": "java.lang.String getMessage();", "title": "" }, { "docid": "5b1061f1ebfe1ca18e71d8458b8bdf97", "score": "0.57256514", "text": "java.lang.String getMessage();", "title": "" }, { "docid": "5b1061f1ebfe1ca18e71d8458b8bdf97", "score": "0.57256514", "text": "java.lang.String getMessage();", "title": "" }, { "docid": "5b1061f1ebfe1ca18e71d8458b8bdf97", "score": "0.57256514", "text": "java.lang.String getMessage();", "title": "" }, { "docid": "5b1061f1ebfe1ca18e71d8458b8bdf97", "score": "0.57256514", "text": "java.lang.String getMessage();", "title": "" }, { "docid": "5b1061f1ebfe1ca18e71d8458b8bdf97", "score": "0.57256514", "text": "java.lang.String getMessage();", "title": "" }, { "docid": "5b1061f1ebfe1ca18e71d8458b8bdf97", "score": "0.57256514", "text": "java.lang.String getMessage();", "title": "" }, { "docid": "5b1061f1ebfe1ca18e71d8458b8bdf97", "score": "0.57256514", "text": "java.lang.String getMessage();", "title": "" }, { "docid": "5b1061f1ebfe1ca18e71d8458b8bdf97", "score": "0.57256514", "text": "java.lang.String getMessage();", "title": "" }, { "docid": "5b1061f1ebfe1ca18e71d8458b8bdf97", "score": "0.57256514", "text": "java.lang.String getMessage();", "title": "" }, { "docid": "5b1061f1ebfe1ca18e71d8458b8bdf97", "score": "0.57256514", "text": "java.lang.String getMessage();", "title": "" }, { "docid": "5b1061f1ebfe1ca18e71d8458b8bdf97", "score": "0.57256514", "text": "java.lang.String getMessage();", "title": "" }, { "docid": "5b1061f1ebfe1ca18e71d8458b8bdf97", "score": "0.57256514", "text": "java.lang.String getMessage();", "title": "" }, { "docid": "5b1061f1ebfe1ca18e71d8458b8bdf97", "score": "0.57256514", "text": "java.lang.String getMessage();", "title": "" }, { "docid": "80f3e6535a0874cc4f0ccf051002891f", "score": "0.571324", "text": "public String getStepMessage() {\n return this.StepMessage;\n }", "title": "" }, { "docid": "fc00bc0854824b123b4c66e5b87fe29f", "score": "0.5698708", "text": "public void setMessage(String message) {\n\t\t\r\n\t\tif(distance>0 && distance<30) {\r\n\t\tthis.message=message;\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\tthis.message=null;\r\n\t\t\t\r\n\t\t}\r\n\t\t\r\n\t}", "title": "" }, { "docid": "2671abf2de8924583097268b81350ef5", "score": "0.5698496", "text": "void showInfo(String message);", "title": "" }, { "docid": "46bea7ee9264bf5a4b2cf2fbfbc14883", "score": "0.569594", "text": "public void printStatusMessage(String message) {\n statusMessageLabel.setText(message);\n }", "title": "" }, { "docid": "ff3a9ad09f282991d0fc08564245004e", "score": "0.56959355", "text": "public void setMessage(String message) {\n\t\t\t\t\t\r\n\t\t\t\t}", "title": "" }, { "docid": "9293f1ecdd0a993854a504fbdf6c30cd", "score": "0.56933856", "text": "public String getMessage() {\n\t\treturn message;\r\n\t\t\r\n\t}", "title": "" }, { "docid": "29d4a1bbb2d4f4e32c2065611c68d4af", "score": "0.5682923", "text": "public String getMessage() {\n return message;\n }", "title": "" }, { "docid": "cd74f888bbc62ddeb8776d5caf6c4abd", "score": "0.567775", "text": "@Override\r\n\tpublic void messageChange(Display display, String oldMessage, String newMessage) {\r\n\t\tlogic.getEventLog().writeToLog(newMessage);\r\n\t\tlogic.msgDriver.setCurrentMessage(newMessage);\r\n\t}", "title": "" }, { "docid": "dddccf04fae890cf30d8ae1d8db54fb0", "score": "0.56711745", "text": "private String getTransitionString(int transitionType) {\n switch (transitionType) {\n case Geofence.GEOFENCE_TRANSITION_ENTER:\n return \"geofence transition entered\";\n case Geofence.GEOFENCE_TRANSITION_EXIT:\n return \"geofence transition exited\";\n default:\n return \"unknown geofence transition\";\n }\n }", "title": "" }, { "docid": "8da7d66178b9a683f8d95bc8c06890ee", "score": "0.56617683", "text": "public String getMessage()\n {\n return message;\n }", "title": "" }, { "docid": "8da7d66178b9a683f8d95bc8c06890ee", "score": "0.56617683", "text": "public String getMessage()\n {\n return message;\n }", "title": "" }, { "docid": "8da7d66178b9a683f8d95bc8c06890ee", "score": "0.56617683", "text": "public String getMessage()\n {\n return message;\n }", "title": "" }, { "docid": "18f402aa124cd6a473a13801b5315892", "score": "0.56572175", "text": "@Override\n\t\tpublic String getMessage() {\n\t\t\treturn null;\n\t\t}", "title": "" }, { "docid": "66f4dfea567fc1fa5d73e379f639c188", "score": "0.5657048", "text": "public void printMessageForState() {\n int i = this.mState;\n if (i == 0) {\n this.mPw.println(\"Monitoring activity manager... available commands:\");\n } else if (i == 1) {\n this.mPw.println(\"Waiting after crash... available commands:\");\n this.mPw.println(\"(c)ontinue: show crash dialog\");\n this.mPw.println(\"(k)ill: immediately kill app\");\n } else if (i == 2) {\n this.mPw.println(\"Waiting after early ANR... available commands:\");\n this.mPw.println(\"(c)ontinue: standard ANR processing\");\n this.mPw.println(\"(k)ill: immediately kill app\");\n } else if (i == 3) {\n this.mPw.println(\"Waiting after ANR... available commands:\");\n this.mPw.println(\"(c)ontinue: show ANR dialog\");\n this.mPw.println(\"(k)ill: immediately kill app\");\n this.mPw.println(\"(w)ait: wait some more\");\n }\n this.mPw.println(\"(q)uit: finish monitoring\");\n }", "title": "" }, { "docid": "d3a6ad33f3618267c908e36fa8db49df", "score": "0.5642932", "text": "public void showMessage(String message);", "title": "" }, { "docid": "8d9113d07b3ba705c47efb89cffc490f", "score": "0.5635613", "text": "String messageForActivation();", "title": "" }, { "docid": "5367ed1fef3683a6d27dd11c4d90c433", "score": "0.5626418", "text": "public String getMessage() {\r\n return message;\r\n }", "title": "" }, { "docid": "5367ed1fef3683a6d27dd11c4d90c433", "score": "0.5626418", "text": "public String getMessage() {\r\n return message;\r\n }", "title": "" }, { "docid": "5367ed1fef3683a6d27dd11c4d90c433", "score": "0.5626418", "text": "public String getMessage() {\r\n return message;\r\n }", "title": "" }, { "docid": "5367ed1fef3683a6d27dd11c4d90c433", "score": "0.5626418", "text": "public String getMessage() {\r\n return message;\r\n }", "title": "" }, { "docid": "5367ed1fef3683a6d27dd11c4d90c433", "score": "0.5626418", "text": "public String getMessage() {\r\n return message;\r\n }", "title": "" }, { "docid": "5367ed1fef3683a6d27dd11c4d90c433", "score": "0.5626418", "text": "public String getMessage() {\r\n return message;\r\n }", "title": "" }, { "docid": "e8229cc5a41fbe4f2ee51735a08307e6", "score": "0.562029", "text": "public String getMessage();", "title": "" }, { "docid": "e8229cc5a41fbe4f2ee51735a08307e6", "score": "0.562029", "text": "public String getMessage();", "title": "" }, { "docid": "e8229cc5a41fbe4f2ee51735a08307e6", "score": "0.562029", "text": "public String getMessage();", "title": "" }, { "docid": "e8229cc5a41fbe4f2ee51735a08307e6", "score": "0.562029", "text": "public String getMessage();", "title": "" }, { "docid": "e8229cc5a41fbe4f2ee51735a08307e6", "score": "0.562029", "text": "public String getMessage();", "title": "" }, { "docid": "e8229cc5a41fbe4f2ee51735a08307e6", "score": "0.562029", "text": "public String getMessage();", "title": "" }, { "docid": "e8229cc5a41fbe4f2ee51735a08307e6", "score": "0.562029", "text": "public String getMessage();", "title": "" }, { "docid": "169d639d3442e55a644fa5119ce62081", "score": "0.5616323", "text": "private final String getMessage() {\n return message;\n }", "title": "" }, { "docid": "f18117020ee5ace976e21f4239ae3a1d", "score": "0.56160736", "text": "private String formatTransitionLabel(Object value) {\n String name;\n name = Model.getFacade().getName(value);\n NotationSettings settings = getNotationSettings();\n NotationProvider notationProvider =\n NotationProviderFactory2.getInstance()\n .getNotationProvider(\n NotationProviderFactory2.TYPE_TRANSITION,\n value,\n Notation.findNotation(settings.getNotationLanguage()));\n String signature = notationProvider.toString(value,\n NotationSettings.getDefaultSettings());\n if (name != null && name.length() > 0) {\n name += \": \" + signature;\n } else {\n name = signature;\n }\n return name;\n }", "title": "" }, { "docid": "f776d158e0e6ab496467c7732d58a00a", "score": "0.56116927", "text": "@Override\n public CommandMessage getMessage() {\n CommandMessage message = new CommandMessage(\"Change\", ItemType.STORY, story, \"readyCheck\");\n\n return message;\n }", "title": "" }, { "docid": "6d9b3a628f515202413e193018389f8e", "score": "0.5611359", "text": "java.lang.String getStatusMessage();", "title": "" }, { "docid": "6d9b3a628f515202413e193018389f8e", "score": "0.5611359", "text": "java.lang.String getStatusMessage();", "title": "" }, { "docid": "27dc1cd795780d6aa5cdb7293c70b5ff", "score": "0.56068903", "text": "@Override\n\tpublic String message() {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "579bb653e8299af2d0a9cc665cb7881c", "score": "0.5592523", "text": "@ApiModelProperty(example = \"null\", value = \"Track event actual description.\")\n public String getMessage() {\n return message;\n }", "title": "" }, { "docid": "4639fe692d101d3f23baf52043fdf902", "score": "0.5589344", "text": "public void testTransition() {\n\n\t}", "title": "" }, { "docid": "6297a0c0db5bbce2f992808d74e591d1", "score": "0.55796707", "text": "public String getMessage() {\r\n return message;\r\n }", "title": "" }, { "docid": "2ec1b3304fbcc2a91fe335d3920d9213", "score": "0.55785304", "text": "public String getMessage() {\n/* 124 */ StringBuffer stringBuffer = new StringBuffer();\n/* 125 */ stringBuffer.append(getReason());\n/* 126 */ if (this.index > -1) {\n/* 127 */ stringBuffer.append(\" at index \");\n/* 128 */ stringBuffer.append(this.index);\n/* */ } \n/* 130 */ stringBuffer.append(\": \");\n/* 131 */ stringBuffer.append(this.input);\n/* 132 */ return stringBuffer.toString();\n/* */ }", "title": "" }, { "docid": "28334efa96775ee1eddee8d4720b5d80", "score": "0.5576633", "text": "public String getMessage() {\n\t\n\t\treturn message;\n\t}", "title": "" }, { "docid": "754206ff5489df85627f95a6b178c98c", "score": "0.5576321", "text": "public Message(String name, String message, int state) {\n\t\tthis.name = name;\n\t\tthis.message = message;\n\t\tthis.ride = null; \n\t\tthis.state = state; \n\t}", "title": "" }, { "docid": "49e2195b0cfad8fc8dc4fde030705fb8", "score": "0.55743766", "text": "void showMessage(String message);", "title": "" }, { "docid": "8b3c4e337d050653e491484518f83fdc", "score": "0.55716336", "text": "public static void printStatus(String message) {\n System.out.println(message + \":\"); \t\t\t// ,only can fill with static field or method\n System.out.println(\"Population = \" + Person.getPopulation()); \n System.out.println(\"Oldest age = \" + Person.getOldestAge() \n + \" (\" + Person.getOldestPerson() + \")\"); \n }", "title": "" }, { "docid": "bcc380075c5749447565790967186362", "score": "0.5567764", "text": "@Override\n\tpublic Message getMessage() {\n\t\treturn msg;\n\t}", "title": "" }, { "docid": "cb94f95d40aa8b26a2a3382a45382c43", "score": "0.556495", "text": "public void systemMessageOperation(int value, String message) {\n FadeTransition fader = createFade(systemMessage, value, message);\n SequentialTransition fadeMessage1 = new SequentialTransition(\n systemMessage,\n fader\n ); \n FadeTransition fader2 = createFade(systemMessageBox, value, message);\n SequentialTransition fadeMessage2 = new SequentialTransition(\n systemMessageBox,\n fader2\n ); \n fadeMessage1.play();\n fadeMessage2.play(); \n }", "title": "" }, { "docid": "4c2b697bc46c32296a1cb5b4689c56c7", "score": "0.55629325", "text": "public String getMessage(){\n return message;\n }", "title": "" }, { "docid": "4c2b697bc46c32296a1cb5b4689c56c7", "score": "0.55629325", "text": "public String getMessage(){\n return message;\n }", "title": "" }, { "docid": "7498f144e8999c3429068d371c59df4c", "score": "0.5561871", "text": "@Override\n\tpublic String toString() {\n\t\tString transitionsString = \"\";\n\t\tint numberOfTransitions = (transitions.size() <= 3 ? transitions.size() : 3); //print up to 4 transitions\n\t\tfor (int i = 0 ; i < numberOfTransitions; i++) {\n\t\t\ttransitionsString += transitions.get(i);\n\t\t\tif (i < numberOfTransitions-1) {\n\t\t\t\ttransitionsString += \"\\n\";\n\t\t\t}\n\t\t}\n\t\tif (transitions.size() > numberOfTransitions) { //print ellipsis if more transitions exist\n\t\t\ttransitionsString += \"\\n...\";\n\t\t}\n\t\treturn transitionsString;\n\t}", "title": "" }, { "docid": "4292a6407ab2bb19310f28874e70cfd3", "score": "0.55614835", "text": "@Override\n\tpublic void setMessage(String message) {\n\n\t}", "title": "" }, { "docid": "2ac02c771a6ed182e83d0b2a0f473264", "score": "0.55613595", "text": "public String getMessage() {\n return message;\n }", "title": "" }, { "docid": "2ac02c771a6ed182e83d0b2a0f473264", "score": "0.55613595", "text": "public String getMessage() {\n return message;\n }", "title": "" }, { "docid": "2ac02c771a6ed182e83d0b2a0f473264", "score": "0.55613595", "text": "public String getMessage() {\n return message;\n }", "title": "" }, { "docid": "2ac02c771a6ed182e83d0b2a0f473264", "score": "0.55613595", "text": "public String getMessage() {\n return message;\n }", "title": "" }, { "docid": "2ac02c771a6ed182e83d0b2a0f473264", "score": "0.55613595", "text": "public String getMessage() {\n return message;\n }", "title": "" }, { "docid": "2ac02c771a6ed182e83d0b2a0f473264", "score": "0.55613595", "text": "public String getMessage() {\n return message;\n }", "title": "" }, { "docid": "2ac02c771a6ed182e83d0b2a0f473264", "score": "0.55613595", "text": "public String getMessage() {\n return message;\n }", "title": "" }, { "docid": "2ac02c771a6ed182e83d0b2a0f473264", "score": "0.55613595", "text": "public String getMessage() {\n return message;\n }", "title": "" }, { "docid": "2ac02c771a6ed182e83d0b2a0f473264", "score": "0.55613595", "text": "public String getMessage() {\n return message;\n }", "title": "" } ]
519dbeb652bc98efe0a242fbd4145e8c
Returns the release year of the track.
[ { "docid": "9920149a60768ee23d8ec213d185105b", "score": "0.72640306", "text": "public String year() {\n\t\treturn year;\n\t}", "title": "" } ]
[ { "docid": "ae48d83be49e0400bb061914a6608083", "score": "0.80792826", "text": "public String getReleaseYear() {\n // Extract only the release Year from the Release Year. Like: From: 2018-02-01 --> To: 2018\n int yrIndex = getReleaseDate().indexOf(\"-\");\n if (yrIndex == -1) {\n return getReleaseDate();\n }\n return getReleaseDate().substring(0, yrIndex);\n }", "title": "" }, { "docid": "1fa51b6eddcdb1e0fd0db6d4de876874", "score": "0.80020726", "text": "public int getYear(){\n\n @SuppressLint(\"SimpleDateFormat\") SimpleDateFormat dateFormat = new SimpleDateFormat(\"yyyy-MM-dd\");\n\n Date convertedDate = new Date();\n\n try {\n convertedDate = dateFormat.parse(releaseDate);\n } catch (ParseException e) {\n e.printStackTrace();\n }\n Calendar cal = Calendar.getInstance();\n cal.setTime(convertedDate);\n return cal.get(Calendar.YEAR);\n }", "title": "" }, { "docid": "24a066256aa063b026b03bc2f8591387", "score": "0.7857308", "text": "@Override\n\tpublic int getReleaseYear() {\n\t\treturn this.releaseYear;\n\t}", "title": "" }, { "docid": "611b150b955726c964406ff55ae9240e", "score": "0.7829388", "text": "public int getReleaseYear() {\n return mReleaseYear;\n }", "title": "" }, { "docid": "b34b7e89f4b261ff39487e0cccdb5842", "score": "0.7766723", "text": "public String getReleaseYear()\n {\n return releaseYear;\n }", "title": "" }, { "docid": "36c026702fb42f54435745a592933770", "score": "0.77589566", "text": "public String getReleaseDate () {\n return year;\n }", "title": "" }, { "docid": "c37d7fb2b233b7f7b954f234121c5c56", "score": "0.73943377", "text": "public int year() {\n \n return get(YEAR);\n }", "title": "" }, { "docid": "73d62019cb508489953880cbdc64a4a0", "score": "0.7383232", "text": "public final int getYear() {\n return getChronology().year().get(getMillis());\n }", "title": "" }, { "docid": "360bf448239b699ce36a7b6a851821b8", "score": "0.73304623", "text": "public int getyear()\r\n\t{\r\n\t\treturn year;\r\n\t}", "title": "" }, { "docid": "734eb885f85e1478627b87236ef0af2e", "score": "0.7295431", "text": "String getYear();", "title": "" }, { "docid": "f094539dfe1196878c36647f96800280", "score": "0.7274706", "text": "public int getYear() {\r\n\r\n\t\treturn year;\r\n\r\n\t}", "title": "" }, { "docid": "0cf27e52fd8046abad2fb07b3ea5d27c", "score": "0.7270927", "text": "public int getYear() {\n\t\treturn year;\r\n\t}", "title": "" }, { "docid": "a726e84351dcedcac6a30320838f368d", "score": "0.7265024", "text": "public int getYear() {\n\t\treturn year;\n\t}", "title": "" }, { "docid": "a726e84351dcedcac6a30320838f368d", "score": "0.7265024", "text": "public int getYear() {\n\t\treturn year;\n\t}", "title": "" }, { "docid": "8fef7a96af6abb38541064937db24ca6", "score": "0.7251152", "text": "public String getYear() {\n\t\treturn year;\n\t}", "title": "" }, { "docid": "e266d051358730f3245ab4df911697a8", "score": "0.7229927", "text": "public long getYear() {\r\n\t\t\r\n\t\treturn year;\r\n\t\t\r\n\t}", "title": "" }, { "docid": "e10bd24660c3ed34579ea0f613e3b0e5", "score": "0.7226179", "text": "public int getYear() {\r\n\r\n\t\treturn this.year;\r\n\t}", "title": "" }, { "docid": "6a58cfe5fd699bdb6ab6baa21824a994", "score": "0.7198365", "text": "@VTID(36)\r\n int year();", "title": "" }, { "docid": "9bd43f77343e66631d9fe2becb5f8299", "score": "0.71964544", "text": "public int getYear()\n\t{\n\t\treturn this.year;\n\t}", "title": "" }, { "docid": "091452d8902f307af120708cc24c6496", "score": "0.7192939", "text": "public Number getYear() {\r\n return (Number) getAttributeInternal(YEAR);\r\n }", "title": "" }, { "docid": "b1bc326f8619c238ca50dcf02dd6a40e", "score": "0.71910334", "text": "public int getYear() {\n\t\treturn date.get(Calendar.YEAR);\n\t}", "title": "" }, { "docid": "859caaf0a7a83eeff14f8b16e41e1095", "score": "0.7178083", "text": "public int getYear() {\r\n return year;\r\n }", "title": "" }, { "docid": "8dfbd1c0a18f42f40136ac4fe1450d3d", "score": "0.7162245", "text": "public Integer getYear() {\r\n return year;\r\n }", "title": "" }, { "docid": "8dfbd1c0a18f42f40136ac4fe1450d3d", "score": "0.7162245", "text": "public Integer getYear() {\r\n return year;\r\n }", "title": "" }, { "docid": "7af55c257c52b6854c69fb21bf61c945", "score": "0.7161855", "text": "public int getYear() {\n return date.getYear();\n }", "title": "" }, { "docid": "f4063ca2c7544cf18283445e01510856", "score": "0.7152198", "text": "public int getYear() {\n return year;\n }", "title": "" }, { "docid": "f4063ca2c7544cf18283445e01510856", "score": "0.7152198", "text": "public int getYear() {\n return year;\n }", "title": "" }, { "docid": "b335a3826da43c803c845a272d60730d", "score": "0.7110759", "text": "int getYear();", "title": "" }, { "docid": "ad2ee52184d7862d340b08fc1f499acf", "score": "0.70960665", "text": "public int getYear();", "title": "" }, { "docid": "3f51c068281a3b423588267bc5988fb3", "score": "0.70616084", "text": "public int getYear()\r\n {\r\n return year;\r\n }", "title": "" }, { "docid": "e7abe6678fc91ebea578184b822f0668", "score": "0.7051928", "text": "public int getYear()\r\n {\r\n return year;\r\n }", "title": "" }, { "docid": "e7abe6678fc91ebea578184b822f0668", "score": "0.7051928", "text": "public int getYear()\r\n {\r\n return year;\r\n }", "title": "" }, { "docid": "05604eba6c4d6bdd7c318fb4384a2ba1", "score": "0.70427656", "text": "public Integer getYearnumber() {\n return yearnumber;\n }", "title": "" }, { "docid": "705d176ca868863326148db5f4544434", "score": "0.7000752", "text": "public int getYear()\n {\n return year;\n }", "title": "" }, { "docid": "3c3cf43e295fda949abaeab2ab894bcb", "score": "0.6929782", "text": "public int getYear()\r\n {\r\n return _year;\r\n }", "title": "" }, { "docid": "52c3f4c5ea1e45da917445fbc6e75259", "score": "0.68987036", "text": "private int readYear(){\n\t\tint y = 0; //int year to be determined\n\t\tif(mp3.getTag()!=null && !mp3.getTag().getFirst(FieldKey.YEAR).isEmpty() && !mp3.getTag().getFirst(FieldKey.YEAR).equals(\" 0\")){\n\t\t\tString year = mp3.getTag().getFirst(FieldKey.YEAR);\n\t\t\tif(year.length()>4){\n\t\t\t\tyear = year.substring(0, 4);\n\t\t\t}\n\t\t\ttry{\n\t\t\t\ty = Integer.parseInt(year);\n\t\t\t}catch(NumberFormatException e){\n\t\t\t\tSystem.out.println(\"ERROR while trying to get the YEAR-Tag of track (\" + path + \"). Invalid YEAR-Tag (\"+mp3.getTag().getFirst(FieldKey.YEAR)+\")\");\n\t\t\t}\n\t\t\t\n\t\t}\n\t\treturn y;\n\t}", "title": "" }, { "docid": "5d842a1b9d9a7fb462705d7cdfd196f9", "score": "0.6840063", "text": "public int getCurrentYear() {\n\t\treturn this.year;\n\t}", "title": "" }, { "docid": "001e7d5997201be4e0b7b1410550cd63", "score": "0.68374383", "text": "public String getPrefixedReleaseYear() {\n return \"Released: \" + getReleaseYear();\n }", "title": "" }, { "docid": "262c64d87ea92801b7e6b220a1462e66", "score": "0.6825241", "text": "public int getYear() {\r\n return 1900 + date.getYear();\r\n }", "title": "" }, { "docid": "f0e90def1dc015be5498db93d61613c0", "score": "0.68157125", "text": "public String getYearAsString()\r\n {\r\n return year.toString().substring(2);\r\n }", "title": "" }, { "docid": "7670f063f10918b03dc6877f1b8e2337", "score": "0.6806844", "text": "int getYearOfCentury();", "title": "" }, { "docid": "42d31ca57b313aad6a92921060e8bded", "score": "0.6777069", "text": "public int getYear(){\n\t\treturn EYear;\n\t}", "title": "" }, { "docid": "1a32388ca95eb84b75e39b768160e3ea", "score": "0.67659605", "text": "public static String getCurrentYear() {\n\n String date = getCurrentDate();\n String[] splitDate = date.split(\"-\");\n return splitDate[2];\n }", "title": "" }, { "docid": "886314705713f28a969b512f5024c6d4", "score": "0.6761352", "text": "public String getModelYear() {\r\n return getString(KEY_MODEL_YEAR);\r\n }", "title": "" }, { "docid": "31dd48ed8f7ebd7c0749c3bbeb0aca2f", "score": "0.67548466", "text": "public String getStringYear() {\r\n return sYear;\r\n }", "title": "" }, { "docid": "56a6df6f14bb6a735807a308b3a9f0b8", "score": "0.6741967", "text": "public String getEndYear() {\n\n\t\tif (timeInfo) {\n\t\t\treturn time.getYear();\n\t\t}\n\t\treturn epDate.substring(0, 4);\n\t}", "title": "" }, { "docid": "9c2cde5fb4009e077a3fcca5cc90db6f", "score": "0.6734837", "text": "public String getYear(){\r\n return year;\r\n }", "title": "" }, { "docid": "557896d61a17c19c90d123649a704c9e", "score": "0.6732488", "text": "int getUTCFullYear();", "title": "" }, { "docid": "5f49f309316949f2a8c0f6f8678e304e", "score": "0.66991717", "text": "public int getCurrentYear() {\n\t\treturn currentYear;\n\t}", "title": "" }, { "docid": "382b113971ed53f36cf7348dbf425c75", "score": "0.66762954", "text": "public CopyrightYear copyrightYear() {\n _initialize();\n return copyrightYear;\n }", "title": "" }, { "docid": "e6262a1e46f11c8286bf8f1ea41d1bc2", "score": "0.66739917", "text": "public int getCopyrightYear() {\r\n\t\tCalendar calendar = Calendar.getInstance();\r\n\t\tint year = calendar.get(Calendar.YEAR);\r\n\t\treturn year;\r\n\t}", "title": "" }, { "docid": "50ac09bb342cefb6f7334ea13391ef7d", "score": "0.6654011", "text": "public Integer getMovieProduceYear() {\n return movieProduceYear;\n }", "title": "" }, { "docid": "4e9baf158101ffd1cab2e8ff6f395d76", "score": "0.66316175", "text": "int getFullYear();", "title": "" }, { "docid": "ac4c093b6b5b5a7714be35c41bded707", "score": "0.66092795", "text": "public int getPublishYear(){\n\t\treturn this.pubYear;\n\t}", "title": "" }, { "docid": "eb72db7f4f8bfc3a1143e4e7279c2f5e", "score": "0.66044265", "text": "private static int getCurrentYear(){\n return Calendar.getInstance().get(Calendar.YEAR);\n }", "title": "" }, { "docid": "fefda440b28c8281e0d73d119d45a674", "score": "0.6596692", "text": "public int getYear(){\n return this.year;\n }", "title": "" }, { "docid": "2234c158e2ed38decde5ac3b557ee254", "score": "0.65888065", "text": "public static String getCurrentYear() {\n\t\tSimpleDateFormat sdf = new SimpleDateFormat(\"yyyy\");\n\t\treturn sdf.format(new Date()) + \"年度\";\n\t}", "title": "" }, { "docid": "4d25e0672af1c8393069bf26ccbf7c79", "score": "0.6513506", "text": "public final int getYearOfCentury() {\n return getChronology().yearOfCentury().get(getMillis());\n }", "title": "" }, { "docid": "dd9cae42ed7cc6ab7a75a2bf48abc4e0", "score": "0.65108615", "text": "public int getLatestYear() {\n\n\t\treturn this.latestYear;\n\t}", "title": "" }, { "docid": "c6a8262381512e0f3d1adff43af3a796", "score": "0.6498193", "text": "public int getClaimYear() {\r\n return claimYear;\r\n }", "title": "" }, { "docid": "c3643c0bf37b1a9227820d54f50921d2", "score": "0.64918804", "text": "public Integer getPublishYear() {\n return this.publishYear;\n }", "title": "" }, { "docid": "ca5d47530c1521e6316b47e90c2ef161", "score": "0.64861643", "text": "public int getSelectedYear() {\n\t\treturn yearNumberPicker.getValue();\n\t}", "title": "" }, { "docid": "62ba3a0379b0093b52d173c5284ddacd", "score": "0.6486035", "text": "public String getBudgetYear() {\n return (String) getAttributeInternal(BUDGETYEAR);\n }", "title": "" }, { "docid": "b3e56d00cef4d9d0e5e5a116a48f8f11", "score": "0.64704007", "text": "public String getYearMade()\r\n {\r\n return yearMade;\r\n }", "title": "" }, { "docid": "2ab4099c16ac6bc5c66a5a4a18f1a714", "score": "0.64696336", "text": "public int getYear(){\n // Obtains the container holding the DatePicker\n WebElement container = getWebElement();\n\n // Obtains the current year\n String year = container.findElement(By.cssSelector(\".ui-datepicker-header > .ui-datepicker-title > .ui-datepicker-year\"))\n .getAttribute(\"textContent\");\n return Integer.parseInt(year);\n }", "title": "" }, { "docid": "1f22c788c309fa6da5553ed27e1f35e6", "score": "0.6462653", "text": "public DBColumnExpr year()\n {\n return getExprFromPhrase(DBDatabaseDriver.SQL_FUNC_YEAR, null, null, false);\n }", "title": "" }, { "docid": "91b5422a5bd1627f4c9731faeacae3a0", "score": "0.6436099", "text": "public JYearChooser getToYear() {\n\t\treturn toYear;\n\t}", "title": "" }, { "docid": "cd1ba41d7b28b6a330053ad68b0a600a", "score": "0.6405351", "text": "public java.lang.Integer getRespyear() {\n\treturn respyear;\n}", "title": "" }, { "docid": "aa61f318122132b113959399fba19698", "score": "0.6405023", "text": "public int getLatestYear()\n {\n return values.get(values.size()).get(0).intValue();\n }", "title": "" }, { "docid": "26c2562a00152e224d108490613716ef", "score": "0.6397105", "text": "private int getCurrentYearFromServerDate() {\n Calendar objCal = getCalendar();\n\n return objCal.get(Calendar.YEAR);\n }", "title": "" }, { "docid": "22a30272fae63c729dc26a368bb53c7d", "score": "0.63645875", "text": "public String getConstructYearString(){\n if(mConstructYear == null) return \"\";\n SimpleDateFormat sdf = new SimpleDateFormat(\"yyyy\");\n return sdf.format(mConstructYear);\n }", "title": "" }, { "docid": "05076d14def1d78ec092ff68e6aab4bc", "score": "0.636143", "text": "public short getDueDateCorrYear(){\r\n return localDueDateCorrYear;\r\n }", "title": "" }, { "docid": "7a799942fcfa5fd1d01d91a3ac21b7f4", "score": "0.6352674", "text": "public String getSubmitYear() {\n return submitYear;\n }", "title": "" }, { "docid": "230575be028c511d22532ebaa8ad4a41", "score": "0.6342144", "text": "int getYearOfEra();", "title": "" }, { "docid": "da57bcc48e5e8faa1c8c7770f07c0827", "score": "0.63155776", "text": "@Override\n\tpublic int mediaYear() {\n\t\treturn mediaYear;\n\t}", "title": "" }, { "docid": "11fafa37c1beb2c5285cbefc963020cd", "score": "0.6314646", "text": "public static String getSysdateYear() {\n\t\tSimpleDateFormat formatter = new SimpleDateFormat (\"yyyy\");\n\t\tDate curDate = new Date();\n\t\tString dateString = formatter.format(curDate);\n\t\treturn dateString;\n\t}", "title": "" }, { "docid": "66cedc2a4a585418b727c5054bd75285", "score": "0.63096875", "text": "public int getindepYear() {\n return indepYear;\n }", "title": "" }, { "docid": "0f34d38b79c320234ad792508028dbd9", "score": "0.6299226", "text": "public NumericProperty<Integer> year() {\n return PropertyFactory.createNumeric(FunctionExpressionFactory.yearExp(getExpression()), Integer.class);\n }", "title": "" }, { "docid": "3ffa7b0fc3fec3e9186636df009d3229", "score": "0.62910146", "text": "@javax.annotation.Nullable\n @ApiModelProperty(example = \"2019\", value = \"Year of the ledger billing group report\")\n @JsonProperty(JSON_PROPERTY_YEAR)\n @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)\n\n public Integer getYear() {\n return year;\n }", "title": "" }, { "docid": "ed75c6a683281e04d4f1a8ef9e8c7a0a", "score": "0.62791544", "text": "public org.apache.axis.types.Year getGYearValue() {\n return new org.apache.axis.types.Year(_value);\n }", "title": "" }, { "docid": "523cb6c6963f9be0d80f36c30920fb0a", "score": "0.62620175", "text": "public final String getGraduationYear() {\n return this.graduationYear;\n }", "title": "" }, { "docid": "ee706211731064a9a8174a4264983871", "score": "0.62579477", "text": "public Integer getLAST_DR_VISIT_YEAR() {\n return LAST_DR_VISIT_YEAR;\n }", "title": "" }, { "docid": "8abe79a24bea472b2550065a775e34f9", "score": "0.6256318", "text": "public int getWorkingYear() {\n return workingYear;\n }", "title": "" }, { "docid": "3fd7128bfc3b01083e0630b48800b404", "score": "0.624496", "text": "public String Get_birth_year()\n { \n\n if ( birth.Get_date().length() == 0 ){\n return \"unknown\";\n } else if ( birth.Get_date().length() < 4 ){\n return birth.Get_date();\n } else {\n return birth.Get_date().substring(birth.Get_date().length() - 4);\n }\n }", "title": "" }, { "docid": "6b525248859630f0b1b2b76415d86778", "score": "0.6240447", "text": "public int getYearOfStudy() {\n\t\treturn yearOfStudy;\n\t}", "title": "" }, { "docid": "9c310d2878325711dcc2bde9feeb50eb", "score": "0.6231283", "text": "public Track year(final String year) {\n\t\tthis.year = year;\n\t\treturn this;\n\t}", "title": "" }, { "docid": "a630513c367a5cfd8b8be4f6bc4b9dc5", "score": "0.6214872", "text": "public String getGraduationYear() {\n return graduationYear;\n }", "title": "" }, { "docid": "259006a480e14bf3025e286df629f717", "score": "0.6212428", "text": "public Integer getYearManufactured() {\n\t\t\treturn yearManufactured;\n\t\t}", "title": "" }, { "docid": "ef0f113a4126fe5f378f546771169aee", "score": "0.6202405", "text": "public String get2DigitBirthYear() {\n\t\treturn getValue().substring(4, 6);\n\t}", "title": "" }, { "docid": "88f21bba601a59f3c03746d923643973", "score": "0.62003696", "text": "public final int getYearOfEra() {\n return getChronology().yearOfEra().get(getMillis());\n }", "title": "" }, { "docid": "b91ac7622493ad4f17e3cc42f30b6e85", "score": "0.6178875", "text": "public double getInterestYear()\n\t{\n\t\treturn round(averageInterestYear);\n\t}", "title": "" }, { "docid": "220296d0e57761cb92018e9588a36ada", "score": "0.6176583", "text": "public ThesisYear thesisYear() {\n _initialize();\n return thesisYear;\n }", "title": "" }, { "docid": "220296d0e57761cb92018e9588a36ada", "score": "0.6176583", "text": "public ThesisYear thesisYear() {\n _initialize();\n return thesisYear;\n }", "title": "" }, { "docid": "a74efa808ef3f31fd6d608183c7d5bbd", "score": "0.6157357", "text": "int getWeekyear();", "title": "" }, { "docid": "8a6ae487e442b9a7b0be498b34c4dbed", "score": "0.61567616", "text": "public int getYear() {\n if (Date_Type.featOkTst && ((Date_Type)jcasType).casFeat_year == null)\n jcasType.jcas.throwFeatMissing(\"year\", \"types.Date\");\n return jcasType.ll_cas.ll_getIntValue(addr, ((Date_Type)jcasType).casFeatCode_year);}", "title": "" }, { "docid": "b6339aa1add7e88ad8e82a5c7d542cc3", "score": "0.6153868", "text": "Long getCBirthYear();", "title": "" }, { "docid": "6e2ea6ac67155db293c4b465f8b1fd02", "score": "0.61440575", "text": "public String getRelease() {\n return release;\n }", "title": "" }, { "docid": "d1977f283c1d1c97c037477857c15ba1", "score": "0.614291", "text": "public int getBirthYear() {\n \n //init\n Date theBirthDate = this.getBirthDate();\n \n if (theBirthDate == null) {\n return -1;\n }\n \n Calendar calendar = new GregorianCalendar();\n calendar.setTimeInMillis(theBirthDate.getTime());\n \n //this returns 0 indexed, so add 1\n return calendar.get(Calendar.YEAR);\n \n }", "title": "" }, { "docid": "ca53543545eef0c9235bb6bf23d56917", "score": "0.61238587", "text": "public Date getConstructYear(){\n return mConstructYear;\n }", "title": "" }, { "docid": "e4ada9697ebf1b72d700fae5789e4d00", "score": "0.6123603", "text": "public String getBirthYear() {\n\t\treturn getCentury() + get2DigitBirthYear();\n\t}", "title": "" } ]
7018cd223beb52469a235104548d952d
/ renamed from: com.bytedance.apm.f.c
[ { "docid": "456286166721731d5b0488cc6689159b", "score": "0.0", "text": "public interface C6200c {\n /* renamed from: a */\n boolean mo14918a(String str);\n\n /* renamed from: b */\n boolean mo14921b(String str);\n\n /* renamed from: c */\n boolean mo14923c(String str);\n}", "title": "" } ]
[ { "docid": "a5850bcda92c81739889e4213d960d63", "score": "0.63424", "text": "public void mo3769f() {\n }", "title": "" }, { "docid": "98dd411045fd2d1d89b5a730ede72786", "score": "0.62616926", "text": "public void mo3758a() {\n }", "title": "" }, { "docid": "330fb60652277f643854b081333e4df2", "score": "0.6191942", "text": "protected abstract void mo6248a();", "title": "" }, { "docid": "c548b9a664a55dc74028b1bf997c9fcd", "score": "0.61736053", "text": "void mo40679c();", "title": "" }, { "docid": "a4e9dd51e0043dd4f1396223cdcc8177", "score": "0.61654365", "text": "public void mo61769a() {\n }", "title": "" }, { "docid": "53b143d902fcc25fcff381bc3dfb4de5", "score": "0.6131089", "text": "void mo2586f();", "title": "" }, { "docid": "825d2e7241c1476066cdc81e6ad3f808", "score": "0.60419863", "text": "public void mo1070a() {\n }", "title": "" }, { "docid": "679c94b1e01bbf172a6ebbded5e039b3", "score": "0.6025783", "text": "public abstract zzcbp mo29235j();", "title": "" }, { "docid": "6faaae4b18d2fd5ec57acea390acd115", "score": "0.60173464", "text": "public void mo41a() {\n }", "title": "" }, { "docid": "2cc97f340071c93ab12395f2981731ee", "score": "0.59872854", "text": "public void mo25307b() {\n }", "title": "" }, { "docid": "f2b9d5ceada6ed21172d6c5b5fcd331f", "score": "0.5979165", "text": "private void m110160q() {\n new C40727a().mo100939a(this.f88995b).mo100938a(this.f89002i).mo100948a().mo100932a(getApplicationContext());\n }", "title": "" }, { "docid": "43f18d4e56a33f46f30a3d2514423bfb", "score": "0.59646595", "text": "void mo25124c();", "title": "" }, { "docid": "c5351da3194cc534b96c2beda4814676", "score": "0.595047", "text": "void mo83778b();", "title": "" }, { "docid": "f3db25bd2533a00156c62b3eda4170ba", "score": "0.5946469", "text": "public void mo4089a() {\n m19332f();\n }", "title": "" }, { "docid": "6a01760ad0fe4d36de7c5590ad25e6a6", "score": "0.5936114", "text": "void mo103902c();", "title": "" }, { "docid": "b06c2c8b381b2467527e1c7c40566932", "score": "0.59351844", "text": "void mo38875a();", "title": "" }, { "docid": "4a048a095dbc88929733b0a0fcf29741", "score": "0.59332746", "text": "public void mo21407a() {\n }", "title": "" }, { "docid": "53a0f8e8ce73c95d9b43dd6bc0575386", "score": "0.5930642", "text": "public void mo3340a() {\n }", "title": "" }, { "docid": "baa2f07ec9cb134a9080e4fae6c970e9", "score": "0.5924718", "text": "void mo27583a();", "title": "" }, { "docid": "8bf8511f65e0c2b04c8bd3242cfd3d0d", "score": "0.5921581", "text": "public void mo25201a() {\n }", "title": "" }, { "docid": "a072fa6aede21b02b208e08168b8716d", "score": "0.5920075", "text": "void mo11830c();", "title": "" }, { "docid": "5c67144ca96737189a261a2f5167bcfb", "score": "0.59182996", "text": "void mo83780c();", "title": "" }, { "docid": "e09b30e8a933ffca8b6063a9da1af241", "score": "0.59056234", "text": "public final void mo23307a() {\n }", "title": "" }, { "docid": "f95e24981675e675121146f90a85bfe2", "score": "0.5887943", "text": "protected abstract void mo3673S();", "title": "" }, { "docid": "dff3ca9c9d075637d67fedf46ff57ade", "score": "0.5883325", "text": "void mo37616d();", "title": "" }, { "docid": "e55efb76a98d99432268d58122b7753a", "score": "0.5882455", "text": "void mo1396c();", "title": "" }, { "docid": "b29525b31896e40f0cf60cac79dc7d13", "score": "0.5881112", "text": "void mo1120a(Context context, Beta beta, IdManager idManager, C2843f c2843f, C1339c c1339c, C2787c c2787c, C2799j c2799j, C2834c c2834c);", "title": "" }, { "docid": "e8d18f29b31916236ce6a2af88ed6cc2", "score": "0.5878072", "text": "public void a() {\n a.c(this.f6941a);\n a.d(this.f6941a);\n }", "title": "" }, { "docid": "2d2af34b5f43221f02a3df4cea845c29", "score": "0.58757377", "text": "void mo1558c();", "title": "" }, { "docid": "2f18cd0e23a28b77eb00e93403e98be6", "score": "0.5871871", "text": "public void mo4054c() {\n C2954d.c(ac$a.f(this.f22494b));\n }", "title": "" }, { "docid": "9146a33a3c494f5e7eeeba114c58427f", "score": "0.58715487", "text": "public abstract void mo37602PA();", "title": "" }, { "docid": "c632cfb48af17a971aedfd534264d85f", "score": "0.58578956", "text": "interface C1342h {\n /* renamed from: a */\n void mo1120a(Context context, Beta beta, IdManager idManager, C2843f c2843f, C1339c c1339c, C2787c c2787c, C2799j c2799j, C2834c c2834c);\n}", "title": "" }, { "docid": "56ef30c0d3ce6121c2759694bd7a993f", "score": "0.58575374", "text": "public abstract void mo9638f();", "title": "" }, { "docid": "1dc14abba9d7ba26b6fcd31908c3e619", "score": "0.5853304", "text": "void mo223e(agm agm);", "title": "" }, { "docid": "5a7d7d2b1a44987fac703a59218d8c15", "score": "0.5834016", "text": "void mo90376a();", "title": "" }, { "docid": "c2475fce3d06ea054fd7138516dbd005", "score": "0.58330333", "text": "void mo1561a();", "title": "" }, { "docid": "351ed0ca16321054ae11ffd07e9ec017", "score": "0.5832993", "text": "void mo5608a();", "title": "" }, { "docid": "bb67ce71244d5118187a8ed31f43de08", "score": "0.58289474", "text": "void mo118424a();", "title": "" }, { "docid": "8d23e87ce01093b6eb308c987b435e8d", "score": "0.5827718", "text": "void mo5674f();", "title": "" }, { "docid": "5c762c62f6989d6774f9c17232862ca8", "score": "0.58139044", "text": "void mo6100a();", "title": "" }, { "docid": "347cf77ba163bbd959a0fe8f5665d2dc", "score": "0.58110857", "text": "void mo41183j();", "title": "" }, { "docid": "21300d535b20a53032db867200b2535b", "score": "0.5810967", "text": "void mo5669b();", "title": "" }, { "docid": "118c0d81485b466fdfb468a93b8d9b21", "score": "0.5809652", "text": "void mo89736a();", "title": "" }, { "docid": "e2e5635edb032da8328081619452900c", "score": "0.5808315", "text": "public final void mo1370a() {\n }", "title": "" }, { "docid": "cec5054d94f1e6e0d89315ed42934064", "score": "0.57974756", "text": "void mo8618a();", "title": "" }, { "docid": "b2a7d9f122d851ed413fd66ce4af5025", "score": "0.5796926", "text": "abstract ab mo3630a();", "title": "" }, { "docid": "e8693017c30a87eb8c00310fbbb9b3ba", "score": "0.5794692", "text": "void mo1720a();", "title": "" }, { "docid": "4ecab5e90ca45a80080bfdbb64239246", "score": "0.5793748", "text": "void mo27484a();", "title": "" }, { "docid": "0955776dcda3c163dbd335f716c0b2f1", "score": "0.5793701", "text": "void mo10766b();", "title": "" }, { "docid": "649d5d1bbf217f0ea1f13ecace77b961", "score": "0.57895005", "text": "public void func_70305_f() {}", "title": "" }, { "docid": "1d77351779acb5df556e0f0a4365ba84", "score": "0.57872313", "text": "public void mo1913a() {\r\n StatServiceImpl.m8120c();\r\n }", "title": "" }, { "docid": "f185beaaebeddd573dd6167f2dc956b1", "score": "0.5783373", "text": "private final void m38901am() {\n C6707e.m35606a().mo21211a(\"gs://callcolor-c893a.appspot.com/other_app/other_app.json\").mo21219a(m38902an()).mo14138a((C4739g<? super TResult>) new C7307b<Object>(this)).mo14137a((C4738f) new C7308c(this));\n }", "title": "" }, { "docid": "cac107e4480957a4c7e9ee581f95aa49", "score": "0.57817394", "text": "void mo225f(agm agm);", "title": "" }, { "docid": "509db1f1897050eba6f9db2457b305bb", "score": "0.57752126", "text": "void mo153b() {\n }", "title": "" }, { "docid": "eba2844382389258ff1db1e166d5434b", "score": "0.5772185", "text": "public final /* bridge */ /* synthetic */ Object mo2551a() {\n String str;\n int i;\n caf caf = new caf((byte) 0);\n caf.f5114a = this.f5068a;\n if (!this.f5069b.mo2614b().mo4219a()) {\n Context context = caf.f5114a;\n dff dff = caf.f5115b;\n String packageName = ((Context) cev.m4629a(context)).getPackageName();\n String d = ccx.m4551d(context);\n PackageManager packageManager = context.getPackageManager();\n try {\n str = packageManager.getPackageInfo(packageName, 0).versionName;\n } catch (PackageManager.NameNotFoundException e) {\n bog.m3837c(\"MetricStamper\", \"Failed to get PackageInfo for: %s\", packageName);\n str = null;\n }\n int i2 = Build.VERSION.SDK_INT;\n if (!packageManager.hasSystemFeature(\"android.hardware.type.watch\")) {\n int i3 = Build.VERSION.SDK_INT;\n if (!packageManager.hasSystemFeature(\"android.software.leanback\")) {\n i = 2;\n } else {\n i = 4;\n }\n } else {\n i = 3;\n }\n int i4 = Build.VERSION.SDK_INT;\n return new cag(packageName, d, str, packageManager.hasSystemFeature(\"android.hardware.type.automotive\") ? 5 : i, 278652681L, new byn(context));\n }\n cbp cbp = (cbp) this.f5069b.mo2614b().mo4220b();\n throw null;\n }", "title": "" }, { "docid": "baf60770553874d6c49134164ceba16f", "score": "0.5768843", "text": "void mo24413b(C40439f c40439f);", "title": "" }, { "docid": "4ffad4bc2f13b7b3d9dc2ea55ddea792", "score": "0.5766199", "text": "void mo1732f();", "title": "" }, { "docid": "19c2c93e7e91bdee5756bdb7665b3b20", "score": "0.5763699", "text": "public final void mo1370a() {\n }", "title": "" }, { "docid": "19c2c93e7e91bdee5756bdb7665b3b20", "score": "0.5763699", "text": "public final void mo1370a() {\n }", "title": "" }, { "docid": "a23aae906a72cb538cbbba61f2dd85c1", "score": "0.5763208", "text": "public void mo58175y() {\n }", "title": "" }, { "docid": "8105b0f1b5128920be086988c381b6c5", "score": "0.5761875", "text": "public void mo630a() {\n }", "title": "" }, { "docid": "5d5208a48273ebee705969b9b430389b", "score": "0.5753639", "text": "void mo30049b();", "title": "" }, { "docid": "6261b3b74423b5112989ffe89e122c78", "score": "0.5753606", "text": "void mo11936a();", "title": "" }, { "docid": "e264aa75163aaccea6abaa16f79807ba", "score": "0.5753246", "text": "public void mo1321a() {\n }", "title": "" }, { "docid": "d8138cfa504361d43510193fd2aa2eba", "score": "0.5752242", "text": "void mo71408a();", "title": "" }, { "docid": "614d39a4486e5be255aa6e5853efbe1d", "score": "0.5747663", "text": "void mo71409b();", "title": "" }, { "docid": "1d92dd7179771d2bc7cdb698502aaca0", "score": "0.5747301", "text": "default void FDA() {\n\t\tSystem.out.println(\"US -- FDA\");\n\t}", "title": "" }, { "docid": "318aaa36895b60ffbe37bbe92b78f254", "score": "0.5746942", "text": "void mo72138a();", "title": "" }, { "docid": "0463c1b6018f17a37fad0a760dbbfd92", "score": "0.5746049", "text": "void mo24755a();", "title": "" }, { "docid": "0877b5dae4e93bffbf8c617b13a9de7d", "score": "0.5744999", "text": "void mo82253m();", "title": "" }, { "docid": "8fbb5b71805e2f3b6823d119f0f477e8", "score": "0.57430804", "text": "public void mo1323c() {\n }", "title": "" }, { "docid": "883b60afb86b013e91e8772d0e884992", "score": "0.5743045", "text": "void mo1375a();", "title": "" }, { "docid": "8528479f79fc89c98a1d2d20a342a55f", "score": "0.57395995", "text": "public void mo24451n() {\n }", "title": "" }, { "docid": "488a6a7cb952a5be064ad2f1cac55a87", "score": "0.57346916", "text": "public final void mo103168c() {\n }", "title": "" }, { "docid": "16edf37955445bd0ac5902f06fbb88f4", "score": "0.5734098", "text": "public abstract void mo27350a();", "title": "" }, { "docid": "c8b9fc614ae96f22fafe05b70c72f68e", "score": "0.57337356", "text": "void mo3179a();", "title": "" }, { "docid": "28133ec615784d80f4fe6d22b7ae5555", "score": "0.5732804", "text": "C0633v mo7308a();", "title": "" }, { "docid": "c13e6a1b7c130afa9fb0f34225bea4ef", "score": "0.5732255", "text": "protected void mo1555b() {\n }", "title": "" }, { "docid": "8b658c0b1d354db4f445b0181d517d13", "score": "0.5729178", "text": "void mo93547c();", "title": "" }, { "docid": "104b29b1141690a895627be876af2d9c", "score": "0.5720735", "text": "void mo1553a();", "title": "" }, { "docid": "1c34e0b3336dc067207dc1c90bd133a0", "score": "0.5712949", "text": "public void f() {\n\t\t \t\t\t\n\t\t \t\t}", "title": "" }, { "docid": "89915ce2e1513c09a4c547508a368fe6", "score": "0.5711269", "text": "public void mo85679a() {\n }", "title": "" }, { "docid": "c2becc59cca4649bc52bcc2fa518f0a5", "score": "0.5709974", "text": "public void mo641b() {\n }", "title": "" }, { "docid": "e74cf60be50602a7e8aa3e6f538c7fc6", "score": "0.5708967", "text": "public static void m(){\n \n }", "title": "" }, { "docid": "64630e03657c3eb9206810f1690dc8d6", "score": "0.5708062", "text": "void mo56977b();", "title": "" }, { "docid": "303bdf31eccdc8af3fe53d3c7fdeee65", "score": "0.5702654", "text": "void mo1557b();", "title": "" }, { "docid": "5fc869c261a483e793cf9874228fb011", "score": "0.5696215", "text": "void mo9610b();", "title": "" }, { "docid": "18e90ede7ad76466d961d2c018c17af2", "score": "0.5691655", "text": "void mo9609a();", "title": "" }, { "docid": "5d5e63eec22297d450884bbda7f4678b", "score": "0.56846017", "text": "void mo109185a();", "title": "" }, { "docid": "9e69291eb922c554a5458e301a398db2", "score": "0.5683167", "text": "void mo1629b();", "title": "" }, { "docid": "99828c63982a163cad2de7dd9568a13f", "score": "0.5669515", "text": "public void mo24450m() {\n }", "title": "" }, { "docid": "e16d41ea385156816d3f3e3e31badebd", "score": "0.56666344", "text": "private void m52678v() {\n }", "title": "" }, { "docid": "03a8e43bd34015a82b6c803265b49da5", "score": "0.56540567", "text": "C20675b mo38947d();", "title": "" }, { "docid": "455d9749a85c7ae4d843de761ece440b", "score": "0.56507176", "text": "void mo1733g();", "title": "" }, { "docid": "f8b0af74d81481c99923930c98cdfa3c", "score": "0.56486905", "text": "public abstract void mo9807F();", "title": "" }, { "docid": "dc01d9a06e65ca663ffcd7b7ef46da08", "score": "0.5645797", "text": "void mo5671c();", "title": "" }, { "docid": "886203c4fefd9b80b55c2ee360822a28", "score": "0.5642421", "text": "private SCFeedMagicForPlantRet() {}", "title": "" }, { "docid": "932f89aa430412ba586fee1ea95a4a0b", "score": "0.5638742", "text": "akh mo1253a();", "title": "" }, { "docid": "07f72993e8304bed4b0c8b10e7f4b9c7", "score": "0.5637331", "text": "void mo1376b();", "title": "" }, { "docid": "0dfff4bcdd042ba3f1abde04571cf481", "score": "0.5634613", "text": "void mo1631c();", "title": "" }, { "docid": "875dedcfe211844499e73a086aeca3c5", "score": "0.56308544", "text": "void mo30048a();", "title": "" } ]
3bc0bc51d0e0fe0a08d30916f0997990
Detects and resolves all collisions between the player and his neighboring tiles. When a collision is detected, the player is pushed away along one axis to prevent overlapping. There is some special logic for the Y axis to handle platforms which behave differently depending on direction of movement.
[ { "docid": "158d5bbac87fa58f4a38572494c4e870", "score": "0.7692868", "text": "private void HandleCollisions() {\r\n // Get the player's bounding rectangle and find neighboring tiles.\r\n Rectangle bounds = BoundingRectangle();\r\n int leftTile = (int) Math.floor((float) bounds.Left / Tile.Width);\r\n int rightTile = (int) Math.ceil(((float) bounds.Right() / Tile.Width)) - 1;\r\n int topTile = (int) Math.floor((float) bounds.Top / Tile.Height);\r\n int bottomTile = (int) Math.ceil(((float) bounds.Bottom() / Tile.Height)) - 1;\r\n\r\n // Reset flag to search for ground collision.\r\n isOnGround = false;\r\n\r\n // For each potentially colliding tile,\r\n for (int y = topTile; y <= bottomTile; ++y) {\r\n for (int x = leftTile; x <= rightTile; ++x) {\r\n // If this tile is collidable,\r\n TileCollision collision = Level().GetCollision(x, y);\r\n if (collision != TileCollision.Passable) {\r\n // Determine collision depth (with direction) and magnitude.\r\n Rectangle tileBounds = Level().GetBounds(x, y);\r\n Vector2 depth = Rectangle.GetIntersectionDepth(bounds, tileBounds);\r\n if (depth != Vector2.Zero) {\r\n float absDepthX = Math.abs(depth.X);\r\n float absDepthY = Math.abs(depth.Y);\r\n\r\n // Resolve the collision along the shallow axis.\r\n if (absDepthY < absDepthX || collision == TileCollision.Platform) {\r\n // If we crossed the top of a tile, we are on the ground.\r\n if (previousBottom <= tileBounds.Top)\r\n isOnGround = true;\r\n\r\n // Ignore platforms, unless we are on the ground.\r\n if (collision == TileCollision.Impassable || IsOnGround()) {\r\n // Resolve the collision along the Y axis.\r\n setPosition(new Vector2(Position().X, Position().Y + depth.Y));\r\n\r\n // Perform further collisions with the new bounds.\r\n bounds = BoundingRectangle();\r\n }\r\n } else if (collision == TileCollision.Impassable) // Ignore\r\n // platforms.\r\n {\r\n // Resolve the collision along the X axis.\r\n setPosition(new Vector2(Position().X + depth.X, Position().Y));\r\n\r\n // Perform further collisions with the new bounds.\r\n bounds = BoundingRectangle();\r\n }\r\n }\r\n }\r\n }\r\n }\r\n\r\n // Save the new bounds bottom.\r\n previousBottom = bounds.Bottom();\r\n }", "title": "" } ]
[ { "docid": "3465fa3cc27844dc27a0bf988cfd952f", "score": "0.68697447", "text": "public void checkCollision()\r\n\t{\r\n\t\tcurrentColumn = (int) x / tileSize;\r\n\t\tcurrentRow = (int) y / tileSize;\r\n\r\n\t\txDest = x + xDirection;\r\n\t\tyDest = y + yDirection;\r\n\r\n\t\t// Check top collision\r\n\t\tdead = calculateCorners(x, yDest);\r\n\t\tif (yDirection < 0)\r\n\t\t{\r\n\t\t\tif (topLeftBlocked || topRightBlocked)\r\n\t\t\t{\r\n\t\t\t\t// If the top of the player hits a blocked tile stop\r\n\t\t\t\tif (topLeftType == Tile.BLOCKED || topRightType == Tile.BLOCKED)\r\n\t\t\t\t{\r\n\t\t\t\t\tyDirection = 0;\r\n\t\t\t\t}\r\n\t\t\t\telse if (topLeftType >= Tile.LAVA || topRightType >= Tile.LAVA)\r\n\t\t\t\t{\r\n\t\t\t\t\t// If the player is already in a liquid allow the top of the\r\n\t\t\t\t\t// player to go through liquid\r\n\t\t\t\t\tif (bottomLeftType >= Tile.LAVA\r\n\t\t\t\t\t\t\t|| bottomLeftType >= Tile.LAVA\r\n\t\t\t\t\t\t\t|| currentTileType >= Tile.LAVA)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\ty += yDirection;\r\n\t\t\t\t\t}\r\n\t\t\t\t\t// If the player isnt in liquid and hits liquid stop\r\n\t\t\t\t\telse\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tyDirection = 0;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t{\r\n\t\t\t\ty += yDirection;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\t// Check bottom collision\r\n\t\tif (yDirection > 0)\r\n\t\t{\r\n\t\t\tif (bottomLeftBlocked || bottomRightBlocked)\r\n\t\t\t{\r\n\t\t\t\t// Stop falling if the player hits ground\r\n\t\t\t\tif (bottomLeftType == Tile.BLOCKED\r\n\t\t\t\t\t\t|| bottomRightType == Tile.BLOCKED)\r\n\t\t\t\t{\r\n\t\t\t\t\tyDirection = 0;\r\n\t\t\t\t\tfalling = false;\r\n\t\t\t\t}\r\n\t\t\t\telse if (bottomLeftType >= Tile.LAVA\r\n\t\t\t\t\t\t|| bottomRightType >= Tile.LAVA)\r\n\t\t\t\t{\r\n\t\t\t\t\t// Stop falling if the player is at the bottom of the liquid\r\n\t\t\t\t\tif ((lowerLeftEmpty || lowerRightEmpty\r\n\t\t\t\t\t\t\t|| lowerRightType >= Tile.LAVA || lowerLeftType >= Tile.LAVA)\r\n\t\t\t\t\t\t\t&& currentTileType >= Tile.LAVA)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tyDirection = 0;\r\n\t\t\t\t\t\tfalling = false;\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\ty += yDirection;\r\n\t\t\t\t\t\tfalling = true;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t{\r\n\t\t\t\t// Dont let the player fall through liquid\r\n\t\t\t\tif (currentTileType >= Tile.LAVA)\r\n\t\t\t\t{\r\n\t\t\t\t\tyDirection = 0;\r\n\t\t\t\t\tfalling = false;\r\n\t\t\t\t}\r\n\t\t\t\telse\r\n\t\t\t\t{\r\n\t\t\t\t\ty += yDirection;\r\n\t\t\t\t\tfalling = true;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\t// Check left collision\r\n\t\tdead = calculateCorners(xDest, y);\r\n\t\tif (xDirection < 0)\r\n\t\t{\r\n\t\t\t// Stop if the player hits a wall\r\n\t\t\tif (topLeftType == Tile.BLOCKED || bottomLeftType == Tile.BLOCKED)\r\n\t\t\t{\r\n\t\t\t\txDirection = 0;\r\n\t\t\t}\r\n\t\t\telse if (topLeftType >= Tile.LAVA && bottomLeftType < Tile.LAVA)\r\n\t\t\t{\r\n\t\t\t\txDirection = 0;\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t{\r\n\t\t\t\tx += xDirection;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\t// Check right collision\r\n\t\tif (xDirection > 0)\r\n\t\t{\r\n\t\t\t// Stop if the player hits a wall\r\n\t\t\tif (topRightType == Tile.BLOCKED || bottomRightType == Tile.BLOCKED)\r\n\t\t\t{\r\n\t\t\t\txDirection = 0;\r\n\t\t\t}\r\n\t\t\telse if (topRightType >= Tile.LAVA && bottomRightType < Tile.LAVA)\r\n\t\t\t{\r\n\t\t\t\txDirection = 0;\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t{\r\n\t\t\t\tx += xDirection;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\t// Check if player should falls\r\n\t\tif (!falling)\r\n\t\t{\r\n\t\t\tdead = calculateCorners(x, yDest + 1);\r\n\t\t\tif (!bottomLeftBlocked && !bottomRightBlocked)\r\n\t\t\t{\r\n\t\t\t\t// Stop the player from falling if it is in liquid\r\n\t\t\t\tif (currentTileType >= Tile.LAVA)\r\n\t\t\t\t{\r\n\t\t\t\t\tfalling = false;\r\n\t\t\t\t}\r\n\t\t\t\telse\r\n\t\t\t\t{\r\n\t\t\t\t\tfalling = true;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\telse if (bottomLeftBlocked && bottomRightBlocked)\r\n\t\t\t{\r\n\t\t\t\tif (bottomLeftType >= Tile.LAVA && bottomRightType >= Tile.LAVA)\r\n\t\t\t\t{\r\n\t\t\t\t\tif (lowerRightType >= Tile.LAVA\r\n\t\t\t\t\t\t\t|| lowerLeftType >= Tile.LAVA)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tfalling = true;\r\n\r\n\t\t\t\t\t}\r\n\t\t\t\t\t// Stop falling when the player reaches the bottom of the\r\n\t\t\t\t\t// liquid\r\n\t\t\t\t\telse if (lowerLeftEmpty || lowerRightEmpty)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tfalling = false;\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\telse if (falling)\r\n\t\t{\r\n\t\t\tdead = calculateCorners(x, yDest + 1);\r\n\t\t\tif (!bottomLeftBlocked && !bottomRightBlocked)\r\n\t\t\t{\r\n\t\t\t\t// Stop the player from falling if it is in liquid\r\n\t\t\t\tif (currentTileType >= Tile.LAVA)\r\n\t\t\t\t{\r\n\t\t\t\t\tfalling = false;\r\n\t\t\t\t}\r\n\t\t\t\telse\r\n\t\t\t\t{\r\n\t\t\t\t\tfalling = true;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\telse if (bottomLeftBlocked && bottomRightBlocked)\r\n\t\t\t{\r\n\t\t\t\tif (bottomLeftType >= Tile.LAVA && bottomRightType >= Tile.LAVA)\r\n\t\t\t\t{\r\n\t\t\t\t\tif (!lowerLeftEmpty || !lowerRightEmpty)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tfalling = true;\r\n\t\t\t\t\t}\r\n\t\t\t\t\t// Stop falling when the player reaches the bottom of the\r\n\t\t\t\t\t// liquid\r\n\t\t\t\t\telse if (lowerLeftEmpty || lowerRightEmpty)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tfalling = false;\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// Check if the player hits a laser\r\n\t\tfor (int buttonLaser = 0; buttonLaser < TileMap.buttons.size(); buttonLaser++)\r\n\t\t{\r\n\t\t\tButton button = TileMap.buttons.get(buttonLaser);\r\n\t\t\tif (button.hasPlayerInLaser((int) x, (int) y))\r\n\t\t\t{\r\n\t\t\t\tdead = true;\r\n\t\t\t}\r\n\t\t}\r\n\t\tfor (int switchLaser = 0; switchLaser < TileMap.switches.size(); switchLaser++)\r\n\t\t{\r\n\t\t\tSwitch aSwitch = TileMap.switches.get(switchLaser);\r\n\t\t\tif (aSwitch.hasPlayerInLaser((int) x, (int) y))\r\n\t\t\t{\r\n\t\t\t\tdead = true;\r\n\t\t\t}\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "5c2ed50d56e503ad3540ef18711eddc1", "score": "0.6535752", "text": "public void playerCollisionDetection() {\r\n ///////////////////////MOVING OBJECTS BASED ON COLLISION OF THE CHARACTER //////////\r\n //moves all the player hit boxes, bullets, the player and the bullet return point\r\n if ((playerHitBoxTL.intersects(Enemy1HitBox)) || (playerHitBoxTL.intersects(Enemy2HitBox)) || (playerHitBoxTL.intersects(Enemy3HitBox)) || (playerHitBoxTL.intersects(Enemy4HitBox)) || playerHitBoxTL.intersects(Enemy5HitBox) || playerHitBoxTL.intersects(Enemy6HitBox) || playerHitBoxTL.intersects(Enemy7HitBox) || playerHitBoxTL.intersects(Enemy8HitBox) || playerHitBoxTL.intersects(Enemy11HitBox) || playerHitBoxTL.intersects(Enemy12HitBox) || playerHitBoxTL.intersects(Enemy13HitBox) || playerHitBoxTL.intersects(Enemy14HitBox) || playerHitBoxTL.intersects(Enemy15HitBox) || playerHitBoxTL.intersects(Enemy16HitBox) || playerHitBoxTL.intersects(Enemy17HitBox)) {\r\n if (((thePlayer.getLocation().x + thePlayer.getWidth() + 70) > width) || ((thePlayer.getLocation().y + thePlayer.getHeight() + 70) > height)) {\r\n thePlayer.setLocation(thePlayer.getLocation().x - 140, thePlayer.getLocation().y - 140);\r\n playerHitBoxTL.setLocation(playerHitBoxTL.getLocation().x - 140, playerHitBoxTL.getLocation().y - 140);\r\n playerHitBoxTR.setLocation(playerHitBoxTR.getLocation().x - 140, playerHitBoxTR.getLocation().y - 140);\r\n playerHitBoxBL.setLocation(playerHitBoxBL.getLocation().x - 140, playerHitBoxBL.getLocation().y - 140);\r\n playerHitBoxBR.setLocation(playerHitBoxBR.getLocation().x - 140, playerHitBoxBR.getLocation().y - 140);\r\n Bullet1.setLocation(Bullet1.getLocation().x - 140, Bullet1.getLocation().y - 140);\r\n Bullet2.setLocation(Bullet2.getLocation().x - 140, Bullet2.getLocation().y - 140);\r\n Bullet3.setLocation(Bullet3.getLocation().x - 140, Bullet3.getLocation().y - 140);\r\n Bullet4.setLocation(Bullet4.getLocation().x - 140, Bullet4.getLocation().y - 140);\r\n Bullet5.setLocation(Bullet5.getLocation().x - 140, Bullet5.getLocation().y - 140);\r\n bulletReturnPoint.setLocation(bulletReturnPoint.getLocation().x - 140, bulletReturnPoint.getLocation().y - 140);\r\n healthBar.setLocation(healthBar.getLocation().x - 140, healthBar.getLocation().y - 140);\r\n } else {\r\n //moves everything down and to the right if the character is hit from the top left\r\n thePlayer.setLocation(thePlayer.getLocation().x + 70, thePlayer.getLocation().y + 70);\r\n playerHitBoxTL.setLocation(playerHitBoxTL.getLocation().x + 70, playerHitBoxTL.getLocation().y + 70);\r\n playerHitBoxTR.setLocation(playerHitBoxTR.getLocation().x + 70, playerHitBoxTR.getLocation().y + 70);\r\n playerHitBoxBL.setLocation(playerHitBoxBL.getLocation().x + 70, playerHitBoxBL.getLocation().y + 70);\r\n playerHitBoxBR.setLocation(playerHitBoxBR.getLocation().x + 70, playerHitBoxBR.getLocation().y + 70);\r\n Bullet1.setLocation(Bullet1.getLocation().x + 70, Bullet1.getLocation().y + 70);\r\n Bullet2.setLocation(Bullet2.getLocation().x + 70, Bullet2.getLocation().y + 70);\r\n Bullet3.setLocation(Bullet3.getLocation().x + 70, Bullet3.getLocation().y + 70);\r\n Bullet4.setLocation(Bullet4.getLocation().x + 70, Bullet4.getLocation().y + 70);\r\n Bullet5.setLocation(Bullet5.getLocation().x + 70, Bullet5.getLocation().y + 70);\r\n bulletReturnPoint.setLocation(bulletReturnPoint.getLocation().x + 70, bulletReturnPoint.getLocation().y + 70);\r\n healthBar.setLocation(healthBar.getLocation().x + 70, healthBar.getLocation().y + 70);\r\n }\r\n thePlayer.Health -= 10 + enemyDamageBuff;\r\n } //this process is the same for when the player gets hit anywhere\r\n else if ((playerHitBoxTR.intersects(Enemy1HitBox)) || (playerHitBoxTR.intersects(Enemy2HitBox)) || (playerHitBoxTR.intersects(Enemy3HitBox)) || (playerHitBoxTR.intersects(Enemy4HitBox)) || playerHitBoxTR.intersects(Enemy5HitBox) || playerHitBoxTR.intersects(Enemy6HitBox) || playerHitBoxTR.intersects(Enemy7HitBox) || playerHitBoxTR.intersects(Enemy8HitBox) || playerHitBoxTR.intersects(Enemy11HitBox) || playerHitBoxTR.intersects(Enemy12HitBox) || playerHitBoxTR.intersects(Enemy13HitBox) || playerHitBoxTR.intersects(Enemy14HitBox) || playerHitBoxTR.intersects(Enemy15HitBox) || playerHitBoxTR.intersects(Enemy16HitBox) || playerHitBoxTR.intersects(Enemy17HitBox)) {\r\n //moves everything down and to the left if the character is hit from the top right\r\n if (((thePlayer.getLocation().x - 70) < 0) || ((thePlayer.getLocation().y + thePlayer.getHeight() + 70) > height)) {\r\n thePlayer.setLocation(thePlayer.getLocation().x + 140, thePlayer.getLocation().y - 140);\r\n playerHitBoxTL.setLocation(playerHitBoxTL.getLocation().x + 140, playerHitBoxTL.getLocation().y - 140);\r\n playerHitBoxTR.setLocation(playerHitBoxTR.getLocation().x + 140, playerHitBoxTR.getLocation().y - 140);\r\n playerHitBoxBL.setLocation(playerHitBoxBL.getLocation().x + 140, playerHitBoxBL.getLocation().y - 140);\r\n playerHitBoxBR.setLocation(playerHitBoxBR.getLocation().x + 140, playerHitBoxBR.getLocation().y - 140);\r\n Bullet1.setLocation(Bullet1.getLocation().x + 140, Bullet1.getLocation().y - 140);\r\n Bullet2.setLocation(Bullet2.getLocation().x + 140, Bullet2.getLocation().y - 140);\r\n Bullet3.setLocation(Bullet3.getLocation().x + 140, Bullet3.getLocation().y - 140);\r\n Bullet4.setLocation(Bullet4.getLocation().x + 140, Bullet4.getLocation().y - 140);\r\n Bullet5.setLocation(Bullet5.getLocation().x + 140, Bullet5.getLocation().y - 140);\r\n bulletReturnPoint.setLocation(bulletReturnPoint.getLocation().x + 140, bulletReturnPoint.getLocation().y - 140);\r\n healthBar.setLocation(healthBar.getLocation().x + 140, healthBar.getLocation().y - 140);\r\n } else {\r\n thePlayer.setLocation(thePlayer.getLocation().x - 70, thePlayer.getLocation().y + 70);\r\n playerHitBoxTL.setLocation(playerHitBoxTL.getLocation().x - 70, playerHitBoxTL.getLocation().y + 70);\r\n playerHitBoxTR.setLocation(playerHitBoxTR.getLocation().x - 70, playerHitBoxTR.getLocation().y + 70);\r\n playerHitBoxBL.setLocation(playerHitBoxBL.getLocation().x - 70, playerHitBoxBL.getLocation().y + 70);\r\n playerHitBoxBR.setLocation(playerHitBoxBR.getLocation().x - 70, playerHitBoxBR.getLocation().y + 70);\r\n Bullet1.setLocation(Bullet1.getLocation().x - 70, Bullet1.getLocation().y + 70);\r\n Bullet2.setLocation(Bullet2.getLocation().x - 70, Bullet2.getLocation().y + 70);\r\n Bullet3.setLocation(Bullet3.getLocation().x - 70, Bullet3.getLocation().y + 70);\r\n Bullet4.setLocation(Bullet4.getLocation().x - 70, Bullet4.getLocation().y + 70);\r\n Bullet5.setLocation(Bullet5.getLocation().x - 70, Bullet5.getLocation().y + 70);\r\n bulletReturnPoint.setLocation(bulletReturnPoint.getLocation().x - 70, bulletReturnPoint.getLocation().y + 70);\r\n healthBar.setLocation(healthBar.getLocation().x - 70, healthBar.getLocation().y + 70);\r\n }\r\n thePlayer.Health -= 10 + enemyDamageBuff;\r\n }\r\n else if ((playerHitBoxBL.intersects(Enemy1HitBox)) || (playerHitBoxBL.intersects(Enemy2HitBox)) || (playerHitBoxBL.intersects(Enemy3HitBox)) || (playerHitBoxBL.intersects(Enemy4HitBox)) || playerHitBoxBL.intersects(Enemy5HitBox) || playerHitBoxBL.intersects(Enemy6HitBox) || playerHitBoxBL.intersects(Enemy7HitBox) || playerHitBoxBL.intersects(Enemy8HitBox) || playerHitBoxBL.intersects(Enemy11HitBox) || playerHitBoxBL.intersects(Enemy12HitBox) || playerHitBoxBL.intersects(Enemy13HitBox) || playerHitBoxBL.intersects(Enemy14HitBox) || playerHitBoxBL.intersects(Enemy15HitBox) || playerHitBoxBL.intersects(Enemy16HitBox) || playerHitBoxBL.intersects(Enemy17HitBox)) {\r\n //moves everything up and to the right if the character is hit from the bottom left\r\n if (((thePlayer.getLocation().x + thePlayer.getWidth() + 70) > width) || ((thePlayer.getLocation().y - 70) < 0)) {\r\n thePlayer.setLocation(thePlayer.getLocation().x - 140, thePlayer.getLocation().y + 140);\r\n playerHitBoxTL.setLocation(playerHitBoxTL.getLocation().x - 140, playerHitBoxTL.getLocation().y + 140);\r\n playerHitBoxTR.setLocation(playerHitBoxTR.getLocation().x - 140, playerHitBoxTR.getLocation().y + 140);\r\n playerHitBoxBL.setLocation(playerHitBoxBL.getLocation().x - 140, playerHitBoxBL.getLocation().y + 140);\r\n playerHitBoxBR.setLocation(playerHitBoxBR.getLocation().x - 140, playerHitBoxBR.getLocation().y + 140);\r\n Bullet1.setLocation(Bullet1.getLocation().x - 140, Bullet1.getLocation().y + 140);\r\n Bullet2.setLocation(Bullet2.getLocation().x - 140, Bullet2.getLocation().y + 140);\r\n Bullet3.setLocation(Bullet3.getLocation().x - 140, Bullet3.getLocation().y + 140);\r\n Bullet4.setLocation(Bullet4.getLocation().x - 140, Bullet4.getLocation().y + 140);\r\n Bullet5.setLocation(Bullet5.getLocation().x - 140, Bullet5.getLocation().y + 140);\r\n bulletReturnPoint.setLocation(bulletReturnPoint.getLocation().x - 140, bulletReturnPoint.getLocation().y + 140);\r\n healthBar.setLocation(healthBar.getLocation().x - 140, healthBar.getLocation().y + 140);\r\n } else {\r\n thePlayer.setLocation(thePlayer.getLocation().x + 70, thePlayer.getLocation().y - 70);\r\n playerHitBoxTL.setLocation(playerHitBoxTL.getLocation().x + 70, playerHitBoxTL.getLocation().y - 70);\r\n playerHitBoxTR.setLocation(playerHitBoxTR.getLocation().x + 70, playerHitBoxTR.getLocation().y - 70);\r\n playerHitBoxBL.setLocation(playerHitBoxBL.getLocation().x + 70, playerHitBoxBL.getLocation().y - 70);\r\n playerHitBoxBR.setLocation(playerHitBoxBR.getLocation().x + 70, playerHitBoxBR.getLocation().y - 70);\r\n Bullet1.setLocation(Bullet1.getLocation().x + 70, Bullet1.getLocation().y - 70);\r\n Bullet2.setLocation(Bullet2.getLocation().x + 70, Bullet2.getLocation().y - 70);\r\n Bullet3.setLocation(Bullet3.getLocation().x + 70, Bullet3.getLocation().y - 70);\r\n Bullet4.setLocation(Bullet4.getLocation().x + 70, Bullet4.getLocation().y - 70);\r\n Bullet5.setLocation(Bullet5.getLocation().x + 70, Bullet5.getLocation().y - 70);\r\n bulletReturnPoint.setLocation(bulletReturnPoint.getLocation().x + 70, bulletReturnPoint.getLocation().y - 70);\r\n healthBar.setLocation(healthBar.getLocation().x + 70, healthBar.getLocation().y - 70);\r\n }\r\n thePlayer.Health -= 10 + enemyDamageBuff;\r\n }\r\n else if ((playerHitBoxBR.intersects(Enemy1HitBox)) || (playerHitBoxBR.intersects(Enemy2HitBox)) || (playerHitBoxBR.intersects(Enemy3HitBox)) || (playerHitBoxBR.intersects(Enemy4HitBox)) || playerHitBoxBR.intersects(Enemy5HitBox) || playerHitBoxBR.intersects(Enemy6HitBox) || playerHitBoxBR.intersects(Enemy7HitBox) || playerHitBoxBR.intersects(Enemy8HitBox) || playerHitBoxBR.intersects(Enemy11HitBox) || playerHitBoxBR.intersects(Enemy12HitBox) || playerHitBoxBR.intersects(Enemy13HitBox) || playerHitBoxBR.intersects(Enemy14HitBox) || playerHitBoxBR.intersects(Enemy15HitBox) || playerHitBoxBR.intersects(Enemy16HitBox) || playerHitBoxBR.intersects(Enemy17HitBox)) {\r\n //moves everything up and to the left if its hit from the bottom right\r\n if (((thePlayer.getLocation().x - 70) < 0) || ((thePlayer.getLocation().y - 70) < 0)) {\r\n thePlayer.setLocation(thePlayer.getLocation().x + 140, thePlayer.getLocation().y + 140);\r\n playerHitBoxTL.setLocation(playerHitBoxTL.getLocation().x + 140, playerHitBoxTL.getLocation().y + 140);\r\n playerHitBoxTR.setLocation(playerHitBoxTR.getLocation().x + 140, playerHitBoxTR.getLocation().y + 140);\r\n playerHitBoxBL.setLocation(playerHitBoxBL.getLocation().x + 140, playerHitBoxBL.getLocation().y + 140);\r\n playerHitBoxBR.setLocation(playerHitBoxBR.getLocation().x + 140, playerHitBoxBR.getLocation().y + 140);\r\n Bullet1.setLocation(Bullet1.getLocation().x + 140, Bullet1.getLocation().y + 140);\r\n Bullet2.setLocation(Bullet2.getLocation().x + 140, Bullet2.getLocation().y + 140);\r\n Bullet3.setLocation(Bullet3.getLocation().x + 140, Bullet3.getLocation().y + 140);\r\n Bullet4.setLocation(Bullet4.getLocation().x + 140, Bullet4.getLocation().y + 140);\r\n Bullet5.setLocation(Bullet5.getLocation().x + 140, Bullet5.getLocation().y + 140);\r\n bulletReturnPoint.setLocation(bulletReturnPoint.getLocation().x + 140, bulletReturnPoint.getLocation().y + 140);\r\n healthBar.setLocation(healthBar.getLocation().x + 140, healthBar.getLocation().y + 140);\r\n } else {\r\n thePlayer.setLocation(thePlayer.getLocation().x - 70, thePlayer.getLocation().y - 70);\r\n playerHitBoxTL.setLocation(playerHitBoxTL.getLocation().x - 70, playerHitBoxTL.getLocation().y - 70);\r\n playerHitBoxTR.setLocation(playerHitBoxTR.getLocation().x - 70, playerHitBoxTR.getLocation().y - 70);\r\n playerHitBoxBL.setLocation(playerHitBoxBL.getLocation().x - 70, playerHitBoxBL.getLocation().y - 70);\r\n playerHitBoxBR.setLocation(playerHitBoxBR.getLocation().x - 70, playerHitBoxBR.getLocation().y - 70);\r\n Bullet1.setLocation(Bullet1.getLocation().x - 70, Bullet1.getLocation().y - 70);\r\n Bullet2.setLocation(Bullet2.getLocation().x - 70, Bullet2.getLocation().y - 70);\r\n Bullet3.setLocation(Bullet3.getLocation().x - 70, Bullet3.getLocation().y - 70);\r\n Bullet4.setLocation(Bullet4.getLocation().x - 70, Bullet4.getLocation().y - 70);\r\n Bullet5.setLocation(Bullet5.getLocation().x - 70, Bullet5.getLocation().y - 70);\r\n bulletReturnPoint.setLocation(bulletReturnPoint.getLocation().x - 70, bulletReturnPoint.getLocation().y - 70);\r\n healthBar.setLocation(healthBar.getLocation().x - 70, healthBar.getLocation().y - 70);\r\n }\r\n thePlayer.Health -= 10 + enemyDamageBuff;\r\n }\r\n if (thePlayer.Health <= 0) { //checks if the player health is 0\r\n thePlayer.setVisible(false); //if so makes the player invisible\r\n movementTimer.stop();\r\n Enemy1.movementTimer.stop();\r\n Enemy2.movementTimer.stop();\r\n Enemy3.movementTimer.stop();\r\n Enemy4.movementTimer.stop();\r\n Enemy5.movementTimer.stop();\r\n Enemy6.movementTimer.stop();\r\n Enemy7.movementTimer.stop();\r\n Enemy8.movementTimer.stop();\r\n Enemy11.movementTimer.stop();\r\n Enemy12.movementTimer.stop();\r\n Enemy13.movementTimer.stop();\r\n Enemy14.movementTimer.stop();\r\n Enemy15.movementTimer.stop();\r\n Enemy16.movementTimer.stop();\r\n Enemy17.movementTimer.stop();\r\n playerDeath(); //then builds the shop\r\n }\r\n }", "title": "" }, { "docid": "c6d6848f4e02397efcb5bd46f53855d9", "score": "0.6400492", "text": "public void collisionWithPlatform() {\n\t\t//collide from right side\n\t\t\n\t\t//collide from left side\n\t\t\n\t\t//collide from bottom\n\t\t\n\t\t//collide from top\n\t\t\n\t}", "title": "" }, { "docid": "8b6ccd4eb3b0138ca53595284f807a72", "score": "0.6380114", "text": "public void collideWithTile(TileCollision tileCollision);", "title": "" }, { "docid": "2448fc4b453c3e462eb43be5702060d5", "score": "0.63621825", "text": "private void handleCollisionY() { \n if(move.getVelocity().y > 0) {\n startY = endY = (int) (move.getPositionMineur().y + Miner.HEIGHT + move.getVelocity().y);\n } else {\n startY = endY = (int) (move.getPositionMineur().y + move.getVelocity().y);\n if((move.getPositionMineur().y + move.getVelocity().y) <= 0) {\n move.getVelocity().y = 0; \n }\n }\n startX = (int)(move.getPositionMineur().x);\n endX = (int) (move.getPositionMineur().x + Miner.WIDTH);\n getTiles(startX, startY, endX, endY, tiles);\n minerRect.y += move.getVelocity().y;\n for(Rectangle tile : tiles) {\n if(minerRect.overlaps(tile)) {\n // Notre hitbox est en colision\n // On reset la position en y\n if(move.getVelocity().y > 0) {\n // Repositionnement (tile est le bloc qui va entrer en colision)\n move.getPositionMineur().y = tile.y - Miner.HEIGHT;\n } else {\n // Position du mineur au dessus du tile.y (car tile.y pointe vers le bas, on ajoute la hauteur)\n move.getPositionMineur().y = tile.y + tile.height;\n // Changement d'état\n Miner.minerOnTheGround = true;\n Miner.state = Miner.State.MOVING;\n }\n move.getVelocity().y = 0;\n break; \n }\n }\n }", "title": "" }, { "docid": "ebd05101740ed03eaa7aaeff64f1fb59", "score": "0.6348536", "text": "private void collision() {\n\t\tfor (int i = 0; i < brownMeteors.length; i++) {\n\t\t\tif (distance(brownMeteors[i].getLayoutX() + ENTITIES_SIZE / 2,\n\t\t\t\t\tbrownMeteors[i].getLayoutY() - ENTITIES_SIZE / 2, player.getLayoutX() + ENTITIES_SIZE / 2,\n\t\t\t\t\tplayer.getLayoutY() - ENTITIES_SIZE / 2) <= ENTITIES_SIZE) { //if intersection happens between brownMeteor and the player\n\t\t\t\tshowScoreDecrease(brownMeteors[i].getLayoutX());\n\t\t\t\tsetNewElementPosition(brownMeteors[i]); //relocation\n\n\t\t\t\t// Update score -\n\t\t\t\tsc.score -= 3 * sc.collisionCounter;\n\t\t\t\tsc.collisionCounter++;\n\t\t\t}\n\t\t}\n\t\t// player vs grey Meteor\n\t\tfor (int i = 0; i < greyMeteors.length; i++) {\n\t\t\tif (distance(greyMeteors[i].getLayoutX() + ENTITIES_SIZE / 2,\n\t\t\t\t\tgreyMeteors[i].getLayoutY() - ENTITIES_SIZE / 2, player.getLayoutX() + ENTITIES_SIZE / 2,\n\t\t\t\t\tplayer.getLayoutY() - ENTITIES_SIZE / 2) <= ENTITIES_SIZE) { //if intersection happens between greyMeteor and the player\n\t\t\t\tshowScoreDecrease(greyMeteors[i].getLayoutX());\n\t\t\t\tsetNewElementPosition(greyMeteors[i]); //relocation\n\n\t\t\t\t// Update score -\n\t\t\t\tsc.score -= 3 * sc.collisionCounter;\n\t\t\t\tsc.collisionCounter++;\n\t\t\t}\n\t\t}\n\n\t\t// laser vs brown Meteor\n\t\tfor (int i = 0; i < lasers.size(); i++) {\n\t\t\tfor (int j = 0; j < brownMeteors.length; j++) { // 0 - 2 -> 3elem\n\t\t\t\tif (lasers.get(i).getBoundsInParent().intersects(brownMeteors[j].getBoundsInParent())) { // bounds of a\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// node in\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// it's\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// parent\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// coordinates\n\t\t\t\t\tsetNewElementPosition(brownMeteors[j]); // relocation\n\t\t\t\t\tgamePane.getChildren().remove(lasers.get(i)); //removes the laser from the window\n\t\t\t\t\tlasers.remove(i); // removes this laser from arraylist \n\t\t\t\t\tSystem.out.println(lasers.size());\n\n\t\t\t\t\t// Update score +\n\t\t\t\t\tsc.score += 1;\n\t\t\t\t\tbreak; // kein fehler mehr durch index out of bounds verletzung\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tfor (int i = 0; i < lasers.size(); i++) {\n\t\t\tfor (int j = 0; j < greyMeteors.length; j++) { // 0 - 2 -> 3elem\n\t\t\t\tif (lasers.get(i).getBoundsInParent().intersects(greyMeteors[j].getBoundsInParent())) { // bounds of a\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// node in it's\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// parent\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// coordinates\n\t\t\t\t\tsetNewElementPosition(greyMeteors[j]);// relocation\n\t\t\t\t\tgamePane.getChildren().remove(lasers.get(i));//removes the laser from the window\n\t\t\t\t\tlasers.remove(i);// removes this laser from arraylist \n\t\t\t\t\tSystem.out.println(lasers.size());\n\n\t\t\t\t\t// Update score +\n\t\t\t\t\tsc.score += 1;\n\t\t\t\t\tbreak; // kein fehler mehr durch index out of bounds verletzung\n\t\t\t\t}\n\t\t\t}\n\n\t\t}\n\t}", "title": "" }, { "docid": "b013be2e6d3e29eb0cd01d2ebb8708b1", "score": "0.62317497", "text": "public void collision() {\r\n\t\tIterator<String> itr = Game.collisionTiles.get(new Integer(0)).keySet().iterator();\r\n\t\twhile(itr.hasNext()) {\r\n\t\t\tString cur = itr.next();\r\n\t\t\t\r\n\t\t\tfor(int i = 0; i < Game.collisionTiles.get(new Integer(0)).get(cur).size(); i+=2) {\r\n\t\t\t\tif(getBounds().intersects(new Rectangle(Game.collisionTiles.get(new Integer(0)).get(cur).get(i), Game.collisionTiles.get(new Integer(0)).get(cur).get(i+1),\r\n\t\t\t\t\t\t48, 48))) {\r\n\t\t\t\t\tif(velX < 0) {\r\n\t\t\t\t\t\tx = Game.clampUpLeft((int)x, Game.collisionTiles.get(new Integer(0)).get(cur).get(i) + 42);\r\n\t\t\t\t\t\tthis.setVelX((int)this.getVelX()*-1);\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse if(velX > 0){\r\n\t\t\t\t\t\tx = Game.clampDownRight((int)x, Game.collisionTiles.get(new Integer(0)).get(cur).get(i)-250);\r\n\t\t\t\t\t\tthis.setVelX((int)this.getVelX()*-1);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "3d6fad11588e1533bff6df0a99d0d5b5", "score": "0.6109266", "text": "public void collisionDetection() {\n int[] playerPosition = player.getPosition();\n ArrayList<Agent> toBeRemoved = new ArrayList<Agent>();\n\n for (Agent agent : this.agents) {\n int[] vampirePosition = agent.getPosition();\n if ((vampirePosition[0] == playerPosition[0]) &&\n (vampirePosition[1] == playerPosition[1])) {\n toBeRemoved.add(agent);\n }\n }\n this.agents.removeAll(toBeRemoved);\n this.vampires -= toBeRemoved.size();\n }", "title": "" }, { "docid": "bc0d50e22dc47a99b80822f652e98429", "score": "0.60914147", "text": "public void ballCollisionWithSpecyficPlatform(){\n\t\tint interval = player.getWidth()/divideFragments;\n\t\t\n\t\tint tempPlayerX=playerX;\n\t\tfor(int i = 0; i < divideFragments*2; i+=2){\n\t\t\txydivFr[i] = tempPlayerX;\n\t\t\txydivFr[i+1] = tempPlayerX+interval;\n\t\t\ttempPlayerX = tempPlayerX+interval;\n\t\t}\n\t\tLog.d(TAG,\"\"+ xydivFr);\n\t\t\n\t\t//conditions depends on where ball touch player platform\n\t\tif( (ballX > xydivFr[0]) && (ballX < xydivFr[1]) )\n\t\t\tballDirectionX=-1;\n\t\telse if( (ballX > xydivFr[2]) && (ballX < xydivFr[3]) )\n\t\t\tballDirectionX=0;\n\t\telse if( (ballX > xydivFr[4]) && (ballX < xydivFr[5]) )\n\t\t\tballDirectionX=1;\n\t\n\t\t\t\t\n\t\t\n\t\t\n\t}", "title": "" }, { "docid": "32a236b9a3340a8da4241a6bf3ba87b7", "score": "0.6077079", "text": "public void checkCollision(SimpleGfxPlayer player) {\n int distanceOnX = getObjectCenterX() - getPlayerCenterX(player);\n int distanceOnY = getObjectCenterY() - getPlayerCenterY(player);\n\n int playerInnerDistanceOnX = player.getWidth() / 2;\n int objectInnerDistanceOnX = activeObject.getWidth() / 2;\n int sumOfInnerDistancesOnX = playerInnerDistanceOnX + objectInnerDistanceOnX;\n\n int playerInnerDistanceOnY = player.getHeight() / 2;\n int objectInnerDistanceOnY = activeObject.getHeight() / 2;\n int sumOfInnerDistancesOnY = playerInnerDistanceOnY + objectInnerDistanceOnY;\n\n boolean collision = ((((player.getX() + player.getWidth()) > activeObject.getPosX())\n && (player.getX() < (activeObject.getPosX() + activeObject.getWidth()))\n && (distanceOnY < sumOfInnerDistancesOnY)));\n\n int playerRightX = player.getX() + player.getWidth();\n int playerDownLeftPix = player.getY() + player.getHeight();\n\n int obstacleLeftX = activeObject.getPosX();\n int obstacleUpLeftPix = activeObject.getPosY();\n\n boolean collision2 = ((playerRightX - obstacleLeftX) >= activeObject.getSpeed()) && playerDownLeftPix > obstacleUpLeftPix\n && player.getX() < activeObject.getPosX();\n\n // Collision for damage\n\n if (collision2) {\n player.setPlayerDead();\n }\n\n }", "title": "" }, { "docid": "c0e66e4f46fad3ddd4f9febb9200b99d", "score": "0.60738", "text": "public void collision()\r\n\t{\n\t\tit=myu.walls.iterator();\r\n\t\t\t\r\n\t\t//gravity\r\n\t\t\t\r\n\t\t\t\r\n\t\t//for(int i=0;i<col.size();i++)\r\n\t\twhile(it.hasNext())\r\n\t\t{\r\n\t\t\tc=(Collider) it.next();\r\n\t\t\tlowleft.x=c.x; lowleft.y=c.y;\r\n\t\t\ttopleft.x=c.x; topleft.y=c.y+c.height;\r\n\t\t\tlowright.x=c.x+c.width; lowright.y=c.y;\r\n\t\t\ttopright.x=c.x+c.width; topright.y=c.y+c.height;\r\n\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\r\n\t\t\t//check x-axis \r\n\t\t\t//left collision\t\t\t\r\n\t\t\t//if(Math.abs(pos.x-lowright.x)<10) //per evitare concorrenze tra attivazione collisione laterale o top\\bottom, si attiva quella pił vicina\r\n\t\t\tif(pos.x<=lowright.x && pos.x>lowleft.x)\r\n\t\t\t{\t\r\n\t\t\t\tif((pos.y>=lowright.y&&pos.y<topright.y)||(pos.y+ph>lowright.y&&pos.y+ph<=topright.y))\r\n\t\t\t\t{\r\n\t\t\t\t\talive = false;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//right collision\r\n\t\t\t//if(Math.abs(pos.x+pw-lowleft.x)<10)\r\n\t\t\tif(pos.x+pw>=lowleft.x&&pos.x+pw<lowright.x)\r\n\t\t\t{\t//Gdx.app.log(\"a\",\"a\"+c.name);\r\n\t\t\t\tif((pos.y>=lowleft.y&&pos.y<topleft.y)||((pos.y+ph>lowleft.y)&&(pos.y+ph<topleft.y)))\r\n\t\t\t\t{\r\n\t\t\t\t\talive = false;\r\n\t\t\t\t}\t\t\t\t\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t\t/*\r\n\t\t\t\t\tif(ascending)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tif(Math.abs(pos.y+ph-lowleft.y)<10)\r\n\t\t\t\t\t\tif((pos.y+ph>lowleft.y)&&(pos.y+ph<topleft.y))\r\n\t\t\t\t\t\t\tif(((pos.x>lowleft.x)&&(pos.x<lowright.x))||((pos.x+pw>lowleft.x)&&(pos.x+pw<lowright.x)))\r\n\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t}else\r\n\t\t\t\t\t\tif(descending)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tif(Math.abs(pos.y-topleft.y)<10)\r\n\t\t\t\t\t\t\tif(pos.y<=topleft.y&&pos.y>lowleft.y)\r\n\t\t\t\t\t\t\t\tif((pos.x>=topleft.x && pos.x<=topright.x)||(pos.x+pw>=topleft.x&&pos.x+pw<=topright.x))\r\n\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\t\t\t\r\n\t\t\t}*/\t\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "0ed2f0f3691f1929cdd1ee526d2c9cb6", "score": "0.6053648", "text": "int checkTileCollisionsX(int xa)\n\t{\n\t\t// Tile bounds that are to be checked\n\t\tTile tile;\n\t\tTile tile2;\n\t\tTile tile3;\n\t\tTile tile4;\n\t\t\n\t\tTile tileOverlay;\n\t\tTile tileOverlay2;\n\t\tTile tileOverlay3;\n\t\tTile tileOverlay4;\n\t\t\n\t\t// bounds of player depending on direction\n\t\tRectangle bounds;\n\t\t\n\t\tboolean collision = false;\n\t//\tString intersectedTileEvent;\n\t\t\n\t\tif(xa > 0) // Left\t\n\t\t{\t\n\t\t\t// tiles are equal to the location of the tiles we are checking\n\t\t\t// for left, we are checking current tile, below current tile, one tile to the left of current tile, and one tile to the left of the tile below the current tile\n\t\t\ttile = currentMap.accessTile((currentTileX - 1) + currentTileY * currentMap.getWidth());\n\t\t\ttile2 = currentMap.accessTile((currentTileX - 1) + (currentTileY - 1) * currentMap.getWidth());\n\t\t tile3 = currentMap.accessTile(currentTileX + currentTileY * currentMap.getWidth());\n\t\t\ttile4 = currentMap.accessTile(currentTileX + (currentTileY - 1) * currentMap.getWidth());\n\t\t\t\n\t\t\ttileOverlay = currentMap.accessOverlayTile((currentTileX - 1) + currentTileY * currentMap.getWidth());\n\t\t\ttileOverlay2 = currentMap.accessOverlayTile((currentTileX - 1) + (currentTileY - 1) * currentMap.getWidth());\n\t\t tileOverlay3 = currentMap.accessOverlayTile(currentTileX + currentTileY * currentMap.getWidth());\n\t\t\ttileOverlay4 = currentMap.accessOverlayTile(currentTileX + (currentTileY - 1) * currentMap.getWidth());\n\t\t\t\n\t\t\t// set bounds equal to the player's left bounds, and then set the player's \"main bounds\" to the leftBounds\n\t\t\tbounds = playerMob.getLeftBounds();\n\t\t\tplayerMob.setBounds_(new Rectangle(startPosX + bounds.x, startPosY + bounds.y, bounds.width, bounds.height));\n\t\t\t\n\t\t\t// loop for each pixel moved (based on playerSpeed)\n\t\t\t// the plus one after playerSpeed is because when the code was originally written, an extra one is always added to the playerSpeed when moving\n\t\t\t// I don't know why that design choice was made but oh well\n\t\t\t// Anyway, set the bounds of the player one pixel ahead for each value of i and then check if it intersects with a tile bounds\n\t\t\t// if it does intersect, set the amount the player is allowed to move (xa) to that amount (so it stops right at the intersection of the tile)\n\t\t\t// Also, if it does intersect, set collision to true\n\t\t\t// lastly, reset the player bounds back to normal to prepare it for the next iteration\n\t\t\t// if there was a collision however, just break the loop (the reset of player bounds is still needed however)\n\t\t\tfor (int i = 0; i < playerSpeed + 1; i++)\n\t\t\t{\n\t\t\t\tplayerMob.setBounds_(new Rectangle(startPosX + bounds.x - i, startPosY + bounds.y, bounds.width, bounds.height));\n\t\t\t\t\n\t\t\t\tif (playerMob.getBounds_().intersects(tile3.getSolidBoundsLocation()))\n\t\t\t\t{\n\t\t\t\t\txa = i;\n\t\t\t\t\tcollision = true;\n\t\t\t\t\tintersectedTile = tile3;\n\t\t\t\t}\n\t\t\t\telse if (playerMob.getBounds_().intersects(tile.getSolidBoundsLocation()))\n\t\t\t\t{\n\t\t\t\t\txa = i;\n\t\t\t\t\tcollision = true;\n\t\t\t\t\tintersectedTile = tile;\n\t\t\t\t}\n\t\t\t\telse if (playerMob.getBounds_().intersects(tileOverlay3.getSolidBoundsLocation()))\n\t\t\t\t{\n\t\t\t\t\txa = i;\n\t\t\t\t\tcollision = true;\n\t\t\t\t\tintersectedTile = tileOverlay3;\n\t\t\t\t}\n\t\t\t\telse if (playerMob.getBounds_().intersects(tileOverlay.getSolidBoundsLocation()))\n\t\t\t\t{\n\t\t\t\t\txa = i;\n\t\t\t\t\tcollision = true;\n\t\t\t\t\tintersectedTile = tileOverlay;\n\t\t\t\t}\n\t\t\t\telse if (playerMob.getBounds_().intersects(tile2.getSolidBoundsLocation()) || \n\t\t\t\t\t\t playerMob.getBounds_().intersects(tile4.getSolidBoundsLocation()) || \n\t\t\t\t\t\t playerMob.getBounds_().intersects(tileOverlay2.getSolidBoundsLocation()) || \n\t\t\t\t\t\t playerMob.getBounds_().intersects(tileOverlay4.getSolidBoundsLocation()))\n\t\t\t\t{\n\t\t\t\t\txa = i;\t\n\t\t\t\t\tcollision = true;\n\t\t\t\t\tintersectedTile = null;\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tintersectedTile = null;\n\t\t\t\t}\n\t\t\t\tplayerMob.setBounds_(new Rectangle(startPosX + bounds.x + i, startPosY + bounds.y, bounds.width, bounds.height));\n\t\t\t\t\n\t\t\t\tif (collision)\n\t\t\t\t{\n\t\t\t\t\tif (!(intersectedTile == null))\n\t\t\t\t\t{\n\t\t\t\t\t\tintersectTile = true; // tells game you are currently intersecting a tile (used for action key checks and other stuff)\n\t\t\t\t\t}\t\t\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tintersectTile = false;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\telse if(xa < 0) // right\n\t\t{\n\t\t\ttile = currentMap.accessTile((currentTileX + 1) + currentTileY * currentMap.getWidth());\n\t\t\ttile2 = currentMap.accessTile((currentTileX + 1) + (currentTileY - 1) * currentMap.getWidth());\n\t\t tile3 = currentMap.accessTile(currentTileX + currentTileY * currentMap.getWidth());\n\t\t\ttile4 = currentMap.accessTile(currentTileX + (currentTileY - 1) * currentMap.getWidth());\n\n\t\t\ttileOverlay = currentMap.accessOverlayTile((currentTileX + 1) + currentTileY * currentMap.getWidth());\n\t\t\ttileOverlay2 = currentMap.accessOverlayTile((currentTileX + 1) + (currentTileY - 1) * currentMap.getWidth());\n\t\t tileOverlay3 = currentMap.accessOverlayTile(currentTileX + currentTileY * currentMap.getWidth());\n\t\t\ttileOverlay4 = currentMap.accessOverlayTile(currentTileX + (currentTileY - 1) * currentMap.getWidth());\n\t\t\t\n\t\t\t\n\t\t\tbounds = playerMob.getRightBounds();\n\t\t\tplayerMob.setBounds_(new Rectangle(startPosX + bounds.x, startPosY + bounds.y, bounds.width, bounds.height));\n\t\t\t\n\t\t\t\n\t\t\tfor (int i = 0; i < playerSpeed + 1; i++)\n\t\t\t{\n\t\t\t\tplayerMob.setBounds_(new Rectangle(startPosX + bounds.x + i, startPosY + bounds.y, bounds.width, bounds.height));\n\t\t\t\t\n\t\t\t\tif (playerMob.getBounds_().intersects(tile3.getSolidBoundsLocation()))\n\t\t\t\t{\n\t\t\t\t\txa = i * -1;\n\t\t\t\t\tcollision = true;\n\t\t\t\t\tintersectedTile = tile3;\n\t\t\t\t}\n\t\t\t\telse if (playerMob.getBounds_().intersects(tile.getSolidBoundsLocation()))\n\t\t\t\t{\n\t\t\t\t\txa = i * -1;\n\t\t\t\t\tcollision = true;\n\t\t\t\t\tintersectedTile = tile;\n\t\t\t\t}\n\t\t\t\telse if (playerMob.getBounds_().intersects(tileOverlay3.getSolidBoundsLocation()))\n\t\t\t\t{\n\t\t\t\t\txa = i * -1;\n\t\t\t\t\tcollision = true;\n\t\t\t\t\tintersectedTile = tileOverlay3;\n\t\t\t\t}\n\t\t\t\telse if (playerMob.getBounds_().intersects(tileOverlay.getSolidBoundsLocation()))\n\t\t\t\t{\n\t\t\t\t\txa = i * -1;\n\t\t\t\t\tcollision = true;\n\t\t\t\t\tintersectedTile = tileOverlay;\n\t\t\t\t}\n\t\t\t\telse if (playerMob.getBounds_().intersects(tile2.getSolidBoundsLocation()) || \n\t\t\t\t\t\t playerMob.getBounds_().intersects(tile4.getSolidBoundsLocation()) || \n\t\t\t\t\t\t playerMob.getBounds_().intersects(tileOverlay2.getSolidBoundsLocation()) || \n\t\t\t\t\t\t playerMob.getBounds_().intersects(tileOverlay4.getSolidBoundsLocation()))\n\t\t\t\t{\n\t\t\t\t\txa = i * -1;\t\n\t\t\t\t\tcollision = true;\n\t\t\t\t\tintersectedTile = null;\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tintersectedTile = null;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tplayerMob.setBounds_(new Rectangle(startPosX + bounds.x - i, startPosY + bounds.y, bounds.width, bounds.height));\n\t\t\t\n\t\t\t\tif (collision)\n\t\t\t\t{\n\t\t\t\t\tif (!(intersectedTile == null))\n\t\t\t\t\t{\n\t\t\t\t\t\tintersectTile = true; // tells game you are currently intersecting a tile (used for action key checks and other stuff)\n\t\t\t\t\t}\t\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tintersectTile = false;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\t\n\t\treturn xa; // return how many pixels you are allowed to move \n\t}", "title": "" }, { "docid": "e2a5f9738ba106cfdbfec02325e5b899", "score": "0.60419786", "text": "public boolean playerMove(int x, int y)\n {\n //To make this method work, I will need to put the listener for movemaking inside this class and then make sure that the\n //two grids can reference each other through instance variables.\n for(int a = 0; a<tiles.length; a++)\n {\n for(int b = 0; b<tiles[a].length; b++)\n {\n if(tiles[a][b].isInside(x,y)==true)\n {\n tiles[a][b].setState(true);\n if(tiles[a][b].getID() != 0)\n {\n tiles[a][b].setColor(Color.ORANGE);\n }\n else\n {\n tiles[a][b].setColor(Color.BLACK);\n }\n }\n return true;\n }\n }\n return false;\n }", "title": "" }, { "docid": "95c61315a6d31a46baee7b6816af7150", "score": "0.6041653", "text": "public void detectCollisions() {\n for (Rectangle boundaryRect : this.spaceBoundaries) {\n // first, make sure we are not moving out of our \"space\"\n if (boundaryRect.intersects(this.mcHammer.collisionShape())) {\n this.mcHammer.onCollision(boundaryRect);\n }\n \n // collision detection for hammers\n for (Hammer hammer : this.hammerList) {\n // detect collisions with hammers and boundaries\n if (boundaryRect.intersects(hammer.collisionRectangle())) {\n hammer.onCollision(boundaryRect);\n }\n \n // collision between hammers and buildings\n for (Building building : this.buildings) {\n if (hammer.collisionRectangle().intersects(building.collisionRectangle())) {\n hammer.onCollision(building);\n building.onCollision(hammer);\n }\n }\n }\n }\n \n // world collisions\n for (World world : this.worlds) {\n // detect collisions between player and the worlds\n if (world.collisionCircle().intersects(this.mcHammer.collisionShape())) {\n this.mcHammer.onCollision(world);\n }\n \n // detect collisions between buildings and the worlds\n for (Building building : this.buildings) {\n if (world.collisionCircle().intersects(building.collisionRectangle())) {\n building.onCollision(world);\n }\n }\n }\n \n }", "title": "" }, { "docid": "29e9b15134f2601aa1fbb33efe49f2b8", "score": "0.5997873", "text": "@Override\n\tpublic void collisionResolve(SpaceStationMir mir) {\n\n\t}", "title": "" }, { "docid": "18ebf3698acf61476810d15850390e87", "score": "0.59728706", "text": "private boolean collision(double xa, double ya) {\n\t\tboolean solid = false;\n\t\t\n\t\tfor (int c = 0; c < 4; c++) {\n\t\t\tdouble xt = ((x + xa) - (c % 2) * /*xtmp1 - xtmp2*/ 15) / 16;\t//(TODO) again, comprehension of corners. not TOO difficult I guess.\n\t\t \tdouble yt = ((y + ya) - (c / 2) * /*ytmp1 + ytmp2*/ 15) / 16;\t//normally, it'd be *16, aka our tile size. Not sprite size in this instance. So we reduce collision area, \n\t\t \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t//\there to let our A* mob get around corners. I find reducing the A* mob's speed also helps\n\t\t \t\n\t\t \tint ix = (int) Math.ceil(xt);\n\t\t \tint iy = (int) Math.ceil(yt);\n\t\t \tif (c % 2 == 0) ix = (int) Math.floor(xt);\n\t\t \tif (c / 2 == 0) iy = (int) Math.floor(yt);\n\t\t \tif (level.getTile(ix, iy).solid()) solid = true;\n\t\t}\n\t\treturn solid;\n\t\t\n\t\t/*int xt = (x + xa) >> 4;\t//x TILE\n\t\tint yt = (y + ya) >> 4;\t//y TILE\n\t\t\n\t\t//if tile in space Im moving is solid- then solid is true, and collision is trues\n\t\tif (level.getTile(xt, yt).solid()) solid = true;\t//Clever! Using getTile in different ways, not just for rendering! Huh! I need to git gud at programming as I would not have thought of that.\n\t\t\t//When using getTile, coordinates need to be in tile level precision >:V\n\t\treturn solid;\t//just to git rid of error\n\t\t*/\n\t}", "title": "" }, { "docid": "0c2a710f9043e73fca3eaf6f74d10355", "score": "0.5964753", "text": "public void checkWallHit(){\n Array<Rectangle> tiles = MapUtils.getHorizNeighbourTiles(velocity, sprite, \"surface\"); \r\n //if atom collides with any tile while moving right/left,reverse his horizontal motion\r\n for (Rectangle tile : tiles) { \r\n if (rectangle.overlaps(tile)) { \r\n velocity.x *=-1;\r\n break;\r\n }\r\n }\r\n \r\n }", "title": "" }, { "docid": "978ce7ed675626cfa339588060d7b874", "score": "0.59420025", "text": "private void dealWithIntersection() {\n boolean currentlyHorizontal = (playerDirection == Directions.LEFT || playerDirection == Directions.RIGHT);\n\n if(bufferDirection == Directions.NONE && currentlyHorizontal) { moveHorizontal(); return; }\n if(bufferDirection == Directions.NONE && !currentlyHorizontal) { moveVertical(); return; }\n\n setTargetCell(clampCellX(), clampCellY());\n\n if(occupiesTargetCell() && isNextMovePossible(currentlyHorizontal)) {\n //Correct any \"bad\" positions duo to imprecise approximations.\n centerPositionOnCurrentCell();\n playerDirection = bufferDirection;\n bufferDirection = Directions.NONE;\n currentlyHorizontal = (playerDirection == Directions.LEFT || playerDirection == Directions.RIGHT);\n }\n\n if(currentlyHorizontal) { moveHorizontal(); } else { moveVertical(); }\n }", "title": "" }, { "docid": "8316fefc4d81cb22a5b03354a00b5e00", "score": "0.59323704", "text": "@Override\n\tprotected boolean checkMapCollision(int x, int y) {\n\t\tint block;\n\n\t\tblock = PacManGame.getGame().getMap().getBlock(x, y);\n\t\tif ((block >= Map.BLOCK_WALL) && (block != Map.BLOCK_GHOSTWALL)) return true;\n\n\t\tblock = PacManGame.getGame().getMap().getBlock(x + mWidth - 1, y);\n\t\tif ((block >= Map.BLOCK_WALL) && (block != Map.BLOCK_GHOSTWALL)) return true;\n\n\t\tblock = PacManGame.getGame().getMap().getBlock(x, y + mHeight - 1);\n\t\tif ((block >= Map.BLOCK_WALL) && (block != Map.BLOCK_GHOSTWALL)) return true;\n\n\t\tblock = PacManGame.getGame().getMap().getBlock(x + mWidth -1, y + mHeight - 1);\n\t\tif ((block >= Map.BLOCK_WALL) && (block != Map.BLOCK_GHOSTWALL)) return true;\n\n\t\treturn false;\n\t}", "title": "" }, { "docid": "06a1f484963b57fd4204692b32ba00c0", "score": "0.59266454", "text": "public void checkCollisions() {\n\n\t\tPlane plane = this.level.getPlane();\n\n\t\tRectangle player = plane.getBoundaries();\n\n\t\tif (plane.getY() + plane.getHeight() > this.level.getHeight()) {\n\t\t\tthis.level.endGame();\n\t\t}\n\n\t\tfor (Obstacle individualObstacle : this.level.getObstacles()) {\n\n\t\t\tRectangle obstacleBounds = individualObstacle.getBoundaries();\n\n\t\t\tif (player.intersects(obstacleBounds)) {\n\t\t\t\tthis.level.endGame();\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "cff7fcf3bd919213457b033c118b2d7d", "score": "0.58951104", "text": "public void checkCollisions() {\n\t\tfor (Obstacle obs : obstacles.getList()) {\n\t\t\tif (obs != null && obs.intersects(player)) {\n\t\t\t\tif(!(player.canPassWalls() && obs.isSolid()))\n\t\t\t\t\tplayer.collide(obs);\n\t\t\t}\n\t\t}\n\t\t// los enemigos con los obstaculos\n\t\tfor (Enemy enemy : enemies) {\n\t\t\tfor (Obstacle obs : obstacles.getList()) {\n\t\t\t\tif (obs != null && obs.intersects(enemy)) {\n\t\t\t\t\tif(!(enemy.canPassWalls() && obs.isSolid()))\n\t\t\t\t\t\tenemy.collide(obs);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\ttry {\n\t\t\t// los enemigos con las llamas\n\t\t\tfor (Enemy enemy : enemies) {\n\t\t\t\tfor (Entity flare : flares) {\n\t\t\t\t\tif (flare.intersects(enemy)) {\n\t\t\t\t\t\tenemy.hurt(flare, 10);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// el jugador con las llamas\n\t\t\tfor (Entity flare : flares) {\n\t\t\t\tif (flare.intersects(player)) {\n\t\t\t\t\tif (!player.isInvincible())\n\t\t\t\t\t\tplayer.touchedBy(flare);\n\t\t\t\t\t// break;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// las bombas con las llamas\n\t\t\tfor (Entity bomb : bombs) {\n\t\t\t\tfor (Entity flare : flares) {\n\t\t\t\t\tif (flare.intersects(bomb)) {\n\t\t\t\t\t\tbomb.touchedBy(flare);\n\t\t\t\t\t\t// break;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t} catch (ConcurrentModificationException e) {\n\t\t}\n\n\t\t\n\t\t// los enemigos con las bombas\n\t\tfor (Enemy enemy : enemies) {\n\t\t\tfor (Bomb bomb : bombs) {\n\t\t\t\tif (bomb != null) {\n\t\t\t\t\tif (bomb.intersects(enemy)) {\n\t\t\t\t\t\tif (bomb.isOut(enemy) && !enemy.canPassBombs()) {\n\t\t\t\t\t\t\tenemy.collide(bomb);\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\tbomb.setOut(enemy);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t// el jugador con las bombas\n\t\tfor (Bomb bomb : bombs) {\n\t\t\tif (bomb != null) {\n\t\t\t\tif (bomb.intersects(player)) {\n\t\t\t\t\tif (!bomb.isOut(player) && ! player.canPassBombs()) {\n\t\t\t\t\t\tplayer.collide(bomb);\n\t\t\t\t\t}\n\t\t\t\t\telse {\n\t\t\t\t\t\tbomb.setOut(player);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t// el jugador con los enemigos\n\t\tfor (Enemy enemy : enemies) {\n\t\t\tif (enemy != null && enemy.intersects(player)) {\n\t\t\t\tenemy.touchedBy(player); // Normal\n\t\t\t\t//player.touchedBy(enemy); // Bomberman se carga a todos\n\t\t\t\t//break;\n\t\t\t}\n\t\t}\n\n\t\t// el jugador con los power ups\n\t\tfor (Iterator<PowerUps> it = powerups.iterator(); it.hasNext();) {\n\t\t\tPowerUps powerup = it.next();\n\t\t\tif (powerup != null && powerup.intersects(player)) {\n\t\t\t\tplayer.addPowerUp(powerup);\n\t\t\t\tif (powerup.removed)\n\t\t\t\t\tit.remove();\n\t\t\t}\n\t\t}\n\t\t\n\t\t// el jugador con la salida\n\t\tif (player.intersects(exit) && ((Exit) exit).isActive() /*&& exit.getBounds().contains(player.getBounds())*/) {\n\t\t\tbombs.clear();\n\t\t\tplayer.touchedBy(exit);\n\t\t\tplaying = false;\n\t\t\t//System.out.println(\"Level Complete\");\n\t\t}\n\t}", "title": "" }, { "docid": "da33ac170a7583fa14b38ec54fd36b11", "score": "0.5893508", "text": "@Override\r\n\tprotected void updatePosition(GameController gc) throws OutOfMapException {\r\n\t\tdouble tempX = x + (gc.getDelta() * dx) / 1000;\r\n\t\tdouble tempY = y + (gc.getDelta() * dy) / 1000;\r\n\r\n\t\tdouble middleX = tempX + getWidth() / 2;\r\n\t\tdouble middleY = y + getHeight() / 2;\r\n\r\n\t\tif (middleX < gc.getX() || middleX > gc.getX() + gc.getViewWidth()\r\n\t\t\t\t|| middleY < gc.getY()\r\n\t\t\t\t|| middleY > gc.getY() + gc.getViewHeight()) {\r\n\t\t\t// Shot is out of view -> desactivate it\r\n\t\t\tdestroyed = true;\r\n\r\n\t\t} else if (gc.getMap().isBlockedAt(middleX, middleY)) {\r\n\t\t\t// Shot shoots a blocked part of the map -> desactivate it\r\n\t\t\tdestroyed = true;\r\n\r\n\t\t} else {\r\n\t\t\t// Move it\r\n\t\t\tx = tempX;\r\n\t\t\ty = tempY;\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "989b01752d5d7c5b9c49c23d4ffb0d84", "score": "0.5881133", "text": "public abstract void detectAndHandleCollisions(EntityGrid grid, CollisionHandler physics, float dt);", "title": "" }, { "docid": "6a44a40ee2d1a60349c960acb6a0bc28", "score": "0.58687294", "text": "@Override\n\tpublic void collisionResolve(Meteoroid meteoroid) {\n\n\t}", "title": "" }, { "docid": "c690d962a839285eefeb448310ddff7a", "score": "0.5868693", "text": "public void collision(){\n\n\t\t// a lot of semi-functional \"if\" statements for hit detection of bird VS pipe\n\t\t\n\t\tif (Charlocy <= pipelocy+ pipeheight && (Charlocx + 25 >= pipelocx && Charlocx <= pipelocx+pipewidth-3)){\n\t\t\tgameoversequence= true;\n\t\t}\n\t\tif (Charlocy+ 30 >= SCREENY-bottompipeh + 3 && (Charlocx + 25 >= pipelocx && Charlocx <= pipelocx+pipewidth-3)){\n\t\t\tgameoversequence= true;\n\t\t}\n\n\t\tif (Charlocy >= SCREENY- 275){\n\t\t\tCharlocy= 0;\n\t\t\t\n\t\t\tgameoversequence= true;\n\t\t}\n\t\t\n\t}", "title": "" }, { "docid": "6cd3e8bd285fa1ec086258ad04eb54ca", "score": "0.5844166", "text": "private void handlePlayerCollision() {\n playerControlledShip.handleCollision(1);\n if (playerControlledShip.getHealth() <= 0) {\n World.gameState = GameState.GAME_OVER;\n }\n }", "title": "" }, { "docid": "b6fbdbef07626c8f3d0036fbafa7e165", "score": "0.5827463", "text": "private void checkCollisoins() {\n for (int p = 0; p < this.getPlayerEntities().size(); p++) {\n Entity pe = (Entity) this.getPlayerEntities().get(p);\n for (int s = 0; s < this.getEnemyEntities().size(); s++) {\n\n Entity ee = (Entity) this.getEnemyEntities().get(s);\n\n if (ee.collidesWith(pe)) {\n pe.collidedWith(ee);\n ee.collidedWith(pe);\n }\n }\n }\n\n for (int p = 0; p < this.getPlayers().size(); p++) {\n\n Entity pe = (Entity) this.getPlayers().get(p);\n //enemy -> player collisions\n for (int e = 0; e < this.getEnemyEntities().size(); e++) {\n Entity ee = (Entity) this.getEnemyEntities().get(e);\n if (ee.collidesWith(pe)) {\n pe.collidedWith(ee);\n ee.collidedWith(pe);\n }\n }\n\n //player -> item collisions\n for (int i = 0; i < this.getItems().size(); i++) {\n Entity ie = (Entity) this.getItems().get(i);\n if (pe.collidesWith(ie)) {\n pe.collidedWith(ie);\n ie.collidedWith(pe);\n }\n }\n }\n\n // remove any entity that has been marked for clear up\n getEnemyEntities().removeAll(getRemoveEnemyList());\n getRemoveEnemyList().clear();\n getPlayerEntities().removeAll(getRemovePlayerList());\n getRemovePlayerList().clear();\n getItems().removeAll(getRemoveItems());\n getRemoveItems().clear();\n getEffects().removeAll(getRemoveEffects());\n getRemoveEffects().clear();\n getPlayers().removeAll(getRemovePlayers());\n getRemovePlayers().clear();\n }", "title": "" }, { "docid": "8194eb80c4867a3b917259bb8eb0d8cf", "score": "0.58026624", "text": "public boolean checkEntityCollision(double tempX, double tempY) {\n for (Entity e : worldMap.getEntityManager().getEntities()) {\n if (e.equals(this) || !e.isAlive()) {\n continue;\n }\n if (e.getTopBounds(0f, 0f).intersects(getBottomBounds(tempX, tempY))) {\n setCanJump(true);\n return true;\n } else if (e.getBottomBounds(0f, 0f).intersects(getTopBounds(tempX, tempY))) {\n setMoveY(0);\n } else if (e.getCollisionBounds(0f, 0f).intersects(getCollisionBounds(tempX, tempY))) {\n return true;\n }\n }\n return false;\n }", "title": "" }, { "docid": "70e7f1b09cbc428633ed508c2414f597", "score": "0.5795566", "text": "private void collisionCheck() {\n Iterator<Bullet> iterB = stage.bullets.iterator();\n while (iterB.hasNext()){\n Bullet bullet = iterB.next();\n if(bullet.hitbox.overlaps(this.hitbox)) {\n if(bullet.team != this.team) {\n iterB.remove();\n }\n }\n }\n\n Iterator<Ship> iterS = stage.ships.iterator();\n while (iterS.hasNext()){\n Ship ship = iterS.next();\n if(ship.hitbox.overlaps(this.hitbox)) {\n if(ship.team != this.team) {\n ship.hp = 0;\n }\n }\n }\n }", "title": "" }, { "docid": "b15b6ee00adc0b107184ae3a910ac4c8", "score": "0.5794955", "text": "public void update(){\n\t\tcheckPlayerCollision();\n\t}", "title": "" }, { "docid": "fd48945438cd4fd2b47fceed5cd5be9a", "score": "0.57893926", "text": "private void checkCollision()\n {\n ScrollerWorld myWorld = (ScrollerWorld)getWorld();\n HealthBar bar = getWorld().getObjects(HealthBar.class).get(0);\n\n if(getOneObjectAtOffset(0, getImage().getHeight()-15, Enemy.class) != null)\n {\n getWorld().removeObject(getOneObjectAtOffset(0, getImage().getHeight()-15, Enemy.class));\n myWorld.addToScore(); \n y = smallUp;// will make the Hero bounce off the enemy \n fall();// will bring the Hero back to the Platform\n }\n else if( isTouching(Mushroom.class) )\n {\n getWorld().removeObject(getOneIntersectingObject(Mushroom.class) );\n\n if(marioSz == 3)//if statment was left empty so when marioSz = 3 and comes in contact with a\n { //it wont react\n }\n else\n { \n setImage(bigMario);//Will increase the Sz of the Hero\n marioSz = 2;\n }\n\n } \n else if( isTouching(Enemy.class))\n {\n\n if(marioSz == 3)//Will set the Hero back to its original apperance and mamke marioSz = 1\n { \n getWorld().removeObject(getOneIntersectingObject(Enemy.class) );\n setImage(original);\n marioSz = 1;\n }\n else if(marioSz == 2)//Will set the Hero back to its original apperance and mamke marioSz = 1\n { \n getWorld().removeObject(getOneIntersectingObject(Enemy.class) );\n setImage(original);\n marioSz = 1;\n } \n else if(marioSz == 1)//If Hero = 1 and touches Enemy he will lose a life \n { \n bar.add(-25);\n live--;\n myWorld.subtractToLives();\n getWorld().removeObject(getOneIntersectingObject(Enemy.class) );\n }\n\n //if(live == 0)// If live = 0 it will call for the gameOver method ScrollerWorld\n //{\n // myWorld.gameOver(); \n //}\n\n }\n else if(getOneObjectAtOffset(0, getImage().getHeight()-15, Platform.class) != null)\n {\n //This else if statment will allow the Hero to junp again and set the Hero to the correct appearance\n if(marioSz == 1)\n {\n setImage(original);\n }\n else if(marioSz == 2)\n {\n setImage(bigMario);\n }\n else if(marioSz == 3)\n {\n setImage(fireMario);\n } \n cannotJump = false;\n y = 0;\n\n }\n else//if nothing else happens he will fall to the Platform\n {\n fall();\n }\n\n if(getOneObjectAtOffset(0, getImage().getHeight()-15, Block.class) != null)\n {\n //This if statment will allow the Hero to junp again and set the Hero to the correct appearance\n if(marioSz == 1)\n {\n setImage(original);\n }\n else if(marioSz == 2)\n {\n setImage(bigMario);\n }\n else if(marioSz == 3)\n {\n setImage(fireMario);\n }\n cannotJump = false;\n y = 0;\n\n }\n else if(isTouching(Block.class))\n {\n fall();\n }\n\n if( isTouching(Lives.class))\n {\n getWorld().removeObject(getOneIntersectingObject(Lives.class) );\n myWorld.addToLives();\n live++; // will increase amt of lives\n bar.add(+25);\n }\n\n if( isTouching(Flower.class))\n {\n getWorld().removeObject(getOneIntersectingObject(Flower.class) );\n marioSz = 3;\n setImage(fireMario);\n }\n }", "title": "" }, { "docid": "23a574b4a7dfff3b2fad31e30f50d7fe", "score": "0.57745546", "text": "public void doMoveH(boolean moveLeftOrRight){\r\n\t\t \r\n\t\t\tif(moveLeftOrRight==true) \r\n\t\t\t{\r\n\t\t\t\tArrayList<LineObject> nearObstacles= new ArrayList<LineObject>();\r\n\t\t\t\tif(hiddenPlatforms!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tfor(int i=0; i< hiddenPlatforms.size(); i++)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tLineObject l= hiddenPlatforms.get(i).getOutlines().get(0);\r\n\t\t\t\t\t\tif(getCentX()>= l.getV1().getXCoord() && getCentX()<= l.getV2().getXCoord())\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tnearObstacles.add(l);\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\tif(levelPlatforms!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tfor(int i=0;i<levelPlatforms.size();i++)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tLineObject lr= levelPlatforms.get(i).getOutlines().get(1);\r\n\t\t\t\t\t\tLineObject lf= levelPlatforms.get(i).getOutlines().get(3);\r\n\t\t\t\t\t\tif(lr.getOrientation()!= 'v')\r\n\t\t\t\t\t\t\tSystem.out.println(\"OhNo\");\r\n\t\t\t\t\t\tif(lf.getV1().getXCoord()<lr.getV1().getXCoord())\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tif(getCentX() + radius <=lf.getV1().getXCoord() || getCentX() - radius >= lr.getV1().getXCoord())\r\n\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\tif(getCentY() >= lf.getV1().getYCoord() && getCentY() <= lf.getV2().getYCoord())\r\n\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\tnearObstacles.add(lr);\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}\t\r\n\t\t\t\t\t\telse\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tif(getCentX() + radius< lr.getV1().getXCoord() || getCentX() - radius >lf.getV1().getXCoord())\r\n\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\tif(getCentY()>=lr.getV1().getYCoord() && getCentY()<=lr.getV2().getYCoord())\r\n\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\tnearObstacles.add(lf);\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}\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\tboolean throughPlatform=false;\r\n\t\t\t\tdouble slope=0;\r\n\t\t\t\tdouble constant=0;\r\n\t\t\t\tboolean vertical=false;\r\n\t\t\t\tfor(int i=0; i< nearObstacles.size(); i++)\r\n\t\t\t\t{\r\n\t\t\t\t\tif(nearObstacles.get(i).getOrientation()=='c')\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tif((getCentY() + radius - speed_y*2/3)<= (getCentX()*nearObstacles.get(i).getSlope()/100 + nearObstacles.get(i).getConstant()/100+3) \r\n\t\t\t\t\t\t\t\t&& (getCentY() + radius + speed_y*2/3)>= (getCentX()*nearObstacles.get(i).getSlope()/100 + nearObstacles.get(i).getConstant()/100-3))\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tthroughPlatform=true;\r\n\t\t\t\t\t\t\tslope= nearObstacles.get(i).getSlope();\r\n\t\t\t\t\t\t\tconstant= nearObstacles.get(i).getConstant();\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tif(nearObstacles.get(i).getOrientation()=='v')\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tif(getCentX() - radius/2 >= nearObstacles.get(i).getV1().getXCoord())\r\n\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\tif((getCentX() - radius/2 - speed_x) <= nearObstacles.get(i).getV1().getXCoord())\r\n\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\tSystem.out.println(\"heredkfjsldfjds\");\r\n\t\t\t\t\t\t\t\t\tvertical=true;\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tif(throughPlatform==false)\r\n\t\t\t\t{\r\n\t\t\t\t\tif(vertical==false)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tsetCentX((getCentX()-speed_x));\r\n\t\t\t\t\t\tvertical=false;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\telse\r\n\t\t\t\t{\r\n\t\t\t\t\tsetCentX((getCentX()-speed_x));\r\n\t\t\t\t\tsetCentY((getCentX()*slope/100 + constant/100 - getRadius()-3));\r\n\t\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t\tsetOrientation('l');\r\n\t\t\t} \r\n\t\t\telse \r\n\t\t\t{\r\n\t\t\t\tArrayList<LineObject> nearObstacles= new ArrayList<LineObject>();\r\n\t\t\t\tif(hiddenPlatforms!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tfor(int i=0; i< hiddenPlatforms.size(); i++)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tLineObject l= hiddenPlatforms.get(i).getOutlines().get(0);\r\n\t\t\t\t\t\tif(getCentX()>= l.getV1().getXCoord() && getCentX()<= l.getV2().getXCoord())\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tnearObstacles.add(l);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tboolean throughPlatform=false;\r\n\t\t\t\tdouble slope=0;\r\n\t\t\t\tdouble constant=0;\r\n\t\t\t\tfor(int i=0; i< nearObstacles.size(); i++)\r\n\t\t\t\t{\r\n\t\t\t\t\t\r\n\t\t\t\t\tif((getCentY() + radius - speed_y*2/3)<= (getCentX()*nearObstacles.get(i).getSlope()/100 + nearObstacles.get(i).getConstant()/100+3) \r\n\t\t\t\t\t\t\t&& (getCentY() + radius + speed_y*2/3)>= (getCentX()*nearObstacles.get(i).getSlope()/100 + nearObstacles.get(i).getConstant()/100-3))\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tthroughPlatform=true;\r\n\t\t\t\t\t\tslope= nearObstacles.get(i).getSlope();\r\n\t\t\t\t\t\tconstant=nearObstacles.get(i).getConstant();\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\t\r\n\t\t\t\tif(throughPlatform==false)\r\n\t\t\t\t\tsetCentX((getCentX()+speed_x));\r\n\t\t\t\telse\r\n\t\t\t\t{\r\n\t\t\t\t\tsetCentX((getCentX()+ speed_x));\r\n\t\t\t\t\tsetCentY((getCentX()*slope/100 + constant/100 - getRadius()-3));\r\n\t\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t\tsetOrientation('r');\r\n\t\t\t}\r\n\t\t \r\n\t}", "title": "" }, { "docid": "fca2a3aeaa207d5b2ca2b83c78d374b8", "score": "0.5770442", "text": "private void findCollidingTile() {\r\n\t\thero=Labyrinth.hero;\r\n\t\tswitch(hero.dir){\r\n\t\tcase Up:\tcolliding_tile1=getCollidingTile(new Rectangle(hero.x,hero.y-hero.step,half_width,half_height));\r\n\t\t\t\t\tcolliding_tile2=getCollidingTile(new Rectangle(hero.x+hero.step,hero.y-hero.step,half_width,half_height));\r\n\t\t\t\t\tbreak;\r\n\t\tcase Down:\tcolliding_tile1=getCollidingTile(new Rectangle(hero.x,hero.y+height,half_width,half_height));\r\n\t\t\t\t\tcolliding_tile2=getCollidingTile(new Rectangle(hero.x+hero.step,hero.y+height,half_width,half_height));\r\n\t\t\t\t\tbreak;\r\n\t\tcase Left:\tcolliding_tile1=getCollidingTile(new Rectangle(hero.x-hero.step,hero.y,half_width,half_height));\r\n\t\t\t\t\tcolliding_tile2=getCollidingTile(new Rectangle(hero.x-hero.step,hero.y+hero.step,half_width,half_height));\r\n\t\t\t\t\tbreak;\r\n\t\tcase Right:\tcolliding_tile1=getCollidingTile(new Rectangle(hero.x+width,hero.y,half_width,half_height));\r\n\t\t\t\t\tcolliding_tile2=getCollidingTile(new Rectangle(hero.x+width,hero.y+hero.step,half_width,half_height));\r\n\t\t\t\t\tbreak;\r\n\t\tdefault:\r\n\t\t\tbreak;\r\n\t\t\t}\r\n\t}", "title": "" }, { "docid": "8f495cebc1fb42070dd2887f3e145994", "score": "0.57425976", "text": "@Override\n\tprotected void checkMapCollision() {\n\t}", "title": "" }, { "docid": "284221ef02c8c5d7f4afbfeda060a17a", "score": "0.57078063", "text": "public void updatePosition(Collection<Entity> entities) {\n if (velocity.y < 0) isGrounded = false;\n if (Utilities.length(getVelocity()) == 0) return;\n Point2D.Double normalized = Utilities.scaleTo(getVelocity(), 2);\n int desiredDistance = (int)(Utilities.length(getVelocity()));\n for (int i = 0; i < desiredDistance; i += 2) {\n moveBy(normalized);\n\n for (Entity e : entities) {\n if (canCollideWith(e) && getHitbox().intersects(e.getHitbox())) {\n Rectangle2D.Double intersectionBounds = new Rectangle2D.Double();\n Rectangle2D.intersect(getHitbox(), e.getHitbox(), intersectionBounds);\n\n if (intersectionBounds.getMinY() == e.getHitbox().getBounds().getMinY()) {\n // hit the top of the object\n normalized.y = 0;\n } else if (intersectionBounds.getMaxY() == e.getHitbox().getBounds().getMaxY()) {\n // hit the bottom of the object\n normalized.y = 0;\n } else if (intersectionBounds.getMinX() == e.getHitbox().getBounds().getMinX()) {\n // hit the right of the object\n normalized.x = 0;\n } else if (intersectionBounds.getMaxX() == e.getHitbox().getBounds().getMaxX()) {\n // hit the left of the object\n normalized.x = 0;\n }\n }\n }\n\n if (Utilities.length(normalized) == 0) break;\n }\n }", "title": "" }, { "docid": "d3156717e29aab8a11c45f273b7247a2", "score": "0.57056284", "text": "private void checkCollision() {\n if (bubble.getDirectionX() == Velocity.DIRECTION_RIGHT\n && bubble.getX() + bubble.getBitmap().getWidth() / 2 >= canvasWidth) {\n vibrateOnCollision();\n bubble.toggleDirectionX();\n increaseMultiplierC();\n }\n // Check for collision against left wall if heading left\n if (bubble.getDirectionX() == Velocity.DIRECTION_LEFT\n && bubble.getX() - bubble.getBitmap().getWidth() / 2 <= 0) {\n vibrateOnCollision();\n bubble.toggleDirectionX();\n increaseMultiplierC();\n }\n // Check for collision against bottom wall if heading down\n if (bubble.getDirectionY() == Velocity.DIRECTION_DOWN\n && bubble.getY() + bubble.getBitmap().getHeight() / 2 >= canvasHeight) {\n vibrateOnCollision();\n bubble.toggleDirectionY();\n increaseMultiplierC();\n }\n // Check for collision against top wall if heading up\n if (bubble.getDirectionY() == Velocity.DIRECTION_UP\n && bubble.getY() - bubble.getBitmap().getHeight() / 2 <= 0) {\n vibrateOnCollision();\n bubble.toggleDirectionY();\n increaseMultiplierC();\n }\n }", "title": "" }, { "docid": "d8de23e2f4cf7465c7146533e5b0c0cb", "score": "0.5700246", "text": "boolean checkCollision(Direction dir) {\n for (Square s : current.map.keySet()) {\n if (s.getX() + dir.getX() < 0 || s.getX() + dir.getX() >= width ||\n s.getY() + dir.getY() < 0 || s.getY() + dir.getY() >= height ||\n grid[s.getX() + dir.getX()][s.getY() + dir.getY()])\n return true;\n }\n return false;\n }", "title": "" }, { "docid": "16695900b49488b9124492d89d403d00", "score": "0.569276", "text": "public void checkPosition(int xPosition, int yPosition) throws CollisionException, OutOfBoundariesException;", "title": "" }, { "docid": "478d0ae6311e9c1b5f8f19f6fccbf43b", "score": "0.5689539", "text": "public boolean checkCollision(float deltaX, float deltaY) {\r\n\t\tint x = (int) this.getX();\r\n\t\tint y = (int) this.getY();\r\n\t\tswitch (looking){\r\n\t\t\tcase UP:\r\n\t\t\t\treturn\tcheckCollisionInTile(Game.getInstance().getCurrentWorld().getTileAt(x, y - 1), deltaX, deltaY, 1)|| \r\n\t\t\t\t\t\tcheckCollisionInTile(Game.getInstance().getCurrentWorld().getTileAt(x + 1, y - 1), deltaX, deltaY, 1)|| \r\n\t\t\t\t\t\tcheckCollisionInTile(Game.getInstance().getCurrentWorld().getTileAt(x - 1, y - 1), deltaX, deltaY, 1 )||\r\n\t\t\t\t\t\tcheckCollisionWithTile(x, y - 1, deltaX, deltaY,1)||\r\n\t\t\t\t\t\tcheckCollisionWithTile(x + 1, y - 1, deltaX, deltaY,1)||\r\n\t\t\t\t\t\tcheckCollisionWithTile(x - 1, y - 1, deltaX, deltaY,1); \r\n\t\t\t\t\t\t\r\n\t\t\tcase DOWN:\r\n\t\t\t\treturn \tcheckCollisionInTile(Game.getInstance().getCurrentWorld().getTileAt(x, y + 1), deltaX, deltaY,1)|| \r\n\t\t\t\t\t\tcheckCollisionInTile(Game.getInstance().getCurrentWorld().getTileAt(x + 1, y + 1), deltaX, deltaY,1)|| \r\n\t\t\t\t\t\tcheckCollisionInTile(Game.getInstance().getCurrentWorld().getTileAt(x - 1, y + 1), deltaX, deltaY,1)||\r\n\t\t\t\t\t\tcheckCollisionWithTile(x + 1, y + 1, deltaX, deltaY,1)||\r\n\t\t\t\t\t\tcheckCollisionWithTile(x - 1, y + 1, deltaX, deltaY,1)||\r\n\t\t\t\t\t\tcheckCollisionWithTile(x, y + 1, deltaX, deltaY,1);\r\n\t\t\tcase LEFT:\r\n\t\t\t\treturn\tcheckCollisionInTile(Game.getInstance().getCurrentWorld().getTileAt(x-1, y+1), deltaX, deltaY,0)|| \r\n\t\t\t\t\t\tcheckCollisionInTile(Game.getInstance().getCurrentWorld().getTileAt(x-1, y), deltaX, deltaY,0)|| \r\n\t\t\t\t\t\tcheckCollisionInTile(Game.getInstance().getCurrentWorld().getTileAt(x-1, y-1), deltaX, deltaY,0)||\r\n\t\t\t\t\t\tcheckCollisionWithTile(x-1, y + 1, deltaX, deltaY,0)||\r\n\t\t\t\t\t\tcheckCollisionWithTile(x-1, y - 1, deltaX, deltaY,0)||\r\n\t\t\t\t\t\tcheckCollisionWithTile(x-1, y, deltaX, deltaY,0); \t\t\t\t\r\n\t\t\tcase RIGHT:\r\n\t\t\t\treturn\tcheckCollisionInTile(Game.getInstance().getCurrentWorld().getTileAt(x + 1 , y + 1), deltaX, deltaY,0)|| \r\n\t\t\t\t\t\tcheckCollisionInTile(Game.getInstance().getCurrentWorld().getTileAt(x + 1, y), deltaX, deltaY,0)|| \r\n\t\t\t\t\t\tcheckCollisionInTile(Game.getInstance().getCurrentWorld().getTileAt(x + 1, y - 1), deltaX, deltaY,0)||\r\n\t\t\t\t\t\tcheckCollisionWithTile(x + 1, y + 1, deltaX, deltaY,0)||\r\n\t\t\t\t\t\tcheckCollisionWithTile(x + 1, y, deltaX, deltaY,0)|| \r\n\t\t\t\t\t\tcheckCollisionWithTile(x + 1, y - 1, deltaX, deltaY,0);\r\n\t\t}\r\n\t\treturn false;\r\n\t}", "title": "" }, { "docid": "0c5698214c0ed3c3dcf37be2cccfd238", "score": "0.56859595", "text": "int collision(Point position, int leftRight, int upDown)\n {\n return 0;\n }", "title": "" }, { "docid": "911b9a9187485b236c5cc4919e5974b9", "score": "0.56828356", "text": "private void handleCollisionX() {\n minerRect.set(move.getPositionMineur().x, move.getPositionMineur().y, Miner.WIDTH, Miner.HEIGHT);\n startX = (int) move.getPositionMineur().x;\n endX = (int) (move.getPositionMineur().x + Miner.WIDTH);\n\n if(Miner.direction.equals(Miner.Direction.RIGHT)) { // Si vers la droite\n // hitbox à droite\n startX = endX = (int) (move.getPositionMineur().x + Miner.WIDTH + move.getVelocity().x);\n if((move.getPositionMineur().x + Miner.WIDTH + move.getVelocity().x) >= GameWorld.MAP_WIDTH) {\n move.getVelocity().x = 0;\n return;\n }\n \n } else if(Miner.direction.equals(Miner.Direction.LEFT)) { // Vers la gauche\n // hitbox à gauche\n startX = endX = (int) (move.getPositionMineur().x + move.getVelocity().x);\n if((move.getPositionMineur().x + move.getVelocity().x) <= 0) {\n move.getVelocity().x = 0;\n return;\n }\n }\n \n startY = (int) move.getPositionMineur().x;\n endY = (int)(move.getPositionMineur().y + Miner.WIDTH);\n\n getTiles(startX, startY, endX, endY, tiles); // Voir méthode\n minerRect.x += move.getVelocity().x;\n for(Rectangle tile : tiles) {\n if(minerRect.overlaps(tile)) { // Si notre rectangle contient le rectangle tile on arrête le bonhomme et on stop\n move.getVelocity().setZero();\n resetMiner();\n break;\n }\n }\n minerRect.x = move.getPositionMineur().x; // On remet en t, plus en t+1\n }", "title": "" }, { "docid": "94855e580fd7b625cb0d602140151d1a", "score": "0.56749994", "text": "public void collisions() {\n for (MyLinkedList l : nodes) {\n if (l.length() > 1) {\n l.collissions(xVal, yVal, zVal, xLen, yLen, zLen);\n }\n }\n }", "title": "" }, { "docid": "3ced339f8c901662a343a952e4424310", "score": "0.5673759", "text": "protected void ensureCorrectCollisionBounds() {\n\n\t}", "title": "" }, { "docid": "8107c83752318b908bf34bd5119f970d", "score": "0.5654429", "text": "private void checkBoundaries() {\n\n OrthographicCamera camera = (OrthographicCamera)getCamera();\n for (Actor actor : getActors()) {\n if(actor instanceof SpaceObject) {\n SpaceObject object = (SpaceObject)actor;\n Vector2 center = object.getCenterCoordinates();\n\n if(!camera.frustum.pointInFrustum(center.x, center.y, 0f)) {\n\n float posX = object.getBody().getPosition().x;\n float posY = object.getBody().getPosition().y;\n\n float height = camera.viewportHeight / 2;\n float width = camera.viewportWidth / 2;\n\n posX = center.x < -width || center.x > width ? -posX : posX;\n posY = center.y < -height || center.y > height ? -posY : posY;\n\n object.relocate(posX, posY, object.getBody().getAngle(), true);\n }\n }\n }\n }", "title": "" }, { "docid": "7bc4d4374c73004d108386cd014e9875", "score": "0.56445396", "text": "private void checkPlayerCollision(){\n\t\tif(getBounds().intersects(player.getBounds())){\n\t\t\tplayer.cure(10);\n\t\t\tkits.remove(this);\n\t\t\tisAlive = false;\n\t\t}\n\t\t\t\n\t}", "title": "" }, { "docid": "fd1da591cedaaa27726599c620566d6a", "score": "0.56359166", "text": "List<Rectangle> getCollisionBlock(Player player, Directions direction);", "title": "" }, { "docid": "ef1711dc1236d8555082e523c20318aa", "score": "0.56178445", "text": "public void collide()\n {\n myY = 800;\n myX = 800;\n }", "title": "" }, { "docid": "de85d0e3872c44d1c610ef721c044685", "score": "0.5612825", "text": "@Override\n public void render(float delta) {\n Gdx.gl.glClearColor(0, 0, 0, 1);\n Gdx.gl.glClear(GL20.GL_COLOR_BUFFER_BIT);\n //camera.position.set(Constants.toPixels(player.getX()) + player.getWidth() / 2, Constants.toPixels(player.getY()), 0);\n\n\n\n WorldManager.makeAllBodies();\n //update all entities before handling collisions\n EntityManager.update(delta);\n EntityManager.process();\n\n updateCameras(delta);\n hudViewport.apply(true);\n shapes.setProjectionMatrix(hudCamera.combined);\n shapes.setColor(new Color(84f / 255, 120f / 255, 226f / 255, 1));\n shapes.begin(ShapeType.Filled);\n shapes.rect(0, 0, Gdx.graphics.getWidth(), Gdx.graphics.getHeight());\n\n shapes.end();\n shapes.setProjectionMatrix(camera.combined);\n batch.setProjectionMatrix(camera.combined);\n myViewport.apply();\n //batch.setBlendFunction(GL20.GL_ONE, GL20.GL_ONE_MINUS_SRC_ALPHA);\n mapRenderer.setView(camera);\n mapRenderer.render();\n int layersAbovePlayer;\n String lap = map.getProperties().get(\"layersAbovePlayer\", String.class);\n if (lap == null){\n layersAbovePlayer = mapNumLayers;\n }\n else\n {\n layersAbovePlayer = Integer.parseInt(lap);\n }\n for (int i = 0; i < layersAbovePlayer; i++)\n mapRenderer.render(new int[] {i});\n if (Constants.DEBUG) {\n shapes.begin(ShapeType.Filled);\n shapes.setColor(Color.ORANGE);\n shapes.circle(Constants.toPixels(player.getX()), Constants.toPixels(player.getY()), 4);\n\n for (Entity e : player.getTaggedEntities()){\n shapes.setColor(Color.NAVY);\n shapes.circle(Constants.toPixels(e.getX()), Constants.toPixels(e.getY()), 8);\n }\n //shapes.line(0f, Constants.toPixels(testPlatform.getPosition().y + ((Entity)testPlatform.getUserData()).getBoundingHeight() / 2) ,800,Constants.toPixels(testPlatform.getPosition().y + ((Entity)testPlatform.getUserData()).getBoundingHeight() / 2));\n //\n //\n //System.out.println(testPlatform.getPosition());\n shapes.end();\n }\n\n batch.begin();\n ArrayList<Entity> allEntities = EntityManager.getEntities();\n Collections.sort(allEntities, depthComparator);\n for (Entity entity : allEntities) {\n if (entity != null) {\n if (entity.getSprite() != null && entity.getSprite().getTexture() != null) {\n entity.getSprite().draw(batch);\n //batch.draw(entity.getSprite(), entity.getDrawOffset().x + Constants.toPixels(entity.getX()) - entity.getWidth() / 2, Constants.toPixels(entity.getY() - entity.getBoundingHeight() / 2) + entity.getDrawOffset().y);\n }\n }\n }\n\n batch.end();\n for (int i = layersAbovePlayer; i < mapNumLayers; i++)\n mapRenderer.render(new int[] {i});\n\n /*\n outlineAlpha.x = MathUtils.lerp(outlineAlpha.x, outlineAlpha.y, 0.1f);\n System.out.println(outlineAlpha.x);\n if (outlineAlpha.x >= .99)\n outlineAlpha.y = 0;\n if (outlineAlpha.x <= 1e-2)\n outlineAlpha.y = 1;\n */\n //stepSize.x = MathUtils.lerp(stepSize.x, stepSize.y, 0.1f);\n if (stepSize.y == 0){\n stepSize.x -= 0.05;\n }\n else{\n stepSize.x += 0.05;\n }\n if (stepSize.x >= 1.75){\n stepSize.y = 0;\n }\n if (stepSize.x <= 0.25){\n stepSize.y = 1.75f;\n }\n /*\n blurTargetA.begin();\n\n //Clear FBO A with an opaque colour to minimize blending issues\n Gdx.gl.glClearColor(0.5f, 0.5f, 0.5f, 0f);\n Gdx.gl.glClear(Gdx.gl.GL_COLOR_BUFFER_BIT);\n*/\n //send the new projection matrix (FBO size) to the default shader\n //batch.resize(blurTargetA.getWidth(), blurTargetA.getHeight());\n //batch.setProjectionMatrix(new Matrix4().setToOrtho2D(0, 0, Gdx.graphics.getWidth(), blurTargetA.getHeight()));\n //now we can start our batch\n batch.begin();\n\n //render our scene fully to FBO A\n\n //batch.begin();\n for (Entity entity : EntityManager.getPlayer().getTaggedEntities()) {\n if (entity != null) {\n if (entity.getSprite() != null && entity.getSprite().getTexture() != null) {\n entity.getSprite().getTexture().setWrap(Texture.TextureWrap.ClampToEdge, Texture.TextureWrap.ClampToEdge);\n outlineShader.begin();\n outlineShader.setUniformf(\"step_size\", stepSize.x / entity.getSprite().getWidth(), stepSize.x / entity.getSprite().getHeight());\n outlineShader.setUniformf(\"current_alpha\", 1);\n outlineShader.end();\n batch.setShader(outlineShader);\n entity.getSprite().draw(batch);\n batch.setShader(null);\n }\n }\n }\n //flush the batch, i.e. render entities to GPU\n /*\n batch.flush();\n\n //After flushing, we can finish rendering to FBO target A\n blurTargetA.end();\n\n batch.setShader(blurShader);\n\n //since we never called batch.end(), we should still be drawing\n //which means are blurShader should now be in use\n\n //ensure the direction is along the X-axis only\n blurShader.setUniformf(\"dir\", 1f, 0f);\n\n //update blur amount based on touch input\n blurShader.setUniformf(\"radius\", 2f);\n\n //our first blur pass goes to target B\n blurTargetB.begin();\n //we want to render FBO target A into target B\n fboRegion.setTexture(blurTargetA.getColorBufferTexture());\n //draw the scene to target B with a horizontal blur effect\n batch.draw(fboRegion, 0, 0);\n //flush the batch before ending the FBO\n batch.flush();\n //finish rendering target B\n blurTargetB.end();\n\n //now we can render to the screen using the vertical blur shader\n\n //update our projection matrix with the screen size\n batch.setProjectionMatrix(new Matrix4().setToOrtho2D(0, 0, Gdx.graphics.getWidth(), Gdx.graphics.getHeight()));\n\n //update the blur only along Y-axis\n blurShader.setUniformf(\"dir\", 0f, 1f);\n\n //update the Y-axis blur radius\n blurShader.setUniformf(\"radius\", 2f);\n\n //draw target B to the screen with a vertical blur effect\n fboRegion.setTexture(player.getSprite().getTexture()); //blurTargetB.getColorBufferTexture()\n batch.draw(fboRegion, 0, 0);\n*/\n //reset to default shader without blurs\n batch.setShader(null);\n\n batch.end();\n if (Constants.DEBUG) {\n debugRenderer.render(WorldManager.world, debugCamera.combined);\n }\n\n\n doPhysicsStep(delta);\n updateGUI(delta);\n renderHud(delta);\n updateInput();\n }", "title": "" }, { "docid": "0a0ab38a7da7202c24a0cba8f7b4e900", "score": "0.5612195", "text": "public void performAttackMoveLogic(){\n\t\tcurrentOccupiedTile = (int)(centre.x*64)/16 + (127 - (int)(centre.z*64)/16)*128;\n\t\t\n\t\tboolean[] bitmapVision;\n\t\tif(teamNo == 0)\n\t\t\tbitmapVision = theAssetManager.minimapBitmap;\n\t\telse\n\t\t\tbitmapVision = enemyCommander.visionMap;\n\t\t\n\t\tsolidObject target = null;\n\t\tfor(int i = 0; i < tileCheckList.length; i++){\n\t\t\tif(tileCheckList[i] != Integer.MAX_VALUE){\n\t\t\t\tint index = currentOccupiedTile + tileCheckList[i];\n\t\t\t\tif(index < 0 || index >= 16384 || Math.abs(index%128 - currentOccupiedTile%128) > 20)\n\t\t\t\t\tcontinue;\n\t\t\t\t\n\t\t\t\ttile = mainThread.gridMap.tiles[index];\n\t\t\t\t\n\t\t\t\t//ignore unrevealed buildings\n\t\t\t\tif(!bitmapVision[index]){\n\t\t\t\t\tboolean isRevealedBuilding = false;\n\t\t\t\t\tif(tile[4] != null)\n\t\t\t\t\t\tif(tile[4].type > 100 && tile[4].ID != -1)\n\t\t\t\t\t\t\tif((tile[4].isRevealed == true && teamNo == 0) || (mainThread.ec.theMapAwarenessAI.mapAsset[tile[4].ID] != null && teamNo != 0))\n\t\t\t\t\t\t\t\tisRevealedBuilding = true;\n\t\t\t\t\tif(!isRevealedBuilding)\n\t\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t//target hostile static defense first, then hostile units, and finally hostile buildings\n\t\t\t\tfor(int j = 0; j < 4; j++){\n\t\t\t\t\tif(tile[j] != null){\n\t\t\t\t\t\tif(tile[j].teamNo != teamNo && tile[j].teamNo != -1 && tile[j].currentHP > 0 && !tile[j].isCloaked){\n\t\t\t\t\t\t\tdistanceToDesination = (float)Math.sqrt((tile[j].centre.x - centre.x) * (tile[j].centre.x - centre.x) + (tile[j].centre.z - centre.z) * (tile[j].centre.z - centre.z));\n\t\t\t\t\t\t\tif(distanceToDesination <= attackRange){\n\t\t\t\t\t\t\t\tif((tile[j].type == 199 || tile[j].type == 200) && (tile[j].visible_minimap || (teamNo !=0 && tile[j].isRevealed_AI) )){\n\t\t\t\t\t\t\t\t\tattack(tile[j]);\n\t\t\t\t\t\t\t\t\tcurrentCommand = solidObject.attackInNumbers;\n\t\t\t\t\t\t\t\t\treturn;\n\t\t\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\t\t\tif(target == null){\n\t\t\t\t\t\t\t\t\t\ttarget = tile[j];\n\t\t\t\t\t\t\t\t\t}else if(target.type >= 100 && tile[j].type < 100){\n\t\t\t\t\t\t\t\t\t\ttarget = tile[j];\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\tif(target != null && (target.visible_minimap || teamNo != 0)){\n\t\t\tattack(target);\n\t\t\tcurrentCommand = solidObject.attackInNumbers;\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tperformMovementLogic();\n\t}", "title": "" }, { "docid": "2c439bea6019185a2ff45545db0bb9eb", "score": "0.5609114", "text": "@Override\n\tpublic void collideWithTile(int x, int y, int height, int width) {\n\t\tif (prevY + this.height <= y) {\n\t\t\tthis.yPos = y - this.height;\n\t\t} else if (prevY >= y + height) {\n\t\t\tthis.yPos = y + height;\n\t\t} else if (prevX < x) {\n\t\t\tthis.xPos = x - this.width;\n\t\t\tthis.dx = -this.dx;\n\t\t} else {\n\t\t\tthis.xPos = x + width;\n\t\t\tthis.dx = -this.dx;\n\t\t}\n\t}", "title": "" }, { "docid": "8070cbbf7a40861c333d3cdb84612d4a", "score": "0.5599112", "text": "@Override\r\n\tpublic void move() { // fall, if not on the platform, else stay in place\r\n\t\t\r\n\t\t\tfor(Rectangle r: myRectangles){ // check collision with every platform\r\n\t\t\t\tif(\r\n\t\t\t\t\t\tnew Rectangle(this.mX+50,this.mY+this.mHeight-8,this.mWidth-100,5,vbom).\r\n\t\t\t\t\t\tcollidesWith(\r\n\t\t\t\t\t\tr\r\n\t\t\t\t\t\t)) // collision with platform\r\n\t\t{\r\n\t\t\tthis.mPhysicsHandler.setVelocityY(0); //don't fall\r\n\t\t\tbreak;\r\n\t\t\t\r\n\t\t}else{\r\n\t\t\tthis.mPhysicsHandler.setVelocityY(140); // no collision -> gravity\r\n\t\t}\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "0eb02b0d0d6a620c045cb892a014b72e", "score": "0.55915993", "text": "@Override\n public boolean collision(GameEntity other) { return false; }", "title": "" }, { "docid": "64bb6d993f78f1119a40d045a26a19f2", "score": "0.55850554", "text": "private void checkCollision(int gX, int gY) {\n int pX = pacmon.getpX();\n int pY = pacmon.getpY();\n int radius = 10;\n\n if (Math.abs(pX - gX) + Math.abs(pY - gY) < radius) //ghost touches player\n {\n diePacmon();\n }\n }", "title": "" }, { "docid": "0172928046b739b3c15e7ed10b89ea81", "score": "0.5583818", "text": "private void moveShip(){\r\n //declarations and initializations\r\n double CenterShipX = 0; //pixel x-coordinate of center of ship \r\n double CenterShipY = 0; //pixel y-coordinate of center of ship\r\n double tryLocX = myShip.tryLoc.x;\r\n double tryLocY = myShip.tryLoc.y;\r\n double CenterCentSegmentX = 0; //pixel x-coordinate of center of centipede's segment \r\n double CenterCentSegmentY = 0; //pixel y-coordinate of center of centipede's segment\r\n double distanceX = 0; //x-coordinate distance between center of ship and center of mushrooms\r\n double distanceY = 0; //y-coordinate distance between center of ship and center of mushrooms\r\n double distance = 0; //exact distance between center of ship and center of mushrooms\r\n \r\n int pixelToGridShipX = 0; //a variable for converting the ship's pixel x-coordinate to grid x-coordinate\r\n int pixelToGridShipY = 0; //a variable for converting the ship's pixel y-coordinate to grid y-coordinate\r\n Point pixelToGridShip = null; //exact conversion of pixel coordinate to grid coordinate\r\n \r\n int posX = 0; //x-coordinate position of the ship with respect to the position of the mushroom\r\n int posY = 0; //y-coordinate position of the ship with respect to the position of the mushroom\r\n double CenterMushX = 0; //pixel x-coordinate of center of mushroom\r\n double CenterMushY = 0; //pixel y-coorindate of center of mushroom\r\n \r\n double GridToPixelCentSegmentX = 0; //convert the grid x-coordinate of center of segment of centipede to pixel x-coordinate\r\n double GridToPixelCentSegmentY = 0; //convert the grid y-coordinate of center of segment of centipede to pixel y-coordinate\r\n \r\n double GridToPixelMushroomX = 0; //convert the grid x-coordinate of center of mushroom to pixel x-coordinate\r\n double GridToPixelMushroomY = 0; //convert the grid y-coordinate of center of mushroom to pixel y-coordinate\r\n \r\n CenterShipX = tryLocX + 10.0; //plus half of the length of each grid (i.e. 10.0 out of 20.0) to tryLocX to find the x-coordinate of the pixel of the ship's center\r\n CenterShipY = tryLocY + 10.0; //plus half of the length of each grid (i.e. 10.0 out of 20.0) to tryLocX to find the y-coordinate of the pixel of the ship's center\r\n \r\n \r\n for(int i = 0; i < myCentipedes.length; i++) { //check if the ship collides with a centipede\r\n if(myCentipedes[i] != null) { //check if the particular centipede exists or not\r\n for(int j = 0; j < myCentipedes[i].length; j++) { //check if the ship collides with each centipede\r\n \r\n //find the center of each segment of the centipede\r\n GridToPixelCentSegmentX = myCentipedes[i].segments[j].x * 20.0;\r\n CenterCentSegmentX = GridToPixelCentSegmentX + 10.0; //plus half of the length of each grid to GridToPixelCentSegmentX to find the x-coordinate of the pixel of the center of the centipede's segment \r\n GridToPixelCentSegmentY = myCentipedes[i].segments[j].y * 20.0;\r\n CenterCentSegmentY = GridToPixelCentSegmentY + 10.0; //plus half of the length of each grid to GridToPixelCentSegmentY to find the y-coordinate of the pixel of the center of the centipede's segment \r\n \r\n //calculate the distance between center of the ship and center of the segments of the centipedes\r\n distanceX = (CenterShipX - CenterCentSegmentX) * (CenterShipX - CenterCentSegmentX);\r\n distanceY = (CenterShipY - CenterCentSegmentY) * (CenterShipY - CenterCentSegmentY);\r\n distance = Math.sqrt(distanceX + distanceY);\r\n \r\n // TODO: Try moving the ship based on the mouse position. First test to see if the ship has impacted any\r\n // TODO: Centipedes. If it has, play the explosion sound, decrement the number\r\n // TODO: of lives and set the ship's invulnerableTime to Settings.invulnerableTime.\r\n if(distance < 20.0 && \r\n myShip.invulnerableTime == 0) { //to make sure that the ship is vulnerable at that moment\r\n myGameSounds.shipExplode();\r\n myShip.lives -= 1;\r\n myShip.invulnerableTime = Settings.invulnerableTime;\r\n \r\n // TOOD: If the ship has run out of lives, run the gameOver() method.\r\n if(myShip.lives < 0) {\r\n gameOver();\r\n }\r\n }\r\n }\r\n }\r\n }\r\n //convert the pixel coordinates of the ship to the grid coordinates\r\n pixelToGridShipX = (int) Math.floor(CenterShipX / 20.0); //parsing and math.floor() are necessary to obtain accurate grid coordinates\r\n pixelToGridShipY = (int) Math.floor(CenterShipY / 20.0);\r\n pixelToGridShip = new Point(pixelToGridShipX, pixelToGridShipY);\r\n \r\n // TODO: Check if the ship is trying to move into a mushroom. The ship should not\r\n // TODO: lose a life from this, but it should be blocked from moving.\r\n \r\n int k = 0; //counter\r\n int l = 0; //another counter\r\n \r\n //resetting the position of the ship with respect to the position of the mushroom\r\n while(k <= 2) {\r\n while(l <= 2) {\r\n posX = pixelToGridShip.x + k; \r\n posY = pixelToGridShip.y + l;\r\n k++; //increase k as loop goes to get another new position for x-coordinate\r\n l++; //increase l as loop goes to get another new position for y-coordinate\r\n \r\n if((posX >= 0 && posX < myMushrooms.length) && //make sure that the new position is within the \"boundary\" of x-coordinate dimension of the mushrooms\r\n (posY >= 0 && posY < myMushrooms[posX].length) && //make sure that the new position is within the \"boundary\" of y-coordinate dimension of the mushrooms\r\n !(myMushrooms[posX][posY] == null) && //make sure that the mushroom exists\r\n myMushrooms[posX][posY].loc.y > 24) { //24 is obtained by subtracting Settings.shipVerticalRange(4) and 2 from Settings.height(30);\r\n //the position of the mushrooms must be greater than the amount\r\n \r\n //find the center of each mushroom\r\n GridToPixelMushroomX = myMushrooms[posX][posY].loc.x * 20.0;\r\n CenterMushX = GridToPixelMushroomX + 10.0; //plus half of the length of each grid to CenterMushX to find the x-coordinate of the pixel of the mushroom's center\r\n GridToPixelMushroomY = myMushrooms[posX][posY].loc.y * 20.0;\r\n CenterMushY = GridToPixelMushroomY + 10.0; //plus half of the length of each grid to CenterMushY to find the y-coordinate of the pixel of the mushroom's center \r\n \r\n //calculate the distance between center of the ship and center of the mushrooms\r\n distanceX = CenterShipX - CenterMushX;\r\n distanceY = CenterShipY - CenterMushY;\r\n distance = Math.sqrt((distanceX * distanceX) + (distanceY * distanceY));\r\n \r\n //make sure that the distance between center of the ship and center of the mushroom to be 20.0 all the time\r\n if(distance == 0) { //if distance is 0, simply add 20.0 to the center of the mushroom\r\n CenterShipX = CenterMushX + 20.0;\r\n CenterShipY = CenterMushY + 20.0;\r\n }\r\n else if(distance < 20.0) { //make sure that the center of the ship is adjusted accordingly to the distance between the center of the ship and the center of the mushroom\r\n CenterShipX = CenterMushX + (distanceX / distance) * 20.0;\r\n CenterShipY = CenterMushY + (distanceY / distance) * 20.0;\r\n }\r\n }\r\n }\r\n }\r\n \r\n // TODO: Set the ship's new location based on the results of the tests above.\r\n myShip.loc.x = (int) Math.round(CenterShipX - 10.0); //parsing and round off are necessary as we want the accurate location for the ship\r\n myShip.loc.y = (int) Math.round(CenterShipY - 10.0);\r\n }", "title": "" }, { "docid": "a2f04f8b3f2cbafc575010734b105a3d", "score": "0.5581314", "text": "@Override\n\tpublic void render(float delta) {\n\t\tstage.act(delta);\n\t\t\n\t\tGdx.gl.glClearColor(1, 0, 1, 1);\n\t\tGdx.gl.glClear(GL10.GL_COLOR_BUFFER_BIT);\n\t\t\n\t\t\n\t\t// scroll the map so that the player is in center\n\t\tVector3 position = stage.getCamera().position;\n\t\tposition.set(player.getX()-player.getWidth()/2,player.getY()-player.getHeight()/2, 0);\n\t\t// handle borders of the map\n\t\tif(position.x < stage.getWidth()/2){\n\t\t\tposition.x = stage.getWidth()/2;\n\t\t}\n\t\tif(position.y < stage.getHeight()/2){\n\t\t\tposition.y = stage.getHeight()/2;\n\t\t}\n\t\t\n\t\tif(position.x > collisionLayer.getWidth()*collisionLayer.getTileWidth() - stage.getWidth()/2){\n\t\t\tposition.x = collisionLayer.getWidth()*collisionLayer.getTileWidth() - stage.getWidth()/2;\n\t\t}\n\t\tif(position.y > collisionLayer.getHeight()*collisionLayer.getTileHeight() - stage.getHeight()/2 ){\n\t\t\tposition.y = collisionLayer.getHeight()*collisionLayer.getTileHeight() - stage.getHeight()/2;\n\t\t}\n\t\t\n\t\tstage.getCamera().update();\n\t\t\n\t\trenderer.setView((OrthographicCamera) stage.getCamera());\n\t\trenderer.render();\n\t\tstage.draw();\n\t}", "title": "" }, { "docid": "7f57df4bafb197d284a773acba59b6b4", "score": "0.5563734", "text": "protected void checkCollision() {\n\t}", "title": "" }, { "docid": "cee7ba6aee9f31e94c61861526bb6b10", "score": "0.55523163", "text": "public void update(){\n MapGrid grid = game.getGameGrid();\n int n = game.getCurrentMap().getN() * MapGrid.SPACES_PER_TILE;\n\n \n\n /* Loop over all unit positions, update where there are units */\n for(int i = 0; i < n; i++){\n for(int j = 0; j < n; j++){\n if(grid.getUnit(i, j) != null && grid.getUnit(i, j).getUnit().getX() == i && grid.getUnit(i, j).getUnit().getY() == j)\n updateUnit(i, j, grid);\n }\n }\n }", "title": "" }, { "docid": "b0d90be72e6f6094a021220870b891e5", "score": "0.554961", "text": "public void checkCollusion(GraphicsContext g) {\n\t\t\n\t\t// *Collision with block list. \n\t\t\tfor(int index = 0; index < this.gameMap.size();index++) {\n\t\t\t\tfor(int playerIndex = 0; playerIndex < (this.player.playerSize()-playerRedu); playerIndex++) {\n\t\t\t\t\t\n\t\t\t\t\tif(this.gameMap.get(index).isEnd() == true)\n {\n //check up\n if((this.player.getPlayerCollisionBox().getTop().get(playerIndex).x == this.gameMap.get(index).getTileLocForEnd().x ) \n && (this.player.getPlayerCollisionBox().getTop().get(playerIndex).y == this.gameMap.get(index).getTileLocForEnd().y ) ||\n // bottom direction\n (((this.player.getPlayerCollisionBox().getBottom().get(playerIndex).x == this.gameMap.get(index).getTileLocForEnd().x ) \n && (this.player.getPlayerCollisionBox().getBottom().get(playerIndex).y == this.gameMap.get(index).getTileLocForEnd().y))) ||\n // right direction \n (((this.player.getPlayerCollisionBox().getRight().get(playerIndex).x == this.gameMap.get(index).getTileLocForEnd().x ) \n && ((this.player.getPlayerCollisionBox().getRight().get(playerIndex).y) == this.gameMap.get(index).getTileLocForEnd().y))) ||\n // left direction\n (((this.player.getPlayerCollisionBox().getLeft().get(playerIndex).x == this.gameMap.get(index).getTileLocForEnd().x ) \n && ((this.player.getPlayerCollisionBox().getLeft().get(playerIndex).y) == this.gameMap.get(index).getTileLocForEnd().y)))) \n {\n //System.out.println(\"End of Level\");\n\n // Verify LV completion by Shawn \t\n \tcontroller.handleLevelsRemaining();\n \t\n \tif(controller.verifyComplete == false)\n \t{\n \t\tthis.reInit();\n \t}\n \telse\n \t{\n \t\tMain.stage.close();\n \t\thandleLevelCompletion();\n \t}\n \t//\n }\n }\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\tif(this.gameMap.get(index).isCollidable()) \n\t\t\t\t\t{\n\t\t\t\t\t\t\n\t\t\t\t\t\t//then checks to see if the block is near the player and sets it to collidable. \n\t\t\t\t\t\tif(this.gameMap.get(index).getxPos() < this.player.getPlayerArea().getRight().get(playerIndex).x && this.gameMap.get(index).getxPos() > this.player.getPlayerArea().getLeft().get(playerIndex).x\n\t\t\t\t\t\t\t && this.gameMap.get(index).getyPos() > this.player.getPlayerArea().getTop().get(playerIndex).y && this.gameMap.get(index).getyPos() < this.player.getPlayerArea().getBottom().get(playerIndex).y) \n\t\t\t\t\t\t{\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tg.setStroke(Color.RED);\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tg.strokeLine(this.gameMap.get(index).getcBox().getTop().get(0).x, this.gameMap.get(index).getcBox().getTop().get(0).y, this.gameMap.get(index).getcBox().getTop().get(this.gameMap.get(index).getcBox().getTop().size()-1).x , this.gameMap.get(index).getcBox().getTop().get(this.gameMap.get(index).getcBox().getTop().size()-1).y);\n\t\t\t\t\t\t\tg.strokeLine(this.gameMap.get(index).getcBox().getRight().get(0).x, this.gameMap.get(index).getcBox().getRight().get(0).y, this.gameMap.get(index).getcBox().getRight().get(this.gameMap.get(index).getcBox().getRight().size()-1).x , this.gameMap.get(index).getcBox().getRight().get(this.gameMap.get(index).getcBox().getRight().size()-1).y);\n\t\t\t\t\t\t\tg.strokeLine(this.gameMap.get(index).getcBox().getLeft().get(0).x, this.gameMap.get(index).getcBox().getLeft().get(0).y, this.gameMap.get(index).getcBox().getLeft().get(this.gameMap.get(index).getcBox().getLeft().size()-1).x , this.gameMap.get(index).getcBox().getLeft().get(this.gameMap.get(index).getcBox().getLeft().size()-1).y);\n\t\t\t\t\t\t\tg.strokeLine(this.gameMap.get(index).getcBox().getBottom().get(0).x, this.gameMap.get(index).getcBox().getBottom().get(0).y,this.gameMap.get(index).getcBox().getBottom().get(this.gameMap.get(index).getcBox().getBottom().size()-1).x , this.gameMap.get(index).getcBox().getBottom().get(this.gameMap.get(index).getcBox().getBottom().size()-1).y);\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tfor(int pointIndex = 0; pointIndex < this.gameMap.get(index).getcBox().getBottom().size();pointIndex++){\n\t\t\t\t\t\t\t\t// up\n\t\t\t\t\t\t\t\tif((this.player.getPlayerCollisionBox().getTop().get(playerIndex).x == this.gameMap.get(index).getcBox().getBottom().get(pointIndex).x ) && \n\t\t\t\t\t\t\t\t\t(this.player.getPlayerCollisionBox().getTop().get(playerIndex).y == this.gameMap.get(index).getcBox().getBottom().get(pointIndex).y) && this.player.getCurrentState() == dir.UP) {\n\t\t\t\t\t\t\t\t\t\tif(this.isCollisionSet == false) {\n\t\t\t\t\t\t\t\t\t\t\tthis.player.setPlayerPosition(0, 1); // bounces the player from outside the matched bounds. \n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\tthis.isCollisionSet = true;\n\t\t\t\t\t\t\t\t\t\tthis.player.setStop(true);\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t//bottom direction\n\t\t\t\t\t\t\t\t}else if((this.player.getPlayerCollisionBox().getBottom().get(playerIndex).x == this.gameMap.get(index).getcBox().getTop().get(pointIndex).x ) && \n\t\t\t\t\t\t\t\t\t\t((this.player.getPlayerCollisionBox().getBottom().get(playerIndex).y) == this.gameMap.get(index).getcBox().getTop().get(pointIndex).y) && this.player.getCurrentState() == dir.DOWN) {\n\t\t\t\t\t\t\t\t\t\t//System.out.println(\"Top Collision: \");\n\t\t\t\t\t\t\t\t\t\tif(this.isCollisionSet == false) {\n\t\t\t\t\t\t\t\t\t\t\tthis.player.setPlayerPosition(0, -1); // bounces the player from outside the matched bounds. \n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t//System.out.println(\"In down dir\");\n\t\t\t\t\t\t\t\t\t\tthis.isCollisionSet = true;\n\t\t\t\t\t\t\t\t\t\tthis.player.setStop(true);\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t// right direction \n\t\t\t\t\t\t\t\t}else if((this.player.getPlayerCollisionBox().getRight().get(playerIndex).x == this.gameMap.get(index).getcBox().getLeft().get(pointIndex).x ) && \n\t\t\t\t\t\t\t\t\t\t((this.player.getPlayerCollisionBox().getRight().get(playerIndex).y) == this.gameMap.get(index).getcBox().getLeft().get(pointIndex).y) && this.player.getCurrentState() == dir.RIGHT) {\n\t\t\t\t\t\t\t\t\t\t//System.out.println(\"Left Collision: \");\n\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\tif(this.isCollisionSet == false) {\n\t\t\t\t\t\t\t\t\t\t\tthis.player.setPlayerPosition(-1, 0); // bounces the player from outside the matched bounds. \n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t//System.out.println(\"In right dir\");\n\t\t\t\t\t\t\t\t\t\tthis.isCollisionSet = true;\n\t\t\t\t\t\t\t\t\t\tthis.player.setStop(true);\n\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t// left direction\n\t\t\t\t\t\t\t\t}else if((this.player.getPlayerCollisionBox().getLeft().get(playerIndex).x == this.gameMap.get(index).getcBox().getRight().get(pointIndex).x ) && \n\t\t\t\t\t\t\t\t\t\t((this.player.getPlayerCollisionBox().getLeft().get(playerIndex).y) == this.gameMap.get(index).getcBox().getRight().get(pointIndex).y) && this.player.getCurrentState() == dir.LEFT) {\n\t\t\t\t\t\t\t\t\t\t//System.out.println(\"Right Collision: \");\n\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\tif(this.isCollisionSet == false) {\n\t\t\t\t\t\t\t\t\t\t\tthis.player.setPlayerPosition(1, 0); // bounces the player from outside the matched bounds. \n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t//System.out.println(\"In left dir\");\t\t\t\t\n\t\t\t\t\t\t\t\t\t\tthis.isCollisionSet = true;\n\t\t\t\t\t\t\t\t\t\tthis.player.setStop(true);\n\t\t\t\t\t\t\t\t}else {\n\t\t\t\t\t\t\t\t\tif(this.player.getCurrentState() != this.player.getlastState() && this.isCollisionSet == true) {\n\t\t\t\t\t\t\t\t\t\tthis.player.setStop(false);\n\t\t\t\t\t\t\t\t\t\tthis.isCollisionSet = false;\n\t\t\t\t\t\t\t\t\t\t//System.out.println(\"Resetting everything\");\n\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\t\n\t\t\t}\n\t\t}\t\n\t}\n\t\t\t/**\n\t\t\t * seems to work,, need further testing but great progress so far...\n\t\t\t * till need to implement what happens to both entities.\n\t\t\t */\n\t\t\t// collision for the enemies*//\n\t\t\t\tif(this.enemyCount > 0) { // check to see if there are any enemies.\n\t\t\t\t\t\n\t\t\t\t\tfor(int enemyCount = 0; enemyCount < this.enemies.size() ;enemyCount++) {\n\t\t\t\t\t\tfor(int playerIndex = 0; playerIndex < (this.player.playerSize()-playerRedu); playerIndex++) {\t\t\t\t\t\n\t\t\t\t\t\t\tfor(int pointIndex = 0; pointIndex < this.enemies.get(0).getcBox().getBottom().size(); pointIndex++) {\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tif((this.player.getPlayerCollisionBox().getTop().get(playerIndex).x == this.enemies.get(enemyCount).getcBox().getBottom().get(pointIndex).x ) && \n\t\t\t\t\t\t\t\t\t\t(this.player.getPlayerCollisionBox().getTop().get(playerIndex).y == this.enemies.get(enemyCount).getcBox().getBottom().get(pointIndex).y) ) {\n\t\t\t\t\t\t\t\t\t\t\tif(this.isCollisionSet == false) {\n\t\t\t\t\t\t\t\t\t\t\t\tthis.player.setPlayerPosition(0, 1); // bounces the player from outside the matched bounds.\n\t\t\t\t\t\t\t\t\t\t\t\tthis.enemies.get(enemyCount).setEnemyLocation(0, -1);\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\tthis.isCollisionSet = true;\n\t\t\t\t\t\t\t\t\t\t\tthis.player.setStop(true);\n\t\t\t\t\t\t\t\t\t\t\tSystem.out.println(\"Attack Collision Action is REQUIRED!!!\");\n\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t//*************::TESTING::***********************************************************\n\t\t\t\t\t\t\t\t\t\t\tif(this.player.getIsAttacking()) {\t\n\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\tthis.enemies.remove(enemyCount);\n\t\t\t\t\t\t\t\t\t\t\t\tthis.enemyCount--;\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t//************************************************************************\n\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t//bottom direction\n\t\t\t\t\t\t\t\t\t}else if((this.player.getPlayerCollisionBox().getBottom().get(playerIndex).x == this.enemies.get(enemyCount).getcBox().getTop().get(pointIndex).x ) && \n\t\t\t\t\t\t\t\t\t\t\t((this.player.getPlayerCollisionBox().getBottom().get(playerIndex).y) == this.enemies.get(enemyCount).getcBox().getTop().get(pointIndex).y) ) {\n\t\t\t\t\t\t\t\t\t\t\t//System.out.println(\"Top Collision: \");\n\t\t\t\t\t\t\t\t\t\t\tif(this.isCollisionSet == false) {\n\t\t\t\t\t\t\t\t\t\t\t\tthis.player.setPlayerPosition(0, -1); // bounces the player from outside the matched bounds.\n\t\t\t\t\t\t\t\t\t\t\t\tthis.enemies.get(enemyCount).setEnemyLocation(0, +1);\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t//System.out.println(\"In down dir\");*/\n\t\t\t\t\t\t\t\t\t\t\tthis.isCollisionSet = true;\n\t\t\t\t\t\t\t\t\t\t\tthis.player.setStop(true);\n\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\tSystem.out.println(\"Attack Collision Action is REQUIRED!!!\");\n\t\t\t\t\t\t\t\t\t\t\tif(this.player.getIsAttacking()) {\t\n\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\tthis.enemies.remove(enemyCount);\n\t\t\t\t\t\t\t\t\t\t\t\tthis.enemyCount--;\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t// right direction \n\t\t\t\t\t\t\t\t\t}else if((this.player.getPlayerCollisionBox().getRight().get(playerIndex).x == this.enemies.get(enemyCount).getcBox().getLeft().get(pointIndex).x ) && \n\t\t\t\t\t\t\t\t\t\t\t((this.player.getPlayerCollisionBox().getRight().get(playerIndex).y) == this.enemies.get(enemyCount).getcBox().getLeft().get(pointIndex).y) ) {\n\t\t\t\t\t\t\t\t\t\t\t//System.out.println(\"Left Collision: \");\n\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\tif(this.isCollisionSet == false) {\n\t\t\t\t\t\t\t\t\t\t\t\tthis.player.setPlayerPosition(-1, 0); // bounces the player from outside the matched bounds. \n\t\t\t\t\t\t\t\t\t\t\t\tthis.enemies.get(enemyCount).setEnemyLocation(+1, 0);\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t//System.out.println(\"In right dir\");*/\n\t\t\t\t\t\t\t\t\t\t\tthis.isCollisionSet = true;\n\t\t\t\t\t\t\t\t\t\t\tthis.player.setStop(true);\n\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\tSystem.out.println(\"Attack Collision Action is REQUIRED!!!\");\n\t\t\t\t\t\t\t\t\t\t\tif(this.player.getIsAttacking()) {\t\n\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\tthis.enemies.remove(enemyCount);\n\t\t\t\t\t\t\t\t\t\t\t\tthis.enemyCount--;\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t// left direction\n\t\t\t\t\t\t\t\t\t}else if((this.player.getPlayerCollisionBox().getLeft().get(playerIndex).x == this.enemies.get(enemyCount).getcBox().getRight().get(pointIndex).x ) && \n\t\t\t\t\t\t\t\t\t\t\t((this.player.getPlayerCollisionBox().getLeft().get(playerIndex).y) == this.enemies.get(enemyCount).getcBox().getRight().get(pointIndex).y) ) {\n\t\t\t\t\t\t\t\t\t\t\t//System.out.println(\"Right Collision: \");\n\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\tif(this.isCollisionSet == false) {\n\t\t\t\t\t\t\t\t\t\t\t\tthis.player.setPlayerPosition(1, 0); // bounces the player from outside the matched bounds.\n\t\t\t\t\t\t\t\t\t\t\t\tthis.enemies.get(enemyCount).setEnemyLocation(-1, 0);\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t//System.out.println(\"In left dir\");\t*/\t\t\t\n\t\t\t\t\t\t\t\t\t\t\tthis.isCollisionSet = true;\n\t\t\t\t\t\t\t\t\t\t\tthis.player.setStop(true);\n\t\t\t\t\t\t\t\t\t\t\tSystem.out.println(\"Attack Collision Action is REQUIRED!!!\");\n\t\t\t\t\t\t\t\t\t\t\tif(this.player.getIsAttacking()) {\t\n\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\tthis.enemies.remove(enemyCount);\n\t\t\t\t\t\t\t\t\t\t\t\tthis.enemyCount--;\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t}else {\n\t\t\t\t\t\t\t\t\t\tif(this.player.getCurrentState() != this.player.getlastState() && this.isCollisionSet == true) {\n\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\tthis.isCollisionSet = false;\n\t\t\t\t\t\t\t\t\t\t\tthis.player.setStop(false);\n\t\t\t\t\t\t\t\t\t\t\t//System.out.println(\"Resetting everything\");\n\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\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\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\n\t\tg.setStroke(Color.BLACK);\n\t\t\n\t\tg.strokeLine(this.player.getPlayerCollisionBox().getTop().get(0).x, this.player.getPlayerCollisionBox().getTop().get(0).y, this.player.getPlayerCollisionBox().getTop().get(this.player.getPlayerCollisionBox().getTop().size()-1).x , this.player.getPlayerCollisionBox().getTop().get(this.player.getPlayerCollisionBox().getTop().size()-1).y);\n\t\tg.strokeLine(this.player.getPlayerCollisionBox().getRight().get(0).x, this.player.getPlayerCollisionBox().getRight().get(0).y, this.player.getPlayerCollisionBox().getRight().get(this.player.getPlayerCollisionBox().getRight().size()-1).x , this.player.getPlayerCollisionBox().getRight().get(this.player.getPlayerCollisionBox().getRight().size()-1).y);\n\t\tg.strokeLine(this.player.getPlayerCollisionBox().getLeft().get(0).x, this.player.getPlayerCollisionBox().getLeft().get(0).y, this.player.getPlayerCollisionBox().getLeft().get(this.player.getPlayerCollisionBox().getLeft().size()-1).x , this.player.getPlayerCollisionBox().getLeft().get(this.player.getPlayerCollisionBox().getLeft().size()-1).y);\n\t\tg.strokeLine(this.player.getPlayerCollisionBox().getBottom().get(0).x, this.player.getPlayerCollisionBox().getBottom().get(0).y, this.player.getPlayerCollisionBox().getBottom().get(this.player.getPlayerCollisionBox().getBottom().size()-1).x , this.player.getPlayerCollisionBox().getBottom().get(this.player.getPlayerCollisionBox().getBottom().size()-1).y);\n\t\t\n\t}", "title": "" }, { "docid": "18f1fa2c369cc19b8b7cf1dfefff421a", "score": "0.5542496", "text": "public void checkCollision(){\r\n\t\tdouble pX = p.getX();\r\n\t\tdouble pY = p.getY();\r\n\r\n\t\tRectangle2D pHitbox = new Rectangle2D.Double(pX, pY, 90, 30);\r\n\t\t\r\n\t\tdouble projectileX;\r\n\t\tdouble projectileY;\r\n\r\n\t\tfor (CannonBall mine : projectiles) {\r\n\t\t\tprojectileX = mine.getX();\r\n\t\t\tprojectileY = mine.getY();\r\n\t\t\tRectangle2D projectileHitbox = new Rectangle2D.Double(projectileX,projectileY,50, 50);\r\n\r\n\t\t\tif(pHitbox.intersects(projectileHitbox)){\r\n\t\t\t\thits+=1;\r\n\t\t\t\tprojectiles.remove(mine);\r\n\t\t\t\tprojectileHitbox = null;\r\n\t\t\t\tSystem.out.println(\"hit!\");\r\n\t\t\t\thearts.remove(hearts.size()-hits);\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t}\r\n\t\thits = 0;\r\n\t\t}", "title": "" }, { "docid": "92ea14f65071b1a744f2825991c1d761", "score": "0.55408317", "text": "@Override\r\n public void Update() {\r\n Move();\r\n for(int i = 0; i<refLink.GetGame().GetPlayState().GetManager().GetEntities().size();i++){\r\n float dx = refLink.GetGame().GetPlayState().GetManager().GetEntities().get(0).GetX();\r\n float dy = refLink.GetGame().GetPlayState().GetManager().GetEntities().get(0).GetY();\r\n if(refLink.GetGame().GetPlayState().GetManager().GetEntities().get(i) == refLink.GetGame().GetPlayState().GetManager().GetEntities().get(0) ){\r\n diffX = x - dx - width;\r\n diffY = y - dy - height;\r\n distance = (float)Math.sqrt((x - dx) * (x - dx) + (y - dy) * (y - dy));\r\n }\r\n }\r\n if(distance < 250) {\r\n xMove = ((1 / distance) * diffX);\r\n yMove = ((1 / distance) * diffY);\r\n }else{\r\n xMove = 0;\r\n yMove = 0;\r\n }\r\n }", "title": "" }, { "docid": "1d54181a5fcfe2136a961f4f02f2669b", "score": "0.55350614", "text": "private int overlap(Point loc){\r\n int result = Settings.NONE;\r\n Point pixelToGridShip = null; //converted grid coordinates of the ship \r\n Point pixelToGridProjectiles = null; //converted grid coordinates of the projectiles \r\n \r\n // TODO: Check all segments of all centipedes to see if they contain the Point loc.\r\n for(int i = 0; i < myCentipedes.length; i++) { //loop to check all the segments of a particular centipede\r\n if(myCentipedes[i] != null //make sure that the particular centipede exists \r\n && myCentipedes[i].length != 0) { //make sure the particular centipede has at least a segment\r\n if(myCentipedes[i].contains(loc) != -1) { //make sure that the particular centipede contains the Point loc.\r\n result += Settings.CENT;\r\n break; //terminate the loop; note: we use nested if loop so that the inner loop can be broken without the affecting the outer loop \r\n }\r\n }\r\n }\r\n \r\n // TODO: Check all mushrooms to see if they contain the Point loc.\r\n if (((loc.x < myMushrooms.length) && (loc.x >= 0)) && //first we test whether x-coordinate of the Point loc is within the \"boundary\" of a mushroom \r\n //(a mushroom (of grid coordinate) is greater than a Point loc (of pixel coordinate))\r\n // boundary is from (inclusive) 0 to (exclusive) dimension of the mushroom with respect to x-axis\r\n ((loc.y < myMushrooms[loc.x].length) && (loc.y >= 0))) { //then we test the y-coordinate of the Point loc\r\n if(myMushrooms[loc.x][loc.y] != null){ //if a mushroom exists in the location of the Point loc, the result will be added\r\n result += Settings.SHROOM;\r\n }\r\n }\r\n \r\n // TODO: Check to see if the ship occupies the Point loc.\r\n int pixelToGridShipX = (int) Math.floor(myShip.loc.x / 20.0); //x-coordinate of the converted grid coordinate of a ship; \r\n //parsing and usage of Math.floor are essential as we want an accurate integer coordinate\r\n int pixelToGridShipY = (int) Math.floor(myShip.loc.y / 20.0); //y-coordinate of the converted grid coordinate of a ship\r\n \r\n pixelToGridShip = new Point(pixelToGridShipX, pixelToGridShipY);\r\n \r\n if(loc.equals(pixelToGridShip)) { //if the Point loc has the same location with the converted grid coordinate of the ship, the result will be added\r\n result += Settings.SHIP;\r\n }\r\n \r\n \r\n // TODO: Check all projectiles to see if they contain the Point loc.\r\n int pixelToGridProjectilesX = 0; //x-coordinate of the converted grid coordinate of a projectile\r\n int pixelToGridProjectilesY = 0; //y-coordinate of the converted grid coordinate of a projectile\r\n \r\n for (int i = 0; i < myProjectiles.length; i++) { //number of loops is based on number of projectiles \r\n if(myProjectiles[i] != null) { \r\n pixelToGridProjectilesX = (int) Math.floor(myProjectiles[i].x / 20.0); //parsing and Math.floor() are essential as we want an accurate integer coordinate\r\n pixelToGridProjectilesY = (int) Math.floor(myProjectiles[i].y / 20.0);\r\n pixelToGridProjectiles = new Point(pixelToGridProjectilesX, pixelToGridProjectilesY);\r\n }\r\n \r\n if(loc.equals(pixelToGridProjectiles)) { //if the Point loc has the same location with the converted grid coordinate of the projectile, the result will be added\r\n result += Settings.PROJECTILE;\r\n break; //the loop is stop when we found the Point loc\r\n }\r\n }\r\n \r\n // TODO: Check to see if the point has impacted or crossed beyond a wall.\r\n if(loc.x < 0 || loc.y < 0 || loc.x > 29 || loc.y > 29) { //the point will impact the wall when its loc.x and loc.y are lesser than 0 or greater than 29 (both valid for 0 to 29 only)\r\n result += Settings.WALL;\r\n }\r\n \r\n return result;\r\n \r\n }", "title": "" }, { "docid": "037cfe5c3d8ebcf91373bdeff9e6e990", "score": "0.5534721", "text": "public void update(float tslf) {\n\t\tfloat width = this.size;\r\n\t\tfloat height = this.size;\r\n\t\t//Collision with player\r\n\t\t{\r\n\t\t\tEden p = Globals.player;\r\n\t\t\tif(Globals.checkCollisionRectangleToRectangle(p.x, p.y, p.size, p.size, this.x, this.y, width, height)) {\r\n\t\t\t\tfloat pcx = p.x + p.size/2;\r\n\t\t\t\tfloat pcy = p.y + p.size/2;\r\n\t\t\t\tfloat ecx = this.x + width/2;\r\n\t\t\t\tfloat ecy = this.y + height/2;\r\n\r\n\t\t\t\tfloat distx = pcx - ecx;\r\n\t\t\t\tfloat disty = pcy - ecy;\r\n\r\n\t\t\t\t//TODO: Rework the angle system\r\n\t\t\t\tfloat newAngle = (float) Math.atan(distx / disty);\r\n\t\t\t\tnewAngle = (float) Math.toDegrees(newAngle);\r\n\t\t\t\tif(pcx >= ecx && pcy <= ecy) newAngle *= -1;\r\n\t\t\t\tif(pcx >= ecx && pcy >= ecy) newAngle = 180 - newAngle;\r\n\t\t\t\tif(pcx <= ecx && pcy >= ecy) newAngle = 180 - newAngle;\r\n\t\t\t\tif(pcx <= ecx && pcy <= ecy) newAngle = 360 - newAngle;\r\n\r\n\t\t\t\tif(newAngle >= 280 && newAngle <= 360 || newAngle >= 0 && newAngle <= 80) {\r\n\t\t\t\t\tp.y = this.y - p.size;\r\n\t\t\t\t}\r\n\t\t\t\tif(newAngle >= 80 && newAngle <= 100) {\r\n\t\t\t\t\tp.x = this.x + width;\r\n\t\t\t\t}\r\n\t\t\t\tif(newAngle >= 100 && newAngle <= 255) {\r\n\t\t\t\t\tp.y = this.y + height;\r\n\t\t\t\t}\r\n\t\t\t\tif(newAngle >= 255 && newAngle <= 280) {\r\n\t\t\t\t\tp.x = this.x - p.size;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\t//Collision with Enemies \r\n\t\tfor (Enemy e : Game.currentMap.enemies) {\r\n\t\t\tif(Globals.checkCollisionRectangleToRectangle(e.x, e.y, e.size, e.size, this.x, this.y, width, height)) {\r\n\t\t\t\tfloat pcx = e.x + e.size/2;\r\n\t\t\t\tfloat pcy = e.y + e.size/2;\r\n\t\t\t\tfloat ecx = this.x + width/2;\r\n\t\t\t\tfloat ecy = this.y + height/2;\r\n\r\n\t\t\t\tfloat distx = pcx - ecx;\r\n\t\t\t\tfloat disty = pcy - ecy;\r\n\r\n\t\t\t\t//TODO: Rework the angle system\r\n\t\t\t\tfloat newAngle = (float) Math.atan(distx / disty);\r\n\t\t\t\tnewAngle = (float) Math.toDegrees(newAngle);\r\n\t\t\t\tif(pcx >= ecx && pcy <= ecy) newAngle *= -1;\r\n\t\t\t\tif(pcx >= ecx && pcy >= ecy) newAngle = 180 - newAngle;\r\n\t\t\t\tif(pcx <= ecx && pcy >= ecy) newAngle = 180 - newAngle;\r\n\t\t\t\tif(pcx <= ecx && pcy <= ecy) newAngle = 360 - newAngle;\r\n\r\n\t\t\t\tif(newAngle >= 280 && newAngle <= 360 || newAngle >= 0 && newAngle <= 80) {\r\n\t\t\t\t\te.y = this.y - e.size;\r\n\t\t\t\t}\r\n\t\t\t\tif(newAngle >= 80 && newAngle <= 100) {\r\n\t\t\t\t\te.x = this.x + width;\r\n\t\t\t\t}\r\n\t\t\t\tif(newAngle >= 100 && newAngle <= 255) {\r\n\t\t\t\t\te.y = this.y + height;\r\n\t\t\t\t}\r\n\t\t\t\tif(newAngle >= 255 && newAngle <= 280) {\r\n\t\t\t\t\te.x = this.x - e.size;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "3be3b7ec28e2e8ff8e455513c865929e", "score": "0.55312556", "text": "public interface CollisionManager {\r\n\t\r\n /**\r\n * Retrieve the intersecting object under the given node.\r\n * @param ray The <code>Ray</code> to check with.\r\n * @param root The root <code>Node</code> to check against.\r\n * @param reference The <code>Class</code> reference of the expected object.\r\n * @param iterate True if all intersected objects should be checked. Otherwise only the first is checked.\r\n * @return The <code>Spatial</code> that is of the given reference <code>Class</code>.\r\n */\r\n public Spatial getIntersectObject(Ray ray, Node root, Class<? extends Spatial> reference, boolean iterate);\r\n\r\n /**\r\n * Retrieve the intersection point with the given ray and spatial in either\r\n * world coordinate system or local coordinate system of the given spatial\r\n * based on the given flag value. The intersection result is stored in the\r\n * given vector and returned. If the given store is null, a new vector instance\r\n * is created and returned with the intersection result.\r\n * @param ray The <code>Ray</code> to check with.\r\n * @param parent The parent <code>Spatial</code> to check against.\r\n * @param store The <code>Vector3f</code> to store the intersection result in.\r\n * @param local True if the intersection should be converted to local coordinate system of the parent.\r\n * @return If hit, the <code>Vector3f</code> intersection is returned. Otherwise <code>null</code> is returned.\r\n */\r\n public Vector3f getIntersection(Ray ray, Spatial parent, Vector3f store, boolean local);\r\n \r\n /**\r\n * Retrieve the valid destination point based on the given coordinate values.\r\n * @param x1 The x coordinate of the starting position in the given spatial's local coordinate system.\r\n * @param z1 The z coordinate of the starting position in the given spatial's local coordinate system.\r\n * @param x2 The x coordinate of the clicking position in the given spatial's local coordinate system.\r\n * @param z2 The z coordinate of the clicking position in the given spatial's local coordinate system.\r\n * @param spatial The <code>Spatial</code> instance to check against.\r\n * @return The valid <code>Vector3f</code> destination.\r\n */\r\n public Vector3f getDestination(float x1, float z1, float x2, float z2, Spatial spatial);\r\n\r\n /**\r\n * Validate if there is any static objects between the given points.\r\n * @param x1 The x coordinate of the starting position in the given spatial's local coordinate system.\r\n * @param z1 The z coordinate of the starting position in the given spatial's local coordinate system.\r\n * @param x2 The x coordinate of the clicking position in the given spatial's local coordinate system.\r\n * @param z2 The z coordinate of the clicking position in the given spatial's local coordinate system.\r\n * @param spatial The <code>Spatial</code> instance to check against.\r\n * @return True if there is no occlusion objects. False otherwise.\r\n */\r\n public boolean validate(float x1, float z1, float x2, float z2, Spatial spatial);\r\n}", "title": "" }, { "docid": "59f5b5c04bf2b596795a3e8227d86112", "score": "0.55284214", "text": "public void handleCollideObjects() {\r\n\t\tIIterator theElements = worldObjects.getIterator();\r\n\t\tVector<GameObject> tmp = new Vector<GameObject>();\r\n\t\t\r\n\t\twhile(theElements.hasNext()) {\r\n\t\t\tICollider currObj = (ICollider) theElements.getNext();\r\n\t\t\t// check if this object collides with any other object\r\n\t\t\tIIterator theElements2 = worldObjects.getIterator();\r\n\t\t\twhile(theElements2.hasNext()) {\r\n\t\t\t\tICollider otherObj = (ICollider) theElements2.getNext();\r\n\t\t\t\t// check for collision\r\n\t\t\t\tif (currObj != otherObj) {\r\n\t\t\t\t\tif(currObj.collidesWith(otherObj)) {\r\n\t\t\t\t\t\tcurrObj.handleCollision(otherObj);\r\n\t\t\t\t\t\ttmp.add((GameObject) currObj);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\t// find two objects which have the same case and do the case operation\r\n\t\tfor (int i = 0; i < tmp.size(); i++) {\r\n\t\t\tfor (int j = 1; j < tmp.size(); j++) {\r\n\t\t\t\tif (tmp.elementAt(i) != tmp.elementAt(j)) {\r\n\t\t\t\t\t\r\n\t\t\t\t\t// case 1 Player Ship Missile hits Asteroid\r\n\t\t\t\t\tif (tmp.elementAt(i).getCollideCase() == 1 && tmp.elementAt(j).getCollideCase() == 1) {\r\n\t\t\t\t\t\ttmp.elementAt(i).setCollideCase(-1);\r\n\t\t\t\t\t\ttmp.elementAt(j).setCollideCase(-1);\r\n\t\t\t\t\t\tworldObjects.remove(tmp.elementAt(i));\r\n\t\t\t\t\t\tworldObjects.remove(tmp.elementAt(j));\r\n\t\t\t\t\t\tthis.score += 2;\r\n\t\t\t\t\t\tif (sound) { // if sound is on\r\n\t\t\t\t\t\t\tSound s = new Sound(\"explode.wav\");\r\n\t\t\t\t\t\t\ts.play();\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// case 2 Player Ship Missile hits Non Player Ship\r\n\t\t\t\t\tif (tmp.elementAt(i).getCollideCase() == 2 && tmp.elementAt(j).getCollideCase() == 2) {\r\n\t\t\t\t\t\ttmp.elementAt(i).setCollideCase(-1);\r\n\t\t\t\t\t\ttmp.elementAt(j).setCollideCase(-1);\r\n\t\t\t\t\t\tworldObjects.remove(tmp.elementAt(i));\r\n\t\t\t\t\t\tworldObjects.remove(tmp.elementAt(j));\r\n\t\t\t\t\t\tthis.score += 5;\r\n\t\t\t\t\t\tif (sound) {\r\n\t\t\t\t\t\t\tSound s = new Sound(\"explode.wav\");\r\n\t\t\t\t\t\t\ts.play();\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t\t// case 3 Non Player Ship Missile hits Player Ship\r\n\t\t\t\t\tif (tmp.elementAt(i).getCollideCase() == 3 && tmp.elementAt(j).getCollideCase() == 3) {\r\n\t\t\t\t\t\ttmp.elementAt(i).setCollideCase(-1);\r\n\t\t\t\t\t\ttmp.elementAt(j).setCollideCase(-1);\r\n\t\t\t\t\t\tif (tmp.elementAt(i) instanceof PlayerShip) {\r\n\t\t\t\t\t\t\tworldObjects.remove(tmp.elementAt(j)); // remove NPS missile\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\tif (this.lives <= 1) {\r\n\t\t\t\t\t\t\t\tthis.lives -= 1;\r\n\t\t\t\t\t\t\t\tworldObjects.remove(tmp.elementAt(i));\r\n\t\t\t\t\t\t\t\tthis.gameOver();\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\telse {\r\n\t\t\t\t\t\t\t\tthis.lives -= 1;\r\n\t\t\t\t\t\t\t\tif (sound) {\r\n\t\t\t\t\t\t\t\tSound s = new Sound(\"gothit.wav\");\r\n\t\t\t\t\t\t\t\ts.play();\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\t\r\n\t\t\t\t\t\tif (tmp.elementAt(j) instanceof PlayerShip) {\r\n\t\t\t\t\t\t\tworldObjects.remove(tmp.elementAt(i)); // remove NPS missile\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\tif (this.lives <= 1) {\r\n\t\t\t\t\t\t\t\tthis.lives -= 1;\r\n\t\t\t\t\t\t\t\tworldObjects.remove(tmp.elementAt(j));\r\n\t\t\t\t\t\t\t\tthis.gameOver();\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\telse {\r\n\t\t\t\t\t\t\t\tthis.lives -= 1;\r\n\t\t\t\t\t\t\t\tif (sound) {\r\n\t\t\t\t\t\t\t\t\tSound s = new Sound(\"gothit.wav\");\r\n\t\t\t\t\t\t\t\t\ts.play();\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\t\r\n\t\t\t\t\t// case 4 Player Ship hits Asteroid\r\n\t\t\t\t\tif (tmp.elementAt(i).getCollideCase() == 4 && tmp.elementAt(j).getCollideCase() == 4) {\r\n\t\t\t\t\t\ttmp.elementAt(i).setCollideCase(-1);\r\n\t\t\t\t\t\ttmp.elementAt(j).setCollideCase(-1);\r\n\t\t\t\t\t\tif (tmp.elementAt(i) instanceof PlayerShip) {\r\n\t\t\t\t\t\t\tworldObjects.remove(tmp.elementAt(j)); // remove Asteroid\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\tif (this.lives <= 1) {\r\n\t\t\t\t\t\t\t\tthis.lives -= 1;\r\n\t\t\t\t\t\t\t\tworldObjects.remove(tmp.elementAt(i));\r\n\t\t\t\t\t\t\t\tthis.gameOver();\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\telse {\r\n\t\t\t\t\t\t\t\tthis.lives -= 1;\r\n\t\t\t\t\t\t\t\tif (sound) {\r\n\t\t\t\t\t\t\t\t\tSound s = new Sound(\"gothit.wav\");\r\n\t\t\t\t\t\t\t\t\ts.play();\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\t\r\n\t\t\t\t\t\tif (tmp.elementAt(j) instanceof PlayerShip) {\r\n\t\t\t\t\t\t\tworldObjects.remove(tmp.elementAt(i)); // remove Asteroid\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\tif (this.lives <= 1) {\r\n\t\t\t\t\t\t\t\tthis.lives -= 1;\r\n\t\t\t\t\t\t\t\tworldObjects.remove(tmp.elementAt(j));\r\n\t\t\t\t\t\t\t\tthis.gameOver();\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\telse {\r\n\t\t\t\t\t\t\t\tthis.lives -= 1;\r\n\t\t\t\t\t\t\t\tif (sound) {\r\n\t\t\t\t\t\t\t\t\tSound s = new Sound(\"gothit.wav\");\r\n\t\t\t\t\t\t\t\t\ts.play();\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\t\r\n\t\t\t\t\t// case 5 player ship hits non player ship\r\n\t\t\t\t\tif (tmp.elementAt(i).getCollideCase() == 5 && tmp.elementAt(j).getCollideCase() == 5) {\r\n\t\t\t\t\t\ttmp.elementAt(i).setCollideCase(-1);\r\n\t\t\t\t\t\ttmp.elementAt(j).setCollideCase(-1);\r\n\t\t\t\t\t\tif (tmp.elementAt(i) instanceof PlayerShip) {\r\n\t\t\t\t\t\t\tworldObjects.remove(tmp.elementAt(j)); // remove Non Player Ship\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\tif (this.lives <= 1) {\r\n\t\t\t\t\t\t\t\tthis.lives -= 1;\r\n\t\t\t\t\t\t\t\tworldObjects.remove(tmp.elementAt(i));\r\n\t\t\t\t\t\t\t\tthis.gameOver();\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\telse {\r\n\t\t\t\t\t\t\t\tthis.lives -= 1;\r\n\t\t\t\t\t\t\t\tif (sound) {\r\n\t\t\t\t\t\t\t\t\tSound s = new Sound(\"gothit.wav\");\r\n\t\t\t\t\t\t\t\t\ts.play();\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\t\r\n\t\t\t\t\t\tif (tmp.elementAt(j) instanceof PlayerShip) {\r\n\t\t\t\t\t\t\tworldObjects.remove(tmp.elementAt(i)); // remove Non Player Ship\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\tif (this.lives <= 1) {\r\n\t\t\t\t\t\t\t\tthis.lives -= 1;\r\n\t\t\t\t\t\t\t\tworldObjects.remove(tmp.elementAt(j));\r\n\t\t\t\t\t\t\t\tthis.gameOver();\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\telse {\r\n\t\t\t\t\t\t\t\tthis.lives -= 1;\r\n\t\t\t\t\t\t\t\tif (sound) {\r\n\t\t\t\t\t\t\t\t\tSound s = new Sound(\"gothit.wav\");\r\n\t\t\t\t\t\t\t\t\ts.play();\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\t\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t\t// case 6 Asteroid hits another Asteroid\r\n\t\t\t\t\tif (tmp.elementAt(i).getCollideCase() == 6 && tmp.elementAt(j).getCollideCase() == 6) {\r\n\t\t\t\t\t\ttmp.elementAt(i).setCollideCase(-1);\r\n\t\t\t\t\t\ttmp.elementAt(j).setCollideCase(-1);\r\n\t\t\t\t\t\tworldObjects.remove(tmp.elementAt(i));\r\n\t\t\t\t\t\tworldObjects.remove(tmp.elementAt(j));\r\n\t\t\t\t\t\tif (sound) { // if sound is on\r\n\t\t\t\t\t\t\tSound s = new Sound(\"explode.wav\");\r\n\t\t\t\t\t\t\ts.play();\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// case 7 Asteroid hits Non Player Ship\r\n\t\t\t\t\tif (tmp.elementAt(i).getCollideCase() == 7 && tmp.elementAt(j).getCollideCase() == 7) {\r\n\t\t\t\t\t\ttmp.elementAt(i).setCollideCase(-1);\r\n\t\t\t\t\t\ttmp.elementAt(j).setCollideCase(-1);\r\n\t\t\t\t\t\tworldObjects.remove(tmp.elementAt(i));\r\n\t\t\t\t\t\tworldObjects.remove(tmp.elementAt(j));\r\n\t\t\t\t\t\tif (sound) { // if sound is on\r\n\t\t\t\t\t\t\tSound s = new Sound(\"explode.wav\");\r\n\t\t\t\t\t\t\ts.play();\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// case 8 PlayerShip hits Space Station and reload\r\n\t\t\t\t\tif (tmp.elementAt(i).getCollideCase() == 8 && tmp.elementAt(j).getCollideCase() == 8) {\r\n\t\t\t\t\t\ttmp.elementAt(i).setCollideCase(-1);\r\n\t\t\t\t\t\ttmp.elementAt(j).setCollideCase(-1);\r\n\t\t\t\t\t\tif (this.getMissileCount() != 10) { // reload when player ship does not have full missiles\r\n\t\t\t\t\t\t\tif (tmp.elementAt(i) instanceof PlayerShip) {\r\n\t\t\t\t\t\t\t\t((PlayerShip) tmp.elementAt(i)).setMissileCount(10);\r\n\t\t\t\t\t\t\t\tthis.setMissileCount(10);\r\n\t\t\t\t\t\t\t\tif (sound) { // if sound is on\r\n\t\t\t\t\t\t\t\t\tSound s = new Sound(\"reload.wav\");\r\n\t\t\t\t\t\t\t\t\ts.play();\r\n\t\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 (tmp.elementAt(j) instanceof PlayerShip) {\r\n\t\t\t\t\t\t\t\t((PlayerShip) tmp.elementAt(j)).setMissileCount(10);\r\n\t\t\t\t\t\t\t\tthis.setMissileCount(10);\r\n\t\t\t\t\t\t\t\tif (sound) { // if sound is on\r\n\t\t\t\t\t\t\t\t\tSound s = new Sound(\"reload.wav\");\r\n\t\t\t\t\t\t\t\t\ts.play();\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\tthis.setChanged();\r\n\t\tthis.notifyObservers(new GameWorldProxy(this));\r\n\t}", "title": "" }, { "docid": "544f0bc4aec42def9139faf922f68908", "score": "0.55129224", "text": "public void updateHitbox() {\n this.hitBox.top = this.yPosition;\n this.hitBox.left = this.xPosition;\n this.hitBox.right = this.xPosition + this.playerImage.getWidth();\n this.hitBox.bottom = this.yPosition + this.playerImage.getHeight();\n }", "title": "" }, { "docid": "b42fdfefcb723267b1c799cb6a3d138c", "score": "0.55125093", "text": "public boolean checkEntityCollision(float xOffset, float yOffset)\r\n\t {\r\n\t \t\tfor(Entity e: accessor.getWorld().getEntityUpdater().getEntities()))\r\n\t \t\t{\r\n\t \t\t\tif(e.equals(this))// skip itself\r\n\t \t\t\t{\r\n\t\t \t\t\tcontinue;\r\n\t \t\t\t}\r\n\t \t\t\tif(!e.isProjectile() && e.getCollisionBounds(0f, 0f).intersects(getCollisionBounds(xOffset, yOffset))))\r\n\t \t\t\t{\r\n\t \t\t\t\tif(!team.equals(accessor.getPlayerInterface().getColor()) && !e.isBuilding()))\r\n\t \t\t\t\t\treturn true;\r\n\t \t\t\t}\t\r\n\t \t\t}\r\n\t \t\treturn false;\r\n\t }", "title": "" }, { "docid": "8131ac252e755c5c2c013a7cfa0f3ad4", "score": "0.5491629", "text": "@Override\n public boolean isCaptureReachable(int x, int y)\n {\n if ((xTile + 1 < 8) && (yTile - 1 >= 0))\n {\n if (xTile + 1 == x && yTile - 1 == y)\n {\n return true;\n }\n }\n if (xTile + 1 < 8 && (yTile + 1) < 8)\n {\n if (xTile + 1 == x && yTile + 1 == y)\n {\n return true;\n }\n }\n if ((xTile + 1 < 8))\n {\n if (xTile + 1 == x && yTile == y)\n {\n return true;\n }\n }\n // These were the 3 moves to the right\n // Now, the 3 moves to the left\n\n if ((xTile - 1) >= 0)\n {\n if (xTile - 1 == x && yTile == y)\n {\n return true;\n }\n }\n if ((xTile - 1 >= 0) && (yTile - 1) >= 0)\n {\n if (xTile - 1 == x && yTile - 1 == y)\n {\n return true;\n }\n }\n if ((xTile - 1 >= 0) && (yTile + 1) < 8)\n {\n if (xTile - 1 == x && yTile + 1 == y)\n {\n return true;\n }\n }\n\n // Now, vertically\n if ((yTile - 1) >= 0)\n {\n if (xTile == x && yTile - 1 == y)\n {\n return true;\n }\n }\n if ((yTile + 1) < 8)\n {\n if (xTile == x && yTile + 1 == y)\n {\n return true;\n }\n }\n return false;\n }", "title": "" }, { "docid": "7ff8d3e215a3e90dc44f8c19b620ff29", "score": "0.5478395", "text": "@Override\n public void onCollision(Entity entity_owned, Entity entity){\n if (entity_owned.getPositioning() == null)\n return;\n\n if(entity.getName().equals(EntityType.WALL.name)){\n updatePositionEntityPosition(entity_owned, entity);\n }\n }", "title": "" }, { "docid": "250a9bd3685e1b5ce5c7686cfc56c7de", "score": "0.54697806", "text": "public static boolean fine_tune_collision(GameObject o1, GameObject o2) {\n \n ByteBuffer bb1 = o1.getCurrentTexture().getByteBuffer();\n ByteBuffer bb2 = o2.getCurrentTexture().getByteBuffer();\n int w1 = o1.getCurrentTexture().getWidth();\n int w2 = o2.getCurrentTexture().getWidth();\n int h1 = o1.getCurrentTexture().getHeight();\n int h2 = o2.getCurrentTexture().getHeight();\n Rectangle r1 = o1.getIntAABoundingBox();\n Rectangle r2 = o2.getIntAABoundingBox();\n Point subimageoffset1 = o1.getSubImageOffset();\n Point subimageoffset2 = o2.getSubImageOffset();\n \n Rectangle inter = r2.intersection(r1);\n// System.out.println(\"r1: \" + r1);\n// System.out.println(\"r2: \" + r2);\n// System.out.println(\"in: \" + inter);\n boolean collided = false;\n \n int r1bx = subimageoffset1.x + inter.x - r1.x;\n int r1by = subimageoffset1.y + inter.y - r1.y;\n int r2bx = subimageoffset2.x + inter.x - r2.x;\n int r2by = subimageoffset2.y + inter.y - r2.y;\n \n// Vector<Point2D.Float> vec = new Vector<Point2D.Float>();\n \n// System.out.println(\"/------------------------\\\\\");\n outer : \n for (int i = 0 ; i < inter.height ; i++) {\n for (int j = 0 ; j < inter.width ; j++) {\n \n int b1 = 0;\n// if (((j - inter.x) < r1.width) && ((i - inter.y) < r1.height))\n b1 = (getAlphaAt(bb1, w1, h1, r1bx+j, r1by+i) == 0 ? 0 : 1);\n \n int b2 = 0;\n// if (((j - inter.x) < r2.width) && ((i - inter.y) < r2.height))\n b2 = (getAlphaAt(bb2, w2, h2, r2bx+j, r2by+i) == 0 ? 0 : 1);\n \n// System.out.print(\"\"+ (r2bx+j) +\":\"+ (r2by+i));\n// System.out.print(\"\"+ ((b1 == 1) && (b2 == 1) ? \"X\" : (b1 == b2 ? \" \" : (b1 == 1? \"-\" : \"'\"))) +\" \");\n if (b1 == 1 && b2 == 1) {\n collided = true;\n break outer;\n// vec.add(new Point2D.Float(j+inter.x, i+inter.y));\n }\n }\n// System.out.println(\">\");\n }\n// System.out.println(\"\\\\------------------------/\");\n \n// points = new Point2D.Float[vec.size()];\n// vec.toArray(points);\n \n// collided = false;\n return collided;\n \n }", "title": "" }, { "docid": "8af593c07f5708dbb3af7705108d4244", "score": "0.5464431", "text": "@Override\n public boolean resolveCollision(EntityMoveable obj) {\n \tSystem.out.println(accessible());\n \t\n if (!(obj instanceof Player) && !accessible())\n return false;\n if (accessible())\n return true;\n Player player = (Player) obj;\n if (player.resolveCollision(this)) {\n switchState();\n return true;\n }\n return false;\n }", "title": "" }, { "docid": "7739d4651c4587fc6a1fa35cb71d57ef", "score": "0.5457543", "text": "@Override\n public void hitMotion(Player player) {\n if (!isDestroyed && player.getY() > mBounds.getY() || (-player.getYSpeed()) + mVelocity.y > HEIGHT) {\n if (player.getType() == (type%TOTAL_ELEMENT_TYPE_COUNT)) { // Same type\n if (isFirstTimeCollide) {\n player.addLife();\n }\n player.setY(mBounds.getY() + HEIGHT);\n player.updateBounds();\n } else if (player.getType()+1 == type) { // Stair counter player\n if (isFirstTimeCollide) {\n player.subLife();\n Timer.schedule(new Timer.Task() {\n @Override\n public void run() {\n isFirstTimeCollide = true;\n }\n }, DAMAGE_DELAY_TIME);\n }\n player.setY(mBounds.getY() + HEIGHT);\n player.updateBounds();\n } else { // Player counter stair\n // Disappear\n mTexture = new Texture(\"bg_stair_transparent.png\");\n isDestroyed = true;\n }\n player.setYSpeed(0);\n isFirstTimeCollide = false;\n }\n }", "title": "" }, { "docid": "4ec470e583ef31167cf1f0ebdddfca43", "score": "0.544018", "text": "void checkCollision(Player player, double currentXmin, double\n currentXmax, double currentYmin, double currentYmax) {\n if ((player.xPos + player.size > x1 && player.xPos +\n player.size < x2) || player.xPos - player.size < x2 && player.xPos -\n player.size > x1) {\n if ((player.yPos + player.size > y1 && player.yPos +\n player.size < y2) || (player.yPos - player.size < y2 && player.yPos -\n player.size > y1)) {\n StdDraw.setPenColor(Color.BLACK);\n StdDraw.text((currentXmin + currentXmax) / 2,\n (currentYmin + currentYmax) / 2, \"You won!\");\n player.won = true;\n }\n }\n }", "title": "" }, { "docid": "d950747c52f3fdfe6a830e0394ba5b6b", "score": "0.543763", "text": "void checkCollision() {\n int size = particles.size();\n //System.out.println(\"HI\");\n //System.out.println(size);\n for (int i=0; i<size; i++) {\n //System.out.println(i);\n// for (int j=0; j<size; j++) {\n// //System.out.println(j);\n// if (i != j) {\n// if (hasOverlap(particles.get(i), particles.get(j))) {\n// calc.finalVel(particles.get(i), particles.get(j));\n// }\n// }\n// }\n Particle partisan = particles.get(i);\n // Check if Particle has collided with the Left/Right Wall\n //System.out.println(particles.get(i).getxPos());\n //System.out.println(width);\n if (touchedLRWall(partisan, width)) {\n //System.out.println(\"LR\");\n //System.out.println(partisan.getxDir());\n partisan.setxDir(-partisan.getxDir());\n //System.out.println(partisan.getxDir());\n //calc.collideLR(partisan);\n }\n // Check if Particle has collided with the Top/Bottom Wall\n if (touchedTBWall(particles.get(i), height)) {\n //System.out.println(\"TB\");\n partisan.setyDir(-partisan.getyDir());\n //calc.collideTopBot(particles.get(i));\n }\n }\n }", "title": "" }, { "docid": "f27782fb43eee75e864659db8fc1ff08", "score": "0.5437342", "text": "public static void checkIfPlayerCollidesLR() {\n if (GlobalVariables.getInput().contains(\"LEFT\") || GlobalVariables.getInput().contains(\"RIGHT\")) {\n GlobalVariables.getPlayer().hasAlreadyHit = true;\n }\n if (!GlobalVariables.getPlayer().hasAlreadyHit) {\n GlobalVariables.getWalking().stop();\n GlobalVariables.getRunning().stop();\n if (!GlobalVariables.getMute()[0]) {\n GlobalVariables.getWallHit().play(1);\n }\n }\n GlobalVariables.getPlayer().hasAlreadyHit = true;\n GlobalVariables.getPlayer().addVelocity(0, 0);\n }", "title": "" }, { "docid": "3ca7f534f40aea5f61a9dfea0b603edf", "score": "0.54310805", "text": "public void updateGhost() {\n int gNormalSpeed = ghosts.get(0).getNormalSpeed();\n int XmodW, YmodH;\n int boxX, boxY;\n int gX, gY;\n\n //for pacmon 1\n for (int i = 0; i < ghosts.size()/2; i++) {\n gX = ghosts.get(i).getX();\n gY = ghosts.get(i).getY();\n XmodW = gX % blockSize;\n YmodH = gY % blockSize;\n\n\n // check direction and change if it is allowed\n if (XmodW == 0 && YmodH == 0) {\n int crossing;\n boxX = gX / blockSize;\n boxY = gY / blockSize;\n\n //check if at crossing using directional maze and update new direction\n crossing = directionMaze[boxY][boxX];\n if (crossing > 0) {\n if (timer % 6 == 0) {\n if (crossing == 1) {\n moveGhostSmart(RD, ghosts.get(i));\n }\n if (crossing == 2) {\n moveGhostSmart(LD, ghosts.get(i));\n }\n if (crossing == 3) {\n moveGhostSmart(RU, ghosts.get(i));\n }\n if (crossing == 4) {\n moveGhostSmart(LU, ghosts.get(i));\n }\n if (crossing == 5) {\n moveGhostSmart(RDU, ghosts.get(i));\n }\n if (crossing == 6) {\n moveGhostSmart(LDU, ghosts.get(i));\n }\n if (crossing == 7) {\n moveGhostSmart(RLD, ghosts.get(i));\n }\n if (crossing == 8) {\n moveGhostSmart(RLU, ghosts.get(i));\n }\n if (crossing == 9) {\n moveGhostSmart(RLUD, ghosts.get(i));\n }\n } else {\n if (crossing == 1) {\n moveGhostRandom(RD, ghosts.get(i));\n }\n if (crossing == 2) {\n \tmoveGhostRandom(LD, ghosts.get(i));\n }\n if (crossing == 3) {\n \tmoveGhostRandom(RU, ghosts.get(i));\n }\n if (crossing == 4) {\n \tmoveGhostRandom(LU, ghosts.get(i));\n }\n if (crossing == 5) {\n \tmoveGhostRandom(RDU, ghosts.get(i));\n }\n if (crossing == 6) {\n \tmoveGhostRandom(LDU, ghosts.get(i));\n }\n if (crossing == 7) {\n \tmoveGhostRandom(RLD, ghosts.get(i));\n }\n if (crossing == 8) {\n \tmoveGhostRandom(RLU, ghosts.get(i));\n }\n if (crossing == 9) {\n \tmoveGhostRandom(RLUD, ghosts.get(i));\n }\n\n }\n }\n }\n\n //get direction after calculate\n int ghostCurDir = ghosts.get(i).getDir();\n\n if (ghostCurDir == UP) // up\n {\n gY = gY - gNormalSpeed;\n }\n if (ghostCurDir == DOWN) // down\n {\n gY = gY + gNormalSpeed;\n }\n if (ghostCurDir == RIGHT) // right\n {\n gX = gX + gNormalSpeed;\n }\n if (ghostCurDir == LEFT) // left\n {\n gX = gX - gNormalSpeed;\n }\n\n // set new location of ghost after moving\n ghosts.get(i).setX(gX);\n ghosts.get(i).setY(gY);\n\n //check collision for pacmon\n checkCollision(gX, gY);\n //check other collision for pacmon2\n checkCollision2(gX, gY);\n\n }\n \n //for pacmon 2\n for (int i = ghosts.size()/2; i < ghosts.size(); i++) {\n gX = ghosts.get(i).getX();\n gY = ghosts.get(i).getY();\n XmodW = gX % blockSize;\n YmodH = gY % blockSize;\n\n\n // check direction and change if it is allowed\n if (XmodW == 0 && YmodH == 0) {\n int crossing;\n boxX = gX / blockSize;\n boxY = gY / blockSize;\n\n //check if at crossing using directional maze and update new direction smart\n crossing = directionMaze[boxY][boxX];\n if (crossing > 0) {\n if (timer % 6 == 0) {\n if (crossing == 1) {\n moveGhostSmart2(RD, ghosts.get(i));\n }\n if (crossing == 2) {\n moveGhostSmart2(LD, ghosts.get(i));\n }\n if (crossing == 3) {\n moveGhostSmart2(RU, ghosts.get(i));\n }\n if (crossing == 4) {\n moveGhostSmart2(LU, ghosts.get(i));\n }\n if (crossing == 5) {\n moveGhostSmart2(RDU, ghosts.get(i));\n }\n if (crossing == 6) {\n moveGhostSmart2(LDU, ghosts.get(i));\n }\n if (crossing == 7) {\n moveGhostSmart2(RLD, ghosts.get(i));\n }\n if (crossing == 8) {\n moveGhostSmart2(RLU, ghosts.get(i));\n }\n if (crossing == 9) {\n moveGhostSmart2(RLUD, ghosts.get(i));\n }\n } else {\n if (crossing == 1) {\n moveGhostRandom(RD, ghosts.get(i));\n }\n if (crossing == 2) {\n \tmoveGhostRandom(LD, ghosts.get(i));\n }\n if (crossing == 3) {\n \tmoveGhostRandom(RU, ghosts.get(i));\n }\n if (crossing == 4) {\n \tmoveGhostRandom(LU, ghosts.get(i));\n }\n if (crossing == 5) {\n \tmoveGhostRandom(RDU, ghosts.get(i));\n }\n if (crossing == 6) {\n \tmoveGhostRandom(LDU, ghosts.get(i));\n }\n if (crossing == 7) {\n \tmoveGhostRandom(RLD, ghosts.get(i));\n }\n if (crossing == 8) {\n \tmoveGhostRandom(RLU, ghosts.get(i));\n }\n if (crossing == 9) {\n \tmoveGhostRandom(RLUD, ghosts.get(i));\n }\n }\n }\n }\n\n //get direction after calculate\n int ghostCurDir = ghosts.get(i).getDir();\n\n if (ghostCurDir == UP) // up\n {\n gY = gY - gNormalSpeed;\n }\n if (ghostCurDir == DOWN) // down\n {\n gY = gY + gNormalSpeed;\n }\n if (ghostCurDir == RIGHT) // right\n {\n gX = gX + gNormalSpeed;\n }\n if (ghostCurDir == LEFT) // left\n {\n gX = gX - gNormalSpeed;\n }\n\n // set new location of ghost after moving\n ghosts.get(i).setX(gX);\n ghosts.get(i).setY(gY);\n\n //check collision for pacmon\n checkCollision(gX, gY);\n //check other collision for pacmon2\n checkCollision2(gX, gY);\n\n }\n }", "title": "" }, { "docid": "91b85b6c6951f66e66594e91238c8d78", "score": "0.54300225", "text": "@Override\n public void didCollideWith(Entity e) {\n Rectangle2D.Double intersectionBounds = new Rectangle2D.Double();\n Rectangle2D.intersect(getHitbox(), e.getHitbox(), intersectionBounds);\n Point2D.Double d = Utilities.invert(Utilities.normalize(getVelocity()));\n\n while (getHitbox().intersects(e.getHitbox())) {\n moveBy(d);\n }\n\n if (intersectionBounds.getMinY() == e.getHitbox().getBounds().getMinY() && canCollideWith(e)) {\n // hit the top of the object\n hitGround();\n } else if (intersectionBounds.getMaxY() == e.getHitbox().getBounds().getMaxY()) {\n // hit the bottom of the object\n velocity.y = 0;\n } else if (intersectionBounds.getMinX() == e.getHitbox().getBounds().getMinX()) {\n // hit the right of the object\n velocity.x = 0;\n } else if (intersectionBounds.getMaxX() == e.getHitbox().getBounds().getMaxX()) {\n // hit the left of the object\n velocity.x = 0;\n }\n }", "title": "" }, { "docid": "1cc140d77fd2cc941942bd27bb6146e8", "score": "0.542503", "text": "public static void calculateLooseBoundsOnMap() {\n\t\thqDistX = myTeamHQ.x > enemyTeamHQ.x ? (myTeamHQ.x - enemyTeamHQ.x) : (enemyTeamHQ.x - myTeamHQ.x);\n\t\thqDistY = myTeamHQ.y > enemyTeamHQ.y ? (myTeamHQ.y - enemyTeamHQ.y) : (enemyTeamHQ.y - myTeamHQ.y);\n\t\tMapLocation[] towerLocations = rc.senseTowerLocations();\n\t\tMapLocation[] enemyTowerLocations = rc.senseEnemyTowerLocations();\n\t\tint minTowerX = Integer.MAX_VALUE;\n\t\tint minTowerY = Integer.MAX_VALUE;\n\t\tint maxTowerX = Integer.MIN_VALUE;\n\t\tint maxTowerY = Integer.MIN_VALUE;\n\t\tint minETowerX = Integer.MAX_VALUE;\n\t\tint minETowerY = Integer.MAX_VALUE;\n\t\tint maxETowerX = Integer.MIN_VALUE;\n\t\tint maxETowerY = Integer.MIN_VALUE;\n\t\tfor (MapLocation towerLocation : towerLocations) {\n\t\t\tif (towerLocation.x < minTowerX) {\n\t\t\t\tminTowerX = towerLocation.x;\t\t\t\t\n\t\t\t}\n\t\t\tif (towerLocation.x > maxTowerX) {\n\t\t\t\tmaxTowerX = towerLocation.x;\n\t\t\t}\n\t\t\tif (towerLocation.y < minTowerY) {\n\t\t\t\tminTowerY = towerLocation.y;\n\t\t\t}\n\t\t\tif (towerLocation.y > maxTowerY) {\n\t\t\t\tmaxTowerY = towerLocation.y;\n\t\t\t}\n\t\t}\n\t\tfor (MapLocation towerLocation : enemyTowerLocations) {\n\t\t\tif (towerLocation.x < minETowerX) {\n\t\t\t\tminETowerX = towerLocation.x;\t\t\t\t\n\t\t\t}\n\t\t\tif (towerLocation.x > maxETowerX) {\n\t\t\t\tmaxETowerX = towerLocation.x;\n\t\t\t}\n\t\t\tif (towerLocation.y < minETowerY) {\n\t\t\t\tminETowerY = towerLocation.y;\n\t\t\t}\n\t\t\tif (towerLocation.y > maxETowerY) {\n\t\t\t\tmaxETowerY = towerLocation.y;\n\t\t\t}\n\t\t}\n//\t\tThe width of the map must be at least as big as the distance between the largest X and smallest X of opposing sides\n int dx1 = maxTowerX - minETowerX;\n int dx2 = maxETowerX - minETowerX;\n maxTowerDistX = (dx1 - dx2 > 0) ? dx1 : dx2;\n int dy1 = maxTowerY - minETowerY;\n int dy2 = maxETowerY - minETowerY;\n maxTowerDistY = (dy1 - dy2 > 0) ? dy1 : dy2;\n\t}", "title": "" }, { "docid": "910b5cb87d01e807854c949cded5bb0e", "score": "0.5415455", "text": "private boolean checkForCollision() {\n\t\tif (sprite1.x < 0 && sprite2.x < 0 && sprite1.y < 0 && sprite2.y < 0)\n\t\t\treturn false;\n\t\tRect r1 = new Rect(sprite1.x, sprite1.y, sprite1.x\n\t\t\t\t+ sprite1Bounds.width(), sprite1.y + sprite1Bounds.height());\n\t\tRect r2 = new Rect(sprite2.x - sprite2Bounds.width() / 2, sprite2.y\n\t\t\t\t- sprite2Bounds.height() / 2, sprite2.x + sprite2Bounds.width()\n\t\t\t\t/ 2, sprite2.y + sprite2Bounds.height() / 2);\n\t\tRect r3 = new Rect(r1);\n\t\tif (r1.intersect(r2)) {\n\t\t\tfor (int i = r1.left; i < r1.right; i++) {\n\t\t\t\tfor (int j = r1.top; j < r1.bottom; j++) {\n\t\t\t\t\tif (bm1.getPixel(i - r3.left, j - r3.top) != Color.TRANSPARENT) {\n\t\t\t\t\t\tif (bm2.getPixel(i - r2.left, j - r2.top) != Color.TRANSPARENT) {\n\t\t\t\t\t\t\tlastCollision = new Point(sprite2.x\n\t\t\t\t\t\t\t\t\t- sprite2Bounds.width() / 2 + i - r2.left,\n\t\t\t\t\t\t\t\t\tsprite2.y - sprite2Bounds.height() / 2 + j\n\t\t\t\t\t\t\t\t\t\t\t- r2.top);\n\t\t\t\t\t\t\treturn true;\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\tlastCollision = new Point(-1, -1);\n\t\treturn false;\n\t}", "title": "" }, { "docid": "88108ef07591da7a86a8920ea079d855", "score": "0.541422", "text": "public void checkCollisionLazer(){\n // left \n // check\n if (game.spaceship.leftLine.isVisible() == true) {\n // find rectangle\n GRectangle lineBound = spaceship.leftLine.getBounds();\n lineBound.translate(spaceship.getX(),spaceship.getY());\n \n if (getBounds().intersects(lineBound)){\n takeDamage(1);\n hitByPlayer = true;\n }\n }\n \n // right\n if (game.spaceship.rightLine.isVisible() == true) {\n // find rectangle\n GRectangle lineBound = spaceship.rightLine.getBounds();\n lineBound.translate(spaceship.getX(),spaceship.getY());\n \n if (getBounds().intersects(lineBound)){\n takeDamage(1);\n hitByPlayer = true;\n }\n }\n \n // up\n if (game.spaceship.upLine.isVisible() == true) {\n // find rectangle\n GRectangle lineBound = spaceship.upLine.getBounds();\n lineBound.translate(spaceship.getX(),spaceship.getY());\n \n if (getBounds().intersects(lineBound)){\n takeDamage(1);\n hitByPlayer = true;\n }\n }\n \n // down\n if (game.spaceship.downLine.isVisible() == true) {\n // find rectangle\n GRectangle lineBound = spaceship.downLine.getBounds();\n lineBound.translate(spaceship.getX(),spaceship.getY());\n \n if (getBounds().intersects(lineBound)){\n takeDamage(1);\n hitByPlayer = true;\n }\n }\n }", "title": "" }, { "docid": "144f54c7a0dc358543ea4a99639fcb63", "score": "0.5413151", "text": "public void update() {\n\t\tlocation.x = (player.collisionBox.getCenterX() - center.x);\n\t\tlocation.y = (player.collisionBox.getCenterY() - center.y);\n\t\t\n\t\tif (location.x >= offsetMaxX) {\n\t\t\tlocation.x = offsetMaxX;\n\t\t}\n\t\tif (location.x <= offsetMinX) {\n\t\t\tlocation.x = offsetMinX;\n\t\t}\n\t\tif (location.y >= offsetMaxY) {\n\t\t\tlocation.y = offsetMaxY;\n\t\t}\n\t\tif (location.y <= offsetMinY) {\n\t\t\tlocation.y = offsetMinY;\n\t\t}\n\t\t\n\t\t//Calculate the area of the screen\n\t\tscreen = new Rectangle(location.x, location.y, defaultWidth, defaultHeight);\n\t\t\n\t}", "title": "" }, { "docid": "da8f2eed134e4273409071e0bbc95944", "score": "0.5406197", "text": "public void startGame()\n {\n\n /*\n pick a cell from an ArrayListMap (horizontal ou vertical)\n if (shipPositionValidation is true - all cell need are available)\n then: instantiate Ship and refresh the map (marking cell as occupied)\n else: refresh the map with the headCell occupied and loop\n */\n\n CellShip currentCell; //just instantiating a empty cell\n int shipSize = 3;\n int totalNumberOfShips = 3;\n int maxAttempts = totalNumberOfShips + 10;\n while ( totalNumberOfShips > 0 && maxAttempts > 0 ) // looping till instantiate all the ships (or cant place anymore ships)\n {\n if (hMap.isEmpty() )\n {\n System.out.println(\"ERROR! No more cells available to instantiate Horizontal Ships!\");\n return;\n }\n else\n {\n currentCell = pickRandomCell(hMap); //get a random cell from the map}\n }\n\n int currentX = currentCell.getX();\n int currentY = currentCell.getY();\n\n // placing a ship in horizontal\n if (shipPositionValidation(hMap, currentX, currentY, shipSize, Orientation.HORIZONTAL) ) //verifies all position of the new ship\n {\n // it is possible to allocate the entire ship\n Ship newShipHorizontal = new Ship(); // instantiate a new ship\n newBoard.addShip(newShipHorizontal); // add a Ship to the Grid ArrayList<Ship> in order to control the ships in the board\n\n for (int i = 0; i < shipSize ; i++)\n {\n newBoard.addShipByCoordinate(currentX + i, currentY); // set the cell to empty in main grid\n\n CellShip tempCell = ( findCellShipByCoordinate(currentX + i, currentY, vMap) );\n if ( tempCell != null ) vMap.remove(vMap.indexOf( tempCell ) ); // remove the occupied cell from the vMap\n //vMap.remove(vMap.indexOf( findCellShipByCoordinate(currentX+i, currentY, vMap) ) ); // remove the occupied cell from the vMap\n\n hMap.remove(hMap.indexOf( findCellShipByCoordinate(currentX+i, currentY, hMap) ) ); // remove the occupied cell from the hMap\n newShipHorizontal.addCellToShip( _cellsArray[currentX+i][currentY] ); // add a Cell to the ArrayList of a Ship\n _cellsArray[currentX+i][currentY].setShip( newShipHorizontal );\n }\n // counter of instantiated ships\n totalNumberOfShips--;\n\n }\n else // not possible to allocate the ship\n {\n hMap.remove (hMap.indexOf(findCellShipByCoordinate(currentX, currentY, hMap) ) ); // remove the occupied cell from the map\n maxAttempts--; //to prevent an infinite loop\n }\n\n if (vMap.isEmpty() )\n {\n System.out.println(\"ERROR! No more cells available to instantiate Vertical Ships!\");\n return;\n }\n else\n {\n currentCell = pickRandomCell(vMap); //get a random cell from the map}\n }\n\n currentX = currentCell.getX();\n currentY = currentCell.getY();\n\n // placing a ship in vertical\n if (shipPositionValidation(vMap, currentX, currentY, shipSize, Orientation.VERTICAL) ) //verifies all position of the new ship\n {\n // it is possible to allocate the entire ship\n Ship newShipVertical = new Ship(); // instantiate a new ship\n newBoard.addShip(newShipVertical); // add a Ship to the Grid ArrayList<Ship> in order to control the ships in the board\n\n for (int i = 0; i < shipSize ; i++)\n {\n newBoard.addShipByCoordinate(currentX, currentY + i); // set the cell to empty in main grid\n\n CellShip tempCell = ( findCellShipByCoordinate(currentX, currentY + i, hMap) );\n if ( tempCell != null ) hMap.remove(hMap.indexOf( tempCell ) ); // remove the occupied cell from the hMap\n\n vMap.remove(vMap.indexOf( findCellShipByCoordinate(currentX, currentY + i, vMap) ) ); // remove the occupied cell from the vMap\n newShipVertical.addCellToShip( _cellsArray[currentX][currentY+i] ); // add a Cell to the ArrayList of a Ship\n _cellsArray[currentX][currentY+i].setShip( newShipVertical );\n }\n // counter of instantiated ships\n totalNumberOfShips--;\n }\n else // not possible to allocate the ship\n {\n vMap.remove (vMap.indexOf(findCellShipByCoordinate(currentX, currentY, vMap) ) ); // remove the occupied cell from the map\n maxAttempts--; //to prevent an infinite loop\n }\n }\n\n this.drawBoard(); // draw a board to the screen\n }", "title": "" }, { "docid": "04688b8b8f29a18d2a0438ab12ea3d46", "score": "0.54014415", "text": "public void gameLoop() {\n long lastLoopTime = System.currentTimeMillis();\n\n long delta;\n\n // keep looping round til the game ends\n while (gameRunning) {\n // work out how long its been since the last update, this\n // will be used to calculate how far the entities should\n // move this loop\n delta = System.currentTimeMillis() - lastLoopTime;\n lastLoopTime = System.currentTimeMillis();\n\n // Get hold of a graphics context for the accelerated\n // surface and blank it out\n Graphics2D g = (Graphics2D) strategy.getDrawGraphics();\n g.setColor(Color.black);\n g.fillRect(0,0,800,600);\n\n // cycle round asking each entity to move itself\n for (int i=1;i<entities.size();i++) {\n Entity entity = (Entity) entities.get(i);\n entity.draw(g);\n }\n\n\n // resolve the movement of the ship. First assume the ship\n // isn't moving. If either cursor key is pressed then\n // update the movement appropriately\n perso.setHorizontalMovement(0);\n perso.setVerticalMovement(0);\n\n if ((upPressed) && (!downPressed)) {\n perso.setVerticalMovement(-moveSpeed);\n } else if ((downPressed) && (!upPressed)) {\n perso.setVerticalMovement(moveSpeed);\n }\n if ((leftPressed) && (!rightPressed)) {\n perso.setHorizontalMovement(-moveSpeed);\n } else if ((rightPressed) && (!leftPressed)) {\n perso.setHorizontalMovement(moveSpeed);\n }\n perso.move(delta);\n\n // mettre commentaire\n\n\n for (int i=1;i < entities.size();i++) {\n Entity wall = (Entity) entities.get(i);\n\n if (perso.collidesWith(wall)) {\n perso.move(-delta);\n\n\n //on test quel mouvement pose probleme :\n perso.setHorizontalMovement(0);\n perso.setVerticalMovement(0);\n if ((upPressed) && (!downPressed)) {\n perso.setVerticalMovement(-moveSpeed);\n perso.move(delta);\n if (perso.collidesWith(wall)) {\n perso.move(-delta);\n perso.setVerticalMovement(0);\n }\n else{\n perso.move(-delta);\n }\n\n } else if ((downPressed) && (!upPressed)) {\n perso.setVerticalMovement(moveSpeed);\n perso.move(delta);\n if (perso.collidesWith(wall)) {\n perso.move(-delta);\n perso.setVerticalMovement(0);\n }else{\n perso.move(-delta);\n }\n }\n\n if ((leftPressed) && (!rightPressed)) {\n perso.setHorizontalMovement(-moveSpeed);\n perso.move(delta);\n if (perso.collidesWith(wall)) {\n perso.move(-delta);\n perso.setHorizontalMovement(0);\n }else{\n perso.move(-delta);\n }\n } else if ((rightPressed) && (!leftPressed)) {\n perso.setHorizontalMovement(moveSpeed);\n perso.move(delta);\n if (perso.collidesWith(wall)) {\n perso.move(-delta);\n perso.setHorizontalMovement(0);\n }else{\n perso.move(-delta);\n }\n }\n perso.move(delta);\n\n perso.collidedWith(wall);\n wall.collidedWith(perso);\n\n }\n }\n perso.draw(g);\n\n\n // remove any entity that has been marked for clear up\n entities.removeAll(removeList);\n removeList.clear();\n\n\n //\t\tthis.debug_mode(delta, g);\n debug.showFps(delta, g, perso);\n\n // finally, we've completed drawing so clear up the graphics\n // and flip the buffer over\n g.dispose();\n strategy.show();\n\n\n // finally pause for a bit. Note: this should run us at about\n // 100 fps but on windows this might vary each loop due to\n // a bad implementation of timer\n try { Thread.sleep(15); } catch (Exception e) {}\n }\n }", "title": "" }, { "docid": "1b7e920899e0d412f4be1ce6396ea0be", "score": "0.5399245", "text": "private boolean collision(float deltaX, float deltaY) {\n\t\tbounds.setPosition(position.x + deltaX, position.y + deltaY);\n\n\t\t// Iterate through platforms\n\t\tfor (AbstractGameObject platform : LevelStage.backPlatforms) {\n\n\t\t\t// If collision\n\t\t\tif (bounds.overlaps(platform.bounds)) {\n\t\t\t\tif (deltaX != 0) {\n\t\t\t\t\tcollidingPlatformX = platform;\n\n\t\t\t\t\tdeltax = 0;\n\t\t\t\t}\n\t\t\t\tif (deltaY != 0) {\n\t\t\t\t\tcollidingPlatformY = platform;\n\t\t\t\t}\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\t// Iterate through platforms\n\t\tfor (AbstractGameObject platform : LevelStage.platforms) {\n\n\t\t\t// If collision\n\t\t\tif (bounds.overlaps(platform.bounds)) {\n\t\t\t\tif (deltaX != 0) {\n\t\t\t\t\tcollidingPlatformX = platform;\n\t\t\t\t\tdeltax = 0;\n\t\t\t\t}\n\t\t\t\tif (deltaY != 0) {\n\t\t\t\t\tcollidingPlatformY = platform;\n\t\t\t\t}\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\n\t\t// Collide with (spikes, portals)\n\t\tfor (AbstractGameObject interactable : LevelStage.interactables) {\n\t\t\tif (bounds.overlaps(interactable.bounds)) {\n\t\t\t\tinteractable.interact(this);\n\t\t\t}\n\t\t}\n\t\treturn false;\n\n\t}", "title": "" }, { "docid": "ef3141d0d94672e4bbba945aab4dfdab", "score": "0.5397979", "text": "private void moveProjectiles(){\r\n // TODO: Create a loop to move all projectiles.\r\n \r\n for(int i=0; i< Settings.maxProjectiles;i++ ){ \r\n if(myProjectiles[i] != null) { \r\n Point next=new Point((int) (myProjectiles[i].x/Settings.scale),((int) (myProjectiles[i].y/Settings.scale))-1); // the next region the projectiles will reach\r\n int lap=overlap(next); // check if this region is blocked\r\n if(lap%(Settings.CENT*2) >= Settings.CENT){ //if centipedes\r\n \r\n myProjectiles[i]=null; //null the projectile\r\n \r\n if (Settings.superLaser){ //score depends on the superlaser on or off, difficulty and level\r\n \r\n score = score+ (int) (0.3*2*((125-difficulty)/3+ 10*Settings.levelFactor*level));\r\n }else{\r\n \r\n score = score + (int) (2*(125-difficulty)/3+ 10*Settings.levelFactor*level);\r\n }\r\n \r\n for(int j = 0; j < myCentipedes.length; j++){ //check hit the which centipede\r\n if (myCentipedes[j] !=null){ //if ths Centi is not null \r\n if (myCentipedes[j].length != 0){ // is not length =0\r\n \r\n if((myCentipedes[j].contains(next)!=-1) && (myCentipedes[j].contains(next) < myCentipedes[j].length - 1)){ //check in which centipede\r\n \r\n \r\n for (int a = 0; a< myCentipedes.length; a++){ // which part of the centipede has been hitted\r\n \r\n \r\n if (myCentipedes[a] == null){//check where array still have space to store new head and segment\r\n \r\n Point head = new Point(myCentipedes[j].segments[myCentipedes[j].contains(next)+1].x, myCentipedes[j].segments[myCentipedes[j].contains(next)+1].y); // get new head\r\n \r\n myCentipedes[a] = new Centipede(myCentipedes[j].length - myCentipedes[j].contains(next) - 1, myCentipedes[j].horizontal, myCentipedes[j].vertical); //store it in array\r\n \r\n for (int b = 0; b <myCentipedes[j].length - myCentipedes[j].contains(next) - 1; b++){ //split the orignal centi to two new centis\r\n myCentipedes[a].segments[b] = new Point(myCentipedes[j].segments[myCentipedes[j].contains(next)+1+b].x, myCentipedes[j].segments[myCentipedes[j].contains(next)+b+1].y);\r\n }\r\n \r\n \r\n \r\n break; //break the loop when get new one\r\n }\r\n }\r\n \r\n \r\n }\r\n \r\n if((myCentipedes[j].contains(next)!=-1)){ //mushroom part\r\n \r\n Point shroom = new Point(myCentipedes[j].segments[myCentipedes[j].contains(next)].x, myCentipedes[j].segments[myCentipedes[j].contains(next)].y);//the position where centi get hit\r\n \r\n myMushrooms[shroom.x][shroom.y] = new Mushroom(shroom, 3); // place new mushroom here \r\n myCentipedes[j].length = myCentipedes[j].contains(next); //length depends on contains\r\n \r\n \r\n myGameSounds.centDie();//sound\r\n \r\n int c; //check if level up part\r\n for (c=0; c<Settings.centipedeStartSize;c++){ //checak all Centipedes\r\n if (myCentipedes[c]!=null&&(myCentipedes[c].length != 0)){ //if still have one, then break\r\n \r\n break;\r\n }\r\n \r\n if (c==Settings.centipedeStartSize-1){ //if user killed all Centi\r\n \r\n level++; //level up\r\n myGameSounds.nextLevel();//sound\r\n for(int f=0;f<Settings.centipedeStartSize;f++){ //clear the array\r\n myCentipedes[f]=null;\r\n }\r\n \r\n \r\n myCentipedes[0] = new Centipede(Settings.centipedeStartSize,Settings.RIGHT,Settings.DOWN); //create new centiped again\r\n myCentipedes[0].segments=new Point[Settings.centipedeStartSize]; \r\n for(int e=0;e<Settings.centipedeStartSize;e++){ \r\n myCentipedes[0].segments[e]=new Point(0,0);\r\n }\r\n \r\n break; //break when level up\r\n } \r\n }\r\n }\r\n }\r\n } \r\n }\r\n }\r\n \r\n \r\n else if ((lap%(Settings.SHROOM*2) == Settings.SHROOM)){ //if hit a mashroom\r\n myProjectiles[i]=null;\r\n if(myMushrooms[next.x][next.y].getHealth()>1){\r\n \r\n myMushrooms[next.x][next.y]=new Mushroom(next,myMushrooms[next.x][next.y].getHealth()-1); //health-1\r\n \r\n }\r\n \r\n else {\r\n myMushrooms[next.x][next.y]=null; //if the heal of the mushroom=0 then remove if\r\n }\r\n }\r\n \r\n else if (lap%(Settings.WALL*2) == Settings.WALL){ //hit a wall , remove the projetiles too\r\n myProjectiles[i]=null;\r\n }\r\n \r\n \r\n else {myProjectiles[i].y--;}//move the projectile once a time if hit nothing\r\n \r\n }\r\n \r\n \r\n \r\n }\r\n // TODO: If a projectile impacts a centipede, mushroom or wall, the projectile should be removed.\r\n \r\n // TODO: If the projectile impacted a Centipede, increase the score proportionately\r\n // TODO: to the difficulty and whether the user is using a superLaser or not.\r\n // TODO: The impacted Centipede segment will need to be removed and depending on\r\n // TODO: where the Centipede was impacted, it may need to split into two Centipedes.\r\n // TODO: Play the centDie sound.\r\n // TODO: Place a new Mushroom at the location where the Centipede was hit.\r\n \r\n // TODO: If the projectile impacted a Mushroom, decrement the Mushroom's health.\r\n // TODO: If the Mushroom's health is 0, remove the Mushroom.\r\n // TODO: Play the shroomHit sound.\r\n // TODO: Create a loop to move all projectiles.\r\n \r\n \r\n \r\n }", "title": "" }, { "docid": "78f27181ee117369281179ff53952f3b", "score": "0.539073", "text": "public boolean calculateCorners(double x, double y)\r\n\t{\r\n\t\tleftTile = (int) (x) / tileSize;\r\n\t\trightTile = ((int) (x) + width - 1) / tileSize;\r\n\t\ttopTile = (int) (y) / tileSize;\r\n\t\tbottomTile = ((int) (y) + height - 1) / tileSize;\r\n\t\tlowerTile = ((int) (y) + height) / tileSize;\r\n\r\n\t\t// Stop the player from going off the sides of the screen\r\n\t\tif (x < 0 || x >= GamePanel.WIDTH)\r\n\t\t{\r\n\t\t\ttopLeftType = topRightType = bottomLeftType = bottomRightType = Tile.BLOCKED;\r\n\t\t\treturn false;\r\n\t\t}\r\n\r\n\t\t// Stop the player from going off the top and bottom of the screen\r\n\t\tif (y >= GamePanel.HEIGHT)\r\n\t\t{\r\n\t\t\ttopLeftType = topRightType = bottomLeftType = bottomRightType = Tile.BLOCKED;\r\n\t\t\treturn false;\r\n\t\t}\r\n\r\n\t\t// Get the type of tile touching the corners of the player\r\n\t\ttopLeftType = tileMap.getType(topTile, leftTile);\r\n\t\ttopRightType = tileMap.getType(topTile, rightTile);\r\n\t\tbottomLeftType = tileMap.getType(bottomTile, leftTile);\r\n\t\tbottomRightType = tileMap.getType(bottomTile, rightTile);\r\n\r\n\t\t// Get the type of tiles under the player\r\n\t\tlowerLeftType = tileMap.getType(lowerTile, leftTile);\r\n\t\tlowerRightType = tileMap.getType(lowerTile, rightTile);\r\n\r\n\t\t// Get the type of tile the player is currently on\r\n\t\tcurrentTileType = tileMap.getType(currentRow,\r\n\t\t\t\tcurrentColumn);\r\n\r\n\t\t// If the corners are blocked or touching a liquid\r\n\t\ttopLeftBlocked = (topLeftType == Tile.BLOCKED || topLeftType >= Tile.LAVA);\r\n\t\ttopRightBlocked = (topRightType == Tile.BLOCKED || topRightType >= Tile.LAVA);\r\n\t\tbottomLeftBlocked = (bottomLeftType == Tile.BLOCKED || bottomLeftType >= Tile.LAVA);\r\n\t\tbottomRightBlocked = (bottomRightType == Tile.BLOCKED || bottomRightType >= Tile.LAVA);\r\n\r\n\t\t// If the tile under the player is empty\r\n\t\tlowerLeftEmpty = lowerLeftType == Tile.NORMAL;\r\n\t\tlowerRightEmpty = lowerRightType == Tile.NORMAL;\r\n\r\n\t\t// Return if the player is touching a deadly liquid\r\n\t\tif (bottomLeftBlocked || bottomRightBlocked)\r\n\t\t{\r\n\t\t\tif (player == BUOY\r\n\t\t\t\t\t&& (topLeftType == Tile.LAVA || topLeftType == Tile.ACID\r\n\t\t\t\t\t\t\t|| currentTileType == Tile.LAVA || currentTileType == Tile.ACID))\r\n\t\t\t\treturn true;\r\n\t\t\telse if (player == GRILL\r\n\t\t\t\t\t&& (topLeftType == Tile.WATER || topLeftType == Tile.ACID\r\n\t\t\t\t\t\t\t|| currentTileType == Tile.WATER || currentTileType == Tile.ACID))\r\n\t\t\t\treturn true;\r\n\t\t\tif (player == BUOY\r\n\t\t\t\t\t&& (topRightType == Tile.LAVA || topRightType == Tile.ACID\r\n\t\t\t\t\t\t\t|| currentTileType == Tile.LAVA || currentTileType == Tile.ACID))\r\n\t\t\t\treturn true;\r\n\t\t\telse if (player == GRILL\r\n\t\t\t\t\t&& (topRightType == Tile.WATER || topRightType == Tile.ACID\r\n\t\t\t\t\t\t\t|| currentTileType == Tile.WATER || currentTileType == Tile.ACID))\r\n\t\t\t\treturn true;\r\n\t\t}\r\n\r\n\t\treturn false;\r\n\t}", "title": "" }, { "docid": "95932ffe891110840830bffb8842ba0e", "score": "0.53851855", "text": "public void checkCollisions(){\n for(int i = 0; i < collidables.size(); i++){\n for(int j = 0; j < collidables.size(); j++){\n if(i!=j){\n Collidable obj1 = collidables.get(i);\n Collidable obj2 = collidables.get(j);\n if(obj1.isCollidable() && obj2.isCollidable()){\n if(obj1.getBounds().intersects(obj2.getBounds())){\n obj1.handleCollision(obj2);\n obj2.handleCollision(obj1);\n }\n }\n }\n }\n }\n }", "title": "" }, { "docid": "c70831fa7c01c6739347c82b325f124e", "score": "0.53812206", "text": "public void checkSurround(int x, int y){\n\t\tfor(int yCheck=y-1;yCheck<=y+1;yCheck++){\n\t\t\tfor(int xCheck=x-1;xCheck<=x+1;xCheck++){\n\t\t\t\t//Checks for array out of bounds error\n\t\t\t\tif(!(xCheck<0||xCheck>=width||yCheck<0||yCheck>=height||xCheck==x&&yCheck==y)){\n\t\t\t\t\t//ensures tile isnt exposed and checks\n\t\t\t\t\tif(grid[yCheck][xCheck].getType()==0&&grid[yCheck][xCheck].exposed==false){\n\t\t\t\t\t\tgrid[yCheck][xCheck].expose();\n\t\t\t\t\t\tcheckSurround(xCheck,yCheck);\n\t\t\t\t\t}\n\t\t\t\t\t//if the tile isnt a mine then expose it\n\t\t\t\t\telse if(grid[yCheck][xCheck].getType()!=9)\n\t\t\t\t\t\tgrid[yCheck][xCheck].expose();\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "47380c02b027033db2701b565e26d392", "score": "0.5380757", "text": "public boolean getGrounded()\r\n\t{\r\n\t\tif (forceGrounded)\r\n\t\t\treturn true;\r\n\t\telse {\r\n\t\tArrayList<LineObject> nearObstacles= new ArrayList<LineObject>();\r\n\t\tfor(int i=0; i< levelPlatforms.size(); i++)\r\n\t\t{\r\n\t\t\tLineObject l= levelPlatforms.get(i).getOutlines().get(0);\r\n\t\t\tif(getCentX()>= l.getV1().getXCoord() && getCentX()<= l.getV2().getXCoord())\r\n\t\t\t{\r\n\t\t\t\tnearObstacles.add(l);\r\n\t\t\t}\r\n\t\t}\r\n\t\tif(hiddenPlatforms!=null)\r\n\t\t{\r\n\t\t\tfor(int i=0; i< hiddenPlatforms.size(); i++)\r\n\t\t\t{\r\n\t\t\t\tLineObject l= hiddenPlatforms.get(i).getOutlines().get(0);\r\n\t\t\t\tif(getCentX()>= l.getV1().getXCoord() - 1 && getCentX()<= l.getV2().getXCoord() + 1)\r\n\t\t\t\t{\r\n\t\t\t\t\tnearObstacles.add(l);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\tboolean onPlatform=false;\r\n\t\tfor(int i=0; i< nearObstacles.size(); i++)\r\n\t\t{\r\n\t\t\t\r\n\t\t\t\tif((getCentY() + radius - speed_y*2/3)<= (getCentX()*nearObstacles.get(i).getSlope()/100 + nearObstacles.get(i).getConstant()/100 + 3) \r\n\t\t\t\t\t\t&& (getCentY() + radius + speed_y*2/3)>= (getCentX()*nearObstacles.get(i).getSlope()/100 + nearObstacles.get(i).getConstant()/100 -3))\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t{\r\n\t\t\t\t\tonPlatform=true;\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 * The following if-statement needs to be in terms of slope, not horizontal platforms.\r\n\t\t\t\t Another way to fix it would just be to do the same thing for x as I did for y...\r\n\t\t\t\t I'd appreciate if you not deal with this code below yet.*/\r\n\t\t\t\t/*\r\n\t\t\t\tif(!onPlatform) {\r\n\t\t\t\t\t\r\n\t\t\t\t\t//&& (getCentX() - radius/2 < nearObstacles.get(i).getV1().getXCoord()) && (getCentX() + radius/2 > nearObstacles.get(i).getV2().getXCoord()))\r\n\t\t\t\t\tif ((getCentX() - radius/2 > nearObstacles.get(i).getV1().getXCoord() && getCentY() + radius - 3 < nearObstacles.get(i).getV1().getYCoord() && !(getCentY() + radius - 3 < nearObstacles.get(i).getV1().getYCoord() - 5) || (getCentX() + radius/2 < nearObstacles.get(i).getV2().getXCoord() && getCentY() + radius - 3 < nearObstacles.get(i).getV2().getYCoord() && !(getCentY() + radius - 3 < nearObstacles.get(i).getV2().getYCoord() - 5) ))){\r\n\t\t\t\t\t\tonPlatform = true;\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}\r\n\t\treturn onPlatform;\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "110b1776dcd0b2f5a9d42b232deb0e0b", "score": "0.5379964", "text": "private void checkCollisions(Site site, ArrayList<Site> checkSites){\r\n // <editor-fold defaultstate=\"collapsed\" desc=\"Method Code\"> \r\n double x = site.getX();\r\n double y = site.getY();\r\n double z = site.getZ();\r\n double r = site.getRadius();\r\n double rreact = site.getReactionRadius();\r\n MyVector vec = new MyVector();\r\n Site tempSite;\r\n for(int i=checkSites.size()-1;i>-1;i--){\r\n tempSite = checkSites.get(i);\r\n if(!tempSite.getChecked()){\r\n double tempx = tempSite.getX();\r\n double tempy = tempSite.getY();\r\n double tempz = tempSite.getZ();\r\n vec.x = x - tempx;\r\n vec.y = y - tempy;\r\n vec.z = z - tempz;\r\n double L2 = vec.length2();\r\n double sumRadii = r + tempSite.getRadius();\r\n double sumReactRadii = rreact + tempSite.getReactionRadius();\r\n // Check reaction radii first\r\n if(L2 < sumReactRadii*sumReactRadii){\r\n // Look for collision before reaction, otherwise we could end\r\n // up with bonds that are smaller then the sum of the site radii\r\n if(L2 < sumRadii*sumRadii){\r\n double L = Math.sqrt(L2);\r\n double overlap = sumRadii - L;\r\n if(site.isFixed()){\r\n double newx = tempx - overlap*vec.x/L;\r\n double newy = tempy - overlap*vec.y/L;\r\n // The above two lines should really be modified if tempSite is 2D. I'll get to that later.\r\n if(tempSite.is2D()){\r\n tempSite.setPosition(newx, newy, tempz);\r\n tempSite.checkBoundaries();\r\n } else {\r\n tempSite.setPosition(newx, newy, tempz - overlap*vec.z/L);\r\n tempSite.checkBoundaries();\r\n }\r\n // They can't both be fixed, or else they wouldn't have collided.\r\n } else if(tempSite.isFixed()){\r\n double newx1 = x + overlap*vec.x/L;\r\n double newy1 = y + overlap*vec.y/L;\r\n if(site.is2D()){\r\n site.setPosition(newx1,newy1,z);\r\n site.checkBoundaries();\r\n } else {\r\n site.setPosition(newx1, newy1, z + overlap*vec.z/L);\r\n site.checkBoundaries();\r\n }\r\n } else {\r\n double coefficient = 0.5*overlap/L;\r\n double tx = tempx - coefficient*vec.x;\r\n double ty = tempy - coefficient*vec.y;\r\n double nx = x + coefficient*vec.x;\r\n double ny = y + coefficient*vec.y;\r\n if(tempSite.is2D()){\r\n tempSite.setPosition(tx,ty,tempz);\r\n tempSite.checkBoundaries();\r\n } else {\r\n tempSite.setPosition(tx,ty,tempz - coefficient*vec.z);\r\n tempSite.checkBoundaries();\r\n }\r\n if(site.is2D()){\r\n site.setPosition(nx,ny,z);\r\n site.checkBoundaries();\r\n } else {\r\n site.setPosition(nx, ny, z+coefficient*vec.z);\r\n site.checkBoundaries();\r\n }\r\n }\r\n }\r\n // DETERMINE IF A BIMOLECULE REACTION OCCURS\r\n // First make sure both sites are unbound\r\n if(!site.isBound() && !tempSite.isBound()){\r\n GState state1 = site.getState();\r\n GState state2 = tempSite.getState();\r\n // System.out.println(\"(state1, state2) = (\" + state1.getName() + \", \" + state2.getName() + \")\");\r\n String key1 = state1.getIdAsString();\r\n String key2 = state2.getIdAsString();\r\n \r\n // System.out.println(\"(key1, key2) = (\" + key1 + \", \" + key2 + \")\");\r\n \r\n // System.out.println(\"(key1, key2) = (\" + key1 + \", \" + key2 + \")\");\r\n // Now make sure the sites actually react (if they don't\r\n // then this prevents an unnecessary random number generation).\r\n if(bindingReactions.doReact(key1, key2)){\r\n // System.out.println(\"Looking for reaction.\");\r\n if(bindingReactions.checkForReaction(key1, key2)){\r\n Bond newBond = new Bond(site, tempSite, \r\n 100000000.0, bindingReactions.getOffProb(key1, key2), \r\n bindingReactions.getName(key1, key2),\r\n bindingReactions.getBondLength(key1, key2));\r\n bonds.add(newBond);\r\n site.setBound(true);\r\n site.setBindingPartner(tempSite);\r\n site.setBond(newBond);\r\n tempSite.setBound(true);\r\n tempSite.setBindingPartner(site);\r\n tempSite.setBond(newBond);\r\n Molecule m0 = site.getMolecule();\r\n Molecule m1 = tempSite.getMolecule();\r\n// m0.addBindingPartner(m1);\r\n// m1.addBindingPartner(m0);\r\n if(!m0.isBound()){\r\n removeFreeMolecule(m0);\r\n }\r\n m0.plusBond();\r\n if(m0 != m1){\r\n if(!m1.isBound()){\r\n removeFreeMolecule(m1);\r\n }\r\n m1.plusBond();\r\n }\r\n }\r\n }\r\n }\r\n \r\n }\r\n }\r\n }\r\n // </editor-fold>\r\n }", "title": "" }, { "docid": "da88541e68cab6cc559abc03bddbf63b", "score": "0.5373051", "text": "private void checkLineCollision() {\n float length = (float) Math.sqrt(direction[0] * direction[0] + direction[1] * direction[1]);\n //loop through the grid\n for (int i = 0; i < getGrid().getWidth(); i++) {\n for (int j = 0; j < getGrid().getWidth(); j++) {\n if (getGrid().isInnerborder(i, j) || getGrid().isOuterborder(i, j)) {\n float dx = getCoordinate(0) - i;\n float dy = getCoordinate(1) - j;\n float lengthNew = (float) Math.sqrt(dx * dx + dy * dy);\n //if gridpoint is closer to the qix than COLLISIONSIZE revert the qix\n if (lengthNew < COLLISIONSIZE) {\n dx /= lengthNew;\n dy /= lengthNew;\n dx *= length;\n dy *= length;\n setDirection(dx, 0);\n setDirection(dy, 1);\n return;\n }\n }\n }\n }\n }", "title": "" }, { "docid": "3ccb7081b14f0c4707458e3d7dae3c31", "score": "0.5371152", "text": "private void checkBuildingCollision(){\n offset = 6;\n if(type == \"basic\"){\n offset = 3;\n }\n\n if (level.buildingHere((int)xd + offset, (int)yd + offset)) {\n endingX = (int) xd - 1;\n endingY = (int) yd + offset;\n xCollision = (int)xd + offset;\n yCollision = (int)yd + offset;\n }\n else if (level.buildingHere((int)xd - offset, (int)yd + offset)) {\n endingX = (int) xd - 1;\n endingY = (int) yd + offset;\n xCollision = (int)xd - offset;\n yCollision = (int)yd + offset;\n }\n else if (level.buildingHere((int)xd, (int)yd)) {\n endingX = (int) xd - 1;\n endingY = (int) yd + offset;\n xCollision = (int)xd;\n yCollision = (int)yd;\n }\n }", "title": "" }, { "docid": "20aa8dc7bfdeee417fa39e9b29de3a75", "score": "0.5365655", "text": "private double collisionWithPlayer() {\n Player curPlayer = this.mainSketch.getCurrentActivePlayer();\n float xDifference = Math.abs(this.pos.x - curPlayer.getPos().x);\n float yDifference = Math.abs(this.pos.y - curPlayer.getPos().y);\n\n // distance between player and this must be sum of their radii for collision\n float distanceNeededForCollision = (this.diameter / 2) + (curPlayer.getDiameter() / 2);\n\n // pythagorean theorem\n boolean isAtCollisionDistance =\n Math.sqrt(Math.pow(xDifference, 2) + Math.pow(yDifference, 2)) <= distanceNeededForCollision;\n\n if (isAtCollisionDistance) {\n return Math.atan2(yDifference, xDifference);\n } else {\n return -1.0;\n }\n }", "title": "" }, { "docid": "aaf0f74a96b4ce52d5fe86b696f5d180", "score": "0.53628916", "text": "@Override\n\tpublic void collisionResolve(FlamingAsteroid asteroid) {\n\t\t\n\t}", "title": "" }, { "docid": "55f04da78f286ed4996e83d546254016", "score": "0.5348668", "text": "private void doCollide(List<AbstractEnemy> enemies, AbstractPlayer player, Array<Rectangle> terrain) {\n\n\t\tif (this.playerBullet){\n\t\t\tfor (Rectangle r : terrain){\n\t\t\t\tif(r.contains(this.pos)){\n\t\t\t\t\tthis.setToRemove();\n\t\t\t\t}\n\t\t\t}\n\t\t\tfor (AbstractEnemy e: enemies){\n\t\t\t\tif (e.getBoundingBox().contains(this.getX(),this.getY())){\n\t\t\t\t\te.hit((int)this.getDamage());\n\t\t\t\t\tthis.setToRemove();\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\telse{\n\t\t\tif (player.getBoundingBox().contains(this.getX(),this.getY())){\n\t\t\t\tplayer.hit(this.getDamage());\n\t\t\t\tthis.setToRemove();\n\t\t\t}\n\t\t}\n\n\n\t}", "title": "" }, { "docid": "55b3c8af146725ffe84898038d02be99", "score": "0.5344282", "text": "private boolean collisionTest(Actor target){\n int distanceX = this.xPosition - target.getXPosition();\n int distanceY = this.yPosition - target.getYPosition();\n if((Math.abs(distanceX) < TILE_SIZE) && (Math.abs(distanceY) < TILE_SIZE)){\n target.collide();\n return true;\n }\n return false;\n }", "title": "" }, { "docid": "3193139193e5a966a546441478fb7a69", "score": "0.53425133", "text": "@Override\n public void process(GameData gameData, World world) {\n aStar.updateGrid(world, gameData);\n Entity player = null;\n PositionPart playerPos = null;\n // Finds the player, and the position of the player on the map\n for (Entity p : world.getEntities()) {\n if (p.getEntityType() == EntityType.PLAYER) {\n player = p;\n playerPos = player.getPart(PositionPart.class);\n break;\n }\n }\n \n if (player == null) return;\n\n // Finds all enemies, and get a hold of their movingpart\n for (Entity enemy : world.getEntities()) {\n if (enemy.getEntityType() == EntityType.ENEMY) {\n AIMovingPart AIMovingPart = enemy.getPart(AIMovingPart.class);\n\n // Checks if the timelimit for updating the path has been exceeded\n // Updates the list of points to walk to get to the player\n if (AIMovingPart.needUpdate()) {\n PositionPart positionPart = enemy.getPart(PositionPart.class);\n LinkedList<Vector2f> route = aStar.calculateRoute(new Vector2f(positionPart.getX(), positionPart.getY()), new Vector2f(playerPos.getX(), playerPos.getY()));\n AIMovingPart.setRoute(route);\n }\n }\n\n }\n }", "title": "" }, { "docid": "9358a2045e63b31c45f65163df71b96d", "score": "0.5332012", "text": "@Test\n\tpublic void collisionRight() {\n\t\tIFacadePart2 facade = new Facade();\n\n\t\t// 2 vertical tiles, size 500px\n\t\t// ....X\n\t\t// a...X\n\t\t// XXXXX\n\t\t// XXXXX\n\t\tWorld world = facade.createWorld(50, 4, 2, 1, 1, 1, 1);\n\t\tfacade.setGeologicalFeature(world, 0, 0, FEATURE_SOLID);\n\t\tfacade.setGeologicalFeature(world, 1, 0, FEATURE_SOLID);\n\t\tfacade.setGeologicalFeature(world, 2, 0, FEATURE_SOLID);\n\t\tfacade.setGeologicalFeature(world, 3, 0, FEATURE_SOLID);\n\t\tfacade.setGeologicalFeature(world, 3, 1, FEATURE_SOLID);\n\t\tMazub alien = facade.createMazub(0, 49, spriteArrayForSize(3, 3));\n\t\tfacade.setMazub(world, alien);\n\t\tfacade.startGame(world);\n\t\t\n\t\tfacade.startMoveRight(alien);\n\t\tassertEquals(Orientation.RIGHT, alien.getOrientation());\n\t\tfacade.advanceTime(world, 0.1);\n\n\t\t// x_new [m] = 0 + 1 [m/s] * 0.1 [s] + 1/2 0.9 [m/s^2] * (0.1 [s])^2 =\n\t\t// 0.1045 [m] = 10.45 [cm], which falls into pixel (10, 0)\n\t\tassertArrayEquals(intArray(10, 49), facade.getLocation(alien));\n\t\t\n\t\tfor(int i = 0; i < 10; i++){\n\t\t\tfacade.advanceTime(world, 0.2);\n\t\t}\n\t\tassertTrue(alien.doesOverlap(Orientation.RIGHT));\n\t\tassertEquals(3 * 50 - alien.getWidth() + 1, alien.getRoundedPositionX()); // +1 is because it may overlap one pixel\n\t\t\n\t}", "title": "" }, { "docid": "10577a82afeb6b0cdae5bfa79eaf596a", "score": "0.5331097", "text": "public void check_collisions() {\n\t\t\n\t\t// your code here\t\t\t\n\t// this ensures that ball only bounces off the two paddles and not the walls\n\tif (x >= rect2xpos && y >= rect2ypos && y <= rect2ypos + rect2height)\n\t\t\n\t\tspeedX = -speedX;\n\t\n\t// this ensures that ball only bounces off the two paddles and not the walls\n\tif (x < PADDLE_WIDTH && y >= rect1ypos && y <= rect1ypos + rect1height)\n\t\t\n\t\tspeedX = -speedX;\n\t\n\t// score system, if ball hit right wall give point to left player, then reset location\n\tif (x >= WIDTH - DIAM) {\n\t\tp1score ++;\n\t\trect1ypos = paddle_startpoint;\n\t\trect2ypos = paddle_startpoint;\n\t\t\n\t\tballmove = false;\n\t\t\n\t\tx = WIDTH/2;\n\t\ty = HEIGHT/2;\n\t}\n\n\t// score system, if ball hit left wall give point to right player, then reset location\n\tif (x < rect1xpos) {\n\t\tp2score ++;\n\t\trect1ypos = paddle_startpoint;\n\t\trect2ypos = paddle_startpoint;\n\t\t\n\t\tballmove = false;\n\t\t\n\t\tx = WIDTH/2;\n\t\ty = HEIGHT/2;\n\t}\n\t\n\t// original ball statement for bouncing off height wall.\n\tif (y >= HEIGHT-DIAM || y <= 0) {\n\t\t\tspeedY = -speedY;\n\t}\n\t\t\t\n\t}", "title": "" }, { "docid": "ff233f3081dd3fb2326deab4a2795d38", "score": "0.5326524", "text": "public void collide(Entity entity) {\n/* 189 */ if (entity instanceof EntityBoat) {\n/* 190 */ if ((entity.getBoundingBox()).minY < (getBoundingBox()).maxY) {\n/* */ \n/* 192 */ if (!isSameVehicle(entity)) {\n/* 193 */ VehicleEntityCollisionEvent event = new VehicleEntityCollisionEvent((Vehicle)getBukkitEntity(), (Entity)entity.getBukkitEntity());\n/* 194 */ this.world.getServer().getPluginManager().callEvent((Event)event);\n/* */ \n/* 196 */ if (event.isCancelled()) {\n/* */ return;\n/* */ }\n/* */ } \n/* */ \n/* 201 */ super.collide(entity);\n/* */ } \n/* 203 */ } else if ((entity.getBoundingBox()).minY <= (getBoundingBox()).minY) {\n/* */ \n/* 205 */ if (!isSameVehicle(entity)) {\n/* 206 */ VehicleEntityCollisionEvent event = new VehicleEntityCollisionEvent((Vehicle)getBukkitEntity(), (Entity)entity.getBukkitEntity());\n/* 207 */ this.world.getServer().getPluginManager().callEvent((Event)event);\n/* */ \n/* 209 */ if (event.isCancelled()) {\n/* */ return;\n/* */ }\n/* */ } \n/* */ \n/* 214 */ super.collide(entity);\n/* */ } \n/* */ }", "title": "" }, { "docid": "213a25f6a87b66e26ca0295bb0802936", "score": "0.5322739", "text": "public void update() {\r\n\t\tif(keys[0]) {\r\n\t\t\tif(pLeft) { //checks if possible, add helper method to check if possible\r\n\t\t\t\tpac.setY(pac.getY()-1);\r\n\t\t\t\tleft = true;\r\n\t\t\t\t//if pos = 1, add dot number and swap with blank pos 2\r\n\t\t\t\tif(grid[pac.getX()][pac.getY()] == 1) { //movement on dotted tile\r\n\t\t\t\t\teatenDots++;\r\n\t\t\t\t\tgrid[pac.getX()][pac.getY()] = 9;\r\n\t\t\t\t\tgrid[pac.getX()][pac.getY()+1] = 2;\r\n\t\t\t\t} else if(grid[pac.getX()][pac.getY()] == 2) { //movement on blank tile\r\n\t\t\t\t\tgrid[pac.getX()][pac.getY()] = 9;\r\n\t\t\t\t\tgrid[pac.getX()][pac.getY()+1] = 2;\r\n\t\t\t\t} else if(grid[pac.getX()][pac.getY()] == 4) { //teleport\r\n\t\t\t\t\tif(pac.getY() == jump1.getY()) {\r\n\t\t\t\t\t\tpac.setY(jump2.getY()-1);\r\n\t\t\t\t\t\tgrid[pac.getX()][pac.getY()] = 9;\r\n\t\t\t\t\t}\r\n\t\t\t\t} else if(grid[pac.getX()][pac.getY()] == 3) {\r\n\t\t\t\t\tgrid[pac.getX()][pac.getY()+1] = 2;\r\n\t\t\t\t}\r\n\t\t\t} else {\r\n\t\t\t\tleft = false;\r\n\t\t\t}\r\n\t\t} else if(keys[1]) {\r\n\t\t\tif(pRight) {\r\n\t\t\t\tpac.setY(pac.getY()+1);\r\n\t\t\t\tright = true;\r\n\t\t\t\tif(grid[pac.getX()][pac.getY()] == 1) {\r\n\t\t\t\t\teatenDots++;\r\n\t\t\t\t\tgrid[pac.getX()][pac.getY()] = 9;\r\n\t\t\t\t\tgrid[pac.getX()][pac.getY()-1] = 2;\r\n\t\t\t\t} else if(grid[pac.getX()][pac.getY()] == 2) {\r\n\t\t\t\t\tgrid[pac.getX()][pac.getY()] = 9;\r\n\t\t\t\t\tgrid[pac.getX()][pac.getY()-1] = 2;\r\n\t\t\t\t}\r\n\t\t\t\telse if(grid[pac.getX()][pac.getY()] == 4) { //teleport\r\n\t\t\t\t\tif(pac.getY() == jump2.getY()) {\r\n\t\t\t\t\t\tpac.setY(jump1.getY()+1);\r\n\t\t\t\t\t\tgrid[pac.getX()][pac.getY()] = 9;\r\n\t\t\t\t\t}\r\n\t\t\t\t} else if(grid[pac.getX()][pac.getY()] == 3) {\r\n\t\t\t\t\tgrid[pac.getX()][pac.getY()-1] = 2;\r\n\t\t\t\t}\r\n\t\t\t} else {\r\n\t\t\t\tright = false;\r\n\t\t\t}\r\n\t\t} else if(keys[2]) {\r\n\t\t\tif(pDown) { \r\n\t\t\t\tpac.setX(pac.getX()+1);\r\n\t\t\t\tdown = true;\r\n\t\t\t\t//if pos = 1, add dot number and swap with blank pos 2\r\n\t\t\t\tif(grid[pac.getX()][pac.getY()] == 1) {\r\n\t\t\t\t\teatenDots++;\r\n\t\t\t\t\tgrid[pac.getX()][pac.getY()] = 9;\r\n\t\t\t\t\tgrid[pac.getX()-1][pac.getY()] = 2;\r\n\t\t\t\t} else if(grid[pac.getX()][pac.getY()] == 2) {\r\n\t\t\t\t\tgrid[pac.getX()][pac.getY()] = 9;\r\n\t\t\t\t\tgrid[pac.getX()-1][pac.getY()] = 2;\r\n\t\t\t\t} else if(grid[pac.getX()][pac.getY()] == 3) {\r\n\t\t\t\t\t\r\n\t\t\t\t\tgrid[pac.getX()-1][pac.getY()] = 2;\r\n\t\t\t\t}\r\n\t\t\t} else {\r\n\t\t\t\tdown = false;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t} else if(keys[3]) {\r\n\t\t\tif(pUp) { //checks if possible, add helper method to check if possible\r\n\t\t\t\tpac.setX(pac.getX()-1);\r\n\t\t\t\tup = true;\r\n\t\t\t\t//if pos = 1, add dot number and swap with blank pos 2\r\n\t\t\t\tif(grid[pac.getX()][pac.getY()] == 1) {\r\n\t\t\t\t\teatenDots++;\r\n\t\t\t\t\tgrid[pac.getX()][pac.getY()] = 9;\r\n\t\t\t\t\tgrid[pac.getX()+1][pac.getY()] = 2;\r\n\t\t\t\t} else if(grid[pac.getX()][pac.getY()] == 2) {\r\n\t\t\t\t\tgrid[pac.getX()][pac.getY()] = 9;\r\n\t\t\t\t\tgrid[pac.getX()+1][pac.getY()] = 2;\r\n\t\t\t\t} else if(grid[pac.getX()][pac.getY()] == 3) {\r\n\t\t\t\t\t\r\n\t\t\t\t\tgrid[pac.getX()+1][pac.getY()] = 2;\r\n\t\t\t\t}\r\n\t\t\t} else {\r\n\t\t\t\tup = false;\r\n\t\t\t}\r\n\t\t}\r\n\t}", "title": "" } ]
016c30ee420b6254972972c779492b54
Complete the initialization of the package and its metamodel. This method is guarded to have no affect on any invocation but its first.
[ { "docid": "7b0015392e482cf254411e27a374ac73", "score": "0.6228005", "text": "public void initializePackageContents()\n {\n if (isInitialized) return;\n isInitialized = true;\n\n // Initialize package\n setName(eNAME);\n setNsPrefix(eNS_PREFIX);\n setNsURI(eNS_URI);\n\n // Obtain other dependent packages\n Aadl2Package theAadl2Package = (Aadl2Package)EPackage.Registry.INSTANCE.getEPackage(Aadl2Package.eNS_URI);\n EcorePackage theEcorePackage = (EcorePackage)EPackage.Registry.INSTANCE.getEPackage(EcorePackage.eNS_URI);\n\n // Create type parameters\n\n // Set bounds for type parameters\n\n // Add supertypes to classes\n aclSubclauseEClass.getESuperTypes().add(theAadl2Package.getAnnexSubclause());\n computationalModelEClass.getESuperTypes().add(this.getSpecSection());\n flowsEClass.getESuperTypes().add(this.getSpecSection());\n contractEClass.getESuperTypes().add(this.getSpecSection());\n periodicComputationalModelEClass.getESuperTypes().add(this.getComputationalModel());\n hyperperiodComputationalModelEClass.getESuperTypes().add(this.getComputationalModel());\n assumeStatementEClass.getESuperTypes().add(this.getSpecStatement());\n guaranteeStatementEClass.getESuperTypes().add(this.getSpecStatement());\n binaryExprEClass.getESuperTypes().add(this.getExpr());\n unaryExprEClass.getESuperTypes().add(this.getExpr());\n idExprEClass.getESuperTypes().add(this.getExpr());\n\n // Initialize classes and features; add operations and parameters\n initEClass(aclSubclauseEClass, AclSubclause.class, \"AclSubclause\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEReference(getAclSubclause_Contract(), this.getAclContract(), null, \"contract\", null, 0, 1, AclSubclause.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(aclContractEClass, AclContract.class, \"AclContract\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEReference(getAclContract_Specs(), this.getSpecSection(), null, \"specs\", null, 0, -1, AclContract.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(specSectionEClass, SpecSection.class, \"SpecSection\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\n initEClass(computationalModelEClass, ComputationalModel.class, \"ComputationalModel\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\n initEClass(flowsEClass, Flows.class, \"Flows\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEReference(getFlows_Flows(), this.getFlow(), null, \"flows\", null, 0, -1, Flows.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(flowEClass, Flow.class, \"Flow\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEAttribute(getFlow_FlowId(), theEcorePackage.getEString(), \"flowId\", null, 0, 1, Flow.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEReference(getFlow_SrcPorts(), theAadl2Package.getNamedElement(), null, \"srcPorts\", null, 0, -1, Flow.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEReference(getFlow_DstPorts(), theAadl2Package.getNamedElement(), null, \"dstPorts\", null, 0, -1, Flow.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(contractEClass, Contract.class, \"Contract\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEReference(getContract_Specs(), this.getSpecStatement(), null, \"specs\", null, 0, -1, Contract.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(specStatementEClass, SpecStatement.class, \"SpecStatement\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\n initEClass(exprEClass, Expr.class, \"Expr\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\n initEClass(periodicComputationalModelEClass, PeriodicComputationalModel.class, \"PeriodicComputationalModel\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\n initEClass(hyperperiodComputationalModelEClass, HyperperiodComputationalModel.class, \"HyperperiodComputationalModel\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEReference(getHyperperiodComputationalModel_Constraints(), theAadl2Package.getNamedElement(), null, \"constraints\", null, 0, -1, HyperperiodComputationalModel.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(assumeStatementEClass, AssumeStatement.class, \"AssumeStatement\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEReference(getAssumeStatement_ForPort(), theAadl2Package.getNamedElement(), null, \"forPort\", null, 0, 1, AssumeStatement.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEAttribute(getAssumeStatement_AssumeTitle(), theEcorePackage.getEString(), \"assumeTitle\", null, 0, 1, AssumeStatement.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEAttribute(getAssumeStatement_Pred(), theEcorePackage.getEString(), \"pred\", null, 0, 1, AssumeStatement.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEAttribute(getAssumeStatement_TracesTo(), theEcorePackage.getEString(), \"tracesTo\", null, 0, 1, AssumeStatement.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(guaranteeStatementEClass, GuaranteeStatement.class, \"GuaranteeStatement\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEAttribute(getGuaranteeStatement_GuaranteeTitle(), theEcorePackage.getEString(), \"guaranteeTitle\", null, 0, 1, GuaranteeStatement.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEReference(getGuaranteeStatement_Expr(), this.getExpr(), null, \"expr\", null, 0, 1, GuaranteeStatement.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(binaryExprEClass, BinaryExpr.class, \"BinaryExpr\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEReference(getBinaryExpr_Left(), this.getExpr(), null, \"left\", null, 0, 1, BinaryExpr.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEReference(getBinaryExpr_Right(), this.getExpr(), null, \"right\", null, 0, 1, BinaryExpr.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEAttribute(getBinaryExpr_Op(), theEcorePackage.getEString(), \"op\", null, 0, 1, BinaryExpr.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(unaryExprEClass, UnaryExpr.class, \"UnaryExpr\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEAttribute(getUnaryExpr_Op(), theEcorePackage.getEString(), \"op\", null, 0, 1, UnaryExpr.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEReference(getUnaryExpr_Expr(), this.getExpr(), null, \"expr\", null, 0, 1, UnaryExpr.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(idExprEClass, IdExpr.class, \"IdExpr\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEReference(getIdExpr_Id(), theAadl2Package.getNamedElement(), null, \"id\", null, 0, 1, IdExpr.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n // Create resource\n createResource(eNS_URI);\n }", "title": "" } ]
[ { "docid": "ac857c941ff3678258f5c439506a0772", "score": "0.6611979", "text": "public void initializePackageContents() {\n\t\tif (isInitialized) return;\n\t\tisInitialized = true;\n\n\t\t// Initialize package\n\t\tsetName(eNAME);\n\t\tsetNsPrefix(eNS_PREFIX);\n\t\tsetNsURI(eNS_URI);\n\n\t\t// Create type parameters\n\n\t\t// Set bounds for type parameters\n\n\t\t// Add supertypes to classes\n\n\t\t// Initialize classes, features, and operations; add parameters\n\t\tinitEClass(saGmodelEClass, SAGmodel.class, \"SAGmodel\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getSAGmodel_Goals(), this.getGoal(), null, \"goals\", null, 1, -1, SAGmodel.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getSAGmodel_Actors(), this.getActor(), null, \"actors\", null, 1, -1, SAGmodel.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(actorEClass, Actor.class, \"Actor\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getActor_My_goal(), this.getGoal(), this.getGoal_Depender(), \"my_goal\", null, 0, -1, Actor.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getActor_Name(), ecorePackage.getEString(), \"name\", \"\", 0, 1, Actor.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(goalEClass, Goal.class, \"Goal\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getGoal_Requirements(), ecorePackage.getEString(), \"requirements\", null, 0, 1, Goal.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getGoal_Name(), ecorePackage.getEString(), \"name\", null, 0, 1, Goal.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getGoal_Depender(), this.getActor(), this.getActor_My_goal(), \"depender\", null, 1, 1, Goal.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getGoal_Dependee(), this.getActor(), null, \"dependee\", null, 0, -1, Goal.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\t// Create resource\n\t\tcreateResource(eNS_URI);\n\t}", "title": "" }, { "docid": "5bb0cc00ab8416d98a0c484046ae8297", "score": "0.6551963", "text": "public void initializePackageContents() {\n\t\tif (isInitialized) return;\n\t\tisInitialized = true;\n\n\t\t// Initialize package\n\t\tsetName(eNAME);\n\t\tsetNsPrefix(eNS_PREFIX);\n\t\tsetNsURI(eNS_URI);\n\n\t\t// Obtain other dependent packages\n\t\tInternalPackage theInternalPackage = (InternalPackage)EPackage.Registry.INSTANCE.getEPackage(InternalPackage.eNS_URI);\n\n\t\t// Create type parameters\n\n\t\t// Set bounds for type parameters\n\n\t\t// Add supertypes to classes\n\n\t\t// Initialize classes, features, and operations; add parameters\n\t\tinitEClass(aiProjectViewEClass, AIProjectView.class, \"AIProjectView\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getAIProjectView_InternalAIProject(), theInternalPackage.getInternalAIProject(), null, \"internalAIProject\", null, 0, 1, AIProjectView.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t}", "title": "" }, { "docid": "efe07edad0dbb8e0674324848de56466", "score": "0.650007", "text": "public void initializePackageContents()\n {\n if (isInitialized) return;\n isInitialized = true;\n\n // Initialize package\n setName(eNAME);\n setNsPrefix(eNS_PREFIX);\n setNsURI(eNS_URI);\n\n // Create type parameters\n\n // Set bounds for type parameters\n\n // Add supertypes to classes\n\n // Initialize classes and features; add operations and parameters\n initEClass(prologdslEClass, Prologdsl.class, \"Prologdsl\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEReference(getPrologdsl_Prologdsl(), this.getProgram(), null, \"prologdsl\", null, 0, 1, Prologdsl.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEReference(getPrologdsl_Ex(), this.getExquery(), null, \"ex\", null, 0, 1, Prologdsl.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(programEClass, Program.class, \"Program\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEReference(getProgram_Clause1(), this.getClause(), null, \"clause1\", null, 0, 1, Program.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEReference(getProgram_Clause2(), this.getClause(), null, \"clause2\", null, 0, -1, Program.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(exqueryEClass, Exquery.class, \"Exquery\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEReference(getExquery_Q(), this.getQuery(), null, \"q\", null, 0, 1, Exquery.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(queryEClass, Query.class, \"Query\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEReference(getQuery_Query(), this.getPredicate(), null, \"query\", null, 0, 1, Query.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEReference(getQuery_Pred(), this.getPredicate(), null, \"pred\", null, 0, -1, Query.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(clauseEClass, Clause.class, \"Clause\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEReference(getClause_Fact(), this.getPredicate(), null, \"fact\", null, 0, 1, Clause.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEReference(getClause_Clause1(), ecorePackage.getEObject(), null, \"clause1\", null, 0, 1, Clause.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(factEClass, Fact.class, \"Fact\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\n initEClass(ruleEClass, Rule.class, \"Rule\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEReference(getRule_Q(), this.getQuery(), null, \"q\", null, 0, 1, Rule.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(predicateEClass, Predicate.class, \"Predicate\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEReference(getPredicate_Pred(), this.getFunctor(), null, \"pred\", null, 0, 1, Predicate.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEReference(getPredicate_T(), this.getTerm(), null, \"t\", null, 0, 1, Predicate.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEReference(getPredicate_T2(), this.getTerm(), null, \"t2\", null, 0, -1, Predicate.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(functorEClass, Functor.class, \"Functor\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEReference(getFunctor_Func(), this.getIdent(), null, \"func\", null, 0, 1, Functor.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(termEClass, Term.class, \"Term\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEReference(getTerm_Term(), ecorePackage.getEObject(), null, \"term\", null, 0, 1, Term.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(atomEClass, Atom.class, \"Atom\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEReference(getAtom_Xx(), ecorePackage.getEObject(), null, \"xx\", null, 0, 1, Atom.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(listEClass, List.class, \"List\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEReference(getList_Nel(), this.getNonemptylist(), null, \"nel\", null, 0, 1, List.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(nonemptylistEClass, Nonemptylist.class, \"Nonemptylist\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEReference(getNonemptylist_Folge(), this.getFolge(), null, \"folge\", null, 0, 1, Nonemptylist.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEReference(getNonemptylist_Atom(), this.getAtom(), null, \"atom\", null, 0, 1, Nonemptylist.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEReference(getNonemptylist_Term(), this.getTerm(), null, \"term\", null, 0, 1, Nonemptylist.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(folgeEClass, Folge.class, \"Folge\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEReference(getFolge_Atom(), this.getAtom(), null, \"atom\", null, 0, 1, Folge.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEReference(getFolge_Atoms(), this.getAtom(), null, \"atoms\", null, 0, -1, Folge.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(identEClass, Ident.class, \"Ident\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEAttribute(getIdent_Name(), ecorePackage.getEString(), \"name\", null, 0, 1, Ident.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(number2EClass, Number2.class, \"Number2\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEAttribute(getNumber2_Wert(), ecorePackage.getEInt(), \"wert\", null, 0, 1, Number2.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(variable2EClass, Variable2.class, \"Variable2\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEAttribute(getVariable2_Var1(), ecorePackage.getEString(), \"var1\", null, 0, 1, Variable2.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n // Create resource\n createResource(eNS_URI);\n }", "title": "" }, { "docid": "fc8e432fa39aa0bfacf5e74469244f6f", "score": "0.6486405", "text": "public void initializePackageContents() {\n\t\tif (isInitialized) return;\n\t\tisInitialized = true;\n\n\t\t// Initialize package\n\t\tsetName(eNAME);\n\t\tsetNsPrefix(eNS_PREFIX);\n\t\tsetNsURI(eNS_URI);\n\n\t\t// Obtain other dependent packages\n\t\tM4mdPackage theM4mdPackage = (M4mdPackage)EPackage.Registry.INSTANCE.getEPackage(M4mdPackage.eNS_URI);\n\n\t\t// Create type parameters\n\n\t\t// Set bounds for type parameters\n\n\t\t// Add supertypes to classes\n\t\ttestingSchemaEClass.getESuperTypes().add(theM4mdPackage.getEDomainSchema());\n\t\ttestingCSEClass.getESuperTypes().add(theM4mdPackage.getEControlSchema());\n\t\ttestingDSEClass.getESuperTypes().add(theM4mdPackage.getEDataSchema());\n\t\tclassTypeEClass.getESuperTypes().add(theM4mdPackage.getEDomainSpecificType());\n\t\tclassItemEClass.getESuperTypes().add(theM4mdPackage.getEItem());\n\t\tclassActorEClass.getESuperTypes().add(theM4mdPackage.getEActor());\n\t\tclassCommandEClass.getESuperTypes().add(theM4mdPackage.getEDomainSpecificCommand());\n\n\t\t// Initialize classes, features, and operations; add parameters\n\t\tinitEClass(testingSchemaEClass, TestingSchema.class, \"TestingSchema\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getTestingSchema_Id(), ecorePackage.getEInt(), \"id\", null, 0, 1, TestingSchema.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(testingCSEClass, TestingCS.class, \"TestingCS\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getTestingCS_CsId(), ecorePackage.getEInt(), \"csId\", null, 0, 1, TestingCS.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(testingDSEClass, TestingDS.class, \"TestingDS\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getTestingDS_DsId(), ecorePackage.getEInt(), \"dsId\", null, 0, 1, TestingDS.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(classTypeEClass, ClassType.class, \"ClassType\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getClassType_TypeName(), ecorePackage.getEString(), \"typeName\", null, 0, 1, ClassType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(classItemEClass, ClassItem.class, \"ClassItem\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getClassItem_Name(), ecorePackage.getEString(), \"name\", null, 0, 1, ClassItem.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(classActorEClass, ClassActor.class, \"ClassActor\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getClassActor_Name(), ecorePackage.getEString(), \"name\", null, 0, 1, ClassActor.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(classCommandEClass, ClassCommand.class, \"ClassCommand\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getClassCommand_Cmd(), this.getCmdType(), \"cmd\", null, 0, -1, ClassCommand.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\t// Initialize enums and add enum literals\n\t\tinitEEnum(cmdTypeEEnum, CmdType.class, \"CmdType\");\n\t\taddEEnumLiteral(cmdTypeEEnum, CmdType.START_DEVICE);\n\t\taddEEnumLiteral(cmdTypeEEnum, CmdType.STOP_DEVICE);\n\t\taddEEnumLiteral(cmdTypeEEnum, CmdType.VERIFY_STATUS);\n\t\taddEEnumLiteral(cmdTypeEEnum, CmdType.TEST_DEVICE);\n\t\taddEEnumLiteral(cmdTypeEEnum, CmdType.SET_WAIT_MODE);\n\n\t\t// Create resource\n\t\tcreateResource(eNS_URI);\n\t}", "title": "" }, { "docid": "fbb018d0d4a14c456401b30c89c10930", "score": "0.6452349", "text": "public void initializePackageContents() {\n\t\tif (isInitialized) return;\n\t\tisInitialized = true;\n\n\t\t// Initialize package\n\t\tsetName(eNAME);\n\t\tsetNsPrefix(eNS_PREFIX);\n\t\tsetNsURI(eNS_URI);\n\n\t\t// Obtain other dependent packages\n\t\tAreaPackage theAreaPackage = (AreaPackage)EPackage.Registry.INSTANCE.getEPackage(AreaPackage.eNS_URI);\n\t\tUtilPackage theUtilPackage = (UtilPackage)EPackage.Registry.INSTANCE.getEPackage(UtilPackage.eNS_URI);\n\n\t\t// Create type parameters\n\n\t\t// Set bounds for type parameters\n\n\t\t// Add supertypes to classes\n\n\t\t// Initialize classes and features; add operations and parameters\n\t\tinitEClass(functionalDomainEClass, FunctionalDomain.class, \"FunctionalDomain\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getFunctionalDomain_Name(), ecorePackage.getEString(), \"name\", null, 0, 1, FunctionalDomain.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getFunctionalDomain_Areas(), theAreaPackage.getArea(), null, \"areas\", null, 0, -1, FunctionalDomain.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(businessDomainEClass, BusinessDomain.class, \"BusinessDomain\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getBusinessDomain_Name(), ecorePackage.getEString(), \"name\", \"\", 0, 1, BusinessDomain.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getBusinessDomain_FunctionalDomains(), this.getFunctionalDomain(), null, \"functionalDomains\", null, 0, -1, BusinessDomain.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getBusinessDomain_Color(), theUtilPackage.getColor(), \"color\", \"\", 0, 1, BusinessDomain.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t}", "title": "" }, { "docid": "656751bd68e84bf6f268ee21d9efa642", "score": "0.64300174", "text": "public void initializePackageContents() {\n\t\tif (isInitialized) return;\n\t\tisInitialized = true;\n\n\t\t// Initialize package\n\t\tsetName(eNAME);\n\t\tsetNsPrefix(eNS_PREFIX);\n\t\tsetNsURI(eNS_URI);\n\n\t\t// Create type parameters\n\n\t\t// Set bounds for type parameters\n\n\t\t// Add supertypes to classes\n\n\t\t// Initialize classes and features; add operations and parameters\n\t\tinitEClass(modelEClass, Model.class, \"Model\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getModel_Date(), ecorePackage.getEDate(), \"date\", null, 0, 1, Model.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getModel_Signature(), ecorePackage.getEString(), \"signature\", \"\", 0, 1, Model.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getModel_ModelPersonsList(), this.getPerson(), null, \"modelPersonsList\", null, 0, -1, Model.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getModel_ModelCardsList(), this.getAccreditation(), null, \"modelCardsList\", null, 0, -1, Model.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(personEClass, Person.class, \"Person\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getPerson_Id(), ecorePackage.getELongObject(), \"id\", null, 0, 1, Person.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getPerson_Raw(), ecorePackage.getELongObject(), \"raw\", null, 0, 1, Person.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getPerson_Identification(), ecorePackage.getEString(), \"identification\", null, 0, 1, Person.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getPerson_Name(), ecorePackage.getEString(), \"name\", null, 0, 1, Person.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getPerson_FirstLastName(), ecorePackage.getEString(), \"firstLastName\", null, 0, 1, Person.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getPerson_SecondLastName(), ecorePackage.getEString(), \"secondLastName\", null, 0, 1, Person.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getPerson_AccreditationsList(), this.getAccreditation(), this.getAccreditation_Person(), \"accreditationsList\", null, 0, -1, Person.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getPerson_LinkageList(), this.getLinkage(), null, \"linkageList\", null, 0, -1, Person.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(accreditationEClass, Accreditation.class, \"Accreditation\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getAccreditation_Id(), ecorePackage.getELongObject(), \"id\", null, 0, 1, Accreditation.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getAccreditation_Raw(), ecorePackage.getELongObject(), \"raw\", null, 0, 1, Accreditation.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getAccreditation_Type(), ecorePackage.getEString(), \"type\", null, 0, 1, Accreditation.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getAccreditation_Description(), ecorePackage.getEString(), \"description\", null, 0, 1, Accreditation.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getAccreditation_Person(), this.getPerson(), this.getPerson_AccreditationsList(), \"person\", null, 0, 1, Accreditation.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(linkageEClass, Linkage.class, \"Linkage\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getLinkage_Name(), ecorePackage.getEString(), \"name\", null, 0, 1, Linkage.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\t// Create resource\n\t\tcreateResource(eNS_URI);\n\t}", "title": "" }, { "docid": "cfd35d8aa43f08ff3657f3654b1fbe3b", "score": "0.6417188", "text": "public void initializePackageContents()\n\t{\n\t\tif (isInitialized) return;\n\t\tisInitialized = true;\n\n\t\t// Initialize package\n\t\tsetName(eNAME);\n\t\tsetNsPrefix(eNS_PREFIX);\n\t\tsetNsURI(eNS_URI);\n\n\t\t// Obtain other dependent packages\n\t\torg.eclipse.emf.mwe.ewm.workflow.orchestration.OrchestrationPackage theOrchestrationPackage_1 = (org.eclipse.emf.mwe.ewm.workflow.orchestration.OrchestrationPackage)EPackage.Registry.INSTANCE.getEPackage(org.eclipse.emf.mwe.ewm.workflow.orchestration.OrchestrationPackage.eNS_URI);\n\t\tWorkflowPackage theWorkflowPackage = (WorkflowPackage)EPackage.Registry.INSTANCE.getEPackage(WorkflowPackage.eNS_URI);\n\t\torg.eclipse.emf.mwe.ewm.workflow.runtime.RuntimePackage theRuntimePackage_1 = (org.eclipse.emf.mwe.ewm.workflow.runtime.RuntimePackage)EPackage.Registry.INSTANCE.getEPackage(org.eclipse.emf.mwe.ewm.workflow.runtime.RuntimePackage.eNS_URI);\n\n\t\t// Create type parameters\n\n\t\t// Set bounds for type parameters\n\n\t\t// Add supertypes to classes\n\t\tworkflowParallelOrchestrationStrategyEClass.getESuperTypes().add(theOrchestrationPackage_1.getWorkflowCompositeOrchestrationStrategy());\n\n\t\t// Initialize classes and features; add operations and parameters\n\t\tinitEClass(workflowParallelOrchestrationStrategyEClass, WorkflowParallelOrchestrationStrategy.class, \"WorkflowParallelOrchestrationStrategy\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\n\t\tEOperation op = addEOperation(workflowParallelOrchestrationStrategyEClass, null, \"run\", 0, 1, IS_UNIQUE, IS_ORDERED);\n\t\taddEParameter(op, theWorkflowPackage.getWorkflowCompositeComponent(), \"composite\", 0, 1, IS_UNIQUE, IS_ORDERED);\n\t\taddEParameter(op, theRuntimePackage_1.getWorkflowContext(), \"context\", 0, 1, IS_UNIQUE, IS_ORDERED);\n\t}", "title": "" }, { "docid": "53ffdc9b63db418083653cbffd01e018", "score": "0.6357786", "text": "public void initializePackageContents() {\n\t\tif (isInitialized) return;\n\t\tisInitialized = true;\n\n\t\t// Initialize package\n\t\tsetName(eNAME);\n\t\tsetNsPrefix(eNS_PREFIX);\n\t\tsetNsURI(eNS_URI);\n\n\t\t// Add supertypes to classes\n\t\ticmComponentEClass.getESuperTypes().add(this.getElementInstance());\n\t\tconstantEClass.getESuperTypes().add(this.getDistribution());\n\t\texponentialEClass.getESuperTypes().add(this.getDistribution());\n\t\tnormalEClass.getESuperTypes().add(this.getDistribution());\n\t\tssComponentEClass.getESuperTypes().add(this.getIcmComponent());\n\t\ticmServiceEClass.getESuperTypes().add(this.getElementInstance());\n\t\tserviceSourcePinIcmEClass.getESuperTypes().add(this.getSourcePinInstance());\n\t\tsinkPinInstanceEClass.getESuperTypes().add(this.getPinInstance());\n\t\tsourcePinInstanceEClass.getESuperTypes().add(this.getPinInstance());\n\t\tuniformEClass.getESuperTypes().add(this.getDistribution());\n\t\tunknownEClass.getESuperTypes().add(this.getDistribution());\n\n\t\t// Initialize classes and features; add operations and parameters\n\t\tinitEClass(assemblyInstanceEClass, AssemblyInstance.class, \"AssemblyInstance\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getAssemblyInstance_Name(), ecorePackage.getEString(), \"name\", null, 0, 1, AssemblyInstance.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getAssemblyInstance_Elements(), this.getElementInstance(), null, \"elements\", null, 0, -1, AssemblyInstance.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getAssemblyInstance_ConnectionOverhead(), ecorePackage.getEDouble(), \"connectionOverhead\", null, 0, 1, AssemblyInstance.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getAssemblyInstance_Scenarios(), this.getScenario(), null, \"scenarios\", null, 0, -1, AssemblyInstance.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getAssemblyInstance_Mutexes(), this.getMutex(), null, \"mutexes\", null, 0, -1, AssemblyInstance.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getAssemblyInstance_SourceFile(), ecorePackage.getEString(), \"sourceFile\", null, 0, 1, AssemblyInstance.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(icmComponentEClass, IcmComponent.class, \"IcmComponent\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\n\t\tinitEClass(constantEClass, Constant.class, \"Constant\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getConstant_Value(), ecorePackage.getEDouble(), \"value\", null, 0, 1, Constant.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getConstant_Offset(), ecorePackage.getEDouble(), \"offset\", null, 0, 1, Constant.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(distributionEClass, Distribution.class, \"Distribution\", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\n\t\tEOperation op = addEOperation(distributionEClass, null, \"add\");\n\t\taddEParameter(op, ecorePackage.getEDouble(), \"value\", 0, 1);\n\n\t\tinitEClass(elementInstanceEClass, ElementInstance.class, \"ElementInstance\", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getElementInstance_Name(), ecorePackage.getEString(), \"name\", null, 0, 1, ElementInstance.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getElementInstance_NodeNum(), ecorePackage.getEInt(), \"nodeNum\", null, 0, 1, ElementInstance.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getElementInstance_TypeName(), ecorePackage.getEString(), \"typeName\", null, 0, 1, ElementInstance.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getElementInstance_TypeNodeNum(), ecorePackage.getEInt(), \"typeNodeNum\", null, 0, 1, ElementInstance.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getElementInstance_Pins(), this.getPinInstance(), this.getPinInstance_ElementInstance(), \"pins\", null, 0, -1, ElementInstance.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(exponentialEClass, Exponential.class, \"Exponential\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getExponential_Mean(), ecorePackage.getEDouble(), \"mean\", null, 0, 1, Exponential.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(normalEClass, Normal.class, \"Normal\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getNormal_Mean(), ecorePackage.getEDouble(), \"mean\", null, 0, 1, Normal.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getNormal_StdDev(), ecorePackage.getEDouble(), \"stdDev\", null, 0, 1, Normal.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(pinInstanceEClass, PinInstance.class, \"PinInstance\", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getPinInstance_NodeNum(), ecorePackage.getEInt(), \"nodeNum\", null, 0, 1, PinInstance.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getPinInstance_Name(), ecorePackage.getEString(), \"name\", null, 0, 1, PinInstance.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getPinInstance_ElementInstance(), this.getElementInstance(), this.getElementInstance_Pins(), \"elementInstance\", null, 0, 1, PinInstance.class, IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getPinInstance_Scenarios(), this.getScenario(), null, \"scenarios\", null, 0, -1, PinInstance.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getPinInstance_Id(), ecorePackage.getEInt(), \"id\", null, 0, 1, PinInstance.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(ssComponentEClass, SSComponent.class, \"SSComponent\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getSSComponent_Budget(), ecorePackage.getEDouble(), \"budget\", null, 0, 1, SSComponent.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getSSComponent_ReplenishmentPeriod(), ecorePackage.getEInt(), \"replenishmentPeriod\", null, 0, 1, SSComponent.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getSSComponent_BackgroundPriority(), ecorePackage.getEInt(), \"backgroundPriority\", null, 0, 1, SSComponent.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(icmServiceEClass, IcmService.class, \"IcmService\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getIcmService_Priority(), ecorePackage.getEInt(), \"priority\", null, 0, 1, IcmService.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(serviceSourcePinIcmEClass, ServiceSourcePinIcm.class, \"ServiceSourcePinIcm\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getServiceSourcePinIcm_EventDistribution(), this.getDistribution(), null, \"eventDistribution\", null, 1, 1, ServiceSourcePinIcm.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getServiceSourcePinIcm_ExecTimeDistribution(), this.getDistribution(), null, \"execTimeDistribution\", null, 0, 1, ServiceSourcePinIcm.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getServiceSourcePinIcm_Deadline(), ecorePackage.getEDouble(), \"deadline\", null, 0, 1, ServiceSourcePinIcm.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(sinkPinInstanceEClass, SinkPinInstance.class, \"SinkPinInstance\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getSinkPinInstance_Mode(), this.getSinkPinMode(), \"mode\", null, 0, 1, SinkPinInstance.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getSinkPinInstance_ReactSources(), this.getSourcePinInstance(), this.getSourcePinInstance_ReactSinks(), \"reactSources\", null, 0, -1, SinkPinInstance.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getSinkPinInstance_LinkSources(), this.getSourcePinInstance(), this.getSourcePinInstance_Sinks(), \"linkSources\", null, 0, -1, SinkPinInstance.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getSinkPinInstance_ExecTimeDistribution(), this.getDistribution(), null, \"execTimeDistribution\", null, 1, 1, SinkPinInstance.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getSinkPinInstance_Priority(), ecorePackage.getEInt(), \"priority\", null, 0, 1, SinkPinInstance.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getSinkPinInstance_DownsamplingFactor(), ecorePackage.getEInt(), \"downsamplingFactor\", null, 0, 1, SinkPinInstance.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getSinkPinInstance_Mutexes(), this.getMutex(), null, \"mutexes\", null, 0, -1, SinkPinInstance.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(sourcePinInstanceEClass, SourcePinInstance.class, \"SourcePinInstance\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getSourcePinInstance_Mode(), this.getSourcePinMode(), \"mode\", null, 0, 1, SourcePinInstance.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getSourcePinInstance_Sinks(), this.getSinkPinInstance(), this.getSinkPinInstance_LinkSources(), \"sinks\", null, 0, -1, SourcePinInstance.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getSourcePinInstance_ReactSinks(), this.getSinkPinInstance(), this.getSinkPinInstance_ReactSources(), \"reactSinks\", null, 0, -1, SourcePinInstance.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(uniformEClass, Uniform.class, \"Uniform\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getUniform_Max(), ecorePackage.getEDouble(), \"max\", null, 0, 1, Uniform.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getUniform_Min(), ecorePackage.getEDouble(), \"min\", null, 0, 1, Uniform.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(unknownEClass, Unknown.class, \"Unknown\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getUnknown_Mean(), ecorePackage.getEDouble(), \"mean\", null, 0, 1, Unknown.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getUnknown_Min(), ecorePackage.getEDouble(), \"min\", null, 0, 1, Unknown.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getUnknown_Max(), ecorePackage.getEDouble(), \"max\", null, 0, 1, Unknown.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(scenarioEClass, Scenario.class, \"Scenario\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getScenario_Name(), ecorePackage.getEString(), \"name\", null, 0, 1, Scenario.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getScenario_Number(), ecorePackage.getEInt(), \"number\", null, 0, 1, Scenario.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(mutexEClass, Mutex.class, \"Mutex\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getMutex_Name(), ecorePackage.getEString(), \"name\", null, 0, 1, Mutex.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\t// Initialize enums and add enum literals\n\t\tinitEEnum(sinkPinModeEEnum, SinkPinMode.class, \"SinkPinMode\");\n\t\taddEEnumLiteral(sinkPinModeEEnum, SinkPinMode.ASYNCH_LITERAL);\n\t\taddEEnumLiteral(sinkPinModeEEnum, SinkPinMode.MUTEX_LITERAL);\n\t\taddEEnumLiteral(sinkPinModeEEnum, SinkPinMode.REENTER_LITERAL);\n\n\t\tinitEEnum(sourcePinModeEEnum, SourcePinMode.class, \"SourcePinMode\");\n\t\taddEEnumLiteral(sourcePinModeEEnum, SourcePinMode.UNICAST_LITERAL);\n\t\taddEEnumLiteral(sourcePinModeEEnum, SourcePinMode.MULTICAST_LITERAL);\n\t\taddEEnumLiteral(sourcePinModeEEnum, SourcePinMode.SYNCH_LITERAL);\n\t\taddEEnumLiteral(sourcePinModeEEnum, SourcePinMode.REENTER_LITERAL);\n\n\t\t// Create resource\n\t\tcreateResource(eNS_URI);\n\t}", "title": "" }, { "docid": "f9291eec42491ba303ba08c6af1cc0e5", "score": "0.6356048", "text": "public void initializePackageContents()\n {\n if (isInitialized) return;\n isInitialized = true;\n\n // Initialize package\n setName(eNAME);\n setNsPrefix(eNS_PREFIX);\n setNsURI(eNS_URI);\n\n // Obtain other dependent packages\n XtypePackage theXtypePackage = (XtypePackage)EPackage.Registry.INSTANCE.getEPackage(XtypePackage.eNS_URI);\n TypesPackage theTypesPackage = (TypesPackage)EPackage.Registry.INSTANCE.getEPackage(TypesPackage.eNS_URI);\n JbasePackage theJbasePackage = (JbasePackage)EPackage.Registry.INSTANCE.getEPackage(JbasePackage.eNS_URI);\n XbasePackage theXbasePackage = (XbasePackage)EPackage.Registry.INSTANCE.getEPackage(XbasePackage.eNS_URI);\n\n // Create type parameters\n\n // Set bounds for type parameters\n\n // Add supertypes to classes\n jVarDEClass.getESuperTypes().add(this.getDecl());\n mSigEClass.getESuperTypes().add(this.getDecl());\n evDeclEClass.getESuperTypes().add(this.getDecl());\n kindAttributeEClass.getESuperTypes().add(this.getEventPredicate());\n triggerEClass.getESuperTypes().add(this.getEventPredicate());\n groupEClass.getESuperTypes().add(this.getDecl());\n automatonEClass.getESuperTypes().add(this.getDecl());\n ltlEClass.getESuperTypes().add(this.getDecl());\n rcEClass.getESuperTypes().add(this.getDecl());\n orEventEClass.getESuperTypes().add(this.getEventExpression());\n andEventEClass.getESuperTypes().add(this.getEventExpression());\n unaryEventEClass.getESuperTypes().add(this.getEventExpression());\n ltlThenEClass.getESuperTypes().add(this.getLtlExpression());\n ltlOrEClass.getESuperTypes().add(this.getLtlExpression());\n ltlAndEClass.getESuperTypes().add(this.getLtlExpression());\n ltlUntilEClass.getESuperTypes().add(this.getLtlExpression());\n unaryLtlEClass.getESuperTypes().add(this.getLtlExpression());\n\n // Initialize classes and features; add operations and parameters\n initEClass(modelEClass, Model.class, \"Model\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEAttribute(getModel_Name(), ecorePackage.getEString(), \"name\", null, 0, 1, Model.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEReference(getModel_ImportSection(), theXtypePackage.getXImportSection(), null, \"importSection\", null, 0, 1, Model.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEReference(getModel_TypeDeclaration(), this.getEventClass(), null, \"typeDeclaration\", null, 0, 1, Model.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(eventClassEClass, EventClass.class, \"EventClass\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEAttribute(getEventClass_Name(), ecorePackage.getEString(), \"name\", null, 0, 1, EventClass.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEAttribute(getEventClass_Protocol(), this.getProtocol(), \"protocol\", null, 0, 1, EventClass.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEAttribute(getEventClass_Interface(), ecorePackage.getEString(), \"interface\", null, 0, 1, EventClass.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEReference(getEventClass_Declarations(), this.getDecl(), null, \"declarations\", null, 0, -1, EventClass.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(declEClass, Decl.class, \"Decl\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\n initEClass(jVarDEClass, JVarD.class, \"JVarD\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEAttribute(getJVarD_Name(), ecorePackage.getEString(), \"name\", null, 0, 1, JVarD.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEReference(getJVarD_Type(), theTypesPackage.getJvmTypeReference(), null, \"type\", null, 0, 1, JVarD.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(mSigEClass, MSig.class, \"MSig\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEAttribute(getMSig_Name(), ecorePackage.getEString(), \"name\", null, 0, 1, MSig.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEReference(getMSig_Params(), theJbasePackage.getXJJvmFormalParameter(), null, \"params\", null, 0, -1, MSig.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEReference(getMSig_Type(), theTypesPackage.getJvmTypeReference(), null, \"type\", null, 0, 1, MSig.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEReference(getMSig_Body(), theXbasePackage.getXExpression(), null, \"body\", null, 0, 1, MSig.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(evDeclEClass, EvDecl.class, \"EvDecl\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEAttribute(getEvDecl_Name(), ecorePackage.getEString(), \"name\", null, 0, 1, EvDecl.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEReference(getEvDecl_Params(), theJbasePackage.getXJJvmFormalParameter(), null, \"params\", null, 0, -1, EvDecl.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEReference(getEvDecl_Eventos(), this.getEventExpression(), null, \"eventos\", null, 0, -1, EvDecl.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(eventExpressionEClass, EventExpression.class, \"EventExpression\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEReference(getEventExpression_TipoEvento(), this.getEventPredicate(), null, \"tipoEvento\", null, 0, 1, EventExpression.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEAttribute(getEventExpression_Op(), ecorePackage.getEString(), \"op\", null, 0, 1, EventExpression.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(eventPredicateEClass, EventPredicate.class, \"EventPredicate\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\n initEClass(kindAttributeEClass, KindAttribute.class, \"KindAttribute\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEReference(getKindAttribute_Hostgroup(), this.getGroup(), null, \"hostgroup\", null, 0, 1, KindAttribute.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEReference(getKindAttribute_Ongroup(), this.getGroup(), null, \"ongroup\", null, 0, 1, KindAttribute.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEReference(getKindAttribute_Condition(), theXbasePackage.getXExpression(), null, \"condition\", null, 0, 1, KindAttribute.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(triggerEClass, Trigger.class, \"Trigger\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEAttribute(getTrigger_TriggerType(), this.getTPrefix(), \"triggerType\", null, 0, 1, Trigger.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEReference(getTrigger_Returndef(), this.getJVMTYPE(), null, \"returndef\", null, 0, 1, Trigger.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEAttribute(getTrigger_Esig(), ecorePackage.getEString(), \"esig\", null, 0, 1, Trigger.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEReference(getTrigger_Params(), theTypesPackage.getJvmTypeReference(), null, \"params\", null, 0, -1, Trigger.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(jvmtypeEClass, co.edu.icesi.eketal.eketal.JVMTYPE.class, \"JVMTYPE\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEAttribute(getJVMTYPE_Astk(), ecorePackage.getEString(), \"astk\", null, 0, 1, co.edu.icesi.eketal.eketal.JVMTYPE.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEReference(getJVMTYPE_JvmRef(), theTypesPackage.getJvmTypeReference(), null, \"jvmRef\", null, 0, 1, co.edu.icesi.eketal.eketal.JVMTYPE.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(groupEClass, Group.class, \"Group\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEAttribute(getGroup_Name(), ecorePackage.getEString(), \"name\", null, 0, 1, Group.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEReference(getGroup_Hosts(), this.getHost(), null, \"hosts\", null, 0, -1, Group.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(hostEClass, Host.class, \"Host\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEAttribute(getHost_Ip(), ecorePackage.getEString(), \"ip\", null, 0, 1, Host.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEReference(getHost_GroupId(), this.getGroup(), null, \"groupId\", null, 0, 1, Host.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(interval_IpEClass, Interval_Ip.class, \"Interval_Ip\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEAttribute(getInterval_Ip_From(), ecorePackage.getEInt(), \"from\", null, 0, 1, Interval_Ip.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEAttribute(getInterval_Ip_To(), ecorePackage.getEInt(), \"to\", null, 0, 1, Interval_Ip.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(automatonEClass, Automaton.class, \"Automaton\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEAttribute(getAutomaton_Name(), ecorePackage.getEString(), \"name\", null, 0, 1, Automaton.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEReference(getAutomaton_Params(), theJbasePackage.getXJJvmFormalParameter(), null, \"params\", null, 0, -1, Automaton.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEReference(getAutomaton_Steps(), this.getStep(), null, \"steps\", null, 0, -1, Automaton.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(stepEClass, Step.class, \"Step\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEAttribute(getStep_Type(), this.getStateType(), \"type\", null, 0, 1, Step.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEAttribute(getStep_Name(), ecorePackage.getEString(), \"name\", null, 0, 1, Step.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEReference(getStep_Transitions(), this.getTransDef(), null, \"transitions\", null, 0, -1, Step.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(transDefEClass, TransDef.class, \"TransDef\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEReference(getTransDef_Event(), this.getEvDecl(), null, \"event\", null, 0, 1, TransDef.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEReference(getTransDef_Target(), this.getStep(), null, \"target\", null, 0, 1, TransDef.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(ltlEClass, Ltl.class, \"Ltl\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEAttribute(getLtl_Name(), ecorePackage.getEString(), \"name\", null, 0, 1, Ltl.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEReference(getLtl_Params(), theJbasePackage.getXJJvmFormalParameter(), null, \"params\", null, 0, -1, Ltl.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEReference(getLtl_Predicate(), this.getLtlExpression(), null, \"predicate\", null, 0, 1, Ltl.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(ltlExpressionEClass, LtlExpression.class, \"LtlExpression\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEReference(getLtlExpression_Event(), this.getEvDecl(), null, \"event\", null, 0, 1, LtlExpression.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEAttribute(getLtlExpression_Op(), ecorePackage.getEString(), \"op\", null, 0, 1, LtlExpression.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(rcEClass, Rc.class, \"Rc\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEAttribute(getRc_Syncex(), ecorePackage.getEString(), \"syncex\", null, 0, 1, Rc.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEAttribute(getRc_Pos(), this.getPos(), \"pos\", null, 0, 1, Rc.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEReference(getRc_Automaton(), this.getAutomaton(), null, \"automaton\", null, 0, 1, Rc.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEReference(getRc_State(), this.getStep(), null, \"state\", null, 0, 1, Rc.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEReference(getRc_Body(), this.getBody(), null, \"body\", null, 0, 1, Rc.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(bodyEClass, Body.class, \"Body\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEReference(getBody_Body(), theXbasePackage.getXExpression(), null, \"body\", null, 0, 1, Body.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(orEventEClass, OrEvent.class, \"OrEvent\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEReference(getOrEvent_Left(), this.getEventExpression(), null, \"left\", null, 0, 1, OrEvent.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEReference(getOrEvent_Right(), this.getEventExpression(), null, \"right\", null, 0, 1, OrEvent.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(andEventEClass, AndEvent.class, \"AndEvent\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEReference(getAndEvent_Left(), this.getEventExpression(), null, \"left\", null, 0, 1, AndEvent.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEReference(getAndEvent_Right(), this.getEventExpression(), null, \"right\", null, 0, 1, AndEvent.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(unaryEventEClass, UnaryEvent.class, \"UnaryEvent\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEReference(getUnaryEvent_Expr(), this.getEventExpression(), null, \"expr\", null, 0, 1, UnaryEvent.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(ltlThenEClass, LtlThen.class, \"LtlThen\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEReference(getLtlThen_Left(), this.getLtlExpression(), null, \"left\", null, 0, 1, LtlThen.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEReference(getLtlThen_Right(), this.getLtlExpression(), null, \"right\", null, 0, 1, LtlThen.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(ltlOrEClass, LtlOr.class, \"LtlOr\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEReference(getLtlOr_Left(), this.getLtlExpression(), null, \"left\", null, 0, 1, LtlOr.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEReference(getLtlOr_Right(), this.getLtlExpression(), null, \"right\", null, 0, 1, LtlOr.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(ltlAndEClass, LtlAnd.class, \"LtlAnd\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEReference(getLtlAnd_Left(), this.getLtlExpression(), null, \"left\", null, 0, 1, LtlAnd.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEReference(getLtlAnd_Right(), this.getLtlExpression(), null, \"right\", null, 0, 1, LtlAnd.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(ltlUntilEClass, LtlUntil.class, \"LtlUntil\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEReference(getLtlUntil_Left(), this.getLtlExpression(), null, \"left\", null, 0, 1, LtlUntil.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEReference(getLtlUntil_Right(), this.getLtlExpression(), null, \"right\", null, 0, 1, LtlUntil.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(unaryLtlEClass, UnaryLtl.class, \"UnaryLtl\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEReference(getUnaryLtl_Expr(), this.getLtlExpression(), null, \"expr\", null, 0, 1, UnaryLtl.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n // Initialize enums and add enum literals\n initEEnum(protocolEEnum, Protocol.class, \"Protocol\");\n addEEnumLiteral(protocolEEnum, Protocol.UDP);\n addEEnumLiteral(protocolEEnum, Protocol.TCP);\n addEEnumLiteral(protocolEEnum, Protocol.TCP_NIO2);\n\n initEEnum(tPrefixEEnum, TPrefix.class, \"TPrefix\");\n addEEnumLiteral(tPrefixEEnum, TPrefix.CALL);\n addEEnumLiteral(tPrefixEEnum, TPrefix.EXECUTION);\n\n initEEnum(stateTypeEEnum, StateType.class, \"StateType\");\n addEEnumLiteral(stateTypeEEnum, StateType.STATE);\n addEEnumLiteral(stateTypeEEnum, StateType.START);\n addEEnumLiteral(stateTypeEEnum, StateType.END);\n\n initEEnum(posEEnum, Pos.class, \"Pos\");\n addEEnumLiteral(posEEnum, Pos.BEFORE);\n addEEnumLiteral(posEEnum, Pos.AROUND);\n addEEnumLiteral(posEEnum, Pos.AFTER);\n\n // Create resource\n createResource(eNS_URI);\n }", "title": "" }, { "docid": "ca024517cc8923c951018a92c598a1c2", "score": "0.6349786", "text": "public void initializePackageContents() {\r\n\t\tif (isInitialized) return;\r\n\t\tisInitialized = true;\r\n\r\n\t\t// Initialize package\r\n\t\tsetName(eNAME);\r\n\t\tsetNsPrefix(eNS_PREFIX);\r\n\t\tsetNsURI(eNS_URI);\r\n\r\n\t\t// Obtain other dependent packages\r\n\t\tTheoremprovingPackage theTheoremprovingPackage = (TheoremprovingPackage)EPackage.Registry.INSTANCE.getEPackage(TheoremprovingPackage.eNS_URI);\r\n\r\n\t\t// Create type parameters\r\n\r\n\t\t// Set bounds for type parameters\r\n\r\n\t\t// Add supertypes to classes\r\n\t\tEGenericType g1 = createEGenericType(theTheoremprovingPackage.getTheoremProver());\r\n\t\tEGenericType g2 = createEGenericType(this.getPDDLExpression());\r\n\t\tg1.getETypeArguments().add(g2);\r\n\t\tthetaSubsumptionEClass.getEGenericSuperTypes().add(g1);\r\n\r\n\t\t// Initialize classes and features; add operations and parameters\r\n\t\tinitEClass(thetaSubsumptionEClass, ThetaSubsumption.class, \"ThetaSubsumption\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\r\n\t\tinitEAttribute(getThetaSubsumption_PrologTheoryLocation(), ecorePackage.getEString(), \"prologTheoryLocation\", \"Prolog/plain_subsume.pl\", 1, 1, ThetaSubsumption.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\t\tinitEAttribute(getThetaSubsumption_PrologEngine(), this.getProlog(), \"prologEngine\", null, 1, 1, ThetaSubsumption.class, IS_TRANSIENT, !IS_VOLATILE, !IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, IS_UNIQUE, IS_DERIVED, IS_ORDERED);\r\n\r\n\t\t// Initialize data types\r\n\t\tinitEDataType(pddlExpressionEDataType, PDDLExpression.class, \"PDDLExpression\", IS_SERIALIZABLE, !IS_GENERATED_INSTANCE_CLASS);\r\n\t\tinitEDataType(prologEDataType, Prolog.class, \"Prolog\", !IS_SERIALIZABLE, !IS_GENERATED_INSTANCE_CLASS);\r\n\t}", "title": "" }, { "docid": "a5c52655f030b3435f24f541c8c26e63", "score": "0.63445604", "text": "public void initializePackageContents() {\n\t\tif (isInitialized) return;\n\t\tisInitialized = true;\n\n\t\t// Initialize package\n\t\tsetName(eNAME);\n\t\tsetNsPrefix(eNS_PREFIX);\n\t\tsetNsURI(eNS_URI);\n\n\t\t// Create type parameters\n\n\t\t// Set bounds for type parameters\n\n\t\t// Add supertypes to classes\n\n\t\t// Initialize classes and features; add operations and parameters\n\t\tinitEClass(ulaEClass, br.ufrn.lasic.pml.ULA.class, \"ULA\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getULA_Name(), ecorePackage.getEString(), \"name\", null, 0, 1, br.ufrn.lasic.pml.ULA.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getULA_BehavirosULA(), this.getBehavior(), null, \"behavirosULA\", null, 1, -1, br.ufrn.lasic.pml.ULA.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getULA_OutputsULA(), this.getOutput(), null, \"outputsULA\", null, 1, -1, br.ufrn.lasic.pml.ULA.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getULA_InputsULA(), this.getInput(), null, \"inputsULA\", null, 2, -1, br.ufrn.lasic.pml.ULA.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getULA_OperationsULA(), this.getOperation(), null, \"operationsULA\", null, 0, -1, br.ufrn.lasic.pml.ULA.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getULA_SeletorULA(), this.getSeletor(), null, \"seletorULA\", null, 1, 1, br.ufrn.lasic.pml.ULA.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(behaviorEClass, Behavior.class, \"Behavior\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getBehavior_Name(), ecorePackage.getEString(), \"name\", null, 0, 1, Behavior.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getBehavior_TypeBehavior(), this.getTypeData(), \"typeBehavior\", null, 0, 1, Behavior.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(inputEClass, Input.class, \"Input\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getInput_Name(), ecorePackage.getEString(), \"name\", null, 0, 1, Input.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getInput_Type(), this.getTypeData(), \"type\", null, 0, 1, Input.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getInput_Length(), ecorePackage.getEInt(), \"length\", null, 0, 1, Input.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getInput_Sensitive(), ecorePackage.getEBoolean(), \"sensitive\", null, 0, 1, Input.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getInput_Bit(), ecorePackage.getEInt(), \"bit\", null, 0, 1, Input.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(outputEClass, Output.class, \"Output\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getOutput_Name(), ecorePackage.getEString(), \"name\", null, 0, 1, Output.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getOutput_Type(), this.getTypeData(), \"type\", null, 0, 1, Output.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getOutput_Sensitive(), ecorePackage.getEBoolean(), \"sensitive\", null, 0, 1, Output.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getOutput_Length(), ecorePackage.getEInt(), \"length\", null, 0, 1, Output.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getOutput_Bit(), ecorePackage.getEInt(), \"bit\", null, 0, 1, Output.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(demultiplexorEClass, Demultiplexor.class, \"Demultiplexor\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getDemultiplexor_BehaviorsDemux(), this.getBehavior(), null, \"behaviorsDemux\", null, 1, -1, Demultiplexor.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getDemultiplexor_Indemux(), this.getInput(), null, \"indemux\", null, 1, 1, Demultiplexor.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getDemultiplexor_Outdemux(), this.getOutput(), null, \"outdemux\", null, 1, 1, Demultiplexor.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getDemultiplexor_Name(), ecorePackage.getEString(), \"name\", null, 0, 1, Demultiplexor.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getDemultiplexor_Seletordemux(), this.getSeletor(), null, \"seletordemux\", null, 1, 1, Demultiplexor.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(multiplexorEClass, Multiplexor.class, \"Multiplexor\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getMultiplexor_Behaviormux(), this.getBehavior(), null, \"behaviormux\", null, 1, -1, Multiplexor.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getMultiplexor_Outmux(), this.getOutput(), null, \"outmux\", null, 1, 1, Multiplexor.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getMultiplexor_Inmux(), this.getInput(), null, \"inmux\", null, 1, 1, Multiplexor.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMultiplexor_Name(), ecorePackage.getEString(), \"name\", null, 0, 1, Multiplexor.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getMultiplexor_Seletormux(), this.getSeletor(), null, \"seletormux\", null, 1, 1, Multiplexor.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(controlUnitEClass, ControlUnit.class, \"ControlUnit\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getControlUnit_BehaviorsControlUnit(), this.getBehavior(), null, \"behaviorsControlUnit\", null, 1, -1, ControlUnit.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getControlUnit_InputsControlUnit(), this.getInput(), null, \"inputsControlUnit\", null, 1, -1, ControlUnit.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getControlUnit_OutputsControlUnit(), this.getOutput(), null, \"outputsControlUnit\", null, 1, -1, ControlUnit.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getControlUnit_Name(), ecorePackage.getEString(), \"name\", null, 0, 1, ControlUnit.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getControlUnit_Intructions(), this.getInstructions(), null, \"intructions\", null, 1, -1, ControlUnit.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getControlUnit_ControlUnitFSM(), this.getInitialMicroInstruction(), null, \"controlUnitFSM\", null, 0, 1, ControlUnit.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(processorEClass, Processor.class, \"Processor\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getProcessor_Demux(), this.getDemultiplexor(), null, \"demux\", null, 0, -1, Processor.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getProcessor_Ulas(), this.getULA(), null, \"ulas\", null, 0, -1, Processor.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getProcessor_Registers(), this.getRegister(), null, \"registers\", null, 0, -1, Processor.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getProcessor_Memories(), this.getMemory(), null, \"memories\", null, 0, -1, Processor.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getProcessor_Mux(), this.getMultiplexor(), null, \"mux\", null, 0, -1, Processor.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getProcessor_ControlUnits(), this.getControlUnit(), null, \"controlUnits\", null, 0, -1, Processor.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getProcessor_Name(), ecorePackage.getEString(), \"name\", null, 0, 1, Processor.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getProcessor_Decoders(), this.getDecoder(), null, \"decoders\", null, 0, -1, Processor.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getProcessor_ProcessorSignalEvents(), this.getSignalEvent(), null, \"processorSignalEvents\", null, 0, -1, Processor.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(memoryEClass, Memory.class, \"Memory\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getMemory_BehaviorsMemory(), this.getBehavior(), null, \"behaviorsMemory\", null, 1, -1, Memory.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getMemory_InputMemory(), this.getInput(), null, \"inputMemory\", null, 1, -1, Memory.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getMemory_OutputMemory(), this.getOutput(), null, \"outputMemory\", null, 1, -1, Memory.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMemory_Name(), ecorePackage.getEString(), \"name\", null, 0, 1, Memory.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMemory_Length(), ecorePackage.getEInt(), \"length\", null, 1, 1, Memory.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(registerEClass, Register.class, \"Register\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getRegister_BehaviorRegister(), this.getBehavior(), null, \"behaviorRegister\", null, 1, -1, Register.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getRegister_OutputRegister(), this.getOutput(), null, \"outputRegister\", null, 1, -1, Register.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getRegister_InputRegister(), this.getInput(), null, \"inputRegister\", null, 1, -1, Register.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getRegister_Name(), ecorePackage.getEString(), \"name\", null, 0, 1, Register.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getRegister_Length(), ecorePackage.getEInt(), \"length\", null, 0, 1, Register.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(instructionsEClass, Instructions.class, \"Instructions\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getInstructions_Type(), ecorePackage.getEString(), \"type\", null, 0, 1, Instructions.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getInstructions_Name(), ecorePackage.getEString(), \"name\", null, 0, 1, Instructions.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(microInstructionEClass, MicroInstruction.class, \"MicroInstruction\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getMicroInstruction_Name(), ecorePackage.getEString(), \"name\", null, 0, 1, MicroInstruction.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMicroInstruction_Value(), ecorePackage.getEInt(), \"value\", null, 0, 1, MicroInstruction.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getMicroInstruction_NextMicroinstruction(), this.getMicroInstruction(), null, \"nextMicroinstruction\", null, 0, -1, MicroInstruction.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getMicroInstruction_Final(), this.getFinalMicroInstruction(), null, \"final\", null, 0, 1, MicroInstruction.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getMicroInstruction_MiddleFSM(), this.getInstructions(), null, \"middleFSM\", null, 0, -1, MicroInstruction.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(initialMicroInstructionEClass, InitialMicroInstruction.class, \"InitialMicroInstruction\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getInitialMicroInstruction_Next(), this.getMicroInstruction(), null, \"next\", null, 0, 1, InitialMicroInstruction.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getInitialMicroInstruction_Name(), ecorePackage.getEString(), \"name\", null, 0, 1, InitialMicroInstruction.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getInitialMicroInstruction_Value(), ecorePackage.getEInt(), \"value\", null, 0, 1, InitialMicroInstruction.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getInitialMicroInstruction_DirectFinalMicroInstruction(), this.getFinalMicroInstruction(), null, \"directFinalMicroInstruction\", null, 0, 1, InitialMicroInstruction.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getInitialMicroInstruction_FirstnodeFSM(), this.getInstructions(), null, \"firstnodeFSM\", null, 0, -1, InitialMicroInstruction.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(finalMicroInstructionEClass, FinalMicroInstruction.class, \"FinalMicroInstruction\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getFinalMicroInstruction_Name(), ecorePackage.getEString(), \"name\", null, 0, 1, FinalMicroInstruction.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getFinalMicroInstruction_Value(), ecorePackage.getEInt(), \"value\", null, 0, 1, FinalMicroInstruction.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getFinalMicroInstruction_FinalFSM(), this.getInstructions(), null, \"finalFSM\", null, 0, -1, FinalMicroInstruction.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(seletorEClass, Seletor.class, \"Seletor\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getSeletor_Name(), ecorePackage.getEString(), \"name\", null, 0, 1, Seletor.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getSeletor_Type(), this.getTypeData(), \"type\", null, 0, 1, Seletor.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getSeletor_Lengh(), ecorePackage.getEInt(), \"lengh\", null, 0, 1, Seletor.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getSeletor_Bit(), ecorePackage.getEInt(), \"bit\", null, 0, 1, Seletor.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getSeletor_Sensitive(), ecorePackage.getEBoolean(), \"sensitive\", null, 0, 1, Seletor.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(operationEClass, Operation.class, \"Operation\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getOperation_Name(), ecorePackage.getEString(), \"name\", null, 0, 1, Operation.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(decoderEClass, Decoder.class, \"Decoder\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getDecoder_Name(), ecorePackage.getEString(), \"name\", null, 0, 1, Decoder.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getDecoder_OutDecoder(), this.getOutput(), null, \"outDecoder\", null, 1, -1, Decoder.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getDecoder_InDecoder(), this.getInput(), null, \"inDecoder\", null, 1, -1, Decoder.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getDecoder_BehaviorDecoder(), this.getBehavior(), null, \"behaviorDecoder\", null, 0, -1, Decoder.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(signalEventEClass, SignalEvent.class, \"SignalEvent\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getSignalEvent_Name(), ecorePackage.getEString(), \"name\", null, 0, 1, SignalEvent.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getSignalEvent_SignalIn(), this.getInput(), null, \"signalIn\", null, 0, -1, SignalEvent.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getSignalEvent_SignalOut(), this.getOutput(), null, \"signalOut\", null, 0, -1, SignalEvent.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getSignalEvent_SinalSelector(), this.getSeletor(), null, \"sinalSelector\", null, 0, -1, SignalEvent.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\t// Initialize enums and add enum literals\n\t\tinitEEnum(typeComponentEEnum, TypeComponent.class, \"TypeComponent\");\n\t\taddEEnumLiteral(typeComponentEEnum, TypeComponent.MULTIPLEXOR);\n\t\taddEEnumLiteral(typeComponentEEnum, TypeComponent.DEMULTIPLEXOR);\n\t\taddEEnumLiteral(typeComponentEEnum, TypeComponent.UNIT_CONTROL);\n\t\taddEEnumLiteral(typeComponentEEnum, TypeComponent.ULA);\n\t\taddEEnumLiteral(typeComponentEEnum, TypeComponent.REGISTER);\n\t\taddEEnumLiteral(typeComponentEEnum, TypeComponent.SOFTWARE);\n\t\taddEEnumLiteral(typeComponentEEnum, TypeComponent.HARDWARE_GENERIC);\n\t\taddEEnumLiteral(typeComponentEEnum, TypeComponent.UML_COMPONENT);\n\t\taddEEnumLiteral(typeComponentEEnum, TypeComponent.COMPONENT_GENERIC);\n\n\t\tinitEEnum(typeDataEEnum, TypeData.class, \"TypeData\");\n\t\taddEEnumLiteral(typeDataEEnum, TypeData.BINARY);\n\t\taddEEnumLiteral(typeDataEEnum, TypeData.INT);\n\t\taddEEnumLiteral(typeDataEEnum, TypeData.FLOAT);\n\t\taddEEnumLiteral(typeDataEEnum, TypeData.BOOLEAN);\n\t\taddEEnumLiteral(typeDataEEnum, TypeData.STRING);\n\t\taddEEnumLiteral(typeDataEEnum, TypeData.CHAR);\n\t\taddEEnumLiteral(typeDataEEnum, TypeData.LONG);\n\t\taddEEnumLiteral(typeDataEEnum, TypeData.SHORT);\n\t\taddEEnumLiteral(typeDataEEnum, TypeData.UINT);\n\t\taddEEnumLiteral(typeDataEEnum, TypeData.ULONG);\n\t\taddEEnumLiteral(typeDataEEnum, TypeData.USHORT);\n\t\taddEEnumLiteral(typeDataEEnum, TypeData.VOID);\n\n\t\t// Create resource\n\t\tcreateResource(eNS_URI);\n\n\t\t// Create annotations\n\t\t// http:///org/eclipse/emf/ecore/util/ExtendedMetaData\n\t\tcreateExtendedMetaDataAnnotations();\n\t}", "title": "" }, { "docid": "74aabab500218a786460a5d97c8c042d", "score": "0.6322664", "text": "public void initializePackageContents() {\n if (isInitialized) return;\n isInitialized = true;\n\n // Initialize package\n setName(eNAME);\n setNsPrefix(eNS_PREFIX);\n setNsURI(eNS_URI);\n\n // Create type parameters\n\n // Set bounds for type parameters\n\n // Add supertypes to classes\n subDomainEClass.getESuperTypes().add(this.getDomain());\n areaEClass.getESuperTypes().add(this.getDomain());\n\n // Initialize classes and features; add operations and parameters\n initEClass(informationSystemEClass, InformationSystem.class, \"InformationSystem\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEReference(getInformationSystem_BusinessDomains(), this.getDomain(), null, \"businessDomains\", null, 0, -1, InformationSystem.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEAttribute(getInformationSystem_Name(), ecorePackage.getEString(), \"name\", null, 0, 1, InformationSystem.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(domainEClass, Domain.class, \"Domain\", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEAttribute(getDomain_Name(), ecorePackage.getEString(), \"name\", null, 0, 1, Domain.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEAttribute(getDomain_CreationDate(), ecorePackage.getEDate(), \"creationDate\", null, 0, 1, Domain.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEAttribute(getDomain_Description(), ecorePackage.getEString(), \"description\", null, 0, 1, Domain.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEAttribute(getDomain_Color(), this.getColor(), \"color\", null, 0, 1, Domain.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(subDomainEClass, SubDomain.class, \"SubDomain\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEReference(getSubDomain_SubDomains(), this.getDomain(), null, \"subDomains\", null, 0, -1, SubDomain.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(areaEClass, Area.class, \"Area\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEAttribute(getArea_Purpose(), ecorePackage.getEString(), \"purpose\", null, 0, 1, Area.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEReference(getArea_BusinessInformationsNotUsed(), this.getBusinessInformation(), null, \"businessInformationsNotUsed\", null, 0, -1, Area.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(businessInformationEClass, BusinessInformation.class, \"BusinessInformation\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEAttribute(getBusinessInformation_Name(), ecorePackage.getEString(), \"name\", null, 0, 1, BusinessInformation.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEAttribute(getBusinessInformation_Description(), ecorePackage.getEString(), \"description\", null, 0, 1, BusinessInformation.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEAttribute(getBusinessInformation_Tags(), ecorePackage.getEString(), \"tags\", null, 0, -1, BusinessInformation.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n // Initialize enums and add enum literals\n initEEnum(statusEEnum, Status.class, \"Status\");\n addEEnumLiteral(statusEEnum, Status.PRODUCTION);\n addEEnumLiteral(statusEEnum, Status.PROJECT);\n addEEnumLiteral(statusEEnum, Status.INITIATIVE);\n\n initEEnum(colorEEnum, Color.class, \"Color\");\n addEEnumLiteral(colorEEnum, Color.RED);\n addEEnumLiteral(colorEEnum, Color.GREEN);\n addEEnumLiteral(colorEEnum, Color.BLUE);\n addEEnumLiteral(colorEEnum, Color.YELLOW);\n addEEnumLiteral(colorEEnum, Color.BROWN);\n addEEnumLiteral(colorEEnum, Color.PINK);\n addEEnumLiteral(colorEEnum, Color.PURPLE);\n addEEnumLiteral(colorEEnum, Color.GREY);\n addEEnumLiteral(colorEEnum, Color.BLACK);\n\n // Create resource\n createResource(eNS_URI);\n }", "title": "" }, { "docid": "04250c12a8478f5499ca34bc9b33436c", "score": "0.6319159", "text": "public void initializePackageContents()\n {\n if (isInitialized) return;\n isInitialized = true;\n\n // Initialize package\n setName(eNAME);\n setNsPrefix(eNS_PREFIX);\n setNsURI(eNS_URI);\n\n // Create type parameters\n\n // Set bounds for type parameters\n\n // Add supertypes to classes\n\n // Initialize classes and features; add operations and parameters\n initEClass(whEClass, Wh.class, \"Wh\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEReference(getWh_Elements(), this.getProgram(), null, \"elements\", null, 0, -1, Wh.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(programEClass, Program.class, \"Program\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEAttribute(getProgram_Name(), ecorePackage.getEString(), \"name\", null, 0, 1, Program.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEReference(getProgram_Definition(), this.getDefinition(), null, \"definition\", null, 0, 1, Program.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(definitionEClass, Definition.class, \"Definition\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEAttribute(getDefinition_Input(), ecorePackage.getEString(), \"input\", null, 0, 1, Definition.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEReference(getDefinition_Command(), this.getCommands(), null, \"command\", null, 0, 1, Definition.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEAttribute(getDefinition_Output(), ecorePackage.getEString(), \"output\", null, 0, 1, Definition.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(commandsEClass, Commands.class, \"Commands\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEReference(getCommands_Commands(), this.getCommand(), null, \"commands\", null, 0, -1, Commands.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(commandEClass, Command.class, \"Command\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEAttribute(getCommand_Cmd(), ecorePackage.getEString(), \"cmd\", null, 0, 1, Command.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n // Create resource\n createResource(eNS_URI);\n }", "title": "" }, { "docid": "59833f6eb1ac080e0e0a08582ef3d4e7", "score": "0.6314986", "text": "public void initializePackageContents()\r\n {\r\n if (isInitialized) return;\r\n isInitialized = true;\r\n\r\n // Initialize package\r\n setName(eNAME);\r\n setNsPrefix(eNS_PREFIX);\r\n setNsURI(eNS_URI);\r\n\r\n // Obtain other dependent packages\r\n PhcrPackage thePhcrPackage = (PhcrPackage)EPackage.Registry.INSTANCE.getEPackage(PhcrPackage.eNS_URI);\r\n\r\n // Create type parameters\r\n\r\n // Set bounds for type parameters\r\n\r\n // Add supertypes to classes\r\n hibCaseReportEClass.getESuperTypes().add(thePhcrPackage.getPublicHealthCaseReport());\r\n hibPhcrClinicalInformationSectionEClass.getESuperTypes().add(thePhcrPackage.getPhcrClinicalInformationSection());\r\n hibCaseObservationEClass.getESuperTypes().add(thePhcrPackage.getCaseObservation());\r\n hibSignsAndSymptomsEClass.getESuperTypes().add(thePhcrPackage.getSignsAndSymptomsObservation());\r\n hibPhcrRelevantDxTestsSectionEClass.getESuperTypes().add(thePhcrPackage.getPhcrRelevantDxTestsSection());\r\n hibResultObservationEClass.getESuperTypes().add(thePhcrPackage.getResultObservation());\r\n hibResultOrganizerEClass.getESuperTypes().add(thePhcrPackage.getResultOrganizer());\r\n\r\n // Initialize classes and features; add operations and parameters\r\n initEClass(hibCaseReportEClass, HIBCaseReport.class, \"HIBCaseReport\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\r\n\r\n EOperation op = addEOperation(hibCaseReportEClass, ecorePackage.getEBoolean(), \"validateHIBCaseReportTitle\", 0, 1, IS_UNIQUE, IS_ORDERED);\r\n addEParameter(op, ecorePackage.getEDiagnosticChain(), \"diagnostics\", 0, 1, IS_UNIQUE, IS_ORDERED);\r\n EGenericType g1 = createEGenericType(ecorePackage.getEMap());\r\n EGenericType g2 = createEGenericType(ecorePackage.getEJavaObject());\r\n g1.getETypeArguments().add(g2);\r\n g2 = createEGenericType(ecorePackage.getEJavaObject());\r\n g1.getETypeArguments().add(g2);\r\n addEParameter(op, g1, \"context\", 0, 1, IS_UNIQUE, IS_ORDERED);\r\n\r\n op = addEOperation(hibCaseReportEClass, ecorePackage.getEBoolean(), \"validateHIBCaseReportHibPhcrClinicalInformationSection\", 0, 1, IS_UNIQUE, IS_ORDERED);\r\n addEParameter(op, ecorePackage.getEDiagnosticChain(), \"diagnostics\", 0, 1, IS_UNIQUE, IS_ORDERED);\r\n g1 = createEGenericType(ecorePackage.getEMap());\r\n g2 = createEGenericType(ecorePackage.getEJavaObject());\r\n g1.getETypeArguments().add(g2);\r\n g2 = createEGenericType(ecorePackage.getEJavaObject());\r\n g1.getETypeArguments().add(g2);\r\n addEParameter(op, g1, \"context\", 0, 1, IS_UNIQUE, IS_ORDERED);\r\n\r\n op = addEOperation(hibCaseReportEClass, ecorePackage.getEBoolean(), \"validateHIBCaseReportHibPhcrRelevantDxTestsSection\", 0, 1, IS_UNIQUE, IS_ORDERED);\r\n addEParameter(op, ecorePackage.getEDiagnosticChain(), \"diagnostics\", 0, 1, IS_UNIQUE, IS_ORDERED);\r\n g1 = createEGenericType(ecorePackage.getEMap());\r\n g2 = createEGenericType(ecorePackage.getEJavaObject());\r\n g1.getETypeArguments().add(g2);\r\n g2 = createEGenericType(ecorePackage.getEJavaObject());\r\n g1.getETypeArguments().add(g2);\r\n addEParameter(op, g1, \"context\", 0, 1, IS_UNIQUE, IS_ORDERED);\r\n\r\n addEOperation(hibCaseReportEClass, this.getHibPhcrClinicalInformationSection(), \"getHibPhcrClinicalInformationSection\", 1, 1, IS_UNIQUE, !IS_ORDERED);\r\n\r\n addEOperation(hibCaseReportEClass, this.getHibPhcrRelevantDxTestsSection(), \"getHibPhcrRelevantDxTestsSection\", 1, 1, IS_UNIQUE, !IS_ORDERED);\r\n\r\n initEClass(hibPhcrClinicalInformationSectionEClass, HibPhcrClinicalInformationSection.class, \"HibPhcrClinicalInformationSection\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\r\n\r\n op = addEOperation(hibPhcrClinicalInformationSectionEClass, ecorePackage.getEBoolean(), \"validateHibPhcrClinicalInformationSectionHibCaseObservation\", 0, 1, IS_UNIQUE, IS_ORDERED);\r\n addEParameter(op, ecorePackage.getEDiagnosticChain(), \"diagnostics\", 0, 1, IS_UNIQUE, IS_ORDERED);\r\n g1 = createEGenericType(ecorePackage.getEMap());\r\n g2 = createEGenericType(ecorePackage.getEJavaObject());\r\n g1.getETypeArguments().add(g2);\r\n g2 = createEGenericType(ecorePackage.getEJavaObject());\r\n g1.getETypeArguments().add(g2);\r\n addEParameter(op, g1, \"context\", 0, 1, IS_UNIQUE, IS_ORDERED);\r\n\r\n addEOperation(hibPhcrClinicalInformationSectionEClass, this.getHibCaseObservation(), \"getHibCaseObservation\", 1, 1, IS_UNIQUE, !IS_ORDERED);\r\n\r\n initEClass(hibCaseObservationEClass, HibCaseObservation.class, \"HibCaseObservation\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\r\n\r\n op = addEOperation(hibCaseObservationEClass, ecorePackage.getEBoolean(), \"validateHibCaseObservationHibSignsAndSymptoms\", 0, 1, IS_UNIQUE, IS_ORDERED);\r\n addEParameter(op, ecorePackage.getEDiagnosticChain(), \"diagnostics\", 0, 1, IS_UNIQUE, IS_ORDERED);\r\n g1 = createEGenericType(ecorePackage.getEMap());\r\n g2 = createEGenericType(ecorePackage.getEJavaObject());\r\n g1.getETypeArguments().add(g2);\r\n g2 = createEGenericType(ecorePackage.getEJavaObject());\r\n g1.getETypeArguments().add(g2);\r\n addEParameter(op, g1, \"context\", 0, 1, IS_UNIQUE, IS_ORDERED);\r\n\r\n addEOperation(hibCaseObservationEClass, this.getHibSignsAndSymptoms(), \"getHibSignsAndSymptomss\", 1, -1, IS_UNIQUE, !IS_ORDERED);\r\n\r\n initEClass(hibSignsAndSymptomsEClass, HibSignsAndSymptoms.class, \"HibSignsAndSymptoms\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\r\n\r\n initEClass(hibPhcrRelevantDxTestsSectionEClass, HibPhcrRelevantDxTestsSection.class, \"HibPhcrRelevantDxTestsSection\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\r\n\r\n op = addEOperation(hibPhcrRelevantDxTestsSectionEClass, ecorePackage.getEBoolean(), \"validateHibPhcrRelevantDxTestsSectionHibResultObservation\", 0, 1, IS_UNIQUE, IS_ORDERED);\r\n addEParameter(op, ecorePackage.getEDiagnosticChain(), \"diagnostics\", 0, 1, IS_UNIQUE, IS_ORDERED);\r\n g1 = createEGenericType(ecorePackage.getEMap());\r\n g2 = createEGenericType(ecorePackage.getEJavaObject());\r\n g1.getETypeArguments().add(g2);\r\n g2 = createEGenericType(ecorePackage.getEJavaObject());\r\n g1.getETypeArguments().add(g2);\r\n addEParameter(op, g1, \"context\", 0, 1, IS_UNIQUE, IS_ORDERED);\r\n\r\n op = addEOperation(hibPhcrRelevantDxTestsSectionEClass, ecorePackage.getEBoolean(), \"validateHibPhcrRelevantDxTestsSectionHibResultOrganizer\", 0, 1, IS_UNIQUE, IS_ORDERED);\r\n addEParameter(op, ecorePackage.getEDiagnosticChain(), \"diagnostics\", 0, 1, IS_UNIQUE, IS_ORDERED);\r\n g1 = createEGenericType(ecorePackage.getEMap());\r\n g2 = createEGenericType(ecorePackage.getEJavaObject());\r\n g1.getETypeArguments().add(g2);\r\n g2 = createEGenericType(ecorePackage.getEJavaObject());\r\n g1.getETypeArguments().add(g2);\r\n addEParameter(op, g1, \"context\", 0, 1, IS_UNIQUE, IS_ORDERED);\r\n\r\n addEOperation(hibPhcrRelevantDxTestsSectionEClass, this.getHibResultObservation(), \"getHibResultObservations\", 1, -1, IS_UNIQUE, !IS_ORDERED);\r\n\r\n addEOperation(hibPhcrRelevantDxTestsSectionEClass, this.getHibResultOrganizer(), \"getHibResultOrganizers\", 1, -1, IS_UNIQUE, !IS_ORDERED);\r\n\r\n initEClass(hibResultObservationEClass, HibResultObservation.class, \"HibResultObservation\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\r\n\r\n initEClass(hibResultOrganizerEClass, HibResultOrganizer.class, \"HibResultOrganizer\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\r\n\r\n op = addEOperation(hibResultOrganizerEClass, ecorePackage.getEBoolean(), \"validateHibResultOrganizerHibResultObservation\", 0, 1, IS_UNIQUE, IS_ORDERED);\r\n addEParameter(op, ecorePackage.getEDiagnosticChain(), \"diagnostics\", 0, 1, IS_UNIQUE, IS_ORDERED);\r\n g1 = createEGenericType(ecorePackage.getEMap());\r\n g2 = createEGenericType(ecorePackage.getEJavaObject());\r\n g1.getETypeArguments().add(g2);\r\n g2 = createEGenericType(ecorePackage.getEJavaObject());\r\n g1.getETypeArguments().add(g2);\r\n addEParameter(op, g1, \"context\", 0, 1, IS_UNIQUE, IS_ORDERED);\r\n\r\n addEOperation(hibResultOrganizerEClass, this.getHibResultObservation(), \"getHibResultObservation\", 1, 1, IS_UNIQUE, !IS_ORDERED);\r\n\r\n // Create resource\r\n createResource(eNS_URI);\r\n\r\n // Create annotations\r\n // http://www.openhealthtools.org/mdht/uml\r\n createUmlAnnotations();\r\n // http://www.openhealthtools.org/mdht/uml/cda/annotation\r\n createAnnotationAnnotations();\r\n // duplicates\r\n createDuplicatesAnnotations();\r\n }", "title": "" }, { "docid": "7d80b7462fa64a6a57f013780f40ac54", "score": "0.63112277", "text": "public void initializePackageContents() {\n\t\tif (isInitialized) return;\n\t\tisInitialized = true;\n\n\t\t// Initialize package\n\t\tsetName(eNAME);\n\t\tsetNsPrefix(eNS_PREFIX);\n\t\tsetNsURI(eNS_URI);\n\n\t\t// Obtain other dependent packages\n\t\tResourceTypesPackage theResourceTypesPackage = (ResourceTypesPackage)EPackage.Registry.INSTANCE.getEPackage(ResourceTypesPackage.eNS_URI);\n\t\tCorePackage theCorePackage = (CorePackage)EPackage.Registry.INSTANCE.getEPackage(CorePackage.eNS_URI);\n\t\tExecutionEnvironmentPackage theExecutionEnvironmentPackage = (ExecutionEnvironmentPackage)EPackage.Registry.INSTANCE.getEPackage(ExecutionEnvironmentPackage.eNS_URI);\n\n\t\t// Add subpackages\n\t\tgetESubpackages().add(theResourceTypesPackage);\n\n\t\t// Create type parameters\n\n\t\t// Set bounds for type parameters\n\n\t\t// Add supertypes to classes\n\t\tresourceTypeEClass.getESuperTypes().add(theCorePackage.getFQNamedEntity());\n\t\tcomponentTypeEClass.getESuperTypes().add(theCorePackage.getFQNamedEntity());\n\t\tinterfaceEClass.getESuperTypes().add(theCorePackage.getFQNamedEntity());\n\t\tsignatureEClass.getESuperTypes().add(theCorePackage.getNamedEntity());\n\t\toperationEClass.getESuperTypes().add(theCorePackage.getEntity());\n\t\tconnectorTypeEClass.getESuperTypes().add(theCorePackage.getFQNamedEntity());\n\t\texecutionContainerTypeEClass.getESuperTypes().add(theCorePackage.getFQNamedEntity());\n\t\tnetworkLinkTypeEClass.getESuperTypes().add(theCorePackage.getFQNamedEntity());\n\t\ttypeRepositoryModelEClass.getESuperTypes().add(theCorePackage.getSLAsticModel());\n\n\t\t// Initialize classes and features; add operations and parameters\n\t\tinitEClass(resourceTypeEClass, ResourceType.class, \"ResourceType\", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\n\t\tinitEClass(componentTypeEClass, ComponentType.class, \"ComponentType\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getComponentType_ProvidedInterfaces(), this.getInterface(), null, \"providedInterfaces\", null, 0, -1, ComponentType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);\n\t\tinitEReference(getComponentType_RequiredInterfaces(), this.getInterface(), null, \"requiredInterfaces\", null, 0, -1, ComponentType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);\n\t\tinitEReference(getComponentType_Operations(), this.getOperation(), this.getOperation_ComponentType(), \"operations\", null, 0, -1, ComponentType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);\n\n\t\tinitEClass(interfaceEClass, Interface.class, \"Interface\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getInterface_Signatures(), this.getSignature(), null, \"signatures\", null, 0, -1, Interface.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);\n\n\t\tinitEClass(signatureEClass, Signature.class, \"Signature\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getSignature_ParamTypes(), ecorePackage.getEString(), \"paramTypes\", null, 0, -1, Signature.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);\n\t\tinitEAttribute(getSignature_ReturnType(), ecorePackage.getEString(), \"returnType\", null, 1, 1, Signature.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);\n\n\t\tinitEClass(operationEClass, Operation.class, \"Operation\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getOperation_Signature(), this.getSignature(), null, \"signature\", null, 1, 1, Operation.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);\n\t\tinitEReference(getOperation_ComponentType(), this.getComponentType(), this.getComponentType_Operations(), \"componentType\", null, 1, 1, Operation.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);\n\n\t\tinitEClass(connectorTypeEClass, ConnectorType.class, \"ConnectorType\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getConnectorType_Interface(), this.getInterface(), null, \"interface\", null, 1, 1, ConnectorType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);\n\n\t\tinitEClass(executionContainerTypeEClass, ExecutionContainerType.class, \"ExecutionContainerType\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getExecutionContainerType_Resources(), theExecutionEnvironmentPackage.getResourceSpecification(), null, \"resources\", null, 0, -1, ExecutionContainerType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);\n\n\t\tinitEClass(networkLinkTypeEClass, NetworkLinkType.class, \"NetworkLinkType\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\n\t\tinitEClass(typeRepositoryModelEClass, TypeRepositoryModel.class, \"TypeRepositoryModel\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getTypeRepositoryModel_ComponentTypes(), this.getComponentType(), null, \"componentTypes\", null, 0, -1, TypeRepositoryModel.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);\n\t\tinitEReference(getTypeRepositoryModel_ExecutionContainerTypes(), this.getExecutionContainerType(), null, \"executionContainerTypes\", null, 0, -1, TypeRepositoryModel.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);\n\t\tinitEReference(getTypeRepositoryModel_Interfaces(), this.getInterface(), null, \"interfaces\", null, 0, -1, TypeRepositoryModel.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);\n\t\tinitEReference(getTypeRepositoryModel_ConnectorTypes(), this.getConnectorType(), null, \"connectorTypes\", null, 0, -1, TypeRepositoryModel.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);\n\t\tinitEReference(getTypeRepositoryModel_NetworkLinkTypes(), this.getNetworkLinkType(), null, \"networkLinkTypes\", null, 0, -1, TypeRepositoryModel.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);\n\t\tinitEReference(getTypeRepositoryModel_ResourceTypes(), this.getResourceType(), null, \"resourceTypes\", null, 0, -1, TypeRepositoryModel.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);\n\n\t\t// Create resource\n\t\tcreateResource(eNS_URI);\n\t}", "title": "" }, { "docid": "92abc64029bed131a4a0c71902f626d6", "score": "0.6303741", "text": "public void initializePackageContents() {\n\t\tif (isInitialized) return;\n\t\tisInitialized = true;\n\n\t\t// Initialize package\n\t\tsetName(eNAME);\n\t\tsetNsPrefix(eNS_PREFIX);\n\t\tsetNsURI(eNS_URI);\n\n\t\t// Obtain other dependent packages\n\t\tConfidentialityPackage theConfidentialityPackage = (ConfidentialityPackage)EPackage.Registry.INSTANCE.getEPackage(ConfidentialityPackage.eNS_URI);\n\t\tDataPackage theDataPackage = (DataPackage)EPackage.Registry.INSTANCE.getEPackage(DataPackage.eNS_URI);\n\t\torg.palladiosimulator.pcm.repository.RepositoryPackage theRepositoryPackage_1 = (org.palladiosimulator.pcm.repository.RepositoryPackage)EPackage.Registry.INSTANCE.getEPackage(org.palladiosimulator.pcm.repository.RepositoryPackage.eNS_URI);\n\n\t\t// Create type parameters\n\n\t\t// Set bounds for type parameters\n\n\t\t// Add supertypes to classes\n\t\tabstractSpecificationParameterAssignmentEClass.getESuperTypes().add(theConfidentialityPackage.getIdentifiedElement());\n\t\tspecificationParameter2DataSetAssignmentEClass.getESuperTypes().add(this.getAbstractSpecificationParameterAssignment());\n\t\tdataSetMapParameter2KeyAssignmentEClass.getESuperTypes().add(this.getAbstractSpecificationParameterAssignment());\n\t\tspecificationParameterEquationEClass.getESuperTypes().add(theConfidentialityPackage.getIdentifiedElement());\n\n\t\t// Initialize classes, features, and operations; add parameters\n\t\tinitEClass(abstractSpecificationParameterAssignmentEClass, AbstractSpecificationParameterAssignment.class, \"AbstractSpecificationParameterAssignment\", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getAbstractSpecificationParameterAssignment_SpecificationParametersToReplace(), theDataPackage.getSpecificationParameter(), null, \"specificationParametersToReplace\", null, 1, -1, AbstractSpecificationParameterAssignment.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(specificationParameter2DataSetAssignmentEClass, SpecificationParameter2DataSetAssignment.class, \"SpecificationParameter2DataSetAssignment\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getSpecificationParameter2DataSetAssignment_AssignedDataSet(), theDataPackage.getDataSet(), null, \"assignedDataSet\", null, 1, 1, SpecificationParameter2DataSetAssignment.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(dataSetMapParameter2KeyAssignmentEClass, DataSetMapParameter2KeyAssignment.class, \"DataSetMapParameter2KeyAssignment\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getDataSetMapParameter2KeyAssignment_AssignedKey(), ecorePackage.getEString(), \"assignedKey\", null, 1, 1, DataSetMapParameter2KeyAssignment.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(specificationParameterEquationEClass, SpecificationParameterEquation.class, \"SpecificationParameterEquation\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getSpecificationParameterEquation_LeftSpecificationParameter(), theDataPackage.getSpecificationParameter(), null, \"leftSpecificationParameter\", null, 1, 1, SpecificationParameterEquation.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getSpecificationParameterEquation_RightSpecificationParameter(), theDataPackage.getSpecificationParameter(), null, \"rightSpecificationParameter\", null, 1, 1, SpecificationParameterEquation.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getSpecificationParameterEquation_LeftInterfaces(), theRepositoryPackage_1.getInterface(), null, \"leftInterfaces\", null, 1, -1, SpecificationParameterEquation.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getSpecificationParameterEquation_RightInterfaces(), theRepositoryPackage_1.getInterface(), null, \"rightInterfaces\", null, 1, -1, SpecificationParameterEquation.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t}", "title": "" }, { "docid": "c095bb4f707f7b9f161f8411cae7b9d6", "score": "0.6300157", "text": "public void initializePackageContents() {\n\t\tif (isInitialized) return;\n\t\tisInitialized = true;\n\n\t\t// Initialize package\n\t\tsetName(eNAME);\n\t\tsetNsPrefix(eNS_PREFIX);\n\t\tsetNsURI(eNS_URI);\n\n\t\t// Create type parameters\n\n\t\t// Set bounds for type parameters\n\n\t\t// Add supertypes to classes\n\t\tprimaryKeyEClass.getESuperTypes().add(this.getField());\n\t\tforeignKeyEClass.getESuperTypes().add(this.getField());\n\t\tcolumnEClass.getESuperTypes().add(this.getField());\n\n\t\t// Initialize classes and features; add operations and parameters\n\t\tinitEClass(dataBaseEClass, DataBase.class, \"DataBase\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getDataBase_Schemas(), this.getSchema(), null, \"schemas\", null, 0, -1, DataBase.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getDataBase_Uri(), ecorePackage.getEString(), \"uri\", \"\", 1, 1, DataBase.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getDataBase_Port(), ecorePackage.getEInt(), \"port\", null, 0, 1, DataBase.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(schemaEClass, Schema.class, \"Schema\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getSchema_Tables(), this.getTable(), null, \"tables\", null, 0, -1, Schema.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getSchema_Name(), ecorePackage.getEString(), \"name\", null, 1, 1, Schema.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(tableEClass, Table.class, \"Table\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getTable_Fields(), this.getField(), null, \"fields\", null, 0, -1, Table.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getTable_Name(), ecorePackage.getEString(), \"name\", null, 1, 1, Table.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(fieldEClass, Field.class, \"Field\", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getField_Name(), ecorePackage.getEString(), \"name\", null, 1, 1, Field.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(primaryKeyEClass, PrimaryKey.class, \"PrimaryKey\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getPrimaryKey_Id(), ecorePackage.getELong(), \"id\", null, 1, 1, PrimaryKey.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(foreignKeyEClass, ForeignKey.class, \"ForeignKey\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getForeignKey_Reference(), this.getTable(), null, \"reference\", null, 1, 1, ForeignKey.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(columnEClass, Column.class, \"Column\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getColumn_Type(), this.getType(), \"type\", null, 1, 1, Column.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\t// Initialize enums and add enum literals\n\t\tinitEEnum(typeEEnum, Type.class, \"Type\");\n\t\taddEEnumLiteral(typeEEnum, Type.VARCHAR);\n\t\taddEEnumLiteral(typeEEnum, Type.NUMERIC);\n\t\taddEEnumLiteral(typeEEnum, Type.DATE);\n\t\taddEEnumLiteral(typeEEnum, Type.TIME);\n\t\taddEEnumLiteral(typeEEnum, Type.FLOAT);\n\t\taddEEnumLiteral(typeEEnum, Type.BOOLEAN);\n\t\taddEEnumLiteral(typeEEnum, Type.CHAR);\n\n\t\t// Create resource\n\t\tcreateResource(eNS_URI);\n\t}", "title": "" }, { "docid": "c6d9d6535cd6650236d948db62050fbc", "score": "0.6294323", "text": "public void initializePackageContents() {\n if (isInitialized) return;\n isInitialized = true;\n\n // Initialize package\n setName(eNAME);\n setNsPrefix(eNS_PREFIX);\n setNsURI(eNS_URI);\n\n // Create type parameters\n\n // Set bounds for type parameters\n\n // Add supertypes to classes\n\n // Initialize classes and features; add operations and parameters\n initEClass(categoryEClass, Category.class, \"Category\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEAttribute(getCategory_CategoryId(), ecorePackage.getEString(), \"categoryId\", null, 1, 1, Category.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEAttribute(getCategory_CategoryName(), ecorePackage.getEString(), \"categoryName\", null, 1, 1, Category.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(versionRevisionEClass, VersionRevision.class, \"VersionRevision\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEAttribute(getVersionRevision_VersionId(), ecorePackage.getEString(), \"versionId\", null, 1, 1, VersionRevision.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEAttribute(getVersionRevision_VersionName(), ecorePackage.getEString(), \"versionName\", null, 1, 1, VersionRevision.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(componentExtensionEClass, ComponentExtension.class, \"ComponentExtension\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEAttribute(getComponentExtension_IdExtension(), ecorePackage.getEString(), \"idExtension\", null, 1, 1, ComponentExtension.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEAttribute(getComponentExtension_Label(), ecorePackage.getEString(), \"label\", null, 1, 1, ComponentExtension.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEAttribute(getComponentExtension_TypeExtension(), ecorePackage.getEString(), \"typeExtension\", null, 1, 1, ComponentExtension.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEAttribute(getComponentExtension_VersionExtension(), ecorePackage.getEString(), \"versionExtension\", null, 1, 1, ComponentExtension.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEAttribute(getComponentExtension_LastVersionAvailable(), ecorePackage.getEString(), \"lastVersionAvailable\", null, 1, 1, ComponentExtension.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEAttribute(getComponentExtension_PublicationDate(), ecorePackage.getEDate(), \"publicationDate\", null, 1, 1, ComponentExtension.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEAttribute(getComponentExtension_Description(), ecorePackage.getEString(), \"description\", null, 1, 1, ComponentExtension.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEAttribute(getComponentExtension_Rate(), ecorePackage.getEString(), \"rate\", null, 1, 1, ComponentExtension.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEAttribute(getComponentExtension_Author(), ecorePackage.getEString(), \"author\", null, 1, 1, ComponentExtension.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEAttribute(getComponentExtension_Language(), this.getLanguage(), \"language\", \"\", 1, 1, ComponentExtension.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEReference(getComponentExtension_Reviews(), this.getAvailableExtensionViewDetail(), this.getAvailableExtensionViewDetail_Extension(), \"reviews\", null, 1, -1, ComponentExtension.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEAttribute(getComponentExtension_DownloadedVersion(), ecorePackage.getEString(), \"downloadedVersion\", null, 1, 1, ComponentExtension.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEAttribute(getComponentExtension_DateDownload(), ecorePackage.getEDate(), \"dateDownload\", null, 1, 1, ComponentExtension.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEAttribute(getComponentExtension_ListVersionCompatibles(), ecorePackage.getEString(), \"listVersionCompatibles\", null, 1, 1, ComponentExtension.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEAttribute(getComponentExtension_Filename(), ecorePackage.getEString(), \"filename\", null, 1, 1, ComponentExtension.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEAttribute(getComponentExtension_LinkDownload(), ecorePackage.getEString(), \"linkDownload\", null, 1, 1, ComponentExtension.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(availableExtensionViewDetailEClass, AvailableExtensionViewDetail.class, \"AvailableExtensionViewDetail\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEAttribute(getAvailableExtensionViewDetail_Author(), ecorePackage.getEString(), \"author\", null, 1, 1, AvailableExtensionViewDetail.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEAttribute(getAvailableExtensionViewDetail_Title(), ecorePackage.getEString(), \"title\", null, 1, 1, AvailableExtensionViewDetail.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEAttribute(getAvailableExtensionViewDetail_Comment(), ecorePackage.getEString(), \"comment\", null, 1, 1, AvailableExtensionViewDetail.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEAttribute(getAvailableExtensionViewDetail_Reviewrate(), ecorePackage.getEString(), \"reviewrate\", null, 1, 1, AvailableExtensionViewDetail.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEReference(getAvailableExtensionViewDetail_Extension(), this.getComponentExtension(), this.getComponentExtension_Reviews(), \"extension\", null, 1, 1, AvailableExtensionViewDetail.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n // Initialize enums and add enum literals\n initEEnum(languageEEnum, Language.class, \"Language\");\n addEEnumLiteral(languageEEnum, Language.PERL);\n addEEnumLiteral(languageEEnum, Language.JAVA);\n\n // Create resource\n createResource(eNS_URI);\n }", "title": "" }, { "docid": "1d4bada8f4997ba54290511b160241ed", "score": "0.62920487", "text": "private void init() {\n while (!metaDataFor.isCompleted())\n metaDataFor.complete();\n\n if (annotationTypeCompleter != null) {\n AnnotationTypeCompleter c = annotationTypeCompleter;\n annotationTypeCompleter = null;\n c.complete(metaDataFor);\n }\n }", "title": "" }, { "docid": "e19182f495714dc778601ba1c4be9bca", "score": "0.62909627", "text": "public void initializePackageContents() {\n\t\tif (isInitialized)\n\t\t\treturn;\n\t\tisInitialized = true;\n\n\t\t// Initialize package\n\t\tsetName(eNAME);\n\t\tsetNsPrefix(eNS_PREFIX);\n\t\tsetNsURI(eNS_URI);\n\n\t\t// Obtain other dependent packages\n\t\tTechnicalIDPackage theTechnicalIDPackage = (TechnicalIDPackage) EPackage.Registry.INSTANCE\n\t\t\t\t.getEPackage(TechnicalIDPackage.eNS_URI);\n\t\tEnvironmentPackage theEnvironmentPackage = (EnvironmentPackage) EPackage.Registry.INSTANCE\n\t\t\t\t.getEPackage(EnvironmentPackage.eNS_URI);\n\t\tEcorePackage theEcorePackage = (EcorePackage) EPackage.Registry.INSTANCE.getEPackage(EcorePackage.eNS_URI);\n\t\tCinematicPackage theCinematicPackage = (CinematicPackage) EPackage.Registry.INSTANCE\n\t\t\t\t.getEPackage(CinematicPackage.eNS_URI);\n\t\tEcorebindingPackage theEcorebindingPackage = (EcorebindingPackage) EPackage.Registry.INSTANCE\n\t\t\t\t.getEPackage(EcorebindingPackage.eNS_URI);\n\n\t\t// Create type parameters\n\n\t\t// Set bounds for type parameters\n\n\t\t// Add supertypes to classes\n\t\tconfigurationEClass.getESuperTypes().add(theTechnicalIDPackage.getIdentifiable());\n\n\t\t// Initialize classes and features; add operations and parameters\n\t\tinitEClass(configurationEClass, Configuration.class, \"Configuration\", !IS_ABSTRACT, !IS_INTERFACE,\n\t\t\t\tIS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getConfiguration_BindingRegistries(), theEnvironmentPackage.getBindingRegistry(), null,\n\t\t\t\t\"bindingRegistries\", null, 0, -1, Configuration.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE,\n\t\t\t\tIS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getConfiguration_EcoreModel(), theEcorePackage.getEPackage(), null, \"ecoreModel\", null, 0, 1,\n\t\t\t\tConfiguration.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES,\n\t\t\t\t!IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getConfiguration_CinematicModel(), theCinematicPackage.getCinematicRoot(), null,\n\t\t\t\t\"cinematicModel\", null, 0, 1, Configuration.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE,\n\t\t\t\t!IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getConfiguration_EcoreBindingModel(), theEcorebindingPackage.getBModel(), null,\n\t\t\t\t\"ecoreBindingModel\", null, 0, 1, Configuration.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE,\n\t\t\t\t!IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\t// Create resource\n\t\tcreateResource(eNS_URI);\n\t}", "title": "" }, { "docid": "44d8f4906b6bcac0360c267debe995cf", "score": "0.62703925", "text": "public void initializePackageContents() {\n\t\tif (isInitialized) return;\n\t\tisInitialized = true;\n\n\t\t// Initialize package\n\t\tsetName(eNAME);\n\t\tsetNsPrefix(eNS_PREFIX);\n\t\tsetNsURI(eNS_URI);\n\n\t\t// Obtain other dependent packages\n\t\tBPELPackage theBPELPackage = (BPELPackage)EPackage.Registry.INSTANCE.getEPackage(BPELPackage.eNS_URI);\n\t\tEcorePackage theEcorePackage = (EcorePackage)EPackage.Registry.INSTANCE.getEPackage(EcorePackage.eNS_URI);\n\n\t\t// Create type parameters\n\n\t\t// Set bounds for type parameters\n\n\t\t// Add supertypes to classes\n\t\taspectsEClass.getESuperTypes().add(theBPELPackage.getBPELExtensibleElement());\n\t\taspectEClass.getESuperTypes().add(theBPELPackage.getBPELExtensibleElement());\n\t\ttransitionsEClass.getESuperTypes().add(theBPELPackage.getBPELExtensibleElement());\n\t\ttransitionEClass.getESuperTypes().add(theBPELPackage.getBPELExtensibleElement());\n\t\tadviceEClass.getESuperTypes().add(theBPELPackage.getBPELExtensibleElement());\n\n\t\t// Initialize classes and features; add operations and parameters\n\t\tinitEClass(aspectsEClass, Aspects.class, \"Aspects\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getAspects_Name(), theEcorePackage.getEString(), \"name\", null, 0, 1, Aspects.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getAspects_Targetnamespace(), theEcorePackage.getEString(), \"targetnamespace\", null, 0, 1, Aspects.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getAspects_Children(), this.getAspect(), null, \"children\", null, 0, -1, Aspects.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(aspectEClass, Aspect.class, \"Aspect\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getAspect_Name(), theEcorePackage.getEString(), \"name\", null, 0, 1, Aspect.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getAspect_Transitions(), this.getTransitions(), null, \"transitions\", null, 0, 1, Aspect.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getAspect_JoinTransitions(), this.getTransitions(), null, \"joinTransitions\", null, 0, 1, Aspect.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getAspect_Advice(), this.getAdvice(), null, \"advice\", null, 0, 1, Aspect.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(transitionsEClass, Transitions.class, \"Transitions\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getTransitions_Children(), this.getTransition(), null, \"children\", null, 0, -1, Transitions.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getTransitions_Name(), theEcorePackage.getEString(), \"name\", null, 0, 1, Transitions.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(transitionEClass, Transition.class, \"Transition\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getTransition_Type(), theEcorePackage.getEString(), \"type\", null, 0, 1, Transition.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getTransition_PointName(), theEcorePackage.getEString(), \"pointName\", null, 0, 1, Transition.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getTransition_Name(), theEcorePackage.getEString(), \"name\", null, 0, 1, Transition.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(adviceEClass, Advice.class, \"Advice\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getAdvice_Activity(), theBPELPackage.getSequence(), null, \"activity\", null, 0, 1, Advice.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getAdvice_Name(), theEcorePackage.getEString(), \"name\", null, 0, 1, Advice.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\t// Create resource\n\t\tcreateResource(eNS_URI);\n\t}", "title": "" }, { "docid": "66c3965709ea159d08ab0a088eeefde3", "score": "0.626661", "text": "public void initializePackageContents() {\n\t\tif (isInitialized) return;\n\t\tisInitialized = true;\n\n\t\t// Initialize package\n\t\tsetName(eNAME);\n\t\tsetNsPrefix(eNS_PREFIX);\n\t\tsetNsURI(eNS_URI);\n\n\t\t// Obtain other dependent packages\n\t\tStepsPackage theStepsPackage = (StepsPackage)EPackage.Registry.INSTANCE.getEPackage(StepsPackage.eNS_URI);\n\t\tStatesPackage theStatesPackage = (StatesPackage)EPackage.Registry.INSTANCE.getEPackage(StatesPackage.eNS_URI);\n\t\tTracePackage theTracePackage = (TracePackage)EPackage.Registry.INSTANCE.getEPackage(TracePackage.eNS_URI);\n\t\tBasicActionsFewStepsPackage theBasicActionsFewStepsPackage = (BasicActionsFewStepsPackage)EPackage.Registry.INSTANCE.getEPackage(BasicActionsFewStepsPackage.eNS_URI);\n\t\tIntermediateActivitiesFewStepsPackage theIntermediateActivitiesFewStepsPackage = (IntermediateActivitiesFewStepsPackage)EPackage.Registry.INSTANCE.getEPackage(IntermediateActivitiesFewStepsPackage.eNS_URI);\n\t\tLociFewStepsPackage theLociFewStepsPackage = (LociFewStepsPackage)EPackage.Registry.INSTANCE.getEPackage(LociFewStepsPackage.eNS_URI);\n\n\t\t// Add subpackages\n\t\tgetESubpackages().add(theStepsPackage);\n\t\tgetESubpackages().add(theStatesPackage);\n\n\t\t// Create type parameters\n\n\t\t// Set bounds for type parameters\n\n\t\t// Add supertypes to classes\n\t\tEGenericType g1 = createEGenericType(theTracePackage.getTrace());\n\t\tEGenericType g2 = createEGenericType(theTracePackage.getSequentialStep());\n\t\tg1.getETypeArguments().add(g2);\n\t\tEGenericType g3 = createEGenericType(theStepsPackage.getSpecificStep());\n\t\tg2.getETypeArguments().add(g3);\n\t\tspecificTraceEClass.getEGenericSuperTypes().add(g1);\n\n\t\t// Initialize classes, features, and operations; add parameters\n\t\tinitEClass(specificTraceEClass, SpecificTrace.class, \"SpecificTrace\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getSpecificTrace_FumlConfigurationFewSteps_ActionsFewSteps_BasicActionsFewSteps_ActionActivation_Fire_ActionActivation_Sequence(), theStepsPackage.getFumlConfigurationFewSteps_ActionsFewSteps_BasicActionsFewSteps_ActionActivation_Fire_ActionActivation(), null, \"FumlConfigurationFewSteps_ActionsFewSteps_BasicActionsFewSteps_ActionActivation_Fire_ActionActivation_Sequence\", null, 0, -1, SpecificTrace.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getSpecificTrace_FumlConfigurationFewSteps_ActionsFewSteps_BasicActionsFewSteps_ActionActivation_ShouldFireAgain_ActionActivation_Sequence(), theStepsPackage.getFumlConfigurationFewSteps_ActionsFewSteps_BasicActionsFewSteps_ActionActivation_ShouldFireAgain_ActionActivation(), null, \"FumlConfigurationFewSteps_ActionsFewSteps_BasicActionsFewSteps_ActionActivation_ShouldFireAgain_ActionActivation_Sequence\", null, 0, -1, SpecificTrace.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getSpecificTrace_FumlConfigurationFewSteps_ActionsFewSteps_BasicActionsFewSteps_ActionActivation_TakeOfferedTokens_ActionActivation_Sequence(), theStepsPackage.getFumlConfigurationFewSteps_ActionsFewSteps_BasicActionsFewSteps_ActionActivation_TakeOfferedTokens_ActionActivation(), null, \"FumlConfigurationFewSteps_ActionsFewSteps_BasicActionsFewSteps_ActionActivation_TakeOfferedTokens_ActionActivation_Sequence\", null, 0, -1, SpecificTrace.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getSpecificTrace_FumlConfigurationFewSteps_ActionsFewSteps_BasicActionsFewSteps_PinActivation_Fire_PinActivation_Sequence(), theStepsPackage.getFumlConfigurationFewSteps_ActionsFewSteps_BasicActionsFewSteps_PinActivation_Fire_PinActivation(), null, \"FumlConfigurationFewSteps_ActionsFewSteps_BasicActionsFewSteps_PinActivation_Fire_PinActivation_Sequence\", null, 0, -1, SpecificTrace.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getSpecificTrace_FumlConfigurationFewSteps_ActionsFewSteps_BasicActionsFewSteps_PinActivation_TakeOfferedTokens_PinActivation_Sequence(), theStepsPackage.getFumlConfigurationFewSteps_ActionsFewSteps_BasicActionsFewSteps_PinActivation_TakeOfferedTokens_PinActivation(), null, \"FumlConfigurationFewSteps_ActionsFewSteps_BasicActionsFewSteps_PinActivation_TakeOfferedTokens_PinActivation_Sequence\", null, 0, -1, SpecificTrace.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getSpecificTrace_FumlConfigurationFewSteps_ActivitiesFewSteps_IntermediateActivitiesFewSteps_ActivityEdgeInstance_TakeOfferedTokens_ActivityEdgeInstance_Sequence(), theStepsPackage.getFumlConfigurationFewSteps_ActivitiesFewSteps_IntermediateActivitiesFewSteps_ActivityEdgeInstance_TakeOfferedTokens_ActivityEdgeInstance(), null, \"FumlConfigurationFewSteps_ActivitiesFewSteps_IntermediateActivitiesFewSteps_ActivityEdgeInstance_TakeOfferedTokens_ActivityEdgeInstance_Sequence\", null, 0, -1, SpecificTrace.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getSpecificTrace_FumlConfigurationFewSteps_ActivitiesFewSteps_IntermediateActivitiesFewSteps_ActivityEdgeInstance_TakeOfferedTokens_int_ActivityEdgeInstance_Sequence(), theStepsPackage.getFumlConfigurationFewSteps_ActivitiesFewSteps_IntermediateActivitiesFewSteps_ActivityEdgeInstance_TakeOfferedTokens_int_ActivityEdgeInstance(), null, \"FumlConfigurationFewSteps_ActivitiesFewSteps_IntermediateActivitiesFewSteps_ActivityEdgeInstance_TakeOfferedTokens_int_ActivityEdgeInstance_Sequence\", null, 0, -1, SpecificTrace.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getSpecificTrace_FumlConfigurationFewSteps_ActivitiesFewSteps_IntermediateActivitiesFewSteps_ActivityFinalNodeActivation_Fire_ActivityFinalNodeActivation_Sequence(), theStepsPackage.getFumlConfigurationFewSteps_ActivitiesFewSteps_IntermediateActivitiesFewSteps_ActivityFinalNodeActivation_Fire_ActivityFinalNodeActivation(), null, \"FumlConfigurationFewSteps_ActivitiesFewSteps_IntermediateActivitiesFewSteps_ActivityFinalNodeActivation_Fire_ActivityFinalNodeActivation_Sequence\", null, 0, -1, SpecificTrace.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getSpecificTrace_FumlConfigurationFewSteps_ActivitiesFewSteps_IntermediateActivitiesFewSteps_ActivityNodeActivation_Fire_ActivityNodeActivation_Sequence(), theStepsPackage.getFumlConfigurationFewSteps_ActivitiesFewSteps_IntermediateActivitiesFewSteps_ActivityNodeActivation_Fire_ActivityNodeActivation(), null, \"FumlConfigurationFewSteps_ActivitiesFewSteps_IntermediateActivitiesFewSteps_ActivityNodeActivation_Fire_ActivityNodeActivation_Sequence\", null, 0, -1, SpecificTrace.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getSpecificTrace_FumlConfigurationFewSteps_ActivitiesFewSteps_IntermediateActivitiesFewSteps_ActivityNodeActivation_TakeOfferedTokens_ActivityNodeActivation_Sequence(), theStepsPackage.getFumlConfigurationFewSteps_ActivitiesFewSteps_IntermediateActivitiesFewSteps_ActivityNodeActivation_TakeOfferedTokens_ActivityNodeActivation(), null, \"FumlConfigurationFewSteps_ActivitiesFewSteps_IntermediateActivitiesFewSteps_ActivityNodeActivation_TakeOfferedTokens_ActivityNodeActivation_Sequence\", null, 0, -1, SpecificTrace.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getSpecificTrace_FumlConfigurationFewSteps_ActivitiesFewSteps_IntermediateActivitiesFewSteps_ActivityParameterNodeActivation_Fire_ActivityParameterNodeActivation_Sequence(), theStepsPackage.getFumlConfigurationFewSteps_ActivitiesFewSteps_IntermediateActivitiesFewSteps_ActivityParameterNodeActivation_Fire_ActivityParameterNodeActivation(), null, \"FumlConfigurationFewSteps_ActivitiesFewSteps_IntermediateActivitiesFewSteps_ActivityParameterNodeActivation_Fire_ActivityParameterNodeActivation_Sequence\", null, 0, -1, SpecificTrace.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getSpecificTrace_FumlConfigurationFewSteps_ActivitiesFewSteps_IntermediateActivitiesFewSteps_ControlNodeActivation_Fire_ControlNodeActivation_Sequence(), theStepsPackage.getFumlConfigurationFewSteps_ActivitiesFewSteps_IntermediateActivitiesFewSteps_ControlNodeActivation_Fire_ControlNodeActivation(), null, \"FumlConfigurationFewSteps_ActivitiesFewSteps_IntermediateActivitiesFewSteps_ControlNodeActivation_Fire_ControlNodeActivation_Sequence\", null, 0, -1, SpecificTrace.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getSpecificTrace_FumlConfigurationFewSteps_ActivitiesFewSteps_IntermediateActivitiesFewSteps_DecisionNodeActivation_Fire_DecisionNodeActivation_Sequence(), theStepsPackage.getFumlConfigurationFewSteps_ActivitiesFewSteps_IntermediateActivitiesFewSteps_DecisionNodeActivation_Fire_DecisionNodeActivation(), null, \"FumlConfigurationFewSteps_ActivitiesFewSteps_IntermediateActivitiesFewSteps_DecisionNodeActivation_Fire_DecisionNodeActivation_Sequence\", null, 0, -1, SpecificTrace.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getSpecificTrace_FumlConfigurationFewSteps_ActivitiesFewSteps_IntermediateActivitiesFewSteps_DecisionNodeActivation_TakeOfferedTokens_DecisionNodeActivation_Sequence(), theStepsPackage.getFumlConfigurationFewSteps_ActivitiesFewSteps_IntermediateActivitiesFewSteps_DecisionNodeActivation_TakeOfferedTokens_DecisionNodeActivation(), null, \"FumlConfigurationFewSteps_ActivitiesFewSteps_IntermediateActivitiesFewSteps_DecisionNodeActivation_TakeOfferedTokens_DecisionNodeActivation_Sequence\", null, 0, -1, SpecificTrace.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getSpecificTrace_FumlConfigurationFewSteps_ActivitiesFewSteps_IntermediateActivitiesFewSteps_ForkNodeActivation_Fire_ForkNodeActivation_Sequence(), theStepsPackage.getFumlConfigurationFewSteps_ActivitiesFewSteps_IntermediateActivitiesFewSteps_ForkNodeActivation_Fire_ForkNodeActivation(), null, \"FumlConfigurationFewSteps_ActivitiesFewSteps_IntermediateActivitiesFewSteps_ForkNodeActivation_Fire_ForkNodeActivation_Sequence\", null, 0, -1, SpecificTrace.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getSpecificTrace_FumlConfigurationFewSteps_ActivitiesFewSteps_IntermediateActivitiesFewSteps_InitialNodeActivation_Fire_InitialNodeActivation_Sequence(), theStepsPackage.getFumlConfigurationFewSteps_ActivitiesFewSteps_IntermediateActivitiesFewSteps_InitialNodeActivation_Fire_InitialNodeActivation(), null, \"FumlConfigurationFewSteps_ActivitiesFewSteps_IntermediateActivitiesFewSteps_InitialNodeActivation_Fire_InitialNodeActivation_Sequence\", null, 0, -1, SpecificTrace.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getSpecificTrace_BasicActionsFewSteps_tracedActionActivations(), theBasicActionsFewStepsPackage.getTracedActionActivation(), null, \"basicActionsFewSteps_tracedActionActivations\", null, 0, -1, SpecificTrace.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);\n\t\tinitEReference(getSpecificTrace_BasicActionsFewSteps_tracedPinActivations(), theBasicActionsFewStepsPackage.getTracedPinActivation(), null, \"basicActionsFewSteps_tracedPinActivations\", null, 0, -1, SpecificTrace.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);\n\t\tinitEReference(getSpecificTrace_IntermediateActivitiesFewSteps_tracedActivityEdgeInstances(), theIntermediateActivitiesFewStepsPackage.getTracedActivityEdgeInstance(), null, \"intermediateActivitiesFewSteps_tracedActivityEdgeInstances\", null, 0, -1, SpecificTrace.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);\n\t\tinitEReference(getSpecificTrace_IntermediateActivitiesFewSteps_tracedActivityFinalNodeActivations(), theIntermediateActivitiesFewStepsPackage.getTracedActivityFinalNodeActivation(), null, \"intermediateActivitiesFewSteps_tracedActivityFinalNodeActivations\", null, 0, -1, SpecificTrace.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);\n\t\tinitEReference(getSpecificTrace_IntermediateActivitiesFewSteps_tracedActivityNodeActivations(), theIntermediateActivitiesFewStepsPackage.getTracedActivityNodeActivation(), null, \"intermediateActivitiesFewSteps_tracedActivityNodeActivations\", null, 0, -1, SpecificTrace.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);\n\t\tinitEReference(getSpecificTrace_IntermediateActivitiesFewSteps_tracedActivityParameterNodeActivations(), theIntermediateActivitiesFewStepsPackage.getTracedActivityParameterNodeActivation(), null, \"intermediateActivitiesFewSteps_tracedActivityParameterNodeActivations\", null, 0, -1, SpecificTrace.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);\n\t\tinitEReference(getSpecificTrace_IntermediateActivitiesFewSteps_tracedDecisionNodeActivations(), theIntermediateActivitiesFewStepsPackage.getTracedDecisionNodeActivation(), null, \"intermediateActivitiesFewSteps_tracedDecisionNodeActivations\", null, 0, -1, SpecificTrace.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);\n\t\tinitEReference(getSpecificTrace_IntermediateActivitiesFewSteps_tracedForkNodeActivations(), theIntermediateActivitiesFewStepsPackage.getTracedForkNodeActivation(), null, \"intermediateActivitiesFewSteps_tracedForkNodeActivations\", null, 0, -1, SpecificTrace.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);\n\t\tinitEReference(getSpecificTrace_IntermediateActivitiesFewSteps_tracedInitialNodeActivations(), theIntermediateActivitiesFewStepsPackage.getTracedInitialNodeActivation(), null, \"intermediateActivitiesFewSteps_tracedInitialNodeActivations\", null, 0, -1, SpecificTrace.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);\n\t\tinitEReference(getSpecificTrace_IntermediateActivitiesFewSteps_tracedTokens(), theIntermediateActivitiesFewStepsPackage.getTracedToken(), null, \"intermediateActivitiesFewSteps_tracedTokens\", null, 0, -1, SpecificTrace.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);\n\t\tinitEReference(getSpecificTrace_LociFewSteps_tracedSemanticVisitors(), theLociFewStepsPackage.getTracedSemanticVisitor(), null, \"lociFewSteps_tracedSemanticVisitors\", null, 0, -1, SpecificTrace.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);\n\t\tinitEReference(getSpecificTrace_StatesTrace(), theStatesPackage.getState(), null, \"statesTrace\", null, 0, -1, SpecificTrace.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\t// Create resource\n\t\tcreateResource(eNS_URI);\n\t}", "title": "" }, { "docid": "030ea47757d62fbb3a59442297717ecc", "score": "0.62665874", "text": "public void initializePackageContents() {\n\t\tif (isInitialized) return;\n\t\tisInitialized = true;\n\n\t\t// Initialize package\n\t\tsetName(eNAME);\n\t\tsetNsPrefix(eNS_PREFIX);\n\t\tsetNsURI(eNS_URI);\n\n\t\t// Obtain other dependent packages\n\t\tBase_Package theBase_Package = (Base_Package)EPackage.Registry.INSTANCE.getEPackage(Base_Package.eNS_URI);\n\n\t\t// Create type parameters\n\n\t\t// Set bounds for type parameters\n\n\t\t// Add supertypes to classes\n\t\tactionEClass.getESuperTypes().add(this.getActionElement());\n\t\trererenceActionEClass.getESuperTypes().add(this.getAction());\n\t\tcreateEClass.getESuperTypes().add(this.getAction());\n\t\treadEClass.getESuperTypes().add(this.getRererenceAction());\n\t\tupdateEClass.getESuperTypes().add(this.getRererenceAction());\n\t\tdeleteEClass.getESuperTypes().add(this.getRererenceAction());\n\t\tupdateGIDEClass.getESuperTypes().add(this.getUpdate());\n\t\tupdateNameEClass.getESuperTypes().add(this.getUpdate());\n\t\tupdateDescriptionEClass.getESuperTypes().add(this.getUpdate());\n\t\tupdateImplementationConstraintEClass.getESuperTypes().add(this.getUpdate());\n\t\tdeleteImplementationConstraintEClass.getESuperTypes().add(this.getDelete());\n\t\tattachNoteEClass.getESuperTypes().add(this.getUpdate());\n\t\tdeleteNoteEClass.getESuperTypes().add(this.getDelete());\n\t\taddTaggedValueEClass.getESuperTypes().add(this.getUpdate());\n\t\tupdateTaggedValueEClass.getESuperTypes().add(this.getUpdate());\n\t\tdeleteTaggedValueEClass.getESuperTypes().add(this.getUpdate());\n\t\tmakeAbstractEClass.getESuperTypes().add(this.getUpdate());\n\t\tmakeCitationEClass.getESuperTypes().add(this.getUpdate());\n\t\tciteEClass.getESuperTypes().add(this.getUpdate());\n\t\tcreateArtifactElementEClass.getESuperTypes().add(this.getCreate());\n\n\t\t// Initialize classes, features, and operations; add parameters\n\t\tinitEClass(actionElementEClass, ActionElement.class, \"ActionElement\", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getActionElement_Name(), ecorePackage.getEString(), \"name\", null, 0, 1, ActionElement.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getActionElement_Description(), ecorePackage.getEString(), \"description\", null, 0, 1, ActionElement.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getActionElement_Gid(), ecorePackage.getEString(), \"gid\", null, 0, 1, ActionElement.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(actionEClass, Action.class, \"Action\", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getAction_SubActions(), this.getAction(), null, \"subActions\", null, 0, -1, Action.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(rererenceActionEClass, RererenceAction.class, \"RererenceAction\", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getRererenceAction_ReferencedElement(), theBase_Package.getModelElement(), null, \"referencedElement\", null, 0, 1, RererenceAction.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(createEClass, Create.class, \"Create\", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getCreate_CreatedElement(), theBase_Package.getModelElement(), null, \"createdElement\", null, 0, 1, Create.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(readEClass, Read.class, \"Read\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\n\t\tinitEClass(updateEClass, Update.class, \"Update\", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\n\t\tinitEClass(deleteEClass, Delete.class, \"Delete\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\n\t\tinitEClass(updateGIDEClass, UpdateGID.class, \"UpdateGID\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getUpdateGID_Value(), ecorePackage.getEString(), \"value\", null, 0, 1, UpdateGID.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(updateNameEClass, UpdateName.class, \"UpdateName\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getUpdateName_Value(), ecorePackage.getEString(), \"value\", null, 0, 1, UpdateName.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(updateDescriptionEClass, UpdateDescription.class, \"UpdateDescription\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getUpdateDescription_Value(), ecorePackage.getEString(), \"value\", null, 0, 1, UpdateDescription.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(updateImplementationConstraintEClass, UpdateImplementationConstraint.class, \"UpdateImplementationConstraint\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getUpdateImplementationConstraint_Value(), ecorePackage.getEString(), \"value\", null, 0, 1, UpdateImplementationConstraint.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getUpdateImplementationConstraint_Index(), ecorePackage.getEInt(), \"index\", null, 0, 1, UpdateImplementationConstraint.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(deleteImplementationConstraintEClass, DeleteImplementationConstraint.class, \"DeleteImplementationConstraint\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getDeleteImplementationConstraint_Index(), ecorePackage.getEInt(), \"index\", null, 0, 1, DeleteImplementationConstraint.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(attachNoteEClass, AttachNote.class, \"AttachNote\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getAttachNote_Note(), ecorePackage.getEString(), \"note\", null, 0, 1, AttachNote.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(deleteNoteEClass, DeleteNote.class, \"DeleteNote\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getDeleteNote_Index(), ecorePackage.getEInt(), \"index\", null, 0, 1, DeleteNote.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(addTaggedValueEClass, AddTaggedValue.class, \"AddTaggedValue\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getAddTaggedValue_Key(), ecorePackage.getEString(), \"key\", null, 0, 1, AddTaggedValue.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getAddTaggedValue_Value(), theBase_Package.getModelElement(), null, \"value\", null, 0, 1, AddTaggedValue.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(updateTaggedValueEClass, UpdateTaggedValue.class, \"UpdateTaggedValue\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getUpdateTaggedValue_Index(), ecorePackage.getEInt(), \"index\", null, 0, 1, UpdateTaggedValue.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getUpdateTaggedValue_Key(), ecorePackage.getEString(), \"key\", null, 0, 1, UpdateTaggedValue.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getUpdateTaggedValue_Value(), theBase_Package.getModelElement(), null, \"value\", null, 0, 1, UpdateTaggedValue.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(deleteTaggedValueEClass, DeleteTaggedValue.class, \"DeleteTaggedValue\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getDeleteTaggedValue_Index(), ecorePackage.getEInt(), \"index\", null, 0, 1, DeleteTaggedValue.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(makeAbstractEClass, MakeAbstract.class, \"MakeAbstract\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getMakeAbstract_Value(), ecorePackage.getEBoolean(), \"value\", null, 0, 1, MakeAbstract.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(makeCitationEClass, MakeCitation.class, \"MakeCitation\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getMakeCitation_Value(), ecorePackage.getEBoolean(), \"value\", null, 0, 1, MakeCitation.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(citeEClass, Cite.class, \"Cite\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getCite_Cited(), theBase_Package.getModelElement(), null, \"cited\", null, 0, 1, Cite.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(createArtifactElementEClass, CreateArtifactElement.class, \"CreateArtifactElement\", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getCreateArtifactElement_Container(), theBase_Package.getModelElement(), null, \"container\", null, 0, 1, CreateArtifactElement.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\t// Create resource\n\t\tcreateResource(eNS_URI);\n\t}", "title": "" }, { "docid": "e04d4f2b68ba8efb109482ddf8178701", "score": "0.6259326", "text": "public void initializePackageContents()\r\n {\r\n if (isInitialized) return;\r\n isInitialized = true;\r\n\r\n // Initialize package\r\n setName(eNAME);\r\n setNsPrefix(eNS_PREFIX);\r\n setNsURI(eNS_URI);\r\n\r\n // Create type parameters\r\n\r\n // Set bounds for type parameters\r\n\r\n // Add supertypes to classes\r\n flowEClass.getESuperTypes().add(this.getFunctionUnit());\r\n globalInputPortEClass.getESuperTypes().add(this.getLeftPort());\r\n unnamedSubFlowPortEClass.getESuperTypes().add(this.getLeftPort());\r\n unnamedSubFlowPortEClass.getESuperTypes().add(this.getRightPort());\r\n globalOutputPortEClass.getESuperTypes().add(this.getRightPort());\r\n portEClass.getESuperTypes().add(this.getLeftPort());\r\n portEClass.getESuperTypes().add(this.getRightPort());\r\n operationEClass.getESuperTypes().add(this.getFunctionUnit());\r\n ebcOperationEClass.getESuperTypes().add(this.getOperation());\r\n classOperationEClass.getESuperTypes().add(this.getOperation());\r\n methodOperationEClass.getESuperTypes().add(this.getOperation());\r\n genericTypeEClass.getESuperTypes().add(this.getTypeParameter());\r\n typeEClass.getESuperTypes().add(this.getTypeParameter());\r\n\r\n // Initialize classes and features; add operations and parameters\r\n initEClass(modelEClass, Model.class, \"Model\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\r\n initEAttribute(getModel_Name(), ecorePackage.getEString(), \"name\", null, 0, 1, Model.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n initEReference(getModel_Imports(), this.getImport(), null, \"imports\", null, 0, -1, Model.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n initEReference(getModel_FunctionUnits(), this.getFunctionUnit(), null, \"functionUnits\", null, 0, -1, Model.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\r\n initEClass(functionUnitEClass, FunctionUnit.class, \"FunctionUnit\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\r\n initEAttribute(getFunctionUnit_Name(), ecorePackage.getEString(), \"name\", null, 0, 1, FunctionUnit.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\r\n initEClass(importEClass, Import.class, \"Import\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\r\n initEAttribute(getImport_ImportedNamespace(), ecorePackage.getEString(), \"importedNamespace\", null, 0, 1, Import.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\r\n initEClass(flowEClass, Flow.class, \"Flow\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\r\n initEReference(getFlow_Streams(), this.getStream(), null, \"streams\", null, 0, -1, Flow.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\r\n initEClass(streamEClass, Stream.class, \"Stream\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\r\n initEReference(getStream_LeftPort(), this.getLeftPort(), null, \"leftPort\", null, 0, 1, Stream.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n initEAttribute(getStream_Message(), ecorePackage.getEString(), \"message\", null, 0, 1, Stream.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n initEReference(getStream_RightPort(), this.getRightPort(), null, \"rightPort\", null, 0, 1, Stream.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\r\n initEClass(leftPortEClass, LeftPort.class, \"LeftPort\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\r\n\r\n initEClass(globalInputPortEClass, GlobalInputPort.class, \"GlobalInputPort\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\r\n\r\n initEClass(unnamedSubFlowPortEClass, UnnamedSubFlowPort.class, \"UnnamedSubFlowPort\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\r\n\r\n initEClass(rightPortEClass, RightPort.class, \"RightPort\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\r\n\r\n initEClass(globalOutputPortEClass, GlobalOutputPort.class, \"GlobalOutputPort\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\r\n\r\n initEClass(portEClass, Port.class, \"Port\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\r\n initEReference(getPort_FunctionUnit(), this.getFunctionUnit(), null, \"functionUnit\", null, 0, 1, Port.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n initEReference(getPort_Port(), this.getNamedPort(), null, \"port\", null, 0, 1, Port.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\r\n initEClass(namedPortEClass, NamedPort.class, \"NamedPort\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\r\n initEAttribute(getNamedPort_Name(), ecorePackage.getEString(), \"name\", null, 0, 1, NamedPort.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\r\n initEClass(operationEClass, Operation.class, \"Operation\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\r\n initEReference(getOperation_Class(), this.getNativeClass(), null, \"class\", null, 0, 1, Operation.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\r\n initEClass(ebcOperationEClass, EbcOperation.class, \"EbcOperation\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\r\n\r\n initEClass(nativeClassEClass, NativeClass.class, \"NativeClass\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\r\n initEAttribute(getNativeClass_Reference(), ecorePackage.getEString(), \"reference\", null, 0, 1, NativeClass.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\r\n initEClass(classOperationEClass, ClassOperation.class, \"ClassOperation\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\r\n\r\n initEClass(methodOperationEClass, MethodOperation.class, \"MethodOperation\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\r\n initEReference(getMethodOperation_Method(), this.getNativeMethod(), null, \"method\", null, 0, 1, MethodOperation.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n initEReference(getMethodOperation_Signature(), this.getSignature(), null, \"signature\", null, 0, 1, MethodOperation.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\r\n initEClass(signatureEClass, Signature.class, \"Signature\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\r\n initEReference(getSignature_Type(), this.getGenericType(), null, \"type\", null, 0, 1, Signature.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\r\n initEClass(genericTypeEClass, GenericType.class, \"GenericType\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\r\n initEReference(getGenericType_OperationType(), this.getOperationType(), null, \"operationType\", null, 0, 1, GenericType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n initEReference(getGenericType_OperationTypeParameters(), this.getOperationTypeParameters(), null, \"operationTypeParameters\", null, 0, 1, GenericType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\r\n initEClass(operationTypeEClass, OperationType.class, \"OperationType\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\r\n initEAttribute(getOperationType_Name(), ecorePackage.getEString(), \"name\", null, 0, 1, OperationType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\r\n initEClass(operationTypeParametersEClass, OperationTypeParameters.class, \"OperationTypeParameters\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\r\n initEReference(getOperationTypeParameters_TypeParameter(), this.getTypeParameter(), null, \"typeParameter\", null, 0, 1, OperationTypeParameters.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n initEReference(getOperationTypeParameters_TypeParameters(), this.getCSTypeParameter(), null, \"typeParameters\", null, 0, -1, OperationTypeParameters.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\r\n initEClass(typeParameterEClass, TypeParameter.class, \"TypeParameter\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\r\n\r\n initEClass(csTypeParameterEClass, CSTypeParameter.class, \"CSTypeParameter\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\r\n initEReference(getCSTypeParameter_TypeParameter(), this.getTypeParameter(), null, \"typeParameter\", null, 0, 1, CSTypeParameter.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\r\n initEClass(typeEClass, Type.class, \"Type\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\r\n initEAttribute(getType_Reference(), ecorePackage.getEString(), \"reference\", null, 0, 1, Type.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\r\n initEClass(nativeMethodEClass, NativeMethod.class, \"NativeMethod\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\r\n initEAttribute(getNativeMethod_Name(), ecorePackage.getEString(), \"name\", null, 0, 1, NativeMethod.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\r\n // Create resource\r\n createResource(eNS_URI);\r\n }", "title": "" }, { "docid": "ebb75470c84a9d137e4cead5328cde0f", "score": "0.62544894", "text": "public void initializePackageContents()\n {\n if (isInitialized) return;\n isInitialized = true;\n\n // Initialize package\n setName(eNAME);\n setNsPrefix(eNS_PREFIX);\n setNsURI(eNS_URI);\n\n // Create type parameters\n\n // Set bounds for type parameters\n\n // Add supertypes to classes\n driveUntilEClass.getESuperTypes().add(this.getAction());\n investigateEClass.getESuperTypes().add(this.getAction());\n speakEClass.getESuperTypes().add(this.getAction());\n followLineEClass.getESuperTypes().add(this.getAction());\n moveBackEClass.getESuperTypes().add(this.getDriveAction());\n turnLeftEClass.getESuperTypes().add(this.getDriveAction());\n turnRightEClass.getESuperTypes().add(this.getDriveAction());\n\n // Initialize classes and features; add operations and parameters\n initEClass(dslEClass, mars.ru.des.robot.taskDSL.DSL.class, \"DSL\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEReference(getDSL_Missions(), this.getMission(), null, \"missions\", null, 0, -1, mars.ru.des.robot.taskDSL.DSL.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEReference(getDSL_Tasks(), this.getTask(), null, \"tasks\", null, 0, -1, mars.ru.des.robot.taskDSL.DSL.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(missionEClass, Mission.class, \"Mission\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEAttribute(getMission_Name(), ecorePackage.getEString(), \"name\", null, 0, 1, Mission.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEReference(getMission_Tasks(), this.getTask(), null, \"tasks\", null, 0, -1, Mission.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(taskEClass, Task.class, \"Task\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEAttribute(getTask_Name(), ecorePackage.getEString(), \"name\", null, 0, 1, Task.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEReference(getTask_Action(), this.getAction(), null, \"action\", null, 0, 1, Task.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEReference(getTask_Detector(), this.getDetector(), null, \"detector\", null, 0, 1, Task.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(actionEClass, Action.class, \"Action\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\n initEClass(detectorEClass, Detector.class, \"Detector\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEReference(getDetector_Avoiders(), this.getAvoid(), null, \"avoiders\", null, 0, -1, Detector.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(driveUntilEClass, DriveUntil.class, \"DriveUntil\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEAttribute(getDriveUntil_Speed(), this.getSpeed(), \"speed\", null, 0, 1, DriveUntil.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEAttribute(getDriveUntil_Color(), this.getColor(), \"color\", null, 0, 1, DriveUntil.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEAttribute(getDriveUntil_Object(), this.getObject(), \"object\", null, 0, 1, DriveUntil.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(investigateEClass, Investigate.class, \"Investigate\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEAttribute(getInvestigate_Speed(), this.getSpeed(), \"speed\", null, 0, 1, Investigate.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(speakEClass, Speak.class, \"Speak\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEAttribute(getSpeak_Text(), ecorePackage.getEString(), \"text\", null, 0, 1, Speak.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(followLineEClass, FollowLine.class, \"FollowLine\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEAttribute(getFollowLine_Distance(), ecorePackage.getEInt(), \"distance\", null, 0, 1, FollowLine.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(avoidEClass, Avoid.class, \"Avoid\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEAttribute(getAvoid_Color(), this.getColor(), \"color\", null, 0, 1, Avoid.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEAttribute(getAvoid_Object(), this.getObject(), \"object\", null, 0, 1, Avoid.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEReference(getAvoid_DriveActions(), this.getDriveAction(), null, \"driveActions\", null, 0, -1, Avoid.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(driveActionEClass, DriveAction.class, \"DriveAction\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\n initEClass(moveBackEClass, MoveBack.class, \"MoveBack\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEAttribute(getMoveBack_Meters(), ecorePackage.getEInt(), \"meters\", null, 0, 1, MoveBack.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(turnLeftEClass, TurnLeft.class, \"TurnLeft\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEAttribute(getTurnLeft_Degrees(), ecorePackage.getEInt(), \"degrees\", null, 0, 1, TurnLeft.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(turnRightEClass, TurnRight.class, \"TurnRight\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEAttribute(getTurnRight_Degrees(), ecorePackage.getEInt(), \"degrees\", null, 0, 1, TurnRight.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n // Initialize enums and add enum literals\n initEEnum(objectEEnum, mars.ru.des.robot.taskDSL.Object.class, \"Object\");\n addEEnumLiteral(objectEEnum, mars.ru.des.robot.taskDSL.Object.ROCK);\n addEEnumLiteral(objectEEnum, mars.ru.des.robot.taskDSL.Object.LAKE);\n\n initEEnum(speedEEnum, Speed.class, \"Speed\");\n addEEnumLiteral(speedEEnum, Speed.FAST);\n addEEnumLiteral(speedEEnum, Speed.NORMAL);\n addEEnumLiteral(speedEEnum, Speed.SLOW);\n\n initEEnum(colorEEnum, Color.class, \"Color\");\n addEEnumLiteral(colorEEnum, Color.RED);\n addEEnumLiteral(colorEEnum, Color.GREEN);\n addEEnumLiteral(colorEEnum, Color.BLUE);\n\n // Create resource\n createResource(eNS_URI);\n }", "title": "" }, { "docid": "424601a2f537202e2cd36040bcf6c0dc", "score": "0.62517935", "text": "public void initializePackageContents() {\n\t\tif (isInitialized) return;\n\t\tisInitialized = true;\n\n\t\t// Initialize package\n\t\tsetName(eNAME);\n\t\tsetNsPrefix(eNS_PREFIX);\n\t\tsetNsURI(eNS_URI);\n\n\t\t// Obtain other dependent packages\n\t\tMetamodelPackage theMetamodelPackage = (MetamodelPackage)EPackage.Registry.INSTANCE.getEPackage(MetamodelPackage.eNS_URI);\n\n\t\t// Create type parameters\n\n\t\t// Set bounds for type parameters\n\n\t\t// Add supertypes to classes\n\t\tlineElementEClass.getESuperTypes().add(this.getVisualElement());\n\t\trectangleElementEClass.getESuperTypes().add(this.getVisualElement());\n\t\tconnectorElementEClass.getESuperTypes().add(this.getLineElement());\n\t\tmodelElementEClass.getESuperTypes().add(this.getVisualElement());\n\t\tcompartmentElementEClass.getESuperTypes().add(this.getRectangleElement());\n\t\ttransitionElementEClass.getESuperTypes().add(this.getConnectorElement());\n\n\t\t// Initialize classes and features; add operations and parameters\n\t\tinitEClass(visualElementEClass, VisualElement.class, \"VisualElement\", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\n\t\tinitEClass(lineElementEClass, LineElement.class, \"LineElement\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getLineElement_Style(), ecorePackage.getEInt(), \"style\", \"0\", 0, 1, LineElement.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(rectangleElementEClass, RectangleElement.class, \"RectangleElement\", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getRectangleElement_Color(), ecorePackage.getEInt(), \"color\", \"0\", 0, 1, RectangleElement.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getRectangleElement_X(), ecorePackage.getEInt(), \"x\", \"0\", 0, 1, RectangleElement.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getRectangleElement_Y(), ecorePackage.getEInt(), \"y\", \"0\", 0, 1, RectangleElement.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getRectangleElement_Width(), ecorePackage.getEInt(), \"width\", \"0\", 0, 1, RectangleElement.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getRectangleElement_Height(), ecorePackage.getEInt(), \"height\", \"0\", 0, 1, RectangleElement.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(connectorElementEClass, ConnectorElement.class, \"ConnectorElement\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\n\t\tinitEClass(canvasPackageEClass, CanvasPackage.class, \"CanvasPackage\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getCanvasPackage_ModelElements(), this.getModelElement(), this.getModelElement_Canvas(), \"modelElements\", null, 0, -1, CanvasPackage.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getCanvasPackage_Metamodel(), theMetamodelPackage.getPackage(), null, \"metamodel\", null, 0, 1, CanvasPackage.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(modelElementEClass, ModelElement.class, \"ModelElement\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getModelElement_Model(), theMetamodelPackage.getModel(), null, \"model\", null, 0, 1, ModelElement.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getModelElement_CompartmentElements(), this.getCompartmentElement(), this.getCompartmentElement_ModelElement(), \"compartmentElements\", null, 0, -1, ModelElement.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getModelElement_TransitionElements(), this.getTransitionElement(), this.getTransitionElement_ModelElement(), \"transitionElements\", null, 0, -1, ModelElement.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getModelElement_Canvas(), this.getCanvasPackage(), this.getCanvasPackage_ModelElements(), \"canvas\", null, 0, 1, ModelElement.class, IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tEOperation op = addEOperation(modelElementEClass, null, \"addCompartment\", 0, 1, IS_UNIQUE, IS_ORDERED);\n\t\taddEParameter(op, this.getCompartmentElement(), \"compartment\", 0, 1, IS_UNIQUE, IS_ORDERED);\n\n\t\top = addEOperation(modelElementEClass, null, \"removeCompartment\", 0, 1, IS_UNIQUE, IS_ORDERED);\n\t\taddEParameter(op, this.getCompartmentElement(), \"compartment\", 0, 1, IS_UNIQUE, IS_ORDERED);\n\n\t\tinitEClass(compartmentElementEClass, CompartmentElement.class, \"CompartmentElement\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getCompartmentElement_Compartment(), theMetamodelPackage.getCompartment(), null, \"compartment\", null, 0, 1, CompartmentElement.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getCompartmentElement_ModelElement(), this.getModelElement(), this.getModelElement_CompartmentElements(), \"modelElement\", null, 0, 1, CompartmentElement.class, IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\taddEOperation(compartmentElementEClass, this.getTransitionElement(), \"getSourceTransitions\", 0, -1, IS_UNIQUE, IS_ORDERED);\n\n\t\taddEOperation(compartmentElementEClass, this.getTransitionElement(), \"getTargetTransitions\", 0, -1, IS_UNIQUE, IS_ORDERED);\n\n\t\taddEOperation(compartmentElementEClass, ecorePackage.getEBoolean(), \"isInherited\", 0, 1, IS_UNIQUE, IS_ORDERED);\n\n\t\tinitEClass(transitionElementEClass, TransitionElement.class, \"TransitionElement\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getTransitionElement_Source(), this.getCompartmentElement(), null, \"source\", null, 0, 1, TransitionElement.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getTransitionElement_Target(), this.getCompartmentElement(), null, \"target\", null, 0, 1, TransitionElement.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getTransitionElement_Transition(), theMetamodelPackage.getTransition(), null, \"transition\", null, 0, 1, TransitionElement.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getTransitionElement_ModelElement(), this.getModelElement(), this.getModelElement_TransitionElements(), \"modelElement\", null, 0, 1, TransitionElement.class, IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\t// Create resource\n\t\tcreateResource(eNS_URI);\n\t}", "title": "" }, { "docid": "7cd6f14efc93d7d280ea4cef52a0cc6a", "score": "0.62311494", "text": "public void initializePackageContents() {\n\t\tif (isInitialized) return;\n\t\tisInitialized = true;\n\n\t\t// Initialize package\n\t\tsetName(eNAME);\n\t\tsetNsPrefix(eNS_PREFIX);\n\t\tsetNsURI(eNS_URI);\n\n\t\t// Obtain other dependent packages\n\t\tRESTfulServicePSMPackage theRESTfulServicePSMPackage = (RESTfulServicePSMPackage)EPackage.Registry.INSTANCE.getEPackage(RESTfulServicePSMPackage.eNS_URI);\n\t\tXMLTypePackage theXMLTypePackage = (XMLTypePackage)EPackage.Registry.INSTANCE.getEPackage(XMLTypePackage.eNS_URI);\n\n\t\t// Create type parameters\n\n\t\t// Set bounds for type parameters\n\n\t\t// Add supertypes to classes\n\t\tannHTTPActivityEClass.getESuperTypes().add(this.getAnnotatedElement());\n\t\tannPSMComponentPropertyEClass.getESuperTypes().add(this.getAnnotatedElement());\n\t\tannJPAControllerEClass.getESuperTypes().add(this.getAnnotatedElement());\n\t\tannHTTPActivityHandlerEClass.getESuperTypes().add(this.getAnnotatedElement());\n\t\tannJavaResourceModelEClass.getESuperTypes().add(this.getAnnotatedElement());\n\t\tannJavaResourceModelManagerEClass.getESuperTypes().add(this.getAnnotatedElement());\n\t\tannJavaAlgoResourceModelEClass.getESuperTypes().add(this.getAnnotatedElement());\n\t\tauthorizationSubjectEClass.getESuperTypes().add(this.getAnnotation());\n\t\tauthorizableResourceEClass.getESuperTypes().add(this.getAnnotation());\n\t\tauthorizationPerformerEClass.getESuperTypes().add(this.getAnnotation());\n\t\tauthorizationDataHandlerEClass.getESuperTypes().add(this.getAnnotation());\n\t\tauthorizationPolicyEvaluatorEClass.getESuperTypes().add(this.getAnnotation());\n\t\tnewPropertyEClass.getESuperTypes().add(this.getAnnotation());\n\n\t\t// Initialize classes, features, and operations; add parameters\n\t\tinitEClass(annotationModelEClass, AnnotationModel.class, \"AnnotationModel\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getAnnotationModel_HasAnnotation(), this.getAnnotation(), null, \"hasAnnotation\", null, 1, -1, AnnotationModel.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getAnnotationModel_HasAnnotatedElement(), this.getAnnotatedElement(), null, \"hasAnnotatedElement\", null, 1, -1, AnnotationModel.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getAnnotationModel_Name(), ecorePackage.getEString(), \"name\", null, 0, 1, AnnotationModel.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(annotationEClass, Annotation.class, \"Annotation\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\n\t\tinitEClass(annotatedElementEClass, AnnotatedElement.class, \"AnnotatedElement\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\n\t\tinitEClass(annHTTPActivityEClass, AnnHTTPActivity.class, \"AnnHTTPActivity\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getAnnHTTPActivity_AnnotatesHTTPActivity(), theRESTfulServicePSMPackage.getHTTPActivity(), null, \"annotatesHTTPActivity\", null, 1, 1, AnnHTTPActivity.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(annPSMComponentPropertyEClass, AnnPSMComponentProperty.class, \"AnnPSMComponentProperty\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getAnnPSMComponentProperty_AnnotatesPSMComponentProperty(), theRESTfulServicePSMPackage.getPSMComponentProperty(), null, \"annotatesPSMComponentProperty\", null, 0, 1, AnnPSMComponentProperty.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(annJPAControllerEClass, AnnJPAController.class, \"AnnJPAController\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getAnnJPAController_AnnotatesJPAController(), theRESTfulServicePSMPackage.getHibernateController(), null, \"annotatesJPAController\", null, 0, 1, AnnJPAController.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(annHTTPActivityHandlerEClass, AnnHTTPActivityHandler.class, \"AnnHTTPActivityHandler\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getAnnHTTPActivityHandler_AnnotatesHTTPActivityHandler(), theRESTfulServicePSMPackage.getHTTPActivityHandler(), null, \"annotatesHTTPActivityHandler\", null, 0, 1, AnnHTTPActivityHandler.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(annJavaResourceModelEClass, AnnJavaResourceModel.class, \"AnnJavaResourceModel\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getAnnJavaResourceModel_AnnotatesJavaResourceModel(), theRESTfulServicePSMPackage.getJavaResourceModel(), null, \"annotatesJavaResourceModel\", null, 0, 1, AnnJavaResourceModel.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(annJavaResourceModelManagerEClass, AnnJavaResourceModelManager.class, \"AnnJavaResourceModelManager\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getAnnJavaResourceModelManager_AnnotatesJavaResourceModelManager(), theRESTfulServicePSMPackage.getJavaResourceModelManager(), null, \"annotatesJavaResourceModelManager\", null, 0, 1, AnnJavaResourceModelManager.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(annJavaAlgoResourceModelEClass, AnnJavaAlgoResourceModel.class, \"AnnJavaAlgoResourceModel\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getAnnJavaAlgoResourceModel_AnnotatesJavaLagoResourceModel(), theRESTfulServicePSMPackage.getJavaAlgoResourceModel(), null, \"annotatesJavaLagoResourceModel\", null, 0, 1, AnnJavaAlgoResourceModel.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(authorizationSubjectEClass, AuthorizationSubject.class, \"AuthorizationSubject\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getAuthorizationSubject_IsAuthorizationSubject(), this.getAnnJavaResourceModel(), null, \"isAuthorizationSubject\", null, 1, 1, AuthorizationSubject.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(authorizableResourceEClass, AuthorizableResource.class, \"AuthorizableResource\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getAuthorizableResource_IsAuthorizableAlgoModel(), this.getAnnJavaAlgoResourceModel(), null, \"isAuthorizableAlgoModel\", null, 0, 1, AuthorizableResource.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getAuthorizableResource_IsAuthorizableResourceModel(), this.getAnnJavaResourceModel(), null, \"isAuthorizableResourceModel\", null, 0, 1, AuthorizableResource.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getAuthorizableResource_IsAuthorizableModelManager(), this.getAnnJavaResourceModelManager(), null, \"isAuthorizableModelManager\", null, 0, 1, AuthorizableResource.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getAuthorizableResource_HasAuthorizationPerformer(), this.getAuthorizationPerformer(), null, \"hasAuthorizationPerformer\", null, 1, 1, AuthorizableResource.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getAuthorizableResource_HasResourceAccessPolicySet(), this.getResourceAccessPolicySet(), null, \"hasResourceAccessPolicySet\", null, 1, 1, AuthorizableResource.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getAuthorizableResource_BTrackOwnership(), ecorePackage.getEBoolean(), \"bTrackOwnership\", null, 1, 1, AuthorizableResource.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(authorizationPerformerEClass, AuthorizationPerformer.class, \"AuthorizationPerformer\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getAuthorizationPerformer_UsesAuthorizationPolicyEvaluator(), this.getAuthorizationPolicyEvaluator(), null, \"usesAuthorizationPolicyEvaluator\", null, 1, 1, AuthorizationPerformer.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getAuthorizationPerformer_IsAuthorizationPerformer(), this.getAnnHTTPActivityHandler(), null, \"isAuthorizationPerformer\", null, 1, -1, AuthorizationPerformer.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(authorizationDataHandlerEClass, AuthorizationDataHandler.class, \"AuthorizationDataHandler\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getAuthorizationDataHandler_IsAuthorizationDataHandler(), this.getAnnJPAController(), null, \"isAuthorizationDataHandler\", null, 1, 1, AuthorizationDataHandler.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(authorizationPolicyEvaluatorEClass, AuthorizationPolicyEvaluator.class, \"AuthorizationPolicyEvaluator\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getAuthorizationPolicyEvaluator_Accesses(), this.getAuthorizationDataHandler(), null, \"accesses\", null, 1, 1, AuthorizationPolicyEvaluator.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(resourceAccessPolicySetEClass, ResourceAccessPolicySet.class, \"ResourceAccessPolicySet\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getResourceAccessPolicySet_HasResourceAccessPolicySet(), this.getResourceAccessPolicySet(), null, \"hasResourceAccessPolicySet\", null, 0, -1, ResourceAccessPolicySet.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getResourceAccessPolicySet_PolicyCombiningAlgorithm(), this.getCombiningAlgorithm(), \"policyCombiningAlgorithm\", null, 1, 1, ResourceAccessPolicySet.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getResourceAccessPolicySet_HasResourceAccessPolicy(), this.getResourceAccessPolicy(), null, \"hasResourceAccessPolicy\", null, 1, -1, ResourceAccessPolicySet.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(resourceAccessPolicyEClass, ResourceAccessPolicy.class, \"ResourceAccessPolicy\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getResourceAccessPolicy_RuleCombiningAlgorithm(), this.getCombiningAlgorithm(), \"ruleCombiningAlgorithm\", null, 1, 1, ResourceAccessPolicy.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getResourceAccessPolicy_HasResourceAccessRule(), this.getResourceAccessRule(), null, \"hasResourceAccessRule\", null, 1, -1, ResourceAccessPolicy.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getResourceAccessPolicy_HasApplyCondition(), this.getCondition(), null, \"hasApplyCondition\", null, 0, -1, ResourceAccessPolicy.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(resourceAccessRuleEClass, ResourceAccessRule.class, \"ResourceAccessRule\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getResourceAccessRule_RuleType(), this.getRuleType(), \"ruleType\", null, 1, 1, ResourceAccessRule.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getResourceAccessRule_HasMatchCondition(), this.getCondition(), null, \"hasMatchCondition\", null, 1, -1, ResourceAccessRule.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getResourceAccessRule_HasAllowedAction(), this.getAllowedAction(), null, \"hasAllowedAction\", null, 1, -1, ResourceAccessRule.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(conditionEClass, Condition.class, \"Condition\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getCondition_Operator(), this.getOperator(), \"operator\", \"UNDEFINED\", 1, 1, Condition.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getCondition_HasLeftSideOperand(), this.getAttribute(), null, \"hasLeftSideOperand\", null, 1, 1, Condition.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getCondition_HasRightSideOperand(), this.getAttribute(), null, \"hasRightSideOperand\", null, 1, 1, Condition.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(attributeEClass, Attribute.class, \"Attribute\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getAttribute_AttributeCategory(), this.getAttributeCategory(), \"attributeCategory\", null, 1, 1, Attribute.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getAttribute_Value(), ecorePackage.getEString(), \"value\", null, 0, -1, Attribute.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getAttribute_IsAttributeExistingProperty(), this.getAnnPSMComponentProperty(), null, \"isAttributeExistingProperty\", null, 0, 1, Attribute.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getAttribute_IsAttributeNewProperty(), this.getNewProperty(), null, \"isAttributeNewProperty\", null, 0, 1, Attribute.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(allowedActionEClass, AllowedAction.class, \"AllowedAction\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getAllowedAction_IsAllowedAction(), this.getAnnHTTPActivity(), null, \"isAllowedAction\", null, 1, 1, AllowedAction.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(newPropertyEClass, NewProperty.class, \"NewProperty\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getNewProperty_Name(), ecorePackage.getEString(), \"name\", null, 1, 1, NewProperty.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getNewProperty_Type(), ecorePackage.getEString(), \"type\", null, 1, 1, NewProperty.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getNewProperty_BIsUnique(), theXMLTypePackage.getBoolean(), \"bIsUnique\", null, 1, 1, NewProperty.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getNewProperty_BelongsToResource(), this.getAnnJavaResourceModel(), null, \"belongsToResource\", null, 1, 1, NewProperty.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\t// Initialize enums and add enum literals\n\t\tinitEEnum(operatorEEnum, Operator.class, \"Operator\");\n\t\taddEEnumLiteral(operatorEEnum, Operator.EQUAL);\n\t\taddEEnumLiteral(operatorEEnum, Operator.GREATER_THAN);\n\t\taddEEnumLiteral(operatorEEnum, Operator.LESS_THAN);\n\t\taddEEnumLiteral(operatorEEnum, Operator.GREATER_THAN_OR_EQUAL);\n\t\taddEEnumLiteral(operatorEEnum, Operator.LESS_THAN_OR_EQUAL);\n\t\taddEEnumLiteral(operatorEEnum, Operator.NOT_EQUAL);\n\t\taddEEnumLiteral(operatorEEnum, Operator.SUBSET);\n\t\taddEEnumLiteral(operatorEEnum, Operator.NOT_SUBSET);\n\t\taddEEnumLiteral(operatorEEnum, Operator.SET_CONTAINS);\n\t\taddEEnumLiteral(operatorEEnum, Operator.SET_NOT_CONTAINS);\n\t\taddEEnumLiteral(operatorEEnum, Operator.REGEX);\n\t\taddEEnumLiteral(operatorEEnum, Operator.UNDEFINED);\n\n\t\tinitEEnum(combiningAlgorithmEEnum, CombiningAlgorithm.class, \"CombiningAlgorithm\");\n\t\taddEEnumLiteral(combiningAlgorithmEEnum, CombiningAlgorithm.DENY_OVERRIDES);\n\t\taddEEnumLiteral(combiningAlgorithmEEnum, CombiningAlgorithm.PERMIT_OVERRIDES);\n\t\taddEEnumLiteral(combiningAlgorithmEEnum, CombiningAlgorithm.DENY_UNLESS_PERMIT);\n\t\taddEEnumLiteral(combiningAlgorithmEEnum, CombiningAlgorithm.PERMIT_UNLESS_DENY);\n\n\t\tinitEEnum(attributeCategoryEEnum, AttributeCategory.class, \"AttributeCategory\");\n\t\taddEEnumLiteral(attributeCategoryEEnum, AttributeCategory.ACCESS_SUBJECT);\n\t\taddEEnumLiteral(attributeCategoryEEnum, AttributeCategory.ACCESSED_RESOURCE);\n\t\taddEEnumLiteral(attributeCategoryEEnum, AttributeCategory.PARENT_RESOURCE);\n\t\taddEEnumLiteral(attributeCategoryEEnum, AttributeCategory.CHILD_RESOURCE);\n\t\taddEEnumLiteral(attributeCategoryEEnum, AttributeCategory.INCLUDED_RESOURCE);\n\t\taddEEnumLiteral(attributeCategoryEEnum, AttributeCategory.CONSTANT);\n\n\t\tinitEEnum(ruleTypeEEnum, RuleType.class, \"RuleType\");\n\t\taddEEnumLiteral(ruleTypeEEnum, RuleType.PERMIT);\n\t\taddEEnumLiteral(ruleTypeEEnum, RuleType.DENY);\n\n\t\t// Create resource\n\t\tcreateResource(eNS_URI);\n\t}", "title": "" }, { "docid": "10a88630edc26f7ef197e63f45147d6f", "score": "0.6226319", "text": "public void initializePackageContents() {\n\t\tif (isInitialized) return;\n\t\tisInitialized = true;\n\n\t\t// Initialize package\n\t\tsetName(eNAME);\n\t\tsetNsPrefix(eNS_PREFIX);\n\t\tsetNsURI(eNS_URI);\n\n\t\t// Obtain other dependent packages\n\t\tDomainLNsPackage theDomainLNsPackage = (DomainLNsPackage)EPackage.Registry.INSTANCE.getEPackage(DomainLNsPackage.eNS_URI);\n\t\tDataclassesPackage theDataclassesPackage = (DataclassesPackage)EPackage.Registry.INSTANCE.getEPackage(DataclassesPackage.eNS_URI);\n\n\t\t// Create type parameters\n\n\t\t// Set bounds for type parameters\n\n\t\t// Add supertypes to classes\n\t\tgroupCEClass.getESuperTypes().add(theDomainLNsPackage.getDomainLN());\n\t\tcalhEClass.getESuperTypes().add(this.getGroupC());\n\t\tciloEClass.getESuperTypes().add(this.getGroupC());\n\t\tccgrEClass.getESuperTypes().add(this.getGroupC());\n\t\tcpowEClass.getESuperTypes().add(this.getGroupC());\n\t\tcswiEClass.getESuperTypes().add(this.getGroupC());\n\n\t\t// Initialize classes, features, and operations; add parameters\n\t\tinitEClass(groupCEClass, GroupC.class, \"GroupC\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\n\t\tinitEClass(calhEClass, substationStandard.LNNodes.LNGroupC.CALH.class, \"CALH\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getCALH_GrAlm(), theDataclassesPackage.getSPS(), null, \"GrAlm\", null, 1, 1, substationStandard.LNNodes.LNGroupC.CALH.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getCALH_GrWrn(), theDataclassesPackage.getSPS(), null, \"GrWrn\", null, 1, 1, substationStandard.LNNodes.LNGroupC.CALH.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getCALH_AlmLstOv(), theDataclassesPackage.getSPS(), null, \"AlmLstOv\", null, 1, 1, substationStandard.LNNodes.LNGroupC.CALH.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(ciloEClass, substationStandard.LNNodes.LNGroupC.CILO.class, \"CILO\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getCILO_EnaOpn(), theDataclassesPackage.getSPS(), null, \"EnaOpn\", null, 1, 1, substationStandard.LNNodes.LNGroupC.CILO.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getCILO_EnaCls(), theDataclassesPackage.getSPS(), null, \"EnaCls\", null, 1, 1, substationStandard.LNNodes.LNGroupC.CILO.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(ccgrEClass, substationStandard.LNNodes.LNGroupC.CCGR.class, \"CCGR\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getCCGR_EEHealth(), theDataclassesPackage.getING(), null, \"EEHealth\", null, 1, 1, substationStandard.LNNodes.LNGroupC.CCGR.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getCCGR_EEName(), theDataclassesPackage.getDPL(), null, \"EEName\", null, 1, 1, substationStandard.LNNodes.LNGroupC.CCGR.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getCCGR_OpTmh(), theDataclassesPackage.getINS(), null, \"OpTmh\", null, 1, 1, substationStandard.LNNodes.LNGroupC.CCGR.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getCCGR_EnvTmp(), theDataclassesPackage.getMV(), null, \"EnvTmp\", null, 1, 1, substationStandard.LNNodes.LNGroupC.CCGR.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getCCGR_OilTmpIn(), theDataclassesPackage.getMV(), null, \"OilTmpIn\", null, 1, 1, substationStandard.LNNodes.LNGroupC.CCGR.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getCCGR_OilTmpOut(), theDataclassesPackage.getMV(), null, \"OilTmpOut\", null, 1, 1, substationStandard.LNNodes.LNGroupC.CCGR.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getCCGR_OilMotA(), theDataclassesPackage.getMV(), null, \"OilMotA\", null, 1, 1, substationStandard.LNNodes.LNGroupC.CCGR.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getCCGR_FanFlw(), theDataclassesPackage.getMV(), null, \"FanFlw\", null, 1, 1, substationStandard.LNNodes.LNGroupC.CCGR.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getCCGR_FanA(), theDataclassesPackage.getMV(), null, \"FanA\", null, 1, 1, substationStandard.LNNodes.LNGroupC.CCGR.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getCCGR_CECtl(), theDataclassesPackage.getSPC(), null, \"CECtl\", null, 1, 1, substationStandard.LNNodes.LNGroupC.CCGR.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getCCGR_PmpCtlGen(), theDataclassesPackage.getINC(), null, \"PmpCtlGen\", null, 1, 1, substationStandard.LNNodes.LNGroupC.CCGR.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getCCGR_PmpCtl(), theDataclassesPackage.getINC(), null, \"PmpCtl\", null, 1, 1, substationStandard.LNNodes.LNGroupC.CCGR.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getCCGR_FanCtlGen(), theDataclassesPackage.getINC(), null, \"FanCtlGen\", null, 1, 1, substationStandard.LNNodes.LNGroupC.CCGR.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getCCGR_FanCtl(), theDataclassesPackage.getINC(), null, \"FanCtl\", null, 1, 1, substationStandard.LNNodes.LNGroupC.CCGR.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getCCGR_Auto(), theDataclassesPackage.getSPS(), null, \"Auto\", null, 1, 1, substationStandard.LNNodes.LNGroupC.CCGR.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getCCGR_FanOvCur(), theDataclassesPackage.getSPS(), null, \"FanOvCur\", null, 1, 1, substationStandard.LNNodes.LNGroupC.CCGR.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getCCGR_PmpOvCur(), theDataclassesPackage.getSPS(), null, \"PmpOvCur\", null, 1, 1, substationStandard.LNNodes.LNGroupC.CCGR.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getCCGR_PmpAlm(), theDataclassesPackage.getSPS(), null, \"PmpAlm\", null, 1, 1, substationStandard.LNNodes.LNGroupC.CCGR.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getCCGR_OilTmpSet(), theDataclassesPackage.getASG(), null, \"OilTmpSet\", null, 1, 1, substationStandard.LNNodes.LNGroupC.CCGR.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(cpowEClass, substationStandard.LNNodes.LNGroupC.CPOW.class, \"CPOW\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getCPOW_TmExc(), theDataclassesPackage.getSPS(), null, \"TmExc\", null, 1, 1, substationStandard.LNNodes.LNGroupC.CPOW.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getCPOW_StrPOW(), theDataclassesPackage.getSPS(), null, \"StrPOW\", null, 1, 1, substationStandard.LNNodes.LNGroupC.CPOW.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getCPOW_OpOpn(), theDataclassesPackage.getACT(), null, \"OpOpn\", null, 1, 1, substationStandard.LNNodes.LNGroupC.CPOW.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getCPOW_OpCls(), theDataclassesPackage.getACT(), null, \"OpCls\", null, 1, 1, substationStandard.LNNodes.LNGroupC.CPOW.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getCPOW_MaxDlTmms(), theDataclassesPackage.getING(), null, \"MaxDlTmms\", null, 1, 1, substationStandard.LNNodes.LNGroupC.CPOW.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(cswiEClass, substationStandard.LNNodes.LNGroupC.CSWI.class, \"CSWI\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getCSWI_Loc(), theDataclassesPackage.getSPS(), null, \"Loc\", null, 1, 1, substationStandard.LNNodes.LNGroupC.CSWI.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getCSWI_OpCntRs(), theDataclassesPackage.getINC(), null, \"OpCntRs\", null, 1, 1, substationStandard.LNNodes.LNGroupC.CSWI.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getCSWI_Pos(), theDataclassesPackage.getDPC(), null, \"Pos\", null, 1, 1, substationStandard.LNNodes.LNGroupC.CSWI.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getCSWI_PosA(), theDataclassesPackage.getDPC(), null, \"PosA\", null, 1, 1, substationStandard.LNNodes.LNGroupC.CSWI.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getCSWI_PosB(), theDataclassesPackage.getDPC(), null, \"PosB\", null, 1, 1, substationStandard.LNNodes.LNGroupC.CSWI.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getCSWI_PosC(), theDataclassesPackage.getDPC(), null, \"PosC\", null, 1, 1, substationStandard.LNNodes.LNGroupC.CSWI.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getCSWI_OpOpn(), theDataclassesPackage.getACT(), null, \"OpOpn\", null, 1, 1, substationStandard.LNNodes.LNGroupC.CSWI.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getCSWI_OpCls(), theDataclassesPackage.getACT(), null, \"OpCls\", null, 1, 1, substationStandard.LNNodes.LNGroupC.CSWI.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t}", "title": "" }, { "docid": "04002bc937bf6bfbfe1ca061bf5da8cb", "score": "0.62225825", "text": "public void initializePackageContents()\n {\n if (isInitialized) return;\n isInitialized = true;\n\n // Initialize package\n setName(eNAME);\n setNsPrefix(eNS_PREFIX);\n setNsURI(eNS_URI);\n\n // Create type parameters\n\n // Set bounds for type parameters\n\n // Add supertypes to classes\n staticEntityEClass.getESuperTypes().add(this.getElement());\n dynamicEntityEClass.getESuperTypes().add(this.getElement());\n regularAttributeEClass.getESuperTypes().add(this.getAttribute());\n positionAttributeEClass.getESuperTypes().add(this.getAttribute());\n\n // Initialize classes and features; add operations and parameters\n initEClass(sceneEClass, Scene.class, \"Scene\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEAttribute(getScene_Name(), ecorePackage.getEString(), \"name\", null, 0, 1, Scene.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEReference(getScene_Elements(), this.getElement(), null, \"elements\", null, 0, -1, Scene.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(elementEClass, Element.class, \"Element\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEAttribute(getElement_Type(), ecorePackage.getEString(), \"type\", null, 0, 1, Element.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEAttribute(getElement_Name(), ecorePackage.getEString(), \"name\", null, 0, 1, Element.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEReference(getElement_Key(), this.getAttribute(), null, \"key\", null, 0, 1, Element.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEReference(getElement_IsA(), this.getElement(), null, \"isA\", null, 0, -1, Element.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEReference(getElement_Attributes(), this.getAttribute(), null, \"attributes\", null, 0, -1, Element.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(staticEntityEClass, StaticEntity.class, \"StaticEntity\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEReference(getStaticEntity_Features(), this.getDynamicEntity(), null, \"features\", null, 0, -1, StaticEntity.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(dynamicEntityEClass, DynamicEntity.class, \"DynamicEntity\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\n initEClass(attributeEClass, Attribute.class, \"Attribute\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEAttribute(getAttribute_Name(), ecorePackage.getEString(), \"name\", null, 0, 1, Attribute.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEAttribute(getAttribute_Type(), this.getAttributeType(), \"type\", null, 0, 1, Attribute.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEAttribute(getAttribute_IsTransient(), ecorePackage.getEBoolean(), \"isTransient\", null, 0, 1, Attribute.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(regularAttributeEClass, RegularAttribute.class, \"RegularAttribute\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEAttribute(getRegularAttribute_Value(), ecorePackage.getEString(), \"value\", null, 0, -1, RegularAttribute.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(positionAttributeEClass, PositionAttribute.class, \"PositionAttribute\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEAttribute(getPositionAttribute_X(), ecorePackage.getEInt(), \"x\", null, 0, 1, PositionAttribute.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEAttribute(getPositionAttribute_Y(), ecorePackage.getEInt(), \"y\", null, 0, 1, PositionAttribute.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n // Initialize enums and add enum literals\n initEEnum(attributeTypeEEnum, AttributeType.class, \"AttributeType\");\n addEEnumLiteral(attributeTypeEEnum, AttributeType.RANGE);\n addEEnumLiteral(attributeTypeEEnum, AttributeType.VALUE);\n\n // Create resource\n createResource(eNS_URI);\n }", "title": "" }, { "docid": "90d0b8f8e833828c1871dbcf86a76993", "score": "0.62107366", "text": "public void initializePackageContents() {\n\t\tif (isInitialized) return;\n\t\tisInitialized = true;\n\n\t\t// Initialize package\n\t\tsetName(eNAME);\n\t\tsetNsPrefix(eNS_PREFIX);\n\t\tsetNsURI(eNS_URI);\n\n\t\t// Obtain other dependent packages\n\t\tCapellacorePackage theCapellacorePackage = (CapellacorePackage)EPackage.Registry.INSTANCE.getEPackage(CapellacorePackage.eNS_URI);\n\t\tModellingcorePackage theModellingcorePackage = (ModellingcorePackage)EPackage.Registry.INSTANCE.getEPackage(ModellingcorePackage.eNS_URI);\n\n\t\t// Create type parameters\n\n\t\t// Set bounds for type parameters\n\n\t\t// Add supertypes to classes\n\t\trequirementsPkgEClass.getESuperTypes().add(theCapellacorePackage.getStructure());\n\t\trequirementsTraceEClass.getESuperTypes().add(theCapellacorePackage.getTrace());\n\t\trequirementEClass.getESuperTypes().add(theCapellacorePackage.getNamespace());\n\t\tsystemFunctionalInterfaceRequirementEClass.getESuperTypes().add(this.getRequirement());\n\t\tsystemFunctionalRequirementEClass.getESuperTypes().add(this.getRequirement());\n\t\tsystemNonFunctionalInterfaceRequirementEClass.getESuperTypes().add(this.getRequirement());\n\t\tsystemNonFunctionalRequirementEClass.getESuperTypes().add(this.getRequirement());\n\t\tsystemUserRequirementEClass.getESuperTypes().add(this.getRequirement());\n\n\t\t// Initialize classes and features; add operations and parameters\n\t\tinitEClass(requirementsPkgEClass, RequirementsPkg.class, \"RequirementsPkg\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getRequirementsPkg_AdditionalInformation(), ecorePackage.getEString(), \"additionalInformation\", null, 0, 1, RequirementsPkg.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getRequirementsPkg_Level(), ecorePackage.getEString(), \"level\", null, 0, 1, RequirementsPkg.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getRequirementsPkg_OwnedRequirements(), this.getRequirement(), null, \"ownedRequirements\", null, 0, -1, RequirementsPkg.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getRequirementsPkg_OwnedRequirementPkgs(), this.getRequirementsPkg(), null, \"ownedRequirementPkgs\", null, 0, -1, RequirementsPkg.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(requirementsTraceEClass, RequirementsTrace.class, \"RequirementsTrace\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getRequirementsTrace_Source(), theModellingcorePackage.getTraceableElement(), null, \"source\", null, 1, 1, RequirementsTrace.class, IS_TRANSIENT, IS_VOLATILE, !IS_CHANGEABLE, !IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getRequirementsTrace_Target(), theModellingcorePackage.getTraceableElement(), null, \"target\", null, 1, 1, RequirementsTrace.class, IS_TRANSIENT, IS_VOLATILE, !IS_CHANGEABLE, !IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(requirementEClass, Requirement.class, \"Requirement\", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getRequirement_IsObsolete(), ecorePackage.getEBoolean(), \"isObsolete\", null, 0, 1, Requirement.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getRequirement_RequirementId(), ecorePackage.getEString(), \"requirementId\", null, 0, 1, Requirement.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getRequirement_AdditionalInformation(), ecorePackage.getEString(), \"additionalInformation\", null, 0, 1, Requirement.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getRequirement_VerificationMethod(), ecorePackage.getEString(), \"verificationMethod\", null, 0, 1, Requirement.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getRequirement_VerificationPhase(), ecorePackage.getEString(), \"verificationPhase\", null, 0, 1, Requirement.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getRequirement_ImplementationVersion(), ecorePackage.getEString(), \"implementationVersion\", null, 0, 1, Requirement.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getRequirement_Feature(), ecorePackage.getEString(), \"feature\", null, 0, 1, Requirement.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getRequirement_RelatedCapellaElements(), theCapellacorePackage.getCapellaElement(), null, \"relatedCapellaElements\", null, 0, -1, Requirement.class, IS_TRANSIENT, IS_VOLATILE, !IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(systemFunctionalInterfaceRequirementEClass, SystemFunctionalInterfaceRequirement.class, \"SystemFunctionalInterfaceRequirement\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\n\t\tinitEClass(systemFunctionalRequirementEClass, SystemFunctionalRequirement.class, \"SystemFunctionalRequirement\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\n\t\tinitEClass(systemNonFunctionalInterfaceRequirementEClass, SystemNonFunctionalInterfaceRequirement.class, \"SystemNonFunctionalInterfaceRequirement\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\n\t\tinitEClass(systemNonFunctionalRequirementEClass, SystemNonFunctionalRequirement.class, \"SystemNonFunctionalRequirement\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\n\t\tinitEClass(systemUserRequirementEClass, SystemUserRequirement.class, \"SystemUserRequirement\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\n\t\t// Create resource\n\t\tcreateResource(eNS_URI);\n\n\t\t// Create annotations\n\t\t// http://www.polarsys.org/kitalpha/dsl/2007/dslfactory\n\t\tcreateDslfactoryAnnotations();\n\t\t// http://www.polarsys.org/kitalpha/ecore/documentation\n\t\tcreateDocumentationAnnotations();\n\t\t// http://www.polarsys.org/capella/semantic\n\t\tcreateSemanticAnnotations();\n\t\t// http://www.polarsys.org/capella/2007/BusinessInformation\n\t\tcreateBusinessInformationAnnotations();\n\t\t// http://www.polarsys.org/capella/MNoE/CapellaLike/Mapping\n\t\tcreateMappingAnnotations();\n\t\t// http://www.polarsys.org/capella/2007/UML2Mapping\n\t\tcreateUML2MappingAnnotations();\n\t\t// http://www.polarsys.org/capella/2007/ImpactAnalysis/Segment\n\t\tcreateSegmentAnnotations();\n\t\t// http://www.polarsys.org/capella/2007/ImpactAnalysis/Ignore\n\t\tcreateIgnoreAnnotations();\n\t\t// http://www.polarsys.org/capella/derived\n\t\tcreateDerivedAnnotations();\n\t}", "title": "" }, { "docid": "f71dffb4d6a6afc0e6e9f7a1921b6db5", "score": "0.62081283", "text": "public void initializePackageContents() {\n\t\tif (isInitialized) return;\n\t\tisInitialized = true;\n\n\t\t// Initialize package\n\t\tsetName(eNAME);\n\t\tsetNsPrefix(eNS_PREFIX);\n\t\tsetNsURI(eNS_URI);\n\n\t\t// Obtain other dependent packages\n\t\tRdfsPackage theRdfsPackage = (RdfsPackage)EPackage.Registry.INSTANCE.getEPackage(RdfsPackage.eNS_URI);\n\n\t\t// Create type parameters\n\n\t\t// Set bounds for type parameters\n\n\t\t// Add supertypes to classes\n\t\towlOntologyEClass.getESuperTypes().add(theRdfsPackage.getOntology());\n\t\towlOntologyPropertyEClass.getESuperTypes().add(theRdfsPackage.getRDFProperty());\n\t\towlClassEClass.getESuperTypes().add(theRdfsPackage.getRDFSClass());\n\t\towlRestrictionEClass.getESuperTypes().add(this.getOWLClass());\n\t\towlObjectPropertyEClass.getESuperTypes().add(this.getProperty());\n\t\tpropertyEClass.getESuperTypes().add(theRdfsPackage.getRDFProperty());\n\t\tindividualEClass.getESuperTypes().add(theRdfsPackage.getRDFSResource());\n\t\towlAllDifferentEClass.getESuperTypes().add(theRdfsPackage.getRDFSResource());\n\t\towlDataRangeEClass.getESuperTypes().add(theRdfsPackage.getRDFSClass());\n\t\towlAnnotationPropertyEClass.getESuperTypes().add(theRdfsPackage.getRDFProperty());\n\t\tenumeratedClassEClass.getESuperTypes().add(this.getOWLClass());\n\t\tintersectionClassEClass.getESuperTypes().add(this.getOWLClass());\n\t\tunionClassEClass.getESuperTypes().add(this.getOWLClass());\n\t\thasValueRestrictionEClass.getESuperTypes().add(this.getOWLRestriction());\n\t\tallValuesFromRestrictionEClass.getESuperTypes().add(this.getOWLRestriction());\n\t\tsomeValuesFromRestrictionEClass.getESuperTypes().add(this.getOWLRestriction());\n\t\tcardinalityRestrictionEClass.getESuperTypes().add(this.getOWLRestriction());\n\t\tmaxCardinalityRestrictionEClass.getESuperTypes().add(this.getOWLRestriction());\n\t\tminCardinalityRestrictionEClass.getESuperTypes().add(this.getOWLRestriction());\n\t\tcomplementClassEClass.getESuperTypes().add(this.getOWLClass());\n\t\towlDatatypePropertyEClass.getESuperTypes().add(this.getProperty());\n\n\t\t// Initialize classes and features; add operations and parameters\n\t\tinitEClass(owlOntologyEClass, OWLOntology.class, \"OWLOntology\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getOWLOntology_OWLBackwardCompatibleWith(), this.getOWLOntology(), null, \"OWLBackwardCompatibleWith\", null, 0, -1, OWLOntology.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getOWLOntology_OWLImports(), this.getOWLOntology(), null, \"OWLImports\", null, 0, -1, OWLOntology.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getOWLOntology_OWLIncompatibleWith(), this.getOWLOntology(), null, \"OWLIncompatibleWith\", null, 0, -1, OWLOntology.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getOWLOntology_OWLPriorVersion(), this.getOWLOntology(), null, \"OWLPriorVersion\", null, 0, -1, OWLOntology.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getOWLOntology_OWLVersionInfo(), theRdfsPackage.getRDFSLiteral(), null, \"OWLVersionInfo\", null, 0, -1, OWLOntology.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(owlOntologyPropertyEClass, OWLOntologyProperty.class, \"OWLOntologyProperty\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\n\t\tinitEClass(owlClassEClass, OWLClass.class, \"OWLClass\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getOWLClass_Deprecated(), ecorePackage.getEBooleanObject(), \"deprecated\", null, 0, 1, OWLClass.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getOWLClass_InvOWLEquivalentClass(), this.getOWLClass(), this.getOWLClass_OWLEquivalentClass(), \"invOWLEquivalentClass\", null, 0, -1, OWLClass.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getOWLClass_OWLEquivalentClass(), this.getOWLClass(), this.getOWLClass_InvOWLEquivalentClass(), \"OWLEquivalentClass\", null, 0, -1, OWLClass.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getOWLClass_OWLDisjointWith(), this.getOWLClass(), this.getOWLClass_InvOWLDisjointWith(), \"OWLDisjointWith\", null, 0, -1, OWLClass.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getOWLClass_InvOWLDisjointWith(), this.getOWLClass(), this.getOWLClass_OWLDisjointWith(), \"invOWLDisjointWith\", null, 0, -1, OWLClass.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getOWLClass_RefByIntersectionClass(), this.getIntersectionClass(), this.getIntersectionClass_OWLIntersectionOf(), \"refByIntersectionClass\", null, 0, -1, OWLClass.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getOWLClass_RefByUnionClass(), this.getUnionClass(), this.getUnionClass_OWLUnionOf(), \"refByUnionClass\", null, 0, -1, OWLClass.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getOWLClass_InvOWLComplementOf(), this.getComplementClass(), this.getComplementClass_OWLComplementOf(), \"invOWLComplementOf\", null, 0, -1, OWLClass.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(owlRestrictionEClass, OWLRestriction.class, \"OWLRestriction\", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getOWLRestriction_OWLOnProperty(), theRdfsPackage.getRDFProperty(), theRdfsPackage.getRDFProperty_RefByRestriction(), \"OWLOnProperty\", null, 1, 1, OWLRestriction.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(owlObjectPropertyEClass, OWLObjectProperty.class, \"OWLObjectProperty\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getOWLObjectProperty_InverseFunctional(), ecorePackage.getEBooleanObject(), \"inverseFunctional\", null, 0, 1, OWLObjectProperty.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getOWLObjectProperty_Symmetric(), ecorePackage.getEBooleanObject(), \"symmetric\", null, 0, 1, OWLObjectProperty.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getOWLObjectProperty_Transitive(), ecorePackage.getEBooleanObject(), \"transitive\", null, 0, 1, OWLObjectProperty.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getOWLObjectProperty_OWLInverseOf(), this.getOWLObjectProperty(), this.getOWLObjectProperty_InvOWLInverseOf(), \"OWLInverseOf\", null, 0, 1, OWLObjectProperty.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getOWLObjectProperty_InvOWLInverseOf(), this.getOWLObjectProperty(), this.getOWLObjectProperty_OWLInverseOf(), \"invOWLInverseOf\", null, 0, -1, OWLObjectProperty.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(propertyEClass, Property.class, \"Property\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getProperty_Deprecated(), ecorePackage.getEBooleanObject(), \"deprecated\", null, 0, 1, Property.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getProperty_Functional(), ecorePackage.getEBooleanObject(), \"functional\", null, 0, 1, Property.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getProperty_OWLEquivalentProperty(), this.getProperty(), this.getProperty_InvOWLEquivalentProperty(), \"OWLEquivalentProperty\", null, 0, -1, Property.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getProperty_InvOWLEquivalentProperty(), this.getProperty(), this.getProperty_OWLEquivalentProperty(), \"invOWLEquivalentProperty\", null, 0, -1, Property.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(individualEClass, Individual.class, \"Individual\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getIndividual_OWLDifferentFrom(), this.getIndividual(), this.getIndividual_InvOWLDifferentFrom(), \"OWLDifferentFrom\", null, 0, -1, Individual.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getIndividual_InvOWLDifferentFrom(), this.getIndividual(), this.getIndividual_OWLDifferentFrom(), \"invOWLDifferentFrom\", null, 0, -1, Individual.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getIndividual_RefByOWLDistinctMembers(), this.getOWLAllDifferent(), this.getOWLAllDifferent_OWLDistinctMembers(), \"refByOWLDistinctMembers\", null, 0, -1, Individual.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getIndividual_OWLSameAs(), this.getIndividual(), this.getIndividual_InvOWLSameAs(), \"OWLSameAs\", null, 0, -1, Individual.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getIndividual_InvOWLSameAs(), this.getIndividual(), this.getIndividual_OWLSameAs(), \"invOWLSameAs\", null, 0, -1, Individual.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getIndividual_DatatypeSlot(), this.getDatatypeSlot(), this.getDatatypeSlot_Individual(), \"datatypeSlot\", null, 0, -1, Individual.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getIndividual_ObjectSlot(), this.getObjectSlot(), this.getObjectSlot_Individual(), \"objectSlot\", null, 0, -1, Individual.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(owlAllDifferentEClass, OWLAllDifferent.class, \"OWLAllDifferent\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getOWLAllDifferent_OWLDistinctMembers(), this.getIndividual(), this.getIndividual_RefByOWLDistinctMembers(), \"OWLDistinctMembers\", null, 2, -1, OWLAllDifferent.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(owlDataRangeEClass, OWLDataRange.class, \"OWLDataRange\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getOWLDataRange_OWLOneOf(), theRdfsPackage.getRDFSLiteral(), null, \"OWLOneOf\", null, 1, -1, OWLDataRange.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(owlAnnotationPropertyEClass, OWLAnnotationProperty.class, \"OWLAnnotationProperty\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\n\t\tinitEClass(datatypeSlotEClass, DatatypeSlot.class, \"DatatypeSlot\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getDatatypeSlot_Individual(), this.getIndividual(), this.getIndividual_DatatypeSlot(), \"Individual\", null, 0, 1, DatatypeSlot.class, IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getDatatypeSlot_Content(), theRdfsPackage.getRDFSLiteral(), theRdfsPackage.getRDFSLiteral_DatatypeSlot(), \"content\", null, 1, -1, DatatypeSlot.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getDatatypeSlot_Property(), this.getOWLDatatypeProperty(), null, \"property\", null, 1, 1, DatatypeSlot.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(objectSlotEClass, ObjectSlot.class, \"ObjectSlot\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getObjectSlot_Individual(), this.getIndividual(), this.getIndividual_ObjectSlot(), \"Individual\", null, 0, 1, ObjectSlot.class, IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getObjectSlot_Content(), this.getIndividual(), null, \"content\", null, 1, -1, ObjectSlot.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getObjectSlot_Property(), this.getOWLObjectProperty(), null, \"property\", null, 1, 1, ObjectSlot.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(enumeratedClassEClass, EnumeratedClass.class, \"EnumeratedClass\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getEnumeratedClass_OWLOneOf(), this.getIndividual(), null, \"OWLOneOf\", null, 0, -1, EnumeratedClass.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(intersectionClassEClass, IntersectionClass.class, \"IntersectionClass\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getIntersectionClass_OWLIntersectionOf(), this.getOWLClass(), this.getOWLClass_RefByIntersectionClass(), \"OWLIntersectionOf\", null, 0, -1, IntersectionClass.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(unionClassEClass, UnionClass.class, \"UnionClass\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getUnionClass_OWLUnionOf(), this.getOWLClass(), this.getOWLClass_RefByUnionClass(), \"OWLUnionOf\", null, 0, -1, UnionClass.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(hasValueRestrictionEClass, HasValueRestriction.class, \"HasValueRestriction\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getHasValueRestriction_OWLHasValue(), theRdfsPackage.getRDFSResource(), null, \"OWLHasValue\", null, 1, 1, HasValueRestriction.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(allValuesFromRestrictionEClass, AllValuesFromRestriction.class, \"AllValuesFromRestriction\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getAllValuesFromRestriction_OWLAllValuesFrom(), theRdfsPackage.getRDFSClass(), theRdfsPackage.getRDFSClass_RefByAVFRestriction(), \"OWLAllValuesFrom\", null, 1, 1, AllValuesFromRestriction.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(someValuesFromRestrictionEClass, SomeValuesFromRestriction.class, \"SomeValuesFromRestriction\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getSomeValuesFromRestriction_OWLSomeValuesFrom(), theRdfsPackage.getRDFSClass(), theRdfsPackage.getRDFSClass_RefBySVFRestriction(), \"OWLSomeValuesFrom\", null, 1, 1, SomeValuesFromRestriction.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(cardinalityRestrictionEClass, CardinalityRestriction.class, \"CardinalityRestriction\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getCardinalityRestriction_OWLCardinality(), theRdfsPackage.getRDFSLiteral(), null, \"OWLCardinality\", null, 1, 1, CardinalityRestriction.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(maxCardinalityRestrictionEClass, MaxCardinalityRestriction.class, \"MaxCardinalityRestriction\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getMaxCardinalityRestriction_OWLMaxCardinality(), theRdfsPackage.getRDFSLiteral(), null, \"OWLMaxCardinality\", null, 1, 1, MaxCardinalityRestriction.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(minCardinalityRestrictionEClass, MinCardinalityRestriction.class, \"MinCardinalityRestriction\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getMinCardinalityRestriction_OWLMinCardinality(), theRdfsPackage.getRDFSLiteral(), null, \"OWLMinCardinality\", null, 1, 1, MinCardinalityRestriction.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(complementClassEClass, ComplementClass.class, \"ComplementClass\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getComplementClass_OWLComplementOf(), this.getOWLClass(), this.getOWLClass_InvOWLComplementOf(), \"OWLComplementOf\", null, 1, 1, ComplementClass.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(owlDatatypePropertyEClass, OWLDatatypeProperty.class, \"OWLDatatypeProperty\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\n\t\t// Create resource\n\t\tcreateResource(eNS_URI);\n\t}", "title": "" }, { "docid": "185cacfe28bda51bbdad701686edbeb4", "score": "0.6207323", "text": "public void initializePackageContents()\n {\n if (isInitialized) return;\n isInitialized = true;\n\n // Initialize package\n setName(eNAME);\n setNsPrefix(eNS_PREFIX);\n setNsURI(eNS_URI);\n\n // Create type parameters\n\n // Set bounds for type parameters\n\n // Add supertypes to classes\n variableEClass.getESuperTypes().add(this.getVariables());\n udtEClass.getESuperTypes().add(this.getVariables());\n udtRefEClass.getESuperTypes().add(this.getVariables());\n boolConstantEClass.getESuperTypes().add(this.getIdiom());\n orEClass.getESuperTypes().add(this.getIdiom());\n andEClass.getESuperTypes().add(this.getIdiom());\n equalityEClass.getESuperTypes().add(this.getIdiom());\n comparisonEClass.getESuperTypes().add(this.getIdiom());\n plusEClass.getESuperTypes().add(this.getIdiom());\n minusEClass.getESuperTypes().add(this.getIdiom());\n mulOrDivEClass.getESuperTypes().add(this.getIdiom());\n notEClass.getESuperTypes().add(this.getIdiom());\n intConstantEClass.getESuperTypes().add(this.getIdiom());\n stringConstantEClass.getESuperTypes().add(this.getIdiom());\n variableRefEClass.getESuperTypes().add(this.getIdiom());\n realConstantEClass.getESuperTypes().add(this.getIdiom());\n byteConstantEClass.getESuperTypes().add(this.getIdiom());\n wordConstantEClass.getESuperTypes().add(this.getIdiom());\n dWordConstantEClass.getESuperTypes().add(this.getIdiom());\n lWordConstantEClass.getESuperTypes().add(this.getIdiom());\n charConstantEClass.getESuperTypes().add(this.getIdiom());\n timeConstantEClass.getESuperTypes().add(this.getIdiom());\n lTimeConstantEClass.getESuperTypes().add(this.getIdiom());\n dateConstantEClass.getESuperTypes().add(this.getIdiom());\n\n // Initialize classes and features; add operations and parameters\n initEClass(eisModelEClass, EisModel.class, \"EisModel\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEAttribute(getEisModel_ProjectName(), ecorePackage.getEString(), \"projectName\", null, 0, 1, EisModel.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEAttribute(getEisModel_PlcName(), ecorePackage.getEString(), \"plcName\", null, 0, 1, EisModel.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEAttribute(getEisModel_AuthorName(), ecorePackage.getEString(), \"authorName\", null, 0, 1, EisModel.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEReference(getEisModel_Testcases(), this.getTestcase(), null, \"testcases\", null, 0, -1, EisModel.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(testcaseEClass, Testcase.class, \"Testcase\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEAttribute(getTestcase_TestcaseName(), ecorePackage.getEString(), \"testcaseName\", null, 0, 1, Testcase.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEReference(getTestcase_TestActive(), this.getBoolConstant(), null, \"testActive\", null, 0, 1, Testcase.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEReference(getTestcase_BlockType(), this.getBlockConstant(), null, \"blockType\", null, 0, 1, Testcase.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEAttribute(getTestcase_Description(), ecorePackage.getEString(), \"description\", null, 0, 1, Testcase.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEReference(getTestcase_Define(), this.getDefineBlock(), null, \"define\", null, 0, 1, Testcase.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(defineBlockEClass, DefineBlock.class, \"DefineBlock\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEReference(getDefineBlock_Direction(), this.getDirectionBlock(), null, \"direction\", null, 0, 1, DefineBlock.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEReference(getDefineBlock_Teststeps(), this.getTeststepBlock(), null, \"teststeps\", null, 0, -1, DefineBlock.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(directionBlockEClass, DirectionBlock.class, \"DirectionBlock\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEReference(getDirectionBlock_Input(), this.getInput(), null, \"input\", null, 0, 1, DirectionBlock.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEReference(getDirectionBlock_Output(), this.getOutput(), null, \"output\", null, 0, 1, DirectionBlock.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEReference(getDirectionBlock_Inout(), this.getInOut(), null, \"inout\", null, 0, 1, DirectionBlock.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(teststepBlockEClass, TeststepBlock.class, \"TeststepBlock\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEAttribute(getTeststepBlock_TeststepKeyword(), ecorePackage.getEString(), \"teststepKeyword\", null, 0, 1, TeststepBlock.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEAttribute(getTeststepBlock_PlcCycle(), ecorePackage.getELong(), \"plcCycle\", null, 0, 1, TeststepBlock.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEAttribute(getTeststepBlock_Description(), ecorePackage.getEString(), \"description\", null, 0, 1, TeststepBlock.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEReference(getTeststepBlock_Assertion(), this.getAssertionBlock(), null, \"assertion\", null, 0, 1, TeststepBlock.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(assertionBlockEClass, AssertionBlock.class, \"AssertionBlock\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEReference(getAssertionBlock_Set(), this.getSet(), null, \"set\", null, 0, 1, AssertionBlock.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEReference(getAssertionBlock_Assert(), this.getAssert(), null, \"assert\", null, 0, 1, AssertionBlock.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(inputEClass, Input.class, \"Input\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEAttribute(getInput_Name(), ecorePackage.getEString(), \"name\", null, 0, 1, Input.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEReference(getInput_InputVariables(), this.getVariables(), null, \"inputVariables\", null, 0, -1, Input.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(outputEClass, Output.class, \"Output\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEAttribute(getOutput_Name(), ecorePackage.getEString(), \"name\", null, 0, 1, Output.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEReference(getOutput_OutputVariables(), this.getVariables(), null, \"outputVariables\", null, 0, -1, Output.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(inOutEClass, InOut.class, \"InOut\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEAttribute(getInOut_Name(), ecorePackage.getEString(), \"name\", null, 0, 1, InOut.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEReference(getInOut_InoutVariables(), this.getVariables(), null, \"inoutVariables\", null, 0, -1, InOut.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(variablesEClass, Variables.class, \"Variables\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEAttribute(getVariables_Name(), ecorePackage.getEString(), \"name\", null, 0, 1, Variables.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(variableEClass, Variable.class, \"Variable\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEAttribute(getVariable_VariantKeyword(), ecorePackage.getEBoolean(), \"variantKeyword\", null, 0, 1, Variable.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEAttribute(getVariable_VariableType(), this.getBasicType(), \"variableType\", null, 0, 1, Variable.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEReference(getVariable_Idiom(), this.getIdiom(), null, \"idiom\", null, 0, 1, Variable.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEReference(getVariable_Range(), this.getIdiom(), null, \"range\", null, 0, 1, Variable.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEAttribute(getVariable_NextVariable(), ecorePackage.getEBoolean(), \"nextVariable\", null, 0, 1, Variable.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(udtEClass, Udt.class, \"Udt\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEReference(getUdt_UdtType(), this.getUdtType(), null, \"udtType\", null, 0, 1, Udt.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEReference(getUdt_UdtVariables(), this.getVariables(), null, \"udtVariables\", null, 0, -1, Udt.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(udtRefEClass, UdtRef.class, \"UdtRef\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEReference(getUdtRef_UdtType(), this.getUdtType(), null, \"udtType\", null, 0, 1, UdtRef.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEReference(getUdtRef_UdtVariables(), this.getVariables(), null, \"udtVariables\", null, 0, -1, UdtRef.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(udtTypeEClass, UdtType.class, \"UdtType\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEAttribute(getUdtType_Name(), ecorePackage.getEString(), \"name\", null, 0, 1, UdtType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(setEClass, Set.class, \"Set\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEAttribute(getSet_Name(), ecorePackage.getEString(), \"name\", null, 0, 1, Set.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEReference(getSet_SetVariables(), this.getStatement(), null, \"setVariables\", null, 0, -1, Set.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(assertEClass, Assert.class, \"Assert\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEAttribute(getAssert_Name(), ecorePackage.getEString(), \"name\", null, 0, 1, Assert.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEReference(getAssert_AssertVariables(), this.getStatement(), null, \"assertVariables\", null, 0, -1, Assert.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(statementEClass, Statement.class, \"Statement\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEReference(getStatement_Variable(), this.getVariables(), null, \"variable\", null, 0, 1, Statement.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEReference(getStatement_Cascade(), this.getCascade(), null, \"cascade\", null, 0, -1, Statement.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEReference(getStatement_Idiom(), this.getIdiom(), null, \"idiom\", null, 0, 1, Statement.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEReference(getStatement_Range(), this.getIdiom(), null, \"range\", null, 0, 1, Statement.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(cascadeEClass, Cascade.class, \"Cascade\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEReference(getCascade_UdtVar(), this.getVariables(), null, \"udtVar\", null, 0, 1, Cascade.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(boolConstantEClass, BoolConstant.class, \"BoolConstant\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEAttribute(getBoolConstant_Value(), ecorePackage.getEString(), \"value\", null, 0, 1, BoolConstant.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(blockConstantEClass, BlockConstant.class, \"BlockConstant\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEAttribute(getBlockConstant_Value(), ecorePackage.getEString(), \"value\", null, 0, 1, BlockConstant.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(idiomEClass, Idiom.class, \"Idiom\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\n initEClass(orEClass, Or.class, \"Or\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEReference(getOr_Left(), this.getIdiom(), null, \"left\", null, 0, 1, Or.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEReference(getOr_Right(), this.getIdiom(), null, \"right\", null, 0, 1, Or.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(andEClass, And.class, \"And\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEReference(getAnd_Left(), this.getIdiom(), null, \"left\", null, 0, 1, And.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEReference(getAnd_Right(), this.getIdiom(), null, \"right\", null, 0, 1, And.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(equalityEClass, Equality.class, \"Equality\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEReference(getEquality_Left(), this.getIdiom(), null, \"left\", null, 0, 1, Equality.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEAttribute(getEquality_Op(), ecorePackage.getEString(), \"op\", null, 0, 1, Equality.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEReference(getEquality_Right(), this.getIdiom(), null, \"right\", null, 0, 1, Equality.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(comparisonEClass, Comparison.class, \"Comparison\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEReference(getComparison_Left(), this.getIdiom(), null, \"left\", null, 0, 1, Comparison.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEAttribute(getComparison_Op(), ecorePackage.getEString(), \"op\", null, 0, 1, Comparison.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEReference(getComparison_Right(), this.getIdiom(), null, \"right\", null, 0, 1, Comparison.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(plusEClass, Plus.class, \"Plus\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEReference(getPlus_Left(), this.getIdiom(), null, \"left\", null, 0, 1, Plus.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEReference(getPlus_Right(), this.getIdiom(), null, \"right\", null, 0, 1, Plus.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(minusEClass, Minus.class, \"Minus\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEReference(getMinus_Left(), this.getIdiom(), null, \"left\", null, 0, 1, Minus.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEReference(getMinus_Right(), this.getIdiom(), null, \"right\", null, 0, 1, Minus.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(mulOrDivEClass, MulOrDiv.class, \"MulOrDiv\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEReference(getMulOrDiv_Left(), this.getIdiom(), null, \"left\", null, 0, 1, MulOrDiv.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEAttribute(getMulOrDiv_Op(), ecorePackage.getEString(), \"op\", null, 0, 1, MulOrDiv.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEReference(getMulOrDiv_Right(), this.getIdiom(), null, \"right\", null, 0, 1, MulOrDiv.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(notEClass, Not.class, \"Not\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEReference(getNot_Idiom(), this.getIdiom(), null, \"idiom\", null, 0, 1, Not.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(intConstantEClass, IntConstant.class, \"IntConstant\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEAttribute(getIntConstant_Value(), ecorePackage.getELong(), \"value\", null, 0, 1, IntConstant.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(stringConstantEClass, StringConstant.class, \"StringConstant\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEAttribute(getStringConstant_Value(), ecorePackage.getEString(), \"value\", null, 0, 1, StringConstant.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(variableRefEClass, VariableRef.class, \"VariableRef\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEReference(getVariableRef_Variable(), this.getVariable(), null, \"variable\", null, 0, 1, VariableRef.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(realConstantEClass, RealConstant.class, \"RealConstant\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEAttribute(getRealConstant_Value(), ecorePackage.getEString(), \"value\", null, 0, 1, RealConstant.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(byteConstantEClass, ByteConstant.class, \"ByteConstant\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEAttribute(getByteConstant_Value(), ecorePackage.getEString(), \"value\", null, 0, 1, ByteConstant.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(wordConstantEClass, WordConstant.class, \"WordConstant\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEAttribute(getWordConstant_Value(), ecorePackage.getEString(), \"value\", null, 0, 1, WordConstant.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(dWordConstantEClass, DWordConstant.class, \"DWordConstant\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEAttribute(getDWordConstant_Value(), ecorePackage.getEString(), \"value\", null, 0, 1, DWordConstant.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(lWordConstantEClass, LWordConstant.class, \"LWordConstant\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEAttribute(getLWordConstant_Value(), ecorePackage.getEString(), \"value\", null, 0, 1, LWordConstant.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(charConstantEClass, CharConstant.class, \"CharConstant\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEAttribute(getCharConstant_Value(), ecorePackage.getEString(), \"value\", null, 0, 1, CharConstant.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(timeConstantEClass, TimeConstant.class, \"TimeConstant\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEAttribute(getTimeConstant_Value(), ecorePackage.getEString(), \"value\", null, 0, 1, TimeConstant.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(lTimeConstantEClass, LTimeConstant.class, \"LTimeConstant\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEAttribute(getLTimeConstant_Value(), ecorePackage.getEString(), \"value\", null, 0, 1, LTimeConstant.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(dateConstantEClass, DateConstant.class, \"DateConstant\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEAttribute(getDateConstant_Value(), ecorePackage.getEString(), \"value\", null, 0, 1, DateConstant.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n // Initialize enums and add enum literals\n initEEnum(basicTypeEEnum, BasicType.class, \"BasicType\");\n addEEnumLiteral(basicTypeEEnum, BasicType.NULL);\n addEEnumLiteral(basicTypeEEnum, BasicType.INT);\n addEEnumLiteral(basicTypeEEnum, BasicType.BOOL);\n addEEnumLiteral(basicTypeEEnum, BasicType.REAL);\n addEEnumLiteral(basicTypeEEnum, BasicType.STRING);\n addEEnumLiteral(basicTypeEEnum, BasicType.CHAR);\n addEEnumLiteral(basicTypeEEnum, BasicType.BYTE);\n addEEnumLiteral(basicTypeEEnum, BasicType.WORD);\n addEEnumLiteral(basicTypeEEnum, BasicType.DWORD);\n addEEnumLiteral(basicTypeEEnum, BasicType.LWORD);\n addEEnumLiteral(basicTypeEEnum, BasicType.USINT);\n addEEnumLiteral(basicTypeEEnum, BasicType.UINT);\n addEEnumLiteral(basicTypeEEnum, BasicType.UDINT);\n addEEnumLiteral(basicTypeEEnum, BasicType.SINT);\n addEEnumLiteral(basicTypeEEnum, BasicType.DINT);\n addEEnumLiteral(basicTypeEEnum, BasicType.LINT);\n addEEnumLiteral(basicTypeEEnum, BasicType.TIME);\n addEEnumLiteral(basicTypeEEnum, BasicType.LTIME);\n addEEnumLiteral(basicTypeEEnum, BasicType.DATE);\n addEEnumLiteral(basicTypeEEnum, BasicType.LREAL);\n addEEnumLiteral(basicTypeEEnum, BasicType.WCHAR);\n\n // Create resource\n createResource(eNS_URI);\n }", "title": "" }, { "docid": "ad5bfaffc0cd526c7ba7ab7b70c94aaf", "score": "0.6184139", "text": "public void initializePackageContents() {\n\t\tif (isInitialized) return;\n\t\tisInitialized = true;\n\n\t\t// Initialize package\n\t\tsetName(eNAME);\n\t\tsetNsPrefix(eNS_PREFIX);\n\t\tsetNsURI(eNS_URI);\n\n\t\t// Create type parameters\n\n\t\t// Set bounds for type parameters\n\n\t\t// Add supertypes to classes\n\t\tassessmentEClass.getESuperTypes().add(this.getMotivationElement());\n\t\tendEClass.getESuperTypes().add(this.getMotivationElement());\n\t\tinfluencerEClass.getESuperTypes().add(this.getMotivationElement());\n\t\tinfluencingOrganizationEClass.getESuperTypes().add(this.getMotivationElement());\n\t\tmeansEClass.getESuperTypes().add(this.getMotivationElement());\n\t\tpotentialImpactEClass.getESuperTypes().add(this.getMotivationElement());\n\t\tassessmentCategoryEClass.getESuperTypes().add(this.getMotivationElement());\n\t\tinfluencerCategoryEClass.getESuperTypes().add(this.getMotivationElement());\n\t\torganizationCategoryEClass.getESuperTypes().add(this.getMotivationElement());\n\t\torganizationUnitEClass.getESuperTypes().add(this.getMotivationElement());\n\t\tbusinessProcessEClass.getESuperTypes().add(this.getMotivationElement());\n\t\tassetEClass.getESuperTypes().add(this.getMotivationElement());\n\t\tliabilityEClass.getESuperTypes().add(this.getMotivationElement());\n\t\tresourceEClass.getESuperTypes().add(this.getAsset());\n\t\tmissionEClass.getESuperTypes().add(this.getMeans());\n\t\tcourseOfActionEClass.getESuperTypes().add(this.getMeans());\n\t\tfixedAssetEClass.getESuperTypes().add(this.getAsset());\n\t\tofferingEClass.getESuperTypes().add(this.getFixedAsset());\n\t\tdirectiveEClass.getESuperTypes().add(this.getMeans());\n\t\tstrategyEClass.getESuperTypes().add(this.getCourseOfAction());\n\t\ttacticEClass.getESuperTypes().add(this.getCourseOfAction());\n\t\tbusinessRuleEClass.getESuperTypes().add(this.getDirective());\n\t\tbusinessPolicyEClass.getESuperTypes().add(this.getDirective());\n\t\tregulationEClass.getESuperTypes().add(this.getInfluencer());\n\t\tvisionEClass.getESuperTypes().add(this.getEnd());\n\t\tdesiredResultEClass.getESuperTypes().add(this.getEnd());\n\t\tgoalEClass.getESuperTypes().add(this.getDesiredResult());\n\t\tobjectiveEClass.getESuperTypes().add(this.getDesiredResult());\n\t\tpotentialRewardEClass.getESuperTypes().add(this.getPotentialImpact());\n\t\triskEClass.getESuperTypes().add(this.getPotentialImpact());\n\n\t\t// Initialize classes, features, and operations; add parameters\n\t\tinitEClass(motivationElementEClass, MotivationElement.class, \"MotivationElement\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getMotivationElement_Name(), ecorePackage.getEString(), \"name\", \"\", 1, 1, MotivationElement.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);\n\t\tinitEAttribute(getMotivationElement_Description(), ecorePackage.getEString(), \"description\", null, 1, 1, MotivationElement.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);\n\n\t\tinitEClass(assessmentEClass, Assessment.class, \"Assessment\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getAssessment_UsingAssessmentUsesUsedAssessment(), this.getAssessment(), null, \"usingAssessmentUsesUsedAssessment\", null, 0, -1, Assessment.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);\n\t\tinitEReference(getAssessment_AssessmentProvidesImpetusForDirective(), this.getDirective(), null, \"assessmentProvidesImpetusForDirective\", null, 0, -1, Assessment.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);\n\t\tinitEReference(getAssessment_AssessmentIdentifiesPotentialImpact(), this.getPotentialImpact(), null, \"assessmentIdentifiesPotentialImpact\", null, 0, -1, Assessment.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);\n\t\tinitEReference(getAssessment_AssessmentJudgmentOfInfluencer(), this.getInfluencer(), null, \"assessmentJudgmentOfInfluencer\", null, 1, -1, Assessment.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);\n\n\t\tinitEClass(endEClass, End.class, \"End\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\n\t\tinitEClass(influencerEClass, Influencer.class, \"Influencer\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\n\t\tinitEClass(influencingOrganizationEClass, InfluencingOrganization.class, \"InfluencingOrganization\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getInfluencingOrganization_InfluencingOrganizationIsSourceOfInfluencer(), this.getInfluencer(), null, \"influencingOrganizationIsSourceOfInfluencer\", null, 0, -1, InfluencingOrganization.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);\n\n\t\tinitEClass(meansEClass, Means.class, \"Means\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\n\t\tinitEClass(potentialImpactEClass, PotentialImpact.class, \"PotentialImpact\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getPotentialImpact_PotentialImpactProvidesImpetusForDirective(), this.getDirective(), null, \"potentialImpactProvidesImpetusForDirective\", null, 0, -1, PotentialImpact.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);\n\n\t\tinitEClass(assessmentCategoryEClass, AssessmentCategory.class, \"AssessmentCategory\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getAssessmentCategory_AssessmentCategoryCategoriesAssessment(), this.getAssessment(), null, \"assessmentCategoryCategoriesAssessment\", null, 0, -1, AssessmentCategory.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);\n\n\t\tinitEClass(influencerCategoryEClass, InfluencerCategory.class, \"InfluencerCategory\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getInfluencerCategory_InfluencerCategoryCategorizesInfluencer(), this.getInfluencer(), null, \"influencerCategoryCategorizesInfluencer\", null, 0, -1, InfluencerCategory.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);\n\n\t\tinitEClass(organizationCategoryEClass, OrganizationCategory.class, \"OrganizationCategory\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getOrganizationCategory_OrganizationCategoryCategorizesInfluencingOrganization(), this.getInfluencingOrganization(), null, \"organizationCategoryCategorizesInfluencingOrganization\", null, 0, -1, OrganizationCategory.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);\n\n\t\tinitEClass(organizationUnitEClass, OrganizationUnit.class, \"OrganizationUnit\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getOrganizationUnit_OrganizationUnitDefinesEnd(), this.getEnd(), null, \"organizationUnitDefinesEnd\", null, 0, -1, OrganizationUnit.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);\n\t\tinitEReference(getOrganizationUnit_OrganizationUnitEstablishesMeans(), this.getMeans(), null, \"organizationUnitEstablishesMeans\", null, 0, -1, OrganizationUnit.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);\n\t\tinitEReference(getOrganizationUnit_OrganizationUnitIsResponsibleForAsset(), this.getAsset(), null, \"organizationUnitIsResponsibleForAsset\", null, 0, -1, OrganizationUnit.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);\n\t\tinitEReference(getOrganizationUnit_OrganizationUnitIsResponsibleForLiability(), this.getLiability(), null, \"organizationUnitIsResponsibleForLiability\", null, 0, -1, OrganizationUnit.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);\n\t\tinitEReference(getOrganizationUnit_OrganizationUnitRecognizesInfluencer(), this.getInfluencer(), null, \"organizationUnitRecognizesInfluencer\", null, 0, -1, OrganizationUnit.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);\n\t\tinitEReference(getOrganizationUnit_OrganizationUnitActAsInfluencingOrganization(), this.getInfluencingOrganization(), null, \"organizationUnitActAsInfluencingOrganization\", null, 0, -1, OrganizationUnit.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);\n\t\tinitEReference(getOrganizationUnit_OrganizationUnitMakesAssessment(), this.getAssessment(), null, \"organizationUnitMakesAssessment\", null, 0, -1, OrganizationUnit.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);\n\t\tinitEReference(getOrganizationUnit_OrganizationUnitIsResponsibleForBusinessProcess(), this.getBusinessProcess(), null, \"organizationUnitIsResponsibleForBusinessProcess\", null, 0, -1, OrganizationUnit.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);\n\n\t\tinitEClass(businessProcessEClass, BusinessProcess.class, \"BusinessProcess\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getBusinessProcess_BusinessProcessRealizesCourseOfAction(), this.getCourseOfAction(), null, \"businessProcessRealizesCourseOfAction\", null, 0, -1, BusinessProcess.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);\n\t\tinitEReference(getBusinessProcess_BusinessProcessManagerAsset(), this.getAsset(), null, \"businessProcessManagerAsset\", null, 0, -1, BusinessProcess.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);\n\t\tinitEReference(getBusinessProcess_BusinessProcessDeliversOfeering(), this.getOffering(), null, \"businessProcessDeliversOfeering\", null, 0, -1, BusinessProcess.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);\n\n\t\tinitEClass(assetEClass, Asset.class, \"Asset\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\n\t\tinitEClass(liabilityEClass, Liability.class, \"Liability\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getLiability_LiabilityClaimsResource(), this.getResource(), null, \"liabilityClaimsResource\", null, 0, -1, Liability.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);\n\n\t\tinitEClass(resourceEClass, Resource.class, \"Resource\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\n\t\tinitEClass(missionEClass, Mission.class, \"Mission\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getMission_MissionMakesOperativeVision(), this.getVision(), null, \"missionMakesOperativeVision\", null, 0, 1, Mission.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);\n\n\t\tinitEClass(courseOfActionEClass, CourseOfAction.class, \"CourseOfAction\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getCourseOfAction_EnablingCourseofActionEnablesEnabledCourseOfAction(), this.getCourseOfAction(), null, \"enablingCourseofActionEnablesEnabledCourseOfAction\", null, 0, -1, CourseOfAction.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);\n\t\tinitEReference(getCourseOfAction_BroaderCourseofActionIncludesMoreSpecificCourseOfAction(), this.getCourseOfAction(), null, \"broaderCourseofActionIncludesMoreSpecificCourseOfAction\", null, 0, -1, CourseOfAction.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);\n\t\tinitEReference(getCourseOfAction_CourseOfActionChanneIsEffortsTowardsDesiredResult(), this.getDesiredResult(), null, \"courseOfActionChanneIsEffortsTowardsDesiredResult\", null, 0, 1, CourseOfAction.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);\n\t\tinitEReference(getCourseOfAction_CourseOfActionDeployAsset(), this.getAsset(), null, \"courseOfActionDeployAsset\", null, 0, -1, CourseOfAction.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);\n\t\tinitEReference(getCourseOfAction_CourseOfActionDefiensOffering(), this.getOffering(), null, \"courseOfActionDefiensOffering\", null, 0, -1, CourseOfAction.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);\n\n\t\tinitEClass(fixedAssetEClass, FixedAsset.class, \"FixedAsset\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getFixedAsset_FixedAssetProvidesResource(), this.getResource(), null, \"fixedAssetProvidesResource\", null, 0, -1, FixedAsset.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);\n\n\t\tinitEClass(offeringEClass, Offering.class, \"Offering\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getOffering_OfferingRequiresResource(), this.getResource(), null, \"offeringRequiresResource\", null, 0, -1, Offering.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);\n\t\tinitEReference(getOffering_OfferingUsesFixedAsset(), this.getFixedAsset(), null, \"offeringUsesFixedAsset\", null, 0, -1, Offering.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);\n\n\t\tinitEClass(directiveEClass, Directive.class, \"Directive\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getDirective_DirectiveGovernsCourseOfAction(), this.getCourseOfAction(), null, \"directiveGovernsCourseOfAction\", null, 0, -1, Directive.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);\n\t\tinitEReference(getDirective_DirectiveIsSourceOfCourseOfAction(), this.getCourseOfAction(), null, \"directiveIsSourceOfCourseOfAction\", null, 0, -1, Directive.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);\n\t\tinitEReference(getDirective_DirectiveActAsRegulation(), this.getRegulation(), null, \"directiveActAsRegulation\", null, 0, -1, Directive.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);\n\t\tinitEReference(getDirective_DirectiveSupportsAchievementOfDesiredResult(), this.getDesiredResult(), null, \"directiveSupportsAchievementOfDesiredResult\", null, 0, -1, Directive.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);\n\t\tinitEReference(getDirective_DirectiveGovernsUseOfAsset(), this.getAsset(), null, \"directiveGovernsUseOfAsset\", null, 0, -1, Directive.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);\n\n\t\tinitEClass(strategyEClass, Strategy.class, \"Strategy\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getStrategy_StrategyIsAComponentOfThePlanForMission(), this.getMission(), null, \"strategyIsAComponentOfThePlanForMission\", null, 0, -1, Strategy.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);\n\t\tinitEReference(getStrategy_StrategyDeterminesOrganizationUnit(), this.getOrganizationUnit(), null, \"strategyDeterminesOrganizationUnit\", null, 0, -1, Strategy.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);\n\n\t\tinitEClass(tacticEClass, Tactic.class, \"Tactic\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getTactic_TacticImplementsStrategy(), this.getStrategy(), null, \"tacticImplementsStrategy\", null, 0, -1, Tactic.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);\n\t\tinitEReference(getTactic_TacticEffectsEnforcementLevelOfBusinessRule(), this.getBusinessRule(), null, \"tacticEffectsEnforcementLevelOfBusinessRule\", null, 0, -1, Tactic.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);\n\n\t\tinitEClass(businessRuleEClass, BusinessRule.class, \"BusinessRule\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getBusinessRule_BusinessRuleGuidesBusinessProcess(), this.getBusinessProcess(), null, \"businessRuleGuidesBusinessProcess\", null, 0, -1, BusinessRule.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);\n\n\t\tinitEClass(businessPolicyEClass, BusinessPolicy.class, \"BusinessPolicy\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getBusinessPolicy_BusinessPolicyIsBasisForBusinessRule(), this.getBusinessRule(), null, \"businessPolicyIsBasisForBusinessRule\", null, 0, -1, BusinessPolicy.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);\n\t\tinitEReference(getBusinessPolicy_BroaderBusinessPolicyIncludesMoreSpecificBusinessPolicy(), this.getBusinessPolicy(), null, \"broaderBusinessPolicyIncludesMoreSpecificBusinessPolicy\", null, 0, -1, BusinessPolicy.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);\n\t\tinitEReference(getBusinessPolicy_BusinessPolicyGovernsBusinessProcess(), this.getBusinessProcess(), null, \"businessPolicyGovernsBusinessProcess\", null, 0, -1, BusinessPolicy.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);\n\n\t\tinitEClass(regulationEClass, Regulation.class, \"Regulation\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\n\t\tinitEClass(visionEClass, Vision.class, \"Vision\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\n\t\tinitEClass(desiredResultEClass, DesiredResult.class, \"DesiredResult\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getDesiredResult_BroaderDesiredResultIncludesMoreSpecificDesiredResult(), this.getDesiredResult(), null, \"broaderDesiredResultIncludesMoreSpecificDesiredResult\", null, 0, -1, DesiredResult.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);\n\n\t\tinitEClass(goalEClass, Goal.class, \"Goal\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getGoal_GoalAmplifiesVision(), this.getVision(), null, \"goalAmplifiesVision\", null, 0, 1, Goal.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);\n\n\t\tinitEClass(objectiveEClass, Objective.class, \"Objective\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getObjective_ObjectiveQuantifiesGoal(), this.getGoal(), null, \"objectiveQuantifiesGoal\", null, 0, -1, Objective.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);\n\n\t\tinitEClass(potentialRewardEClass, PotentialReward.class, \"PotentialReward\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\n\t\tinitEClass(riskEClass, Risk.class, \"Risk\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\n\t\tinitEClass(bmMmodelEClass, BMMmodel.class, \"BMMmodel\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getBMMmodel_Contains(), this.getMotivationElement(), null, \"contains\", null, 0, -1, BMMmodel.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getBMMmodel_Name(), ecorePackage.getEString(), \"name\", null, 0, 1, BMMmodel.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getBMMmodel_OntologyNS(), ecorePackage.getEString(), \"ontologyNS\", null, 0, 1, BMMmodel.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getBMMmodel_OntologyURI(), ecorePackage.getEString(), \"ontologyURI\", null, 0, 1, BMMmodel.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\t// Create resource\n\t\tcreateResource(eNS_URI);\n\t}", "title": "" }, { "docid": "ca570368dfce15aa71ea1ea22a846184", "score": "0.6177422", "text": "public void initializePackageContents()\r\n {\r\n if (isInitialized) return;\r\n isInitialized = true;\r\n\r\n // Initialize package\r\n setName(eNAME);\r\n setNsPrefix(eNS_PREFIX);\r\n setNsURI(eNS_URI);\r\n\r\n // Create type parameters\r\n\r\n // Set bounds for type parameters\r\n\r\n // Add supertypes to classes\r\n hyphenRuleEClass.getESuperTypes().add(this.getSyllable());\r\n extenderRuleEClass.getESuperTypes().add(this.getSyllable());\r\n skipRuleEClass.getESuperTypes().add(this.getSyllable());\r\n\r\n // Initialize classes and features; add operations and parameters\r\n initEClass(scriptEClass, Script.class, \"Script\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\r\n initEReference(getScript_Tones(), this.getTone(), null, \"tones\", null, 0, -1, Script.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n initEReference(getScript_Chants(), this.getChant(), null, \"chants\", null, 0, -1, Script.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n initEReference(getScript_Format(), this.getFormat(), null, \"format\", null, 0, 1, Script.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\r\n initEClass(toneEClass, Tone.class, \"Tone\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\r\n initEAttribute(getTone_Name(), ecorePackage.getEString(), \"name\", null, 0, 1, Tone.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n initEReference(getTone_VoiceNames(), this.getVoiceName(), null, \"voiceNames\", null, 0, -1, Tone.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n initEReference(getTone_Phrases(), this.getTonePhrase(), null, \"phrases\", null, 0, -1, Tone.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\r\n initEClass(voiceNameEClass, VoiceName.class, \"VoiceName\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\r\n initEAttribute(getVoiceName_Name(), ecorePackage.getEString(), \"name\", null, 0, 1, VoiceName.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\r\n initEClass(tonePhraseEClass, TonePhrase.class, \"TonePhrase\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\r\n initEAttribute(getTonePhrase_Name(), ecorePackage.getEString(), \"name\", null, 0, 1, TonePhrase.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n initEReference(getTonePhrase_Voices(), this.getVoicePhrase(), null, \"voices\", null, 0, -1, TonePhrase.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\r\n initEClass(voicePhraseEClass, VoicePhrase.class, \"VoicePhrase\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\r\n initEReference(getVoicePhrase_Name(), this.getVoiceName(), null, \"name\", null, 0, 1, VoicePhrase.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n initEReference(getVoicePhrase_Notes(), this.getNote(), null, \"notes\", null, 0, -1, VoicePhrase.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\r\n initEClass(chantEClass, Chant.class, \"Chant\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\r\n initEAttribute(getChant_Name(), ecorePackage.getEString(), \"name\", null, 0, 1, Chant.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n initEReference(getChant_Tone(), this.getTone(), null, \"tone\", null, 0, 1, Chant.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n initEReference(getChant_Phrases(), this.getLyricPhrase(), null, \"phrases\", null, 0, -1, Chant.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\r\n initEClass(lyricPhraseEClass, LyricPhrase.class, \"LyricPhrase\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\r\n initEReference(getLyricPhrase_ExplicitPhrase(), this.getTonePhrase(), null, \"explicitPhrase\", null, 0, 1, LyricPhrase.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n initEReference(getLyricPhrase_NoteGroups(), this.getNoteGroup(), null, \"noteGroups\", null, 0, -1, LyricPhrase.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n initEAttribute(getLyricPhrase_Bar(), this.getBarline(), \"bar\", null, 0, 1, LyricPhrase.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\r\n initEClass(noteGroupEClass, NoteGroup.class, \"NoteGroup\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\r\n initEReference(getNoteGroup_Syllables(), this.getSyllable(), null, \"syllables\", null, 0, -1, NoteGroup.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n initEAttribute(getNoteGroup_Noemphasis(), ecorePackage.getEBoolean(), \"noemphasis\", null, 0, 1, NoteGroup.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\r\n initEClass(syllableEClass, Syllable.class, \"Syllable\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\r\n initEAttribute(getSyllable_Emphasis(), ecorePackage.getEBoolean(), \"emphasis\", null, 0, 1, Syllable.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n initEAttribute(getSyllable_Literal(), ecorePackage.getEString(), \"literal\", null, 0, 1, Syllable.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\r\n initEClass(noteEClass, Note.class, \"Note\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\r\n initEAttribute(getNote_Pitch(), ecorePackage.getEString(), \"pitch\", null, 0, 1, Note.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n initEAttribute(getNote_Duration(), ecorePackage.getEString(), \"duration\", null, 0, 1, Note.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\r\n initEClass(formatEClass, Format.class, \"Format\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\r\n initEAttribute(getFormat_Raggedbottom(), ecorePackage.getEBoolean(), \"raggedbottom\", null, 0, 1, Format.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n initEAttribute(getFormat_Raggedlastbottom(), ecorePackage.getEBoolean(), \"raggedlastbottom\", null, 0, 1, Format.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\r\n initEClass(hyphenRuleEClass, HyphenRule.class, \"HyphenRule\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\r\n\r\n initEClass(extenderRuleEClass, ExtenderRule.class, \"ExtenderRule\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\r\n\r\n initEClass(skipRuleEClass, SkipRule.class, \"SkipRule\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\r\n\r\n // Initialize enums and add enum literals\r\n initEEnum(barlineEEnum, Barline.class, \"Barline\");\r\n addEEnumLiteral(barlineEEnum, Barline.SINGLE);\r\n addEEnumLiteral(barlineEEnum, Barline.DOUBLE);\r\n\r\n // Create resource\r\n createResource(eNS_URI);\r\n }", "title": "" }, { "docid": "cbc8025eaf4ab8723c901a156242b7f8", "score": "0.616863", "text": "public void initializePackageContents() {\n\t\tif (isInitialized) return;\n\t\tisInitialized = true;\n\n\t\t// Initialize package\n\t\tsetName(eNAME);\n\t\tsetNsPrefix(eNS_PREFIX);\n\t\tsetNsURI(eNS_URI);\n\n\t\t// Create type parameters\n\n\t\t// Set bounds for type parameters\n\n\t\t// Add supertypes to classes\n\n\t\t// Initialize classes, features, and operations; add parameters\n\t\tinitEClass(userEClass, User.class, \"User\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getUser_Id(), ecorePackage.getEString(), \"id\", null, 0, 1, User.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getUser_Name(), ecorePackage.getEString(), \"name\", null, 0, 1, User.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getUser_Surname(), ecorePackage.getEString(), \"surname\", null, 0, 1, User.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getUser_Reservation(), this.getReservation(), null, \"reservation\", null, 0, -1, User.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(vehicleEClass, Vehicle.class, \"Vehicle\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getVehicle_Id(), ecorePackage.getEString(), \"id\", null, 0, 1, Vehicle.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getVehicle_Brand(), ecorePackage.getEString(), \"brand\", null, 0, 1, Vehicle.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getVehicle_Model(), ecorePackage.getEString(), \"model\", null, 0, 1, Vehicle.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getVehicle_Type(), this.getCarType(), \"type\", null, 0, 1, Vehicle.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getVehicle_Plate(), ecorePackage.getEString(), \"plate\", null, 0, 1, Vehicle.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getVehicle_ReservationState(), this.getReservationState(), \"reservationState\", null, 0, 1, Vehicle.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(reservationEClass, Reservation.class, \"Reservation\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getReservation_Vehicle(), this.getVehicle(), null, \"vehicle\", null, 0, 1, Reservation.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getReservation_User(), this.getUser(), null, \"user\", null, 0, 1, Reservation.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\t// Initialize enums and add enum literals\n\t\tinitEEnum(carTypeEEnum, CarType.class, \"CarType\");\n\t\taddEEnumLiteral(carTypeEEnum, CarType.CAR);\n\t\taddEEnumLiteral(carTypeEEnum, CarType.VAN);\n\n\t\tinitEEnum(reservationStateEEnum, ReservationState.class, \"ReservationState\");\n\t\taddEEnumLiteral(reservationStateEEnum, ReservationState.FREE);\n\t\taddEEnumLiteral(reservationStateEEnum, ReservationState.RESERVED);\n\t\taddEEnumLiteral(reservationStateEEnum, ReservationState.STARTED);\n\n\t\t// Create resource\n\t\tcreateResource(eNS_URI);\n\t}", "title": "" }, { "docid": "a0e7f696da9b1644f82534beda575887", "score": "0.616075", "text": "public void initializePackageContents()\n {\n if (isInitialized) return;\n isInitialized = true;\n\n // Initialize package\n setName(eNAME);\n setNsPrefix(eNS_PREFIX);\n setNsURI(eNS_URI);\n\n // Obtain other dependent packages\n MMLangPackage theMMLangPackage = (MMLangPackage)EPackage.Registry.INSTANCE.getEPackage(MMLangPackage.eNS_URI);\n\n // Create type parameters\n\n // Set bounds for type parameters\n\n // Add supertypes to classes\n mergeEClass.getESuperTypes().add(this.getOperation());\n sliceEClass.getESuperTypes().add(this.getOperation());\n\n // Initialize classes and features; add operations and parameters\n initEClass(compositionEClass, Composition.class, \"Composition\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEAttribute(getComposition_Name(), ecorePackage.getEString(), \"name\", null, 0, 1, Composition.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEReference(getComposition_Operations(), this.getOperation(), null, \"operations\", null, 0, -1, Composition.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(operationEClass, Operation.class, \"Operation\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEReference(getOperation_Metamodel(), theMMLangPackage.getMetamodel(), null, \"metamodel\", null, 0, 1, Operation.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(pairEClass, Pair.class, \"Pair\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEReference(getPair_From(), theMMLangPackage.getClass_(), null, \"from\", null, 0, 1, Pair.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEAttribute(getPair_Name(), ecorePackage.getEString(), \"name\", null, 0, 1, Pair.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(mergeEClass, Merge.class, \"Merge\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEReference(getMerge_Pairs(), this.getPair(), null, \"pairs\", null, 0, -1, Merge.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(sliceEClass, Slice.class, \"Slice\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEReference(getSlice_Targets(), theMMLangPackage.getClass_(), null, \"targets\", null, 0, -1, Slice.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n // Create resource\n createResource(eNS_URI);\n }", "title": "" }, { "docid": "d39f96d1ca0010fe3302c7ebe03bf0e7", "score": "0.6160594", "text": "public void initializePackageContents() {\n if (isInitialized)\n return;\n isInitialized = true;\n\n // Initialize package\n setName(eNAME);\n setNsPrefix(eNS_PREFIX);\n setNsURI(eNS_URI);\n\n // Obtain other dependent packages\n ManifestPackage theManifestPackage = (ManifestPackage) EPackage.Registry.INSTANCE.getEPackage(ManifestPackage.eNS_URI);\n\n // Create type parameters\n addETypeParameter(eListEDataType, \"T\");\n\n // Set bounds for type parameters\n\n // Add supertypes to classes\n bundleManifestEClass.getESuperTypes().add(theManifestPackage.getManifest());\n parameterEClass.getESuperTypes().add(theManifestPackage.getParseable());\n bundleActivationPolicyEClass.getESuperTypes().add(this.getParameterized());\n packagesDeclarationEClass.getESuperTypes().add(this.getParameterized());\n packageExportEClass.getESuperTypes().add(this.getPackagesDeclaration());\n packageImportEClass.getESuperTypes().add(this.getPackagesDeclaration());\n bundleRequirementEClass.getESuperTypes().add(this.getParameterized());\n bundleSymbolicNameEClass.getESuperTypes().add(this.getParameterized());\n classPathEntryEClass.getESuperTypes().add(this.getParameterized());\n fragmentHostEClass.getESuperTypes().add(this.getParameterized());\n dynamicPackageImportEClass.getESuperTypes().add(this.getPackagesDeclaration());\n bundleLicenseEClass.getESuperTypes().add(this.getParameterized());\n\n // Initialize classes and features; add operations and parameters\n initEClass(bundleManifestEClass, BundleManifest.class, \"BundleManifest\", !IS_ABSTRACT, !IS_INTERFACE,\n IS_GENERATED_INSTANCE_CLASS);\n\n EOperation op = addEOperation(bundleManifestEClass, theManifestPackage.getHeader(), \"getHeader\", 0, 1, IS_UNIQUE,\n IS_ORDERED);\n addEParameter(op, this.getBundleHeaderName(), \"name\", 0, 1, IS_UNIQUE, IS_ORDERED);\n\n op = addEOperation(bundleManifestEClass, null, \"setHeader\", 0, 1, IS_UNIQUE, IS_ORDERED);\n addEParameter(op, this.getBundleHeaderName(), \"name\", 0, 1, IS_UNIQUE, IS_ORDERED);\n addEParameter(op, ecorePackage.getEString(), \"value\", 0, 1, IS_UNIQUE, IS_ORDERED);\n\n op = addEOperation(bundleManifestEClass, null, \"setHeader\", 0, 1, IS_UNIQUE, IS_ORDERED);\n addEParameter(op, this.getBundleHeaderName(), \"name\", 1, 1, IS_UNIQUE, IS_ORDERED);\n addEParameter(op, ecorePackage.getEJavaObject(), \"parsedValue\", 0, 1, IS_UNIQUE, IS_ORDERED);\n\n op = addEOperation(bundleManifestEClass, ecorePackage.getEString(), \"getHeaderValue\", 0, 1, IS_UNIQUE, IS_ORDERED);\n addEParameter(op, this.getBundleHeaderName(), \"name\", 0, 1, IS_UNIQUE, IS_ORDERED);\n\n op = addEOperation(bundleManifestEClass, ecorePackage.getEJavaObject(), \"getParsedHeaderValue\", 0, 1, IS_UNIQUE,\n IS_ORDERED);\n addEParameter(op, this.getBundleHeaderName(), \"name\", 0, 1, IS_UNIQUE, IS_ORDERED);\n\n addEOperation(bundleManifestEClass, ecorePackage.getEString(), \"getBundleManifestVersion\", 0, 1, IS_UNIQUE,\n IS_ORDERED);\n\n addEOperation(bundleManifestEClass, this.getVersion(), \"getBundleVersion\", 0, 1, IS_UNIQUE, IS_ORDERED);\n\n op = addEOperation(bundleManifestEClass, this.getVersion(), \"setBundleVersion\", 0, 1, IS_UNIQUE, IS_ORDERED);\n addEParameter(op, ecorePackage.getEString(), \"version\", 0, 1, IS_UNIQUE, IS_ORDERED);\n\n op = addEOperation(bundleManifestEClass, null, \"setBundleVersion\", 0, 1, IS_UNIQUE, IS_ORDERED);\n addEParameter(op, this.getVersion(), \"version\", 0, 1, IS_UNIQUE, IS_ORDERED);\n\n addEOperation(bundleManifestEClass, this.getBundleSymbolicName(), \"getBundleSymbolicName\", 0, 1, IS_UNIQUE,\n IS_ORDERED);\n\n op = addEOperation(bundleManifestEClass, this.getBundleSymbolicName(), \"getBundleSymbolicName\", 0, 1, IS_UNIQUE,\n IS_ORDERED);\n addEParameter(op, ecorePackage.getEBoolean(), \"createOnDemand\", 0, 1, IS_UNIQUE, IS_ORDERED);\n\n op = addEOperation(bundleManifestEClass, this.getBundleSymbolicName(), \"setBundleSymbolicName\", 0, 1, IS_UNIQUE,\n IS_ORDERED);\n addEParameter(op, ecorePackage.getEString(), \"bundleSymbolicName\", 0, 1, IS_UNIQUE, IS_ORDERED);\n\n op = addEOperation(bundleManifestEClass, null, \"setBundleSymbolicName\", 0, 1, IS_UNIQUE, IS_ORDERED);\n addEParameter(op, this.getBundleSymbolicName(), \"bundleSymbolicName\", 0, 1, IS_UNIQUE, IS_ORDERED);\n\n addEOperation(bundleManifestEClass, ecorePackage.getEString(), \"getBundleRequiredExecutionEnvironment\", 0, -1,\n IS_UNIQUE, IS_ORDERED);\n\n op = addEOperation(bundleManifestEClass, null, \"setBundleRequiredExecutionEnvironment\", 0, 1, IS_UNIQUE,\n IS_ORDERED);\n addEParameter(op, ecorePackage.getEString(), \"executionEnvironment\", 0, 1, IS_UNIQUE, IS_ORDERED);\n\n op = addEOperation(bundleManifestEClass, null, \"setBundleRequiredExecutionEnvironment\", 0, 1, IS_UNIQUE,\n IS_ORDERED);\n EGenericType g1 = createEGenericType(this.getEList());\n EGenericType g2 = createEGenericType(ecorePackage.getEString());\n g1.getETypeArguments().add(g2);\n addEParameter(op, g1, \"executionEnvironments\", 0, 1, IS_UNIQUE, IS_ORDERED);\n\n addEOperation(bundleManifestEClass, this.getFragmentHost(), \"getFragmentHost\", 0, 1, IS_UNIQUE, IS_ORDERED);\n\n op = addEOperation(bundleManifestEClass, this.getFragmentHost(), \"getFragmentHost\", 0, 1, IS_UNIQUE, IS_ORDERED);\n addEParameter(op, ecorePackage.getEBoolean(), \"createOnDemand\", 0, 1, IS_UNIQUE, IS_ORDERED);\n\n op = addEOperation(bundleManifestEClass, this.getFragmentHost(), \"setFragmentHost\", 0, 1, IS_UNIQUE, IS_ORDERED);\n addEParameter(op, ecorePackage.getEString(), \"fragmentHost\", 0, 1, IS_UNIQUE, IS_ORDERED);\n\n op = addEOperation(bundleManifestEClass, null, \"setFragmentHost\", 0, 1, IS_UNIQUE, IS_ORDERED);\n addEParameter(op, this.getFragmentHost(), \"fragmentHost\", 0, 1, IS_UNIQUE, IS_ORDERED);\n\n addEOperation(bundleManifestEClass, this.getBundleActivationPolicy(), \"getBundleActivationPolicy\", 0, 1,\n IS_UNIQUE, IS_ORDERED);\n\n op = addEOperation(bundleManifestEClass, this.getBundleActivationPolicy(), \"getBundleActivationPolicy\", 0, 1,\n IS_UNIQUE, IS_ORDERED);\n addEParameter(op, ecorePackage.getEBoolean(), \"createOnDemand\", 0, 1, IS_UNIQUE, IS_ORDERED);\n\n op = addEOperation(bundleManifestEClass, this.getBundleActivationPolicy(), \"setBundleActivationPolicy\", 0, 1,\n IS_UNIQUE, IS_ORDERED);\n addEParameter(op, this.getActivationPolicy(), \"activationPolicy\", 0, 1, IS_UNIQUE, IS_ORDERED);\n\n op = addEOperation(bundleManifestEClass, this.getBundleActivationPolicy(), \"setBundleActivationPolicy\", 0, 1,\n IS_UNIQUE, IS_ORDERED);\n addEParameter(op, ecorePackage.getEString(), \"activationPolicy\", 0, 1, IS_UNIQUE, IS_ORDERED);\n\n op = addEOperation(bundleManifestEClass, null, \"setBundleActivationPolicy\", 0, 1, IS_UNIQUE, IS_ORDERED);\n addEParameter(op, this.getBundleActivationPolicy(), \"bundleActivationPolicy\", 0, 1, IS_UNIQUE, IS_ORDERED);\n\n addEOperation(bundleManifestEClass, ecorePackage.getEString(), \"getBundleActivator\", 0, 1, IS_UNIQUE, IS_ORDERED);\n\n op = addEOperation(bundleManifestEClass, null, \"setBundleActivator\", 0, 1, IS_UNIQUE, IS_ORDERED);\n addEParameter(op, ecorePackage.getEString(), \"bundleActivator\", 0, 1, IS_UNIQUE, IS_ORDERED);\n\n op = addEOperation(bundleManifestEClass, null, \"getExportPackage\", 0, 1, IS_UNIQUE, IS_ORDERED);\n g1 = createEGenericType(ecorePackage.getEEList());\n g2 = createEGenericType(this.getPackageExport());\n g1.getETypeArguments().add(g2);\n initEOperation(op, g1);\n\n op = addEOperation(bundleManifestEClass, null, \"getExportPackage\", 0, 1, IS_UNIQUE, IS_ORDERED);\n addEParameter(op, ecorePackage.getEBoolean(), \"createOnDemand\", 0, 1, IS_UNIQUE, IS_ORDERED);\n g1 = createEGenericType(ecorePackage.getEEList());\n g2 = createEGenericType(this.getPackageExport());\n g1.getETypeArguments().add(g2);\n initEOperation(op, g1);\n\n op = addEOperation(bundleManifestEClass, null, \"setExportPackage\", 0, 1, IS_UNIQUE, IS_ORDERED);\n g1 = createEGenericType(this.getEList());\n g2 = createEGenericType(this.getPackageExport());\n g1.getETypeArguments().add(g2);\n addEParameter(op, g1, \"packageExports\", 0, 1, IS_UNIQUE, IS_ORDERED);\n\n op = addEOperation(bundleManifestEClass, null, \"getImportPackage\", 0, 1, IS_UNIQUE, IS_ORDERED);\n g1 = createEGenericType(ecorePackage.getEEList());\n g2 = createEGenericType(this.getPackageImport());\n g1.getETypeArguments().add(g2);\n initEOperation(op, g1);\n\n op = addEOperation(bundleManifestEClass, null, \"getImportPackage\", 0, 1, IS_UNIQUE, IS_ORDERED);\n addEParameter(op, ecorePackage.getEBoolean(), \"createOnDemand\", 0, 1, IS_UNIQUE, IS_ORDERED);\n g1 = createEGenericType(ecorePackage.getEEList());\n g2 = createEGenericType(this.getPackageImport());\n g1.getETypeArguments().add(g2);\n initEOperation(op, g1);\n\n op = addEOperation(bundleManifestEClass, null, \"setImportPackage\", 0, 1, IS_UNIQUE, IS_ORDERED);\n g1 = createEGenericType(this.getEList());\n g2 = createEGenericType(this.getPackageImport());\n g1.getETypeArguments().add(g2);\n addEParameter(op, g1, \"packageImports\", 0, 1, IS_UNIQUE, IS_ORDERED);\n\n op = addEOperation(bundleManifestEClass, null, \"getDynamicImportPackage\", 0, 1, IS_UNIQUE, IS_ORDERED);\n g1 = createEGenericType(ecorePackage.getEEList());\n g2 = createEGenericType(this.getDynamicPackageImport());\n g1.getETypeArguments().add(g2);\n initEOperation(op, g1);\n\n op = addEOperation(bundleManifestEClass, null, \"getDynamicImportPackage\", 0, 1, IS_UNIQUE, IS_ORDERED);\n addEParameter(op, ecorePackage.getEBoolean(), \"createOnDemand\", 0, 1, IS_UNIQUE, IS_ORDERED);\n g1 = createEGenericType(ecorePackage.getEEList());\n g2 = createEGenericType(this.getDynamicPackageImport());\n g1.getETypeArguments().add(g2);\n initEOperation(op, g1);\n\n op = addEOperation(bundleManifestEClass, null, \"setDynamicImportPackage\", 0, 1, IS_UNIQUE, IS_ORDERED);\n g1 = createEGenericType(this.getEList());\n g2 = createEGenericType(this.getDynamicPackageImport());\n g1.getETypeArguments().add(g2);\n addEParameter(op, g1, \"dynamicPackageImports\", 0, 1, IS_UNIQUE, IS_ORDERED);\n\n op = addEOperation(bundleManifestEClass, null, \"getRequireBundle\", 0, 1, IS_UNIQUE, IS_ORDERED);\n g1 = createEGenericType(ecorePackage.getEEList());\n g2 = createEGenericType(this.getBundleRequirement());\n g1.getETypeArguments().add(g2);\n initEOperation(op, g1);\n\n op = addEOperation(bundleManifestEClass, null, \"getRequireBundle\", 0, 1, IS_UNIQUE, IS_ORDERED);\n addEParameter(op, ecorePackage.getEBoolean(), \"createOnDemand\", 0, 1, IS_UNIQUE, IS_ORDERED);\n g1 = createEGenericType(ecorePackage.getEEList());\n g2 = createEGenericType(this.getBundleRequirement());\n g1.getETypeArguments().add(g2);\n initEOperation(op, g1);\n\n op = addEOperation(bundleManifestEClass, null, \"setRequireBundle\", 0, 1, IS_UNIQUE, IS_ORDERED);\n g1 = createEGenericType(this.getEList());\n g2 = createEGenericType(this.getBundleRequirement());\n g1.getETypeArguments().add(g2);\n addEParameter(op, g1, \"bundleRequirements\", 0, 1, IS_UNIQUE, IS_ORDERED);\n\n op = addEOperation(bundleManifestEClass, null, \"getBundleClassPath\", 0, 1, IS_UNIQUE, IS_ORDERED);\n g1 = createEGenericType(ecorePackage.getEEList());\n g2 = createEGenericType(this.getClassPathEntry());\n g1.getETypeArguments().add(g2);\n initEOperation(op, g1);\n\n op = addEOperation(bundleManifestEClass, null, \"getBundleClassPath\", 0, 1, IS_UNIQUE, IS_ORDERED);\n addEParameter(op, ecorePackage.getEBoolean(), \"createOnDemand\", 0, 1, IS_UNIQUE, IS_ORDERED);\n g1 = createEGenericType(ecorePackage.getEEList());\n g2 = createEGenericType(this.getClassPathEntry());\n g1.getETypeArguments().add(g2);\n initEOperation(op, g1);\n\n op = addEOperation(bundleManifestEClass, null, \"setBundleClassPath\", 0, 1, IS_UNIQUE, IS_ORDERED);\n g1 = createEGenericType(this.getEList());\n g2 = createEGenericType(this.getClassPathEntry());\n g1.getETypeArguments().add(g2);\n addEParameter(op, g1, \"classPathEntries\", 0, 1, IS_UNIQUE, IS_ORDERED);\n\n addEOperation(bundleManifestEClass, this.getBundleLicense(), \"getBundleLicense\", 0, -1, IS_UNIQUE, IS_ORDERED);\n\n op = addEOperation(bundleManifestEClass, this.getBundleLicense(), \"getBundleLicense\", 0, -1, IS_UNIQUE,\n IS_ORDERED);\n addEParameter(op, ecorePackage.getEBoolean(), \"createOnDemand\", 0, 1, IS_UNIQUE, IS_ORDERED);\n\n op = addEOperation(bundleManifestEClass, null, \"setBundleLicense\", 0, 1, IS_UNIQUE, IS_ORDERED);\n g1 = createEGenericType(this.getEList());\n g2 = createEGenericType(this.getBundleLicense());\n g1.getETypeArguments().add(g2);\n addEParameter(op, g1, \"bundleLicenses\", 0, 1, IS_UNIQUE, IS_ORDERED);\n\n initEClass(parameterizedEClass, Parameterized.class, \"Parameterized\", IS_ABSTRACT, !IS_INTERFACE,\n IS_GENERATED_INSTANCE_CLASS);\n initEReference(getParameterized_Parameters(), this.getParameter(), this.getParameter_Parameterized(),\n \"parameters\", null, 0, -1, Parameterized.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE,\n !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n op = addEOperation(parameterizedEClass, this.getParameter(), \"getParameter\", 0, 1, IS_UNIQUE, IS_ORDERED);\n addEParameter(op, ecorePackage.getEString(), \"name\", 0, 1, IS_UNIQUE, IS_ORDERED);\n\n op = addEOperation(parameterizedEClass, ecorePackage.getEString(), \"getParameterValue\", 0, 1, IS_UNIQUE,\n IS_ORDERED);\n addEParameter(op, ecorePackage.getEString(), \"name\", 0, 1, IS_UNIQUE, IS_ORDERED);\n\n op = addEOperation(parameterizedEClass, ecorePackage.getEJavaObject(), \"getParsedParameterValue\", 0, 1,\n IS_UNIQUE, IS_ORDERED);\n addEParameter(op, ecorePackage.getEString(), \"name\", 0, 1, IS_UNIQUE, IS_ORDERED);\n\n initEClass(parameterEClass, Parameter.class, \"Parameter\", !IS_ABSTRACT, !IS_INTERFACE,\n IS_GENERATED_INSTANCE_CLASS);\n initEAttribute(getParameter_Name(), ecorePackage.getEString(), \"name\", null, 1, 1, Parameter.class,\n !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEAttribute(getParameter_Quoted(), ecorePackage.getEBoolean(), \"quoted\", null, 0, 1, Parameter.class,\n !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEAttribute(getParameter_Type(), this.getParameterType(), \"type\", null, 1, 1, Parameter.class, !IS_TRANSIENT,\n !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEReference(getParameter_Parameterized(), this.getParameterized(), this.getParameterized_Parameters(),\n \"parameterized\", null, 0, 1, Parameter.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE,\n !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(bundleActivationPolicyEClass, BundleActivationPolicy.class, \"BundleActivationPolicy\", !IS_ABSTRACT,\n !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEAttribute(getBundleActivationPolicy_Policy(), this.getActivationPolicy(), \"policy\", \"eager\", 1, 1,\n BundleActivationPolicy.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE,\n !IS_DERIVED, IS_ORDERED);\n\n initEClass(packagesDeclarationEClass, PackagesDeclaration.class, \"PackagesDeclaration\", IS_ABSTRACT,\n !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEAttribute(getPackagesDeclaration_PackageNames(), ecorePackage.getEString(), \"packageNames\", null, 1, -1,\n PackagesDeclaration.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE,\n !IS_DERIVED, IS_ORDERED);\n\n initEClass(packageExportEClass, PackageExport.class, \"PackageExport\", !IS_ABSTRACT, !IS_INTERFACE,\n IS_GENERATED_INSTANCE_CLASS);\n\n addEOperation(packageExportEClass, this.getVersion(), \"getVersion\", 0, 1, IS_UNIQUE, IS_ORDERED);\n\n op = addEOperation(packageExportEClass, null, \"setVersion\", 0, 1, IS_UNIQUE, IS_ORDERED);\n addEParameter(op, this.getVersion(), \"version\", 0, 1, IS_UNIQUE, IS_ORDERED);\n\n initEClass(packageImportEClass, PackageImport.class, \"PackageImport\", !IS_ABSTRACT, !IS_INTERFACE,\n IS_GENERATED_INSTANCE_CLASS);\n\n addEOperation(packageImportEClass, this.getVersionRange(), \"getVersion\", 0, 1, IS_UNIQUE, IS_ORDERED);\n\n op = addEOperation(packageImportEClass, null, \"setVersion\", 0, 1, IS_UNIQUE, IS_ORDERED);\n addEParameter(op, this.getVersionRange(), \"version\", 0, 1, IS_UNIQUE, IS_ORDERED);\n\n initEClass(bundleRequirementEClass, BundleRequirement.class, \"BundleRequirement\", !IS_ABSTRACT, !IS_INTERFACE,\n IS_GENERATED_INSTANCE_CLASS);\n initEAttribute(getBundleRequirement_SymbolicNames(), ecorePackage.getEString(), \"symbolicNames\", null, 1, -1,\n BundleRequirement.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE,\n !IS_DERIVED, IS_ORDERED);\n\n addEOperation(bundleRequirementEClass, this.getVersionRange(), \"getBundleVersion\", 0, 1, IS_UNIQUE, IS_ORDERED);\n\n op = addEOperation(bundleRequirementEClass, null, \"setBundleVersion\", 0, 1, IS_UNIQUE, IS_ORDERED);\n addEParameter(op, this.getVersionRange(), \"bundleVersion\", 0, 1, IS_UNIQUE, IS_ORDERED);\n\n initEClass(bundleSymbolicNameEClass, BundleSymbolicName.class, \"BundleSymbolicName\", !IS_ABSTRACT, !IS_INTERFACE,\n IS_GENERATED_INSTANCE_CLASS);\n initEAttribute(getBundleSymbolicName_SymbolicName(), ecorePackage.getEString(), \"symbolicName\", null, 1, 1,\n BundleSymbolicName.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE,\n !IS_DERIVED, IS_ORDERED);\n\n addEOperation(bundleSymbolicNameEClass, ecorePackage.getEBoolean(), \"isSingleton\", 0, 1, IS_UNIQUE, IS_ORDERED);\n\n initEClass(classPathEntryEClass, ClassPathEntry.class, \"ClassPathEntry\", !IS_ABSTRACT, !IS_INTERFACE,\n IS_GENERATED_INSTANCE_CLASS);\n initEAttribute(getClassPathEntry_Paths(), ecorePackage.getEString(), \"paths\", null, 1, -1, ClassPathEntry.class,\n !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(fragmentHostEClass, FragmentHost.class, \"FragmentHost\", !IS_ABSTRACT, !IS_INTERFACE,\n IS_GENERATED_INSTANCE_CLASS);\n initEAttribute(getFragmentHost_SymbolicName(), ecorePackage.getEString(), \"symbolicName\", null, 1, 1,\n FragmentHost.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE,\n !IS_DERIVED, IS_ORDERED);\n\n addEOperation(fragmentHostEClass, this.getVersionRange(), \"getBundleVersion\", 0, 1, IS_UNIQUE, IS_ORDERED);\n\n op = addEOperation(fragmentHostEClass, null, \"setBundleVersion\", 0, 1, IS_UNIQUE, IS_ORDERED);\n addEParameter(op, this.getVersionRange(), \"bundleVersion\", 0, 1, IS_UNIQUE, IS_ORDERED);\n\n initEClass(dynamicPackageImportEClass, DynamicPackageImport.class, \"DynamicPackageImport\", !IS_ABSTRACT,\n !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\n addEOperation(dynamicPackageImportEClass, this.getVersionRange(), \"getVersion\", 0, 1, IS_UNIQUE, IS_ORDERED);\n\n op = addEOperation(dynamicPackageImportEClass, null, \"setVersion\", 0, 1, IS_UNIQUE, IS_ORDERED);\n addEParameter(op, this.getVersionRange(), \"version\", 0, 1, IS_UNIQUE, IS_ORDERED);\n\n addEOperation(dynamicPackageImportEClass, this.getVersionRange(), \"getBundleVersion\", 0, 1, IS_UNIQUE, IS_ORDERED);\n\n op = addEOperation(dynamicPackageImportEClass, null, \"setBundleVersion\", 0, 1, IS_UNIQUE, IS_ORDERED);\n addEParameter(op, this.getVersionRange(), \"bundleVersion\", 0, 1, IS_UNIQUE, IS_ORDERED);\n\n initEClass(bundleLicenseEClass, BundleLicense.class, \"BundleLicense\", !IS_ABSTRACT, !IS_INTERFACE,\n IS_GENERATED_INSTANCE_CLASS);\n initEAttribute(getBundleLicense_Name(), ecorePackage.getEString(), \"name\", null, 0, 1, BundleLicense.class,\n !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n addEOperation(bundleLicenseEClass, ecorePackage.getEString(), \"getDescription\", 0, 1, IS_UNIQUE, IS_ORDERED);\n\n op = addEOperation(bundleLicenseEClass, null, \"setDescription\", 0, 1, IS_UNIQUE, IS_ORDERED);\n addEParameter(op, ecorePackage.getEString(), \"description\", 0, 1, IS_UNIQUE, IS_ORDERED);\n\n addEOperation(bundleLicenseEClass, ecorePackage.getEString(), \"getLink\", 0, 1, IS_UNIQUE, IS_ORDERED);\n\n op = addEOperation(bundleLicenseEClass, null, \"setLink\", 0, 1, IS_UNIQUE, IS_ORDERED);\n addEParameter(op, ecorePackage.getEString(), \"link\", 0, 1, IS_UNIQUE, IS_ORDERED);\n\n // Initialize enums and add enum literals\n initEEnum(bundleHeaderNameEEnum, BundleHeaderName.class, \"BundleHeaderName\");\n addEEnumLiteral(bundleHeaderNameEEnum, BundleHeaderName.BUNDLE_ACTIVATIONPOLICY);\n addEEnumLiteral(bundleHeaderNameEEnum, BundleHeaderName.BUNDLE_ACTIVATOR);\n addEEnumLiteral(bundleHeaderNameEEnum, BundleHeaderName.BUNDLE_CATEGORY);\n addEEnumLiteral(bundleHeaderNameEEnum, BundleHeaderName.BUNDLE_CLASSPATH);\n addEEnumLiteral(bundleHeaderNameEEnum, BundleHeaderName.BUNDLE_CONTACTADRESS);\n addEEnumLiteral(bundleHeaderNameEEnum, BundleHeaderName.BUNDLE_COPYRIGHT);\n addEEnumLiteral(bundleHeaderNameEEnum, BundleHeaderName.BUNDLE_DESCRIPTION);\n addEEnumLiteral(bundleHeaderNameEEnum, BundleHeaderName.BUNDLE_DOCURL);\n addEEnumLiteral(bundleHeaderNameEEnum, BundleHeaderName.BUNDLE_ICON);\n addEEnumLiteral(bundleHeaderNameEEnum, BundleHeaderName.BUNDLE_LICENSE);\n addEEnumLiteral(bundleHeaderNameEEnum, BundleHeaderName.BUNDLE_LOCALIZATION);\n addEEnumLiteral(bundleHeaderNameEEnum, BundleHeaderName.BUNDLE_MANIFESTVERSION);\n addEEnumLiteral(bundleHeaderNameEEnum, BundleHeaderName.BUNDLE_NAME);\n addEEnumLiteral(bundleHeaderNameEEnum, BundleHeaderName.BUNDLE_NATIVECODE);\n addEEnumLiteral(bundleHeaderNameEEnum, BundleHeaderName.BUNDLE_REQUIREDEXECUTIONENVIRONMENT);\n addEEnumLiteral(bundleHeaderNameEEnum, BundleHeaderName.BUNDLE_SYMBOLICNAME);\n addEEnumLiteral(bundleHeaderNameEEnum, BundleHeaderName.BUNDLE_UPDATELOCATION);\n addEEnumLiteral(bundleHeaderNameEEnum, BundleHeaderName.BUNDLE_VENDOR);\n addEEnumLiteral(bundleHeaderNameEEnum, BundleHeaderName.BUNDLE_VERSION);\n addEEnumLiteral(bundleHeaderNameEEnum, BundleHeaderName.DYNAMICIMPORT_PACKAGE);\n addEEnumLiteral(bundleHeaderNameEEnum, BundleHeaderName.EXPORT_PACKAGE);\n addEEnumLiteral(bundleHeaderNameEEnum, BundleHeaderName.EXPORT_SERVICE);\n addEEnumLiteral(bundleHeaderNameEEnum, BundleHeaderName.FRAGMENT_HOST);\n addEEnumLiteral(bundleHeaderNameEEnum, BundleHeaderName.IMPORT_PACKAGE);\n addEEnumLiteral(bundleHeaderNameEEnum, BundleHeaderName.IMPORT_SERVICE);\n addEEnumLiteral(bundleHeaderNameEEnum, BundleHeaderName.PROVIDED_CAPABILITY);\n addEEnumLiteral(bundleHeaderNameEEnum, BundleHeaderName.REQUIRE_BUNDLE);\n addEEnumLiteral(bundleHeaderNameEEnum, BundleHeaderName.REQUIRE_CAPABILITY);\n\n initEEnum(activationPolicyEEnum, ActivationPolicy.class, \"ActivationPolicy\");\n addEEnumLiteral(activationPolicyEEnum, ActivationPolicy.EAGER);\n addEEnumLiteral(activationPolicyEEnum, ActivationPolicy.LAZY);\n\n initEEnum(parameterTypeEEnum, ParameterType.class, \"ParameterType\");\n addEEnumLiteral(parameterTypeEEnum, ParameterType.ATTRIBUTE);\n addEEnumLiteral(parameterTypeEEnum, ParameterType.DIRECTIVE);\n\n // Initialize data types\n initEDataType(eListEDataType, List.class, \"EList\", IS_SERIALIZABLE, !IS_GENERATED_INSTANCE_CLASS);\n initEDataType(versionEDataType, Version.class, \"Version\", IS_SERIALIZABLE, !IS_GENERATED_INSTANCE_CLASS);\n initEDataType(versionRangeEDataType, VersionRange.class, \"VersionRange\", IS_SERIALIZABLE,\n !IS_GENERATED_INSTANCE_CLASS);\n }", "title": "" }, { "docid": "b28a91df4cf97ef7d02254ba529b393e", "score": "0.61567026", "text": "public void initializePackageContents() {\n\t\tif (isInitialized) return;\n\t\tisInitialized = true;\n\n\t\t// Initialize package\n\t\tsetName(eNAME);\n\t\tsetNsPrefix(eNS_PREFIX);\n\t\tsetNsURI(eNS_URI);\n\n\t\t// Obtain other dependent packages\n\t\tOCCIPackage theOCCIPackage = (OCCIPackage)EPackage.Registry.INSTANCE.getEPackage(OCCIPackage.eNS_URI);\n\n\t\t// Create type parameters\n\n\t\t// Set bounds for type parameters\n\n\t\t// Add supertypes to classes\n\t\tapplicationEClass.getESuperTypes().add(theOCCIPackage.getResource());\n\t\tcomponentEClass.getESuperTypes().add(theOCCIPackage.getResource());\n\t\tcomponentlinkEClass.getESuperTypes().add(theOCCIPackage.getLink());\n\n\t\t// Initialize classes, features, and operations; add parameters\n\t\tinitEClass(applicationEClass, Application.class, \"Application\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getApplication_Name(), theOCCIPackage.getString(), \"name\", null, 1, 1, Application.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getApplication_Context(), this.getURL(), \"context\", null, 1, 1, Application.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getApplication_Url(), this.getURL(), \"url\", null, 1, 1, Application.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getApplication_State(), this.getStatus(), \"state\", null, 1, 1, Application.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getApplication_Message(), theOCCIPackage.getString(), \"message\", null, 0, 1, Application.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEOperation(getApplication__Start(), null, \"start\", 0, 1, IS_UNIQUE, IS_ORDERED);\n\n\t\tinitEOperation(getApplication__Stop(), null, \"stop\", 0, 1, IS_UNIQUE, IS_ORDERED);\n\n\t\tinitEClass(componentEClass, Component.class, \"Component\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getComponent_State(), this.getStatus(), \"state\", null, 1, 1, Component.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getComponent_Message(), theOCCIPackage.getString(), \"message\", null, 0, 1, Component.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEOperation(getComponent__Start(), null, \"start\", 0, 1, IS_UNIQUE, IS_ORDERED);\n\n\t\tinitEOperation(getComponent__Stop(), null, \"stop\", 0, 1, IS_UNIQUE, IS_ORDERED);\n\n\t\tinitEClass(componentlinkEClass, Componentlink.class, \"Componentlink\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\n\t\t// Initialize enums and add enum literals\n\t\tinitEEnum(statusEEnum, Status.class, \"Status\");\n\t\taddEEnumLiteral(statusEEnum, Status.ACTIVE);\n\t\taddEEnumLiteral(statusEEnum, Status.INACTIVE);\n\t\taddEEnumLiteral(statusEEnum, Status.ERROR);\n\n\t\t// Initialize data types\n\t\tinitEDataType(urlEDataType, java.net.URL.class, \"URL\", IS_SERIALIZABLE, !IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEDataType(uriEDataType, java.net.URI.class, \"URI\", IS_SERIALIZABLE, !IS_GENERATED_INSTANCE_CLASS);\n\n\t\t// Create resource\n\t\tcreateResource(eNS_URI);\n\n\t\t// Create annotations\n\t\t// OCCIE2Ecore\n\t\tcreateOCCIE2EcoreAnnotations();\n\t}", "title": "" }, { "docid": "b330865e83180ac7a7af8fca5ac7d25e", "score": "0.6150019", "text": "public void initializePackageContents()\n {\n if (isInitialized) return;\n isInitialized = true;\n\n // Initialize package\n setName(eNAME);\n setNsPrefix(eNS_PREFIX);\n setNsURI(eNS_URI);\n\n // Create type parameters\n\n // Set bounds for type parameters\n\n // Add supertypes to classes\n commandEClass.getESuperTypes().add(this.getAbstractBlock());\n variableDeclarationEClass.getESuperTypes().add(this.getCommand());\n compoundEClass.getESuperTypes().add(this.getAbstractBlock());\n variableAssignEClass.getESuperTypes().add(this.getCommand());\n bindHandlerEClass.getESuperTypes().add(this.getCommand());\n raiseEventEClass.getESuperTypes().add(this.getCommand());\n printOutputEClass.getESuperTypes().add(this.getCommand());\n readInputEClass.getESuperTypes().add(this.getCommand());\n ifThenElseEClass.getESuperTypes().add(this.getCommand());\n whileEClass.getESuperTypes().add(this.getCommand());\n andEClass.getESuperTypes().add(this.getExpression());\n orEClass.getESuperTypes().add(this.getExpression());\n leqEClass.getESuperTypes().add(this.getExpression());\n lessEClass.getESuperTypes().add(this.getExpression());\n eqEClass.getESuperTypes().add(this.getExpression());\n geqEClass.getESuperTypes().add(this.getExpression());\n gtrEClass.getESuperTypes().add(this.getExpression());\n plusEClass.getESuperTypes().add(this.getExpression());\n minusEClass.getESuperTypes().add(this.getExpression());\n multiEClass.getESuperTypes().add(this.getExpression());\n divEClass.getESuperTypes().add(this.getExpression());\n notEClass.getESuperTypes().add(this.getExpression());\n literalEClass.getESuperTypes().add(this.getExpression());\n variableReferenceEClass.getESuperTypes().add(this.getExpression());\n\n // Initialize classes and features; add operations and parameters\n initEClass(programEClass, Program.class, \"Program\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEReference(getProgram_Globals(), this.getGlobalSection(), null, \"globals\", null, 0, 1, Program.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEReference(getProgram_Events(), this.getEventSection(), null, \"events\", null, 0, 1, Program.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEReference(getProgram_Handlers(), this.getHandlerSection(), null, \"handlers\", null, 0, 1, Program.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEReference(getProgram_Init(), this.getAbstractBlock(), null, \"init\", null, 0, 1, Program.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(globalSectionEClass, GlobalSection.class, \"GlobalSection\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEReference(getGlobalSection_Globals(), this.getVariableDeclaration(), null, \"globals\", null, 0, -1, GlobalSection.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(eventSectionEClass, EventSection.class, \"EventSection\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEReference(getEventSection_Events(), this.getEventDecl(), null, \"events\", null, 0, -1, EventSection.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(handlerSectionEClass, HandlerSection.class, \"HandlerSection\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEReference(getHandlerSection_Handlers(), this.getHandlerDecl(), null, \"handlers\", null, 0, -1, HandlerSection.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(eventDeclEClass, EventDecl.class, \"EventDecl\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEAttribute(getEventDecl_Name(), ecorePackage.getEString(), \"name\", null, 0, 1, EventDecl.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEReference(getEventDecl_Params(), this.getVariableDeclaration(), null, \"params\", null, 0, -1, EventDecl.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(handlerDeclEClass, HandlerDecl.class, \"HandlerDecl\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEAttribute(getHandlerDecl_Name(), ecorePackage.getEString(), \"name\", null, 0, 1, HandlerDecl.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEReference(getHandlerDecl_BindParams(), this.getVariableDeclaration(), null, \"bindParams\", null, 0, -1, HandlerDecl.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEReference(getHandlerDecl_Params(), this.getVariableDeclaration(), null, \"params\", null, 0, -1, HandlerDecl.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEReference(getHandlerDecl_Body(), this.getAbstractBlock(), null, \"body\", null, 0, 1, HandlerDecl.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(abstractBlockEClass, AbstractBlock.class, \"AbstractBlock\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\n initEClass(commandEClass, Command.class, \"Command\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\n initEClass(variableDeclarationEClass, VariableDeclaration.class, \"VariableDeclaration\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEAttribute(getVariableDeclaration_Type(), this.getType(), \"type\", null, 0, 1, VariableDeclaration.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEAttribute(getVariableDeclaration_Name(), ecorePackage.getEString(), \"name\", null, 0, 1, VariableDeclaration.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(expressionEClass, Expression.class, \"Expression\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\n initEClass(compoundEClass, Compound.class, \"Compound\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEReference(getCompound_Body(), this.getAbstractBlock(), null, \"body\", null, 0, -1, Compound.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(variableAssignEClass, VariableAssign.class, \"VariableAssign\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEReference(getVariableAssign_Name(), this.getVariableDeclaration(), null, \"name\", null, 0, 1, VariableAssign.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEReference(getVariableAssign_Value(), this.getExpression(), null, \"value\", null, 0, 1, VariableAssign.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(bindHandlerEClass, BindHandler.class, \"BindHandler\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEReference(getBindHandler_EventName(), this.getEventDecl(), null, \"eventName\", null, 0, 1, BindHandler.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEReference(getBindHandler_HandlerName(), this.getHandlerDecl(), null, \"handlerName\", null, 0, 1, BindHandler.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEAttribute(getBindHandler_Consumable(), ecorePackage.getEBoolean(), \"consumable\", null, 0, 1, BindHandler.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEReference(getBindHandler_Consumability(), this.getExpression(), null, \"consumability\", null, 0, 1, BindHandler.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEReference(getBindHandler_BindParams(), this.getExpression(), null, \"bindParams\", null, 0, -1, BindHandler.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(raiseEventEClass, RaiseEvent.class, \"RaiseEvent\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEReference(getRaiseEvent_Event(), this.getEventDecl(), null, \"event\", null, 0, 1, RaiseEvent.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEReference(getRaiseEvent_Params(), this.getExpression(), null, \"params\", null, 0, -1, RaiseEvent.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(printOutputEClass, PrintOutput.class, \"PrintOutput\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEReference(getPrintOutput_Output(), this.getExpression(), null, \"output\", null, 0, 1, PrintOutput.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(readInputEClass, ReadInput.class, \"ReadInput\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEReference(getReadInput_Input(), this.getVariableDeclaration(), null, \"input\", null, 0, 1, ReadInput.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(ifThenElseEClass, IfThenElse.class, \"IfThenElse\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEReference(getIfThenElse_Condition(), this.getExpression(), null, \"condition\", null, 0, 1, IfThenElse.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEReference(getIfThenElse_ThenBlock(), this.getAbstractBlock(), null, \"thenBlock\", null, 0, 1, IfThenElse.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEAttribute(getIfThenElse_Balanced(), ecorePackage.getEBoolean(), \"balanced\", null, 0, 1, IfThenElse.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEReference(getIfThenElse_ElseBlock(), this.getAbstractBlock(), null, \"elseBlock\", null, 0, 1, IfThenElse.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(whileEClass, While.class, \"While\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEReference(getWhile_Condition(), this.getExpression(), null, \"condition\", null, 0, 1, While.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEReference(getWhile_Block(), this.getAbstractBlock(), null, \"block\", null, 0, 1, While.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(andEClass, And.class, \"And\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEReference(getAnd_Left(), this.getExpression(), null, \"left\", null, 0, 1, And.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEReference(getAnd_Right(), this.getExpression(), null, \"right\", null, 0, 1, And.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(orEClass, Or.class, \"Or\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEReference(getOr_Left(), this.getExpression(), null, \"left\", null, 0, 1, Or.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEReference(getOr_Right(), this.getExpression(), null, \"right\", null, 0, 1, Or.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(leqEClass, Leq.class, \"Leq\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEReference(getLeq_Left(), this.getExpression(), null, \"left\", null, 0, 1, Leq.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEReference(getLeq_Right(), this.getExpression(), null, \"right\", null, 0, 1, Leq.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(lessEClass, Less.class, \"Less\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEReference(getLess_Left(), this.getExpression(), null, \"left\", null, 0, 1, Less.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEReference(getLess_Right(), this.getExpression(), null, \"right\", null, 0, 1, Less.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(eqEClass, Eq.class, \"Eq\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEReference(getEq_Left(), this.getExpression(), null, \"left\", null, 0, 1, Eq.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEReference(getEq_Right(), this.getExpression(), null, \"right\", null, 0, 1, Eq.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(geqEClass, Geq.class, \"Geq\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEReference(getGeq_Left(), this.getExpression(), null, \"left\", null, 0, 1, Geq.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEReference(getGeq_Right(), this.getExpression(), null, \"right\", null, 0, 1, Geq.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(gtrEClass, Gtr.class, \"Gtr\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEReference(getGtr_Left(), this.getExpression(), null, \"left\", null, 0, 1, Gtr.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEReference(getGtr_Right(), this.getExpression(), null, \"right\", null, 0, 1, Gtr.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(plusEClass, Plus.class, \"Plus\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEReference(getPlus_Left(), this.getExpression(), null, \"left\", null, 0, 1, Plus.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEReference(getPlus_Right(), this.getExpression(), null, \"right\", null, 0, 1, Plus.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(minusEClass, Minus.class, \"Minus\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEReference(getMinus_Left(), this.getExpression(), null, \"left\", null, 0, 1, Minus.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEReference(getMinus_Right(), this.getExpression(), null, \"right\", null, 0, 1, Minus.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(multiEClass, Multi.class, \"Multi\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEReference(getMulti_Left(), this.getExpression(), null, \"left\", null, 0, 1, Multi.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEReference(getMulti_Right(), this.getExpression(), null, \"right\", null, 0, 1, Multi.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(divEClass, Div.class, \"Div\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEReference(getDiv_Left(), this.getExpression(), null, \"left\", null, 0, 1, Div.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEReference(getDiv_Right(), this.getExpression(), null, \"right\", null, 0, 1, Div.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(notEClass, Not.class, \"Not\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEReference(getNot_Cond(), this.getExpression(), null, \"cond\", null, 0, 1, Not.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(literalEClass, Literal.class, \"Literal\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEAttribute(getLiteral_Value(), ecorePackage.getEString(), \"value\", null, 0, 1, Literal.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(variableReferenceEClass, VariableReference.class, \"VariableReference\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEReference(getVariableReference_Var(), this.getVariableDeclaration(), null, \"var\", null, 0, 1, VariableReference.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n // Initialize enums and add enum literals\n initEEnum(typeEEnum, Type.class, \"Type\");\n addEEnumLiteral(typeEEnum, Type.TINT);\n addEEnumLiteral(typeEEnum, Type.TREAL);\n addEEnumLiteral(typeEEnum, Type.TBOOL);\n addEEnumLiteral(typeEEnum, Type.TSTRING);\n\n // Create resource\n createResource(eNS_URI);\n }", "title": "" }, { "docid": "44b85ec4c6ebf5ab67a04b4121b55177", "score": "0.61426514", "text": "public void initializePackageContents() {\r\n\t\tif (isInitialized) return;\r\n\t\tisInitialized = true;\r\n\r\n\t\t// Initialize package\r\n\t\tsetName(eNAME);\r\n\t\tsetNsPrefix(eNS_PREFIX);\r\n\t\tsetNsURI(eNS_URI);\r\n\r\n\t\t// Create type parameters\r\n\r\n\t\t// Set bounds for type parameters\r\n\r\n\t\t// Add supertypes to classes\r\n\t\tmicroserviceArchitectureEClass.getESuperTypes().add(this.getNamedElement());\r\n\t\tserviceEClass.getESuperTypes().add(this.getNamedElement());\r\n\t\tmodelEClass.getESuperTypes().add(this.getNamedElement());\r\n\t\tmodelEventEClass.getESuperTypes().add(this.getNamedElement());\r\n\t\taggregateServiceEClass.getESuperTypes().add(this.getService());\r\n\t\tviewServiceEClass.getESuperTypes().add(this.getService());\r\n\t\toperationEClass.getESuperTypes().add(this.getNamedElement());\r\n\t\tapiEClass.getESuperTypes().add(this.getNamedElement());\r\n\t\tcommandEClass.getESuperTypes().add(this.getNamedElement());\r\n\t\teventEClass.getESuperTypes().add(this.getNamedElement());\r\n\t\tinfoEClass.getESuperTypes().add(this.getNamedElement());\r\n\t\tstepEClass.getESuperTypes().add(this.getNamedElement());\r\n\t\tsagaEClass.getESuperTypes().add(this.getNamedElement());\r\n\t\tdataEClass.getESuperTypes().add(this.getNamedElement());\r\n\t\treferenceAttributeEClass.getESuperTypes().add(this.getAttribute());\r\n\t\tprimitiveTypeAttributeEClass.getESuperTypes().add(this.getAttribute());\r\n\r\n\t\t// Initialize classes, features, and operations; add parameters\r\n\t\tinitEClass(microserviceArchitectureEClass, MicroserviceArchitecture.class, \"MicroserviceArchitecture\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\r\n\t\tinitEReference(getMicroserviceArchitecture_Services(), this.getService(), null, \"services\", null, 0, -1, MicroserviceArchitecture.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\t\tinitEReference(getMicroserviceArchitecture_Models(), this.getModel(), null, \"models\", null, 0, -1, MicroserviceArchitecture.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\r\n\t\tinitEClass(serviceEClass, Service.class, \"Service\", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\r\n\t\tinitEAttribute(getService_Fullname(), ecorePackage.getEString(), \"fullname\", \"\", 0, 1, Service.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\t\tinitEAttribute(getService_Description(), ecorePackage.getEString(), \"description\", null, 0, 1, Service.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\t\tinitEAttribute(getService_Shortname(), ecorePackage.getEString(), \"shortname\", null, 0, 1, Service.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\t\tinitEAttribute(getService_Port(), ecorePackage.getEInt(), \"port\", \"8888\", 0, 1, Service.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\r\n\t\tinitEClass(modelEClass, Model.class, \"Model\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\r\n\t\tinitEReference(getModel_Attributes(), this.getAttribute(), this.getAttribute_Model(), \"attributes\", null, 1, -1, Model.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\r\n\t\tinitEClass(modelEventEClass, ModelEvent.class, \"ModelEvent\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\r\n\t\tinitEReference(getModelEvent_Model(), this.getModel(), null, \"model\", null, 1, 1, ModelEvent.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\t\tinitEReference(getModelEvent_AggregateService(), this.getAggregateService(), this.getAggregateService_ModelEvents(), \"aggregateService\", null, 0, 1, ModelEvent.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);\r\n\r\n\t\tinitEClass(aggregateServiceEClass, AggregateService.class, \"AggregateService\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\r\n\t\tinitEReference(getAggregateService_ModelEvents(), this.getModelEvent(), this.getModelEvent_AggregateService(), \"modelEvents\", null, 1, -1, AggregateService.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\t\tinitEReference(getAggregateService_Operation(), this.getOperation(), this.getOperation_AggregateService(), \"operation\", null, 1, -1, AggregateService.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\t\tinitEReference(getAggregateService_Api(), this.getAPI(), null, \"api\", null, 1, 1, AggregateService.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\t\tinitEReference(getAggregateService_HandleModelEvents(), this.getModelEvent(), null, \"handleModelEvents\", null, 0, -1, AggregateService.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\t\tinitEReference(getAggregateService_Models(), this.getModel(), null, \"models\", null, 1, -1, AggregateService.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\r\n\t\tinitEOperation(getAggregateService__ReferenceModelsIncluded(), ecorePackage.getEBoolean(), \"ReferenceModelsIncluded\", 0, 1, IS_UNIQUE, !IS_ORDERED);\r\n\r\n\t\tinitEClass(viewServiceEClass, ViewService.class, \"ViewService\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\r\n\t\tinitEReference(getViewService_ReplicateServices(), this.getAggregateService(), null, \"replicateServices\", null, 0, -1, ViewService.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\r\n\t\tinitEClass(operationEClass, Operation.class, \"Operation\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\r\n\t\tinitEAttribute(getOperation_OperationType(), this.getCRUDOperation(), \"operationType\", null, 0, 1, Operation.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\t\tinitEReference(getOperation_Publish(), this.getEvent(), null, \"publish\", null, 0, 1, Operation.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\t\tinitEReference(getOperation_Saga(), this.getSaga(), null, \"Saga\", null, 0, 1, Operation.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\t\tinitEReference(getOperation_Model(), this.getModel(), null, \"model\", null, 1, 1, Operation.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\t\tinitEAttribute(getOperation_IsMethodController(), ecorePackage.getEBoolean(), \"isMethodController\", null, 0, 1, Operation.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\t\tinitEReference(getOperation_AggregateService(), this.getAggregateService(), this.getAggregateService_Operation(), \"aggregateService\", null, 0, 1, Operation.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);\r\n\r\n\t\tinitEClass(namedElementEClass, NamedElement.class, \"NamedElement\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\r\n\t\tinitEAttribute(getNamedElement_Name(), ecorePackage.getEString(), \"name\", null, 0, 1, NamedElement.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\r\n\t\tinitEClass(apiEClass, micro.API.class, \"API\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\r\n\t\tinitEReference(getAPI_Events(), this.getEvent(), this.getEvent_Api(), \"events\", null, 1, -1, micro.API.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\t\tinitEReference(getAPI_Commands(), this.getCommand(), this.getCommand_Api(), \"commands\", null, 1, -1, micro.API.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\t\tinitEReference(getAPI_Infos(), this.getInfo(), this.getInfo_Api(), \"infos\", null, 1, -1, micro.API.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\r\n\t\tinitEClass(commandEClass, Command.class, \"Command\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\r\n\t\tinitEAttribute(getCommand_CommandType(), this.getCommandType(), \"commandType\", null, 0, 1, Command.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\t\tinitEReference(getCommand_ReplyInfo(), this.getInfo(), null, \"replyInfo\", null, 0, 1, Command.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\t\tinitEAttribute(getCommand_IsReplyInfoMany(), ecorePackage.getEBoolean(), \"isReplyInfoMany\", null, 0, 1, Command.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\t\tinitEReference(getCommand_Api(), this.getAPI(), this.getAPI_Commands(), \"api\", null, 0, 1, Command.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);\r\n\r\n\t\tinitEClass(eventEClass, Event.class, \"Event\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\r\n\t\tinitEReference(getEvent_Api(), this.getAPI(), this.getAPI_Events(), \"api\", null, 0, 1, Event.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);\r\n\r\n\t\tinitEClass(infoEClass, Info.class, \"Info\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\r\n\t\tinitEReference(getInfo_Dto(), this.getModel(), null, \"dto\", null, 0, 1, Info.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\t\tinitEReference(getInfo_Api(), this.getAPI(), this.getAPI_Infos(), \"api\", null, 0, 1, Info.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);\r\n\r\n\t\tinitEClass(stepEClass, Step.class, \"Step\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\r\n\t\tinitEReference(getStep_Commands(), this.getCommand(), null, \"commands\", null, 1, -1, Step.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\r\n\t\tinitEClass(sagaEClass, Saga.class, \"Saga\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\r\n\t\tinitEReference(getSaga_Steps(), this.getStep(), null, \"Steps\", null, 1, -1, Saga.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\t\tinitEReference(getSaga_Data(), this.getData(), null, \"Data\", null, 1, 1, Saga.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\r\n\t\tinitEClass(dataEClass, Data.class, \"Data\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\r\n\r\n\t\tinitEClass(attributeEClass, Attribute.class, \"Attribute\", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\r\n\t\tinitEAttribute(getAttribute_Name(), ecorePackage.getEString(), \"name\", null, 0, 1, Attribute.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\t\tinitEAttribute(getAttribute_IsMany(), ecorePackage.getEBoolean(), \"isMany\", null, 0, 1, Attribute.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\t\tinitEAttribute(getAttribute_IsId(), ecorePackage.getEBoolean(), \"isId\", null, 0, 1, Attribute.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\t\tinitEAttribute(getAttribute_IsGenerated(), ecorePackage.getEBoolean(), \"isGenerated\", null, 0, 1, Attribute.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\t\tinitEReference(getAttribute_Model(), this.getModel(), this.getModel_Attributes(), \"model\", null, 0, 1, Attribute.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);\r\n\r\n\t\tinitEClass(referenceAttributeEClass, ReferenceAttribute.class, \"ReferenceAttribute\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\r\n\t\tinitEReference(getReferenceAttribute_Type(), this.getModel(), null, \"type\", null, 1, 1, ReferenceAttribute.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\r\n\t\tinitEClass(primitiveTypeAttributeEClass, PrimitiveTypeAttribute.class, \"PrimitiveTypeAttribute\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\r\n\t\tinitEAttribute(getPrimitiveTypeAttribute_Type(), this.getAttributePrimitiveValue(), \"type\", null, 1, 1, PrimitiveTypeAttribute.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\t\tinitEReference(getPrimitiveTypeAttribute_ModelToView(), this.getModel(), null, \"ModelToView\", null, 0, 1, PrimitiveTypeAttribute.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\r\n\t\t// Initialize enums and add enum literals\r\n\t\tinitEEnum(crudOperationEEnum, CRUDOperation.class, \"CRUDOperation\");\r\n\t\taddEEnumLiteral(crudOperationEEnum, CRUDOperation.CREATE);\r\n\t\taddEEnumLiteral(crudOperationEEnum, CRUDOperation.UPDATE);\r\n\t\taddEEnumLiteral(crudOperationEEnum, CRUDOperation.DELETE);\r\n\t\taddEEnumLiteral(crudOperationEEnum, CRUDOperation.RETRIEVE);\r\n\r\n\t\tinitEEnum(commandTypeEEnum, CommandType.class, \"CommandType\");\r\n\t\taddEEnumLiteral(commandTypeEEnum, CommandType.COMPENSATE);\r\n\t\taddEEnumLiteral(commandTypeEEnum, CommandType.INVOKE);\r\n\t\taddEEnumLiteral(commandTypeEEnum, CommandType.REPLY);\r\n\r\n\t\tinitEEnum(attributePrimitiveValueEEnum, AttributePrimitiveValue.class, \"AttributePrimitiveValue\");\r\n\t\taddEEnumLiteral(attributePrimitiveValueEEnum, AttributePrimitiveValue.STRING);\r\n\t\taddEEnumLiteral(attributePrimitiveValueEEnum, AttributePrimitiveValue.INT);\r\n\t\taddEEnumLiteral(attributePrimitiveValueEEnum, AttributePrimitiveValue.BOOLEAN);\r\n\t\taddEEnumLiteral(attributePrimitiveValueEEnum, AttributePrimitiveValue.CHAR);\r\n\t\taddEEnumLiteral(attributePrimitiveValueEEnum, AttributePrimitiveValue.FLOAT);\r\n\t\taddEEnumLiteral(attributePrimitiveValueEEnum, AttributePrimitiveValue.LONG);\r\n\t\taddEEnumLiteral(attributePrimitiveValueEEnum, AttributePrimitiveValue.SHORT);\r\n\r\n\t\t// Create resource\r\n\t\tcreateResource(eNS_URI);\r\n\r\n\t\t// Create annotations\r\n\t\t// http://www.eclipse.org/emf/2002/Ecore\r\n\t\tcreateEcoreAnnotations();\r\n\t\t// http://www.eclipse.org/emf/2002/Ecore/OCL/Pivot\r\n\t\tcreatePivotAnnotations();\r\n\t}", "title": "" }, { "docid": "16b000fd5fe644514d1d1f4f08813c67", "score": "0.61378324", "text": "public void initializePackageContents() {\n\t\tif (isInitialized)\n\t\t\treturn;\n\t\tisInitialized = true;\n\n\t\t// Initialize package\n\t\tsetName(eNAME);\n\t\tsetNsPrefix(eNS_PREFIX);\n\t\tsetNsURI(eNS_URI);\n\n\t\t// Create type parameters\n\n\t\t// Set bounds for type parameters\n\n\t\t// Add supertypes to classes\n\t\tpullEClass.getESuperTypes().add(this.getUpdatePolicy());\n\t\tpushEClass.getESuperTypes().add(this.getUpdatePolicy());\n\t\tpredefinedGeoFenceEClass.getESuperTypes().add(this.getGeoFence());\n\t\tfencedTriggerEClass.getESuperTypes().add(this.getTrigger());\n\t\tonEnteringEClass.getESuperTypes().add(this.getFencedTrigger());\n\t\tonLeavingEClass.getESuperTypes().add(this.getFencedTrigger());\n\t\tinsideEClass.getESuperTypes().add(this.getPeriodicFencedTrigger());\n\t\toutsideEClass.getESuperTypes().add(this.getPeriodicFencedTrigger());\n\t\tperiodicTriggerEClass.getESuperTypes().add(this.getTrigger());\n\t\tperiodicFencedTriggerEClass.getESuperTypes().add(\n\t\t\t\tthis.getPeriodicTrigger());\n\t\tperiodicFencedTriggerEClass.getESuperTypes().add(\n\t\t\t\tthis.getFencedTrigger());\n\n\t\t// Initialize classes, features, and operations; add parameters\n\t\tinitEClass(appEClass, App.class, \"App\", !IS_ABSTRACT, !IS_INTERFACE,\n\t\t\t\tIS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getApp_Map(), this.getMap(), null, \"map\", null, 1, 1,\n\t\t\t\tApp.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE,\n\t\t\t\tIS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE,\n\t\t\t\t!IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getApp_ContactList(), this.getContactList(), null,\n\t\t\t\t\"contactList\", null, 1, 1, App.class, !IS_TRANSIENT,\n\t\t\t\t!IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES,\n\t\t\t\t!IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getApp_UpdatePolicy(), this.getUpdatePolicy(), null,\n\t\t\t\t\"updatePolicy\", null, 1, 1, App.class, !IS_TRANSIENT,\n\t\t\t\t!IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES,\n\t\t\t\t!IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getApp_GeoFences(), this.getGeoFence(), null,\n\t\t\t\t\"geoFences\", null, 0, -1, App.class, !IS_TRANSIENT,\n\t\t\t\t!IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES,\n\t\t\t\t!IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getApp_Name(), ecorePackage.getEString(), \"name\", null,\n\t\t\t\t1, 1, App.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE,\n\t\t\t\t!IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);\n\n\t\tinitEClass(mapEClass, Map.class, \"Map\", !IS_ABSTRACT, !IS_INTERFACE,\n\t\t\t\tIS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getMap_History(), ecorePackage.getEInt(), \"history\",\n\t\t\t\tnull, 1, 1, Map.class, !IS_TRANSIENT, !IS_VOLATILE,\n\t\t\t\tIS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED,\n\t\t\t\t!IS_ORDERED);\n\t\tinitEAttribute(getMap_Routing(), ecorePackage.getEBoolean(), \"routing\",\n\t\t\t\tnull, 1, 1, Map.class, !IS_TRANSIENT, !IS_VOLATILE,\n\t\t\t\tIS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED,\n\t\t\t\t!IS_ORDERED);\n\t\tinitEAttribute(getMap_Range(), ecorePackage.getEDouble(), \"range\",\n\t\t\t\tnull, 1, 1, Map.class, !IS_TRANSIENT, !IS_VOLATILE,\n\t\t\t\tIS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED,\n\t\t\t\t!IS_ORDERED);\n\n\t\tinitEClass(contactListEClass, ContactList.class, \"ContactList\",\n\t\t\t\t!IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getContactList_Contacts(), this.getPrefilledContact(),\n\t\t\t\tnull, \"contacts\", null, 0, -1, ContactList.class,\n\t\t\t\t!IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE,\n\t\t\t\t!IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED,\n\t\t\t\tIS_ORDERED);\n\t\tinitEAttribute(getContactList_Locked(), ecorePackage.getEBoolean(),\n\t\t\t\t\"locked\", null, 1, 1, ContactList.class, !IS_TRANSIENT,\n\t\t\t\t!IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE,\n\t\t\t\t!IS_DERIVED, !IS_ORDERED);\n\n\t\tinitEClass(prefilledContactEClass, PrefilledContact.class,\n\t\t\t\t\"PrefilledContact\", !IS_ABSTRACT, !IS_INTERFACE,\n\t\t\t\tIS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getPrefilledContact_Name(), ecorePackage.getEString(),\n\t\t\t\t\"name\", null, 1, 1, PrefilledContact.class, !IS_TRANSIENT,\n\t\t\t\t!IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE,\n\t\t\t\t!IS_DERIVED, !IS_ORDERED);\n\t\tinitEAttribute(getPrefilledContact_Number(), ecorePackage.getEInt(),\n\t\t\t\t\"number\", null, 1, 1, PrefilledContact.class, !IS_TRANSIENT,\n\t\t\t\t!IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE,\n\t\t\t\t!IS_DERIVED, !IS_ORDERED);\n\n\t\tinitEClass(updatePolicyEClass, UpdatePolicy.class, \"UpdatePolicy\",\n\t\t\t\tIS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\n\t\tinitEClass(pullEClass, Pull.class, \"Pull\", !IS_ABSTRACT, !IS_INTERFACE,\n\t\t\t\tIS_GENERATED_INSTANCE_CLASS);\n\n\t\tinitEClass(pushEClass, Push.class, \"Push\", !IS_ABSTRACT, !IS_INTERFACE,\n\t\t\t\tIS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getPush_Trigger(), this.getTrigger(), null, \"trigger\",\n\t\t\t\tnull, 1, -1, Push.class, !IS_TRANSIENT, !IS_VOLATILE,\n\t\t\t\tIS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES,\n\t\t\t\t!IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(geoFenceEClass, GeoFence.class, \"GeoFence\", !IS_ABSTRACT,\n\t\t\t\t!IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getGeoFence_Name(), ecorePackage.getEString(), \"name\",\n\t\t\t\tnull, 1, 1, GeoFence.class, !IS_TRANSIENT, !IS_VOLATILE,\n\t\t\t\tIS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED,\n\t\t\t\t!IS_ORDERED);\n\t\tinitEAttribute(getGeoFence_Radius(), ecorePackage.getEDouble(),\n\t\t\t\t\"radius\", null, 1, 1, GeoFence.class, !IS_TRANSIENT,\n\t\t\t\t!IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE,\n\t\t\t\t!IS_DERIVED, !IS_ORDERED);\n\n\t\tinitEClass(predefinedGeoFenceEClass, PredefinedGeoFence.class,\n\t\t\t\t\"PredefinedGeoFence\", !IS_ABSTRACT, !IS_INTERFACE,\n\t\t\t\tIS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getPredefinedGeoFence_Longitude(),\n\t\t\t\tecorePackage.getEDouble(), \"longitude\", null, 1, 1,\n\t\t\t\tPredefinedGeoFence.class, !IS_TRANSIENT, !IS_VOLATILE,\n\t\t\t\tIS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED,\n\t\t\t\t!IS_ORDERED);\n\t\tinitEAttribute(getPredefinedGeoFence_Latitude(),\n\t\t\t\tecorePackage.getEDouble(), \"latitude\", null, 1, 1,\n\t\t\t\tPredefinedGeoFence.class, !IS_TRANSIENT, !IS_VOLATILE,\n\t\t\t\tIS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED,\n\t\t\t\t!IS_ORDERED);\n\n\t\tinitEClass(triggerEClass, Trigger.class, \"Trigger\", IS_ABSTRACT,\n\t\t\t\t!IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\n\t\tinitEClass(fencedTriggerEClass, FencedTrigger.class, \"FencedTrigger\",\n\t\t\t\tIS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getFencedTrigger_GeoFence(), this.getGeoFence(), null,\n\t\t\t\t\"geoFence\", null, 1, 1, FencedTrigger.class, !IS_TRANSIENT,\n\t\t\t\t!IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES,\n\t\t\t\t!IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(onEnteringEClass, OnEntering.class, \"OnEntering\",\n\t\t\t\t!IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\n\t\tinitEClass(onLeavingEClass, OnLeaving.class, \"OnLeaving\", !IS_ABSTRACT,\n\t\t\t\t!IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\n\t\tinitEClass(insideEClass, Inside.class, \"Inside\", !IS_ABSTRACT,\n\t\t\t\t!IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\n\t\tinitEClass(outsideEClass, Outside.class, \"Outside\", !IS_ABSTRACT,\n\t\t\t\t!IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\n\t\tinitEClass(periodicTriggerEClass, PeriodicTrigger.class,\n\t\t\t\t\"PeriodicTrigger\", !IS_ABSTRACT, !IS_INTERFACE,\n\t\t\t\tIS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getPeriodicTrigger_Day(), this.getDay(), \"day\", null, 1,\n\t\t\t\t1, PeriodicTrigger.class, !IS_TRANSIENT, !IS_VOLATILE,\n\t\t\t\tIS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED,\n\t\t\t\t!IS_ORDERED);\n\t\tinitEAttribute(getPeriodicTrigger_Value(), ecorePackage.getEString(),\n\t\t\t\t\"value\", null, 1, 1, PeriodicTrigger.class, !IS_TRANSIENT,\n\t\t\t\t!IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE,\n\t\t\t\t!IS_DERIVED, !IS_ORDERED);\n\n\t\tinitEClass(periodicFencedTriggerEClass, PeriodicFencedTrigger.class,\n\t\t\t\t\"PeriodicFencedTrigger\", IS_ABSTRACT, !IS_INTERFACE,\n\t\t\t\tIS_GENERATED_INSTANCE_CLASS);\n\n\t\t// Initialize enums and add enum literals\n\t\tinitEEnum(dayEEnum, Day.class, \"Day\");\n\t\taddEEnumLiteral(dayEEnum, Day.EVERYDAY);\n\t\taddEEnumLiteral(dayEEnum, Day.MONDAY);\n\t\taddEEnumLiteral(dayEEnum, Day.TUESDAY);\n\t\taddEEnumLiteral(dayEEnum, Day.WEDNESDAY);\n\t\taddEEnumLiteral(dayEEnum, Day.THURSDAY);\n\t\taddEEnumLiteral(dayEEnum, Day.FRIDAY);\n\t\taddEEnumLiteral(dayEEnum, Day.SATURDAY);\n\t\taddEEnumLiteral(dayEEnum, Day.SUNDAY);\n\t\taddEEnumLiteral(dayEEnum, Day.WEEKDAY);\n\t\taddEEnumLiteral(dayEEnum, Day.WEEKEND);\n\n\t\t// Create resource\n\t\tcreateResource(eNS_URI);\n\t}", "title": "" }, { "docid": "cd87a30b2ee6d2191bc661c967a773b6", "score": "0.61351925", "text": "public void initializePackageContents() {\n\t\tif (isInitialized) return;\n\t\tisInitialized = true;\n\n\t\t// Initialize package\n\t\tsetName(eNAME);\n\t\tsetNsPrefix(eNS_PREFIX);\n\t\tsetNsURI(eNS_URI);\n\n\t\t// Obtain other dependent packages\n\t\tEmfFragPackage theEmfFragPackage = (EmfFragPackage)EPackage.Registry.INSTANCE.getEPackage(EmfFragPackage.eNS_URI);\n\n\t\t// Create type parameters\n\n\t\t// Set bounds for type parameters\n\n\t\t// Add supertypes to classes\n\t\tEGenericType g1 = createEGenericType(theEmfFragPackage.getIndexedMap());\n\t\tEGenericType g2 = createEGenericType(ecorePackage.getEString());\n\t\tg1.getETypeArguments().add(g2);\n\t\tg2 = createEGenericType(this.getTestObject());\n\t\tg1.getETypeArguments().add(g2);\n\t\ttestObjectIndexEClass.getEGenericSuperTypes().add(g1);\n\t\tg1 = createEGenericType(theEmfFragPackage.getContainmentIndexedMap());\n\t\tg2 = createEGenericType(ecorePackage.getEString());\n\t\tg1.getETypeArguments().add(g2);\n\t\tg2 = createEGenericType(this.getTestObject());\n\t\tg1.getETypeArguments().add(g2);\n\t\ttestContainmentIndexEClass.getEGenericSuperTypes().add(g1);\n\t\ttestObjectWithIndexesEClass.getESuperTypes().add(this.getTestObject());\n\n\t\t// Initialize classes and features; add operations and parameters\n\t\tinitEClass(testObjectEClass, TestObject.class, \"TestObject\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getTestObject_Name(), ecorePackage.getEString(), \"name\", null, 0, 1, TestObject.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getTestObject_RegularContents(), this.getTestObject(), null, \"regularContents\", null, 0, -1, TestObject.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getTestObject_FragmentedContents(), this.getTestObject(), null, \"fragmentedContents\", null, 0, -1, TestObject.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getTestObject_CrossReferences(), this.getTestObject(), null, \"crossReferences\", null, 0, -1, TestObject.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getTestObject_EnumAttribute(), this.getTestEnum(), \"enumAttribute\", null, 0, 1, TestObject.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(testObjectIndexEClass, TestObjectIndex.class, \"TestObjectIndex\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\n\t\tinitEClass(testContainmentIndexEClass, TestContainmentIndex.class, \"TestContainmentIndex\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\n\t\tinitEClass(testObjectWithIndexesEClass, TestObjectWithIndexes.class, \"TestObjectWithIndexes\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getTestObjectWithIndexes_IndexedReferences(), this.getTestObject(), null, \"indexedReferences\", null, 0, -1, TestObjectWithIndexes.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getTestObjectWithIndexes_IndexedContents(), this.getTestObject(), null, \"indexedContents\", null, 0, -1, TestObjectWithIndexes.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\t// Initialize enums and add enum literals\n\t\tinitEEnum(testEnumEEnum, TestEnum.class, \"TestEnum\");\n\t\taddEEnumLiteral(testEnumEEnum, TestEnum.LITERAL1);\n\t\taddEEnumLiteral(testEnumEEnum, TestEnum.LITERAL2);\n\n\t\t// Create resource\n\t\tcreateResource(eNS_URI);\n\n\t\t// Create annotations\n\t\t// de.hub.emffrag\n\t\tcreateDeAnnotations();\n\t}", "title": "" }, { "docid": "1c9703a200f3600765c09ae01e67f985", "score": "0.61340696", "text": "public void initializePackageContents() {\n\t\tif (isInitialized) return;\n\t\tisInitialized = true;\n\n\t\t// Initialize package\n\t\tsetName(eNAME);\n\t\tsetNsPrefix(eNS_PREFIX);\n\t\tsetNsURI(eNS_URI);\n\n\t\t// Create type parameters\n\n\t\t// Set bounds for type parameters\n\n\t\t// Add supertypes to classes\n\t\tcaptainEClass.getESuperTypes().add(this.getPlayer());\n\t\tplayerEClass.getESuperTypes().add(this.getAbstractEntity());\n\t\tumpireEClass.getESuperTypes().add(this.getAbstractEntity());\n\t\tvenueEClass.getESuperTypes().add(this.getAbstractEntity());\n\t\tviceCaptainEClass.getESuperTypes().add(this.getPlayer());\n\t\twicketKeeperEClass.getESuperTypes().add(this.getPlayer());\n\n\t\t// Initialize classes, features, and operations; add parameters\n\t\tinitEClass(abstractEntityEClass, AbstractEntity.class, \"AbstractEntity\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getAbstractEntity_Name(), ecorePackage.getEString(), \"name\", null, 0, 1, AbstractEntity.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(captainEClass, Captain.class, \"Captain\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\n\t\tinitEClass(matchEClass, Match.class, \"Match\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getMatch_Veue(), this.getVenue(), null, \"veue\", null, 0, 1, Match.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMatch_MatchDate(), ecorePackage.getEDate(), \"matchDate\", null, 0, 1, Match.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMatch_Overs(), ecorePackage.getEIntegerObject(), \"overs\", null, 0, 1, Match.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getMatch_TeamA(), this.getTeam(), null, \"teamA\", null, 0, 1, Match.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getMatch_TeamB(), this.getTeam(), null, \"teamB\", null, 0, 1, Match.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMatch_Toss(), this.getToss(), \"toss\", null, 0, 1, Match.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getMatch_Umpires(), this.getUmpire(), null, \"umpires\", null, 0, -1, Match.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMatch_Result(), this.getMatchResult(), \"result\", null, 0, 1, Match.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(playerEClass, Player.class, \"Player\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getPlayer_Team(), this.getTeam(), null, \"team\", null, 0, 1, Player.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEOperation(getPlayer__CanBowl(), ecorePackage.getEBooleanObject(), \"canBowl\", 0, 1, IS_UNIQUE, IS_ORDERED);\n\n\t\tinitEClass(teamEClass, Team.class, \"Team\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getTeam_Name(), ecorePackage.getEString(), \"name\", null, 0, 1, Team.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getTeam_Batsmen(), this.getPlayer(), null, \"batsmen\", null, 0, -1, Team.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getTeam_Bowlers(), this.getPlayer(), null, \"bowlers\", null, 0, -1, Team.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getTeam_Captain(), this.getCaptain(), null, \"captain\", null, 0, 1, Team.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getTeam_ViceCaptain(), this.getViceCaptain(), null, \"viceCaptain\", null, 0, 1, Team.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getTeam_WicketKeeper(), this.getWicketKeeper(), null, \"wicketKeeper\", null, 0, 1, Team.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEOperation(getTeam__Get12thMan(), this.getPlayer(), \"get12thMan\", 0, 1, IS_UNIQUE, IS_ORDERED);\n\n\t\tinitEClass(tournamentEClass, Tournament.class, \"Tournament\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getTournament_Teams(), this.getTeam(), null, \"teams\", null, 0, -1, Tournament.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getTournament_Venues(), this.getVenue(), null, \"venues\", null, 0, -1, Tournament.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getTournament_Matches(), this.getMatch(), null, \"matches\", null, 0, -1, Tournament.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(umpireEClass, Umpire.class, \"Umpire\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\n\t\tinitEClass(venueEClass, Venue.class, \"Venue\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\n\t\tinitEClass(viceCaptainEClass, ViceCaptain.class, \"ViceCaptain\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\n\t\tinitEClass(wicketKeeperEClass, WicketKeeper.class, \"WicketKeeper\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\n\t\t// Initialize enums and add enum literals\n\t\tinitEEnum(matchResultEEnum, MatchResult.class, \"MatchResult\");\n\t\taddEEnumLiteral(matchResultEEnum, MatchResult.TIE);\n\t\taddEEnumLiteral(matchResultEEnum, MatchResult.ABANDONED);\n\t\taddEEnumLiteral(matchResultEEnum, MatchResult.WINNER_A);\n\t\taddEEnumLiteral(matchResultEEnum, MatchResult.WINNER_B);\n\t\taddEEnumLiteral(matchResultEEnum, MatchResult.UNDER_PROGRESS);\n\n\t\tinitEEnum(tossEEnum, Toss.class, \"Toss\");\n\t\taddEEnumLiteral(tossEEnum, Toss.TEAM_A);\n\t\taddEEnumLiteral(tossEEnum, Toss.TEAM_B);\n\n\t\t// Create resource\n\t\tcreateResource(eNS_URI);\n\t}", "title": "" }, { "docid": "eed39c1ee530b398fcc91fe01c19aaec", "score": "0.61217636", "text": "public void initializePackageContents() {\n\t\tif (isInitialized) return;\n\t\tisInitialized = true;\n\n\t\t// Initialize package\n\t\tsetName(eNAME);\n\t\tsetNsPrefix(eNS_PREFIX);\n\t\tsetNsURI(eNS_URI);\n\n\t\t// Obtain other dependent packages\n\t\tEcorePackage theEcorePackage = (EcorePackage)EPackage.Registry.INSTANCE.getEPackage(EcorePackage.eNS_URI);\n\n\t\t// Create type parameters\n\n\t\t// Set bounds for type parameters\n\n\t\t// Add supertypes to classes\n\n\t\t// Initialize classes, features, and operations; add parameters\n\t\tinitEClass(traceEClass, Trace.class, \"Trace\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getTrace_States(), this.getExecutionState(), null, \"states\", null, 0, -1, Trace.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getTrace_TracedObjects(), this.getTracedObject(), null, \"tracedObjects\", null, 0, -1, Trace.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getTrace_CurrentState(), this.getExecutionState(), null, \"currentState\", null, 0, 1, Trace.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getTrace_CurrentStep(), this.getStep(), null, \"currentStep\", null, 0, 1, Trace.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(valueSequenceEClass, ValueSequence.class, \"ValueSequence\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getValueSequence_Values(), this.getValue(), null, \"values\", null, 0, -1, ValueSequence.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getValueSequence_Current(), this.getValue(), null, \"current\", null, 0, 1, ValueSequence.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getValueSequence_TracedProperty(), theEcorePackage.getEStructuralFeature(), null, \"tracedProperty\", null, 1, 1, ValueSequence.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(valueEClass, Value.class, \"Value\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getValue_ExecutionStates(), this.getExecutionState(), this.getExecutionState_Values(), \"executionStates\", null, 0, -1, Value.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getValue_NextValue(), this.getValue(), this.getValue_PreviousValue(), \"nextValue\", null, 0, 1, Value.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getValue_PreviousValue(), this.getValue(), this.getValue_NextValue(), \"previousValue\", null, 0, 1, Value.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(executionStateEClass, ExecutionState.class, \"ExecutionState\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getExecutionState_Values(), this.getValue(), this.getValue_ExecutionStates(), \"values\", null, 0, -1, ExecutionState.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getExecutionState_EndingSteps(), this.getStep(), this.getStep_EndingState(), \"endingSteps\", null, 0, -1, ExecutionState.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getExecutionState_NextState(), this.getExecutionState(), this.getExecutionState_PreviousState(), \"nextState\", null, 0, 1, ExecutionState.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getExecutionState_PreviousState(), this.getExecutionState(), this.getExecutionState_NextState(), \"previousState\", null, 0, 1, ExecutionState.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getExecutionState_StartingSteps(), this.getStep(), this.getStep_StartingState(), \"startingSteps\", null, 0, -1, ExecutionState.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(stepEClass, Step.class, \"Step\", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getStep_NextStep(), this.getStep(), this.getStep_PreviousStep(), \"nextStep\", null, 0, 1, Step.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getStep_PreviousStep(), this.getStep(), this.getStep_NextStep(), \"previousStep\", null, 0, 1, Step.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getStep_EndingState(), this.getExecutionState(), this.getExecutionState_EndingSteps(), \"endingState\", null, 0, 1, Step.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getStep_StartingState(), this.getExecutionState(), this.getExecutionState_StartingSteps(), \"startingState\", null, 1, 1, Step.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getStep_ParentStep(), this.getStep(), this.getStep_ChildrenSteps(), \"parentStep\", null, 0, 1, Step.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getStep_AppliedRule(), theEcorePackage.getEOperation(), null, \"appliedRule\", null, 1, 1, Step.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getStep_ChildrenSteps(), this.getStep(), this.getStep_ParentStep(), \"childrenSteps\", null, 0, 1, Step.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(tracedObjectEClass, TracedObject.class, \"TracedObject\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getTracedObject_ValueSequences(), this.getValueSequence(), null, \"valueSequences\", null, 0, -1, TracedObject.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getTracedObject_OriginalObject(), theEcorePackage.getEObject(), null, \"originalObject\", null, 0, 1, TracedObject.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\t// Create resource\n\t\tcreateResource(eNS_URI);\n\t}", "title": "" }, { "docid": "06ebf306c91727bb876e31e4fee9d413", "score": "0.61176634", "text": "public void initializePackageContents() {\n\t\tif(isInitialized)\n\t\t\treturn;\n\t\tisInitialized = true;\n\t\t// Initialize package\n\t\tsetName(eNAME);\n\t\tsetNsPrefix(eNS_PREFIX);\n\t\tsetNsURI(eNS_URI);\n\t\t// Obtain other dependent packages\n\t\tDIPackage theDIPackage = (DIPackage)EPackage.Registry.INSTANCE.getEPackage(DIPackage.eNS_URI);\n\t\tUMLPackage theUMLPackage = (UMLPackage)EPackage.Registry.INSTANCE.getEPackage(UMLPackage.eNS_URI);\n\t\tDCPackage theDCPackage = (DCPackage)EPackage.Registry.INSTANCE.getEPackage(DCPackage.eNS_URI);\n\t\t// Create type parameters\n\t\t// Set bounds for type parameters\n\t\t// Add supertypes to classes\n\t\tumlDiagramEClass.getESuperTypes().add(this.getUmlDiagramElement());\n\t\tumlDiagramEClass.getESuperTypes().add(theDIPackage.getDiagram());\n\t\tumlDiagramElementEClass.getESuperTypes().add(theDIPackage.getDiagramElement());\n\t\tumlStyleEClass.getESuperTypes().add(theDIPackage.getStyle());\n\t\tumlEdgeEClass.getESuperTypes().add(this.getTopUmlDiagramElement());\n\t\tumlEdgeEClass.getESuperTypes().add(theDIPackage.getEdge());\n\t\ttopUmlDiagramElementEClass.getESuperTypes().add(this.getUmlDiagramElement());\n\t\tpackagedElementCompartmentEClass.getESuperTypes().add(this.getUmlCompartment());\n\t\tumlCompartmentEClass.getESuperTypes().add(this.getUmlDiagramElement());\n\t\tumlCompartmentEClass.getESuperTypes().add(theDIPackage.getShape());\n\t\tpackageShapeEClass.getESuperTypes().add(this.getTemplateableElementShape());\n\t\ttemplateableElementShapeEClass.getESuperTypes().add(this.getNamedShape());\n\t\tnamedShapeEClass.getESuperTypes().add(this.getUmlShape());\n\t\tumlShapeEClass.getESuperTypes().add(this.getTopUmlDiagramElement());\n\t\tumlShapeEClass.getESuperTypes().add(theDIPackage.getShape());\n\t\tnameLabelEClass.getESuperTypes().add(this.getUmlLabel());\n\t\tumlLabelEClass.getESuperTypes().add(this.getUmlDiagramElement());\n\t\tumlLabelEClass.getESuperTypes().add(theDIPackage.getShape());\n\t\tnamedEdgeEClass.getESuperTypes().add(this.getUmlEdge());\n\t\ttemplateParameterCompartmentEClass.getESuperTypes().add(this.getUmlCompartment());\n\t\ttemplateParameterLabelEClass.getESuperTypes().add(this.getNameLabel());\n\t\tclassDiagramEClass.getESuperTypes().add(this.getStructureDiagram());\n\t\tstructureDiagramEClass.getESuperTypes().add(this.getUmlDiagram());\n\t\tclassifierShapeEClass.getESuperTypes().add(this.getTemplateableElementShape());\n\t\tconstraintShapeEClass.getESuperTypes().add(this.getBodyShape());\n\t\tconstraintShapeEClass.getESuperTypes().add(this.getNamedShape());\n\t\tbodyShapeEClass.getESuperTypes().add(this.getUmlShape());\n\t\tbodyLabelEClass.getESuperTypes().add(this.getUmlLabel());\n\t\tattributeCompartmentEClass.getESuperTypes().add(this.getUmlCompartment());\n\t\tclassifierWithAttributesShapeEClass.getESuperTypes().add(this.getClassifierShape());\n\t\tpropertyLabelEClass.getESuperTypes().add(this.getNameLabel());\n\t\toperationCompartmentEClass.getESuperTypes().add(this.getUmlCompartment());\n\t\tclassifierWithOperationsShapeEClass.getESuperTypes().add(this.getClassifierWithAttributesShape());\n\t\toperationLabelEClass.getESuperTypes().add(this.getNameLabel());\n\t\treceptionCompartmentEClass.getESuperTypes().add(this.getUmlCompartment());\n\t\tclassifierWithReceptionsShapeEClass.getESuperTypes().add(this.getClassifierWithOperationsShape());\n\t\treceptionLabelEClass.getESuperTypes().add(this.getNameLabel());\n\t\tliteralCompartmentEClass.getESuperTypes().add(this.getUmlCompartment());\n\t\tenumerationShapeEClass.getESuperTypes().add(this.getClassifierShape());\n\t\tliteralLabelEClass.getESuperTypes().add(this.getNameLabel());\n\t\troleLabelEClass.getESuperTypes().add(this.getNameLabel());\n\t\tassociationEdgeEClass.getESuperTypes().add(this.getNamedEdge());\n\t\tmultiplicityLabelEClass.getESuperTypes().add(this.getUmlLabel());\n\t\tpropertyEdgeEClass.getESuperTypes().add(this.getNamedEdge());\n\t\tmodifierLabelEClass.getESuperTypes().add(this.getUmlLabel());\n\t\tgeneralizationSetEdgeEClass.getESuperTypes().add(this.getNamedEdge());\n\t\tpowerLabelEClass.getESuperTypes().add(this.getUmlLabel());\n\t\tinstanceSpecificationEdgeEClass.getESuperTypes().add(this.getNamedEdge());\n\t\tinstanceSpecificationShapeEClass.getESuperTypes().add(this.getNamedShape());\n\t\tslotCompartmentEClass.getESuperTypes().add(this.getUmlCompartment());\n\t\tslotLabelEClass.getESuperTypes().add(this.getNameLabel());\n\t\tclassShapeEClass.getESuperTypes().add(this.getClassifierWithReceptionsShape());\n\t\tinterfaceShapeEClass.getESuperTypes().add(this.getClassifierWithReceptionsShape());\n\t\tdataTypeShapeEClass.getESuperTypes().add(this.getClassifierWithOperationsShape());\n\t\tprimitiveTypeShapeEClass.getESuperTypes().add(this.getDataTypeShape());\n\t\tsignalShapeEClass.getESuperTypes().add(this.getClassifierWithAttributesShape());\n\t\tmodelShapeEClass.getESuperTypes().add(this.getPackageShape());\n\t\tcontainmentEdgeEClass.getESuperTypes().add(this.getUmlEdge());\n\t\tgeneralizationEdgeEClass.getESuperTypes().add(this.getNamedEdge());\n\t\trealizationEdgeEClass.getESuperTypes().add(this.getAbstractionEdge());\n\t\tabstractionEdgeEClass.getESuperTypes().add(this.getDependencyEdge());\n\t\tdependencyEdgeEClass.getESuperTypes().add(this.getNamedEdge());\n\t\tinterfaceRealizationEdgeEClass.getESuperTypes().add(this.getRealizationEdge());\n\t\tusageEdgeEClass.getESuperTypes().add(this.getDependencyEdge());\n\t\telementImportEdgeEClass.getESuperTypes().add(this.getNamedEdge());\n\t\tpackageImportEdgeEClass.getESuperTypes().add(this.getNamedEdge());\n\t\tpackageMergeEdgeEClass.getESuperTypes().add(this.getNamedEdge());\n\t\tsubstitutionEdgeEClass.getESuperTypes().add(this.getRealizationEdge());\n\t\tinformationFlowEdgeEClass.getESuperTypes().add(this.getNamedEdge());\n\t\titemLabelEClass.getESuperTypes().add(this.getUmlLabel());\n\t\tassociationClassEdgeEClass.getESuperTypes().add(this.getAssociationEdge());\n\t\tcommentShapeEClass.getESuperTypes().add(this.getBodyShape());\n\t\tattachmentEdgeEClass.getESuperTypes().add(this.getUmlEdge());\n\t\tassociationClassShapeEClass.getESuperTypes().add(this.getClassShape());\n\t\tcomponentShapeEClass.getESuperTypes().add(this.getClassShape());\n\t\tinformationItemShapeEClass.getESuperTypes().add(this.getClassifierShape());\n\t\trepresentationEdgeEClass.getESuperTypes().add(this.getNamedEdge());\n\t\tassociationShapeEClass.getESuperTypes().add(this.getClassifierShape());\n\t\tdependencyShapeEClass.getESuperTypes().add(this.getNamedShape());\n\t\ttimeObservationShapeEClass.getESuperTypes().add(this.getNamedShape());\n\t\tdurationObservationShapeEClass.getESuperTypes().add(this.getNamedShape());\n\t\t// Initialize classes, features, and operations; add parameters\n\t\tinitEClass(umlDiagramEClass, UmlDiagram.class, \"UmlDiagram\", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getUmlDiagram_TopUmlDiagramElement(), this.getTopUmlDiagramElement(), this.getTopUmlDiagramElement_UmlDiagram(), \"topUmlDiagramElement\", null, 0, -1, UmlDiagram.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);\n\t\tinitEClass(umlDiagramElementEClass, UmlDiagramElement.class, \"UmlDiagramElement\", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getUmlDiagramElement_UmlModelElement(), theUMLPackage.getElement(), null, \"umlModelElement\", null, 0, 1, UmlDiagramElement.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getUmlDiagramElement_SharedUmlStyle(), this.getUmlStyle(), null, \"sharedUmlStyle\", null, 0, 1, UmlDiagramElement.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);\n\t\tinitEReference(getUmlDiagramElement_LocalUmlStyle(), this.getUmlStyle(), null, \"localUmlStyle\", null, 0, 1, UmlDiagramElement.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);\n\t\tinitEReference(getUmlDiagramElement_OwnedUmlDiagramElement(), this.getUmlDiagramElement(), this.getUmlDiagramElement_OwningUmlDiagramElement(), \"ownedUmlDiagramElement\", null, 0, -1, UmlDiagramElement.class, IS_TRANSIENT, IS_VOLATILE, !IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getUmlDiagramElement_OwningUmlDiagramElement(), this.getUmlDiagramElement(), this.getUmlDiagramElement_OwnedUmlDiagramElement(), \"owningUmlDiagramElement\", null, 0, 1, UmlDiagramElement.class, IS_TRANSIENT, IS_VOLATILE, !IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, IS_DERIVED, !IS_ORDERED);\n\t\tinitEReference(getUmlDiagramElement_TargetUmlEdge(), this.getUmlEdge(), this.getUmlEdge_TargetUmlDiagramElement(), \"targetUmlEdge\", null, 0, -1, UmlDiagramElement.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getUmlDiagramElement_SourceUmlEdge(), this.getUmlEdge(), this.getUmlEdge_SourceUmlDiagramElement(), \"sourceUmlEdge\", null, 0, -1, UmlDiagramElement.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEClass(umlStyleEClass, UmlStyle.class, \"UmlStyle\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getUmlStyle_FontName(), theDCPackage.getString(), \"fontName\", null, 0, 1, UmlStyle.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);\n\t\tinitEAttribute(getUmlStyle_FontSize(), theDCPackage.getReal(), \"fontSize\", null, 0, 1, UmlStyle.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);\n\t\tEOperation op = initEOperation(getUmlStyle__FontsizePositive__DiagnosticChain_Map(), ecorePackage.getEBoolean(), \"fontsizePositive\", 0, 1, IS_UNIQUE, IS_ORDERED);\n\t\taddEParameter(op, ecorePackage.getEDiagnosticChain(), \"diagnostics\", 0, 1, IS_UNIQUE, IS_ORDERED);\n\t\tEGenericType g1 = createEGenericType(ecorePackage.getEMap());\n\t\tEGenericType g2 = createEGenericType(ecorePackage.getEJavaObject());\n\t\tg1.getETypeArguments().add(g2);\n\t\tg2 = createEGenericType(ecorePackage.getEJavaObject());\n\t\tg1.getETypeArguments().add(g2);\n\t\taddEParameter(op, g1, \"context\", 0, 1, IS_UNIQUE, IS_ORDERED);\n\t\tinitEClass(umlEdgeEClass, UmlEdge.class, \"UmlEdge\", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getUmlEdge_SourceUmlDiagramElement(), this.getUmlDiagramElement(), this.getUmlDiagramElement_SourceUmlEdge(), \"sourceUmlDiagramElement\", null, 1, 1, UmlEdge.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);\n\t\tinitEReference(getUmlEdge_TargetUmlDiagramElement(), this.getUmlDiagramElement(), this.getUmlDiagramElement_TargetUmlEdge(), \"targetUmlDiagramElement\", null, 1, 1, UmlEdge.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);\n\t\tinitEClass(topUmlDiagramElementEClass, TopUmlDiagramElement.class, \"TopUmlDiagramElement\", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getTopUmlDiagramElement_PackageCompartment(), this.getPackagedElementCompartment(), this.getPackagedElementCompartment_TopUmlDiagramElement(), \"packageCompartment\", null, 0, 1, TopUmlDiagramElement.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);\n\t\tinitEReference(getTopUmlDiagramElement_UmlDiagram(), this.getUmlDiagram(), this.getUmlDiagram_TopUmlDiagramElement(), \"umlDiagram\", null, 0, 1, TopUmlDiagramElement.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);\n\t\tinitEClass(packagedElementCompartmentEClass, PackagedElementCompartment.class, \"PackagedElementCompartment\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getPackagedElementCompartment_PackageShape(), this.getPackageShape(), this.getPackageShape_PackagedElementCompartment(), \"packageShape\", null, 0, 1, PackagedElementCompartment.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);\n\t\tinitEReference(getPackagedElementCompartment_TopUmlDiagramElement(), this.getTopUmlDiagramElement(), this.getTopUmlDiagramElement_PackageCompartment(), \"topUmlDiagramElement\", null, 0, -1, PackagedElementCompartment.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEClass(umlCompartmentEClass, UmlCompartment.class, \"UmlCompartment\", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEClass(packageShapeEClass, PackageShape.class, \"PackageShape\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getPackageShape_PackagedElementCompartment(), this.getPackagedElementCompartment(), this.getPackagedElementCompartment_PackageShape(), \"packagedElementCompartment\", null, 0, 1, PackageShape.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);\n\t\tinitEClass(templateableElementShapeEClass, TemplateableElementShape.class, \"TemplateableElementShape\", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getTemplateableElementShape_TemplateParameterCompartment(), this.getTemplateParameterCompartment(), this.getTemplateParameterCompartment_TemplateableElementShape(), \"templateParameterCompartment\", null, 0, 1, TemplateableElementShape.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);\n\t\tinitEClass(namedShapeEClass, NamedShape.class, \"NamedShape\", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getNamedShape_NameLabel(), this.getNameLabel(), this.getNameLabel_NamedElementShape(), \"nameLabel\", null, 0, 1, NamedShape.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);\n\t\tinitEClass(umlShapeEClass, UmlShape.class, \"UmlShape\", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEClass(nameLabelEClass, NameLabel.class, \"NameLabel\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getNameLabel_NamedElementEdge(), this.getNamedEdge(), this.getNamedEdge_NameLabel(), \"namedElementEdge\", null, 0, 1, NameLabel.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);\n\t\tinitEReference(getNameLabel_NamedElementShape(), this.getNamedShape(), this.getNamedShape_NameLabel(), \"namedElementShape\", null, 0, 1, NameLabel.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);\n\t\tinitEClass(umlLabelEClass, UmlLabel.class, \"UmlLabel\", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEClass(namedEdgeEClass, NamedEdge.class, \"NamedEdge\", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getNamedEdge_NameLabel(), this.getNameLabel(), this.getNameLabel_NamedElementEdge(), \"nameLabel\", null, 0, 1, NamedEdge.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);\n\t\tinitEClass(templateParameterCompartmentEClass, TemplateParameterCompartment.class, \"TemplateParameterCompartment\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getTemplateParameterCompartment_TemplateParameterLabel(), this.getTemplateParameterLabel(), this.getTemplateParameterLabel_TemplateParameterCompartment(), \"templateParameterLabel\", null, 0, -1, TemplateParameterCompartment.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);\n\t\tinitEReference(getTemplateParameterCompartment_TemplateableElementShape(), this.getTemplateableElementShape(), this.getTemplateableElementShape_TemplateParameterCompartment(), \"templateableElementShape\", null, 0, 1, TemplateParameterCompartment.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);\n\t\tinitEClass(templateParameterLabelEClass, TemplateParameterLabel.class, \"TemplateParameterLabel\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getTemplateParameterLabel_TemplateParameterCompartment(), this.getTemplateParameterCompartment(), this.getTemplateParameterCompartment_TemplateParameterLabel(), \"templateParameterCompartment\", null, 0, 1, TemplateParameterLabel.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);\n\t\tinitEClass(classDiagramEClass, ClassDiagram.class, \"ClassDiagram\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEClass(structureDiagramEClass, StructureDiagram.class, \"StructureDiagram\", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEClass(classifierShapeEClass, ClassifierShape.class, \"ClassifierShape\", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getClassifierShape_IsIcon(), theDCPackage.getBoolean(), \"isIcon\", null, 1, 1, ClassifierShape.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);\n\t\tinitEClass(constraintShapeEClass, ConstraintShape.class, \"ConstraintShape\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEClass(bodyShapeEClass, BodyShape.class, \"BodyShape\", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getBodyShape_BodyLabel(), this.getBodyLabel(), this.getBodyLabel_ConstraintShape(), \"bodyLabel\", null, 0, 1, BodyShape.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);\n\t\tinitEClass(bodyLabelEClass, BodyLabel.class, \"BodyLabel\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getBodyLabel_ConstraintShape(), this.getBodyShape(), this.getBodyShape_BodyLabel(), \"constraintShape\", null, 0, 1, BodyLabel.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);\n\t\tinitEClass(attributeCompartmentEClass, AttributeCompartment.class, \"AttributeCompartment\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getAttributeCompartment_ClassifierWithAttributesShape(), this.getClassifierWithAttributesShape(), this.getClassifierWithAttributesShape_AttributeCompartment(), \"classifierWithAttributesShape\", null, 0, 1, AttributeCompartment.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);\n\t\tinitEReference(getAttributeCompartment_AttributeLabel(), this.getPropertyLabel(), this.getPropertyLabel_AttributeCompartment(), \"attributeLabel\", null, 0, -1, AttributeCompartment.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEClass(classifierWithAttributesShapeEClass, ClassifierWithAttributesShape.class, \"ClassifierWithAttributesShape\", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getClassifierWithAttributesShape_AttributeCompartment(), this.getAttributeCompartment(), this.getAttributeCompartment_ClassifierWithAttributesShape(), \"attributeCompartment\", null, 0, 1, ClassifierWithAttributesShape.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);\n\t\tinitEClass(propertyLabelEClass, PropertyLabel.class, \"PropertyLabel\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getPropertyLabel_AttributeCompartment(), this.getAttributeCompartment(), this.getAttributeCompartment_AttributeLabel(), \"attributeCompartment\", null, 0, 1, PropertyLabel.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);\n\t\tinitEClass(operationCompartmentEClass, OperationCompartment.class, \"OperationCompartment\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getOperationCompartment_ClassifierWithOperationsShape(), this.getClassifierWithOperationsShape(), this.getClassifierWithOperationsShape_OperationCompartment(), \"classifierWithOperationsShape\", null, 0, 1, OperationCompartment.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);\n\t\tinitEReference(getOperationCompartment_OperationLabel(), this.getOperationLabel(), this.getOperationLabel_OperationCompartment(), \"operationLabel\", null, 0, -1, OperationCompartment.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEClass(classifierWithOperationsShapeEClass, ClassifierWithOperationsShape.class, \"ClassifierWithOperationsShape\", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getClassifierWithOperationsShape_OperationCompartment(), this.getOperationCompartment(), this.getOperationCompartment_ClassifierWithOperationsShape(), \"operationCompartment\", null, 0, 1, ClassifierWithOperationsShape.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);\n\t\tinitEClass(operationLabelEClass, OperationLabel.class, \"OperationLabel\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getOperationLabel_OperationCompartment(), this.getOperationCompartment(), this.getOperationCompartment_OperationLabel(), \"operationCompartment\", null, 0, 1, OperationLabel.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);\n\t\tinitEClass(receptionCompartmentEClass, ReceptionCompartment.class, \"ReceptionCompartment\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getReceptionCompartment_SignalShape(), this.getClassifierWithReceptionsShape(), this.getClassifierWithReceptionsShape_ReceptionCompartment(), \"signalShape\", null, 0, 1, ReceptionCompartment.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);\n\t\tinitEReference(getReceptionCompartment_ReceptionLabel(), this.getReceptionLabel(), this.getReceptionLabel_ReceptionCompartment(), \"receptionLabel\", null, 0, -1, ReceptionCompartment.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEClass(classifierWithReceptionsShapeEClass, ClassifierWithReceptionsShape.class, \"ClassifierWithReceptionsShape\", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getClassifierWithReceptionsShape_ReceptionCompartment(), this.getReceptionCompartment(), this.getReceptionCompartment_SignalShape(), \"receptionCompartment\", null, 0, 1, ClassifierWithReceptionsShape.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);\n\t\tinitEClass(receptionLabelEClass, ReceptionLabel.class, \"ReceptionLabel\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getReceptionLabel_ReceptionCompartment(), this.getReceptionCompartment(), this.getReceptionCompartment_ReceptionLabel(), \"receptionCompartment\", null, 0, 1, ReceptionLabel.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);\n\t\tinitEClass(literalCompartmentEClass, LiteralCompartment.class, \"LiteralCompartment\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getLiteralCompartment_EnumerationShape(), this.getEnumerationShape(), this.getEnumerationShape_LiteralCompartment(), \"enumerationShape\", null, 0, 1, LiteralCompartment.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);\n\t\tinitEReference(getLiteralCompartment_LiteralLabel(), this.getLiteralLabel(), this.getLiteralLabel_LiteralCompartment(), \"literalLabel\", null, 0, -1, LiteralCompartment.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEClass(enumerationShapeEClass, EnumerationShape.class, \"EnumerationShape\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getEnumerationShape_LiteralCompartment(), this.getLiteralCompartment(), this.getLiteralCompartment_EnumerationShape(), \"literalCompartment\", null, 0, 1, EnumerationShape.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);\n\t\tinitEClass(literalLabelEClass, LiteralLabel.class, \"LiteralLabel\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getLiteralLabel_LiteralCompartment(), this.getLiteralCompartment(), this.getLiteralCompartment_LiteralLabel(), \"literalCompartment\", null, 0, 1, LiteralLabel.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);\n\t\tinitEClass(roleLabelEClass, RoleLabel.class, \"RoleLabel\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getRoleLabel_AssociationEdge(), this.getAssociationEdge(), this.getAssociationEdge_EndRoleLabel(), \"associationEdge\", null, 0, 1, RoleLabel.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);\n\t\tinitEReference(getRoleLabel_InstanceSpecificationEdge(), this.getInstanceSpecificationEdge(), this.getInstanceSpecificationEdge_EndRoleLabel(), \"instanceSpecificationEdge\", null, 0, 1, RoleLabel.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);\n\t\tinitEClass(associationEdgeEClass, AssociationEdge.class, \"AssociationEdge\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getAssociationEdge_EndMultiplicityLabel(), this.getMultiplicityLabel(), this.getMultiplicityLabel_AssociationEdge(), \"endMultiplicityLabel\", null, 0, 2, AssociationEdge.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);\n\t\tinitEReference(getAssociationEdge_EndModifierLabel(), this.getModifierLabel(), this.getModifierLabel_AssociationEdge(), \"endModifierLabel\", null, 0, 2, AssociationEdge.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);\n\t\tinitEReference(getAssociationEdge_EndRoleLabel(), this.getRoleLabel(), this.getRoleLabel_AssociationEdge(), \"endRoleLabel\", null, 0, 2, AssociationEdge.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);\n\t\tinitEClass(multiplicityLabelEClass, MultiplicityLabel.class, \"MultiplicityLabel\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getMultiplicityLabel_PropertyEdge(), this.getPropertyEdge(), this.getPropertyEdge_MultiplicityLabel(), \"propertyEdge\", null, 0, 1, MultiplicityLabel.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);\n\t\tinitEReference(getMultiplicityLabel_AssociationEdge(), this.getAssociationEdge(), this.getAssociationEdge_EndMultiplicityLabel(), \"associationEdge\", null, 0, 1, MultiplicityLabel.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);\n\t\tinitEClass(propertyEdgeEClass, PropertyEdge.class, \"PropertyEdge\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getPropertyEdge_ModifierLabel(), this.getModifierLabel(), this.getModifierLabel_PropertyEdge(), \"modifierLabel\", null, 0, 1, PropertyEdge.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);\n\t\tinitEReference(getPropertyEdge_MultiplicityLabel(), this.getMultiplicityLabel(), this.getMultiplicityLabel_PropertyEdge(), \"multiplicityLabel\", null, 0, 1, PropertyEdge.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);\n\t\tinitEClass(modifierLabelEClass, ModifierLabel.class, \"ModifierLabel\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getModifierLabel_AssociationEdge(), this.getAssociationEdge(), this.getAssociationEdge_EndModifierLabel(), \"associationEdge\", null, 0, 1, ModifierLabel.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);\n\t\tinitEReference(getModifierLabel_GeneralizationSetEdge(), this.getGeneralizationSetEdge(), this.getGeneralizationSetEdge_ModifierLabel(), \"generalizationSetEdge\", null, 0, 1, ModifierLabel.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);\n\t\tinitEReference(getModifierLabel_PropertyEdge(), this.getPropertyEdge(), this.getPropertyEdge_ModifierLabel(), \"propertyEdge\", null, 0, 1, ModifierLabel.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);\n\t\tinitEClass(generalizationSetEdgeEClass, GeneralizationSetEdge.class, \"GeneralizationSetEdge\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getGeneralizationSetEdge_PowerLabel(), this.getPowerLabel(), this.getPowerLabel_GeneralizationSetEdge(), \"powerLabel\", null, 0, 1, GeneralizationSetEdge.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);\n\t\tinitEReference(getGeneralizationSetEdge_ModifierLabel(), this.getModifierLabel(), this.getModifierLabel_GeneralizationSetEdge(), \"modifierLabel\", null, 0, 1, GeneralizationSetEdge.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);\n\t\tinitEClass(powerLabelEClass, PowerLabel.class, \"PowerLabel\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getPowerLabel_GeneralizationSetEdge(), this.getGeneralizationSetEdge(), this.getGeneralizationSetEdge_PowerLabel(), \"generalizationSetEdge\", null, 0, 1, PowerLabel.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);\n\t\tinitEClass(instanceSpecificationEdgeEClass, InstanceSpecificationEdge.class, \"InstanceSpecificationEdge\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getInstanceSpecificationEdge_EndRoleLabel(), this.getRoleLabel(), this.getRoleLabel_InstanceSpecificationEdge(), \"endRoleLabel\", null, 0, 2, InstanceSpecificationEdge.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEClass(instanceSpecificationShapeEClass, InstanceSpecificationShape.class, \"InstanceSpecificationShape\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getInstanceSpecificationShape_SlotCompartment(), this.getSlotCompartment(), this.getSlotCompartment_InstanceSpecificationShape(), \"slotCompartment\", null, 0, 1, InstanceSpecificationShape.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);\n\t\tinitEClass(slotCompartmentEClass, SlotCompartment.class, \"SlotCompartment\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getSlotCompartment_SlotLabel(), this.getSlotLabel(), this.getSlotLabel_SlotCompartment(), \"slotLabel\", null, 0, -1, SlotCompartment.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getSlotCompartment_InstanceSpecificationShape(), this.getInstanceSpecificationShape(), this.getInstanceSpecificationShape_SlotCompartment(), \"instanceSpecificationShape\", null, 0, 1, SlotCompartment.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);\n\t\tinitEClass(slotLabelEClass, SlotLabel.class, \"SlotLabel\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getSlotLabel_SlotCompartment(), this.getSlotCompartment(), this.getSlotCompartment_SlotLabel(), \"slotCompartment\", null, 0, 1, SlotLabel.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);\n\t\tinitEClass(classShapeEClass, ClassShape.class, \"ClassShape\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEClass(interfaceShapeEClass, InterfaceShape.class, \"InterfaceShape\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEClass(dataTypeShapeEClass, DataTypeShape.class, \"DataTypeShape\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEClass(primitiveTypeShapeEClass, PrimitiveTypeShape.class, \"PrimitiveTypeShape\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEClass(signalShapeEClass, SignalShape.class, \"SignalShape\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEClass(modelShapeEClass, ModelShape.class, \"ModelShape\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEClass(containmentEdgeEClass, ContainmentEdge.class, \"ContainmentEdge\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEClass(generalizationEdgeEClass, GeneralizationEdge.class, \"GeneralizationEdge\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEClass(realizationEdgeEClass, RealizationEdge.class, \"RealizationEdge\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEClass(abstractionEdgeEClass, AbstractionEdge.class, \"AbstractionEdge\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEClass(dependencyEdgeEClass, DependencyEdge.class, \"DependencyEdge\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEClass(interfaceRealizationEdgeEClass, InterfaceRealizationEdge.class, \"InterfaceRealizationEdge\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEClass(usageEdgeEClass, UsageEdge.class, \"UsageEdge\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEClass(elementImportEdgeEClass, ElementImportEdge.class, \"ElementImportEdge\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEClass(packageImportEdgeEClass, PackageImportEdge.class, \"PackageImportEdge\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEClass(packageMergeEdgeEClass, PackageMergeEdge.class, \"PackageMergeEdge\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEClass(substitutionEdgeEClass, SubstitutionEdge.class, \"SubstitutionEdge\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEClass(informationFlowEdgeEClass, InformationFlowEdge.class, \"InformationFlowEdge\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getInformationFlowEdge_ItemLabel(), this.getItemLabel(), this.getItemLabel_InformationFlowEdge(), \"itemLabel\", null, 0, 1, InformationFlowEdge.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);\n\t\tinitEClass(itemLabelEClass, ItemLabel.class, \"ItemLabel\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getItemLabel_InformationFlowEdge(), this.getInformationFlowEdge(), this.getInformationFlowEdge_ItemLabel(), \"informationFlowEdge\", null, 0, 1, ItemLabel.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);\n\t\tinitEClass(associationClassEdgeEClass, AssociationClassEdge.class, \"AssociationClassEdge\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEClass(commentShapeEClass, CommentShape.class, \"CommentShape\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEClass(attachmentEdgeEClass, AttachmentEdge.class, \"AttachmentEdge\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEClass(associationClassShapeEClass, AssociationClassShape.class, \"AssociationClassShape\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEClass(componentShapeEClass, ComponentShape.class, \"ComponentShape\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEClass(informationItemShapeEClass, InformationItemShape.class, \"InformationItemShape\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEClass(representationEdgeEClass, RepresentationEdge.class, \"RepresentationEdge\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEClass(associationShapeEClass, AssociationShape.class, \"AssociationShape\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEClass(dependencyShapeEClass, DependencyShape.class, \"DependencyShape\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEClass(timeObservationShapeEClass, TimeObservationShape.class, \"TimeObservationShape\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEClass(durationObservationShapeEClass, DurationObservationShape.class, \"DurationObservationShape\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\t// Create resource\n\t\tcreateResource(eNS_URI);\n\t\t// Create annotations\n\t\t// http://www.eclipse.org/emf/2002/Ecore\n\t\tcreateEcoreAnnotations();\n\t\t// subsets\n\t\tcreateSubsetsAnnotations();\n\t\t// union\n\t\tcreateUnionAnnotations();\n\t\t// http://www.eclipse.org/emf/2002/Ecore/OCL\n\t\tcreateOCLAnnotations();\n\t}", "title": "" }, { "docid": "d65d43385f1eeef73f7b0463800e2adc", "score": "0.61146915", "text": "public void initializePackageContents() {\n\t\tif (isInitialized) return;\n\t\tisInitialized = true;\n\n\t\t// Initialize package\n\t\tsetName(eNAME);\n\t\tsetNsPrefix(eNS_PREFIX);\n\t\tsetNsURI(eNS_URI);\n\n\t\t// Create type parameters\n\n\t\t// Set bounds for type parameters\n\n\t\t// Add supertypes to classes\n\t\tinitialStateEClass.getESuperTypes().add(this.getState());\n\t\tfinalStateEClass.getESuperTypes().add(this.getState());\n\t\tclusterHeadEClass.getESuperTypes().add(this.getNode());\n\t\tsinkEClass.getESuperTypes().add(this.getNode());\n\t\ttimingEClass.getESuperTypes().add(this.getEvent());\n\t\tresourcesEClass.getESuperTypes().add(this.getPlatformElement());\n\t\tparametersEClass.getESuperTypes().add(this.getPlatformElement());\n\t\tenergySourceEClass.getESuperTypes().add(this.getPlatformElement());\n\t\tharvesterEClass.getESuperTypes().add(this.getEnergySource());\n\t\tbatteryEClass.getESuperTypes().add(this.getEnergySource());\n\t\tactionEClass.getESuperTypes().add(this.getActivityNode());\n\t\tadviceEClass.getESuperTypes().add(this.getActivity());\n\t\tinitialNodeEClass.getESuperTypes().add(this.getActivityNode());\n\t\tfinalNodeEClass.getESuperTypes().add(this.getActivityNode());\n\t\tdecisionNodeEClass.getESuperTypes().add(this.getActivityNode());\n\t\tmergeNodeEClass.getESuperTypes().add(this.getActivityNode());\n\t\topaqueActionEClass.getESuperTypes().add(this.getAction());\n\t\tsensingActionEClass.getESuperTypes().add(this.getAction());\n\t\tactuatingActionEClass.getESuperTypes().add(this.getAction());\n\t\ttimingActionEClass.getESuperTypes().add(this.getAction());\n\t\tupdatePoolActionEClass.getESuperTypes().add(this.getAction());\n\t\tgetNodeActionEClass.getESuperTypes().add(this.getAction());\n\t\tremoteTriggerActionEClass.getESuperTypes().add(this.getAction());\n\t\tgetDataActionEClass.getESuperTypes().add(this.getAction());\n\t\truntimeEClass.getESuperTypes().add(this.getPlatformElement());\n\n\t\t// Initialize classes and features; add operations and parameters\n\t\tinitEClass(objectivesEClass, Objectives.class, \"Objectives\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getObjectives_Power(), this.getoptimizationLevel(), \"power\", null, 0, 1, Objectives.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getObjectives_Memory(), this.getoptimizationLevel(), \"memory\", null, 0, 1, Objectives.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getObjectives_Packetloss(), this.getoptimizationLevel(), \"packetloss\", null, 0, 1, Objectives.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(sensorEClass, Sensor.class, \"Sensor\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getSensor_Id(), ecorePackage.getEString(), \"id\", null, 0, 1, Sensor.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(actuatorEClass, Actuator.class, \"Actuator\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getActuator_Id(), ecorePackage.getEString(), \"id\", null, 0, 1, Actuator.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(actuatingEClass, Actuating.class, \"Actuating\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getActuating_Task(), this.getTask(), null, \"task\", null, 0, 1, Actuating.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getActuating_Actuator(), this.getActuator(), null, \"actuator\", null, 0, 1, Actuating.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(taskEClass, Task.class, \"Task\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getTask_BehaviorName(), ecorePackage.getEString(), \"behaviorName\", null, 0, 1, Task.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getTask_ActivationProfile(), ecorePackage.getEString(), \"activationProfile\", null, 0, 1, Task.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getTask_Behavior(), this.getStateMachine(), null, \"behavior\", null, 1, 1, Task.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getTask_Profile(), this.getActivationProfile(), null, \"profile\", null, 0, 1, Task.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(sensingEClass, Sensing.class, \"Sensing\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getSensing_Task(), this.getTask(), null, \"task\", null, 0, 1, Sensing.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getSensing_Sensor(), this.getSensor(), null, \"sensor\", null, 0, 1, Sensing.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(nodeEClass, Node.class, \"Node\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getNode_Task(), this.getTask(), null, \"task\", null, 1, 10, Node.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(eventEClass, Event.class, \"Event\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\n\t\tinitEClass(networkEClass, Network.class, \"Network\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getNetwork_Objectives(), this.getObjectives(), null, \"objectives\", null, 0, 1, Network.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getNetwork_Nodes(), this.getNode(), null, \"nodes\", null, 0, 10, Network.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(communicationEClass, Communication.class, \"Communication\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getCommunication_CommSource(), this.getNode(), null, \"commSource\", null, 0, 1, Communication.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getCommunication_CommDestination(), this.getNode(), null, \"commDestination\", null, 0, 1, Communication.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(dataEClass, Data.class, \"Data\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getData_Shared(), ecorePackage.getEBoolean(), \"shared\", \"true\", 0, 1, Data.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getData_Variable(), this.getVariable(), null, \"variable\", null, 0, -1, Data.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(stateEClass, State.class, \"State\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getState_Entry(), ecorePackage.getEString(), \"entry\", null, 0, 1, State.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getState_Exit(), ecorePackage.getEString(), \"exit\", null, 0, 1, State.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(transitionEClass, Transition.class, \"Transition\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getTransition_Guard(), ecorePackage.getEString(), \"guard\", null, 0, 1, Transition.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getTransition_Triggerevent(), this.getEventType(), \"triggerevent\", null, 0, 1, Transition.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getTransition_TransitionFrom(), this.getState(), null, \"transitionFrom\", null, 0, 1, Transition.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getTransition_TransitionTo(), this.getState(), null, \"transitionTo\", null, 0, 1, Transition.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getTransition_Trigger(), this.getEvent(), null, \"trigger\", null, 0, 1, Transition.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(initialStateEClass, InitialState.class, \"InitialState\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\n\t\tinitEClass(finalStateEClass, FinalState.class, \"FinalState\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\n\t\tinitEClass(clusterEClass, Cluster.class, \"Cluster\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getCluster_Node(), this.getNode(), null, \"node\", null, 0, -1, Cluster.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getCluster_Head(), this.getClusterHead(), null, \"head\", null, 1, 1, Cluster.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(clusterHeadEClass, ClusterHead.class, \"ClusterHead\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\n\t\tinitEClass(sinkEClass, Sink.class, \"Sink\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\n\t\tinitEClass(activityEClass, Activity.class, \"Activity\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getActivity_In(), ecorePackage.getEString(), \"in\", null, 0, 1, Activity.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getActivity_Out(), ecorePackage.getEString(), \"out\", null, 0, 1, Activity.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getActivity_IsJointPoint(), ecorePackage.getEBoolean(), \"isJointPoint\", null, 0, 1, Activity.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getActivity_Id(), ecorePackage.getEString(), \"id\", null, 0, 1, Activity.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getActivity_InitialNode(), this.getActivityNode(), null, \"initialNode\", null, 0, 1, Activity.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getActivity_Edges(), this.getActivityEdge(), null, \"edges\", null, 0, 1, Activity.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(stateMachineEClass, StateMachine.class, \"StateMachine\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\n\t\tinitEClass(timingEClass, Timing.class, \"Timing\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getTiming_Timer(), this.getTimer(), null, \"timer\", null, 0, 1, Timing.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getTiming_Task(), this.getTask(), null, \"task\", null, 0, 1, Timing.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(timerEClass, Timer.class, \"Timer\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getTimer_Time(), ecorePackage.getEInt(), \"time\", \"1\", 0, 1, Timer.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(platformEClass, Platform.class, \"Platform\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getPlatform_Aspect(), this.getAspect(), null, \"aspect\", null, 0, 1, Platform.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getPlatform_Slot(), this.getPlatformSlot(), null, \"slot\", null, 0, 1, Platform.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(resourcesEClass, Resources.class, \"Resources\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getResources_Memory(), ecorePackage.getEInt(), \"memory\", null, 0, 1, Resources.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getResources_Flash(), ecorePackage.getEInt(), \"flash\", null, 0, 1, Resources.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(parametersEClass, Parameters.class, \"Parameters\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getParameters_Network(), this.getnetType(), \"network\", null, 0, 1, Parameters.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getParameters_Mac(), this.getmacType(), \"mac\", null, 0, 1, Parameters.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getParameters_Radioduty(), this.getrdcType(), \"radioduty\", null, 0, 1, Parameters.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getParameters_Sleep(), this.getsleepType(), \"sleep\", null, 0, 1, Parameters.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(energySourceEClass, EnergySource.class, \"EnergySource\", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\n\t\tinitEClass(harvesterEClass, Harvester.class, \"Harvester\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\n\t\tinitEClass(batteryEClass, Battery.class, \"Battery\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getBattery_Full(), ecorePackage.getEFloat(), \"full\", null, 0, 1, Battery.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getBattery_Empty(), ecorePackage.getEFloat(), \"empty\", null, 0, 1, Battery.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(actionEClass, Action.class, \"Action\", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\n\t\tinitEClass(aspectEClass, Aspect.class, \"Aspect\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getAspect_Pointcut(), this.getPointcut(), null, \"pointcut\", null, 0, 1, Aspect.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getAspect_Advice(), this.getAdvice(), null, \"advice\", null, 0, 1, Aspect.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(pointcutEClass, Pointcut.class, \"Pointcut\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getPointcut_Expression(), ecorePackage.getEString(), \"expression\", null, 0, 1, Pointcut.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(adviceEClass, Advice.class, \"Advice\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\n\t\tinitEClass(activityNodeEClass, ActivityNode.class, \"ActivityNode\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\n\t\tinitEClass(initialNodeEClass, InitialNode.class, \"InitialNode\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\n\t\tinitEClass(finalNodeEClass, FinalNode.class, \"FinalNode\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\n\t\tinitEClass(decisionNodeEClass, DecisionNode.class, \"DecisionNode\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\n\t\tinitEClass(mergeNodeEClass, MergeNode.class, \"MergeNode\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\n\t\tinitEClass(activityEdgeEClass, ActivityEdge.class, \"ActivityEdge\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getActivityEdge_Source(), this.getActivityNode(), null, \"source\", null, 0, 1, ActivityEdge.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getActivityEdge_Target(), this.getActivityNode(), null, \"target\", null, 0, 1, ActivityEdge.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(opaqueActionEClass, OpaqueAction.class, \"OpaqueAction\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getOpaqueAction_Language(), this.getLanguages(), \"language\", null, 0, 1, OpaqueAction.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getOpaqueAction_Type(), this.getOpaqueType(), \"type\", null, 0, 1, OpaqueAction.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getOpaqueAction_Code(), ecorePackage.getEString(), \"code\", null, 0, 1, OpaqueAction.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getOpaqueAction_File(), ecorePackage.getEString(), \"file\", null, 0, 1, OpaqueAction.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(sensingActionEClass, SensingAction.class, \"SensingAction\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getSensingAction_SensorId(), ecorePackage.getEString(), \"sensorId\", null, 0, 1, SensingAction.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getSensingAction_Data(), ecorePackage.getEString(), \"data\", null, 0, 1, SensingAction.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(actuatingActionEClass, ActuatingAction.class, \"ActuatingAction\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getActuatingAction_ActuatorId(), ecorePackage.getEString(), \"actuatorId\", null, 0, 1, ActuatingAction.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getActuatingAction_Data(), ecorePackage.getEString(), \"data\", null, 0, 1, ActuatingAction.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(timingActionEClass, TimingAction.class, \"TimingAction\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getTimingAction_Time(), ecorePackage.getEInt(), \"time\", null, 0, 1, TimingAction.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(variableEClass, Variable.class, \"Variable\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getVariable_Signed(), ecorePackage.getEBoolean(), \"signed\", null, 0, 1, Variable.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getVariable_Type(), this.getVariableType(), \"type\", null, 0, 1, Variable.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getVariable_Initial(), ecorePackage.getEDouble(), \"initial\", \"0\", 0, 1, Variable.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(dataLinkEClass, DataLink.class, \"DataLink\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getDataLink_Task(), this.getTask(), null, \"task\", null, 0, 1, DataLink.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getDataLink_Data(), this.getData(), null, \"data\", null, 0, 1, DataLink.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(updatePoolActionEClass, UpdatePoolAction.class, \"UpdatePoolAction\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\n\t\tinitEClass(getNodeActionEClass, GetNodeAction.class, \"GetNodeAction\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getGetNodeAction_Query(), ecorePackage.getEString(), \"query\", null, 0, 1, GetNodeAction.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(remoteTriggerActionEClass, RemoteTriggerAction.class, \"RemoteTriggerAction\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getRemoteTriggerAction_Code(), ecorePackage.getEInt(), \"code\", \"0\", 0, 1, RemoteTriggerAction.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getRemoteTriggerAction_Data(), this.getRemoteTriggerDataType(), \"data\", null, 0, 1, RemoteTriggerAction.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(getDataActionEClass, GetDataAction.class, \"GetDataAction\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getGetDataAction_Query(), ecorePackage.getEString(), \"query\", null, 0, 1, GetDataAction.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(activationProfileEClass, ActivationProfile.class, \"ActivationProfile\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getActivationProfile_Sensor(), this.getActivationType(), \"sensor\", null, 0, 1, ActivationProfile.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getActivationProfile_Actuator(), this.getActivationType(), \"actuator\", null, 0, 1, ActivationProfile.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getActivationProfile_Dongle(), this.getActivationType(), \"dongle\", null, 0, 1, ActivationProfile.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getActivationProfile_Battery(), this.getActivationType(), \"battery\", null, 0, 1, ActivationProfile.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getActivationProfile_Neighbors(), this.getActivationType(), \"neighbors\", null, 0, 1, ActivationProfile.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getActivationProfile_Specific(), this.getActivationType(), \"specific\", null, 0, 1, ActivationProfile.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getActivationProfile_Value(), ecorePackage.getEInt(), \"value\", null, 0, 1, ActivationProfile.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getActivationProfile_Ch(), this.getActivationType(), \"ch\", null, 0, 1, ActivationProfile.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(runtimeEClass, com.gentleware.poseidon.dsl.wsn.Runtime.class, \"Runtime\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getRuntime_Environment(), this.getEnvironmentType(), \"environment\", null, 0, 1, com.gentleware.poseidon.dsl.wsn.Runtime.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getRuntime_Mote(), this.getMoteType(), \"mote\", null, 0, 1, com.gentleware.poseidon.dsl.wsn.Runtime.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(platformSlotEClass, PlatformSlot.class, \"PlatformSlot\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getPlatformSlot_Element(), this.getPlatformElement(), null, \"element\", null, 0, 1, PlatformSlot.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(platformElementEClass, PlatformElement.class, \"PlatformElement\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\n\t\t// Initialize enums and add enum literals\n\t\tinitEEnum(routingTypeEEnum, RoutingType.class, \"RoutingType\");\n\t\taddEEnumLiteral(routingTypeEEnum, RoutingType.CH2CH);\n\t\taddEEnumLiteral(routingTypeEEnum, RoutingType.NODE2NODE);\n\n\t\tinitEEnum(optimizationLevelEEnum, optimizationLevel.class, \"optimizationLevel\");\n\t\taddEEnumLiteral(optimizationLevelEEnum, optimizationLevel.DONT_CARE);\n\t\taddEEnumLiteral(optimizationLevelEEnum, optimizationLevel.MEDIUM);\n\t\taddEEnumLiteral(optimizationLevelEEnum, optimizationLevel.HIGH);\n\t\taddEEnumLiteral(optimizationLevelEEnum, optimizationLevel.CRITICAL);\n\n\t\tinitEEnum(moteTypeEEnum, MoteType.class, \"MoteType\");\n\t\taddEEnumLiteral(moteTypeEEnum, MoteType.Z1);\n\t\taddEEnumLiteral(moteTypeEEnum, MoteType.TELOS_B);\n\t\taddEEnumLiteral(moteTypeEEnum, MoteType.IRIS);\n\n\t\tinitEEnum(rdcTypeEEnum, rdcType.class, \"rdcType\");\n\t\taddEEnumLiteral(rdcTypeEEnum, rdcType.NONE);\n\t\taddEEnumLiteral(rdcTypeEEnum, rdcType.CONTIKI_MAC);\n\t\taddEEnumLiteral(rdcTypeEEnum, rdcType.PROBING);\n\n\t\tinitEEnum(macTypeEEnum, macType.class, \"macType\");\n\t\taddEEnumLiteral(macTypeEEnum, macType.NONE);\n\t\taddEEnumLiteral(macTypeEEnum, macType.CSMA_CA);\n\t\taddEEnumLiteral(macTypeEEnum, macType.TDMA);\n\n\t\tinitEEnum(netTypeEEnum, netType.class, \"netType\");\n\t\taddEEnumLiteral(netTypeEEnum, netType.RIME);\n\t\taddEEnumLiteral(netTypeEEnum, netType._6LOWPAN);\n\n\t\tinitEEnum(sleepTypeEEnum, sleepType.class, \"sleepType\");\n\t\taddEEnumLiteral(sleepTypeEEnum, sleepType.NONE);\n\t\taddEEnumLiteral(sleepTypeEEnum, sleepType.SLEEP);\n\n\t\tinitEEnum(languagesEEnum, Languages.class, \"Languages\");\n\t\taddEEnumLiteral(languagesEEnum, Languages.ALF);\n\t\taddEEnumLiteral(languagesEEnum, Languages.C);\n\t\taddEEnumLiteral(languagesEEnum, Languages.JAVA);\n\n\t\tinitEEnum(variableTypeEEnum, VariableType.class, \"VariableType\");\n\t\taddEEnumLiteral(variableTypeEEnum, VariableType.BOOL);\n\t\taddEEnumLiteral(variableTypeEEnum, VariableType.INT8);\n\t\taddEEnumLiteral(variableTypeEEnum, VariableType.INT16);\n\t\taddEEnumLiteral(variableTypeEEnum, VariableType.INT32);\n\t\taddEEnumLiteral(variableTypeEEnum, VariableType.INT64);\n\t\taddEEnumLiteral(variableTypeEEnum, VariableType.FLOAT);\n\t\taddEEnumLiteral(variableTypeEEnum, VariableType.DOUBLE);\n\n\t\tinitEEnum(eventTypeEEnum, EventType.class, \"EventType\");\n\t\taddEEnumLiteral(eventTypeEEnum, EventType.NONE);\n\t\taddEEnumLiteral(eventTypeEEnum, EventType.TIMER);\n\t\taddEEnumLiteral(eventTypeEEnum, EventType.DATA);\n\t\taddEEnumLiteral(eventTypeEEnum, EventType.REMOTE);\n\n\t\tinitEEnum(remoteTriggerDataTypeEEnum, RemoteTriggerDataType.class, \"RemoteTriggerDataType\");\n\t\taddEEnumLiteral(remoteTriggerDataTypeEEnum, RemoteTriggerDataType.LOCAL);\n\t\taddEEnumLiteral(remoteTriggerDataTypeEEnum, RemoteTriggerDataType.TRANSIT);\n\n\t\tinitEEnum(activationTypeEEnum, ActivationType.class, \"ActivationType\");\n\t\taddEEnumLiteral(activationTypeEEnum, ActivationType.DONT_CARE);\n\t\taddEEnumLiteral(activationTypeEEnum, ActivationType.ENABLE_ON);\n\t\taddEEnumLiteral(activationTypeEEnum, ActivationType.DISABLE_ON);\n\n\t\tinitEEnum(opaqueTypeEEnum, OpaqueType.class, \"OpaqueType\");\n\t\taddEEnumLiteral(opaqueTypeEEnum, OpaqueType.CODE);\n\t\taddEEnumLiteral(opaqueTypeEEnum, OpaqueType.FILE);\n\n\t\tinitEEnum(environmentTypeEEnum, EnvironmentType.class, \"EnvironmentType\");\n\t\taddEEnumLiteral(environmentTypeEEnum, EnvironmentType.CONTIKI);\n\t\taddEEnumLiteral(environmentTypeEEnum, EnvironmentType.TINY_OS);\n\n\t\t// Create resource\n\t\tcreateResource(eNS_URI);\n\t}", "title": "" }, { "docid": "f30265824ac8ed88cbe3eaafee8c7554", "score": "0.61141723", "text": "public void initializePackageContents() {\r\n\t\tif (isInitialized) return;\r\n\t\tisInitialized = true;\r\n\r\n\t\t// Initialize package\r\n\t\tsetName(eNAME);\r\n\t\tsetNsPrefix(eNS_PREFIX);\r\n\t\tsetNsURI(eNS_URI);\r\n\r\n\t\t// Create type parameters\r\n\r\n\t\t// Set bounds for type parameters\r\n\r\n\t\t// Add supertypes to classes\r\n\r\n\t\t// Initialize classes, features, and operations; add parameters\r\n\t\tinitEClass(commandEClass, Command.class, \"Command\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\r\n\t\tinitEAttribute(getCommand_Name(), ecorePackage.getEString(), \"name\", null, 0, 1, Command.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\t\tinitEReference(getCommand_CommandParameters(), this.getParameter(), null, \"commandParameters\", null, 0, -1, Command.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\t\tinitEReference(getCommand_Options(), this.getOption(), null, \"options\", null, 0, -1, Command.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\t\tinitEAttribute(getCommand_Description(), ecorePackage.getEString(), \"description\", null, 0, 1, Command.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\r\n\t\tinitEClass(parameterEClass, Parameter.class, \"Parameter\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\r\n\t\tinitEAttribute(getParameter_Name(), ecorePackage.getEString(), \"name\", null, 0, 1, Parameter.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\r\n\t\tinitEClass(scriptEClass, Script.class, \"Script\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\r\n\t\tinitEReference(getScript_Commands(), this.getCommand(), null, \"commands\", null, 0, -1, Script.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\t\tinitEAttribute(getScript_Name(), ecorePackage.getEString(), \"name\", null, 0, 1, Script.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\r\n\t\tinitEClass(optionEClass, Option.class, \"Option\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\r\n\t\tinitEAttribute(getOption_Name(), ecorePackage.getEString(), \"name\", null, 0, 1, Option.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\t\tinitEReference(getOption_OptionParameters(), this.getParameter(), null, \"optionParameters\", null, 0, 1, Option.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\r\n\t\tinitEClass(mainWorkflowEClass, MainWorkflow.class, \"MainWorkflow\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\r\n\t\tinitEReference(getMainWorkflow_Scripts(), this.getScript(), null, \"scripts\", null, 0, 5, MainWorkflow.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\r\n\t\t// Create resource\r\n\t\tcreateResource(eNS_URI);\r\n\t}", "title": "" }, { "docid": "1795251fa326f78abdf70f9715d5ca89", "score": "0.6111428", "text": "public void initializePackageContents() {\n\t\tif (isInitialized) return;\n\t\tisInitialized = true;\n\n\t\t// Initialize package\n\t\tsetName(eNAME);\n\t\tsetNsPrefix(eNS_PREFIX);\n\t\tsetNsURI(eNS_URI);\n\n\t\t// Obtain other dependent packages\n\t\tSurvTypesPackage theSurvTypesPackage = (SurvTypesPackage)EPackage.Registry.INSTANCE.getEPackage(SurvTypesPackage.eNS_URI);\n\t\tTypesPackage theTypesPackage = (TypesPackage)EPackage.Registry.INSTANCE.getEPackage(TypesPackage.eNS_URI);\n\t\tUMLPackage theUMLPackage = (UMLPackage)EPackage.Registry.INSTANCE.getEPackage(UMLPackage.eNS_URI);\n\n\t\t// Create type parameters\n\n\t\t// Set bounds for type parameters\n\n\t\t// Add supertypes to classes\n\t\trecoveryEClass.getESuperTypes().add(this.getstrategy());\n\t\tstrategyEClass.getESuperTypes().add(this.getserviceMS());\n\t\tmisuseEClass.getESuperTypes().add(this.getserviceMS());\n\t\tresistanceEClass.getESuperTypes().add(this.getstrategy());\n\t\trecognitionEClass.getESuperTypes().add(this.getstrategy());\n\n\t\t// Initialize classes, features, and operations; add parameters\n\t\tinitEClass(recoveryEClass, recovery.class, \"recovery\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getrecovery_Affects(), theSurvTypesPackage.getaffectConsequence(), null, \"affects\", null, 0, -1, recovery.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);\n\t\tinitEReference(getrecovery_MTTR(), theSurvTypesPackage.getduration(), null, \"MTTR\", null, 0, 1, recovery.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);\n\n\t\tinitEClass(strategyEClass, strategy.class, \"strategy\", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getstrategy_SuccessProb(), theTypesPackage.getReal(), \"successProb\", null, 0, 1, strategy.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);\n\n\t\tinitEClass(serviceMSEClass, serviceMS.class, \"serviceMS\", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getserviceMS_Base_UseCase(), theUMLPackage.getUseCase(), null, \"base_UseCase\", null, 1, 1, serviceMS.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);\n\n\t\tinitEClass(misuseEClass, misuse.class, \"misuse\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getmisuse_Affects(), theSurvTypesPackage.getaffectConsequence(), null, \"affects\", null, 0, -1, misuse.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);\n\t\tinitEAttribute(getmisuse_SuccessProb(), theTypesPackage.getReal(), \"successProb\", null, 0, 1, misuse.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);\n\t\tinitEReference(getmisuse_AttackDelay(), theSurvTypesPackage.getduration(), null, \"attackDelay\", null, 0, 1, misuse.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);\n\n\t\tinitEClass(serviceEClass, service.class, \"service\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getservice_Indices(), theSurvTypesPackage.getindex(), null, \"indices\", null, 0, -1, service.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);\n\t\tinitEReference(getservice_Base_UseCase(), theUMLPackage.getUseCase(), null, \"base_UseCase\", null, 1, 1, service.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);\n\n\t\tinitEClass(threatensEClass, threatens.class, \"threatens\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getthreatens_Base_Dependency(), theUMLPackage.getDependency(), null, \"base_Dependency\", null, 1, 1, threatens.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);\n\n\t\tinitEClass(mitigatesEClass, mitigates.class, \"mitigates\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getmitigates_Base_Dependency(), theUMLPackage.getDependency(), null, \"base_Dependency\", null, 1, 1, mitigates.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);\n\n\t\tinitEClass(misuserEClass, misuser.class, \"misuser\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getmisuser_Base_Actor(), theUMLPackage.getActor(), null, \"base_Actor\", null, 1, 1, misuser.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);\n\n\t\tinitEClass(resistanceEClass, resistance.class, \"resistance\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\n\t\tinitEClass(recognitionEClass, recognition.class, \"recognition\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\n\t\tinitEClass(serviceModeDefinitionEClass, ServiceModeDefinition.class, \"ServiceModeDefinition\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getServiceModeDefinition_Base_Constraint(), theUMLPackage.getConstraint(), null, \"base_Constraint\", null, 1, 1, ServiceModeDefinition.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);\n\t\tinitEAttribute(getServiceModeDefinition_Formula(), theTypesPackage.getString(), \"formula\", null, 0, -1, ServiceModeDefinition.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);\n\t}", "title": "" }, { "docid": "017272d84d9e5d41b6c8c2f99e47e9d4", "score": "0.6109646", "text": "public void initializePackageContents() {\n\t\tif (isInitialized)\n\t\t\treturn;\n\t\tisInitialized = true;\n\n\t\t// Initialize package\n\t\tsetName(eNAME);\n\t\tsetNsPrefix(eNS_PREFIX);\n\t\tsetNsURI(eNS_URI);\n\n\t\t// Obtain other dependent packages\n\t\tXMLTypePackage theXMLTypePackage = (XMLTypePackage) EPackage.Registry.INSTANCE\n\t\t\t\t.getEPackage(XMLTypePackage.eNS_URI);\n\n\t\t// Create type parameters\n\n\t\t// Set bounds for type parameters\n\n\t\t// Add supertypes to classes\n\n\t\t// Initialize classes, features, and operations; add parameters\n\t\tinitEClass(graphEClass, Graph.class, \"Graph\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getGraph_Name(), ecorePackage.getEString(), \"name\", null, 1, 1, Graph.class, !IS_TRANSIENT,\n\t\t\t\t!IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getGraph_Nodes(), this.getNode(), null, \"nodes\", null, 0, -1, Graph.class, !IS_TRANSIENT,\n\t\t\t\t!IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED,\n\t\t\t\tIS_ORDERED);\n\n\t\tinitEClass(nodeEClass, Node.class, \"Node\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getNode_Label(), theXMLTypePackage.getString(), \"label\", null, 1, 1, Node.class, !IS_TRANSIENT,\n\t\t\t\t!IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getNode_Shape(), this.getShape(), \"shape\", null, 1, 1, Node.class, !IS_TRANSIENT, !IS_VOLATILE,\n\t\t\t\tIS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getNode_OutEdges(), this.getEdge(), null, \"outEdges\", null, 0, -1, Node.class, !IS_TRANSIENT,\n\t\t\t\t!IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED,\n\t\t\t\tIS_ORDERED);\n\n\t\tinitEClass(edgeEClass, Edge.class, \"Edge\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getEdge_Style(), this.getStyle(), \"style\", null, 1, 1, Edge.class, !IS_TRANSIENT, !IS_VOLATILE,\n\t\t\t\tIS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getEdge_Target(), this.getNode(), null, \"target\", null, 1, 1, Edge.class, !IS_TRANSIENT,\n\t\t\t\t!IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED,\n\t\t\t\tIS_ORDERED);\n\n\t\t// Initialize enums and add enum literals\n\t\tinitEEnum(shapeEEnum, Shape.class, \"Shape\");\n\t\taddEEnumLiteral(shapeEEnum, Shape.BOX);\n\t\taddEEnumLiteral(shapeEEnum, Shape.OVAL);\n\n\t\tinitEEnum(styleEEnum, Style.class, \"Style\");\n\t\taddEEnumLiteral(styleEEnum, Style.SOLID);\n\t\taddEEnumLiteral(styleEEnum, Style.DOTTED);\n\t\taddEEnumLiteral(styleEEnum, Style.DASHED);\n\n\t\t// Create resource\n\t\tcreateResource(eNS_URI);\n\t}", "title": "" }, { "docid": "b5ffd887c3fd83973e6059d1d1f69adb", "score": "0.6102583", "text": "public void initializePackageContents() {\r\n\t\tif (isInitialized) return;\r\n\t\tisInitialized = true;\r\n\r\n\t\t// Initialize package\r\n\t\tsetName(eNAME);\r\n\t\tsetNsPrefix(eNS_PREFIX);\r\n\t\tsetNsURI(eNS_URI);\r\n\r\n\t\t// Obtain other dependent packages\r\n\t\tRefOntoUMLPackage theRefOntoUMLPackage = (RefOntoUMLPackage)EPackage.Registry.INSTANCE.getEPackage(RefOntoUMLPackage.eNS_URI);\r\n\t\tEcorePackage theEcorePackage = (EcorePackage)EPackage.Registry.INSTANCE.getEPackage(EcorePackage.eNS_URI);\r\n\r\n\t\t// Create type parameters\r\n\r\n\t\t// Set bounds for type parameters\r\n\r\n\t\t// Add supertypes to classes\r\n\t\tindividualEClass.getESuperTypes().add(this.getStory_element());\r\n\t\tnodeEClass.getESuperTypes().add(this.getIndividual());\r\n\t\tlinkEClass.getESuperTypes().add(this.getIndividual());\r\n\t\tworldEClass.getESuperTypes().add(this.getStory_element());\r\n\t\teventEClass.getESuperTypes().add(this.getStory_element());\r\n\t\thappeningEClass.getESuperTypes().add(this.getEvent());\r\n\t\tactionEClass.getESuperTypes().add(this.getEvent());\r\n\t\tallDifferentEClass.getESuperTypes().add(this.getStory_element());\r\n\r\n\t\t// Initialize classes, features, and operations; add parameters\r\n\t\tinitEClass(storyEClass, Story.class, \"Story\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\r\n\t\tinitEReference(getStory_Elements(), this.getStory_element(), null, \"elements\", null, 0, -1, Story.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\t\tinitEAttribute(getStory_Label(), ecorePackage.getEString(), \"label\", \"story\", 0, 1, Story.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\r\n\t\tinitEClass(individualEClass, Individual.class, \"Individual\", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\r\n\t\tinitEReference(getIndividual_Different_from(), this.getIndividual(), null, \"different_from\", null, 0, -1, Individual.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\t\tinitEReference(getIndividual_Same_as(), this.getIndividual(), null, \"same_as\", null, 0, -1, Individual.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\t\tinitEReference(getIndividual_Present_in(), this.getWorld(), null, \"present_in\", null, 0, -1, Individual.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\t\tinitEReference(getIndividual_Absent_from(), this.getWorld(), null, \"absent_from\", null, 0, -1, Individual.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\r\n\t\tinitEClass(nodeEClass, Node.class, \"Node\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\r\n\t\tinitEReference(getNode_Performed(), this.getAction(), this.getAction_Performed_by(), \"performed\", null, 0, -1, Node.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\t\tinitEReference(getNode_Instance_of(), theRefOntoUMLPackage.getClass_(), null, \"instance_of\", null, 0, -1, Node.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\t\tinitEReference(getNode_Is_referred_to_in(), this.getClassification_statement(), null, \"is_referred_to_in\", null, 0, -1, Node.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\t\tinitEReference(getNode_Not_instance_of(), theRefOntoUMLPackage.getClass_(), null, \"not_instance_of\", null, 0, -1, Node.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\r\n\t\tinitEClass(linkEClass, Link.class, \"Link\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\r\n\t\tinitEReference(getLink_Source(), this.getNode(), null, \"source\", null, 1, 1, Link.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\t\tinitEReference(getLink_Target(), this.getNode(), null, \"target\", null, 1, 1, Link.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\t\tinitEReference(getLink_Instance_of(), theRefOntoUMLPackage.getAssociation(), null, \"instance_of\", null, 0, -1, Link.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\t\tinitEReference(getLink_Not_instance_of(), theRefOntoUMLPackage.getAssociation(), null, \"not_instance_of\", null, 0, -1, Link.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\r\n\t\tinitEClass(worldEClass, World.class, \"World\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\r\n\t\tinitEReference(getWorld_Enabled(), this.getEvent(), this.getEvent_Happened_in(), \"enabled\", null, 0, -1, World.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\t\tinitEReference(getWorld_Brought_about_by(), this.getEvent(), this.getEvent_Brings_about(), \"brought_about_by\", null, 0, -1, World.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\t\tinitEReference(getWorld_Next(), this.getWorld(), this.getWorld_Prev(), \"next\", null, 0, 1, World.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\t\tinitEReference(getWorld_Prev(), this.getWorld(), this.getWorld_Next(), \"prev\", null, 0, 1, World.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\r\n\t\tinitEClass(eventEClass, Event.class, \"Event\", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\r\n\t\tinitEReference(getEvent_Directly_causes(), this.getEvent(), null, \"directly_causes\", null, 0, -1, Event.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\t\tinitEReference(getEvent_Causes(), this.getEvent(), null, \"causes\", null, 0, -1, Event.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\t\tinitEReference(getEvent_Brings_about(), this.getWorld(), this.getWorld_Brought_about_by(), \"brings_about\", null, 1, 1, Event.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\t\tinitEReference(getEvent_Happened_in(), this.getWorld(), this.getWorld_Enabled(), \"happened_in\", null, 1, 1, Event.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\t\tinitEReference(getEvent_Has_part(), this.getEvent(), null, \"has_part\", null, 0, -1, Event.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\r\n\t\tinitEClass(story_elementEClass, Story_element.class, \"Story_element\", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\r\n\t\tinitEAttribute(getStory_element_Label(), ecorePackage.getEString(), \"label\", \"element\", 0, 1, Story_element.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\r\n\t\tinitEClass(happeningEClass, Happening.class, \"Happening\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\r\n\r\n\t\tinitEClass(actionEClass, Action.class, \"Action\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\r\n\t\tinitEReference(getAction_Motivated_by(), this.getEvent(), null, \"motivated_by\", null, 0, -1, Action.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\t\tinitEReference(getAction_Performed_by(), this.getNode(), this.getNode_Performed(), \"performed_by\", null, 1, 1, Action.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\r\n\t\tinitEClass(allDifferentEClass, AllDifferent.class, \"AllDifferent\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\r\n\t\tinitEReference(getAllDifferent_Distinct_members(), this.getIndividual(), null, \"distinct_members\", null, 2, -1, AllDifferent.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\r\n\t\tinitEClass(classification_statementEClass, Classification_statement.class, \"Classification_statement\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\r\n\t\tinitEReference(getClassification_statement_Holds_in(), this.getWorld(), null, \"holds_in\", null, 0, -1, Classification_statement.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\t\tinitEReference(getClassification_statement_Not_holds_in(), this.getWorld(), null, \"not_holds_in\", null, 0, -1, Classification_statement.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\t\tinitEReference(getClassification_statement_AntiRigidClasses(), theRefOntoUMLPackage.getClass_(), null, \"antiRigidClasses\", null, 1, -1, Classification_statement.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\t\tinitEAttribute(getClassification_statement_Label(), theEcorePackage.getEString(), \"label\", null, 0, 1, Classification_statement.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\r\n\t\t// Create resource\r\n\t\tcreateResource(eNS_URI);\r\n\t}", "title": "" }, { "docid": "6e7d523311e4248fbe64756b6592c4ca", "score": "0.61017454", "text": "public void initializePackageContents() {\n\t\tif (isInitialized) return;\n\t\tisInitialized = true;\n\n\t\t// Initialize package\n\t\tsetName(eNAME);\n\t\tsetNsPrefix(eNS_PREFIX);\n\t\tsetNsURI(eNS_URI);\n\n\t\t// Create type parameters\n\n\t\t// Set bounds for type parameters\n\n\t\t// Add supertypes to classes\n\t\tconstraintEClass.getESuperTypes().add(this.getIOntModelChangeListener());\n\n\t\t// Initialize classes and features; add operations and parameters\n\t\tinitEClass(constraintSpaceEClass, ConstraintSpace.class, \"ConstraintSpace\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); //$NON-NLS-1$\n\t\tinitEAttribute(getConstraintSpace_Ontology(), ecorePackage.getEString(), \"ontology\", null, 0, -1, ConstraintSpace.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$\n\t\tinitEReference(getConstraintSpace_ConstraintSet(), this.getConstraintSet(), this.getConstraintSet_Space(), \"constraintSet\", null, 0, -1, ConstraintSpace.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$\n\n\t\tEOperation op = addEOperation(constraintSpaceEClass, this.getConstraintSet(), \"getIntersectionSet\", 0, 1, IS_UNIQUE, IS_ORDERED); //$NON-NLS-1$\n\t\taddEException(op, this.getOntException());\n\n\t\top = addEOperation(constraintSpaceEClass, this.getConstraintSet(), \"getMostSpecific\", 0, -1, IS_UNIQUE, IS_ORDERED); //$NON-NLS-1$\n\t\taddEParameter(op, ecorePackage.getEBoolean(), \"validate\", 0, 1, IS_UNIQUE, IS_ORDERED); //$NON-NLS-1$\n\t\taddEException(op, this.getOntException());\n\n\t\top = addEOperation(constraintSpaceEClass, this.getConstraintSet(), \"getLeastSpecific\", 0, -1, IS_UNIQUE, IS_ORDERED); //$NON-NLS-1$\n\t\taddEParameter(op, ecorePackage.getEBoolean(), \"validate\", 0, 1, IS_UNIQUE, IS_ORDERED); //$NON-NLS-1$\n\t\taddEException(op, this.getOntException());\n\n\t\top = addEOperation(constraintSpaceEClass, this.getConstraintSet(), \"getValid\", 0, -1, IS_UNIQUE, IS_ORDERED); //$NON-NLS-1$\n\t\taddEException(op, this.getOntException());\n\n\t\top = addEOperation(constraintSpaceEClass, this.getConstraintSet(), \"getInvalid\", 0, -1, IS_UNIQUE, IS_ORDERED); //$NON-NLS-1$\n\t\taddEException(op, this.getOntException());\n\n\t\tinitEClass(constraintSetEClass, ConstraintSet.class, \"ConstraintSet\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); //$NON-NLS-1$\n\t\tinitEReference(getConstraintSet_Space(), this.getConstraintSpace(), this.getConstraintSpace_ConstraintSet(), \"space\", null, 1, 1, ConstraintSet.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$\n\t\tinitEAttribute(getConstraintSet_Name(), ecorePackage.getEString(), \"name\", null, 1, 1, ConstraintSet.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$\n\t\tinitEReference(getConstraintSet_Constraint(), this.getConstraint(), this.getConstraint_Set(), \"constraint\", null, 0, -1, ConstraintSet.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$\n\n\t\top = addEOperation(constraintSetEClass, ecorePackage.getEBoolean(), \"isValid\", 0, 1, IS_UNIQUE, IS_ORDERED); //$NON-NLS-1$\n\t\taddEException(op, this.getOntException());\n\n\t\taddEOperation(constraintSetEClass, this.getConstraint(), \"getMostSpecific\", 0, -1, IS_UNIQUE, IS_ORDERED); //$NON-NLS-1$\n\n\t\taddEOperation(constraintSetEClass, this.getConstraint(), \"getLeastSpecific\", 0, -1, IS_UNIQUE, IS_ORDERED); //$NON-NLS-1$\n\n\t\top = addEOperation(constraintSetEClass, this.getConstraint(), \"getIntersection\", 0, 1, IS_UNIQUE, IS_ORDERED); //$NON-NLS-1$\n\t\taddEException(op, this.getOntException());\n\n\t\tinitEClass(constraintEClass, Constraint.class, \"Constraint\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); //$NON-NLS-1$\n\t\tinitEReference(getConstraint_Set(), this.getConstraintSet(), this.getConstraintSet_Constraint(), \"set\", null, 1, 1, Constraint.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$\n\t\tinitEAttribute(getConstraint_OntClassURI(), ecorePackage.getEString(), \"ontClassURI\", null, 1, 1, Constraint.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$\n\n\t\top = addEOperation(constraintEClass, ecorePackage.getEBoolean(), \"isValid\", 0, 1, IS_UNIQUE, IS_ORDERED); //$NON-NLS-1$\n\t\taddEException(op, this.getOntException());\n\n\t\tinitEClass(iOntModelEClass, IOntModel.class, \"IOntModel\", IS_ABSTRACT, IS_INTERFACE, !IS_GENERATED_INSTANCE_CLASS); //$NON-NLS-1$\n\n\t\tinitEClass(iOntModelChangeListenerEClass, IOntModelChangeListener.class, \"IOntModelChangeListener\", IS_ABSTRACT, IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); //$NON-NLS-1$\n\n\t\top = addEOperation(iOntModelChangeListenerEClass, null, \"ontModelChanged\", 0, 1, IS_UNIQUE, IS_ORDERED); //$NON-NLS-1$\n\t\taddEParameter(op, this.getIOntModel(), \"ontModel\", 0, 1, IS_UNIQUE, IS_ORDERED); //$NON-NLS-1$\n\t\taddEException(op, this.getOntException());\n\n\t\tinitEClass(ontExceptionEClass, OntException.class, \"OntException\", IS_ABSTRACT, IS_INTERFACE, !IS_GENERATED_INSTANCE_CLASS); //$NON-NLS-1$\n\n\t\t// Create resource\n\t\tcreateResource(eNS_URI);\n\n\t\t// Create annotations\n\t\t// GenModel\n\t\tcreateGenModelAnnotations();\n\t}", "title": "" }, { "docid": "7332e5fc90fa60f0da2eacac460083a0", "score": "0.6097336", "text": "public void initializePackageContents() {\n\t\tif (isInitialized) return;\n\t\tisInitialized = true;\n\n\t\t// Initialize package\n\t\tsetName(eNAME);\n\t\tsetNsPrefix(eNS_PREFIX);\n\t\tsetNsURI(eNS_URI);\n\n\t\t// Create type parameters\n\n\t\t// Set bounds for type parameters\n\n\t\t// Add supertypes to classes\n\t\tautomovilEClass.getESuperTypes().add(this.getVehiculo());\n\t\tdeSegundaEClass.getESuperTypes().add(this.getConductor());\n\t\tdePrimeraEClass.getESuperTypes().add(this.getConductor());\n\t\tpesadoEClass.getESuperTypes().add(this.getVehiculo());\n\t\tcamionEClass.getESuperTypes().add(this.getPesado());\n\t\tcamionetaEClass.getESuperTypes().add(this.getPesado());\n\t\tomnibusEClass.getESuperTypes().add(this.getPesado());\n\n\t\t// Initialize classes, features, and operations; add parameters\n\t\tinitEClass(diagramaEClass, Diagrama.class, \"Diagrama\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getDiagrama_Vehiculo(), this.getVehiculo(), null, \"vehiculo\", null, 1, -1, Diagrama.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getDiagrama_Conductores(), this.getConductor(), null, \"conductores\", null, 1, -1, Diagrama.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getDiagrama_AsignacionesDiarias(), this.getAsignacionDiaria(), null, \"asignacionesDiarias\", null, 1, -1, Diagrama.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(vehiculoEClass, Vehiculo.class, \"Vehiculo\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getVehiculo_Matricula(), ecorePackage.getEString(), \"matricula\", null, 0, 1, Vehiculo.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getVehiculo_Modelo(), ecorePackage.getEString(), \"modelo\", null, 0, 1, Vehiculo.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getVehiculo_Marca(), ecorePackage.getEString(), \"marca\", null, 0, 1, Vehiculo.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(automovilEClass, Automovil.class, \"Automovil\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getAutomovil_Pasajeros(), ecorePackage.getEInt(), \"pasajeros\", null, 0, 1, Automovil.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(deSegundaEClass, DeSegunda.class, \"DeSegunda\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getDeSegunda_ConductorAsignacionDiaria(), this.getAsignacionDiaria(), null, \"conductorAsignacionDiaria\", null, 1, -1, DeSegunda.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getDeSegunda_AsignacionDiariaVehiculo(), this.getAutomovil(), null, \"asignacionDiariaVehiculo\", null, 1, 1, DeSegunda.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(conductorEClass, Conductor.class, \"Conductor\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getConductor_Cedula(), ecorePackage.getEInt(), \"cedula\", null, 0, 1, Conductor.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getConductor_FechaNacimiento(), ecorePackage.getEDate(), \"fechaNacimiento\", null, 0, 1, Conductor.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getConductor_Nombre(), ecorePackage.getEString(), \"nombre\", null, 0, 1, Conductor.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(dePrimeraEClass, DePrimera.class, \"DePrimera\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getDePrimera_AsignacionFija(), this.getPesado(), null, \"asignacionFija\", null, 1, 1, DePrimera.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(pesadoEClass, Pesado.class, \"Pesado\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getPesado_Carga(), ecorePackage.getEInt(), \"carga\", null, 0, 1, Pesado.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(camionEClass, Camion.class, \"Camion\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getCamion_CantidadDeEjes(), ecorePackage.getEInt(), \"cantidadDeEjes\", null, 0, 1, Camion.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(camionetaEClass, Camioneta.class, \"Camioneta\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getCamioneta_DobleCabina(), ecorePackage.getEBoolean(), \"dobleCabina\", null, 0, 1, Camioneta.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(omnibusEClass, Omnibus.class, \"Omnibus\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getOmnibus_CantidadAsientos(), ecorePackage.getEInt(), \"cantidadAsientos\", null, 0, 1, Omnibus.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getOmnibus_Banio(), ecorePackage.getEBoolean(), \"banio\", null, 0, 1, Omnibus.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(asignacionDiariaEClass, AsignacionDiaria.class, \"AsignacionDiaria\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getAsignacionDiaria_AsignacionDiariaVehiculo(), this.getAutomovil(), null, \"asignacionDiariaVehiculo\", null, 1, 1, AsignacionDiaria.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getAsignacionDiaria_FechaAsignacion(), ecorePackage.getEDate(), \"fechaAsignacion\", null, 0, 1, AsignacionDiaria.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\t// Create resource\n\t\tcreateResource(eNS_URI);\n\t}", "title": "" }, { "docid": "6000c4c3e9a13900c88f14151c385a4f", "score": "0.60782796", "text": "public void initializePackageContents() {\n\t\tif (isInitialized) return;\n\t\tisInitialized = true;\n\n\t\t// Initialize package\n\t\tsetName(eNAME);\n\t\tsetNsPrefix(eNS_PREFIX);\n\t\tsetNsURI(eNS_URI);\n\n\t\t// Create type parameters\n\n\t\t// Set bounds for type parameters\n\n\t\t// Add supertypes to classes\n\t\tspecificationEClass.getESuperTypes().add(this.getNamedElement());\n\t\tfeatureEClass.getESuperTypes().add(this.getNamedElement());\n\t\troleEClass.getESuperTypes().add(this.getNamedElement());\n\t\tcapabilityEClass.getESuperTypes().add(this.getNamedElement());\n\t\tbenefitEClass.getESuperTypes().add(this.getNamedElement());\n\t\tstoryEClass.getESuperTypes().add(this.getNamedElement());\n\t\tscenarioEClass.getESuperTypes().add(this.getNamedElement());\n\t\tcontextEClass.getESuperTypes().add(this.getScenarioElement());\n\t\tactionEClass.getESuperTypes().add(this.getScenarioElement());\n\t\tbehaviourEClass.getESuperTypes().add(this.getScenarioElement());\n\t\timplementationNoteEClass.getESuperTypes().add(this.getNote());\n\t\ttestNoteEClass.getESuperTypes().add(this.getNote());\n\t\tscenarioElementEClass.getESuperTypes().add(this.getNamedElement());\n\t\ttestGenerationNoteEClass.getESuperTypes().add(this.getNote());\n\t\tparameterEClass.getESuperTypes().add(this.getNamedElement());\n\n\t\t// Initialize classes and features; add operations and parameters\n\t\tinitEClass(specificationEClass, Specification.class, \"Specification\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getSpecification_Features(), this.getFeature(), null, \"features\", null, 1, -1, Specification.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tgetSpecification_Features().getEKeys().add(this.getNamedElement_Name());\n\t\tinitEReference(getSpecification_Roles(), this.getRole(), null, \"roles\", null, 1, -1, Specification.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tgetSpecification_Roles().getEKeys().add(this.getNamedElement_Name());\n\t\tinitEReference(getSpecification_AutomationLayer(), this.getAutomationLayer(), null, \"automationLayer\", null, 0, 1, Specification.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getSpecification_Stories(), this.getStory(), null, \"stories\", null, 0, -1, Specification.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tgetSpecification_Stories().getEKeys().add(this.getNamedElement_Name());\n\t\tinitEReference(getSpecification_Benefits(), this.getBenefit(), null, \"benefits\", null, 0, -1, Specification.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tgetSpecification_Benefits().getEKeys().add(this.getNamedElement_Name());\n\t\tinitEReference(getSpecification_Capabilities(), this.getCapability(), null, \"capabilities\", null, 0, -1, Specification.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tgetSpecification_Capabilities().getEKeys().add(this.getNamedElement_Name());\n\n\t\tinitEClass(featureEClass, Feature.class, \"Feature\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getFeature_RefFeatures(), this.getFeature(), null, \"refFeatures\", null, 0, -1, Feature.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getFeature_Stories(), this.getStory(), null, \"stories\", null, 0, -1, Feature.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(roleEClass, Role.class, \"Role\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\n\t\tinitEClass(capabilityEClass, Capability.class, \"Capability\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\n\t\tinitEClass(benefitEClass, Benefit.class, \"Benefit\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\n\t\tinitEClass(storyEClass, Story.class, \"Story\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getStory_As(), this.getRole(), null, \"As\", null, 1, 1, Story.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getStory_SoThat(), this.getBenefit(), null, \"soThat\", null, 1, 1, Story.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getStory_Scenarios(), this.getScenario(), null, \"scenarios\", null, 1, -1, Story.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tgetStory_Scenarios().getEKeys().add(this.getNamedElement_Name());\n\t\tinitEReference(getStory_IWant(), this.getCapability(), null, \"iWant\", null, 1, 1, Story.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(scenarioEClass, Scenario.class, \"Scenario\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getScenario_Given(), this.getContext(), null, \"given\", null, 1, -1, Scenario.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getScenario_When(), this.getAction(), null, \"when\", null, 1, -1, Scenario.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getScenario_Then(), this.getBehaviour(), null, \"then\", null, 1, -1, Scenario.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getScenario_Values(), this.getValue(), null, \"values\", null, 0, -1, Scenario.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(contextEClass, Context.class, \"Context\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getContext_Contexts(), this.getContext(), null, \"contexts\", null, 0, -1, Context.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(actionEClass, Action.class, \"Action\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\n\t\tinitEClass(behaviourEClass, Behaviour.class, \"Behaviour\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\n\t\tinitEClass(automationLayerEClass, AutomationLayer.class, \"AutomationLayer\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getAutomationLayer_Context(), this.getContext(), null, \"context\", null, 0, -1, AutomationLayer.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tgetAutomationLayer_Context().getEKeys().add(this.getNamedElement_Name());\n\t\tinitEReference(getAutomationLayer_Actions(), this.getAction(), null, \"actions\", null, 0, -1, AutomationLayer.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tgetAutomationLayer_Actions().getEKeys().add(this.getNamedElement_Name());\n\t\tinitEReference(getAutomationLayer_Behaviours(), this.getBehaviour(), null, \"behaviours\", null, 0, -1, AutomationLayer.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tgetAutomationLayer_Behaviours().getEKeys().add(this.getNamedElement_Name());\n\t\tinitEAttribute(getAutomationLayer_BasePackage(), ecorePackage.getEString(), \"basePackage\", null, 0, 1, AutomationLayer.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(namedElementEClass, NamedElement.class, \"NamedElement\", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getNamedElement_Name(), ecorePackage.getEString(), \"name\", null, 1, 1, NamedElement.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getNamedElement_Notes(), this.getNote(), null, \"notes\", null, 0, -1, NamedElement.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(noteEClass, Note.class, \"Note\", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getNote_Description(), ecorePackage.getEString(), \"description\", null, 0, 1, Note.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(implementationNoteEClass, ImplementationNote.class, \"ImplementationNote\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\n\t\tinitEClass(testNoteEClass, TestNote.class, \"TestNote\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\n\t\tinitEClass(scenarioElementEClass, ScenarioElement.class, \"ScenarioElement\", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getScenarioElement_Parameters(), this.getParameter(), null, \"parameters\", null, 0, -1, ScenarioElement.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(testGenerationNoteEClass, TestGenerationNote.class, \"TestGenerationNote\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getTestGenerationNote_Type(), this.getTestType(), \"type\", null, 0, 1, TestGenerationNote.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(valueEClass, Value.class, \"Value\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getValue_Value(), ecorePackage.getEString(), \"value\", null, 0, 1, Value.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getValue_Parameter(), this.getParameter(), null, \"parameter\", null, 1, 1, Value.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(parameterEClass, Parameter.class, \"Parameter\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\n\t\t// Initialize enums and add enum literals\n\t\tinitEEnum(testTypeEEnum, TestType.class, \"TestType\");\n\t\taddEEnumLiteral(testTypeEEnum, TestType.MANUAL);\n\t\taddEEnumLiteral(testTypeEEnum, TestType.PLUGIN);\n\t\taddEEnumLiteral(testTypeEEnum, TestType.UI);\n\t\taddEEnumLiteral(testTypeEEnum, TestType.UNIT);\n\n\t\t// Create resource\n\t\tcreateResource(eNS_URI);\n\t}", "title": "" }, { "docid": "322254b35d157b3c37fb20c2c547ed23", "score": "0.6062074", "text": "public void initializePackageContents()\n {\n if (isInitialized) return;\n isInitialized = true;\n\n // Initialize package\n setName(eNAME);\n setNsPrefix(eNS_PREFIX);\n setNsURI(eNS_URI);\n\n // Create type parameters\n\n // Set bounds for type parameters\n\n // Add supertypes to classes\n\n // Initialize classes and features; add operations and parameters\n initEClass(modelEClass, Model.class, \"Model\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEReference(getModel_Contents(), this.getSlideContent(), null, \"contents\", null, 0, -1, Model.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEReference(getModel_Presentations(), this.getPresentation(), null, \"presentations\", null, 0, -1, Model.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEReference(getModel_Themes(), this.getTheme(), null, \"themes\", null, 0, -1, Model.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(slideContentEClass, SlideContent.class, \"SlideContent\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEAttribute(getSlideContent_Name(), ecorePackage.getEString(), \"name\", null, 0, 1, SlideContent.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEAttribute(getSlideContent_Text(), ecorePackage.getEString(), \"text\", null, 0, 1, SlideContent.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEAttribute(getSlideContent_Note(), ecorePackage.getEString(), \"note\", null, 0, 1, SlideContent.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(presentationEClass, Presentation.class, \"Presentation\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEAttribute(getPresentation_Name(), ecorePackage.getEString(), \"name\", null, 0, 1, Presentation.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEReference(getPresentation_Theme(), this.getTheme(), null, \"theme\", null, 0, 1, Presentation.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEReference(getPresentation_Slides(), this.getSlideContent(), null, \"slides\", null, 0, -1, Presentation.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(themeEClass, Theme.class, \"Theme\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEAttribute(getTheme_Name(), ecorePackage.getEString(), \"name\", null, 0, 1, Theme.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEAttribute(getTheme_Background(), this.getColor(), \"background\", null, 0, 1, Theme.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEAttribute(getTheme_Header(), ecorePackage.getEString(), \"header\", null, 0, 1, Theme.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEAttribute(getTheme_Footer(), ecorePackage.getEString(), \"footer\", null, 0, 1, Theme.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n // Initialize enums and add enum literals\n initEEnum(colorEEnum, Color.class, \"Color\");\n addEEnumLiteral(colorEEnum, Color.WHITE);\n addEEnumLiteral(colorEEnum, Color.GREY);\n\n // Create resource\n createResource(eNS_URI);\n }", "title": "" }, { "docid": "de545892c08fb5cf9b48bb7d8061086f", "score": "0.60473555", "text": "public void initializePackageContents() {\n if (isInitialized)\n return;\n isInitialized = true;\n\n // Initialize package\n setName(eNAME);\n setNsPrefix(eNS_PREFIX);\n setNsURI(eNS_URI);\n\n // Obtain other dependent packages\n COREPackage theCOREPackage = (COREPackage) EPackage.Registry.INSTANCE.getEPackage(COREPackage.eNS_URI);\n XMLTypePackage theXMLTypePackage = (XMLTypePackage) EPackage.Registry.INSTANCE.getEPackage(XMLTypePackage.eNS_URI);\n\n // Create type parameters\n\n // Set bounds for type parameters\n\n // Add supertypes to classes\n cbRootEClass.getESuperTypes().add(theCOREPackage.getAbstractRootElement());\n cbRootEClass.getESuperTypes().add(theCOREPackage.getAbstractDiagram());\n cbLogicEClass.getESuperTypes().add(theCOREPackage.getAbstractNode());\n cbFileEClass.getESuperTypes().add(theCOREPackage.getAbstractNode());\n cbAllCombinationEClass.getESuperTypes().add(this.getCBLogicType());\n cbPairWiseEClass.getESuperTypes().add(this.getCBLogicType());\n\n // Initialize classes, features, and operations; add parameters\n initEClass(cbRootEClass, CBRoot.class, \"CBRoot\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEReference(getCBRoot_Logic(), this.getCBLogic(), null, \"logic\", null, 0, 1, CBRoot.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES,\n !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEAttribute(getCBRoot_LayoutMode(), theXMLTypePackage.getInt(), \"layoutMode\", null, 0, 1, CBRoot.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE,\n !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(cbLogicEClass, CBLogic.class, \"CBLogic\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEReference(getCBLogic_Children(), this.getCBLogic(), null, \"children\", null, 0, -1, CBLogic.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE,\n !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEReference(getCBLogic_File(), this.getCBFile(), null, \"file\", null, 0, -1, CBLogic.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES,\n !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEReference(getCBLogic_Type(), this.getCBLogicType(), null, \"type\", null, 1, 1, CBLogic.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE,\n !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(cbFileEClass, CBFile.class, \"CBFile\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEAttribute(getCBFile_Uuid(), ecorePackage.getEString(), \"uuid\", null, 0, 1, CBFile.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE,\n !IS_DERIVED, IS_ORDERED);\n initEAttribute(getCBFile_Pattern(), ecorePackage.getEString(), \"pattern\", null, 1, 1, CBFile.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID,\n IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEReference(getCBFile_AbstractRoot(), theCOREPackage.getAbstractRootElement(), null, \"abstractRoot\", null, 1, 1, CBFile.class, !IS_TRANSIENT, !IS_VOLATILE,\n IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEAttribute(getCBFile_Hash(), ecorePackage.getEString(), \"hash\", null, 0, 1, CBFile.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE,\n !IS_DERIVED, IS_ORDERED);\n\n initEClass(cbAllCombinationEClass, CBAllCombination.class, \"CBAllCombination\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\n initEClass(cbPairWiseEClass, CBPairWise.class, \"CBPairWise\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\n initEClass(cbLogicTypeEClass, CBLogicType.class, \"CBLogicType\", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\n // Create resource\n createResource(eNS_URI);\n }", "title": "" }, { "docid": "cc0adc15ad4fb5670b36231615fd7a9e", "score": "0.6036793", "text": "private void runInitModel()\n\t{\n\t\tclearModel();\n\t\tPlatformUtils.waitForModelLoading(project, null);\n\t\tinitCompatMode();\n\t\tIPMElementInfo<Object> adapted = newElementInfo(project);\n\t\tif (adapted != null)\n\t\t{\n\t\t\tadapted.initialize(this, project, null);\n\t\t\tMap<String, List<GARPackage>> arPackages = getEcucModel().getRootArPackagesWithModuleDefs();\n\t\t\tinitializePackages(adapted, arPackages);\n\t\t\tupdatePMCache(adapted.getParentPackage(this));\n\t\t\tupdatePMCache(adapted.getSubPackage(this, false));\n\t\t\trootNodeInfo = adapted;\n\t\t}\n\t}", "title": "" }, { "docid": "e199bf90eb9729e25445e9d77541bef5", "score": "0.6026298", "text": "public void initializePackageContents()\n {\n if (isInitialized) return;\n isInitialized = true;\n\n // Initialize package\n setName(eNAME);\n setNsPrefix(eNS_PREFIX);\n setNsURI(eNS_URI);\n\n // Create type parameters\n\n // Set bounds for type parameters\n\n // Add supertypes to classes\n complexElementEClass.getESuperTypes().add(this.getDataElement());\n simpleElementEClass.getESuperTypes().add(this.getDataElement());\n\n // Initialize classes and features; add operations and parameters\n initEClass(sdlEClass, at.ac.univie.cs.swa.soa.sdl.SDL.class, \"SDL\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEAttribute(getSDL_Name(), ecorePackage.getEString(), \"name\", null, 0, 1, at.ac.univie.cs.swa.soa.sdl.SDL.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEReference(getSDL_Imports(), this.getImport(), null, \"imports\", null, 0, -1, at.ac.univie.cs.swa.soa.sdl.SDL.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEReference(getSDL_Services(), this.getService(), null, \"services\", null, 0, -1, at.ac.univie.cs.swa.soa.sdl.SDL.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEReference(getSDL_Data(), this.getDataElement(), null, \"data\", null, 0, -1, at.ac.univie.cs.swa.soa.sdl.SDL.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEReference(getSDL_Nodes(), this.getNode(), null, \"nodes\", null, 0, -1, at.ac.univie.cs.swa.soa.sdl.SDL.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(serviceEClass, Service.class, \"Service\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEAttribute(getService_Name(), ecorePackage.getEString(), \"name\", null, 0, 1, Service.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEReference(getService_Operations(), this.getOperation(), null, \"operations\", null, 0, -1, Service.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(operationEClass, Operation.class, \"Operation\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEAttribute(getOperation_Name(), ecorePackage.getEString(), \"name\", null, 0, 1, Operation.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEAttribute(getOperation_InputName(), ecorePackage.getEString(), \"inputName\", null, 0, 1, Operation.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEReference(getOperation_InputType(), this.getDataElement(), null, \"inputType\", null, 0, 1, Operation.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEAttribute(getOperation_OutputName(), ecorePackage.getEString(), \"outputName\", null, 0, 1, Operation.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEReference(getOperation_OutputType(), this.getDataElement(), null, \"outputType\", null, 0, 1, Operation.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(nodeEClass, Node.class, \"Node\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEAttribute(getNode_Name(), ecorePackage.getEString(), \"name\", null, 0, 1, Node.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEAttribute(getNode_BaseURI(), ecorePackage.getEString(), \"baseURI\", null, 0, 1, Node.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEReference(getNode_Services(), this.getService(), null, \"services\", null, 0, -1, Node.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(dataElementEClass, DataElement.class, \"DataElement\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEAttribute(getDataElement_Name(), ecorePackage.getEString(), \"name\", null, 0, 1, DataElement.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(complexElementEClass, ComplexElement.class, \"ComplexElement\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEReference(getComplexElement_Elements(), this.getSimpleElement(), null, \"elements\", null, 0, -1, ComplexElement.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(simpleElementEClass, SimpleElement.class, \"SimpleElement\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEAttribute(getSimpleElement_Type(), this.getDATATYPE(), \"type\", null, 0, 1, SimpleElement.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEReference(getSimpleElement_Ref(), this.getComplexElement(), null, \"ref\", null, 0, 1, SimpleElement.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEAttribute(getSimpleElement_Multiplicity(), this.getMULTIPLICITY(), \"multiplicity\", null, 0, 1, SimpleElement.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(importEClass, Import.class, \"Import\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEAttribute(getImport_ImportedNamespace(), ecorePackage.getEString(), \"importedNamespace\", null, 0, 1, Import.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n // Initialize enums and add enum literals\n initEEnum(datatypeEEnum, at.ac.univie.cs.swa.soa.sdl.DATATYPE.class, \"DATATYPE\");\n addEEnumLiteral(datatypeEEnum, at.ac.univie.cs.swa.soa.sdl.DATATYPE.STRING);\n addEEnumLiteral(datatypeEEnum, at.ac.univie.cs.swa.soa.sdl.DATATYPE.INTEGER);\n addEEnumLiteral(datatypeEEnum, at.ac.univie.cs.swa.soa.sdl.DATATYPE.FLOAT);\n addEEnumLiteral(datatypeEEnum, at.ac.univie.cs.swa.soa.sdl.DATATYPE.DATE);\n addEEnumLiteral(datatypeEEnum, at.ac.univie.cs.swa.soa.sdl.DATATYPE.TIME);\n addEEnumLiteral(datatypeEEnum, at.ac.univie.cs.swa.soa.sdl.DATATYPE.DATETIME);\n addEEnumLiteral(datatypeEEnum, at.ac.univie.cs.swa.soa.sdl.DATATYPE.BINARY);\n addEEnumLiteral(datatypeEEnum, at.ac.univie.cs.swa.soa.sdl.DATATYPE.BOOLEAN);\n\n initEEnum(multiplicityEEnum, at.ac.univie.cs.swa.soa.sdl.MULTIPLICITY.class, \"MULTIPLICITY\");\n addEEnumLiteral(multiplicityEEnum, at.ac.univie.cs.swa.soa.sdl.MULTIPLICITY.OPTIONAL);\n addEEnumLiteral(multiplicityEEnum, at.ac.univie.cs.swa.soa.sdl.MULTIPLICITY.PLUS);\n addEEnumLiteral(multiplicityEEnum, at.ac.univie.cs.swa.soa.sdl.MULTIPLICITY.STAR);\n\n // Create resource\n createResource(eNS_URI);\n }", "title": "" }, { "docid": "a177b47780ebc4b194a2e324ae56db18", "score": "0.6013867", "text": "public void initializePackageContents()\n {\n if (isInitialized) return;\n isInitialized = true;\n\n // Initialize package\n setName(eNAME);\n setNsPrefix(eNS_PREFIX);\n setNsURI(eNS_URI);\n\n // Create type parameters\n\n // Set bounds for type parameters\n\n // Add supertypes to classes\n notEClass.getESuperTypes().add(this.getCondition());\n\n // Initialize classes and features; add operations and parameters\n initEClass(programEClass, Program.class, \"Program\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEReference(getProgram_Fonctions(), this.getFonction(), null, \"fonctions\", null, 0, -1, Program.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(fonctionEClass, Fonction.class, \"Fonction\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEAttribute(getFonction_Nom(), ecorePackage.getEString(), \"nom\", null, 0, 1, Fonction.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEReference(getFonction_In(), this.getInput(), null, \"in\", null, 0, 1, Fonction.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEReference(getFonction_Commandes(), this.getCommandes(), null, \"commandes\", null, 0, 1, Fonction.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEReference(getFonction_Out(), this.getOutput(), null, \"out\", null, 0, 1, Fonction.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(commandesEClass, Commandes.class, \"Commandes\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEReference(getCommandes_Commande(), this.getCommande(), null, \"commande\", null, 0, 1, Commandes.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEReference(getCommandes_Commandes(), this.getCommande(), null, \"commandes\", null, 0, -1, Commandes.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(commandeEClass, Commande.class, \"Commande\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEReference(getCommande_Commande(), ecorePackage.getEObject(), null, \"commande\", null, 0, 1, Commande.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(affectationEClass, Affectation.class, \"Affectation\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEReference(getAffectation_Variable(), this.getVariable(), null, \"variable\", null, 0, -1, Affectation.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEReference(getAffectation_Elm(), this.getExpression(), null, \"elm\", null, 0, -1, Affectation.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(ifEClass, If.class, \"If\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEReference(getIf_Cond(), this.getExpression(), null, \"cond\", null, 0, 1, If.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEReference(getIf_CmdsIf(), this.getCommandes(), null, \"cmdsIf\", null, 0, 1, If.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEReference(getIf_CmdsElse(), this.getCommandes(), null, \"cmdsElse\", null, 0, 1, If.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(whileEClass, While.class, \"While\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEReference(getWhile_Cond(), this.getExpression(), null, \"cond\", null, 0, 1, While.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEReference(getWhile_CmdsWh(), this.getCommandes(), null, \"cmdsWh\", null, 0, 1, While.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(forEClass, For.class, \"For\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEReference(getFor_Cond(), this.getExpression(), null, \"cond\", null, 0, 1, For.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEReference(getFor_CmdsFor(), this.getCommandes(), null, \"cmdsFor\", null, 0, 1, For.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(forEachEClass, ForEach.class, \"ForEach\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEReference(getForEach_Elem(), this.getExpression(), null, \"elem\", null, 0, 1, ForEach.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEReference(getForEach_Ensemble(), this.getExpression(), null, \"ensemble\", null, 0, 1, ForEach.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEReference(getForEach_CmdsFor(), this.getCommandes(), null, \"cmdsFor\", null, 0, 1, ForEach.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(nopEClass, Nop.class, \"Nop\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEAttribute(getNop_Nop(), ecorePackage.getEString(), \"nop\", null, 0, 1, Nop.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(expressionEClass, Expression.class, \"Expression\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEReference(getExpression_Cond(), this.getCondition(), null, \"cond\", null, 0, 1, Expression.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEReference(getExpression_Exprs(), this.getExprSimple(), null, \"exprs\", null, 0, 1, Expression.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(exprSimpleEClass, ExprSimple.class, \"ExprSimple\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEReference(getExprSimple_Nil(), this.getNill(), null, \"nil\", null, 0, 1, ExprSimple.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEReference(getExprSimple_Variable(), this.getVariable(), null, \"variable\", null, 0, 1, ExprSimple.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEReference(getExprSimple_Abin(), this.getABin(), null, \"abin\", null, 0, 1, ExprSimple.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEAttribute(getExprSimple_Symb(), ecorePackage.getEString(), \"symb\", null, 0, 1, ExprSimple.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEReference(getExprSimple_Accsucc(), this.getAccSucc(), null, \"accsucc\", null, 0, 1, ExprSimple.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEReference(getExprSimple_ElemSimple(), this.getElemSimple(), null, \"elemSimple\", null, 0, 1, ExprSimple.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(variableEClass, Variable.class, \"Variable\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEAttribute(getVariable_Variable(), ecorePackage.getEString(), \"variable\", null, 0, 1, Variable.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(lexprEClass, Lexpr.class, \"Lexpr\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEReference(getLexpr_E1(), this.getExprSimple(), null, \"e1\", null, 0, 1, Lexpr.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEReference(getLexpr_Lexpr(), this.getLexpr(), null, \"lexpr\", null, 0, 1, Lexpr.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(elemSimpleEClass, ElemSimple.class, \"ElemSimple\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEAttribute(getElemSimple_Symb(), ecorePackage.getEString(), \"symb\", null, 0, 1, ElemSimple.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEReference(getElemSimple_Lexpr(), this.getLexpr(), null, \"lexpr\", null, 0, 1, ElemSimple.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(conditionEClass, Condition.class, \"Condition\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEReference(getCondition_E1(), this.getExprSimple(), null, \"e1\", null, 0, 1, Condition.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEReference(getCondition_Comp(), this.getCOMPARATEUR(), null, \"comp\", null, 0, 1, Condition.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEReference(getCondition_E2(), this.getExpression(), null, \"e2\", null, 0, 1, Condition.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(aBinEClass, ABin.class, \"ABin\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEReference(getABin_Op(), this.getOpConstructeur(), null, \"op\", null, 0, 1, ABin.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEReference(getABin_E1(), this.getExpression(), null, \"e1\", null, 0, 1, ABin.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEReference(getABin_E2(), this.getExpression(), null, \"e2\", null, 0, 1, ABin.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(accSuccEClass, AccSucc.class, \"AccSucc\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEReference(getAccSucc_Op(), this.getOpAccSucc(), null, \"op\", null, 0, 1, AccSucc.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEReference(getAccSucc_Expr(), this.getExprSimple(), null, \"expr\", null, 0, 1, AccSucc.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(outputEClass, Output.class, \"Output\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEAttribute(getOutput_Out(), ecorePackage.getEString(), \"out\", null, 0, -1, Output.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(inputEClass, Input.class, \"Input\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEAttribute(getInput_In(), ecorePackage.getEString(), \"in\", null, 0, -1, Input.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(nillEClass, Nill.class, \"Nill\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEAttribute(getNill_Nil(), ecorePackage.getEString(), \"nil\", null, 0, 1, Nill.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(opAccSuccEClass, OpAccSucc.class, \"OpAccSucc\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEAttribute(getOpAccSucc_Op(), ecorePackage.getEString(), \"op\", null, 0, 1, OpAccSucc.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(notEClass, Not.class, \"Not\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEReference(getNot_Expr(), this.getExpression(), null, \"expr\", null, 0, 1, Not.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEAttribute(getNot_Not(), ecorePackage.getEString(), \"not\", null, 0, 1, Not.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(opConstructeurEClass, OpConstructeur.class, \"OpConstructeur\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEAttribute(getOpConstructeur_Op(), ecorePackage.getEString(), \"op\", null, 0, 1, OpConstructeur.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(comparateurEClass, org.xtext.example.mydsl.myDsl.COMPARATEUR.class, \"COMPARATEUR\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEAttribute(getCOMPARATEUR_Comparateur(), ecorePackage.getEString(), \"comparateur\", null, 0, 1, org.xtext.example.mydsl.myDsl.COMPARATEUR.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n // Create resource\n createResource(eNS_URI);\n }", "title": "" }, { "docid": "a411c8057e5bd68be73ec16a2d5f99f0", "score": "0.60099924", "text": "public void initializePackageContents() {\n\t\tif (isInitialized) return;\n\t\tisInitialized = true;\n\n\t\t// Initialize package\n\t\tsetName(eNAME);\n\t\tsetNsPrefix(eNS_PREFIX);\n\t\tsetNsURI(eNS_URI);\n\n\t\t// Create type parameters\n\n\t\t// Set bounds for type parameters\n\n\t\t// Add supertypes to classes\n\t\tintegerVarEClass.getESuperTypes().add(this.getVariable());\n\t\tbooleanVarEClass.getESuperTypes().add(this.getVariable());\n\n\t\t// Initialize classes, features, and operations; add parameters\n\t\tinitEClass(contextEClass, Context.class, \"Context\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getContext_Variables(), this.getVariable(), null, \"variables\", null, 0, -1, Context.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(variableEClass, Variable.class, \"Variable\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getVariable_Name(), ecorePackage.getEString(), \"name\", null, 0, 1, Variable.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(integerVarEClass, IntegerVar.class, \"IntegerVar\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getIntegerVar_Value(), ecorePackage.getEInt(), \"value\", null, 0, 1, IntegerVar.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(booleanVarEClass, BooleanVar.class, \"BooleanVar\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getBooleanVar_Value(), ecorePackage.getEBoolean(), \"value\", null, 0, 1, BooleanVar.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\t// Create resource\n\t\tcreateResource(eNS_URI);\n\t}", "title": "" }, { "docid": "0236e1e93fced8b2f64cada4ef80a756", "score": "0.60064423", "text": "public void initializePackageContents() {\n\t\tif (isInitialized) return;\n\t\tisInitialized = true;\n\n\t\t// Initialize package\n\t\tsetName(eNAME);\n\t\tsetNsPrefix(eNS_PREFIX);\n\t\tsetNsURI(eNS_URI);\n\n\t\t// Obtain other dependent packages\n\t\tReferencesPackage theReferencesPackage = (ReferencesPackage)EPackage.Registry.INSTANCE.getEPackage(ReferencesPackage.eNS_URI);\n\t\tNavigationPackage theNavigationPackage = (NavigationPackage)EPackage.Registry.INSTANCE.getEPackage(NavigationPackage.eNS_URI);\n\t\tFiltersPackage theFiltersPackage = (FiltersPackage)EPackage.Registry.INSTANCE.getEPackage(FiltersPackage.eNS_URI);\n\t\tCustomNamingPackage theCustomNamingPackage = (CustomNamingPackage)EPackage.Registry.INSTANCE.getEPackage(CustomNamingPackage.eNS_URI);\n\t\tInterfacePackage theInterfacePackage = (InterfacePackage)EPackage.Registry.INSTANCE.getEPackage(InterfacePackage.eNS_URI);\n\n\t\t// Add subpackages\n\t\tgetESubpackages().add(theReferencesPackage);\n\t\tgetESubpackages().add(theNavigationPackage);\n\t\tgetESubpackages().add(theFiltersPackage);\n\t\tgetESubpackages().add(theCustomNamingPackage);\n\t\tgetESubpackages().add(theInterfacePackage);\n\n\t\t// Create type parameters\n\n\t\t// Set bounds for type parameters\n\n\t\t// Add supertypes to classes\n\t\ttotalSampleEClass.getESuperTypes().add(this.getAbstractSample());\n\t\ttextSampleEClass.getESuperTypes().add(this.getAbstractSample());\n\t\tcheckboxSampleEClass.getESuperTypes().add(this.getAbstractSample());\n\t\ttextareaSampleEClass.getESuperTypes().add(this.getAbstractSample());\n\t\tradioSampleEClass.getESuperTypes().add(this.getAbstractSample());\n\t\teObjectFlatComboViewerSampleEClass.getESuperTypes().add(this.getAbstractSample());\n\t\treferencesTableSampleEClass.getESuperTypes().add(this.getAbstractSample());\n\t\temfComboViewerSampleEClass.getESuperTypes().add(this.getAbstractSample());\n\t\tcomboSampleEClass.getESuperTypes().add(this.getAbstractSample());\n\t\tmultiValuedEditorSampleEClass.getESuperTypes().add(this.getAbstractSample());\n\t\ttableCompositionEditorSampleEClass.getESuperTypes().add(this.getAbstractSample());\n\t\tadvancedReferencesTableSampleEClass.getESuperTypes().add(this.getAbstractSample());\n\t\tadvancedEObjectFlatComboViewerSampleEClass.getESuperTypes().add(this.getAbstractSample());\n\t\tadvancedTableCompositionEditorSampleEClass.getESuperTypes().add(this.getAbstractSample());\n\t\tflatReferencesTableSampleEClass.getESuperTypes().add(this.getAbstractSample());\n\t\tsampleEClass.getESuperTypes().add(this.getAbstractSample());\n\t\ttextSampleWithTwoTabsEClass.getESuperTypes().add(this.getAbstractSample());\n\t\ttableCompositionExtensionEditorSampleEClass.getESuperTypes().add(this.getAbstractSample());\n\t\tabstractTableCompositionTargetExtensionEditorSampleEClass.getESuperTypes().add(this.getAbstractSample());\n\t\tnamedElementEClass.getESuperTypes().add(this.getAbstractSample());\n\t\timageViewerSampleEClass.getESuperTypes().add(this.getAbstractSample());\n\t\tselectionDialogSampleEClass.getESuperTypes().add(this.getAbstractSample());\n\t\tsingleCompositionViewerSampleEClass.getESuperTypes().add(this.getAbstractSample());\n\n\t\t// Initialize classes and features; add operations and parameters\n\t\tinitEClass(rootEClass, Root.class, \"Root\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getRoot_Samples(), this.getAbstractSample(), null, \"samples\", null, 0, -1, Root.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(abstractSampleEClass, AbstractSample.class, \"AbstractSample\", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getAbstractSample_Name(), ecorePackage.getEString(), \"name\", null, 0, 1, AbstractSample.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(totalSampleEClass, TotalSample.class, \"TotalSample\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getTotalSample_TextRequiredProperty(), ecorePackage.getEString(), \"textRequiredProperty\", null, 1, 1, TotalSample.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getTotalSample_TextOptionalProperty(), ecorePackage.getEString(), \"textOptionalProperty\", null, 0, 1, TotalSample.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getTotalSample_CheckboxRequiredProperty(), ecorePackage.getEBoolean(), \"checkboxRequiredProperty\", null, 1, 1, TotalSample.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getTotalSample_CheckboxOptionalProperty(), ecorePackage.getEBoolean(), \"checkboxOptionalProperty\", null, 0, 1, TotalSample.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getTotalSample_TextareaRequiredProperty(), ecorePackage.getEString(), \"textareaRequiredProperty\", null, 1, 1, TotalSample.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getTotalSample_TextareaOptionalProperty(), ecorePackage.getEString(), \"textareaOptionalProperty\", null, 0, 1, TotalSample.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getTotalSample_RadioRequiredProperty(), this.getENUM_SAMPLE(), \"radioRequiredProperty\", null, 1, 1, TotalSample.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getTotalSample_RadioOptionalProperty(), this.getENUM_SAMPLE(), \"radioOptionalProperty\", null, 0, 1, TotalSample.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getTotalSample_EobjectflatcomboviewerRequiredProperty(), this.getTotalSample(), null, \"eobjectflatcomboviewerRequiredProperty\", null, 1, 1, TotalSample.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getTotalSample_EobjectflatcomboviewerOptionalProperty(), this.getTotalSample(), null, \"eobjectflatcomboviewerOptionalProperty\", null, 0, 1, TotalSample.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getTotalSample_ReferencestableRequiredProperty(), this.getTotalSample(), null, \"referencestableRequiredProperty\", null, 1, -1, TotalSample.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getTotalSample_ReferencestableOptionalProperty(), this.getTotalSample(), null, \"referencestableOptionalProperty\", null, 0, -1, TotalSample.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getTotalSample_EmfcomboviewerRequiredProperty(), this.getENUM_SAMPLE(), \"emfcomboviewerRequiredProperty\", null, 1, 1, TotalSample.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getTotalSample_EmfcomboviewerOptionalProperty(), this.getENUM_SAMPLE(), \"emfcomboviewerOptionalProperty\", null, 0, 1, TotalSample.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getTotalSample_MultivaluededitorRequiredProperty(), ecorePackage.getEString(), \"multivaluededitorRequiredProperty\", null, 1, -1, TotalSample.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getTotalSample_MultivaluededitorOptionalProperty(), ecorePackage.getEString(), \"multivaluededitorOptionalProperty\", null, 0, -1, TotalSample.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getTotalSample_TablecompositionOnSameTypeOptionalProperty(), this.getTotalSample(), null, \"tablecompositionOnSameTypeOptionalProperty\", null, 0, -1, TotalSample.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getTotalSample_AdvancedreferencestableRequiredProperty(), this.getTotalSample(), null, \"advancedreferencestableRequiredProperty\", null, 1, -1, TotalSample.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getTotalSample_AdvancedreferencestableOptionalProperty(), this.getTotalSample(), null, \"advancedreferencestableOptionalProperty\", null, 0, -1, TotalSample.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getTotalSample_AdvancedeobjectflatcomboviewerRequiredPropery(), this.getTotalSample(), null, \"advancedeobjectflatcomboviewerRequiredPropery\", null, 1, 1, TotalSample.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getTotalSample_AdvancedeobjectflatcomboviewerOptionalPropery(), this.getTotalSample(), null, \"advancedeobjectflatcomboviewerOptionalPropery\", null, 0, 1, TotalSample.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getTotalSample_AdvancedtablecompositionOnSametypeOptionalProperty(), this.getTotalSample(), null, \"advancedtablecompositionOnSametypeOptionalProperty\", null, 0, -1, TotalSample.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getTotalSample_AdvancedtablecompositionRequiredProperty(), this.getSample(), null, \"advancedtablecompositionRequiredProperty\", null, 1, -1, TotalSample.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getTotalSample_AdvancedtablecompositionOptionalProperty(), this.getSample(), null, \"advancedtablecompositionOptionalProperty\", null, 0, -1, TotalSample.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getTotalSample_TablecompositionRequiredProperty(), this.getSample(), null, \"tablecompositionRequiredProperty\", null, 1, -1, TotalSample.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getTotalSample_TablecompositionOptionalProperty(), this.getSample(), null, \"tablecompositionOptionalProperty\", null, 0, -1, TotalSample.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getTotalSample_ComboRequiredReferencePropertyTS(), this.getTotalSample(), null, \"comboRequiredReferencePropertyTS\", null, 1, 1, TotalSample.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getTotalSample_ComboOptionalReferencePropertyTS(), this.getTotalSample(), null, \"comboOptionalReferencePropertyTS\", null, 0, 1, TotalSample.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(textSampleEClass, TextSample.class, \"TextSample\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getTextSample_TextRequiredProperty(), ecorePackage.getEString(), \"textRequiredProperty\", null, 1, 1, TextSample.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getTextSample_TextOptionalProperty(), ecorePackage.getEString(), \"textOptionalProperty\", null, 0, 1, TextSample.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(checkboxSampleEClass, CheckboxSample.class, \"CheckboxSample\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getCheckboxSample_CheckboxRequiredProperty(), ecorePackage.getEBoolean(), \"checkboxRequiredProperty\", null, 1, 1, CheckboxSample.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getCheckboxSample_CheckboxOptionalProperty(), ecorePackage.getEBoolean(), \"checkboxOptionalProperty\", null, 0, 1, CheckboxSample.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(textareaSampleEClass, TextareaSample.class, \"TextareaSample\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getTextareaSample_TextareaRequiredProperty(), ecorePackage.getEString(), \"textareaRequiredProperty\", null, 1, 1, TextareaSample.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getTextareaSample_TextareaOptionalProperty(), ecorePackage.getEString(), \"textareaOptionalProperty\", null, 0, 1, TextareaSample.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(radioSampleEClass, RadioSample.class, \"RadioSample\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getRadioSample_RadioRequiredProperty(), this.getENUM_SAMPLE(), \"radioRequiredProperty\", null, 1, 1, RadioSample.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getRadioSample_RadioOptionalProperty(), this.getENUM_SAMPLE(), \"radioOptionalProperty\", null, 0, 1, RadioSample.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(eObjectFlatComboViewerSampleEClass, EObjectFlatComboViewerSample.class, \"EObjectFlatComboViewerSample\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getEObjectFlatComboViewerSample_EobjectflatcomboviewerRequiredPropery(), this.getTotalSample(), null, \"eobjectflatcomboviewerRequiredPropery\", null, 1, 1, EObjectFlatComboViewerSample.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getEObjectFlatComboViewerSample_EobjectflatcomboviewerOptionalPropery(), this.getTotalSample(), null, \"eobjectflatcomboviewerOptionalPropery\", null, 0, 1, EObjectFlatComboViewerSample.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(referencesTableSampleEClass, ReferencesTableSample.class, \"ReferencesTableSample\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getReferencesTableSample_ReferencestableRequiredProperty(), this.getTotalSample(), null, \"referencestableRequiredProperty\", null, 1, -1, ReferencesTableSample.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getReferencesTableSample_ReferencestableOptionalProperty(), this.getTotalSample(), null, \"referencestableOptionalProperty\", null, 0, -1, ReferencesTableSample.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(emfComboViewerSampleEClass, EMFComboViewerSample.class, \"EMFComboViewerSample\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getEMFComboViewerSample_EmfcomboviewerRequiredProperty(), this.getENUM_SAMPLE(), \"emfcomboviewerRequiredProperty\", null, 1, 1, EMFComboViewerSample.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getEMFComboViewerSample_EmfcomboviewerOptionalProperty(), this.getENUM_SAMPLE(), \"emfcomboviewerOptionalProperty\", null, 0, 1, EMFComboViewerSample.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(comboSampleEClass, ComboSample.class, \"ComboSample\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getComboSample_ComboRequiredReferenceProperty(), this.getTotalSample(), null, \"comboRequiredReferenceProperty\", null, 1, 1, ComboSample.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getComboSample_ComboOptionalReferenceProperty(), this.getTotalSample(), null, \"comboOptionalReferenceProperty\", null, 0, 1, ComboSample.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(multiValuedEditorSampleEClass, MultiValuedEditorSample.class, \"MultiValuedEditorSample\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getMultiValuedEditorSample_MultivaluededitorRequiredProperty(), ecorePackage.getEString(), \"multivaluededitorRequiredProperty\", null, 1, -1, MultiValuedEditorSample.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMultiValuedEditorSample_MultivaluededitorOptionalProperty(), ecorePackage.getEString(), \"multivaluededitorOptionalProperty\", null, 0, -1, MultiValuedEditorSample.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(tableCompositionEditorSampleEClass, TableCompositionEditorSample.class, \"TableCompositionEditorSample\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getTableCompositionEditorSample_TablecompositionRequiredProperty(), this.getSample(), null, \"tablecompositionRequiredProperty\", null, 1, -1, TableCompositionEditorSample.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getTableCompositionEditorSample_TablecompositionOptionalProperty(), this.getSample(), null, \"tablecompositionOptionalProperty\", null, 0, -1, TableCompositionEditorSample.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(advancedReferencesTableSampleEClass, AdvancedReferencesTableSample.class, \"AdvancedReferencesTableSample\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getAdvancedReferencesTableSample_AdvancedreferencestableRequiredProperty(), this.getTotalSample(), null, \"advancedreferencestableRequiredProperty\", null, 1, -1, AdvancedReferencesTableSample.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getAdvancedReferencesTableSample_AdvancedreferencestableOptionalProperty(), this.getTotalSample(), null, \"advancedreferencestableOptionalProperty\", null, 0, -1, AdvancedReferencesTableSample.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(advancedEObjectFlatComboViewerSampleEClass, AdvancedEObjectFlatComboViewerSample.class, \"AdvancedEObjectFlatComboViewerSample\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getAdvancedEObjectFlatComboViewerSample_AdvancedeobjectflatcomboviewerRequiredProperty(), this.getTotalSample(), null, \"advancedeobjectflatcomboviewerRequiredProperty\", null, 1, 1, AdvancedEObjectFlatComboViewerSample.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getAdvancedEObjectFlatComboViewerSample_AdvancedeobjectflatcomboviewerOptionalProperty(), this.getTotalSample(), null, \"advancedeobjectflatcomboviewerOptionalProperty\", null, 0, 1, AdvancedEObjectFlatComboViewerSample.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(advancedTableCompositionEditorSampleEClass, AdvancedTableCompositionEditorSample.class, \"AdvancedTableCompositionEditorSample\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getAdvancedTableCompositionEditorSample_AdvancedtablecompositionRequiredProperty(), this.getSample(), null, \"advancedtablecompositionRequiredProperty\", null, 1, -1, AdvancedTableCompositionEditorSample.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getAdvancedTableCompositionEditorSample_AdvancedtablecompositionOptionalProperty(), this.getSample(), null, \"advancedtablecompositionOptionalProperty\", null, 0, -1, AdvancedTableCompositionEditorSample.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(flatReferencesTableSampleEClass, FlatReferencesTableSample.class, \"FlatReferencesTableSample\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getFlatReferencesTableSample_FlatreferencestableRequiredProperty(), this.getTotalSample(), null, \"flatreferencestableRequiredProperty\", null, 1, -1, FlatReferencesTableSample.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getFlatReferencesTableSample_FlatreferencestableOptionalProperty(), this.getTotalSample(), null, \"flatreferencestableOptionalProperty\", null, 0, -1, FlatReferencesTableSample.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(sampleEClass, Sample.class, \"Sample\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getSample_TextRequiredProperty(), ecorePackage.getEString(), \"textRequiredProperty\", null, 1, 1, Sample.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getSample_TextOptionalProperty(), ecorePackage.getEString(), \"textOptionalProperty\", null, 0, 1, Sample.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(textSampleWithTwoTabsEClass, TextSampleWithTwoTabs.class, \"TextSampleWithTwoTabs\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getTextSampleWithTwoTabs_TextRequiredPropertyInFirstTab(), ecorePackage.getEString(), \"textRequiredPropertyInFirstTab\", null, 1, 1, TextSampleWithTwoTabs.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getTextSampleWithTwoTabs_TextOptionalPropertyInFirstTab(), ecorePackage.getEString(), \"textOptionalPropertyInFirstTab\", null, 0, 1, TextSampleWithTwoTabs.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getTextSampleWithTwoTabs_TextRequiredPropertyInSecondTab(), ecorePackage.getEString(), \"textRequiredPropertyInSecondTab\", null, 1, 1, TextSampleWithTwoTabs.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getTextSampleWithTwoTabs_TextOptionalPropertyInSecondTab(), ecorePackage.getEString(), \"textOptionalPropertyInSecondTab\", null, 0, 1, TextSampleWithTwoTabs.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(tableCompositionExtensionEditorSampleEClass, TableCompositionExtensionEditorSample.class, \"TableCompositionExtensionEditorSample\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getTableCompositionExtensionEditorSample_TablecompositionRequiredProperty(), this.getAbstractTableCompositionTargetExtensionEditorSample(), null, \"tablecompositionRequiredProperty\", null, 1, -1, TableCompositionExtensionEditorSample.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getTableCompositionExtensionEditorSample_TablecompositionOptionalProperty(), this.getAbstractTableCompositionTargetExtensionEditorSample(), null, \"tablecompositionOptionalProperty\", null, 0, -1, TableCompositionExtensionEditorSample.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(abstractTableCompositionTargetExtensionEditorSampleEClass, AbstractTableCompositionTargetExtensionEditorSample.class, \"AbstractTableCompositionTargetExtensionEditorSample\", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\n\t\tinitEClass(namedElementEClass, NamedElement.class, \"NamedElement\", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\n\t\tinitEClass(imageViewerSampleEClass, ImageViewerSample.class, \"ImageViewerSample\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getImageViewerSample_ImageviewerRequiredProperty(), ecorePackage.getEString(), \"imageviewerRequiredProperty\", null, 1, 1, ImageViewerSample.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getImageViewerSample_ImageviewerOptionalProperty(), ecorePackage.getEString(), \"imageviewerOptionalProperty\", null, 0, 1, ImageViewerSample.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(selectionDialogSampleEClass, SelectionDialogSample.class, \"SelectionDialogSample\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getSelectionDialogSample_SelectionDialogRequiredProperty(), ecorePackage.getEString(), \"selectionDialogRequiredProperty\", null, 1, 1, SelectionDialogSample.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getSelectionDialogSample_SelectionDialogOptionalProperty(), ecorePackage.getEString(), \"selectionDialogOptionalProperty\", null, 0, 1, SelectionDialogSample.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(singleCompositionViewerSampleEClass, SingleCompositionViewerSample.class, \"SingleCompositionViewerSample\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getSingleCompositionViewerSample_SinglecompositionviewSingleRequiredProperty(), this.getSample(), null, \"singlecompositionviewSingleRequiredProperty\", null, 1, 1, SingleCompositionViewerSample.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getSingleCompositionViewerSample_SinglecompositionviewSingleOptionalProperty(), this.getSample(), null, \"singlecompositionviewSingleOptionalProperty\", null, 0, 1, SingleCompositionViewerSample.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getSingleCompositionViewerSample_SinglecompositionviewMultiRequiredProperty(), this.getAbstractSample(), null, \"singlecompositionviewMultiRequiredProperty\", null, 1, 1, SingleCompositionViewerSample.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getSingleCompositionViewerSample_SinglecompositionviewMultiOptionalProperty(), this.getAbstractSample(), null, \"singlecompositionviewMultiOptionalProperty\", null, 0, 1, SingleCompositionViewerSample.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\t// Initialize enums and add enum literals\n\t\tinitEEnum(enuM_SAMPLEEEnum, org.eclipse.emf.eef.eefnr.ENUM_SAMPLE.class, \"ENUM_SAMPLE\");\n\t\taddEEnumLiteral(enuM_SAMPLEEEnum, org.eclipse.emf.eef.eefnr.ENUM_SAMPLE.LITERAL1);\n\t\taddEEnumLiteral(enuM_SAMPLEEEnum, org.eclipse.emf.eef.eefnr.ENUM_SAMPLE.LITERAL2);\n\t\taddEEnumLiteral(enuM_SAMPLEEEnum, org.eclipse.emf.eef.eefnr.ENUM_SAMPLE.LITERAL3);\n\n\t\t// Create resource\n\t\tcreateResource(eNS_URI);\n\t}", "title": "" }, { "docid": "18391857c43b13d7d0c2a75d2e3d45c6", "score": "0.6004801", "text": "public void initializePackageContents() {\n\t\tif (isInitialized) return;\n\t\tisInitialized = true;\n\n\t\t// Initialize package\n\t\tsetName(eNAME);\n\t\tsetNsPrefix(eNS_PREFIX);\n\t\tsetNsURI(eNS_URI);\n\n\t\t// Create type parameters\n\n\t\t// Set bounds for type parameters\n\n\t\t// Add supertypes to classes\n\t\ttabletEClass.getESuperTypes().add(this.getMobileDevice());\n\t\tsmartphoneEClass.getESuperTypes().add(this.getMobileDevice());\n\t\ttabletDeviceEClass.getESuperTypes().add(this.getTablet());\n\t\tsmartphoneDeviceEClass.getESuperTypes().add(this.getSmartphone());\n\n\t\t// Initialize classes, features, and operations; add parameters\n\t\tinitEClass(mobileDevicesEClass, MobileDevices.class, \"MobileDevices\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getMobileDevices_Mobiledevice(), this.getMobileDevice(), null, \"mobiledevice\", null, 0, -1, MobileDevices.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(mobileDeviceEClass, MobileDevice.class, \"MobileDevice\", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getMobileDevice_ScreenDiag(), ecorePackage.getEDouble(), \"screenDiag\", null, 0, 1, MobileDevice.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMobileDevice_BatteryCapacity(), ecorePackage.getEInt(), \"batteryCapacity\", null, 0, 1, MobileDevice.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMobileDevice_DeviceName(), ecorePackage.getEString(), \"deviceName\", null, 0, 1, MobileDevice.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMobileDevice_CameraMpx(), ecorePackage.getEInt(), \"cameraMpx\", null, 0, 1, MobileDevice.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEOperation(getMobileDevice__PowerOn(), null, \"powerOn\", 0, 1, IS_UNIQUE, IS_ORDERED);\n\n\t\tinitEOperation(getMobileDevice__PowerOff(), null, \"powerOff\", 0, 1, IS_UNIQUE, IS_ORDERED);\n\n\t\tinitEOperation(getMobileDevice__ConnectWiFi(), null, \"connectWiFi\", 0, 1, IS_UNIQUE, IS_ORDERED);\n\n\t\tinitEClass(tabletEClass, Tablet.class, \"Tablet\", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getTablet_IsCellular(), ecorePackage.getEBoolean(), \"isCellular\", null, 0, 1, Tablet.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEOperation(getTablet__TabletApp(), null, \"tabletApp\", 0, 1, IS_UNIQUE, IS_ORDERED);\n\n\t\tinitEClass(smartphoneEClass, Smartphone.class, \"Smartphone\", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\n\t\tinitEOperation(getSmartphone__SmartphoneApp(), null, \"smartphoneApp\", 0, 1, IS_UNIQUE, IS_ORDERED);\n\n\t\tinitEOperation(getSmartphone__DoCall(), null, \"doCall\", 0, 1, IS_UNIQUE, IS_ORDERED);\n\n\t\tinitEClass(tabletDeviceEClass, TabletDevice.class, \"TabletDevice\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\n\t\tinitEClass(smartphoneDeviceEClass, SmartphoneDevice.class, \"SmartphoneDevice\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\n\t\t// Create resource\n\t\tcreateResource(eNS_URI);\n\t}", "title": "" }, { "docid": "acdc9478ecc86f2ddaa3786304e0a8b1", "score": "0.6002497", "text": "public void initializePackageContents() {\r\n\t\tif (isInitialized) return;\r\n\t\tisInitialized = true;\r\n\r\n\t\t// Initialize package\r\n\t\tsetName(eNAME);\r\n\t\tsetNsPrefix(eNS_PREFIX);\r\n\t\tsetNsURI(eNS_URI);\r\n\r\n\t\t// Create type parameters\r\n\r\n\t\t// Set bounds for type parameters\r\n\r\n\t\t// Add supertypes to classes\r\n\t\tnavigationPathEClass.getESuperTypes().add(this.getDataToolAbstract());\r\n\t\tnavigationReferenceEClass.getESuperTypes().add(this.getNavigationAxis());\r\n\t\tnavigationDowncastEClass.getESuperTypes().add(this.getNavigationAxis());\r\n\t\tdataToolEClass.getESuperTypes().add(this.getDataToolAbstract());\r\n\t\textractorEClass.getESuperTypes().add(this.getDataTool());\r\n\t\textractorTypeEClass.getESuperTypes().add(this.getExtractor());\r\n\t\textractorPathEClass.getESuperTypes().add(this.getExtractor());\r\n\t\textractorPathEClass.getESuperTypes().add(this.getNavigationPath());\r\n\t\textractorOclEClass.getESuperTypes().add(this.getExtractor());\r\n\t\tfilterEClass.getESuperTypes().add(this.getDataToolAbstract());\r\n\t\tfilterAttributeEClass.getESuperTypes().add(this.getFilter());\r\n\t\tfilterAttributeEClass.getESuperTypes().add(this.getNavigationPath());\r\n\t\tfilterAttributeStringEClass.getESuperTypes().add(this.getFilterAttribute());\r\n\t\tfilterRegexEClass.getESuperTypes().add(this.getFilterAttributeString());\r\n\t\tfilterAttributeIntEClass.getESuperTypes().add(this.getFilterAttribute());\r\n\t\tfilterAttributeIntRangeEClass.getESuperTypes().add(this.getFilterAttributeInt());\r\n\t\tfilterOclEClass.getESuperTypes().add(this.getFilter());\r\n\t\tfilterCompoundEClass.getESuperTypes().add(this.getFilter());\r\n\t\tfilterCompoundEClass.getESuperTypes().add(this.getDataToolContext());\r\n\t\tfilterANDEClass.getESuperTypes().add(this.getFilterCompound());\r\n\t\tfilterOREClass.getESuperTypes().add(this.getFilterCompound());\r\n\t\textractorCompoundEClass.getESuperTypes().add(this.getExtractor());\r\n\t\textractorCompoundEClass.getESuperTypes().add(this.getDataToolContext());\r\n\t\textractorLogicEClass.getESuperTypes().add(this.getExtractorCompound());\r\n\t\textractorPipeEClass.getESuperTypes().add(this.getExtractorCompound());\r\n\t\textractorUnionEClass.getESuperTypes().add(this.getExtractorLogic());\r\n\t\textractorIntersectionEClass.getESuperTypes().add(this.getExtractorLogic());\r\n\t\tcolumnizerAbstractEClass.getESuperTypes().add(this.getDataTool());\r\n\t\tcolumnizerEClass.getESuperTypes().add(this.getColumnizerAbstract());\r\n\t\tcolumnizerColumnAttributeEClass.getESuperTypes().add(this.getNavigationPath());\r\n\t\tcolumnizerColumnAttributeEClass.getESuperTypes().add(this.getColumnizerColumn());\r\n\t\tcolumnizerColumnOclEClass.getESuperTypes().add(this.getColumnizerColumn());\r\n\t\tcategoryEClass.getESuperTypes().add(this.getCategoryAbstract());\r\n\t\tcategorizerEClass.getESuperTypes().add(this.getDataTool());\r\n\t\tcategorizerStructuralFeatureEClass.getESuperTypes().add(this.getCategorizer());\r\n\t\tcategorizerStructuralFeatureEClass.getESuperTypes().add(this.getNavigationPath());\r\n\t\tcategorizerOclEClass.getESuperTypes().add(this.getCategorizer());\r\n\r\n\t\t// Initialize classes, features, and operations; add parameters\r\n\t\tinitEClass(navigationPathEClass, NavigationPath.class, \"NavigationPath\", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\r\n\t\tinitEReference(getNavigationPath_PathElements(), this.getNavigationAxis(), this.getNavigationAxis_Path(), \"PathElements\", null, 0, -1, NavigationPath.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\t\tinitEReference(getNavigationPath_SourceType(), ecorePackage.getEClass(), null, \"SourceType\", null, 0, 1, NavigationPath.class, IS_TRANSIENT, IS_VOLATILE, !IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, IS_DERIVED, IS_ORDERED);\r\n\t\tinitEReference(getNavigationPath_TargetType(), ecorePackage.getEClass(), null, \"TargetType\", null, 0, 1, NavigationPath.class, IS_TRANSIENT, IS_VOLATILE, !IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, IS_DERIVED, IS_ORDERED);\r\n\t\tinitEAttribute(getNavigationPath_Many(), ecorePackage.getEBoolean(), \"Many\", null, 0, 1, NavigationPath.class, IS_TRANSIENT, IS_VOLATILE, !IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, IS_DERIVED, IS_ORDERED);\r\n\t\tinitEAttribute(getNavigationPath_Path(), ecorePackage.getEString(), \"Path\", null, 0, 1, NavigationPath.class, IS_TRANSIENT, IS_VOLATILE, !IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, IS_DERIVED, IS_ORDERED);\r\n\r\n\t\tinitEClass(navigationAxisEClass, NavigationAxis.class, \"NavigationAxis\", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\r\n\t\tinitEReference(getNavigationAxis_SourceType(), ecorePackage.getEClass(), null, \"SourceType\", null, 0, 1, NavigationAxis.class, IS_TRANSIENT, IS_VOLATILE, !IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, IS_DERIVED, IS_ORDERED);\r\n\t\tinitEReference(getNavigationAxis_TargetType(), ecorePackage.getEClass(), null, \"TargetType\", null, 0, 1, NavigationAxis.class, IS_TRANSIENT, IS_VOLATILE, !IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, IS_DERIVED, IS_ORDERED);\r\n\t\tinitEReference(getNavigationAxis_Path(), this.getNavigationPath(), this.getNavigationPath_PathElements(), \"Path\", null, 1, 1, NavigationAxis.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\t\tinitEReference(getNavigationAxis_Previous(), this.getNavigationAxis(), null, \"Previous\", null, 0, 1, NavigationAxis.class, IS_TRANSIENT, IS_VOLATILE, !IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, IS_DERIVED, IS_ORDERED);\r\n\t\tinitEAttribute(getNavigationAxis_PathElement(), ecorePackage.getEString(), \"PathElement\", null, 0, 1, NavigationAxis.class, IS_TRANSIENT, IS_VOLATILE, !IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, IS_DERIVED, IS_ORDERED);\r\n\t\tinitEReference(getNavigationAxis_Next(), this.getNavigationAxis(), null, \"Next\", null, 0, 1, NavigationAxis.class, IS_TRANSIENT, IS_VOLATILE, !IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, IS_DERIVED, IS_ORDERED);\r\n\r\n\t\tEOperation op = initEOperation(getNavigationAxis__Navigate__EObject(), ecorePackage.getEObject(), \"navigate\", 0, 1, IS_UNIQUE, IS_ORDERED);\r\n\t\taddEParameter(op, ecorePackage.getEObject(), \"in\", 0, 1, IS_UNIQUE, IS_ORDERED);\r\n\r\n\t\top = initEOperation(getNavigationAxis__NavigateMany__EObject(), ecorePackage.getEObject(), \"navigateMany\", 0, -1, IS_UNIQUE, IS_ORDERED);\r\n\t\taddEParameter(op, ecorePackage.getEObject(), \"in\", 0, 1, IS_UNIQUE, IS_ORDERED);\r\n\r\n\t\tinitEClass(navigationReferenceEClass, NavigationReference.class, \"NavigationReference\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\r\n\t\tinitEReference(getNavigationReference_Reference(), ecorePackage.getEReference(), null, \"Reference\", null, 1, 1, NavigationReference.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\r\n\t\tinitEClass(navigationDowncastEClass, NavigationDowncast.class, \"NavigationDowncast\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\r\n\t\tinitEReference(getNavigationDowncast_DowncastType(), ecorePackage.getEClass(), null, \"DowncastType\", null, 0, 1, NavigationDowncast.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\r\n\t\tinitEClass(dataToolContextEClass, DataToolContext.class, \"DataToolContext\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\r\n\r\n\t\tinitEOperation(getDataToolContext__GetDomainTypes(), ecorePackage.getEClass(), \"getDomainTypes\", 0, -1, IS_UNIQUE, IS_ORDERED);\r\n\r\n\t\tinitEClass(dataToolEClass, DataTool.class, \"DataTool\", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\r\n\r\n\t\tinitEOperation(getDataTool__Clone(), this.getDataTool(), \"clone\", 0, 1, IS_UNIQUE, IS_ORDERED);\r\n\r\n\t\tinitEClass(dataToolAbstractEClass, DataToolAbstract.class, \"DataToolAbstract\", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\r\n\t\tinitEReference(getDataToolAbstract_Context(), this.getDataToolContext(), null, \"Context\", null, 0, 1, DataToolAbstract.class, IS_TRANSIENT, IS_VOLATILE, !IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, IS_DERIVED, IS_ORDERED);\r\n\t\tinitEAttribute(getDataToolAbstract_Description(), ecorePackage.getEString(), \"Description\", null, 0, 1, DataToolAbstract.class, IS_TRANSIENT, IS_VOLATILE, !IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, IS_DERIVED, IS_ORDERED);\r\n\t\tinitEAttribute(getDataToolAbstract_Name(), ecorePackage.getEString(), \"Name\", null, 0, 1, DataToolAbstract.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\r\n\t\tinitEOperation(getDataToolAbstract__GetType(), this.getDataToolType(), \"getType\", 0, 1, IS_UNIQUE, IS_ORDERED);\r\n\r\n\t\tinitEClass(extractorEClass, Extractor.class, \"Extractor\", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\r\n\t\tinitEReference(getExtractor_ExtractedType(), ecorePackage.getEClass(), null, \"ExtractedType\", null, 0, 1, Extractor.class, IS_TRANSIENT, IS_VOLATILE, !IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, IS_DERIVED, IS_ORDERED);\r\n\t\tinitEReference(getExtractor_Filter(), this.getFilter(), null, \"Filter\", null, 0, 1, Extractor.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\r\n\t\top = initEOperation(getExtractor__Extract__ObjectSet_int(), this.getEObjectsSet(), \"extract\", 0, 1, IS_UNIQUE, IS_ORDERED);\r\n\t\taddEParameter(op, this.getEObjectsSet(), \"ins\", 0, 1, IS_UNIQUE, IS_ORDERED);\r\n\t\taddEParameter(op, ecorePackage.getEInt(), \"max_elements\", 0, 1, IS_UNIQUE, IS_ORDERED);\r\n\r\n\t\top = initEOperation(getExtractor__IsValidRoot__EObject(), ecorePackage.getEBoolean(), \"isValidRoot\", 0, 1, IS_UNIQUE, IS_ORDERED);\r\n\t\taddEParameter(op, ecorePackage.getEObject(), \"doc\", 1, 1, IS_UNIQUE, IS_ORDERED);\r\n\r\n\t\tinitEClass(extractorTypeEClass, ExtractorType.class, \"ExtractorType\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\r\n\t\tinitEReference(getExtractorType_TargetType(), ecorePackage.getEClass(), null, \"TargetType\", null, 0, 1, ExtractorType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\r\n\t\tinitEClass(extractorPathEClass, ExtractorPath.class, \"ExtractorPath\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\r\n\t\tinitEReference(getExtractorPath_RootType(), ecorePackage.getEClass(), null, \"RootType\", null, 0, 1, ExtractorPath.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\r\n\t\tinitEClass(extractorOclEClass, ExtractorOcl.class, \"ExtractorOcl\", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\r\n\t\tinitEAttribute(getExtractorOcl_Expression(), ecorePackage.getEString(), \"Expression\", null, 0, 1, ExtractorOcl.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\r\n\t\tinitEClass(filterEClass, Filter.class, \"Filter\", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\r\n\t\tinitEAttribute(getFilter_Enabled(), ecorePackage.getEBoolean(), \"Enabled\", \"true\", 0, 1, Filter.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\t\tinitEAttribute(getFilter_Negated(), ecorePackage.getEBoolean(), \"Negated\", \"false\", 0, 1, Filter.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\t\tinitEReference(getFilter_FilteredType(), ecorePackage.getEClass(), null, \"FilteredType\", null, 0, 1, Filter.class, IS_TRANSIENT, IS_VOLATILE, !IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, IS_DERIVED, IS_ORDERED);\r\n\r\n\t\top = initEOperation(getFilter__SatisfiesFilter__EObject(), ecorePackage.getEBoolean(), \"satisfiesFilter\", 0, 1, IS_UNIQUE, IS_ORDERED);\r\n\t\taddEParameter(op, ecorePackage.getEObject(), \"object\", 0, 1, IS_UNIQUE, IS_ORDERED);\r\n\r\n\t\tinitEClass(filterAttributeEClass, FilterAttribute.class, \"FilterAttribute\", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\r\n\t\tinitEReference(getFilterAttribute_Attribute(), ecorePackage.getEAttribute(), null, \"Attribute\", null, 1, 1, FilterAttribute.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\r\n\t\top = initEOperation(getFilterAttribute__GetAttributeValue__EObject(), ecorePackage.getEJavaObject(), \"getAttributeValue\", 0, 1, IS_UNIQUE, IS_ORDERED);\r\n\t\taddEParameter(op, ecorePackage.getEObject(), \"object\", 0, 1, IS_UNIQUE, IS_ORDERED);\r\n\r\n\t\tinitEClass(filterAttributeStringEClass, FilterAttributeString.class, \"FilterAttributeString\", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\r\n\r\n\t\tinitEClass(filterRegexEClass, FilterRegex.class, \"FilterRegex\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\r\n\t\tinitEAttribute(getFilterRegex_Pattern(), ecorePackage.getEString(), \"Pattern\", null, 0, 1, FilterRegex.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\r\n\t\tinitEClass(filterAttributeIntEClass, FilterAttributeInt.class, \"FilterAttributeInt\", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\r\n\r\n\t\tinitEClass(filterAttributeIntRangeEClass, FilterAttributeIntRange.class, \"FilterAttributeIntRange\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\r\n\t\tinitEAttribute(getFilterAttributeIntRange_MinValue(), ecorePackage.getEInt(), \"MinValue\", null, 0, 1, FilterAttributeIntRange.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\t\tinitEAttribute(getFilterAttributeIntRange_MaxValue(), ecorePackage.getEInt(), \"MaxValue\", null, 0, 1, FilterAttributeIntRange.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\r\n\t\tinitEClass(filterOclEClass, FilterOcl.class, \"FilterOcl\", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\r\n\t\tinitEAttribute(getFilterOcl_Expression(), ecorePackage.getEString(), \"Expression\", null, 0, 1, FilterOcl.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\r\n\t\tinitEClass(filterCompoundEClass, FilterCompound.class, \"FilterCompound\", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\r\n\t\tinitEReference(getFilterCompound_Filters(), this.getFilter(), null, \"Filters\", null, 0, -1, FilterCompound.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\r\n\t\tinitEClass(filterANDEClass, FilterAND.class, \"FilterAND\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\r\n\r\n\t\tinitEClass(filterOREClass, FilterOR.class, \"FilterOR\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\r\n\r\n\t\tinitEClass(extractorCompoundEClass, ExtractorCompound.class, \"ExtractorCompound\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\r\n\t\tinitEReference(getExtractorCompound_Extractors(), this.getExtractor(), null, \"Extractors\", null, 0, -1, ExtractorCompound.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\r\n\t\tinitEClass(extractorLogicEClass, ExtractorLogic.class, \"ExtractorLogic\", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\r\n\r\n\t\tinitEClass(extractorPipeEClass, ExtractorPipe.class, \"ExtractorPipe\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\r\n\r\n\t\tinitEClass(extractorUnionEClass, ExtractorUnion.class, \"ExtractorUnion\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\r\n\r\n\t\tinitEClass(extractorIntersectionEClass, ExtractorIntersection.class, \"ExtractorIntersection\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\r\n\r\n\t\tinitEClass(columnizersEClass, Columnizers.class, \"Columnizers\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\r\n\t\tinitEReference(getColumnizers_Columnizers(), this.getColumnizerAbstract(), null, \"Columnizers\", null, 0, -1, Columnizers.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\r\n\t\tinitEClass(columnizerAbstractEClass, ColumnizerAbstract.class, \"ColumnizerAbstract\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\r\n\t\tinitEAttribute(getColumnizerAbstract_SheetLabel(), ecorePackage.getEString(), \"SheetLabel\", null, 0, 1, ColumnizerAbstract.class, IS_TRANSIENT, IS_VOLATILE, !IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, IS_DERIVED, IS_ORDERED);\r\n\t\tinitEAttribute(getColumnizerAbstract_Aggregation(), ecorePackage.getEBoolean(), \"Aggregation\", null, 0, 1, ColumnizerAbstract.class, IS_TRANSIENT, IS_VOLATILE, !IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, IS_DERIVED, IS_ORDERED);\r\n\r\n\t\top = initEOperation(getColumnizerAbstract__IsValidElementType__EClass(), ecorePackage.getEBoolean(), \"isValidElementType\", 0, 1, IS_UNIQUE, IS_ORDERED);\r\n\t\taddEParameter(op, ecorePackage.getEClass(), \"type\", 1, 1, IS_UNIQUE, IS_ORDERED);\r\n\r\n\t\tinitEOperation(getColumnizerAbstract__GetPropertiesProvider(), this.getIPropertiesProvider(), \"getPropertiesProvider\", 0, 1, IS_UNIQUE, IS_ORDERED);\r\n\r\n\t\tinitEClass(columnizerEClass, Columnizer.class, \"Columnizer\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\r\n\t\tinitEReference(getColumnizer_Columns(), this.getColumnizerColumn(), this.getColumnizerColumn_Columnizer(), \"Columns\", null, 0, -1, Columnizer.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\t\tinitEReference(getColumnizer_ColumnizedType(), ecorePackage.getEClass(), null, \"ColumnizedType\", null, 0, 1, Columnizer.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\t\tinitEAttribute(getColumnizer_SheetName(), ecorePackage.getEString(), \"SheetName\", null, 0, 1, Columnizer.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\r\n\t\tinitEClass(columnizerColumnEClass, ColumnizerColumn.class, \"ColumnizerColumn\", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\r\n\t\tinitEAttribute(getColumnizerColumn_ColumnName(), ecorePackage.getEString(), \"ColumnName\", null, 0, 1, ColumnizerColumn.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\t\tinitEAttribute(getColumnizerColumn_ColumnWidth(), ecorePackage.getEInt(), \"ColumnWidth\", null, 0, 1, ColumnizerColumn.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\t\tinitEReference(getColumnizerColumn_Columnizer(), this.getColumnizer(), this.getColumnizer_Columns(), \"Columnizer\", null, 1, 1, ColumnizerColumn.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\t\tinitEAttribute(getColumnizerColumn_AggregationType(), this.getAggregationType(), \"AggregationType\", null, 0, 1, ColumnizerColumn.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\t\tinitEAttribute(getColumnizerColumn_Key(), ecorePackage.getEBoolean(), \"Key\", null, 0, 1, ColumnizerColumn.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\r\n\t\top = initEOperation(getColumnizerColumn__GetValue__EObject(), ecorePackage.getEJavaObject(), \"getValue\", 0, 1, IS_UNIQUE, IS_ORDERED);\r\n\t\taddEParameter(op, ecorePackage.getEObject(), \"object\", 0, 1, IS_UNIQUE, IS_ORDERED);\r\n\r\n\t\tinitEOperation(getColumnizerColumn__GetDataType(), ecorePackage.getEDataType(), \"getDataType\", 0, 1, IS_UNIQUE, IS_ORDERED);\r\n\r\n\t\tinitEClass(columnizerColumnAttributeEClass, ColumnizerColumnAttribute.class, \"ColumnizerColumnAttribute\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\r\n\t\tinitEReference(getColumnizerColumnAttribute_Attribute(), ecorePackage.getEAttribute(), null, \"Attribute\", null, 1, 1, ColumnizerColumnAttribute.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\r\n\t\tinitEClass(columnizerColumnOclEClass, ColumnizerColumnOcl.class, \"ColumnizerColumnOcl\", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\r\n\t\tinitEAttribute(getColumnizerColumnOcl_Expression(), ecorePackage.getEString(), \"Expression\", null, 0, 1, ColumnizerColumnOcl.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\r\n\t\tinitEClass(categoryFactoryEClass, CategoryFactory.class, \"CategoryFactory\", IS_ABSTRACT, IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\r\n\r\n\t\tinitEOperation(getCategoryFactory__ConstructCategory(), this.getCategory(), \"constructCategory\", 0, 1, IS_UNIQUE, IS_ORDERED);\r\n\r\n\t\top = initEOperation(getCategoryFactory__SetLeafCategory__EObject_CategoryAbstract(), null, \"setLeafCategory\", 0, 1, IS_UNIQUE, IS_ORDERED);\r\n\t\taddEParameter(op, ecorePackage.getEObject(), \"object\", 0, 1, IS_UNIQUE, IS_ORDERED);\r\n\t\taddEParameter(op, this.getCategoryAbstract(), \"category\", 0, 1, IS_UNIQUE, IS_ORDERED);\r\n\r\n\t\tinitEClass(categoryAbstractEClass, CategoryAbstract.class, \"CategoryAbstract\", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\r\n\t\tinitEAttribute(getCategoryAbstract_NbElements(), ecorePackage.getEInt(), \"NbElements\", null, 0, 1, CategoryAbstract.class, IS_TRANSIENT, IS_VOLATILE, !IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, IS_DERIVED, IS_ORDERED);\r\n\t\tinitEReference(getCategoryAbstract_SubCategories(), this.getCategory(), null, \"SubCategories\", null, 0, -1, CategoryAbstract.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\t\tinitEReference(getCategoryAbstract_Elements(), ecorePackage.getEObject(), null, \"Elements\", null, 0, -1, CategoryAbstract.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\t\tinitEReference(getCategoryAbstract_SuperCategory(), this.getCategoryAbstract(), null, \"SuperCategory\", null, 0, 1, CategoryAbstract.class, IS_TRANSIENT, IS_VOLATILE, !IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, IS_DERIVED, IS_ORDERED);\r\n\t\tinitEReference(getCategoryAbstract_RootCategory(), this.getCategoryAbstract(), null, \"RootCategory\", null, 0, 1, CategoryAbstract.class, IS_TRANSIENT, IS_VOLATILE, !IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, IS_DERIVED, IS_ORDERED);\r\n\r\n\t\top = initEOperation(getCategoryAbstract__GetSubcategory__EObject(), this.getCategory(), \"getSubcategory\", 0, 1, IS_UNIQUE, IS_ORDERED);\r\n\t\taddEParameter(op, ecorePackage.getEObject(), \"value\", 0, 1, IS_UNIQUE, IS_ORDERED);\r\n\r\n\t\top = initEOperation(getCategoryAbstract__Refresh__CategoryFactory_ObjectSet_EList_int(), null, \"refresh\", 0, 1, IS_UNIQUE, IS_ORDERED);\r\n\t\taddEParameter(op, this.getCategoryFactory(), \"factory\", 0, 1, IS_UNIQUE, IS_ORDERED);\r\n\t\taddEParameter(op, this.getEObjectsSet(), \"els_tobe\", 0, 1, IS_UNIQUE, IS_ORDERED);\r\n\t\taddEParameter(op, this.getCategorizer(), \"categorizers\", 0, -1, IS_UNIQUE, IS_ORDERED);\r\n\t\taddEParameter(op, ecorePackage.getEInt(), \"level\", 0, 1, IS_UNIQUE, IS_ORDERED);\r\n\r\n\t\top = initEOperation(getCategoryAbstract__IsIn__CategoryAbstract(), ecorePackage.getEBoolean(), \"isIn\", 0, 1, IS_UNIQUE, IS_ORDERED);\r\n\t\taddEParameter(op, this.getCategoryAbstract(), \"super_category\", 0, 1, IS_UNIQUE, IS_ORDERED);\r\n\r\n\t\tinitEClass(categoryEClass, Category.class, \"Category\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\r\n\t\tinitEAttribute(getCategory_CategoryLabel(), ecorePackage.getEString(), \"CategoryLabel\", null, 0, 1, Category.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);\r\n\t\tinitEAttribute(getCategory_CategoryValue(), ecorePackage.getEJavaObject(), \"CategoryValue\", null, 0, 1, Category.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\r\n\t\tinitEClass(categorizerEClass, Categorizer.class, \"Categorizer\", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\r\n\r\n\t\top = initEOperation(getCategorizer__GetCategoryValue__EObject(), ecorePackage.getEJavaObject(), \"getCategoryValue\", 0, 1, IS_UNIQUE, IS_ORDERED);\r\n\t\taddEParameter(op, ecorePackage.getEObject(), \"object\", 0, 1, IS_UNIQUE, IS_ORDERED);\r\n\r\n\t\top = initEOperation(getCategorizer__GetCategoryLabel__Object(), ecorePackage.getEString(), \"getCategoryLabel\", 0, 1, IS_UNIQUE, IS_ORDERED);\r\n\t\taddEParameter(op, ecorePackage.getEJavaObject(), \"object\", 0, 1, IS_UNIQUE, IS_ORDERED);\r\n\r\n\t\top = initEOperation(getCategorizer__IsValidElementType__EClass(), ecorePackage.getEBoolean(), \"isValidElementType\", 0, 1, IS_UNIQUE, IS_ORDERED);\r\n\t\taddEParameter(op, ecorePackage.getEClass(), \"type\", 1, 1, IS_UNIQUE, IS_ORDERED);\r\n\r\n\t\tinitEClass(categorizerStructuralFeatureEClass, CategorizerStructuralFeature.class, \"CategorizerStructuralFeature\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\r\n\t\tinitEReference(getCategorizerStructuralFeature_Feature(), ecorePackage.getEStructuralFeature(), null, \"Feature\", null, 1, 1, CategorizerStructuralFeature.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\t\tinitEReference(getCategorizerStructuralFeature_CategorizedType(), ecorePackage.getEClass(), null, \"CategorizedType\", null, 0, 1, CategorizerStructuralFeature.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\r\n\t\tinitEClass(categorizerOclEClass, CategorizerOcl.class, \"CategorizerOcl\", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\r\n\t\tinitEAttribute(getCategorizerOcl_Expression(), ecorePackage.getEString(), \"Expression\", null, 0, 1, CategorizerOcl.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\r\n\t\tinitEClass(categorizerSubjectEClass, CategorizerSubject.class, \"CategorizerSubject\", IS_ABSTRACT, IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\r\n\r\n\t\tinitEOperation(getCategorizerSubject__GetSubject(), ecorePackage.getEObject(), \"getSubject\", 0, 1, IS_UNIQUE, IS_ORDERED);\r\n\r\n\t\t// Initialize enums and add enum literals\r\n\t\tinitEEnum(dataToolTypeEEnum, DataToolType.class, \"DataToolType\");\r\n\t\taddEEnumLiteral(dataToolTypeEEnum, DataToolType.NONE);\r\n\t\taddEEnumLiteral(dataToolTypeEEnum, DataToolType.EXTRACTOR);\r\n\t\taddEEnumLiteral(dataToolTypeEEnum, DataToolType.COLUMNIZER);\r\n\t\taddEEnumLiteral(dataToolTypeEEnum, DataToolType.CATEGORIZER);\r\n\t\taddEEnumLiteral(dataToolTypeEEnum, DataToolType.FILTER);\r\n\t\taddEEnumLiteral(dataToolTypeEEnum, DataToolType.PATH);\r\n\r\n\t\tinitEEnum(aggregationTypeEEnum, AggregationType.class, \"AggregationType\");\r\n\t\taddEEnumLiteral(aggregationTypeEEnum, AggregationType.NONE);\r\n\t\taddEEnumLiteral(aggregationTypeEEnum, AggregationType.SUM);\r\n\t\taddEEnumLiteral(aggregationTypeEEnum, AggregationType.COUNT);\r\n\t\taddEEnumLiteral(aggregationTypeEEnum, AggregationType.MIN);\r\n\t\taddEEnumLiteral(aggregationTypeEEnum, AggregationType.MAX);\r\n\r\n\t\t// Initialize data types\r\n\t\tinitEDataType(eObjectsSetEDataType, ObjectSet.class, \"EObjectsSet\", !IS_SERIALIZABLE, !IS_GENERATED_INSTANCE_CLASS);\r\n\t\tinitEDataType(iPropertiesProviderEDataType, IPropertiesProvider.class, \"IPropertiesProvider\", IS_SERIALIZABLE, !IS_GENERATED_INSTANCE_CLASS);\r\n\r\n\t\t// Create resource\r\n\t\tcreateResource(eNS_URI);\r\n\t}", "title": "" }, { "docid": "eeb5540826c7587f424946cc9a1293de", "score": "0.59785616", "text": "public void initializePackageContents() {\r\n\t\tif (isInitialized) return;\r\n\t\tisInitialized = true;\r\n\r\n\t\t// Initialize package\r\n\t\tsetName(eNAME);\r\n\t\tsetNsPrefix(eNS_PREFIX);\r\n\t\tsetNsURI(eNS_URI);\r\n\r\n\t\t// Obtain other dependent packages\r\n\t\tEcorePackage theEcorePackage = (EcorePackage)EPackage.Registry.INSTANCE.getEPackage(EcorePackage.eNS_URI);\r\n\t\tAllocationPackage theAllocationPackage = (AllocationPackage)EPackage.Registry.INSTANCE.getEPackage(AllocationPackage.eNS_URI);\r\n\t\tXMLTypePackage theXMLTypePackage = (XMLTypePackage)EPackage.Registry.INSTANCE.getEPackage(XMLTypePackage.eNS_URI);\r\n\t\tRepositoryPackage theRepositoryPackage = (RepositoryPackage)EPackage.Registry.INSTANCE.getEPackage(RepositoryPackage.eNS_URI);\r\n\r\n\t\t// Create type parameters\r\n\r\n\t\t// Set bounds for type parameters\r\n\r\n\t\t// Add supertypes to classes\r\n\t\tresourceVariableEClass.getESuperTypes().add(this.getExpression());\r\n\t\tnotEClass.getESuperTypes().add(this.getExpression());\r\n\t\torEClass.getESuperTypes().add(this.getExpression());\r\n\t\tandEClass.getESuperTypes().add(this.getExpression());\r\n\t\tresourceOptionsVariableEClass.getESuperTypes().add(this.getExpression());\r\n\r\n\t\t// Initialize classes, features, and operations; add parameters\r\n\t\tinitEClass(resourceEClass, Resource.class, \"Resource\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\r\n\t\tinitEAttribute(getResource_Type(), this.getResourceType(), \"type\", \"sensor\", 1, 1, Resource.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\t\tinitEAttribute(getResource_Name(), theEcorePackage.getEString(), \"name\", null, 1, 1, Resource.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\t\tinitEReference(getResource_Specs(), this.getSpecification(), null, \"specs\", null, 0, -1, Resource.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\t\tinitEReference(getResource_Interface(), theAllocationPackage.getAllocation(), null, \"interface\", null, 0, 1, Resource.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\t\tinitEReference(getResource_Redundant(), this.getResource(), null, \"redundant\", null, 0, -1, Resource.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\r\n\t\tinitEClass(specificationEClass, Specification.class, \"Specification\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\r\n\t\tinitEAttribute(getSpecification_Value(), theXMLTypePackage.getDouble(), \"value\", \"0.0\", 1, 1, Specification.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\t\tinitEReference(getSpecification_AssignedProp(), this.getProperty(), null, \"assignedProp\", null, 0, 1, Specification.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\t\tinitEAttribute(getSpecification_Name(), theEcorePackage.getEString(), \"name\", null, 1, 1, Specification.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\r\n\t\tinitEClass(platformEClass, Platform.class, \"Platform\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\r\n\t\tinitEReference(getPlatform_Options(), this.getResourceOptions(), null, \"options\", null, 0, -1, Platform.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\t\tinitEReference(getPlatform_Specs(), this.getSpecification(), null, \"specs\", null, 0, -1, Platform.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\t\tinitEReference(getPlatform_Props(), this.getProperty(), null, \"props\", null, 0, -1, Platform.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\t\tinitEReference(getPlatform_Resources(), this.getResource(), null, \"resources\", null, 0, -1, Platform.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\t\tinitEReference(getPlatform_Rules(), this.getRule(), null, \"rules\", null, 0, -1, Platform.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\r\n\t\tinitEClass(propertyEClass, Property.class, \"Property\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\r\n\t\tinitEAttribute(getProperty_Name(), theXMLTypePackage.getString(), \"name\", null, 1, 1, Property.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\t\tinitEAttribute(getProperty_Unit(), theXMLTypePackage.getString(), \"unit\", null, 1, 1, Property.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\r\n\t\tinitEClass(resourceOptionsEClass, ResourceOptions.class, \"ResourceOptions\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\r\n\t\tinitEReference(getResourceOptions_Resources(), this.getResource(), null, \"resources\", null, 0, -1, ResourceOptions.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\t\tinitEAttribute(getResourceOptions_Name(), theXMLTypePackage.getString(), \"name\", null, 0, 1, ResourceOptions.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\t\tinitEAttribute(getResourceOptions_MinElements(), theXMLTypePackage.getString(), \"minElements\", null, 0, 1, ResourceOptions.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\t\tinitEAttribute(getResourceOptions_MaxElements(), theXMLTypePackage.getString(), \"maxElements\", null, 0, 1, ResourceOptions.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\t\tinitEReference(getResourceOptions_ReferencedComponent(), theRepositoryPackage.getBasicComponent(), null, \"referencedComponent\", null, 0, 1, ResourceOptions.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\t\tinitEReference(getResourceOptions_Specs(), this.getSpecification(), null, \"specs\", null, 0, -1, ResourceOptions.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\t\tinitEReference(getResourceOptions_SubGroups(), this.getResourceOptions(), null, \"subGroups\", null, 0, -1, ResourceOptions.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\r\n\t\tinitEClass(ruleEClass, Rule.class, \"Rule\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\r\n\t\tinitEReference(getRule_Expression(), this.getImplies(), null, \"expression\", null, 0, 1, Rule.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\t\tinitEAttribute(getRule_Name(), theEcorePackage.getEString(), \"name\", null, 1, 1, Rule.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\r\n\t\tinitEClass(expressionEClass, Expression.class, \"Expression\", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\r\n\r\n\t\tinitEClass(resourceVariableEClass, ResourceVariable.class, \"ResourceVariable\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\r\n\t\tinitEReference(getResourceVariable_Resource(), this.getResource(), null, \"resource\", null, 0, 1, ResourceVariable.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\r\n\t\tinitEClass(impliesEClass, Implies.class, \"Implies\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\r\n\t\tinitEReference(getImplies_LeftHandSide(), this.getResourceOptionsVariable(), null, \"leftHandSide\", null, 0, 1, Implies.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\t\tinitEReference(getImplies_RightHandSide(), this.getExpression(), null, \"rightHandSide\", null, 0, 1, Implies.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\t\tinitEAttribute(getImplies_LeftHandSideModifier(), theEcorePackage.getEBoolean(), \"leftHandSideModifier\", \"false\", 0, 1, Implies.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\r\n\t\tinitEClass(notEClass, Not.class, \"Not\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\r\n\t\tinitEReference(getNot_Expression(), this.getExpression(), null, \"expression\", null, 0, 1, Not.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\r\n\t\tinitEClass(orEClass, Or.class, \"Or\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\r\n\t\tinitEReference(getOr_LeftHandSide(), this.getExpression(), null, \"leftHandSide\", null, 0, 1, Or.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\t\tinitEReference(getOr_RightHandSide(), this.getExpression(), null, \"rightHandSide\", null, 0, 1, Or.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\r\n\t\tinitEClass(andEClass, And.class, \"And\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\r\n\t\tinitEReference(getAnd_LeftHandSide(), this.getExpression(), null, \"leftHandSide\", null, 0, 1, And.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\t\tinitEReference(getAnd_RightHandSide(), this.getExpression(), null, \"rightHandSide\", null, 0, 1, And.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\r\n\t\tinitEClass(resourceOptionsVariableEClass, ResourceOptionsVariable.class, \"ResourceOptionsVariable\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\r\n\t\tinitEReference(getResourceOptionsVariable_ResourceOptions(), this.getResourceOptions(), null, \"resourceOptions\", null, 0, 1, ResourceOptionsVariable.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\r\n\t\t// Initialize enums and add enum literals\r\n\t\tinitEEnum(resourceTypeEEnum, ResourceType.class, \"ResourceType\");\r\n\t\taddEEnumLiteral(resourceTypeEEnum, ResourceType.SENSOR);\r\n\t\taddEEnumLiteral(resourceTypeEEnum, ResourceType.ACTUATOR);\r\n\r\n\t\t// Create resource\r\n\t\tcreateResource(eNS_URI);\r\n\t}", "title": "" }, { "docid": "d6914be662fdf9b389f46f730e7f24c3", "score": "0.5964642", "text": "public void initializePackageContents()\n\t{\n\t\tif (isInitialized) return;\n\t\tisInitialized = true;\n\n\t\t// Initialize package\n\t\tsetName(eNAME);\n\t\tsetNsPrefix(eNS_PREFIX);\n\t\tsetNsURI(eNS_URI);\n\n\t\t// Create type parameters\n\n\t\t// Set bounds for type parameters\n\n\t\t// Add supertypes to classes\n\t\tabstractOperationEClass.getESuperTypes().add(this.getExpression());\n\t\tbinaryOperationEClass.getESuperTypes().add(this.getAbstractOperation());\n\t\tunaryOperationEClass.getESuperTypes().add(this.getAbstractOperation());\n\n\t\t// Initialize classes, features, and operations; add parameters\n\t\tinitEClass(expressionEClass, Expression.class, \"Expression\", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\n\t\tinitEClass(abstractOperationEClass, AbstractOperation.class, \"AbstractOperation\", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getAbstractOperation_Operator(), this.getIdentifiableElement(), null, \"operator\", null, 0, 1, AbstractOperation.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(binaryOperationEClass, BinaryOperation.class, \"BinaryOperation\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getBinaryOperation_LeftOperand(), this.getExpression(), null, \"leftOperand\", null, 0, 1, BinaryOperation.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getBinaryOperation_RightOperand(), this.getExpression(), null, \"rightOperand\", null, 0, 1, BinaryOperation.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(unaryOperationEClass, UnaryOperation.class, \"UnaryOperation\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getUnaryOperation_Operand(), this.getExpression(), null, \"operand\", null, 0, 1, UnaryOperation.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(identifiableElementEClass, IdentifiableElement.class, \"IdentifiableElement\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getIdentifiableElement_Identifier(), this.getOperatorIdentifier(), \"identifier\", null, 0, 1, IdentifiableElement.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\t// Initialize enums and add enum literals\n\t\tinitEEnum(operatorIdentifierEEnum, OperatorIdentifier.class, \"OperatorIdentifier\");\n\t\taddEEnumLiteral(operatorIdentifierEEnum, OperatorIdentifier.OPERATOR_UNDEFINED);\n\t\taddEEnumLiteral(operatorIdentifierEEnum, OperatorIdentifier.OPERATOR_REMOVES);\n\t\taddEEnumLiteral(operatorIdentifierEEnum, OperatorIdentifier.OPERATOR_IMPLIES);\n\t\taddEEnumLiteral(operatorIdentifierEEnum, OperatorIdentifier.OPERATOR_OR);\n\t\taddEEnumLiteral(operatorIdentifierEEnum, OperatorIdentifier.OPERATOR_AND);\n\t\taddEEnumLiteral(operatorIdentifierEEnum, OperatorIdentifier.OPERATOR_NOT);\n\n\t\t// Initialize data types\n\t\tinitEDataType(idEDataType, com.zipc.garden.webplatform.dsl.terminals.ID.class, \"ID\", IS_SERIALIZABLE, !IS_GENERATED_INSTANCE_CLASS);\n\n\t\t// Create resource\n\t\tcreateResource(eNS_URI);\n\t}", "title": "" }, { "docid": "3b2431daacdd3792f98e9c64fefb17e6", "score": "0.5958973", "text": "public void initializePackageContents() {\n\t\tif (isInitialized)\n\t\t\treturn;\n\t\tisInitialized = true;\n\n\t\t// Initialize package\n\t\tsetName(eNAME);\n\t\tsetNsPrefix(eNS_PREFIX);\n\t\tsetNsURI(eNS_URI);\n\n\t\t// Obtain other dependent packages\n\t\tXMLTypePackage theXMLTypePackage = (XMLTypePackage) EPackage.Registry.INSTANCE\n\t\t\t\t.getEPackage(XMLTypePackage.eNS_URI);\n\n\t\t// Create type parameters\n\n\t\t// Set bounds for type parameters\n\n\t\t// Add supertypes to classes\n\t\tvalueEClass.getESuperTypes().add(this.getObject());\n\t\tvalueEClass.getESuperTypes().add(this.getArray());\n\t\tvalueEClass.getESuperTypes().add(this.getData());\n\n\t\t// Initialize classes, features, and operations; add parameters\n\t\tinitEClass(objectEClass, yaml_diagram.Object.class, \"Object\", !IS_ABSTRACT, !IS_INTERFACE,\n\t\t\t\tIS_GENERATED_INSTANCE_CLASS);\n\n\t\tinitEClass(arrayEClass, Array.class, \"Array\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\n\t\tinitEClass(valueEClass, Value.class, \"Value\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getValue_Key(), this.getKey(), this.getKey_Value(), \"key\", null, 0, 1, Value.class,\n\t\t\t\t!IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE,\n\t\t\t\tIS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(keyEClass, Key.class, \"Key\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getKey_Value(), this.getValue(), this.getValue_Key(), \"value\", null, 0, 1, Key.class,\n\t\t\t\t!IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE,\n\t\t\t\tIS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(dataEClass, Data.class, \"Data\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getData_Strategy(), theXMLTypePackage.getString(), \"strategy\", null, 0, 1, Data.class,\n\t\t\t\t!IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\t// Create resource\n\t\tcreateResource(eNS_URI);\n\t}", "title": "" }, { "docid": "9484dd1dce07385cb6d249156d07655f", "score": "0.59581757", "text": "public void initializePackageContents() {\r\n\t\tif (isInitialized)\r\n\t\t\treturn;\r\n\t\tisInitialized = true;\r\n\r\n\t\t// Initialize package\r\n\t\tsetName(eNAME);\r\n\t\tsetNsPrefix(eNS_PREFIX);\r\n\t\tsetNsURI(eNS_URI);\r\n\r\n\t\t// Obtain other dependent packages\r\n\t\tXMLTypePackage theXMLTypePackage = (XMLTypePackage) EPackage.Registry.INSTANCE\r\n\t\t\t\t.getEPackage(XMLTypePackage.eNS_URI);\r\n\r\n\t\t// Create type parameters\r\n\r\n\t\t// Set bounds for type parameters\r\n\r\n\t\t// Add supertypes to classes\r\n\r\n\t\t// Initialize classes, features, and operations; add parameters\r\n\t\tinitEClass(seasonEClass, Season.class, \"Season\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\r\n\t\tinitEReference(getSeason_Episode(), this.getEpisode(), null, \"episode\", null, 0, -1, Season.class,\r\n\t\t\t\t!IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE,\r\n\t\t\t\tIS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\t\tinitEAttribute(getSeason_Name(), theXMLTypePackage.getString(), \"name\", null, 1, 1, Season.class, !IS_TRANSIENT,\r\n\t\t\t\t!IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\r\n\t\tinitEClass(characterEClass, got.model.GoT.Character.class, \"Character\", !IS_ABSTRACT, !IS_INTERFACE,\r\n\t\t\t\tIS_GENERATED_INSTANCE_CLASS);\r\n\t\tinitEAttribute(getCharacter_Name(), theXMLTypePackage.getString(), \"name\", null, 1, 1,\r\n\t\t\t\tgot.model.GoT.Character.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID,\r\n\t\t\t\tIS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\t\tinitEAttribute(getCharacter_Status(), this.getStatus(), \"status\", null, 0, 1, got.model.GoT.Character.class,\r\n\t\t\t\t!IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\t\tinitEAttribute(getCharacter_Reason(), theXMLTypePackage.getString(), \"reason\", null, 0, 1,\r\n\t\t\t\tgot.model.GoT.Character.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID,\r\n\t\t\t\tIS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\t\tinitEAttribute(getCharacter_Method(), theXMLTypePackage.getString(), \"method\", null, 0, 1,\r\n\t\t\t\tgot.model.GoT.Character.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID,\r\n\t\t\t\tIS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\t\tinitEAttribute(getCharacter_MethodCategory(), this.getMethodCategory(), \"methodCategory\", null, 0, 1,\r\n\t\t\t\tgot.model.GoT.Character.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID,\r\n\t\t\t\tIS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\t\tinitEReference(getCharacter_DeathPlace(), this.getPlace(), null, \"deathPlace\", null, 0, 1,\r\n\t\t\t\tgot.model.GoT.Character.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE,\r\n\t\t\t\tIS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\t\tinitEReference(getCharacter_Episode(), this.getEpisode(), null, \"episode\", null, 1, 1,\r\n\t\t\t\tgot.model.GoT.Character.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE,\r\n\t\t\t\tIS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\t\tinitEReference(getCharacter_KilledBy(), this.getCharacter(), this.getCharacter_Killed(), \"killedBy\", null, 0, 1,\r\n\t\t\t\tgot.model.GoT.Character.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE,\r\n\t\t\t\tIS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\t\tinitEReference(getCharacter_Killed(), this.getCharacter(), this.getCharacter_KilledBy(), \"killed\", null, 0, -1,\r\n\t\t\t\tgot.model.GoT.Character.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE,\r\n\t\t\t\tIS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\t\tinitEReference(getCharacter_Alliegance(), this.getHouse(), this.getHouse_Fellow(), \"alliegance\", null, 0, -1,\r\n\t\t\t\tgot.model.GoT.Character.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE,\r\n\t\t\t\tIS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\r\n\t\tinitEClass(houseEClass, House.class, \"House\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\r\n\t\tinitEAttribute(getHouse_Name(), theXMLTypePackage.getString(), \"name\", null, 1, 1, House.class, !IS_TRANSIENT,\r\n\t\t\t\t!IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\t\tinitEReference(getHouse_Fellow(), this.getCharacter(), this.getCharacter_Alliegance(), \"fellow\", null, 0, -1,\r\n\t\t\t\tHouse.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES,\r\n\t\t\t\t!IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\r\n\t\tinitEClass(placeEClass, Place.class, \"Place\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\r\n\t\tinitEAttribute(getPlace_Name(), theXMLTypePackage.getString(), \"name\", null, 1, 1, Place.class, !IS_TRANSIENT,\r\n\t\t\t\t!IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\r\n\t\tinitEClass(episodeEClass, Episode.class, \"Episode\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\r\n\t\tinitEAttribute(getEpisode_Name(), theXMLTypePackage.getString(), \"name\", null, 1, 1, Episode.class,\r\n\t\t\t\t!IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\r\n\t\tinitEClass(goTEClass, GoT.class, \"GoT\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\r\n\t\tinitEReference(getGoT_Character(), this.getCharacter(), null, \"character\", null, 0, -1, GoT.class,\r\n\t\t\t\t!IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE,\r\n\t\t\t\tIS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\t\tinitEReference(getGoT_House(), this.getHouse(), null, \"house\", null, 0, -1, GoT.class, !IS_TRANSIENT,\r\n\t\t\t\t!IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED,\r\n\t\t\t\tIS_ORDERED);\r\n\t\tinitEReference(getGoT_Season(), this.getSeason(), null, \"season\", null, 0, -1, GoT.class, !IS_TRANSIENT,\r\n\t\t\t\t!IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED,\r\n\t\t\t\tIS_ORDERED);\r\n\t\tinitEReference(getGoT_Place(), this.getPlace(), null, \"place\", null, 0, -1, GoT.class, !IS_TRANSIENT,\r\n\t\t\t\t!IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED,\r\n\t\t\t\tIS_ORDERED);\r\n\t\tinitEReference(getGoT_Union(), this.getUnion(), null, \"union\", null, 0, -1, GoT.class, !IS_TRANSIENT,\r\n\t\t\t\t!IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED,\r\n\t\t\t\tIS_ORDERED);\r\n\r\n\t\tinitEClass(unionEClass, Union.class, \"Union\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\r\n\t\tinitEReference(getUnion_Child(), this.getCharacter(), null, \"child\", null, 0, -1, Union.class, !IS_TRANSIENT,\r\n\t\t\t\t!IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED,\r\n\t\t\t\tIS_ORDERED);\r\n\t\tinitEAttribute(getUnion_Kind(), this.getUnionKind(), \"kind\", null, 0, 1, Union.class, !IS_TRANSIENT,\r\n\t\t\t\t!IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\t\tinitEReference(getUnion_FirstCharacter(), this.getCharacter(), null, \"firstCharacter\", null, 1, 1, Union.class,\r\n\t\t\t\t!IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE,\r\n\t\t\t\tIS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\t\tinitEReference(getUnion_SecondCharacter(), this.getCharacter(), null, \"secondCharacter\", null, 1, 1,\r\n\t\t\t\tUnion.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES,\r\n\t\t\t\t!IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\r\n\t\t// Initialize enums and add enum literals\r\n\t\tinitEEnum(allegianceKindEEnum, AllegianceKind.class, \"AllegianceKind\");\r\n\t\taddEEnumLiteral(allegianceKindEEnum, AllegianceKind.BIRTH);\r\n\t\taddEEnumLiteral(allegianceKindEEnum, AllegianceKind.MARRIAGE);\r\n\t\taddEEnumLiteral(allegianceKindEEnum, AllegianceKind.PLEDGE);\r\n\t\taddEEnumLiteral(allegianceKindEEnum, AllegianceKind.OATH);\r\n\r\n\t\tinitEEnum(methodCategoryEEnum, MethodCategory.class, \"MethodCategory\");\r\n\t\taddEEnumLiteral(methodCategoryEEnum, MethodCategory.BLADE);\r\n\t\taddEEnumLiteral(methodCategoryEEnum, MethodCategory.FIRE_BURNING);\r\n\t\taddEEnumLiteral(methodCategoryEEnum, MethodCategory.ANIMAL);\r\n\t\taddEEnumLiteral(methodCategoryEEnum, MethodCategory.HOUSEHOLD_ITEM);\r\n\t\taddEEnumLiteral(methodCategoryEEnum, MethodCategory.UNKNOWN);\r\n\t\taddEEnumLiteral(methodCategoryEEnum, MethodCategory.MAGIC);\r\n\t\taddEEnumLiteral(methodCategoryEEnum, MethodCategory.OTHER);\r\n\t\taddEEnumLiteral(methodCategoryEEnum, MethodCategory.ARROW);\r\n\t\taddEEnumLiteral(methodCategoryEEnum, MethodCategory.POISON);\r\n\t\taddEEnumLiteral(methodCategoryEEnum, MethodCategory.SPEAR);\r\n\t\taddEEnumLiteral(methodCategoryEEnum, MethodCategory.HANDS);\r\n\r\n\t\tinitEEnum(statusEEnum, Status.class, \"Status\");\r\n\t\taddEEnumLiteral(statusEEnum, Status.ALIVE);\r\n\t\taddEEnumLiteral(statusEEnum, Status.DECEASED);\r\n\r\n\t\tinitEEnum(unionKindEEnum, UnionKind.class, \"UnionKind\");\r\n\t\taddEEnumLiteral(unionKindEEnum, UnionKind.MARRIAGE);\r\n\t\taddEEnumLiteral(unionKindEEnum, UnionKind.LOVE);\r\n\r\n\t\t// Create resource\r\n\t\tcreateResource(eNS_URI);\r\n\t}", "title": "" }, { "docid": "d5d02a7cb45baa31e3056a7d38009010", "score": "0.59449285", "text": "public void initialize() {\n manageInitialization();\n }", "title": "" }, { "docid": "cf85abe7377e152bd233877467db5af7", "score": "0.5944315", "text": "public void initializePackageContents() {\n\t\tif (isInitialized) return;\n\t\tisInitialized = true;\n\n\t\t// Initialize package\n\t\tsetName(eNAME);\n\t\tsetNsPrefix(eNS_PREFIX);\n\t\tsetNsURI(eNS_URI);\n\n\t\t// Obtain other dependent packages\n\t\tCommonsPackage theCommonsPackage = (CommonsPackage)EPackage.Registry.INSTANCE.getEPackage(CommonsPackage.eNS_URI);\n\t\tLabelsPackage theLabelsPackage = (LabelsPackage)EPackage.Registry.INSTANCE.getEPackage(LabelsPackage.eNS_URI);\n\t\tSentencesPackage theSentencesPackage = (SentencesPackage)EPackage.Registry.INSTANCE.getEPackage(SentencesPackage.eNS_URI);\n\t\tParagraphsPackage theParagraphsPackage = (ParagraphsPackage)EPackage.Registry.INSTANCE.getEPackage(ParagraphsPackage.eNS_URI);\n\t\tStatementsPackage theStatementsPackage = (StatementsPackage)EPackage.Registry.INSTANCE.getEPackage(StatementsPackage.eNS_URI);\n\t\tDataitemsPackage theDataitemsPackage = (DataitemsPackage)EPackage.Registry.INSTANCE.getEPackage(DataitemsPackage.eNS_URI);\n\t\tFilesPackage theFilesPackage = (FilesPackage)EPackage.Registry.INSTANCE.getEPackage(FilesPackage.eNS_URI);\n\n\t\t// Create type parameters\n\n\t\t// Set bounds for type parameters\n\n\t\t// Add supertypes to classes\n\t\tsectionEClass.getESuperTypes().add(theCommonsPackage.getNamedElement());\n\t\tsectionEClass.getESuperTypes().add(theLabelsPackage.getProcedure());\n\t\tworkingStorageSectionEClass.getESuperTypes().add(this.getDataDivisionSection());\n\t\tlocalStorageSectionEClass.getESuperTypes().add(this.getDataDivisionSection());\n\t\tlinkageStorageSectionEClass.getESuperTypes().add(this.getDataDivisionSection());\n\t\tioSectionEClass.getESuperTypes().add(this.getEnvironmentDivisionSection());\n\t\tconfigurationSectionEClass.getESuperTypes().add(this.getEnvironmentDivisionSection());\n\t\tenvironmentDivisionSectionEClass.getESuperTypes().add(this.getSection());\n\t\tdataDivisionSectionEClass.getESuperTypes().add(this.getSection());\n\t\tfileSectionEClass.getESuperTypes().add(this.getDataDivisionSection());\n\t\tdeclarativeSectionEClass.getESuperTypes().add(this.getSection());\n\n\t\t// Initialize classes and features; add operations and parameters\n\t\tinitEClass(sectionEClass, Section.class, \"Section\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getSection_Sentences(), theSentencesPackage.getStatementContainer(), null, \"sentences\", null, 0, -1, Section.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getSection_Paragraphs(), theParagraphsPackage.getParagraph(), null, \"paragraphs\", null, 0, -1, Section.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getSection_SegmentNumber(), ecorePackage.getEString(), \"segmentNumber\", null, 0, 1, Section.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(workingStorageSectionEClass, WorkingStorageSection.class, \"WorkingStorageSection\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\n\t\tinitEClass(localStorageSectionEClass, LocalStorageSection.class, \"LocalStorageSection\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\n\t\tinitEClass(linkageStorageSectionEClass, LinkageStorageSection.class, \"LinkageStorageSection\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\n\t\tinitEClass(ioSectionEClass, IOSection.class, \"IOSection\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\n\t\tinitEClass(configurationSectionEClass, ConfigurationSection.class, \"ConfigurationSection\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\n\t\tinitEClass(environmentDivisionSectionEClass, EnvironmentDivisionSection.class, \"EnvironmentDivisionSection\", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\n\t\tinitEClass(dataDivisionSectionEClass, DataDivisionSection.class, \"DataDivisionSection\", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getDataDivisionSection_Statements(), theStatementsPackage.getStatement(), null, \"statements\", null, 0, -1, DataDivisionSection.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getDataDivisionSection_Records(), theDataitemsPackage.getDataItem(), null, \"records\", null, 0, -1, DataDivisionSection.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(fileSectionEClass, FileSection.class, \"FileSection\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getFileSection_FileDescriptors(), theFilesPackage.getFileName(), null, \"fileDescriptors\", null, 0, -1, FileSection.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(declarativeSectionEClass, DeclarativeSection.class, \"DeclarativeSection\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t}", "title": "" }, { "docid": "7d7bd7e82ee7502aa9ad02775ff29d10", "score": "0.59233487", "text": "public void initializePackageContents() {\n\t\tif (isInitialized) return;\n\t\tisInitialized = true;\n\n\t\t// Initialize package\n\t\tsetName(eNAME);\n\t\tsetNsPrefix(eNS_PREFIX);\n\t\tsetNsURI(eNS_URI);\n\n\t\t// Create type parameters\n\n\t\t// Set bounds for type parameters\n\n\t\t// Add supertypes to classes\n\t\tlabelEClass.getESuperTypes().add(this.getFormElement());\n\t\tinputEClass.getESuperTypes().add(this.getFormElement());\n\t\timgEClass.getESuperTypes().add(this.getFormElement());\n\n\t\t// Initialize classes, features, and operations; add parameters\n\t\tinitEClass(htmlRootEClass, HtmlRoot.class, \"HtmlRoot\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getHtmlRoot_Steps(), this.getFormStep(), null, \"steps\", null, 1, -1, HtmlRoot.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getHtmlRoot_CssStyles(), this.getCssStyle(), null, \"cssStyles\", null, 0, -1, HtmlRoot.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(formStepEClass, FormStep.class, \"FormStep\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getFormStep_StepTitle(), ecorePackage.getEString(), \"stepTitle\", null, 1, 1, FormStep.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getFormStep_FormElements(), this.getFormElement(), null, \"formElements\", null, 0, -1, FormStep.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getFormStep_StepStyle(), this.getCssStyle(), null, \"stepStyle\", null, 0, -1, FormStep.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(formElementEClass, FormElement.class, \"FormElement\", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getFormElement_ElementStyle(), this.getCssStyle(), null, \"elementStyle\", null, 0, -1, FormElement.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(labelEClass, label.class, \"label\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getlabel_Value(), ecorePackage.getEString(), \"value\", null, 0, 1, label.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getlabel_For(), this.getinput(), this.getinput_LabelledBy(), \"for\", null, 1, 1, label.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getlabel_ConstrastRatio(), ecorePackage.getEDouble(), \"constrastRatio\", null, 0, 1, label.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getlabel_Id(), ecorePackage.getEString(), \"id\", null, 0, 1, label.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(inputEClass, input.class, \"input\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getinput_Type(), ecorePackage.getEString(), \"type\", \"text\", 1, 1, input.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getinput_LabelledBy(), this.getlabel(), this.getlabel_For(), \"labelledBy\", null, 1, 1, input.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getinput_Id(), ecorePackage.getEString(), \"id\", \"-1\", 1, 1, input.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(cssStyleEClass, CssStyle.class, \"CssStyle\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getCssStyle_Selector(), ecorePackage.getEString(), \"selector\", null, 1, 1, CssStyle.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getCssStyle_CssDeclarations(), this.getCssDeclaration(), null, \"cssDeclarations\", null, 1, -1, CssStyle.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(cssDeclarationEClass, CssDeclaration.class, \"CssDeclaration\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getCssDeclaration_Property(), ecorePackage.getEString(), \"property\", null, 1, 1, CssDeclaration.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getCssDeclaration_Value(), ecorePackage.getEString(), \"value\", null, 1, 1, CssDeclaration.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(imgEClass, img.class, \"img\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getimg_Alt(), ecorePackage.getEString(), \"alt\", null, 1, 1, img.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\t// Create resource\n\t\tcreateResource(eNS_URI);\n\n\t\t// Create annotations\n\t\t// http://www.eclipse.org/OCL/Import\n\t\tcreateImportAnnotations();\n\t\t// labels\n\t\tcreateLabelsAnnotations();\n\t}", "title": "" }, { "docid": "5509131c7ca7109d94d0dc8f2f16fc21", "score": "0.59197134", "text": "public void initializePackageContents() {\n\t\tif (isInitialized) return;\n\t\tisInitialized = true;\n\n\t\t// Initialize package\n\t\tsetName(eNAME);\n\t\tsetNsPrefix(eNS_PREFIX);\n\t\tsetNsURI(eNS_URI);\n\n\t\t// Create type parameters\n\n\t\t// Set bounds for type parameters\n\n\t\t// Add supertypes to classes\n\t\tvertexEClass.getESuperTypes().add(this.getDocumentElt());\n\t\tedgeEClass.getESuperTypes().add(this.getDocumentElt());\n\t\tinitialStateEClass.getESuperTypes().add(this.getVertex());\n\t\tsimpleStateEClass.getESuperTypes().add(this.getVertex());\n\t\tinPortEClass.getESuperTypes().add(this.getPort());\n\t\toutPortEClass.getESuperTypes().add(this.getPort());\n\n\t\t// Initialize classes and features; add operations and parameters\n\t\tinitEClass(wtComponentsEClass, WTComponents.class, \"WTComponents\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getWTComponents_Subsystems(), this.getSubsystem(), null, \"subsystems\", null, 0, -1, WTComponents.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getWTComponents_Name(), ecorePackage.getEString(), \"name\", null, 1, 1, WTComponents.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(subsystemEClass, Subsystem.class, \"Subsystem\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getSubsystem_Subsystems(), this.getSubsystem(), null, \"subsystems\", null, 0, -1, Subsystem.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getSubsystem_Name(), ecorePackage.getEString(), \"name\", null, 1, 1, Subsystem.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getSubsystem_Ensembles(), this.getArchitecture(), null, \"ensembles\", null, 0, -1, Subsystem.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getSubsystem_Beh(), this.getControlSubsystem(), null, \"beh\", null, 0, -1, Subsystem.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(architectureEClass, Architecture.class, \"Architecture\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getArchitecture_Name(), ecorePackage.getEString(), \"name\", null, 1, 1, Architecture.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getArchitecture_Elements(), this.getComponent(), null, \"elements\", null, 0, -1, Architecture.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(controlSubsystemEClass, ControlSubsystem.class, \"ControlSubsystem\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getControlSubsystem_Name(), ecorePackage.getEString(), \"name\", null, 1, 1, ControlSubsystem.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getControlSubsystem_States(), this.getStateMachine(), null, \"states\", null, 0, -1, ControlSubsystem.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(stateMachineEClass, StateMachine.class, \"StateMachine\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getStateMachine_Name(), ecorePackage.getEString(), \"name\", null, 1, 1, StateMachine.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getStateMachine_States(), this.getVertex(), null, \"states\", null, 0, -1, StateMachine.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getStateMachine_Transitions(), this.getEdge(), null, \"transitions\", null, 0, -1, StateMachine.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(vertexEClass, Vertex.class, \"Vertex\", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getVertex_Outgoing(), this.getEdge(), this.getEdge_Source(), \"outgoing\", null, 0, -1, Vertex.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getVertex_Incoming(), this.getEdge(), this.getEdge_Target(), \"incoming\", null, 0, -1, Vertex.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(edgeEClass, Edge.class, \"Edge\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getEdge_Source(), this.getVertex(), this.getVertex_Outgoing(), \"source\", null, 1, 1, Edge.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getEdge_Target(), this.getVertex(), this.getVertex_Incoming(), \"target\", null, 1, 1, Edge.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(initialStateEClass, InitialState.class, \"InitialState\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\n\t\tinitEClass(simpleStateEClass, SimpleState.class, \"SimpleState\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\n\t\tinitEClass(componentEClass, Component.class, \"Component\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getComponent_Ports(), this.getPort(), null, \"ports\", null, 0, -1, Component.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getComponent_States(), this.getStateMachine(), null, \"states\", null, 0, -1, Component.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getComponent_Label(), ecorePackage.getEString(), \"label\", null, 0, 1, Component.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(portEClass, Port.class, \"Port\", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getPort_Label(), ecorePackage.getEString(), \"label\", null, 0, 1, Port.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(inPortEClass, InPort.class, \"InPort\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\n\t\tinitEClass(outPortEClass, OutPort.class, \"OutPort\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\n\t\tinitEClass(documentEltEClass, DocumentElt.class, \"DocumentElt\", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getDocumentElt_Name(), ecorePackage.getEString(), \"name\", null, 0, 1, DocumentElt.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getDocumentElt_Description(), ecorePackage.getEString(), \"description\", null, 0, 1, DocumentElt.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\t// Create resource\n\t\tcreateResource(eNS_URI);\n\t}", "title": "" }, { "docid": "9bd25b923ff379b36826f54835618e05", "score": "0.5915335", "text": "public void initializePackageContents() {\n\t\tif (isInitialized) return;\n\t\tisInitialized = true;\n\n\t\t// Initialize package\n\t\tsetName(eNAME);\n\t\tsetNsPrefix(eNS_PREFIX);\n\t\tsetNsURI(eNS_URI);\n\n\t\t// Create type parameters\n\n\t\t// Set bounds for type parameters\n\n\t\t// Add supertypes to classes\n\t\tgoleiroEClass.getESuperTypes().add(this.getJogador());\n\t\tzagueiroEClass.getESuperTypes().add(this.getJogador());\n\t\tatacanteEClass.getESuperTypes().add(this.getJogador());\n\t\tlateralEClass.getESuperTypes().add(this.getJogador());\n\n\t\t// Initialize classes, features, and operations; add parameters\n\t\tinitEClass(campeonatoEClass, Campeonato.class, \"Campeonato\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getCampeonato_Nome(), ecorePackage.getEString(), \"nome\", null, 0, 1, Campeonato.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getCampeonato_DataInicial(), ecorePackage.getEString(), \"dataInicial\", null, 0, 1, Campeonato.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getCampeonato_DataFinal(), ecorePackage.getEString(), \"dataFinal\", null, 0, 1, Campeonato.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getCampeonato_TipoCampeonato(), this.getTipoCampeonato(), null, \"tipoCampeonato\", null, 0, 1, Campeonato.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getCampeonato_Grupo(), this.getGrupo(), null, \"Grupo\", null, 1, -1, Campeonato.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEOperation(getCampeonato__DecidirFinalistas(), null, \"decidirFinalistas\", 0, 1, IS_UNIQUE, IS_ORDERED);\n\n\t\tinitEOperation(getCampeonato__DecidirMVP(), null, \"decidirMVP\", 0, 1, IS_UNIQUE, IS_ORDERED);\n\n\t\tinitEClass(grupoEClass, Grupo.class, \"Grupo\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getGrupo_Nome(), ecorePackage.getEString(), \"nome\", null, 0, 1, Grupo.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getGrupo_Codigo(), ecorePackage.getEString(), \"codigo\", null, 0, 1, Grupo.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getGrupo_Time(), this.getTime(), null, \"Time\", null, 1, -1, Grupo.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEOperation(getGrupo__Partida(), null, \"partida\", 0, 1, IS_UNIQUE, IS_ORDERED);\n\n\t\tinitEClass(timeEClass, Time.class, \"Time\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getTime_Nome(), ecorePackage.getEString(), \"nome\", null, 0, 1, Time.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getTime_Codigo(), ecorePackage.getEIntegerObject(), \"codigo\", null, 0, 1, Time.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getTime_Jogador(), this.getJogador(), null, \"Jogador\", null, 1, -1, Time.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(jogadorEClass, Jogador.class, \"Jogador\", IS_ABSTRACT, IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getJogador_Nome(), ecorePackage.getEString(), \"nome\", null, 0, 1, Jogador.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getJogador_Codigo(), ecorePackage.getEIntegerObject(), \"codigo\", null, 0, 1, Jogador.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(tipoCampeonatoEClass, TipoCampeonato.class, \"TipoCampeonato\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getTipoCampeonato_PONTOS_CORRIDOS(), ecorePackage.getEString(), \"PONTOS_CORRIDOS\", \"Pontos Corridos\", 0, 1, TipoCampeonato.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getTipoCampeonato_MATA_MATA(), ecorePackage.getEString(), \"MATA_MATA\", \"Mata-mata\", 0, 1, TipoCampeonato.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getTipoCampeonato_HIBRIDO(), ecorePackage.getEString(), \"HIBRIDO\", \"H\\u00edbrido\", 0, 1, TipoCampeonato.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getTipoCampeonato_Value(), ecorePackage.getEString(), \"value\", null, 0, 1, TipoCampeonato.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(goleiroEClass, Goleiro.class, \"Goleiro\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\n\t\tinitEClass(zagueiroEClass, Zagueiro.class, \"Zagueiro\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\n\t\tinitEClass(atacanteEClass, Atacante.class, \"Atacante\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\n\t\tinitEClass(lateralEClass, Lateral.class, \"Lateral\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\n\t\t// Create resource\n\t\tcreateResource(eNS_URI);\n\t}", "title": "" }, { "docid": "8f9d403a77f7afa38f8467d1978140d0", "score": "0.59036374", "text": "public void initializePackageContents() {\n\t\tif (isInitialized) return;\n\t\tisInitialized = true;\n\n\t\t// Initialize package\n\t\tsetName(eNAME);\n\t\tsetNsPrefix(eNS_PREFIX);\n\t\tsetNsURI(eNS_URI);\n\n\t\t// Obtain other dependent packages\n\t\tEfinderPackage theEfinderPackage = (EfinderPackage)EPackage.Registry.INSTANCE.getEPackage(EfinderPackage.eNS_URI);\n\n\t\t// Create type parameters\n\n\t\t// Set bounds for type parameters\n\n\t\t// Add supertypes to classes\n\t\toclInvariantEClass.getESuperTypes().add(theEfinderPackage.getConstraint());\n\t\toclInvariantEClass.getESuperTypes().add(this.getWithContextVariable());\n\t\toclDerivedPropertyEClass.getESuperTypes().add(theEfinderPackage.getDerivedProperty());\n\t\toclDerivedPropertyEClass.getESuperTypes().add(this.getWithContextVariable());\n\t\toclOperationEClass.getESuperTypes().add(theEfinderPackage.getOperation());\n\t\toclOperationEClass.getESuperTypes().add(this.getWithContextVariable());\n\t\tmodelElementEClass.getESuperTypes().add(this.getOclExpression());\n\t\tcallExpEClass.getESuperTypes().add(this.getOclExpression());\n\t\tabstractOperationCallExpEClass.getESuperTypes().add(this.getCallExp());\n\t\toperationCallExpEClass.getESuperTypes().add(this.getAbstractOperationCallExp());\n\t\tpropertyCallExpEClass.getESuperTypes().add(this.getCallExp());\n\t\tcollectionCallExpEClass.getESuperTypes().add(this.getAbstractOperationCallExp());\n\t\tloopExpEClass.getESuperTypes().add(this.getCallExp());\n\t\titeratorExpEClass.getESuperTypes().add(this.getLoopExp());\n\t\titerateExpEClass.getESuperTypes().add(this.getLoopExp());\n\t\titeratorEClass.getESuperTypes().add(theEfinderPackage.getVariableDeclaration());\n\t\tifExpEClass.getESuperTypes().add(this.getOclExpression());\n\t\tletExpEClass.getESuperTypes().add(this.getOclExpression());\n\t\toperatorCallExpEClass.getESuperTypes().add(this.getCallExp());\n\t\tvarExpEClass.getESuperTypes().add(this.getOclExpression());\n\t\tliteralExpEClass.getESuperTypes().add(this.getOclExpression());\n\t\tbooleanLiteralExpEClass.getESuperTypes().add(this.getLiteralExp());\n\t\tstringLiteralExpEClass.getESuperTypes().add(this.getLiteralExp());\n\t\tintegerLiteralExpEClass.getESuperTypes().add(this.getLiteralExp());\n\t\trealLiteralExpEClass.getESuperTypes().add(this.getLiteralExp());\n\t\toclUndefinedEClass.getESuperTypes().add(this.getLiteralExp());\n\t\toclInvalidEClass.getESuperTypes().add(this.getLiteralExp());\n\t\ttupleLiteralExpEClass.getESuperTypes().add(this.getLiteralExp());\n\t\tenumLiteralExpEClass.getESuperTypes().add(this.getLiteralExp());\n\t\tcollectionLiteralExpEClass.getESuperTypes().add(this.getLiteralExp());\n\t\tsetLiteralExpEClass.getESuperTypes().add(this.getCollectionLiteralExp());\n\t\torderedSetLiteralExpEClass.getESuperTypes().add(this.getCollectionLiteralExp());\n\t\tsequenceLiteralExpEClass.getESuperTypes().add(this.getCollectionLiteralExp());\n\t\tbagLiteralExpEClass.getESuperTypes().add(this.getCollectionLiteralExp());\n\t\tunsupportedExpEClass.getESuperTypes().add(this.getOclExpression());\n\n\t\t// Initialize classes, features, and operations; add parameters\n\t\tinitEClass(withContextVariableEClass, WithContextVariable.class, \"WithContextVariable\", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getWithContextVariable_ContextVariable(), theEfinderPackage.getVariableDeclaration(), null, \"contextVariable\", null, 1, 1, WithContextVariable.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(oclInvariantEClass, OclInvariant.class, \"OclInvariant\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getOclInvariant_Klass(), theEfinderPackage.getEFClass(), null, \"klass\", null, 1, 1, OclInvariant.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getOclInvariant_Expression(), this.getOclExpression(), null, \"expression\", null, 1, 1, OclInvariant.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(oclDerivedPropertyEClass, OclDerivedProperty.class, \"OclDerivedProperty\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getOclDerivedProperty_Body(), this.getOclExpression(), null, \"body\", null, 1, 1, OclDerivedProperty.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(oclOperationEClass, OclOperation.class, \"OclOperation\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getOclOperation_Body(), this.getOclExpression(), null, \"body\", null, 1, 1, OclOperation.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(oclExpressionEClass, OclExpression.class, \"OclExpression\", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getOclExpression_Type(), theEfinderPackage.getTypeRef(), null, \"type\", null, 0, 1, OclExpression.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(modelElementEClass, ModelElement.class, \"ModelElement\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\n\t\tinitEClass(callExpEClass, CallExp.class, \"CallExp\", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getCallExp_Source(), this.getOclExpression(), null, \"source\", null, 1, 1, CallExp.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(abstractOperationCallExpEClass, AbstractOperationCallExp.class, \"AbstractOperationCallExp\", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getAbstractOperationCallExp_Arguments(), this.getOclExpression(), null, \"arguments\", null, 0, -1, AbstractOperationCallExp.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(operationCallExpEClass, OperationCallExp.class, \"OperationCallExp\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getOperationCallExp_Name(), ecorePackage.getEString(), \"name\", null, 1, 1, OperationCallExp.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getOperationCallExp_Feature(), theEfinderPackage.getOperationFeatureRef(), null, \"feature\", null, 0, 1, OperationCallExp.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(propertyCallExpEClass, PropertyCallExp.class, \"PropertyCallExp\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getPropertyCallExp_Name(), ecorePackage.getEString(), \"name\", null, 1, 1, PropertyCallExp.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getPropertyCallExp_Feature(), theEfinderPackage.getPropertyFeatureRef(), null, \"feature\", null, 0, 1, PropertyCallExp.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(collectionCallExpEClass, CollectionCallExp.class, \"CollectionCallExp\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getCollectionCallExp_Name(), ecorePackage.getEString(), \"name\", null, 1, 1, CollectionCallExp.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(loopExpEClass, LoopExp.class, \"LoopExp\", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getLoopExp_Iterators(), this.getIterator(), null, \"iterators\", null, 1, -1, LoopExp.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getLoopExp_Body(), this.getOclExpression(), null, \"body\", null, 1, 1, LoopExp.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(iteratorExpEClass, IteratorExp.class, \"IteratorExp\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getIteratorExp_Name(), ecorePackage.getEString(), \"name\", null, 1, 1, IteratorExp.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(iterateExpEClass, IterateExp.class, \"IterateExp\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getIterateExp_Result(), theEfinderPackage.getVariableDeclaration(), null, \"result\", null, 1, 1, IterateExp.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getIterateExp_Init(), this.getOclExpression(), null, \"init\", null, 1, 1, IterateExp.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(iteratorEClass, Iterator.class, \"Iterator\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\n\t\tinitEClass(ifExpEClass, IfExp.class, \"IfExp\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getIfExp_Condition(), this.getOclExpression(), null, \"condition\", null, 1, 1, IfExp.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getIfExp_Then(), this.getOclExpression(), null, \"then\", null, 1, 1, IfExp.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getIfExp_Else(), this.getOclExpression(), null, \"else\", null, 1, 1, IfExp.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(letExpEClass, LetExp.class, \"LetExp\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getLetExp_Variable(), theEfinderPackage.getVariableDeclaration(), null, \"variable\", null, 1, 1, LetExp.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getLetExp_Init(), this.getOclExpression(), null, \"init\", null, 1, 1, LetExp.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getLetExp_In(), this.getOclExpression(), null, \"in\", null, 1, 1, LetExp.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(operatorCallExpEClass, OperatorCallExp.class, \"OperatorCallExp\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getOperatorCallExp_Operator(), this.getOperatorKind(), \"operator\", null, 1, 1, OperatorCallExp.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getOperatorCallExp_Argument(), this.getOclExpression(), null, \"argument\", null, 0, 1, OperatorCallExp.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(varExpEClass, VarExp.class, \"VarExp\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getVarExp_Variable(), theEfinderPackage.getVariableDeclaration(), null, \"variable\", null, 1, 1, VarExp.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(literalExpEClass, LiteralExp.class, \"LiteralExp\", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\n\t\tinitEClass(booleanLiteralExpEClass, BooleanLiteralExp.class, \"BooleanLiteralExp\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getBooleanLiteralExp_Value(), ecorePackage.getEBoolean(), \"value\", null, 1, 1, BooleanLiteralExp.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(stringLiteralExpEClass, StringLiteralExp.class, \"StringLiteralExp\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getStringLiteralExp_Value(), ecorePackage.getEString(), \"value\", null, 1, 1, StringLiteralExp.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(integerLiteralExpEClass, IntegerLiteralExp.class, \"IntegerLiteralExp\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getIntegerLiteralExp_Value(), ecorePackage.getEIntegerObject(), \"value\", null, 1, 1, IntegerLiteralExp.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(realLiteralExpEClass, RealLiteralExp.class, \"RealLiteralExp\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getRealLiteralExp_Value(), ecorePackage.getEDoubleObject(), \"value\", null, 1, 1, RealLiteralExp.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(oclUndefinedEClass, OclUndefined.class, \"OclUndefined\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\n\t\tinitEClass(oclInvalidEClass, OclInvalid.class, \"OclInvalid\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\n\t\tinitEClass(tupleLiteralExpEClass, TupleLiteralExp.class, \"TupleLiteralExp\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getTupleLiteralExp_TupleType(), theEfinderPackage.getEFTupleType(), null, \"tupleType\", null, 1, 1, TupleLiteralExp.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getTupleLiteralExp_Parts(), this.getTuplePart(), null, \"parts\", null, 0, -1, TupleLiteralExp.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(tuplePartEClass, TuplePart.class, \"TuplePart\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getTuplePart_Name(), ecorePackage.getEString(), \"name\", null, 1, 1, TuplePart.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getTuplePart_Value(), this.getOclExpression(), null, \"value\", null, 1, 1, TuplePart.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(enumLiteralExpEClass, EnumLiteralExp.class, \"EnumLiteralExp\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getEnumLiteralExp_Enum_(), theEfinderPackage.getMetaTypeRef(), null, \"enum_\", null, 1, 1, EnumLiteralExp.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getEnumLiteralExp_Literal(), theEfinderPackage.getEFEnumLiteral(), null, \"literal\", null, 1, 1, EnumLiteralExp.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(collectionLiteralExpEClass, CollectionLiteralExp.class, \"CollectionLiteralExp\", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getCollectionLiteralExp_Parts(), this.getOclExpression(), null, \"parts\", null, 0, -1, CollectionLiteralExp.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(setLiteralExpEClass, SetLiteralExp.class, \"SetLiteralExp\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\n\t\tinitEClass(orderedSetLiteralExpEClass, OrderedSetLiteralExp.class, \"OrderedSetLiteralExp\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\n\t\tinitEClass(sequenceLiteralExpEClass, SequenceLiteralExp.class, \"SequenceLiteralExp\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\n\t\tinitEClass(bagLiteralExpEClass, BagLiteralExp.class, \"BagLiteralExp\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\n\t\tinitEClass(unsupportedExpEClass, UnsupportedExp.class, \"UnsupportedExp\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getUnsupportedExp_Reason(), ecorePackage.getEString(), \"reason\", null, 1, 1, UnsupportedExp.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getUnsupportedExp_Description(), ecorePackage.getEString(), \"description\", null, 1, 1, UnsupportedExp.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(oclAnyLibElementEClass, OclAnyLibElement.class, \"OclAnyLibElement\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\n\t\t// Initialize enums and add enum literals\n\t\tinitEEnum(operatorKindEEnum, OperatorKind.class, \"OperatorKind\");\n\t\taddEEnumLiteral(operatorKindEEnum, OperatorKind.NOT);\n\t\taddEEnumLiteral(operatorKindEEnum, OperatorKind.MUL);\n\t\taddEEnumLiteral(operatorKindEEnum, OperatorKind.DIV);\n\t\taddEEnumLiteral(operatorKindEEnum, OperatorKind.MINUS);\n\t\taddEEnumLiteral(operatorKindEEnum, OperatorKind.PLUS);\n\t\taddEEnumLiteral(operatorKindEEnum, OperatorKind.LESS);\n\t\taddEEnumLiteral(operatorKindEEnum, OperatorKind.GREATER);\n\t\taddEEnumLiteral(operatorKindEEnum, OperatorKind.LESS_OR_EQUAL);\n\t\taddEEnumLiteral(operatorKindEEnum, OperatorKind.GREATER_OR_EQUAL);\n\t\taddEEnumLiteral(operatorKindEEnum, OperatorKind.EQUAL);\n\t\taddEEnumLiteral(operatorKindEEnum, OperatorKind.DISTINCT);\n\t\taddEEnumLiteral(operatorKindEEnum, OperatorKind.AND);\n\t\taddEEnumLiteral(operatorKindEEnum, OperatorKind.OR);\n\t\taddEEnumLiteral(operatorKindEEnum, OperatorKind.XOR);\n\t\taddEEnumLiteral(operatorKindEEnum, OperatorKind.IMPLIES);\n\t}", "title": "" }, { "docid": "9f1af4f760afa42318340bd786593e3d", "score": "0.5895453", "text": "public void initializePackageContents() {\n\t\tif (isInitialized) return;\n\t\tisInitialized = true;\n\n\t\t// Initialize package\n\t\tsetName(eNAME);\n\t\tsetNsPrefix(eNS_PREFIX);\n\t\tsetNsURI(eNS_URI);\n\n\t\t// Create type parameters\n\n\t\t// Set bounds for type parameters\n\n\t\t// Add supertypes to classes\n\t\teditorProjectEClass.getESuperTypes().add(this.getProjectResource());\n\t\tdomainModelProjectEClass.getESuperTypes().add(this.getProjectResource());\n\t\tanimatorProjectEClass.getESuperTypes().add(this.getProjectResource());\n\t\tsiriusEditorProjectEClass.getESuperTypes().add(this.getEditorProject());\n\t\tsiriusAnimatorProjectEClass.getESuperTypes().add(this.getAnimatorProject());\n\t\txTextEditorProjectEClass.getESuperTypes().add(this.getEditorProject());\n\t\ttreeEditorProjectEClass.getESuperTypes().add(this.getEditorProject());\n\n\t\t// Initialize classes, features, and operations; add parameters\n\t\tinitEClass(languageDefinitionEClass, LanguageDefinition.class, \"LanguageDefinition\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getLanguageDefinition_DomainModelProject(), this.getDomainModelProject(), null, \"domainModelProject\", null, 1, 1, LanguageDefinition.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getLanguageDefinition_EditorProjects(), this.getEditorProject(), null, \"editorProjects\", null, 0, -1, LanguageDefinition.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getLanguageDefinition_AnimatorProjects(), this.getAnimatorProject(), null, \"animatorProjects\", null, 0, -1, LanguageDefinition.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getLanguageDefinition_Name(), ecorePackage.getEString(), \"name\", null, 1, 1, LanguageDefinition.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getLanguageDefinition_MelangeURI(), ecorePackage.getEString(), \"melangeURI\", null, 0, 1, LanguageDefinition.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getLanguageDefinition_NeedMelangeSynchronization(), ecorePackage.getEBoolean(), \"needMelangeSynchronization\", \"false\", 0, 1, LanguageDefinition.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEOperation(getLanguageDefinition__GetFileExtensions(), ecorePackage.getEString(), \"getFileExtensions\", 0, -1, IS_UNIQUE, IS_ORDERED);\n\n\t\tinitEClass(projectResourceEClass, ProjectResource.class, \"ProjectResource\", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getProjectResource_ProjectName(), ecorePackage.getEString(), \"projectName\", null, 0, 1, ProjectResource.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getProjectResource_ProjectKind(), this.getProjectKind(), \"projectKind\", null, 1, 1, ProjectResource.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(editorProjectEClass, EditorProject.class, \"EditorProject\", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getEditorProject_FileExtension(), ecorePackage.getEString(), \"fileExtension\", null, 0, -1, EditorProject.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(domainModelProjectEClass, DomainModelProject.class, \"DomainModelProject\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getDomainModelProject_DefaultRootEObjectQualifiedName(), ecorePackage.getEString(), \"defaultRootEObjectQualifiedName\", null, 0, 1, DomainModelProject.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getDomainModelProject_Genmodeluri(), ecorePackage.getEString(), \"genmodeluri\", null, 0, 1, DomainModelProject.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getDomainModelProject_ModelLoaderClass(), ecorePackage.getEString(), \"modelLoaderClass\", null, 0, 1, DomainModelProject.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEOperation(getDomainModelProject__GetEcoreURI(), ecorePackage.getEString(), \"getEcoreURI\", 0, 1, IS_UNIQUE, IS_ORDERED);\n\n\t\tinitEOperation(getDomainModelProject__GetGenmodel(), ecorePackage.getEObject(), \"getGenmodel\", 0, 1, IS_UNIQUE, IS_ORDERED);\n\n\t\tinitEClass(animatorProjectEClass, AnimatorProject.class, \"AnimatorProject\", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\n\t\tinitEClass(siriusEditorProjectEClass, SiriusEditorProject.class, \"SiriusEditorProject\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\n\t\tinitEClass(siriusAnimatorProjectEClass, SiriusAnimatorProject.class, \"SiriusAnimatorProject\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\n\t\tinitEClass(xTextEditorProjectEClass, XTextEditorProject.class, \"XTextEditorProject\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getXTextEditorProject_GrammarName(), ecorePackage.getEString(), \"grammarName\", null, 1, 1, XTextEditorProject.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(treeEditorProjectEClass, TreeEditorProject.class, \"TreeEditorProject\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\n\t\t// Initialize enums and add enum literals\n\t\tinitEEnum(projectKindEEnum, ProjectKind.class, \"ProjectKind\");\n\t\taddEEnumLiteral(projectKindEEnum, ProjectKind.ECLIPSE_PLUGIN);\n\t\taddEEnumLiteral(projectKindEEnum, ProjectKind.MAVEN_JAR);\n\n\t\t// Create resource\n\t\tcreateResource(eNS_URI);\n\t}", "title": "" }, { "docid": "7e5df0d11b48a1880c929a34276fe27c", "score": "0.5888439", "text": "public void initializePackageContents() {\n\t\tif (isInitialized) return;\n\t\tisInitialized = true;\n\n\t\t// Initialize package\n\t\tsetName(eNAME);\n\t\tsetNsPrefix(eNS_PREFIX);\n\t\tsetNsURI(eNS_URI);\n\n\t\t// Obtain other dependent packages\n\t\tXbeePackage theXbeePackage = (XbeePackage)EPackage.Registry.INSTANCE.getEPackage(XbeePackage.eNS_URI);\n\t\tAtcmdsetPackage theAtcmdsetPackage = (AtcmdsetPackage)EPackage.Registry.INSTANCE.getEPackage(AtcmdsetPackage.eNS_URI);\n\n\t\t// Create type parameters\n\n\t\t// Set bounds for type parameters\n\n\t\t// Add supertypes to classes\n\n\t\t// Initialize classes and features; add operations and parameters\n\t\tinitEClass(xBeeFirmwareConfigurationEClass, XBeeFirmwareConfiguration.class, \"XBeeFirmwareConfiguration\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getXBeeFirmwareConfiguration_Series(), theXbeePackage.getXBEE_SERIES(), \"series\", null, 0, -1, XBeeFirmwareConfiguration.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getXBeeFirmwareConfiguration_Label(), ecorePackage.getEString(), \"label\", null, 0, 1, XBeeFirmwareConfiguration.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getXBeeFirmwareConfiguration_Categories(), this.getXBeeFirmwareCfgCategory(), null, \"categories\", null, 0, -1, XBeeFirmwareConfiguration.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(xBeeFirmwareCfgCategoryEClass, XBeeFirmwareCfgCategory.class, \"XBeeFirmwareCfgCategory\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getXBeeFirmwareCfgCategory_SubCategories(), this.getXBeeFirmwareCfgCategory(), null, \"subCategories\", null, 0, -1, XBeeFirmwareCfgCategory.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getXBeeFirmwareCfgCategory_Kind(), this.getXBEE_FIRMWARE_CONF_CATEGORY(), \"kind\", null, 0, 1, XBeeFirmwareCfgCategory.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getXBeeFirmwareCfgCategory_Fields(), this.getXBEE_FIRMWARE_CONF_AT_FIELD(), null, \"fields\", null, 0, -1, XBeeFirmwareCfgCategory.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getXBeeFirmwareCfgCategory_Label(), ecorePackage.getEString(), \"label\", null, 0, 1, XBeeFirmwareCfgCategory.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(xbeE_FIRMWARE_CONF_AT_FIELDEClass, net.sf.smbt.xbeecfg.XBEE_FIRMWARE_CONF_AT_FIELD.class, \"XBEE_FIRMWARE_CONF_AT_FIELD\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getXBEE_FIRMWARE_CONF_AT_FIELD_AtCmd(), theAtcmdsetPackage.getAT_COMMAND_TYPES(), \"atCmd\", null, 0, 1, net.sf.smbt.xbeecfg.XBEE_FIRMWARE_CONF_AT_FIELD.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\t// Initialize enums and add enum literals\n\t\tinitEEnum(xbeE_FIRMWARE_CONF_CATEGORYEEnum, net.sf.smbt.xbeecfg.XBEE_FIRMWARE_CONF_CATEGORY.class, \"XBEE_FIRMWARE_CONF_CATEGORY\");\n\t\taddEEnumLiteral(xbeE_FIRMWARE_CONF_CATEGORYEEnum, net.sf.smbt.xbeecfg.XBEE_FIRMWARE_CONF_CATEGORY.AT_COMMANDS_OPTIONS);\n\t\taddEEnumLiteral(xbeE_FIRMWARE_CONF_CATEGORYEEnum, net.sf.smbt.xbeecfg.XBEE_FIRMWARE_CONF_CATEGORY.DIAGNOSTIC_COMMANDS);\n\t\taddEEnumLiteral(xbeE_FIRMWARE_CONF_CATEGORYEEnum, net.sf.smbt.xbeecfg.XBEE_FIRMWARE_CONF_CATEGORY.NETWORKING);\n\t\taddEEnumLiteral(xbeE_FIRMWARE_CONF_CATEGORYEEnum, net.sf.smbt.xbeecfg.XBEE_FIRMWARE_CONF_CATEGORY.SERIAL_INTERFACING);\n\t\taddEEnumLiteral(xbeE_FIRMWARE_CONF_CATEGORYEEnum, net.sf.smbt.xbeecfg.XBEE_FIRMWARE_CONF_CATEGORY.SLEEP_LOW_POWER);\n\t\taddEEnumLiteral(xbeE_FIRMWARE_CONF_CATEGORYEEnum, net.sf.smbt.xbeecfg.XBEE_FIRMWARE_CONF_CATEGORY.NETWORK_AND_SECURITY);\n\t\taddEEnumLiteral(xbeE_FIRMWARE_CONF_CATEGORYEEnum, net.sf.smbt.xbeecfg.XBEE_FIRMWARE_CONF_CATEGORY.DIAGNOSTICS);\n\t\taddEEnumLiteral(xbeE_FIRMWARE_CONF_CATEGORYEEnum, net.sf.smbt.xbeecfg.XBEE_FIRMWARE_CONF_CATEGORY.COMMANDS_MODE_OPTIONS);\n\t\taddEEnumLiteral(xbeE_FIRMWARE_CONF_CATEGORYEEnum, net.sf.smbt.xbeecfg.XBEE_FIRMWARE_CONF_CATEGORY.ADDRESSING);\n\t\taddEEnumLiteral(xbeE_FIRMWARE_CONF_CATEGORYEEnum, net.sf.smbt.xbeecfg.XBEE_FIRMWARE_CONF_CATEGORY.SECURITY);\n\t\taddEEnumLiteral(xbeE_FIRMWARE_CONF_CATEGORYEEnum, net.sf.smbt.xbeecfg.XBEE_FIRMWARE_CONF_CATEGORY.IO_SETTINGS);\n\t\taddEEnumLiteral(xbeE_FIRMWARE_CONF_CATEGORYEEnum, net.sf.smbt.xbeecfg.XBEE_FIRMWARE_CONF_CATEGORY.SERIAL_INTERFACING_OPTIONS);\n\t\taddEEnumLiteral(xbeE_FIRMWARE_CONF_CATEGORYEEnum, net.sf.smbt.xbeecfg.XBEE_FIRMWARE_CONF_CATEGORY.RF_INTERFACING);\n\t\taddEEnumLiteral(xbeE_FIRMWARE_CONF_CATEGORYEEnum, net.sf.smbt.xbeecfg.XBEE_FIRMWARE_CONF_CATEGORY.IO_LINE_PASSING);\n\t\taddEEnumLiteral(xbeE_FIRMWARE_CONF_CATEGORYEEnum, net.sf.smbt.xbeecfg.XBEE_FIRMWARE_CONF_CATEGORY.SLEEP_MODES_NONBEACON);\n\n\t\t// Create resource\n\t\tcreateResource(eNS_URI);\n\t}", "title": "" }, { "docid": "a39dfe73d03a2a37f72402c2c7829d57", "score": "0.5885033", "text": "public void initializePackageContents() {\r\n\t\tif (isInitialized) return;\r\n\t\tisInitialized = true;\r\n\r\n\t\t// Initialize package\r\n\t\tsetName(eNAME);\r\n\t\tsetNsPrefix(eNS_PREFIX);\r\n\t\tsetNsURI(eNS_URI);\r\n\r\n\t\t// Create type parameters\r\n\r\n\t\t// Set bounds for type parameters\r\n\r\n\t\t// Add supertypes to classes\r\n\t\teSpeciesEClass.getESuperTypes().add(this.getEGamaObject());\r\n\t\teActionEClass.getESuperTypes().add(this.getEGamaObject());\r\n\t\teAspectEClass.getESuperTypes().add(this.getEGamaObject());\r\n\t\teReflexEClass.getESuperTypes().add(this.getEGamaObject());\r\n\t\teExperimentEClass.getESuperTypes().add(this.getESpecies());\r\n\t\teguiExperimentEClass.getESuperTypes().add(this.getEExperiment());\r\n\t\teBatchExperimentEClass.getESuperTypes().add(this.getEExperiment());\r\n\t\teSubSpeciesLinkEClass.getESuperTypes().add(this.getEGamaLink());\r\n\t\teActionLinkEClass.getESuperTypes().add(this.getEGamaLink());\r\n\t\teAspectLinkEClass.getESuperTypes().add(this.getEGamaLink());\r\n\t\teReflexLinkEClass.getESuperTypes().add(this.getEGamaLink());\r\n\t\teDisplayLinkEClass.getESuperTypes().add(this.getEGamaLink());\r\n\t\teDisplayEClass.getESuperTypes().add(this.getEGamaObject());\r\n\t\teWorldAgentEClass.getESuperTypes().add(this.getESpecies());\r\n\t\teLayerEClass.getESuperTypes().add(this.getEGamaObject());\r\n\t\teExperimentLinkEClass.getESuperTypes().add(this.getEGamaLink());\r\n\t\teLayerAspectEClass.getESuperTypes().add(this.getEGamaObject());\r\n\t\teInheritLinkEClass.getESuperTypes().add(this.getEGamaLink());\r\n\t\teChartLayerEClass.getESuperTypes().add(this.getEGamaObject());\r\n\t\teParameterEClass.getESuperTypes().add(this.getEGamaObject());\r\n\t\teMonitorEClass.getESuperTypes().add(this.getEGamaObject());\r\n\t\tePlanEClass.getESuperTypes().add(this.getEGamaObject());\r\n\t\teStateEClass.getESuperTypes().add(this.getEGamaObject());\r\n\t\teTaskEClass.getESuperTypes().add(this.getEGamaObject());\r\n\t\tePlanLinkEClass.getESuperTypes().add(this.getEGamaLink());\r\n\t\teStateLinkEClass.getESuperTypes().add(this.getEGamaLink());\r\n\t\teTaskLinkEClass.getESuperTypes().add(this.getEGamaLink());\r\n\t\teGridEClass.getESuperTypes().add(this.getESpecies());\r\n\t\tePerceiveEClass.getESuperTypes().add(this.getEGamaObject());\r\n\t\tePerceiveLinkEClass.getESuperTypes().add(this.getEGamaLink());\r\n\t\teRuleEClass.getESuperTypes().add(this.getEGamaObject());\r\n\t\teRuleLinkEClass.getESuperTypes().add(this.getEGamaLink());\r\n\t\teEquationEClass.getESuperTypes().add(this.getEGamaObject());\r\n\t\teEquationLinkEClass.getESuperTypes().add(this.getEGamaLink());\r\n\r\n\t\t// Initialize classes and features; add operations and parameters\r\n\t\tinitEClass(eGamaModelEClass, EGamaModel.class, \"EGamaModel\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\r\n\t\tinitEReference(getEGamaModel_Objects(), this.getEGamaObject(), this.getEGamaObject_Model(), \"objects\", null, 0, -1, EGamaModel.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\t\tinitEAttribute(getEGamaModel_Name(), ecorePackage.getEString(), \"name\", null, 0, 1, EGamaModel.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\t\tinitEReference(getEGamaModel_Links(), this.getEGamaLink(), this.getEGamaLink_Model(), \"links\", null, 0, -1, EGamaModel.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\r\n\t\tinitEClass(eGamaObjectEClass, EGamaObject.class, \"EGamaObject\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\r\n\t\tinitEAttribute(getEGamaObject_Name(), ecorePackage.getEString(), \"name\", null, 0, 1, EGamaObject.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\t\tinitEReference(getEGamaObject_Model(), this.getEGamaModel(), this.getEGamaModel_Objects(), \"model\", null, 1, 1, EGamaObject.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\t\tinitEAttribute(getEGamaObject_ColorPicto(), ecorePackage.getEIntegerObject(), \"colorPicto\", null, 0, 3, EGamaObject.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\t\tinitEAttribute(getEGamaObject_HasError(), ecorePackage.getEBooleanObject(), \"hasError\", \"false\", 0, 1, EGamaObject.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\t\tinitEAttribute(getEGamaObject_Error(), ecorePackage.getEString(), \"error\", null, 0, 1, EGamaObject.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\t\tinitEReference(getEGamaObject_Facets(), this.getEFacet(), null, \"facets\", null, 0, -1, EGamaObject.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\r\n\t\tinitEClass(eSpeciesEClass, ESpecies.class, \"ESpecies\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\r\n\t\tinitEReference(getESpecies_Variables(), this.getEVariable(), null, \"variables\", null, 0, -1, ESpecies.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\t\tinitEAttribute(getESpecies_ReflexList(), ecorePackage.getEString(), \"reflexList\", null, 0, -1, ESpecies.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\t\tinitEReference(getESpecies_ExperimentLinks(), this.getEExperimentLink(), null, \"experimentLinks\", null, 0, -1, ESpecies.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\t\tinitEReference(getESpecies_AspectLinks(), this.getEAspectLink(), null, \"aspectLinks\", null, 0, -1, ESpecies.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\t\tinitEReference(getESpecies_ActionLinks(), this.getEActionLink(), null, \"actionLinks\", null, 0, -1, ESpecies.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\t\tinitEReference(getESpecies_ReflexLinks(), this.getEReflexLink(), null, \"reflexLinks\", null, 0, -1, ESpecies.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\t\tinitEReference(getESpecies_MicroSpeciesLinks(), this.getESubSpeciesLink(), null, \"microSpeciesLinks\", null, 0, -1, ESpecies.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\t\tinitEReference(getESpecies_MacroSpeciesLinks(), this.getESubSpeciesLink(), null, \"macroSpeciesLinks\", null, 0, -1, ESpecies.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\t\tinitEAttribute(getESpecies_Skills(), ecorePackage.getEString(), \"skills\", null, 0, -1, ESpecies.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\t\tinitEReference(getESpecies_InheritsFrom(), this.getESpecies(), null, \"inheritsFrom\", null, 0, 1, ESpecies.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\t\tinitEAttribute(getESpecies_Init(), ecorePackage.getEString(), \"init\", null, 0, 1, ESpecies.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\t\tinitEReference(getESpecies_InheritingLinks(), this.getEInheritLink(), null, \"inheritingLinks\", null, 0, -1, ESpecies.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\t\tinitEReference(getESpecies_PlanLinks(), this.getEPlanLink(), null, \"planLinks\", null, 0, -1, ESpecies.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\t\tinitEReference(getESpecies_StateLinks(), this.getEStateLink(), null, \"stateLinks\", null, 0, -1, ESpecies.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\t\tinitEReference(getESpecies_TaskLinks(), this.getETaskLink(), null, \"taskLinks\", null, 0, -1, ESpecies.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\t\tinitEReference(getESpecies_PerceiveLinks(), this.getEPerceiveLink(), null, \"perceiveLinks\", null, 0, -1, ESpecies.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\t\tinitEReference(getESpecies_RuleLinks(), this.getERuleLink(), null, \"ruleLinks\", null, 0, -1, ESpecies.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\t\tinitEReference(getESpecies_EquationLinks(), this.getEEquationLink(), null, \"equationLinks\", null, 0, -1, ESpecies.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\r\n\t\tinitEClass(eActionEClass, EAction.class, \"EAction\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\r\n\t\tinitEAttribute(getEAction_GamlCode(), ecorePackage.getEString(), \"gamlCode\", null, 0, 1, EAction.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, IS_DERIVED, IS_ORDERED);\r\n\t\tinitEReference(getEAction_ActionLinks(), this.getEActionLink(), null, \"actionLinks\", null, 0, -1, EAction.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\t\tinitEReference(getEAction_Variables(), this.getEVariable(), null, \"variables\", null, 0, -1, EAction.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\t\tinitEAttribute(getEAction_ReturnType(), ecorePackage.getEString(), \"returnType\", null, 0, 1, EAction.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\r\n\t\tinitEClass(eAspectEClass, EAspect.class, \"EAspect\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\r\n\t\tinitEAttribute(getEAspect_GamlCode(), ecorePackage.getEString(), \"gamlCode\", null, 0, 1, EAspect.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, IS_DERIVED, IS_ORDERED);\r\n\t\tinitEReference(getEAspect_AspectLinks(), this.getEAspectLink(), null, \"aspectLinks\", null, 0, -1, EAspect.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\t\tinitEReference(getEAspect_Layers(), this.getELayerAspect(), null, \"layers\", null, 0, -1, EAspect.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\t\tinitEAttribute(getEAspect_DefineGamlCode(), ecorePackage.getEBoolean(), \"defineGamlCode\", null, 0, 1, EAspect.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\r\n\t\tinitEClass(eReflexEClass, EReflex.class, \"EReflex\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\r\n\t\tinitEAttribute(getEReflex_GamlCode(), ecorePackage.getEString(), \"gamlCode\", null, 0, 1, EReflex.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, IS_DERIVED, IS_ORDERED);\r\n\t\tinitEReference(getEReflex_ReflexLinks(), this.getEReflexLink(), null, \"reflexLinks\", null, 0, -1, EReflex.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\r\n\t\tinitEClass(eExperimentEClass, EExperiment.class, \"EExperiment\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\r\n\t\tinitEReference(getEExperiment_ExperimentLink(), this.getEExperimentLink(), null, \"experimentLink\", null, 0, 1, EExperiment.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\t\tinitEReference(getEExperiment_DisplayLinks(), this.getEDisplayLink(), null, \"displayLinks\", null, 0, -1, EExperiment.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\t\tinitEReference(getEExperiment_Parameters(), this.getEParameter(), null, \"parameters\", null, 0, -1, EExperiment.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\t\tinitEReference(getEExperiment_Monitors(), this.getEMonitor(), null, \"monitors\", null, 0, -1, EExperiment.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\r\n\t\tinitEClass(eguiExperimentEClass, EGUIExperiment.class, \"EGUIExperiment\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\r\n\r\n\t\tinitEClass(eBatchExperimentEClass, EBatchExperiment.class, \"EBatchExperiment\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\r\n\r\n\t\tinitEClass(eGamaLinkEClass, EGamaLink.class, \"EGamaLink\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\r\n\t\tinitEReference(getEGamaLink_Target(), this.getEGamaObject(), null, \"target\", null, 1, 1, EGamaLink.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\t\tinitEReference(getEGamaLink_Source(), this.getEGamaObject(), null, \"source\", null, 1, 1, EGamaLink.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\t\tinitEReference(getEGamaLink_Model(), this.getEGamaModel(), this.getEGamaModel_Links(), \"model\", null, 1, 1, EGamaLink.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\r\n\t\tinitEClass(eSubSpeciesLinkEClass, ESubSpeciesLink.class, \"ESubSpeciesLink\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\r\n\t\tinitEReference(getESubSpeciesLink_Macro(), this.getESpecies(), null, \"macro\", null, 0, 1, ESubSpeciesLink.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\t\tinitEReference(getESubSpeciesLink_Micro(), this.getESpecies(), null, \"micro\", null, 0, 1, ESubSpeciesLink.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\r\n\t\tinitEClass(eActionLinkEClass, EActionLink.class, \"EActionLink\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\r\n\t\tinitEReference(getEActionLink_Action(), this.getEAction(), null, \"action\", null, 0, 1, EActionLink.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\t\tinitEReference(getEActionLink_Species(), this.getESpecies(), null, \"species\", null, 0, 1, EActionLink.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\r\n\t\tinitEClass(eAspectLinkEClass, EAspectLink.class, \"EAspectLink\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\r\n\t\tinitEReference(getEAspectLink_Aspect(), this.getEAspect(), null, \"aspect\", null, 0, 1, EAspectLink.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\t\tinitEReference(getEAspectLink_Species(), this.getESpecies(), null, \"species\", null, 0, 1, EAspectLink.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\r\n\t\tinitEClass(eReflexLinkEClass, EReflexLink.class, \"EReflexLink\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\r\n\t\tinitEReference(getEReflexLink_Reflex(), this.getEReflex(), null, \"reflex\", null, 0, 1, EReflexLink.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\t\tinitEReference(getEReflexLink_Species(), this.getESpecies(), null, \"species\", null, 0, 1, EReflexLink.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\r\n\t\tinitEClass(eDisplayLinkEClass, EDisplayLink.class, \"EDisplayLink\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\r\n\t\tinitEReference(getEDisplayLink_Experiment(), this.getEGUIExperiment(), null, \"experiment\", null, 0, 1, EDisplayLink.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\t\tinitEReference(getEDisplayLink_Display(), this.getEDisplay(), null, \"display\", null, 0, 1, EDisplayLink.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\r\n\t\tinitEClass(eDisplayEClass, EDisplay.class, \"EDisplay\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\r\n\t\tinitEReference(getEDisplay_Layers(), this.getELayer(), null, \"layers\", null, 0, -1, EDisplay.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\t\tinitEReference(getEDisplay_DisplayLink(), this.getEDisplayLink(), null, \"displayLink\", null, 0, 1, EDisplay.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\t\tinitEAttribute(getEDisplay_LayerList(), ecorePackage.getEString(), \"layerList\", null, 0, -1, EDisplay.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\t\tinitEAttribute(getEDisplay_GamlCode(), ecorePackage.getEString(), \"gamlCode\", null, 0, 1, EDisplay.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, IS_DERIVED, IS_ORDERED);\r\n\t\tinitEAttribute(getEDisplay_DefineGamlCode(), ecorePackage.getEBoolean(), \"defineGamlCode\", null, 0, 1, EDisplay.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\r\n\t\tinitEClass(eVariableEClass, EVariable.class, \"EVariable\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\r\n\t\tinitEAttribute(getEVariable_Init(), ecorePackage.getEString(), \"init\", null, 0, 1, EVariable.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\t\tinitEAttribute(getEVariable_Min(), ecorePackage.getEString(), \"min\", null, 0, 1, EVariable.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\t\tinitEAttribute(getEVariable_Max(), ecorePackage.getEString(), \"max\", null, 0, 1, EVariable.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\t\tinitEAttribute(getEVariable_Update(), ecorePackage.getEString(), \"update\", null, 0, 1, EVariable.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\t\tinitEAttribute(getEVariable_Function(), ecorePackage.getEString(), \"function\", null, 0, 1, EVariable.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\t\tinitEAttribute(getEVariable_Type(), ecorePackage.getEString(), \"type\", null, 0, 1, EVariable.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\t\tinitEAttribute(getEVariable_Name(), ecorePackage.getEString(), \"name\", null, 0, 1, EVariable.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\t\tinitEAttribute(getEVariable_HasError(), ecorePackage.getEBooleanObject(), \"hasError\", \"false\", 0, 1, EVariable.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\t\tinitEAttribute(getEVariable_Error(), ecorePackage.getEString(), \"error\", null, 0, 1, EVariable.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\t\tinitEReference(getEVariable_Owner(), this.getEGamaObject(), null, \"owner\", null, 0, 1, EVariable.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\r\n\t\tinitEClass(eWorldAgentEClass, EWorldAgent.class, \"EWorldAgent\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\r\n\r\n\t\tinitEClass(eLayerEClass, ELayer.class, \"ELayer\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\r\n\t\tinitEAttribute(getELayer_GamlCode(), ecorePackage.getEString(), \"gamlCode\", null, 0, 1, ELayer.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, IS_DERIVED, IS_ORDERED);\r\n\t\tinitEReference(getELayer_Display(), this.getEDisplay(), null, \"display\", null, 0, 1, ELayer.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\t\tinitEAttribute(getELayer_Type(), ecorePackage.getEString(), \"type\", null, 0, 1, ELayer.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\t\tinitEAttribute(getELayer_File(), ecorePackage.getEString(), \"file\", null, 0, 1, ELayer.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\t\tinitEAttribute(getELayer_Text(), ecorePackage.getEString(), \"text\", null, 0, 1, ELayer.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\t\tinitEAttribute(getELayer_Size(), ecorePackage.getEString(), \"size\", null, 0, 1, ELayer.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\t\tinitEAttribute(getELayer_Species(), ecorePackage.getEString(), \"species\", null, 0, 1, ELayer.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\t\tinitEAttribute(getELayer_Agents(), ecorePackage.getEString(), \"agents\", null, 0, 1, ELayer.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\t\tinitEAttribute(getELayer_Aspect(), ecorePackage.getEString(), \"aspect\", null, 0, 1, ELayer.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\t\tinitEAttribute(getELayer_Color(), ecorePackage.getEString(), \"color\", null, 0, 1, ELayer.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\t\tinitEAttribute(getELayer_IsColorCst(), ecorePackage.getEBooleanObject(), \"isColorCst\", null, 0, 1, ELayer.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, IS_DERIVED, IS_ORDERED);\r\n\t\tinitEAttribute(getELayer_ColorRBG(), ecorePackage.getEIntegerObject(), \"colorRBG\", null, 0, 3, ELayer.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\t\tinitEAttribute(getELayer_Grid(), ecorePackage.getEString(), \"grid\", null, 0, 1, ELayer.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\t\tinitEReference(getELayer_Chartlayers(), this.getEChartLayer(), null, \"chartlayers\", null, 0, -1, ELayer.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\t\tinitEAttribute(getELayer_Chart_type(), ecorePackage.getEString(), \"chart_type\", null, 0, 1, ELayer.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\t\tinitEAttribute(getELayer_ShowLines(), ecorePackage.getEBoolean(), \"showLines\", \"false\", 0, 1, ELayer.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\r\n\t\tinitEClass(eExperimentLinkEClass, EExperimentLink.class, \"EExperimentLink\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\r\n\t\tinitEReference(getEExperimentLink_Species(), this.getESpecies(), null, \"species\", null, 0, 1, EExperimentLink.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\t\tinitEReference(getEExperimentLink_Experiment(), this.getEExperiment(), null, \"experiment\", null, 0, 1, EExperimentLink.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\r\n\t\tinitEClass(eLayerAspectEClass, ELayerAspect.class, \"ELayerAspect\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\r\n\t\tinitEAttribute(getELayerAspect_GamlCode(), ecorePackage.getEString(), \"gamlCode\", null, 0, 1, ELayerAspect.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, IS_DERIVED, IS_ORDERED);\r\n\t\tinitEAttribute(getELayerAspect_Shape(), ecorePackage.getEString(), \"shape\", null, 0, 1, ELayerAspect.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\t\tinitEAttribute(getELayerAspect_Color(), ecorePackage.getEString(), \"color\", null, 0, 1, ELayerAspect.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\t\tinitEAttribute(getELayerAspect_Empty(), ecorePackage.getEString(), \"empty\", null, 0, 1, ELayerAspect.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\t\tinitEAttribute(getELayerAspect_Rotate(), ecorePackage.getEString(), \"rotate\", null, 0, 1, ELayerAspect.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\t\tinitEAttribute(getELayerAspect_Size(), ecorePackage.getEString(), \"size\", null, 0, 1, ELayerAspect.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\t\tinitEAttribute(getELayerAspect_Width(), ecorePackage.getEString(), \"width\", null, 0, 1, ELayerAspect.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\t\tinitEAttribute(getELayerAspect_Heigth(), ecorePackage.getEString(), \"heigth\", null, 0, 1, ELayerAspect.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\t\tinitEAttribute(getELayerAspect_Radius(), ecorePackage.getEString(), \"radius\", null, 0, 1, ELayerAspect.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\t\tinitEAttribute(getELayerAspect_Path(), ecorePackage.getEString(), \"path\", null, 0, 1, ELayerAspect.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\t\tinitEAttribute(getELayerAspect_Text(), ecorePackage.getEString(), \"text\", null, 0, 1, ELayerAspect.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\t\tinitEAttribute(getELayerAspect_Type(), ecorePackage.getEString(), \"type\", null, 0, 1, ELayerAspect.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\t\tinitEAttribute(getELayerAspect_Expression(), ecorePackage.getEString(), \"expression\", null, 0, 1, ELayerAspect.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\t\tinitEAttribute(getELayerAspect_Points(), ecorePackage.getEString(), \"points\", null, 0, 1, ELayerAspect.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\t\tinitEAttribute(getELayerAspect_At(), ecorePackage.getEString(), \"at\", null, 0, 1, ELayerAspect.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\t\tinitEAttribute(getELayerAspect_ShapeType(), ecorePackage.getEString(), \"shapeType\", null, 0, 1, ELayerAspect.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, IS_DERIVED, IS_ORDERED);\r\n\t\tinitEAttribute(getELayerAspect_IsColorCst(), ecorePackage.getEBooleanObject(), \"isColorCst\", null, 0, 1, ELayerAspect.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, IS_DERIVED, IS_ORDERED);\r\n\t\tinitEAttribute(getELayerAspect_TextSize(), ecorePackage.getEString(), \"textSize\", null, 0, 1, ELayerAspect.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, IS_DERIVED, IS_ORDERED);\r\n\t\tinitEAttribute(getELayerAspect_ImageSize(), ecorePackage.getEString(), \"imageSize\", null, 0, 1, ELayerAspect.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, IS_DERIVED, IS_ORDERED);\r\n\t\tinitEAttribute(getELayerAspect_ColorRBG(), ecorePackage.getEIntegerObject(), \"colorRBG\", null, 0, 3, ELayerAspect.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\t\tinitEReference(getELayerAspect_Aspect(), this.getEAspect(), null, \"aspect\", null, 0, 1, ELayerAspect.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\t\tinitEAttribute(getELayerAspect_Depth(), ecorePackage.getEString(), \"depth\", null, 0, 1, ELayerAspect.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\t\tinitEAttribute(getELayerAspect_Texture(), ecorePackage.getEString(), \"texture\", null, 0, 1, ELayerAspect.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\r\n\t\tinitEClass(eInheritLinkEClass, EInheritLink.class, \"EInheritLink\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\r\n\t\tinitEReference(getEInheritLink_Parent(), this.getESpecies(), null, \"parent\", null, 0, 1, EInheritLink.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\t\tinitEReference(getEInheritLink_Child(), this.getESpecies(), null, \"child\", null, 0, 1, EInheritLink.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\r\n\t\tinitEClass(eChartLayerEClass, EChartLayer.class, \"EChartLayer\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\r\n\t\tinitEAttribute(getEChartLayer_Style(), ecorePackage.getEString(), \"style\", null, 0, 1, EChartLayer.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\t\tinitEAttribute(getEChartLayer_Color(), ecorePackage.getEString(), \"color\", null, 0, 1, EChartLayer.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\t\tinitEAttribute(getEChartLayer_Value(), ecorePackage.getEString(), \"value\", null, 0, 1, EChartLayer.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\r\n\t\tinitEClass(eParameterEClass, EParameter.class, \"EParameter\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\r\n\t\tinitEAttribute(getEParameter_Variable(), ecorePackage.getEString(), \"variable\", null, 0, 1, EParameter.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\t\tinitEAttribute(getEParameter_Min(), ecorePackage.getEString(), \"min\", null, 0, 1, EParameter.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\t\tinitEAttribute(getEParameter_Init(), ecorePackage.getEString(), \"init\", null, 0, 1, EParameter.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\t\tinitEAttribute(getEParameter_Step(), ecorePackage.getEString(), \"step\", null, 0, 1, EParameter.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\t\tinitEAttribute(getEParameter_Max(), ecorePackage.getEString(), \"max\", null, 0, 1, EParameter.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\t\tinitEAttribute(getEParameter_Among(), ecorePackage.getEString(), \"among\", null, 0, 1, EParameter.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\t\tinitEAttribute(getEParameter_Category(), ecorePackage.getEString(), \"category\", null, 0, 1, EParameter.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\r\n\t\tinitEClass(eMonitorEClass, EMonitor.class, \"EMonitor\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\r\n\t\tinitEAttribute(getEMonitor_Value(), ecorePackage.getEString(), \"value\", null, 0, 1, EMonitor.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\r\n\t\tinitEClass(eFacetEClass, EFacet.class, \"EFacet\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\r\n\t\tinitEAttribute(getEFacet_Name(), ecorePackage.getEString(), \"name\", null, 0, 1, EFacet.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\t\tinitEReference(getEFacet_Owner(), this.getEGamaObject(), null, \"owner\", null, 0, 1, EFacet.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\t\tinitEAttribute(getEFacet_Value(), ecorePackage.getEString(), \"value\", null, 0, 1, EFacet.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\r\n\t\tinitEClass(ePlanEClass, EPlan.class, \"EPlan\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\r\n\t\tinitEAttribute(getEPlan_GamlCode(), ecorePackage.getEString(), \"gamlCode\", null, 0, 1, EPlan.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, IS_DERIVED, IS_ORDERED);\r\n\t\tinitEReference(getEPlan_PlanLinks(), this.getEPlanLink(), null, \"planLinks\", null, 0, -1, EPlan.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\r\n\t\tinitEClass(eStateEClass, EState.class, \"EState\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\r\n\t\tinitEAttribute(getEState_GamlCode(), ecorePackage.getEString(), \"gamlCode\", null, 0, 1, EState.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, IS_DERIVED, IS_ORDERED);\r\n\t\tinitEReference(getEState_StateLinks(), this.getEStateLink(), null, \"stateLinks\", null, 0, -1, EState.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\r\n\t\tinitEClass(eTaskEClass, ETask.class, \"ETask\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\r\n\t\tinitEAttribute(getETask_GamlCode(), ecorePackage.getEString(), \"gamlCode\", null, 0, 1, ETask.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, IS_DERIVED, IS_ORDERED);\r\n\t\tinitEReference(getETask_TaskLinks(), this.getETaskLink(), null, \"taskLinks\", null, 0, -1, ETask.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\r\n\t\tinitEClass(ePlanLinkEClass, EPlanLink.class, \"EPlanLink\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\r\n\t\tinitEReference(getEPlanLink_Plan(), this.getEPlan(), null, \"plan\", null, 0, 1, EPlanLink.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\t\tinitEReference(getEPlanLink_Species(), this.getESpecies(), null, \"species\", null, 0, 1, EPlanLink.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\r\n\t\tinitEClass(eStateLinkEClass, EStateLink.class, \"EStateLink\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\r\n\t\tinitEReference(getEStateLink_State(), this.getEState(), null, \"state\", null, 0, 1, EStateLink.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\t\tinitEReference(getEStateLink_Species(), this.getESpecies(), null, \"species\", null, 0, 1, EStateLink.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\r\n\t\tinitEClass(eTaskLinkEClass, ETaskLink.class, \"ETaskLink\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\r\n\t\tinitEReference(getETaskLink_Task(), this.getETask(), null, \"task\", null, 0, 1, ETaskLink.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\t\tinitEReference(getETaskLink_Species(), this.getESpecies(), null, \"species\", null, 0, 1, ETaskLink.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\r\n\t\tinitEClass(eGridEClass, EGrid.class, \"EGrid\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\r\n\r\n\t\tinitEClass(ePerceiveEClass, EPerceive.class, \"EPerceive\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\r\n\t\tinitEAttribute(getEPerceive_GamlCode(), ecorePackage.getEString(), \"gamlCode\", null, 0, 1, EPerceive.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, IS_DERIVED, IS_ORDERED);\r\n\t\tinitEReference(getEPerceive_PerceiveLinks(), this.getEPerceiveLink(), null, \"perceiveLinks\", null, 0, -1, EPerceive.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\r\n\t\tinitEClass(ePerceiveLinkEClass, EPerceiveLink.class, \"EPerceiveLink\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\r\n\t\tinitEReference(getEPerceiveLink_Perceive(), this.getEPerceive(), null, \"perceive\", null, 0, 1, EPerceiveLink.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\t\tinitEReference(getEPerceiveLink_Species(), this.getESpecies(), null, \"species\", null, 0, 1, EPerceiveLink.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\r\n\t\tinitEClass(eRuleEClass, ERule.class, \"ERule\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\r\n\t\tinitEAttribute(getERule_GamlCode(), ecorePackage.getEString(), \"gamlCode\", null, 0, 1, ERule.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, IS_DERIVED, IS_ORDERED);\r\n\t\tinitEReference(getERule_RuleLinks(), this.getERuleLink(), null, \"ruleLinks\", null, 0, -1, ERule.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\r\n\t\tinitEClass(eRuleLinkEClass, ERuleLink.class, \"ERuleLink\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\r\n\t\tinitEReference(getERuleLink_Rule(), this.getERule(), null, \"rule\", null, 0, 1, ERuleLink.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\t\tinitEReference(getERuleLink_Species(), this.getESpecies(), null, \"species\", null, 0, 1, ERuleLink.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\r\n\t\tinitEClass(eEquationEClass, EEquation.class, \"EEquation\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\r\n\t\tinitEAttribute(getEEquation_GamlCode(), ecorePackage.getEString(), \"gamlCode\", null, 0, 1, EEquation.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, IS_DERIVED, IS_ORDERED);\r\n\t\tinitEReference(getEEquation_EquationLinks(), this.getEEquationLink(), null, \"equationLinks\", null, 0, -1, EEquation.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\r\n\t\tinitEClass(eEquationLinkEClass, EEquationLink.class, \"EEquationLink\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\r\n\t\tinitEReference(getEEquationLink_Equation(), this.getEEquation(), null, \"equation\", null, 0, 1, EEquationLink.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\t\tinitEReference(getEEquationLink_Species(), this.getESpecies(), null, \"species\", null, 0, 1, EEquationLink.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\r\n\t\t// Create resource\r\n\t\tcreateResource(eNS_URI);\r\n\t}", "title": "" }, { "docid": "698662ba120eca571b2543797cb06502", "score": "0.5883741", "text": "public void initializePackageContents() {\r\n\t\tif (isInitialized)\r\n\t\t\treturn;\r\n\t\tisInitialized = true;\r\n\r\n\t\t// Initialize package\r\n\t\tsetName(eNAME);\r\n\t\tsetNsPrefix(eNS_PREFIX);\r\n\t\tsetNsURI(eNS_URI);\r\n\r\n\t\t// Create type parameters\r\n\r\n\t\t// Set bounds for type parameters\r\n\r\n\t\t// Add supertypes to classes\r\n\t\tserviceEClass.getESuperTypes().add(this.getComponent());\r\n\t\tactivityEClass.getESuperTypes().add(this.getComponent());\r\n\t\tbroadcastReceiverEClass.getESuperTypes().add(this.getComponent());\r\n\t\tgcmIntentServiceEClass.getESuperTypes().add(this.getService());\r\n\t\tgcmBroadcastReceiverEClass.getESuperTypes().add(\r\n\t\t\t\tthis.getBroadcastReceiver());\r\n\t\tgcmActivityEClass.getESuperTypes().add(this.getActivity());\r\n\t\ttopicManagerEClass.getESuperTypes().add(this.getFeature());\r\n\t\tgcmGroupManagerEClass.getESuperTypes().add(this.getJavaComponent());\r\n\t\tgcmMessageManagerEClass.getESuperTypes().add(this.getJavaComponent());\r\n\r\n\t\t// Initialize classes, features, and operations; add parameters\r\n\t\tinitEClass(androidApplicationEClass, AndroidApplication.class,\r\n\t\t\t\t\"AndroidApplication\", !IS_ABSTRACT, !IS_INTERFACE,\r\n\t\t\t\tIS_GENERATED_INSTANCE_CLASS);\r\n\t\tinitEReference(getAndroidApplication_Dependencies(), this.getLibrary(),\r\n\t\t\t\tnull, \"dependencies\", null, 0, -1, AndroidApplication.class,\r\n\t\t\t\t!IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE,\r\n\t\t\t\tIS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED,\r\n\t\t\t\tIS_ORDERED);\r\n\t\tinitEReference(getAndroidApplication_Components(), this.getComponent(),\r\n\t\t\t\tnull, \"components\", null, 0, -1, AndroidApplication.class,\r\n\t\t\t\t!IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE,\r\n\t\t\t\tIS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED,\r\n\t\t\t\tIS_ORDERED);\r\n\t\tinitEReference(getAndroidApplication_Uses(), this.getPermission(),\r\n\t\t\t\tnull, \"uses\", null, 0, -1, AndroidApplication.class,\r\n\t\t\t\t!IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE,\r\n\t\t\t\tIS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED,\r\n\t\t\t\tIS_ORDERED);\r\n\t\tinitEReference(getAndroidApplication_Defines(), this.getPermission(),\r\n\t\t\t\tnull, \"defines\", null, 0, -1, AndroidApplication.class,\r\n\t\t\t\t!IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE,\r\n\t\t\t\tIS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED,\r\n\t\t\t\tIS_ORDERED);\r\n\t\tinitEAttribute(getAndroidApplication_Name(), ecorePackage.getEString(),\r\n\t\t\t\t\"name\", null, 0, 1, AndroidApplication.class, !IS_TRANSIENT,\r\n\t\t\t\t!IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE,\r\n\t\t\t\t!IS_DERIVED, IS_ORDERED);\r\n\t\tinitEAttribute(getAndroidApplication_MinSDK(), ecorePackage.getEInt(),\r\n\t\t\t\t\"minSDK\", null, 0, 1, AndroidApplication.class, !IS_TRANSIENT,\r\n\t\t\t\t!IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE,\r\n\t\t\t\t!IS_DERIVED, IS_ORDERED);\r\n\t\tinitEAttribute(getAndroidApplication_TargetSDK(),\r\n\t\t\t\tecorePackage.getEInt(), \"targetSDK\", null, 0, 1,\r\n\t\t\t\tAndroidApplication.class, !IS_TRANSIENT, !IS_VOLATILE,\r\n\t\t\t\tIS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED,\r\n\t\t\t\tIS_ORDERED);\r\n\t\tinitEReference(getAndroidApplication_Metadatas(), this.getMetadata(),\r\n\t\t\t\tnull, \"metadatas\", null, 0, -1, AndroidApplication.class,\r\n\t\t\t\t!IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE,\r\n\t\t\t\tIS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED,\r\n\t\t\t\tIS_ORDERED);\r\n\t\tinitEAttribute(getAndroidApplication_JavaName(),\r\n\t\t\t\tecorePackage.getEString(), \"javaName\", null, 0, 1,\r\n\t\t\t\tAndroidApplication.class, !IS_TRANSIENT, !IS_VOLATILE,\r\n\t\t\t\tIS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED,\r\n\t\t\t\tIS_ORDERED);\r\n\t\tinitEReference(getAndroidApplication_Feature(), this.getFeature(),\r\n\t\t\t\tnull, \"feature\", null, 0, -1, AndroidApplication.class,\r\n\t\t\t\t!IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE,\r\n\t\t\t\tIS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED,\r\n\t\t\t\tIS_ORDERED);\r\n\r\n\t\tEOperation op = initEOperation(\r\n\t\t\t\tgetAndroidApplication__AddComponent__Component(), null,\r\n\t\t\t\t\"addComponent\", 0, 1, IS_UNIQUE, IS_ORDERED);\r\n\t\taddEParameter(op, this.getComponent(), \"component\", 0, 1, IS_UNIQUE,\r\n\t\t\t\tIS_ORDERED);\r\n\r\n\t\top = initEOperation(\r\n\t\t\t\tgetAndroidApplication__DefinesPermission__Permission(), null,\r\n\t\t\t\t\"definesPermission\", 0, 1, IS_UNIQUE, IS_ORDERED);\r\n\t\taddEParameter(op, this.getPermission(), \"permission\", 0, 1, IS_UNIQUE,\r\n\t\t\t\tIS_ORDERED);\r\n\r\n\t\top = initEOperation(\r\n\t\t\t\tgetAndroidApplication__UsesPermission__Permission(), null,\r\n\t\t\t\t\"usesPermission\", 0, 1, IS_UNIQUE, IS_ORDERED);\r\n\t\taddEParameter(op, this.getPermission(), \"permission\", 0, 1, IS_UNIQUE,\r\n\t\t\t\tIS_ORDERED);\r\n\r\n\t\top = initEOperation(getAndroidApplication__DependsOn__Library(), null,\r\n\t\t\t\t\"dependsOn\", 0, 1, IS_UNIQUE, IS_ORDERED);\r\n\t\taddEParameter(op, this.getLibrary(), \"library\", 0, 1, IS_UNIQUE,\r\n\t\t\t\tIS_ORDERED);\r\n\r\n\t\top = initEOperation(getAndroidApplication__AddFeature__Feature(), null,\r\n\t\t\t\t\"addFeature\", 0, 1, IS_UNIQUE, IS_ORDERED);\r\n\t\taddEParameter(op, this.getFeature(), \"feature\", 0, 1, IS_UNIQUE,\r\n\t\t\t\tIS_ORDERED);\r\n\r\n\t\tinitEClass(libraryEClass, Library.class, \"Library\", !IS_ABSTRACT,\r\n\t\t\t\t!IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\r\n\r\n\t\tinitEClass(componentEClass, Component.class, \"Component\", IS_ABSTRACT,\r\n\t\t\t\t!IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\r\n\t\tinitEAttribute(getComponent_Name(), ecorePackage.getEString(), \"name\",\r\n\t\t\t\tnull, 0, 1, Component.class, !IS_TRANSIENT, !IS_VOLATILE,\r\n\t\t\t\tIS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED,\r\n\t\t\t\tIS_ORDERED);\r\n\t\tinitEReference(getComponent_IntentFilters(), this.getIntentFilter(),\r\n\t\t\t\tnull, \"intentFilters\", null, 0, -1, Component.class,\r\n\t\t\t\t!IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE,\r\n\t\t\t\tIS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED,\r\n\t\t\t\tIS_ORDERED);\r\n\r\n\t\top = initEOperation(\r\n\t\t\t\tgetComponent__ComponentAddedTo__AndroidApplication(), null,\r\n\t\t\t\t\"componentAddedTo\", 0, 1, IS_UNIQUE, IS_ORDERED);\r\n\t\taddEParameter(op, this.getAndroidApplication(), \"app\", 0, 1, IS_UNIQUE,\r\n\t\t\t\tIS_ORDERED);\r\n\r\n\t\tinitEOperation(getComponent__GetXMLTag(), ecorePackage.getEString(),\r\n\t\t\t\t\"getXMLTag\", 0, 1, IS_UNIQUE, IS_ORDERED);\r\n\r\n\t\tinitEOperation(getComponent__GetTemplate(),\r\n\t\t\t\tthis.getComponentTemplate(), \"getTemplate\", 1, 1, IS_UNIQUE,\r\n\t\t\t\tIS_ORDERED);\r\n\r\n\t\tinitEClass(permissionEClass, Permission.class, \"Permission\",\r\n\t\t\t\t!IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\r\n\t\tinitEAttribute(getPermission_Name(), ecorePackage.getEString(), \"name\",\r\n\t\t\t\tnull, 0, 1, Permission.class, !IS_TRANSIENT, !IS_VOLATILE,\r\n\t\t\t\tIS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED,\r\n\t\t\t\tIS_ORDERED);\r\n\t\tinitEAttribute(getPermission_ProtectionLevel(),\r\n\t\t\t\tecorePackage.getEString(), \"protectionLevel\", null, 0, 1,\r\n\t\t\t\tPermission.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE,\r\n\t\t\t\t!IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\r\n\t\tinitEClass(serviceEClass, Service.class, \"Service\", !IS_ABSTRACT,\r\n\t\t\t\t!IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\r\n\r\n\t\tinitEClass(activityEClass, Activity.class, \"Activity\", !IS_ABSTRACT,\r\n\t\t\t\t!IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\r\n\r\n\t\tinitEClass(broadcastReceiverEClass, BroadcastReceiver.class,\r\n\t\t\t\t\"BroadcastReceiver\", !IS_ABSTRACT, !IS_INTERFACE,\r\n\t\t\t\tIS_GENERATED_INSTANCE_CLASS);\r\n\r\n\t\tinitEClass(intentFilterEClass, IntentFilter.class, \"IntentFilter\",\r\n\t\t\t\t!IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\r\n\t\tinitEReference(getIntentFilter_Categories(), this.getIntentCategory(),\r\n\t\t\t\tnull, \"categories\", null, 0, -1, IntentFilter.class,\r\n\t\t\t\t!IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE,\r\n\t\t\t\tIS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED,\r\n\t\t\t\tIS_ORDERED);\r\n\t\tinitEReference(getIntentFilter_Actions(), this.getIntentAction(), null,\r\n\t\t\t\t\"actions\", null, 0, -1, IntentFilter.class, !IS_TRANSIENT,\r\n\t\t\t\t!IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES,\r\n\t\t\t\t!IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\t\tinitEReference(getIntentFilter_Datas(), this.getIntentData(), null,\r\n\t\t\t\t\"datas\", null, 0, -1, IntentFilter.class, !IS_TRANSIENT,\r\n\t\t\t\t!IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES,\r\n\t\t\t\t!IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\r\n\t\tinitEClass(intentCategoryEClass, IntentCategory.class,\r\n\t\t\t\t\"IntentCategory\", !IS_ABSTRACT, !IS_INTERFACE,\r\n\t\t\t\tIS_GENERATED_INSTANCE_CLASS);\r\n\t\tinitEAttribute(getIntentCategory_Name(), ecorePackage.getEString(),\r\n\t\t\t\t\"name\", null, 0, 1, IntentCategory.class, !IS_TRANSIENT,\r\n\t\t\t\t!IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE,\r\n\t\t\t\t!IS_DERIVED, IS_ORDERED);\r\n\r\n\t\tinitEClass(intentActionEClass, IntentAction.class, \"IntentAction\",\r\n\t\t\t\t!IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\r\n\t\tinitEAttribute(getIntentAction_Name(), ecorePackage.getEString(),\r\n\t\t\t\t\"name\", null, 0, 1, IntentAction.class, !IS_TRANSIENT,\r\n\t\t\t\t!IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE,\r\n\t\t\t\t!IS_DERIVED, IS_ORDERED);\r\n\r\n\t\tinitEClass(intentDataEClass, IntentData.class, \"IntentData\",\r\n\t\t\t\t!IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\r\n\t\tinitEAttribute(getIntentData_Name(), ecorePackage.getEString(), \"name\",\r\n\t\t\t\tnull, 0, 1, IntentData.class, !IS_TRANSIENT, !IS_VOLATILE,\r\n\t\t\t\tIS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED,\r\n\t\t\t\tIS_ORDERED);\r\n\r\n\t\tinitEClass(modelEClass, Model.class, \"Model\", !IS_ABSTRACT,\r\n\t\t\t\t!IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\r\n\t\tinitEReference(getModel_AndroidApps(), this.getAndroidApplication(),\r\n\t\t\t\tnull, \"androidApps\", null, 0, -1, Model.class, !IS_TRANSIENT,\r\n\t\t\t\t!IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES,\r\n\t\t\t\t!IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\t\tinitEReference(getModel_JavaApps(), this.getJavaApplication(), null,\r\n\t\t\t\t\"javaApps\", null, 0, -1, Model.class, !IS_TRANSIENT,\r\n\t\t\t\t!IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES,\r\n\t\t\t\t!IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\r\n\t\tinitEClass(metadataEClass, Metadata.class, \"Metadata\", !IS_ABSTRACT,\r\n\t\t\t\t!IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\r\n\t\tinitEAttribute(getMetadata_Name(), ecorePackage.getEString(), \"name\",\r\n\t\t\t\tnull, 0, 1, Metadata.class, !IS_TRANSIENT, !IS_VOLATILE,\r\n\t\t\t\tIS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED,\r\n\t\t\t\tIS_ORDERED);\r\n\t\tinitEAttribute(getMetadata_Value(), ecorePackage.getEString(), \"value\",\r\n\t\t\t\tnull, 0, 1, Metadata.class, !IS_TRANSIENT, !IS_VOLATILE,\r\n\t\t\t\tIS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED,\r\n\t\t\t\tIS_ORDERED);\r\n\r\n\t\tinitEClass(gcmIntentServiceEClass, GCMIntentService.class,\r\n\t\t\t\t\"GCMIntentService\", !IS_ABSTRACT, !IS_INTERFACE,\r\n\t\t\t\tIS_GENERATED_INSTANCE_CLASS);\r\n\r\n\t\tinitEClass(gcmBroadcastReceiverEClass, GCMBroadcastReceiver.class,\r\n\t\t\t\t\"GCMBroadcastReceiver\", !IS_ABSTRACT, !IS_INTERFACE,\r\n\t\t\t\tIS_GENERATED_INSTANCE_CLASS);\r\n\t\tinitEReference(getGCMBroadcastReceiver_StartIntentService(),\r\n\t\t\t\tthis.getGCMIntentService(), null, \"startIntentService\", null,\r\n\t\t\t\t0, 1, GCMBroadcastReceiver.class, !IS_TRANSIENT, !IS_VOLATILE,\r\n\t\t\t\tIS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES,\r\n\t\t\t\t!IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\r\n\t\tinitEClass(gcmActivityEClass, GCMActivity.class, \"GCMActivity\",\r\n\t\t\t\t!IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\r\n\r\n\t\tinitEClass(featureEClass, Feature.class, \"Feature\", IS_ABSTRACT,\r\n\t\t\t\t!IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\r\n\t\tinitEAttribute(getFeature_Name(), ecorePackage.getEString(), \"name\",\r\n\t\t\t\tnull, 0, 1, Feature.class, !IS_TRANSIENT, !IS_VOLATILE,\r\n\t\t\t\tIS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED,\r\n\t\t\t\tIS_ORDERED);\r\n\r\n\t\top = initEOperation(getFeature__ComponentAddedTo__AndroidApplication(),\r\n\t\t\t\tnull, \"componentAddedTo\", 0, 1, IS_UNIQUE, IS_ORDERED);\r\n\t\taddEParameter(op, this.getAndroidApplication(), \"app\", 0, 1, IS_UNIQUE,\r\n\t\t\t\tIS_ORDERED);\r\n\r\n\t\tinitEOperation(getFeature__GetTemplate(), this.getFeatureTemplate(),\r\n\t\t\t\t\"getTemplate\", 1, 1, IS_UNIQUE, IS_ORDERED);\r\n\r\n\t\tinitEClass(topicManagerEClass, TopicManager.class, \"TopicManager\",\r\n\t\t\t\t!IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\r\n\r\n\t\tinitEClass(javaApplicationEClass, JavaApplication.class,\r\n\t\t\t\t\"JavaApplication\", !IS_ABSTRACT, !IS_INTERFACE,\r\n\t\t\t\tIS_GENERATED_INSTANCE_CLASS);\r\n\t\tinitEAttribute(getJavaApplication_Name(), ecorePackage.getEString(),\r\n\t\t\t\t\"name\", null, 0, 1, JavaApplication.class, !IS_TRANSIENT,\r\n\t\t\t\t!IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE,\r\n\t\t\t\t!IS_DERIVED, IS_ORDERED);\r\n\t\tinitEAttribute(getJavaApplication_JavaName(),\r\n\t\t\t\tecorePackage.getEString(), \"javaName\", null, 0, 1,\r\n\t\t\t\tJavaApplication.class, !IS_TRANSIENT, !IS_VOLATILE,\r\n\t\t\t\tIS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED,\r\n\t\t\t\tIS_ORDERED);\r\n\t\tinitEReference(getJavaApplication_Components(),\r\n\t\t\t\tthis.getJavaComponent(), null, \"components\", null, 0, -1,\r\n\t\t\t\tJavaApplication.class, !IS_TRANSIENT, !IS_VOLATILE,\r\n\t\t\t\tIS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES,\r\n\t\t\t\t!IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\t\tinitEAttribute(getJavaApplication_MinSDK(), ecorePackage.getEInt(),\r\n\t\t\t\t\"minSDK\", null, 0, 1, JavaApplication.class, !IS_TRANSIENT,\r\n\t\t\t\t!IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE,\r\n\t\t\t\t!IS_DERIVED, IS_ORDERED);\r\n\t\tinitEAttribute(getJavaApplication_TargetSDK(), ecorePackage.getEInt(),\r\n\t\t\t\t\"targetSDK\", null, 0, 1, JavaApplication.class, !IS_TRANSIENT,\r\n\t\t\t\t!IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE,\r\n\t\t\t\t!IS_DERIVED, IS_ORDERED);\r\n\r\n\t\top = initEOperation(\r\n\t\t\t\tgetJavaApplication__AddJavaComponent__JavaComponent(), null,\r\n\t\t\t\t\"addJavaComponent\", 0, 1, IS_UNIQUE, IS_ORDERED);\r\n\t\taddEParameter(op, this.getJavaComponent(), \"jcomponent\", 0, 1,\r\n\t\t\t\tIS_UNIQUE, IS_ORDERED);\r\n\r\n\t\top = initEOperation(getJavaApplication__DependsOn__Library(), null,\r\n\t\t\t\t\"dependsOn\", 0, 1, IS_UNIQUE, IS_ORDERED);\r\n\t\taddEParameter(op, this.getLibrary(), \"library\", 0, 1, IS_UNIQUE,\r\n\t\t\t\tIS_ORDERED);\r\n\r\n\t\tinitEClass(javaComponentEClass, JavaComponent.class, \"JavaComponent\",\r\n\t\t\t\tIS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\r\n\t\tinitEAttribute(getJavaComponent_Name(), ecorePackage.getEString(),\r\n\t\t\t\t\"name\", null, 0, 1, JavaComponent.class, !IS_TRANSIENT,\r\n\t\t\t\t!IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE,\r\n\t\t\t\t!IS_DERIVED, IS_ORDERED);\r\n\r\n\t\top = initEOperation(\r\n\t\t\t\tgetJavaComponent__ComponentAddedTo__JavaApplication(), null,\r\n\t\t\t\t\"componentAddedTo\", 0, 1, IS_UNIQUE, IS_ORDERED);\r\n\t\taddEParameter(op, this.getJavaApplication(), \"app\", 0, 1, IS_UNIQUE,\r\n\t\t\t\tIS_ORDERED);\r\n\r\n\t\tinitEOperation(getJavaComponent__GetTemplate(),\r\n\t\t\t\tthis.getJavaComponentTemplate(), \"getTemplate\", 1, 1,\r\n\t\t\t\tIS_UNIQUE, IS_ORDERED);\r\n\r\n\t\tinitEClass(gcmGroupManagerEClass, GCMGroupManager.class,\r\n\t\t\t\t\"GCMGroupManager\", !IS_ABSTRACT, !IS_INTERFACE,\r\n\t\t\t\tIS_GENERATED_INSTANCE_CLASS);\r\n\r\n\t\tinitEClass(gcmMessageManagerEClass, GCMMessageManager.class,\r\n\t\t\t\t\"GCMMessageManager\", !IS_ABSTRACT, !IS_INTERFACE,\r\n\t\t\t\tIS_GENERATED_INSTANCE_CLASS);\r\n\r\n\t\t// Initialize data types\r\n\t\tinitEDataType(componentTemplateEDataType, ComponentTemplate.class,\r\n\t\t\t\t\"ComponentTemplate\", IS_SERIALIZABLE,\r\n\t\t\t\t!IS_GENERATED_INSTANCE_CLASS);\r\n\t\tinitEDataType(featureTemplateEDataType, FeatureTemplate.class,\r\n\t\t\t\t\"FeatureTemplate\", IS_SERIALIZABLE,\r\n\t\t\t\t!IS_GENERATED_INSTANCE_CLASS);\r\n\t\tinitEDataType(javaComponentTemplateEDataType,\r\n\t\t\t\tJavaComponentTemplate.class, \"JavaComponentTemplate\",\r\n\t\t\t\tIS_SERIALIZABLE, !IS_GENERATED_INSTANCE_CLASS);\r\n\r\n\t\t// Create resource\r\n\t\tcreateResource(eNS_URI);\r\n\t}", "title": "" }, { "docid": "6323db86fffb82039110f0b0cf331200", "score": "0.5871977", "text": "public void initializePackageContents() {\n if (isInitialized)\n return;\n isInitialized = true;\n\n // Initialize package\n setName(eNAME);\n setNsPrefix(eNS_PREFIX);\n setNsURI(eNS_URI);\n\n // Obtain other dependent packages\n COREPackage theCOREPackage = (COREPackage) EPackage.Registry.INSTANCE.getEPackage(COREPackage.eNS_URI);\n XMLTypePackage theXMLTypePackage = (XMLTypePackage) EPackage.Registry.INSTANCE.getEPackage(XMLTypePackage.eNS_URI);\n\n // Create type parameters\n\n // Set bounds for type parameters\n\n // Add supertypes to classes\n bpsRootEClass.getESuperTypes().add(theCOREPackage.getAbstractRootElement());\n bpsStateCombinationOptionEClass.getESuperTypes().add(this.getBPSOption());\n bpsnSwitchOptionEClass.getESuperTypes().add(this.getBPSOption());\n bpsPathCombinationOptionEClass.getESuperTypes().add(this.getBPSOption());\n bpsInstanceArcEClass.getESuperTypes().add(this.getBPSInstanceElement());\n bpsInstanceStateMachineEClass.getESuperTypes().add(this.getBPSInstanceElement());\n bpsInstanceStateMachineEClass.getESuperTypes().add(this.getBPSEnablement());\n bpsInstanceStateEClass.getESuperTypes().add(this.getBPSInstanceElement());\n bpsInstanceStateEClass.getESuperTypes().add(this.getBPSEnablement());\n bpsInstanceTransitionEClass.getESuperTypes().add(this.getBPSInstanceElement());\n bpsInstanceTransitionEClass.getESuperTypes().add(this.getBPSEnablement());\n\n // Initialize classes, features, and operations; add parameters\n initEClass(bpsRootEClass, BPSRoot.class, \"BPSRoot\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEAttribute(getBPSRoot_ActiveOptionIndex(), ecorePackage.getEInt(), \"activeOptionIndex\", null, 1, 1, BPSRoot.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE,\n !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEReference(getBPSRoot_Options(), this.getBPSOption(), null, \"options\", null, 1, -1, BPSRoot.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE,\n !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEReference(getBPSRoot_InstanceArc(), this.getBPSInstanceArc(), null, \"instanceArc\", null, 0, 1, BPSRoot.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE,\n !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEOperation(getBPSRoot__GetActiveOption(), this.getBPSOption(), \"getActiveOption\", 1, 1, IS_UNIQUE, IS_ORDERED);\n\n initEClass(bpsOptionEClass, BPSOption.class, \"BPSOption\", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEAttribute(getBPSOption_TargetStateMachines(), ecorePackage.getEString(), \"targetStateMachines\", null, 1, -1, BPSOption.class, !IS_TRANSIENT, !IS_VOLATILE,\n IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(bpsStateCombinationOptionEClass, BPSStateCombinationOption.class, \"BPSStateCombinationOption\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\n initEClass(bpsnSwitchOptionEClass, BPSNSwitchOption.class, \"BPSNSwitchOption\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEAttribute(getBPSNSwitchOption_TSMFileId(), ecorePackage.getEString(), \"TSMFileId\", \"\", 1, 1, BPSNSwitchOption.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE,\n !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEAttribute(getBPSNSwitchOption_NSwitch(), ecorePackage.getEInt(), \"nSwitch\", null, 1, 1, BPSNSwitchOption.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE,\n !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(bpsPathCombinationOptionEClass, BPSPathCombinationOption.class, \"BPSPathCombinationOption\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEAttribute(getBPSPathCombinationOption_PathLength(), ecorePackage.getEInt(), \"pathLength\", null, 1, 1, BPSPathCombinationOption.class, !IS_TRANSIENT, !IS_VOLATILE,\n IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(bpsEnablementEClass, BPSEnablement.class, \"BPSEnablement\", IS_ABSTRACT, IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEAttribute(getBPSEnablement_Enabled(), ecorePackage.getEBoolean(), \"enabled\", \"true\", 0, 1, BPSEnablement.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE,\n !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(bpsVariableEClass, BPSVariable.class, \"BPSVariable\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEAttribute(getBPSVariable_Name(), theXMLTypePackage.getString(), \"name\", null, 0, 1, BPSVariable.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE,\n !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEAttribute(getBPSVariable_Type(), theXMLTypePackage.getString(), \"type\", null, 0, 1, BPSVariable.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE,\n !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(bpsDataflowEClass, BPSDataflow.class, \"BPSDataflow\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEReference(getBPSDataflow_Source(), this.getBPSInstanceStateMachine(), null, \"source\", null, 0, 1, BPSDataflow.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE,\n !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEReference(getBPSDataflow_Target(), this.getBPSVariable(), null, \"target\", null, 0, 1, BPSDataflow.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE,\n IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(bpsInstanceElementEClass, BPSInstanceElement.class, \"BPSInstanceElement\", IS_ABSTRACT, IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\n initEClass(bpsInstanceArcEClass, BPSInstanceArc.class, \"BPSInstanceArc\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEAttribute(getBPSInstanceArc_OriginalUuid(), ecorePackage.getEString(), \"originalUuid\", null, 0, 1, BPSInstanceArc.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE,\n !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEReference(getBPSInstanceArc_StateMachines(), this.getBPSInstanceStateMachine(), null, \"stateMachines\", null, 0, -1, BPSInstanceArc.class, !IS_TRANSIENT, !IS_VOLATILE,\n IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEReference(getBPSInstanceArc_Dataflows(), this.getBPSDataflow(), null, \"dataflows\", null, 0, -1, BPSInstanceArc.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE,\n IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(bpsInstanceStateMachineEClass, BPSInstanceStateMachine.class, \"BPSInstanceStateMachine\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEAttribute(getBPSInstanceStateMachine_OriginalName(), ecorePackage.getEString(), \"originalName\", null, 0, 1, BPSInstanceStateMachine.class, !IS_TRANSIENT, !IS_VOLATILE,\n IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEAttribute(getBPSInstanceStateMachine_OriginalUuid(), ecorePackage.getEString(), \"originalUuid\", null, 0, 1, BPSInstanceStateMachine.class, !IS_TRANSIENT, !IS_VOLATILE,\n IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEAttribute(getBPSInstanceStateMachine_EvalPriority(), ecorePackage.getEInt(), \"evalPriority\", null, 1, 1, BPSInstanceStateMachine.class, !IS_TRANSIENT, !IS_VOLATILE,\n IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEReference(getBPSInstanceStateMachine_InitialState(), this.getBPSInstanceState(), null, \"initialState\", null, 0, 1, BPSInstanceStateMachine.class, !IS_TRANSIENT,\n !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEReference(getBPSInstanceStateMachine_States(), this.getBPSInstanceState(), null, \"states\", null, 0, -1, BPSInstanceStateMachine.class, !IS_TRANSIENT, !IS_VOLATILE,\n IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEReference(getBPSInstanceStateMachine_Variables(), this.getBPSVariable(), null, \"variables\", null, 0, -1, BPSInstanceStateMachine.class, !IS_TRANSIENT, !IS_VOLATILE,\n IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(bpsInstanceStateEClass, BPSInstanceState.class, \"BPSInstanceState\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEAttribute(getBPSInstanceState_OriginalName(), ecorePackage.getEString(), \"originalName\", null, 0, 1, BPSInstanceState.class, !IS_TRANSIENT, !IS_VOLATILE,\n IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEAttribute(getBPSInstanceState_Type(), this.getBPSInstancePseudoStateType(), \"type\", \"NONE\", 0, 1, BPSInstanceState.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE,\n !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEReference(getBPSInstanceState_Transitions(), this.getBPSInstanceTransition(), null, \"transitions\", null, 0, -1, BPSInstanceState.class, !IS_TRANSIENT, !IS_VOLATILE,\n IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(bpsInstanceTransitionEClass, BPSInstanceTransition.class, \"BPSInstanceTransition\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEAttribute(getBPSInstanceTransition_Priority(), ecorePackage.getEInt(), \"priority\", null, 0, 1, BPSInstanceTransition.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE,\n !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEAttribute(getBPSInstanceTransition_Trigger(), theXMLTypePackage.getString(), \"trigger\", null, 0, 1, BPSInstanceTransition.class, !IS_TRANSIENT, !IS_VOLATILE,\n IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEAttribute(getBPSInstanceTransition_Event(), theXMLTypePackage.getString(), \"event\", null, 0, 1, BPSInstanceTransition.class, !IS_TRANSIENT, !IS_VOLATILE,\n IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEAttribute(getBPSInstanceTransition_Condition(), theXMLTypePackage.getString(), \"condition\", null, 0, 1, BPSInstanceTransition.class, !IS_TRANSIENT, !IS_VOLATILE,\n IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEAttribute(getBPSInstanceTransition_Action(), theXMLTypePackage.getString(), \"action\", null, 0, 1, BPSInstanceTransition.class, !IS_TRANSIENT, !IS_VOLATILE,\n IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEReference(getBPSInstanceTransition_Source(), this.getBPSInstanceState(), null, \"source\", null, 0, 1, BPSInstanceTransition.class, !IS_TRANSIENT, !IS_VOLATILE,\n IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEReference(getBPSInstanceTransition_Target(), this.getBPSInstanceState(), null, \"target\", null, 0, 1, BPSInstanceTransition.class, !IS_TRANSIENT, !IS_VOLATILE,\n IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n // Initialize enums and add enum literals\n initEEnum(bpsInstancePseudoStateTypeEEnum, BPSInstancePseudoStateType.class, \"BPSInstancePseudoStateType\");\n addEEnumLiteral(bpsInstancePseudoStateTypeEEnum, BPSInstancePseudoStateType.JOIN);\n addEEnumLiteral(bpsInstancePseudoStateTypeEEnum, BPSInstancePseudoStateType.FORK);\n addEEnumLiteral(bpsInstancePseudoStateTypeEEnum, BPSInstancePseudoStateType.JUNCTION);\n addEEnumLiteral(bpsInstancePseudoStateTypeEEnum, BPSInstancePseudoStateType.CHOICE);\n addEEnumLiteral(bpsInstancePseudoStateTypeEEnum, BPSInstancePseudoStateType.ENTRY_POINT);\n addEEnumLiteral(bpsInstancePseudoStateTypeEEnum, BPSInstancePseudoStateType.EXIT_POINT);\n addEEnumLiteral(bpsInstancePseudoStateTypeEEnum, BPSInstancePseudoStateType.TERMINATE);\n addEEnumLiteral(bpsInstancePseudoStateTypeEEnum, BPSInstancePseudoStateType.INITIAL);\n addEEnumLiteral(bpsInstancePseudoStateTypeEEnum, BPSInstancePseudoStateType.FINAL);\n addEEnumLiteral(bpsInstancePseudoStateTypeEEnum, BPSInstancePseudoStateType.DEEP_HISTORY);\n addEEnumLiteral(bpsInstancePseudoStateTypeEEnum, BPSInstancePseudoStateType.SHALLOW_HISTORY);\n addEEnumLiteral(bpsInstancePseudoStateTypeEEnum, BPSInstancePseudoStateType.NONE);\n\n // Create resource\n createResource(eNS_URI);\n }", "title": "" }, { "docid": "f75799a52e35f3a0a873b96544a020cf", "score": "0.5855099", "text": "public void initializePackageContents() {\n\t\tif (isInitialized) return;\n\t\tisInitialized = true;\n\n\t\t// Initialize package\n\t\tsetName(eNAME);\n\t\tsetNsPrefix(eNS_PREFIX);\n\t\tsetNsURI(eNS_URI);\n\n\t\t// Obtain other dependent packages\n\t\tEefnrPackage theEefnrPackage = (EefnrPackage)EPackage.Registry.INSTANCE.getEPackage(EefnrPackage.eNS_URI);\n\n\t\t// Create type parameters\n\n\t\t// Set bounds for type parameters\n\n\t\t// Add supertypes to classes\n\t\tabstractReferenceOwnerSampleEClass.getESuperTypes().add(theEefnrPackage.getAbstractSample());\n\t\tabstractReferenceTargetSampleEClass.getESuperTypes().add(theEefnrPackage.getAbstractSample());\n\t\tconcreteReferenceOwnerSampleEClass.getESuperTypes().add(this.getAbstractReferenceOwnerSample());\n\t\tconcreteReferenceTargetSample1EClass.getESuperTypes().add(this.getAbstractReferenceTargetSample());\n\t\tconcreteReferenceTargetSample2EClass.getESuperTypes().add(this.getAbstractReferenceTargetSample());\n\n\t\t// Initialize classes and features; add operations and parameters\n\t\tinitEClass(abstractReferenceOwnerSampleEClass, AbstractReferenceOwnerSample.class, \"AbstractReferenceOwnerSample\", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getAbstractReferenceOwnerSample_AbstractTarget(), this.getAbstractReferenceTargetSample(), null, \"abstractTarget\", null, 0, -1, AbstractReferenceOwnerSample.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(abstractReferenceTargetSampleEClass, AbstractReferenceTargetSample.class, \"AbstractReferenceTargetSample\", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\n\t\tinitEClass(concreteReferenceOwnerSampleEClass, ConcreteReferenceOwnerSample.class, \"ConcreteReferenceOwnerSample\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getConcreteReferenceOwnerSample_Target(), this.getConcreteReferenceTargetSample1(), null, \"target\", null, 0, -1, ConcreteReferenceOwnerSample.class, IS_TRANSIENT, IS_VOLATILE, !IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getConcreteReferenceOwnerSample_StrictTyping(), this.getAbstractReferenceTargetSample(), null, \"strictTyping\", null, 0, -1, ConcreteReferenceOwnerSample.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(concreteReferenceTargetSample1EClass, ConcreteReferenceTargetSample1.class, \"ConcreteReferenceTargetSample1\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\n\t\tinitEClass(concreteReferenceTargetSample2EClass, ConcreteReferenceTargetSample2.class, \"ConcreteReferenceTargetSample2\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t}", "title": "" }, { "docid": "a3a81cc4ef842d8d9e169ea3687c5f2b", "score": "0.5825676", "text": "public void initializePackageContents() {\n\t\tif (isInitialized) return;\n\t\tisInitialized = true;\n\n\t\t// Initialize package\n\t\tsetName(eNAME);\n\t\tsetNsPrefix(eNS_PREFIX);\n\t\tsetNsURI(eNS_URI);\n\n\t\t// Create type parameters\n\n\t\t// Set bounds for type parameters\n\n\t\t// Add supertypes to classes\n\t\toutputEClass.getESuperTypes().add(this.getWidget());\n\t\ttext_OutputEClass.getESuperTypes().add(this.getOutput());\n\t\timageEClass.getESuperTypes().add(this.getOutput());\n\t\tinputEClass.getESuperTypes().add(this.getWidget());\n\t\ttext_InputEClass.getESuperTypes().add(this.getInput());\n\t\tcomboBoxEClass.getESuperTypes().add(this.getInput());\n\t\tradioGroupEClass.getESuperTypes().add(this.getInput());\n\t\tbuttonEClass.getESuperTypes().add(this.getInput());\n\t\timageButtonEClass.getESuperTypes().add(this.getInput());\n\n\t\t// Initialize classes and features; add operations and parameters\n\t\tinitEClass(applicationEClass, Application.class, \"Application\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getApplication_NomeProjeto(), ecorePackage.getEString(), \"nomeProjeto\", \"MyProject\", 0, 1, Application.class, !IS_TRANSIENT, IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getApplication_Windows(), this.getWindow(), null, \"windows\", null, 1, -1, Application.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(windowEClass, Window.class, \"Window\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getWindow_Id(), ecorePackage.getEString(), \"id\", null, 0, 1, Window.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getWindow_IsLaucher(), ecorePackage.getEBoolean(), \"isLaucher\", \"true\", 0, 1, Window.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getWindow_Widgets(), this.getWidget(), null, \"widgets\", null, 0, -1, Window.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(outputEClass, Output.class, \"Output\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\n\t\tinitEClass(widgetEClass, Widget.class, \"Widget\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getWidget_Id(), ecorePackage.getEString(), \"id\", null, 0, 1, Widget.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getWidget_MarginTop(), ecorePackage.getEInt(), \"marginTop\", null, 0, 1, Widget.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getWidget_MarginBottom(), ecorePackage.getEInt(), \"marginBottom\", null, 0, 1, Widget.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getWidget_MarginLeft(), ecorePackage.getEInt(), \"marginLeft\", null, 0, 1, Widget.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getWidget_MarginRight(), ecorePackage.getEInt(), \"MarginRight\", null, 0, 1, Widget.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getWidget_Width(), ecorePackage.getEInt(), \"width\", null, 0, 1, Widget.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getWidget_Height(), ecorePackage.getEInt(), \"height\", null, 0, 1, Widget.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getWidget_ContentDescription(), ecorePackage.getEString(), \"contentDescription\", null, 0, 1, Widget.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(text_OutputEClass, Text_Output.class, \"Text_Output\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getText_Output_Text(), ecorePackage.getEString(), \"text\", null, 0, 1, Text_Output.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(imageEClass, Image.class, \"Image\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getImage_ImagePath(), ecorePackage.getEString(), \"imagePath\", null, 0, 1, Image.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(inputEClass, Input.class, \"Input\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\n\t\tinitEClass(text_InputEClass, Text_Input.class, \"Text_Input\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getText_Input_Text(), ecorePackage.getEString(), \"text\", null, 0, 1, Text_Input.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getText_Input_Type(), ecorePackage.getEString(), \"type\", null, 0, 1, Text_Input.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(comboBoxEClass, ComboBox.class, \"ComboBox\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getComboBox_Text(), ecorePackage.getEString(), \"text\", null, 0, 1, ComboBox.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(radioGroupEClass, RadioGroup.class, \"RadioGroup\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getRadioGroup_RadioButtons(), this.getRadioButton(), null, \"radioButtons\", null, 0, -1, RadioGroup.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(radioButtonEClass, RadioButton.class, \"RadioButton\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getRadioButton_Id(), ecorePackage.getEString(), \"id\", null, 0, 1, RadioButton.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getRadioButton_Text(), ecorePackage.getEString(), \"text\", null, 0, 1, RadioButton.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getRadioButton_ContentDescription(), ecorePackage.getEString(), \"contentDescription\", null, 0, 1, RadioButton.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(buttonEClass, Button.class, \"Button\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getButton_Text(), ecorePackage.getEString(), \"text\", null, 0, 1, Button.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(imageButtonEClass, ImageButton.class, \"ImageButton\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getImageButton_ImagePath(), ecorePackage.getEString(), \"imagePath\", null, 0, 1, ImageButton.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\t// Create resource\n\t\tcreateResource(eNS_URI);\n\n\t\t// Create annotations\n\t\t// gmf.diagram\n\t\tcreateGmfAnnotations();\n\t\t// gmf.node\n\t\tcreateGmf_1Annotations();\n\t}", "title": "" }, { "docid": "24007f61f950955440c8300815f2e122", "score": "0.5808293", "text": "public void initializePackageContents() {\n\t\tif (isInitialized) return;\n\t\tisInitialized = true;\n\n\t\t// Initialize package\n\t\tsetName(eNAME);\n\t\tsetNsPrefix(eNS_PREFIX);\n\t\tsetNsURI(eNS_URI);\n\n\t\t// Obtain other dependent packages\n\t\tQOperatingSystemTypePackage theOperatingSystemTypePackage = (QOperatingSystemTypePackage)EPackage.Registry.INSTANCE.getEPackage(QOperatingSystemTypePackage.eNS_URI);\n\n\t\t// Create type parameters\n\n\t\t// Set bounds for type parameters\n\n\t\t// Add supertypes to classes\n\t\tuserSpaceEClass.getESuperTypes().add(theOperatingSystemTypePackage.getTypedObject());\n\n\t\t// Initialize classes and features; add operations and parameters\n\t\tinitEClass(userSpaceEClass, QUserSpace.class, \"UserSpace\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getUserSpace_Attribute(), ecorePackage.getEString(), \"attribute\", null, 0, 1, QUserSpace.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getUserSpace_Header(), ecorePackage.getEString(), \"header\", null, 0, 1, QUserSpace.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getUserSpace_Content(), ecorePackage.getEString(), \"content\", null, 0, 1, QUserSpace.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getUserSpace_ContentArray(), ecorePackage.getEByteArray(), \"contentArray\", null, 0, 1, QUserSpace.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(userSpaceManagerEClass, QUserSpaceManager.class, \"UserSpaceManager\", IS_ABSTRACT, IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\n\t\t// Create resource\n\t\tcreateResource(eNS_URI);\n\t}", "title": "" }, { "docid": "47c39263759d2caae5fa39fc05962127", "score": "0.57966614", "text": "public void initializePackageContents()\r\n {\r\n if (isInitialized) return;\r\n isInitialized = true;\r\n\r\n // Initialize package\r\n setName(eNAME);\r\n setNsPrefix(eNS_PREFIX);\r\n setNsURI(eNS_URI);\r\n\r\n // Create type parameters\r\n\r\n // Set bounds for type parameters\r\n\r\n // Add supertypes to classes\r\n textualEClass.getESuperTypes().add(this.getSimpleContent());\r\n frameEClass.getESuperTypes().add(this.getSimpleContent());\r\n labEClass.getESuperTypes().add(this.getFrame());\r\n gbEClass.getESuperTypes().add(this.getFrame());\r\n rjbEClass.getESuperTypes().add(this.getFrame());\r\n\r\n // Initialize classes and features; add operations and parameters\r\n initEClass(documentEClass, Document.class, \"Document\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\r\n initEReference(getDocument_Paper(), this.getPaper(), null, \"paper\", null, 0, 1, Document.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n initEReference(getDocument_Contents(), this.getContent(), null, \"contents\", null, 0, -1, Document.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\r\n initEClass(paperEClass, Paper.class, \"Paper\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\r\n initEAttribute(getPaper_Width(), ecorePackage.getEInt(), \"width\", null, 0, 1, Paper.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n initEAttribute(getPaper_Folding(), ecorePackage.getEBoolean(), \"folding\", null, 0, 1, Paper.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\r\n initEClass(contentEClass, Content.class, \"Content\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\r\n initEReference(getContent_Vs(), this.getVS(), null, \"vs\", null, 0, 1, Content.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n initEReference(getContent_Hs(), this.getHS(), null, \"hs\", null, 0, 1, Content.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n initEReference(getContent_SimpleContent(), this.getSimpleContent(), null, \"simpleContent\", null, 0, 1, Content.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\r\n initEClass(simpleContentEClass, SimpleContent.class, \"SimpleContent\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\r\n\r\n initEClass(textualEClass, Textual.class, \"Textual\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\r\n initEAttribute(getTextual_Text(), ecorePackage.getEString(), \"text\", null, 0, 1, Textual.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\r\n initEClass(frameEClass, Frame.class, \"Frame\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\r\n initEReference(getFrame_Contents(), this.getContent(), null, \"contents\", null, 0, -1, Frame.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\r\n initEClass(vsEClass, org.xtext.ppd.ppd.VS.class, \"VS\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\r\n initEAttribute(getVS_Spc(), ecorePackage.getEInt(), \"spc\", null, 0, 1, org.xtext.ppd.ppd.VS.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n initEAttribute(getVS_More(), ecorePackage.getEBoolean(), \"more\", null, 0, 1, org.xtext.ppd.ppd.VS.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\r\n initEClass(hsEClass, org.xtext.ppd.ppd.HS.class, \"HS\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\r\n initEAttribute(getHS_Spc(), ecorePackage.getEInt(), \"spc\", null, 0, 1, org.xtext.ppd.ppd.HS.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n initEAttribute(getHS_More(), ecorePackage.getEBoolean(), \"more\", null, 0, 1, org.xtext.ppd.ppd.HS.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\r\n initEClass(labEClass, org.xtext.ppd.ppd.LAB.class, \"LAB\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\r\n\r\n initEClass(gbEClass, org.xtext.ppd.ppd.GB.class, \"GB\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\r\n initEAttribute(getGB_Columns(), ecorePackage.getEInt(), \"columns\", null, 0, 1, org.xtext.ppd.ppd.GB.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\r\n initEClass(rjbEClass, org.xtext.ppd.ppd.RJB.class, \"RJB\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\r\n\r\n // Create resource\r\n createResource(eNS_URI);\r\n }", "title": "" }, { "docid": "f27913d6d00b3fcf03badd6cb46d1ffa", "score": "0.57734567", "text": "public void initializePackageContents() {\r\n\t\tif (isInitialized) return;\r\n\t\tisInitialized = true;\r\n\r\n\t\t// Initialize package\r\n\t\tsetName(eNAME);\r\n\t\tsetNsPrefix(eNS_PREFIX);\r\n\t\tsetNsURI(eNS_URI);\r\n\r\n\t\t// Obtain other dependent packages\r\n\t\tCorePackage theCorePackage = (CorePackage)EPackage.Registry.INSTANCE.getEPackage(CorePackage.eNS_URI);\r\n\r\n\t\t// Create type parameters\r\n\r\n\t\t// Set bounds for type parameters\r\n\r\n\t\t// Add supertypes to classes\r\n\t\tsafiCallEClass.getESuperTypes().add(theCorePackage.getThreadSensitive());\r\n\t\tsafiCallEClass.getESuperTypes().add(theCorePackage.getPlatformDisposition());\r\n\t\tcallSource2EClass.getESuperTypes().add(this.getCallSource1());\r\n\t\tcallConsumer2EClass.getESuperTypes().add(this.getCallConsumer1());\r\n\r\n\t\t// Initialize classes and features; add operations and parameters\r\n\t\tinitEClass(safiCallEClass, SafiCall.class, \"SafiCall\", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\r\n\t\tinitEAttribute(getSafiCall_Uuid(), ecorePackage.getEString(), \"uuid\", null, 0, 1, SafiCall.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\t\tinitEAttribute(getSafiCall_Name(), ecorePackage.getEString(), \"name\", null, 0, 1, SafiCall.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\r\n\t\tinitEClass(callSource1EClass, CallSource1.class, \"CallSource1\", IS_ABSTRACT, IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\r\n\t\tinitEReference(getCallSource1_NewCall1(), this.getSafiCall(), null, \"newCall1\", null, 0, 1, CallSource1.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\r\n\t\tinitEClass(callSource2EClass, CallSource2.class, \"CallSource2\", IS_ABSTRACT, IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\r\n\t\tinitEReference(getCallSource2_NewCall2(), this.getSafiCall(), null, \"newCall2\", null, 0, 1, CallSource2.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\r\n\t\tinitEClass(callConsumer1EClass, CallConsumer1.class, \"CallConsumer1\", IS_ABSTRACT, IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\r\n\t\tinitEReference(getCallConsumer1_Call1(), this.getSafiCall(), null, \"call1\", null, 0, 1, CallConsumer1.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\r\n\t\tinitEClass(callConsumer2EClass, CallConsumer2.class, \"CallConsumer2\", IS_ABSTRACT, IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\r\n\t\tinitEReference(getCallConsumer2_Call2(), this.getSafiCall(), null, \"call2\", null, 0, 1, CallConsumer2.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\r\n\t\t// Create annotations\r\n\t\t// Directionality\r\n\t\tcreateDirectionalityAnnotations();\r\n\t\t// Required\r\n\t\tcreateRequiredAnnotations();\r\n\t}", "title": "" }, { "docid": "ab96c487f63927408af59e8ad512a3cb", "score": "0.5743387", "text": "public void initializePackageContents() {\n\t\tif (isInitialized) return;\n\t\tisInitialized = true;\n\n\t\t// Initialize package\n\t\tsetName(eNAME);\n\t\tsetNsPrefix(eNS_PREFIX);\n\t\tsetNsURI(eNS_URI);\n\n\t\t// Create type parameters\n\n\t\t// Set bounds for type parameters\n\n\t\t// Add supertypes to classes\n\t\twebModelEClass.getESuperTypes().add(this.getNamedElement());\n\t\twebElementEClass.getESuperTypes().add(this.getNamedElement());\n\t\tpageEClass.getESuperTypes().add(this.getWebElement());\n\t\tentityEClass.getESuperTypes().add(this.getWebElement());\n\n\t\t// Initialize classes, features, and operations; add parameters\n\t\tinitEClass(namedElementEClass, NamedElement.class, \"NamedElement\", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getNamedElement_Name(), ecorePackage.getEString(), \"name\", null, 0, 1, NamedElement.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(webModelEClass, WebModel.class, \"WebModel\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getWebModel_ModelElement(), this.getWebElement(), null, \"modelElement\", null, 0, -1, WebModel.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(webElementEClass, WebElement.class, \"WebElement\", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\n\t\tinitEClass(pageEClass, Page.class, \"Page\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getPage_Content(), ecorePackage.getEString(), \"content\", null, 0, 1, Page.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getPage_ComposedOf(), this.getForm(), null, \"composedOf\", null, 0, 1, Page.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(entityEClass, Entity.class, \"Entity\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getEntity_ShownBy(), this.getForm(), this.getForm_Data(), \"shownBy\", null, 0, 1, Entity.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(formEClass, Form.class, \"Form\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getForm_Type(), this.getFormType(), \"type\", null, 0, 1, Form.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getForm_Data(), this.getEntity(), this.getEntity_ShownBy(), \"data\", null, 0, 1, Form.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\t// Initialize enums and add enum literals\n\t\tinitEEnum(formTypeEEnum, FormType.class, \"FormType\");\n\t\taddEEnumLiteral(formTypeEEnum, FormType.MULTIPLE);\n\t\taddEEnumLiteral(formTypeEEnum, FormType.SINGLE);\n\n\t\t// Create resource\n\t\tcreateResource(eNS_URI);\n\t}", "title": "" }, { "docid": "4f99c5c38f0ac86fa610e2a4dc33938d", "score": "0.5725571", "text": "public void initialize() {\n if (isInitialized()) {\n return;\n }\n isInitialized = true;\n }", "title": "" }, { "docid": "14261dc1b04ee89762c5cdc14508493c", "score": "0.5701915", "text": "public void loadPackage() {\n\t\tif (isLoaded) return;\n\t\tisLoaded = true;\n\n\t\tURL url = getClass().getResource(packageFilename);\n\t\tif (url == null) {\n\t\t\tthrow new RuntimeException(\"Missing serialized package: \" + packageFilename);\n\t\t}\n\t\tURI uri = URI.createURI(url.toString());\n\t\tResource resource = new EcoreResourceFactoryImpl().createResource(uri);\n\t\ttry {\n\t\t\tresource.load(null);\n\t\t}\n\t\tcatch (IOException exception) {\n\t\t\tthrow new WrappedException(exception);\n\t\t}\n\t\tinitializeFromLoadedEPackage(this, (EPackage)resource.getContents().get(0));\n\t\tcreateResource(eNS_URI);\n\t}", "title": "" }, { "docid": "44511eb4a64205742409c84c05f54ac3", "score": "0.568775", "text": "public void initialize() {\n this.load();\n }", "title": "" }, { "docid": "65730ea27b82cfcf0d267165e9b69f09", "score": "0.5673139", "text": "public void initializePackageContents()\n {\n if (isInitialized) return;\n isInitialized = true;\n\n // Initialize package\n setName(eNAME);\n setNsPrefix(eNS_PREFIX);\n setNsURI(eNS_URI);\n\n // Create type parameters\n\n // Set bounds for type parameters\n\n // Add supertypes to classes\n declarationEClass.getESuperTypes().add(this.getLines());\n affectationEClass.getESuperTypes().add(this.getLines());\n varReferenceEClass.getESuperTypes().add(this.getWebElementVarReference());\n varReferenceEClass.getESuperTypes().add(this.getWebDriverVarReference());\n functionCallEClass.getESuperTypes().add(this.getLines());\n webElementTypeEClass.getESuperTypes().add(this.getExpression());\n webElementVarReferenceEClass.getESuperTypes().add(this.getLines());\n linkEClass.getESuperTypes().add(this.getWebElementType());\n inputEClass.getESuperTypes().add(this.getWebElementType());\n buttonEClass.getESuperTypes().add(this.getWebElementType());\n textEClass.getESuperTypes().add(this.getWebElementType());\n checkboxEClass.getESuperTypes().add(this.getWebElementType());\n comboboxEClass.getESuperTypes().add(this.getWebElementType());\n imageEClass.getESuperTypes().add(this.getWebElementType());\n goEClass.getESuperTypes().add(this.getFunctionCall());\n containsEClass.getESuperTypes().add(this.getFunctionCall());\n interractionsEClass.getESuperTypes().add(this.getFunctionCall());\n clickEClass.getESuperTypes().add(this.getInterractions());\n readElementEClass.getESuperTypes().add(this.getInterractions());\n checkContainsLinkEClass.getESuperTypes().add(this.getLines());\n checkContainsTextEClass.getESuperTypes().add(this.getLines());\n findPropertyEClass.getESuperTypes().add(this.getLines());\n stringEClass.getESuperTypes().add(this.getLines());\n insertEClass.getESuperTypes().add(this.getInterractions());\n checkCheckboxEClass.getESuperTypes().add(this.getInterractions());\n clearCheckboxEClass.getESuperTypes().add(this.getInterractions());\n selectComboboxEClass.getESuperTypes().add(this.getInterractions());\n\n // Initialize classes and features; add operations and parameters\n initEClass(programEClass, Program.class, \"Program\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEReference(getProgram_Lines(), this.getLines(), null, \"lines\", null, 0, -1, Program.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(linesEClass, Lines.class, \"Lines\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\n initEClass(declarationEClass, Declaration.class, \"Declaration\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEReference(getDeclaration_Type(), this.getType(), null, \"type\", null, 0, 1, Declaration.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEReference(getDeclaration_Var(), this.getVariable(), null, \"var\", null, 0, 1, Declaration.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(typeEClass, Type.class, \"Type\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEAttribute(getType_Type(), ecorePackage.getEString(), \"type\", null, 0, 1, Type.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(variableEClass, Variable.class, \"Variable\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEAttribute(getVariable_Name(), ecorePackage.getEString(), \"name\", null, 0, 1, Variable.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(affectationEClass, Affectation.class, \"Affectation\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEReference(getAffectation_Ref(), this.getVarReference(), null, \"ref\", null, 0, 1, Affectation.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEReference(getAffectation_Expr(), this.getExpression(), null, \"expr\", null, 0, 1, Affectation.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(varReferenceEClass, VarReference.class, \"VarReference\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\n initEClass(functionCallEClass, FunctionCall.class, \"FunctionCall\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\n initEClass(expressionEClass, Expression.class, \"Expression\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\n initEClass(webElementTypeEClass, WebElementType.class, \"WebElementType\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEAttribute(getWebElementType_Class(), ecorePackage.getEString(), \"class\", null, 0, 1, WebElementType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(webElementVarReferenceEClass, WebElementVarReference.class, \"WebElementVarReference\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEReference(getWebElementVarReference_Ref(), this.getVarReference(), null, \"ref\", null, 0, 1, WebElementVarReference.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEReference(getWebElementVarReference_Val(), ecorePackage.getEObject(), null, \"val\", null, 0, 1, WebElementVarReference.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEAttribute(getWebElementVarReference_Name(), ecorePackage.getEString(), \"name\", null, 0, 1, WebElementVarReference.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEAttribute(getWebElementVarReference_Param(), ecorePackage.getEString(), \"param\", null, 0, 1, WebElementVarReference.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(webDriverVarReferenceEClass, WebDriverVarReference.class, \"WebDriverVarReference\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\n initEClass(linkEClass, Link.class, \"Link\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEAttribute(getLink_Name(), ecorePackage.getEString(), \"name\", null, 0, 1, Link.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEAttribute(getLink_Url(), ecorePackage.getEString(), \"url\", null, 0, 1, Link.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(inputEClass, Input.class, \"Input\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEAttribute(getInput_Name(), ecorePackage.getEString(), \"name\", null, 0, 1, Input.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEAttribute(getInput_Value(), ecorePackage.getEString(), \"value\", null, 0, 1, Input.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEAttribute(getInput_Type(), ecorePackage.getEString(), \"type\", null, 0, 1, Input.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(buttonEClass, Button.class, \"Button\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEAttribute(getButton_Name(), ecorePackage.getEString(), \"name\", null, 0, 1, Button.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEReference(getButton_Value(), this.getWebElementVarReference(), null, \"value\", null, 0, 1, Button.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(textEClass, Text.class, \"Text\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEAttribute(getText_Name(), ecorePackage.getEString(), \"name\", null, 0, 1, Text.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEReference(getText_Value(), this.getWebElementVarReference(), null, \"value\", null, 0, 1, Text.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(checkboxEClass, Checkbox.class, \"Checkbox\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEAttribute(getCheckbox_Name(), ecorePackage.getEString(), \"name\", null, 0, 1, Checkbox.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEAttribute(getCheckbox_Value(), ecorePackage.getEString(), \"value\", null, 0, 1, Checkbox.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(comboboxEClass, Combobox.class, \"Combobox\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEAttribute(getCombobox_Name(), ecorePackage.getEString(), \"name\", null, 0, 1, Combobox.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEAttribute(getCombobox_Value(), ecorePackage.getEString(), \"value\", null, 0, 1, Combobox.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(imageEClass, Image.class, \"Image\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEReference(getImage_Value(), this.getWebElementVarReference(), null, \"value\", null, 0, 1, Image.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(goEClass, Go.class, \"Go\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEReference(getGo_Val(), this.getWebDriverVarReference(), null, \"val\", null, 0, 1, Go.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEAttribute(getGo_Url(), ecorePackage.getEString(), \"url\", null, 0, 1, Go.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(containsEClass, Contains.class, \"Contains\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEReference(getContains_Val(), this.getWebElementVarReference(), null, \"val\", null, 0, 1, Contains.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEAttribute(getContains_Param(), ecorePackage.getEString(), \"param\", null, 0, 1, Contains.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(interractionsEClass, Interractions.class, \"Interractions\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\n initEClass(clickEClass, Click.class, \"Click\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEReference(getClick_Val(), this.getWebElementVarReference(), null, \"val\", null, 0, 1, Click.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(readElementEClass, ReadElement.class, \"ReadElement\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEReference(getReadElement_Ref(), this.getVarReference(), null, \"ref\", null, 0, 1, ReadElement.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEReference(getReadElement_Val(), this.getWebElementVarReference(), null, \"val\", null, 0, 1, ReadElement.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(checkContainsLinkEClass, CheckContainsLink.class, \"CheckContainsLink\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEReference(getCheckContainsLink_Val(), this.getWebDriverVarReference(), null, \"val\", null, 0, 1, CheckContainsLink.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEAttribute(getCheckContainsLink_Name(), ecorePackage.getEString(), \"name\", null, 0, 1, CheckContainsLink.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEAttribute(getCheckContainsLink_Param(), ecorePackage.getEString(), \"param\", null, 0, 1, CheckContainsLink.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(checkContainsTextEClass, CheckContainsText.class, \"CheckContainsText\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEReference(getCheckContainsText_Val(), this.getWebDriverVarReference(), null, \"val\", null, 0, 1, CheckContainsText.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEAttribute(getCheckContainsText_Name(), ecorePackage.getEString(), \"name\", null, 0, 1, CheckContainsText.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEAttribute(getCheckContainsText_Param(), ecorePackage.getEString(), \"param\", null, 0, 1, CheckContainsText.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(findPropertyEClass, FindProperty.class, \"FindProperty\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEReference(getFindProperty_Ref(), this.getVarReference(), null, \"ref\", null, 0, 1, FindProperty.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEReference(getFindProperty_Val(), this.getWebDriverVarReference(), null, \"val\", null, 0, 1, FindProperty.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEAttribute(getFindProperty_Name(), ecorePackage.getEString(), \"name\", null, 0, 1, FindProperty.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEAttribute(getFindProperty_Param(), ecorePackage.getEString(), \"param\", null, 0, 1, FindProperty.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(stringEClass, org.xtext.example.browser.STRING.class, \"STRING\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEReference(getSTRING_Val(), this.getWebElementVarReference(), null, \"val\", null, 0, 1, org.xtext.example.browser.STRING.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(insertEClass, Insert.class, \"Insert\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEReference(getInsert_Val(), this.getWebElementVarReference(), null, \"val\", null, 0, 1, Insert.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEAttribute(getInsert_Param(), ecorePackage.getEString(), \"param\", null, 0, 1, Insert.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEReference(getInsert_Ref(), this.getVarReference(), null, \"ref\", null, 0, 1, Insert.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(checkCheckboxEClass, CheckCheckbox.class, \"CheckCheckbox\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEReference(getCheckCheckbox_Val(), this.getWebElementVarReference(), null, \"val\", null, 0, 1, CheckCheckbox.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(clearCheckboxEClass, ClearCheckbox.class, \"ClearCheckbox\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEReference(getClearCheckbox_Val(), this.getWebDriverVarReference(), null, \"val\", null, 0, 1, ClearCheckbox.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(selectComboboxEClass, SelectCombobox.class, \"SelectCombobox\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEReference(getSelectCombobox_Val(), this.getWebElementVarReference(), null, \"val\", null, 0, 1, SelectCombobox.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEAttribute(getSelectCombobox_Param(), ecorePackage.getEString(), \"param\", null, 0, 1, SelectCombobox.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n // Create resource\n createResource(eNS_URI);\n }", "title": "" }, { "docid": "e8c41ebd5d851253a136bbbfe9701427", "score": "0.5657598", "text": "public static RelationalPackage init() {\n\t\tif (isInited) return (RelationalPackage)EPackage.Registry.INSTANCE.getEPackage(RelationalPackage.eNS_URI);\n\n\t\t// Obtain or create and register package\n\t\tRelationalPackageImpl theRelationalPackage = (RelationalPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(eNS_URI) instanceof RelationalPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(eNS_URI) : new RelationalPackageImpl());\n\n\t\tisInited = true;\n\n\t\t// Create package meta-data objects\n\t\ttheRelationalPackage.createPackageContents();\n\n\t\t// Initialize created meta-data\n\t\ttheRelationalPackage.initializePackageContents();\n\n\t\t// Mark meta-data to indicate it can't be changed\n\t\ttheRelationalPackage.freeze();\n\n\t\treturn theRelationalPackage;\n\t}", "title": "" }, { "docid": "6ce8e8743645fc3683c4563d8b5f2961", "score": "0.56369734", "text": "public void initializePackageContents() {\r\n\t\tif (isInitialized) return;\r\n\t\tisInitialized = true;\r\n\r\n\t\t// Initialize package\r\n\t\tsetName(eNAME);\r\n\t\tsetNsPrefix(eNS_PREFIX);\r\n\t\tsetNsURI(eNS_URI);\r\n\r\n\t\t// Add supertypes to classes\r\n\r\n\t\t// Initialize classes and features; add operations and parameters\r\n\t\tinitEClass(globalSettingEClass, GlobalSetting.class, \"GlobalSetting\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\r\n\t\tinitEAttribute(getGlobalSetting_Language(), this.getLanguageType(), \"language\", \"zh\", 1, 1, GlobalSetting.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\t\tinitEReference(getGlobalSetting_Servers(), this.getServers(), null, \"servers\", null, 1, 1, GlobalSetting.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\t\tinitEReference(getGlobalSetting_Robots(), this.getRobots(), null, \"robots\", null, 1, 1, GlobalSetting.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\r\n\t\tinitEClass(serversEClass, Servers.class, \"Servers\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\r\n\t\tinitEAttribute(getServers_TCPServer(), ecorePackage.getEString(), \"TCPServer\", null, 0, -1, Servers.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\t\tinitEAttribute(getServers_UDPServer(), ecorePackage.getEString(), \"UDPServer\", null, 0, -1, Servers.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\r\n\t\tinitEClass(robotEClass, Robot.class, \"Robot\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\r\n\t\tinitEAttribute(getRobot_Class(), ecorePackage.getEString(), \"class\", null, 0, 1, Robot.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\t\tinitEAttribute(getRobot_Name(), ecorePackage.getEString(), \"name\", null, 0, 1, Robot.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\r\n\t\tinitEClass(robotsEClass, Robots.class, \"Robots\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\r\n\t\tinitEReference(getRobots_Robot(), this.getRobot(), null, \"robot\", null, 0, -1, Robots.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\r\n\t\t// Initialize enums and add enum literals\r\n\t\tinitEEnum(languageTypeEEnum, LanguageType.class, \"LanguageType\");\r\n\t\taddEEnumLiteral(languageTypeEEnum, LanguageType.ZH_LITERAL);\r\n\t\taddEEnumLiteral(languageTypeEEnum, LanguageType.EN_LITERAL);\r\n\t}", "title": "" }, { "docid": "6cf3704ddd1522b457d5cf222367e333", "score": "0.5635773", "text": "public void initializePackageContents() {\r\n\t\tif (isInitialized)\r\n\t\t\treturn;\r\n\t\tisInitialized = true;\r\n\r\n\t\t// Initialize package\r\n\t\tsetName(eNAME);\r\n\t\tsetNsPrefix(eNS_PREFIX);\r\n\t\tsetNsURI(eNS_URI);\r\n\r\n\t\t// Obtain other dependent packages\r\n\t\tEcorePackage theEcorePackage = (EcorePackage) EPackage.Registry.INSTANCE.getEPackage(EcorePackage.eNS_URI);\r\n\r\n\t\t// Create type parameters\r\n\r\n\t\t// Set bounds for type parameters\r\n\r\n\t\t// Add supertypes to classes\r\n\t\tperspectiveEClass.getESuperTypes().add(this.getNamedElement());\r\n\t\tcommandEClass.getESuperTypes().add(this.getNamedElement());\r\n\t\tviewEClass.getESuperTypes().add(this.getNamedElement());\r\n\t\teditorAreaEClass.getESuperTypes().add(this.getViewContainer());\r\n\t\tleftPaneEClass.getESuperTypes().add(this.getViewContainer());\r\n\t\trightPaneEClass.getESuperTypes().add(this.getViewContainer());\r\n\t\tbottomPaneEClass.getESuperTypes().add(this.getViewContainer());\r\n\t\ttoolbarEClass.getESuperTypes().add(this.getNamedElement());\r\n\t\ttoolbarItemEClass.getESuperTypes().add(this.getNamedElement());\r\n\t\ttoolbarItemEClass.getESuperTypes().add(this.getIActionListener());\r\n\t\tstatuslineEClass.getESuperTypes().add(this.getNamedElement());\r\n\r\n\t\t// Initialize classes, features, and operations; add parameters\r\n\t\tinitEClass(iActionListenerEClass, IActionListener.class, \"IActionListener\", !IS_ABSTRACT, !IS_INTERFACE,\r\n\t\t\t\tIS_GENERATED_INSTANCE_CLASS);\r\n\t\tinitEAttribute(getIActionListener_OnAction(), theEcorePackage.getEString(), \"onAction\", null, 0, 1,\r\n\t\t\t\tIActionListener.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE,\r\n\t\t\t\t!IS_DERIVED, IS_ORDERED);\r\n\r\n\t\tinitEClass(namedElementEClass, NamedElement.class, \"NamedElement\", !IS_ABSTRACT, !IS_INTERFACE,\r\n\t\t\t\tIS_GENERATED_INSTANCE_CLASS);\r\n\t\tinitEAttribute(getNamedElement__Id(), theEcorePackage.getEString(), \"_Id\", null, 0, 1, NamedElement.class,\r\n\t\t\t\t!IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED,\r\n\t\t\t\tIS_ORDERED);\r\n\t\tinitEAttribute(getNamedElement_Name(), theEcorePackage.getEString(), \"name\", null, 0, 1, NamedElement.class,\r\n\t\t\t\t!IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED,\r\n\t\t\t\tIS_ORDERED);\r\n\r\n\t\tinitEClass(workbenchEClass, Workbench.class, \"Workbench\", !IS_ABSTRACT, !IS_INTERFACE,\r\n\t\t\t\tIS_GENERATED_INSTANCE_CLASS);\r\n\t\tinitEReference(getWorkbench_Toolbar(), this.getToolbar(), null, \"toolbar\", null, 0, 1, Workbench.class,\r\n\t\t\t\t!IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE,\r\n\t\t\t\tIS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\t\tinitEReference(getWorkbench_Statusline(), this.getStatusline(), null, \"statusline\", null, 0, 1, Workbench.class,\r\n\t\t\t\t!IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE,\r\n\t\t\t\tIS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\t\tinitEReference(getWorkbench_Perspectives(), this.getPerspective(), null, \"perspectives\", null, 0, -1,\r\n\t\t\t\tWorkbench.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES,\r\n\t\t\t\t!IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\t\tinitEReference(getWorkbench_Commands(), this.getCommand(), null, \"commands\", null, 0, -1, Workbench.class,\r\n\t\t\t\t!IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE,\r\n\t\t\t\tIS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\t\tinitEReference(getWorkbench_EditorRegistry(), this.getEditorRegistry(), null, \"editorRegistry\", null, 0, 1,\r\n\t\t\t\tWorkbench.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES,\r\n\t\t\t\t!IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\t\tinitEReference(getWorkbench_CommandRegistry(), this.getCommandRegistry(), null, \"commandRegistry\", null, 0, 1,\r\n\t\t\t\tWorkbench.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES,\r\n\t\t\t\t!IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\r\n\t\tinitEClass(commandRegistryEClass, CommandRegistry.class, \"CommandRegistry\", !IS_ABSTRACT, !IS_INTERFACE,\r\n\t\t\t\tIS_GENERATED_INSTANCE_CLASS);\r\n\t\tinitEReference(getCommandRegistry_UsedCommands(), this.getCommand(), null, \"usedCommands\", null, 0, -1,\r\n\t\t\t\tCommandRegistry.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES,\r\n\t\t\t\t!IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\r\n\t\tinitEClass(editorRegistryEClass, EditorRegistry.class, \"EditorRegistry\", !IS_ABSTRACT, !IS_INTERFACE,\r\n\t\t\t\tIS_GENERATED_INSTANCE_CLASS);\r\n\t\tinitEReference(getEditorRegistry_Editor(), this.getEditor(), null, \"editor\", null, 0, -1, EditorRegistry.class,\r\n\t\t\t\t!IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE,\r\n\t\t\t\tIS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\r\n\t\tinitEClass(editorEClass, Editor.class, \"Editor\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\r\n\t\tinitEAttribute(getEditor_Name(), theEcorePackage.getEString(), \"name\", null, 0, 1, Editor.class, !IS_TRANSIENT,\r\n\t\t\t\t!IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\t\tinitEAttribute(getEditor_FileExtension(), theEcorePackage.getEString(), \"fileExtension\", null, 0, 1,\r\n\t\t\t\tEditor.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE,\r\n\t\t\t\t!IS_DERIVED, IS_ORDERED);\r\n\t\tinitEAttribute(getEditor_EditorUri(), theEcorePackage.getEString(), \"editorUri\", null, 0, 1, Editor.class,\r\n\t\t\t\t!IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED,\r\n\t\t\t\tIS_ORDERED);\r\n\r\n\t\tinitEClass(perspectiveEClass, Perspective.class, \"Perspective\", !IS_ABSTRACT, !IS_INTERFACE,\r\n\t\t\t\tIS_GENERATED_INSTANCE_CLASS);\r\n\t\tinitEReference(getPerspective_LeftPane(), this.getLeftPane(), null, \"leftPane\", null, 0, 1, Perspective.class,\r\n\t\t\t\t!IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE,\r\n\t\t\t\tIS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\t\tinitEReference(getPerspective_RightPane(), this.getRightPane(), null, \"rightPane\", null, 0, 1,\r\n\t\t\t\tPerspective.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES,\r\n\t\t\t\t!IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\t\tinitEReference(getPerspective_BottomPane(), this.getBottomPane(), null, \"bottomPane\", null, 0, 1,\r\n\t\t\t\tPerspective.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES,\r\n\t\t\t\t!IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\t\tinitEReference(getPerspective_EditorArea(), this.getEditorArea(), null, \"editorArea\", null, 0, 1,\r\n\t\t\t\tPerspective.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES,\r\n\t\t\t\t!IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\r\n\t\tinitEClass(commandEClass, Command.class, \"Command\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\r\n\t\tinitEAttribute(getCommand_CommandClass(), theEcorePackage.getEString(), \"commandClass\", null, 0, 1,\r\n\t\t\t\tCommand.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE,\r\n\t\t\t\t!IS_DERIVED, IS_ORDERED);\r\n\r\n\t\tinitEClass(viewContainerEClass, ViewContainer.class, \"ViewContainer\", IS_ABSTRACT, !IS_INTERFACE,\r\n\t\t\t\tIS_GENERATED_INSTANCE_CLASS);\r\n\t\tinitEReference(getViewContainer_Views(), this.getView(), null, \"views\", null, 0, -1, ViewContainer.class,\r\n\t\t\t\t!IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE,\r\n\t\t\t\tIS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\r\n\t\tinitEClass(viewEClass, View.class, \"View\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\r\n\t\tinitEAttribute(getView_ViewClass(), theEcorePackage.getEString(), \"viewClass\", null, 0, 1, View.class,\r\n\t\t\t\t!IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED,\r\n\t\t\t\tIS_ORDERED);\r\n\t\tinitEAttribute(getView_Icon(), theEcorePackage.getEString(), \"icon\", null, 0, 1, View.class, !IS_TRANSIENT,\r\n\t\t\t\t!IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\t\tinitEAttribute(getView_IsClosable(), theEcorePackage.getEBoolean(), \"isClosable\", \"true\", 0, 1, View.class,\r\n\t\t\t\t!IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED,\r\n\t\t\t\tIS_ORDERED);\r\n\t\tinitEAttribute(getView_RegistrateChangeListener(), theEcorePackage.getEBoolean(), \"registrateChangeListener\",\r\n\t\t\t\t\"false\", 0, 1, View.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID,\r\n\t\t\t\t!IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\r\n\t\tinitEClass(editorAreaEClass, EditorArea.class, \"EditorArea\", !IS_ABSTRACT, !IS_INTERFACE,\r\n\t\t\t\tIS_GENERATED_INSTANCE_CLASS);\r\n\r\n\t\tinitEClass(leftPaneEClass, LeftPane.class, \"LeftPane\", !IS_ABSTRACT, !IS_INTERFACE,\r\n\t\t\t\tIS_GENERATED_INSTANCE_CLASS);\r\n\r\n\t\tinitEClass(rightPaneEClass, RightPane.class, \"RightPane\", !IS_ABSTRACT, !IS_INTERFACE,\r\n\t\t\t\tIS_GENERATED_INSTANCE_CLASS);\r\n\r\n\t\tinitEClass(bottomPaneEClass, BottomPane.class, \"BottomPane\", !IS_ABSTRACT, !IS_INTERFACE,\r\n\t\t\t\tIS_GENERATED_INSTANCE_CLASS);\r\n\r\n\t\tinitEClass(toolbarEClass, Toolbar.class, \"Toolbar\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\r\n\t\tinitEReference(getToolbar_Items(), this.getToolbarItem(), null, \"items\", null, 0, -1, Toolbar.class,\r\n\t\t\t\t!IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE,\r\n\t\t\t\tIS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\r\n\t\tinitEClass(toolbarItemEClass, ToolbarItem.class, \"ToolbarItem\", !IS_ABSTRACT, !IS_INTERFACE,\r\n\t\t\t\tIS_GENERATED_INSTANCE_CLASS);\r\n\t\tinitEAttribute(getToolbarItem_Icon(), theEcorePackage.getEString(), \"icon\", null, 0, 1, ToolbarItem.class,\r\n\t\t\t\t!IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED,\r\n\t\t\t\tIS_ORDERED);\r\n\t\tinitEReference(getToolbarItem_Command(), this.getCommand(), null, \"command\", null, 0, 1, ToolbarItem.class,\r\n\t\t\t\t!IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE,\r\n\t\t\t\tIS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\r\n\t\tinitEClass(statuslineEClass, Statusline.class, \"Statusline\", !IS_ABSTRACT, !IS_INTERFACE,\r\n\t\t\t\tIS_GENERATED_INSTANCE_CLASS);\r\n\r\n\t\t// Create resource\r\n\t\tcreateResource(eNS_URI);\r\n\t}", "title": "" }, { "docid": "d083e25513f960c4f9cbe76014aee2ca", "score": "0.5623716", "text": "public void initializePackageContents() {\n\t\tif (isInitialized)\n\t\t\treturn;\n\t\tisInitialized = true;\n\n\t\t// Initialize package\n\t\tsetName(eNAME);\n\t\tsetNsPrefix(eNS_PREFIX);\n\t\tsetNsURI(eNS_URI);\n\n\t\t// Create type parameters\n\n\t\t// Set bounds for type parameters\n\n\t\t// Add supertypes to classes\n\t\ttreeRootEClass.getESuperTypes().add(this.getResourceTreeNode());\n\n\t\t// Initialize classes and features; add operations and parameters\n\t\tinitEClass(resourceTreeNodeEClass, ResourceTreeNode.class,\n\t\t\t\t\"ResourceTreeNode\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); //$NON-NLS-1$\n\t\tinitEAttribute(\n\t\t\t\tgetResourceTreeNode_Name(),\n\t\t\t\tecorePackage.getEString(),\n\t\t\t\t\"name\", null, 0, 1, ResourceTreeNode.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$\n\t\tinitEReference(\n\t\t\t\tgetResourceTreeNode_Children(),\n\t\t\t\tthis.getResourceTreeNode(),\n\t\t\t\tthis.getResourceTreeNode_Parent(),\n\t\t\t\t\"children\", null, 0, -1, ResourceTreeNode.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$\n\t\tinitEReference(\n\t\t\t\tgetResourceTreeNode_Parent(),\n\t\t\t\tthis.getResourceTreeNode(),\n\t\t\t\tthis.getResourceTreeNode_Children(),\n\t\t\t\t\"parent\", null, 0, 1, ResourceTreeNode.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$\n\t\tinitEAttribute(\n\t\t\t\tgetResourceTreeNode_Exists(),\n\t\t\t\tecorePackage.getEBoolean(),\n\t\t\t\t\"exists\", \"true\", 0, 1, ResourceTreeNode.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$ //$NON-NLS-2$\n\t\tinitEAttribute(\n\t\t\t\tgetResourceTreeNode_TemplateID(),\n\t\t\t\tecorePackage.getEString(),\n\t\t\t\t\"templateID\", null, 0, 1, ResourceTreeNode.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$\n\t\tinitEAttribute(\n\t\t\t\tgetResourceTreeNode_PersistentProperties(),\n\t\t\t\tthis.getPersistentProperties(),\n\t\t\t\t\"persistentProperties\", null, 0, 1, ResourceTreeNode.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$\n\t\tinitEAttribute(\n\t\t\t\tgetResourceTreeNode_LocalOnly(),\n\t\t\t\tecorePackage.getEBoolean(),\n\t\t\t\t\"localOnly\", \"false\", 0, 1, ResourceTreeNode.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$ //$NON-NLS-2$\n\t\tinitEAttribute(\n\t\t\t\tgetResourceTreeNode_Type(),\n\t\t\t\tthis.getTreeNodeType(),\n\t\t\t\t\"type\", \"FILE\", 0, 1, ResourceTreeNode.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$ //$NON-NLS-2$\n\t\tinitEAttribute(\n\t\t\t\tgetResourceTreeNode_SessionProperties(),\n\t\t\t\tthis.getSessionProperties(),\n\t\t\t\t\"sessionProperties\", null, 0, 1, ResourceTreeNode.class, IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$\n\t\tinitEAttribute(\n\t\t\t\tgetResourceTreeNode_Path(),\n\t\t\t\tecorePackage.getEString(),\n\t\t\t\t\"path\", null, 0, 1, ResourceTreeNode.class, IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$\n\t\tinitEAttribute(\n\t\t\t\tgetResourceTreeNode_QueryPart(),\n\t\t\t\tecorePackage.getEString(),\n\t\t\t\t\"queryPart\", null, 0, 1, ResourceTreeNode.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$\n\t\tinitEAttribute(\n\t\t\t\tgetResourceTreeNode_RemoteURI(),\n\t\t\t\tecorePackage.getEString(),\n\t\t\t\t\"remoteURI\", null, 0, 1, ResourceTreeNode.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$\n\t\tinitEAttribute(\n\t\t\t\tgetResourceTreeNode_DynamicContentProviderID(),\n\t\t\t\tecorePackage.getEString(),\n\t\t\t\t\"dynamicContentProviderID\", null, 0, 1, ResourceTreeNode.class, IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$\n\n\t\tinitEClass(semanticDBEClass, SemanticDB.class, \"SemanticDB\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); //$NON-NLS-1$\n\t\tinitEReference(\n\t\t\t\tgetSemanticDB_Roots(),\n\t\t\t\tthis.getTreeRoot(),\n\t\t\t\tthis.getTreeRoot_ParentDB(),\n\t\t\t\t\"roots\", null, 0, -1, SemanticDB.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$\n\n\t\tinitEClass(treeRootEClass, TreeRoot.class, \"TreeRoot\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); //$NON-NLS-1$\n\t\tinitEReference(\n\t\t\t\tgetTreeRoot_ParentDB(),\n\t\t\t\tthis.getSemanticDB(),\n\t\t\t\tthis.getSemanticDB_Roots(),\n\t\t\t\t\"parentDB\", null, 0, 1, TreeRoot.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$\n\t\tinitEAttribute(\n\t\t\t\tgetTreeRoot_RootURI(),\n\t\t\t\tecorePackage.getEString(),\n\t\t\t\t\"rootURI\", null, 0, 1, TreeRoot.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$\n\n\t\t// Initialize enums and add enum literals\n\t\tinitEEnum(treeNodeTypeEEnum, TreeNodeType.class, \"TreeNodeType\"); //$NON-NLS-1$\n\t\taddEEnumLiteral(treeNodeTypeEEnum, TreeNodeType.FOLDER);\n\t\taddEEnumLiteral(treeNodeTypeEEnum, TreeNodeType.FILE);\n\t\taddEEnumLiteral(treeNodeTypeEEnum, TreeNodeType.PROJECT);\n\t\taddEEnumLiteral(treeNodeTypeEEnum, TreeNodeType.UNKNOWN);\n\n\t\t// Initialize data types\n\t\tinitEDataType(\n\t\t\t\tpersistentPropertiesEDataType,\n\t\t\t\tHashMap.class,\n\t\t\t\t\"PersistentProperties\", IS_SERIALIZABLE, !IS_GENERATED_INSTANCE_CLASS, \"java.util.HashMap<java.lang.String, java.lang.String>\"); //$NON-NLS-1$ //$NON-NLS-2$\n\t\tinitEDataType(\n\t\t\t\tsessionPropertiesEDataType,\n\t\t\t\tHashMap.class,\n\t\t\t\t\"SessionProperties\", IS_SERIALIZABLE, !IS_GENERATED_INSTANCE_CLASS, \"java.util.HashMap<org.eclipse.core.runtime.QualifiedName, java.lang.Object>\"); //$NON-NLS-1$ //$NON-NLS-2$\n\n\t\t// Create resource\n\t\tcreateResource(eNS_URI);\n\t}", "title": "" }, { "docid": "5742ccb1563d785e342f41973289a021", "score": "0.56178296", "text": "public void initialize() {\n\t\tcheckAdmin();\n\t\tcheckStudyAssetsRootDir();\n\t\t// checkGroupResults();\n\t\tLOGGER.info(\"JATOS initialized\");\n\t}", "title": "" }, { "docid": "c3c7830d92a2ef982941132573ba9df4", "score": "0.56028324", "text": "@Override\n\tprotected void finalize() throws Throwable {\n\t\tsuper.finalize();\n\t\t\n\t\ttry {\n\t\t\tunsetup();\n\t\t}\n\t\tcatch (Throwable e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "title": "" }, { "docid": "7ba50ce1e684025ed17afd5865803d09", "score": "0.55908424", "text": "public void init() {\n // fill up the unfolding replacement map\n // scan the ontology\n if (ontology == null) {\n throw new IllegalStateException(\"No ontology supplied to Unfolder !\");\n }\n scanOntology();\n isInitialized = true;\n\n }", "title": "" }, { "docid": "58c6331f1188efcb98b12a609b594630", "score": "0.55468476", "text": "private void initialization() {\n\t}", "title": "" }, { "docid": "49dce4d58ef32dee51581b93acb2515a", "score": "0.5528529", "text": "public void initializePackageContents() {\n\t\tif (isInitialized)\n\t\t\treturn;\n\t\tisInitialized = true;\n\n\t\t// Initialize package\n\t\tsetName(eNAME);\n\t\tsetNsPrefix(eNS_PREFIX);\n\t\tsetNsURI(eNS_URI);\n\n\t\t// Create type parameters\n\n\t\t// Set bounds for type parameters\n\n\t\t// Add supertypes to classes\n\t\tdatasheetPropertyEClass.getESuperTypes().add(this.getAbstractDatasheetElement());\n\t\tmandatoryDatasheetElementEClass.getESuperTypes().add(this.getAbstractDatasheetElement());\n\n\t\t// Initialize classes, features, and operations; add parameters\n\t\tinitEClass(datasheetPropertyEClass, DatasheetProperty.class, \"DatasheetProperty\", !IS_ABSTRACT, !IS_INTERFACE,\n\t\t\t\tIS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getDatasheetProperty_Name(), ecorePackage.getEString(), \"name\", null, 1, 1,\n\t\t\t\tDatasheetProperty.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE,\n\t\t\t\t!IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getDatasheetProperty_Value(), ecorePackage.getEString(), \"value\", null, 1, 1,\n\t\t\t\tDatasheetProperty.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE,\n\t\t\t\t!IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getDatasheetProperty_Unit(), ecorePackage.getEString(), \"unit\", null, 0, 1,\n\t\t\t\tDatasheetProperty.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE,\n\t\t\t\t!IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getDatasheetProperty_SemanticID(), ecorePackage.getEString(), \"semanticID\", null, 0, 1,\n\t\t\t\tDatasheetProperty.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE,\n\t\t\t\t!IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getDatasheetProperty_ShortDescription(), ecorePackage.getEString(), \"shortDescription\", null, 0,\n\t\t\t\t1, DatasheetProperty.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID,\n\t\t\t\tIS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(genericDatasheetModelEClass, GenericDatasheetModel.class, \"GenericDatasheetModel\", !IS_ABSTRACT,\n\t\t\t\t!IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getGenericDatasheetModel_Elements(), this.getAbstractDatasheetElement(), null, \"elements\", null,\n\t\t\t\t0, -1, GenericDatasheetModel.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE,\n\t\t\t\t!IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(abstractDatasheetElementEClass, AbstractDatasheetElement.class, \"AbstractDatasheetElement\",\n\t\t\t\tIS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\n\t\tinitEClass(mandatoryDatasheetElementEClass, MandatoryDatasheetElement.class, \"MandatoryDatasheetElement\",\n\t\t\t\t!IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getMandatoryDatasheetElement_Name(), this.getMandatoryDatasheetElementNames(), \"name\", null, 1,\n\t\t\t\t1, MandatoryDatasheetElement.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID,\n\t\t\t\tIS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMandatoryDatasheetElement_Value(), ecorePackage.getEString(), \"value\", null, 0, 1,\n\t\t\t\tMandatoryDatasheetElement.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID,\n\t\t\t\tIS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\t// Initialize enums and add enum literals\n\t\tinitEEnum(defaultDatasheetPropertiesEEnum, DefaultDatasheetProperties.class, \"DefaultDatasheetProperties\");\n\t\taddEEnumLiteral(defaultDatasheetPropertiesEEnum, DefaultDatasheetProperties.HOMEPAGE);\n\t\taddEEnumLiteral(defaultDatasheetPropertiesEEnum, DefaultDatasheetProperties.SPDX_LICENSE);\n\t\taddEEnumLiteral(defaultDatasheetPropertiesEEnum, DefaultDatasheetProperties.PROPRIETARY_LICENSE);\n\t\taddEEnumLiteral(defaultDatasheetPropertiesEEnum, DefaultDatasheetProperties.PURPOSE);\n\t\taddEEnumLiteral(defaultDatasheetPropertiesEEnum, DefaultDatasheetProperties.TECHNOLOGY_READINESS_LEVEL);\n\t\taddEEnumLiteral(defaultDatasheetPropertiesEEnum, DefaultDatasheetProperties.SUPPLIER);\n\n\t\tinitEEnum(technologyReadinessLevelEEnum, TechnologyReadinessLevel.class, \"TechnologyReadinessLevel\");\n\t\taddEEnumLiteral(technologyReadinessLevelEEnum, TechnologyReadinessLevel.TRL1);\n\t\taddEEnumLiteral(technologyReadinessLevelEEnum, TechnologyReadinessLevel.TRL2);\n\t\taddEEnumLiteral(technologyReadinessLevelEEnum, TechnologyReadinessLevel.TRL3);\n\t\taddEEnumLiteral(technologyReadinessLevelEEnum, TechnologyReadinessLevel.TRL4);\n\t\taddEEnumLiteral(technologyReadinessLevelEEnum, TechnologyReadinessLevel.TRL5);\n\t\taddEEnumLiteral(technologyReadinessLevelEEnum, TechnologyReadinessLevel.TRL6);\n\t\taddEEnumLiteral(technologyReadinessLevelEEnum, TechnologyReadinessLevel.TRL7);\n\t\taddEEnumLiteral(technologyReadinessLevelEEnum, TechnologyReadinessLevel.TRL8);\n\t\taddEEnumLiteral(technologyReadinessLevelEEnum, TechnologyReadinessLevel.TRL9);\n\n\t\tinitEEnum(mandatoryDatasheetElementNamesEEnum, MandatoryDatasheetElementNames.class,\n\t\t\t\t\"MandatoryDatasheetElementNames\");\n\t\taddEEnumLiteral(mandatoryDatasheetElementNamesEEnum, MandatoryDatasheetElementNames.BASE_URI);\n\t\taddEEnumLiteral(mandatoryDatasheetElementNamesEEnum, MandatoryDatasheetElementNames.SHORT_DESCRIPTION);\n\n\t\t// Create resource\n\t\tcreateResource(eNS_URI);\n\t}", "title": "" }, { "docid": "1c3ede8a12a0aed76fd24f093be55959", "score": "0.55261785", "text": "public void completeSetup()\n {\n if (!setupCompleted) {\n // We must first inject the event manager into the panels because when we initialize the frame\n // the panels will also be populated with objects\n view.setEventManager(eventManager);\n\n // Initializing the frame and selecting a default communication service\n initializeFrame();\n }\n }", "title": "" }, { "docid": "e20517c76dd336b59eca0dcc8c2b3860", "score": "0.54976887", "text": "public void initializePackageContents() {\r\n\t\tif (isInitialized) return;\r\n\t\tisInitialized = true;\r\n\r\n\t\t// Initialize package\r\n\t\tsetName(eNAME);\r\n\t\tsetNsPrefix(eNS_PREFIX);\r\n\t\tsetNsURI(eNS_URI);\r\n\r\n\t\t// Initialize enums and add enum literals\r\n\t\tinitEEnum(timeUnitKindEEnum, TimeUnitKind.class, \"TimeUnitKind\");\r\n\t\taddEEnumLiteral(timeUnitKindEEnum, TimeUnitKind.S);\r\n\t\taddEEnumLiteral(timeUnitKindEEnum, TimeUnitKind.TICK);\r\n\t\taddEEnumLiteral(timeUnitKindEEnum, TimeUnitKind.MS);\r\n\t\taddEEnumLiteral(timeUnitKindEEnum, TimeUnitKind.US);\r\n\t\taddEEnumLiteral(timeUnitKindEEnum, TimeUnitKind.MIN);\r\n\t\taddEEnumLiteral(timeUnitKindEEnum, TimeUnitKind.HRS);\r\n\t\taddEEnumLiteral(timeUnitKindEEnum, TimeUnitKind.DAY);\r\n\r\n\t\tinitEEnum(powerUnitKindEEnum, PowerUnitKind.class, \"PowerUnitKind\");\r\n\t\taddEEnumLiteral(powerUnitKindEEnum, PowerUnitKind.W);\r\n\t\taddEEnumLiteral(powerUnitKindEEnum, PowerUnitKind.MW);\r\n\t\taddEEnumLiteral(powerUnitKindEEnum, PowerUnitKind.KW);\r\n\r\n\t\tinitEEnum(frequencyUnitKindEEnum, FrequencyUnitKind.class, \"FrequencyUnitKind\");\r\n\t\taddEEnumLiteral(frequencyUnitKindEEnum, FrequencyUnitKind.HZ);\r\n\t\taddEEnumLiteral(frequencyUnitKindEEnum, FrequencyUnitKind.KHZ);\r\n\t\taddEEnumLiteral(frequencyUnitKindEEnum, FrequencyUnitKind.MHZ);\r\n\t\taddEEnumLiteral(frequencyUnitKindEEnum, FrequencyUnitKind.GHZ);\r\n\t\taddEEnumLiteral(frequencyUnitKindEEnum, FrequencyUnitKind.RPM);\r\n\r\n\t\tinitEEnum(dataSizeUnitKindEEnum, DataSizeUnitKind.class, \"DataSizeUnitKind\");\r\n\t\taddEEnumLiteral(dataSizeUnitKindEEnum, DataSizeUnitKind.BIT);\r\n\t\taddEEnumLiteral(dataSizeUnitKindEEnum, DataSizeUnitKind.BYTE);\r\n\t\taddEEnumLiteral(dataSizeUnitKindEEnum, DataSizeUnitKind.KB);\r\n\t\taddEEnumLiteral(dataSizeUnitKindEEnum, DataSizeUnitKind.MB);\r\n\t\taddEEnumLiteral(dataSizeUnitKindEEnum, DataSizeUnitKind.GB);\r\n\r\n\t\tinitEEnum(dataTxRateUnitKindEEnum, DataTxRateUnitKind.class, \"DataTxRateUnitKind\");\r\n\t\taddEEnumLiteral(dataTxRateUnitKindEEnum, DataTxRateUnitKind.BPER_S);\r\n\t\taddEEnumLiteral(dataTxRateUnitKindEEnum, DataTxRateUnitKind.KB_PER_S);\r\n\t\taddEEnumLiteral(dataTxRateUnitKindEEnum, DataTxRateUnitKind.MB_PER_S);\r\n\r\n\t\tinitEEnum(energyUnitKindEEnum, EnergyUnitKind.class, \"EnergyUnitKind\");\r\n\t\taddEEnumLiteral(energyUnitKindEEnum, EnergyUnitKind.J);\r\n\t\taddEEnumLiteral(energyUnitKindEEnum, EnergyUnitKind.KJ);\r\n\t\taddEEnumLiteral(energyUnitKindEEnum, EnergyUnitKind.WH);\r\n\t\taddEEnumLiteral(energyUnitKindEEnum, EnergyUnitKind.KWH);\r\n\t\taddEEnumLiteral(energyUnitKindEEnum, EnergyUnitKind.MWH);\r\n\r\n\t\tinitEEnum(lengthUnitKindEEnum, LengthUnitKind.class, \"LengthUnitKind\");\r\n\t\taddEEnumLiteral(lengthUnitKindEEnum, LengthUnitKind.M);\r\n\t\taddEEnumLiteral(lengthUnitKindEEnum, LengthUnitKind.CM);\r\n\t\taddEEnumLiteral(lengthUnitKindEEnum, LengthUnitKind.MM);\r\n\r\n\t\tinitEEnum(areaUnitKindEEnum, AreaUnitKind.class, \"AreaUnitKind\");\r\n\t\taddEEnumLiteral(areaUnitKindEEnum, AreaUnitKind.MM2);\r\n\t\taddEEnumLiteral(areaUnitKindEEnum, AreaUnitKind.UM2);\r\n\r\n\t\tinitEEnum(weightUnitKindEEnum, WeightUnitKind.class, \"WeightUnitKind\");\r\n\t\taddEEnumLiteral(weightUnitKindEEnum, WeightUnitKind.G);\r\n\t\taddEEnumLiteral(weightUnitKindEEnum, WeightUnitKind.MG);\r\n\t\taddEEnumLiteral(weightUnitKindEEnum, WeightUnitKind.KG);\r\n\r\n\t\t// Create resource\r\n\t\tcreateResource(eNS_URI);\r\n\t}", "title": "" }, { "docid": "252803936537ef7cee2dee120ad0b485", "score": "0.5489433", "text": "public void initializePackageContents() {\r\n\t\tif (isInitialized) return;\r\n\t\tisInitialized = true;\r\n\r\n\t\t// Initialize package\r\n\t\tsetName(eNAME);\r\n\t\tsetNsPrefix(eNS_PREFIX);\r\n\t\tsetNsURI(eNS_URI);\r\n\r\n\t\t// Obtain other dependent packages\r\n\t\tRDMPackage theRDMPackage = (RDMPackage)EPackage.Registry.INSTANCE.getEPackage(RDMPackage.eNS_URI);\r\n\r\n\t\t// Create type parameters\r\n\r\n\t\t// Set bounds for type parameters\r\n\r\n\t\t// Add supertypes to classes\r\n\t\ttraceEClass.getESuperTypes().add(this.getNamedElement());\r\n\t\teventEClass.getESuperTypes().add(this.getNamedElement());\r\n\r\n\t\t// Initialize classes, features, and operations; add parameters\r\n\t\tinitEClass(traceModelEClass, TraceModel.class, \"TraceModel\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\r\n\t\tinitEReference(getTraceModel_Trace(), this.getTrace(), null, \"trace\", null, 1, 1, TraceModel.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\r\n\t\tinitEClass(traceEClass, Trace.class, \"Trace\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\r\n\t\tinitEAttribute(getTrace_Granularity(), this.getTimeUnit(), \"granularity\", \"SECONDS\", 1, 1, Trace.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\t\tinitEReference(getTrace_ConsistsOf(), this.getTraceEntry(), null, \"consistsOf\", null, 0, -1, Trace.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\r\n\t\tinitEClass(traceEntryEClass, TraceEntry.class, \"TraceEntry\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\r\n\t\tinitEReference(getTraceEntry_NextEntry(), this.getTraceEntry(), null, \"nextEntry\", null, 0, 1, TraceEntry.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\t\tinitEAttribute(getTraceEntry_Description(), ecorePackage.getEString(), \"description\", null, 1, 1, TraceEntry.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\t\tinitEReference(getTraceEntry_AffectedRDMElements(), theRDMPackage.getRDMElement(), null, \"affectedRDMElements\", null, 0, -1, TraceEntry.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\t\tinitEReference(getTraceEntry_Cause(), this.getEvent(), null, \"cause\", null, 1, 1, TraceEntry.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\r\n\t\tinitEClass(eventEClass, Event.class, \"Event\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\r\n\t\tinitEAttribute(getEvent_Time(), ecorePackage.getELong(), \"time\", null, 1, 1, Event.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\r\n\t\tinitEClass(namedElementEClass, NamedElement.class, \"NamedElement\", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\r\n\t\tinitEAttribute(getNamedElement_Name(), ecorePackage.getEString(), \"name\", null, 1, 1, NamedElement.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\r\n\t\t// Initialize enums and add enum literals\r\n\t\tinitEEnum(timeUnitEEnum, TimeUnit.class, \"TimeUnit\");\r\n\t\taddEEnumLiteral(timeUnitEEnum, TimeUnit.NANOSECONDS);\r\n\t\taddEEnumLiteral(timeUnitEEnum, TimeUnit.MICROSECONDS);\r\n\t\taddEEnumLiteral(timeUnitEEnum, TimeUnit.MILLISECONDS);\r\n\t\taddEEnumLiteral(timeUnitEEnum, TimeUnit.SECONDS);\r\n\t\taddEEnumLiteral(timeUnitEEnum, TimeUnit.MINUTES);\r\n\t\taddEEnumLiteral(timeUnitEEnum, TimeUnit.HOURS);\r\n\t\taddEEnumLiteral(timeUnitEEnum, TimeUnit.DAYS);\r\n\r\n\t\t// Create resource\r\n\t\tcreateResource(eNS_URI);\r\n\t}", "title": "" }, { "docid": "b4e5a06e55a0530ebc52bfb37cdd71f2", "score": "0.5483174", "text": "public void initialize() {\n }", "title": "" } ]
7fffb405f7cb804c4b35b2e1d7fa1b4e
$ANTLR end "rule__AddEnum__EnumEntryAssignment_1" $ANTLR start "rule__AddEnum__OrdinalAssignment_2" ../org.eclipse.osee.framework.core.dsl.ui/srcgen/org/eclipse/osee/framework/core/dsl/ui/contentassist/antlr/internal/InternalOseeDsl.g:9697:1: rule__AddEnum__OrdinalAssignment_2 : ( RULE_WHOLE_NUM_STR ) ;
[ { "docid": "9c2b3c7feb4e2a1bce49bf18f4ed15f5", "score": "0.836478", "text": "public final void rule__AddEnum__OrdinalAssignment_2() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.eclipse.osee.framework.core.dsl.ui/src-gen/org/eclipse/osee/framework/core/dsl/ui/contentassist/antlr/internal/InternalOseeDsl.g:9701:1: ( ( RULE_WHOLE_NUM_STR ) )\n // ../org.eclipse.osee.framework.core.dsl.ui/src-gen/org/eclipse/osee/framework/core/dsl/ui/contentassist/antlr/internal/InternalOseeDsl.g:9702:1: ( RULE_WHOLE_NUM_STR )\n {\n // ../org.eclipse.osee.framework.core.dsl.ui/src-gen/org/eclipse/osee/framework/core/dsl/ui/contentassist/antlr/internal/InternalOseeDsl.g:9702:1: ( RULE_WHOLE_NUM_STR )\n // ../org.eclipse.osee.framework.core.dsl.ui/src-gen/org/eclipse/osee/framework/core/dsl/ui/contentassist/antlr/internal/InternalOseeDsl.g:9703:1: RULE_WHOLE_NUM_STR\n {\n before(grammarAccess.getAddEnumAccess().getOrdinalWHOLE_NUM_STRTerminalRuleCall_2_0()); \n match(input,RULE_WHOLE_NUM_STR,FOLLOW_RULE_WHOLE_NUM_STR_in_rule__AddEnum__OrdinalAssignment_219919); \n after(grammarAccess.getAddEnumAccess().getOrdinalWHOLE_NUM_STRTerminalRuleCall_2_0()); \n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" } ]
[ { "docid": "820419d502c965af77d13ad7de043fb0", "score": "0.8084893", "text": "public final void rule__XOseeEnumEntry__OrdinalAssignment_2() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.eclipse.osee.framework.core.dsl.ui/src-gen/org/eclipse/osee/framework/core/dsl/ui/contentassist/antlr/internal/InternalOseeDsl.g:9584:1: ( ( RULE_WHOLE_NUM_STR ) )\n // ../org.eclipse.osee.framework.core.dsl.ui/src-gen/org/eclipse/osee/framework/core/dsl/ui/contentassist/antlr/internal/InternalOseeDsl.g:9585:1: ( RULE_WHOLE_NUM_STR )\n {\n // ../org.eclipse.osee.framework.core.dsl.ui/src-gen/org/eclipse/osee/framework/core/dsl/ui/contentassist/antlr/internal/InternalOseeDsl.g:9585:1: ( RULE_WHOLE_NUM_STR )\n // ../org.eclipse.osee.framework.core.dsl.ui/src-gen/org/eclipse/osee/framework/core/dsl/ui/contentassist/antlr/internal/InternalOseeDsl.g:9586:1: RULE_WHOLE_NUM_STR\n {\n before(grammarAccess.getXOseeEnumEntryAccess().getOrdinalWHOLE_NUM_STRTerminalRuleCall_2_0()); \n match(input,RULE_WHOLE_NUM_STR,FOLLOW_RULE_WHOLE_NUM_STR_in_rule__XOseeEnumEntry__OrdinalAssignment_219681); \n after(grammarAccess.getXOseeEnumEntryAccess().getOrdinalWHOLE_NUM_STRTerminalRuleCall_2_0()); \n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "421870b723bd77ed4c195cd7aecf1ff9", "score": "0.7919909", "text": "public final void rule__AddEnum__Group__2__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.eclipse.osee.framework.core.dsl.ui/src-gen/org/eclipse/osee/framework/core/dsl/ui/contentassist/antlr/internal/InternalOseeDsl.g:4905:1: ( ( ( rule__AddEnum__OrdinalAssignment_2 )? ) )\n // ../org.eclipse.osee.framework.core.dsl.ui/src-gen/org/eclipse/osee/framework/core/dsl/ui/contentassist/antlr/internal/InternalOseeDsl.g:4906:1: ( ( rule__AddEnum__OrdinalAssignment_2 )? )\n {\n // ../org.eclipse.osee.framework.core.dsl.ui/src-gen/org/eclipse/osee/framework/core/dsl/ui/contentassist/antlr/internal/InternalOseeDsl.g:4906:1: ( ( rule__AddEnum__OrdinalAssignment_2 )? )\n // ../org.eclipse.osee.framework.core.dsl.ui/src-gen/org/eclipse/osee/framework/core/dsl/ui/contentassist/antlr/internal/InternalOseeDsl.g:4907:1: ( rule__AddEnum__OrdinalAssignment_2 )?\n {\n before(grammarAccess.getAddEnumAccess().getOrdinalAssignment_2()); \n // ../org.eclipse.osee.framework.core.dsl.ui/src-gen/org/eclipse/osee/framework/core/dsl/ui/contentassist/antlr/internal/InternalOseeDsl.g:4908:1: ( rule__AddEnum__OrdinalAssignment_2 )?\n int alt42=2;\n int LA42_0 = input.LA(1);\n\n if ( (LA42_0==RULE_WHOLE_NUM_STR) ) {\n alt42=1;\n }\n switch (alt42) {\n case 1 :\n // ../org.eclipse.osee.framework.core.dsl.ui/src-gen/org/eclipse/osee/framework/core/dsl/ui/contentassist/antlr/internal/InternalOseeDsl.g:4908:2: rule__AddEnum__OrdinalAssignment_2\n {\n pushFollow(FOLLOW_rule__AddEnum__OrdinalAssignment_2_in_rule__AddEnum__Group__2__Impl10089);\n rule__AddEnum__OrdinalAssignment_2();\n\n state._fsp--;\n\n\n }\n break;\n\n }\n\n after(grammarAccess.getAddEnumAccess().getOrdinalAssignment_2()); \n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "17439f142ac588fa1c7b6ed0e526ad6e", "score": "0.7546309", "text": "public final void rule__XOseeEnumEntry__Group__2__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.eclipse.osee.framework.core.dsl.ui/src-gen/org/eclipse/osee/framework/core/dsl/ui/contentassist/antlr/internal/InternalOseeDsl.g:4432:1: ( ( ( rule__XOseeEnumEntry__OrdinalAssignment_2 )? ) )\n // ../org.eclipse.osee.framework.core.dsl.ui/src-gen/org/eclipse/osee/framework/core/dsl/ui/contentassist/antlr/internal/InternalOseeDsl.g:4433:1: ( ( rule__XOseeEnumEntry__OrdinalAssignment_2 )? )\n {\n // ../org.eclipse.osee.framework.core.dsl.ui/src-gen/org/eclipse/osee/framework/core/dsl/ui/contentassist/antlr/internal/InternalOseeDsl.g:4433:1: ( ( rule__XOseeEnumEntry__OrdinalAssignment_2 )? )\n // ../org.eclipse.osee.framework.core.dsl.ui/src-gen/org/eclipse/osee/framework/core/dsl/ui/contentassist/antlr/internal/InternalOseeDsl.g:4434:1: ( rule__XOseeEnumEntry__OrdinalAssignment_2 )?\n {\n before(grammarAccess.getXOseeEnumEntryAccess().getOrdinalAssignment_2()); \n // ../org.eclipse.osee.framework.core.dsl.ui/src-gen/org/eclipse/osee/framework/core/dsl/ui/contentassist/antlr/internal/InternalOseeDsl.g:4435:1: ( rule__XOseeEnumEntry__OrdinalAssignment_2 )?\n int alt37=2;\n int LA37_0 = input.LA(1);\n\n if ( (LA37_0==RULE_WHOLE_NUM_STR) ) {\n alt37=1;\n }\n switch (alt37) {\n case 1 :\n // ../org.eclipse.osee.framework.core.dsl.ui/src-gen/org/eclipse/osee/framework/core/dsl/ui/contentassist/antlr/internal/InternalOseeDsl.g:4435:2: rule__XOseeEnumEntry__OrdinalAssignment_2\n {\n pushFollow(FOLLOW_rule__XOseeEnumEntry__OrdinalAssignment_2_in_rule__XOseeEnumEntry__Group__2__Impl9154);\n rule__XOseeEnumEntry__OrdinalAssignment_2();\n\n state._fsp--;\n\n\n }\n break;\n\n }\n\n after(grammarAccess.getXOseeEnumEntryAccess().getOrdinalAssignment_2()); \n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "8e7c5eda2a4667c0f6713f76ce64e25e", "score": "0.67312264", "text": "public final void rule__AddEnum__EnumEntryAssignment_1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.eclipse.osee.framework.core.dsl.ui/src-gen/org/eclipse/osee/framework/core/dsl/ui/contentassist/antlr/internal/InternalOseeDsl.g:9686:1: ( ( RULE_STRING ) )\n // ../org.eclipse.osee.framework.core.dsl.ui/src-gen/org/eclipse/osee/framework/core/dsl/ui/contentassist/antlr/internal/InternalOseeDsl.g:9687:1: ( RULE_STRING )\n {\n // ../org.eclipse.osee.framework.core.dsl.ui/src-gen/org/eclipse/osee/framework/core/dsl/ui/contentassist/antlr/internal/InternalOseeDsl.g:9687:1: ( RULE_STRING )\n // ../org.eclipse.osee.framework.core.dsl.ui/src-gen/org/eclipse/osee/framework/core/dsl/ui/contentassist/antlr/internal/InternalOseeDsl.g:9688:1: RULE_STRING\n {\n before(grammarAccess.getAddEnumAccess().getEnumEntrySTRINGTerminalRuleCall_1_0()); \n match(input,RULE_STRING,FOLLOW_RULE_STRING_in_rule__AddEnum__EnumEntryAssignment_119888); \n after(grammarAccess.getAddEnumAccess().getEnumEntrySTRINGTerminalRuleCall_1_0()); \n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "9af6827147a719dfff8ad4739fa58f71", "score": "0.6271827", "text": "public final void entryRuleAddEnum() throws RecognitionException {\n try {\n // ../org.eclipse.osee.framework.core.dsl.ui/src-gen/org/eclipse/osee/framework/core/dsl/ui/contentassist/antlr/internal/InternalOseeDsl.g:399:1: ( ruleAddEnum EOF )\n // ../org.eclipse.osee.framework.core.dsl.ui/src-gen/org/eclipse/osee/framework/core/dsl/ui/contentassist/antlr/internal/InternalOseeDsl.g:400:1: ruleAddEnum EOF\n {\n before(grammarAccess.getAddEnumRule()); \n pushFollow(FOLLOW_ruleAddEnum_in_entryRuleAddEnum783);\n ruleAddEnum();\n\n state._fsp--;\n\n after(grammarAccess.getAddEnumRule()); \n match(input,EOF,FOLLOW_EOF_in_entryRuleAddEnum790); \n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n }\n return ;\n }", "title": "" }, { "docid": "dc6b39fed0d7e6a31631fb5f667ad0bc", "score": "0.6082251", "text": "public final void entryRuleEnum() throws RecognitionException {\n try {\n // InternalIsml.g:349:1: ( ruleEnum EOF )\n // InternalIsml.g:350:1: ruleEnum EOF\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getEnumRule()); \n }\n pushFollow(FOLLOW_1);\n ruleEnum();\n\n state._fsp--;\n if (state.failed) return ;\n if ( state.backtracking==0 ) {\n after(grammarAccess.getEnumRule()); \n }\n match(input,EOF,FOLLOW_2); if (state.failed) return ;\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n }\n return ;\n }", "title": "" }, { "docid": "2d9261cfdb4a85ce87161a8d0f69daad", "score": "0.6056232", "text": "public final void rule__AddEnum__Group__1__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.eclipse.osee.framework.core.dsl.ui/src-gen/org/eclipse/osee/framework/core/dsl/ui/contentassist/antlr/internal/InternalOseeDsl.g:4876:1: ( ( ( rule__AddEnum__EnumEntryAssignment_1 ) ) )\n // ../org.eclipse.osee.framework.core.dsl.ui/src-gen/org/eclipse/osee/framework/core/dsl/ui/contentassist/antlr/internal/InternalOseeDsl.g:4877:1: ( ( rule__AddEnum__EnumEntryAssignment_1 ) )\n {\n // ../org.eclipse.osee.framework.core.dsl.ui/src-gen/org/eclipse/osee/framework/core/dsl/ui/contentassist/antlr/internal/InternalOseeDsl.g:4877:1: ( ( rule__AddEnum__EnumEntryAssignment_1 ) )\n // ../org.eclipse.osee.framework.core.dsl.ui/src-gen/org/eclipse/osee/framework/core/dsl/ui/contentassist/antlr/internal/InternalOseeDsl.g:4878:1: ( rule__AddEnum__EnumEntryAssignment_1 )\n {\n before(grammarAccess.getAddEnumAccess().getEnumEntryAssignment_1()); \n // ../org.eclipse.osee.framework.core.dsl.ui/src-gen/org/eclipse/osee/framework/core/dsl/ui/contentassist/antlr/internal/InternalOseeDsl.g:4879:1: ( rule__AddEnum__EnumEntryAssignment_1 )\n // ../org.eclipse.osee.framework.core.dsl.ui/src-gen/org/eclipse/osee/framework/core/dsl/ui/contentassist/antlr/internal/InternalOseeDsl.g:4879:2: rule__AddEnum__EnumEntryAssignment_1\n {\n pushFollow(FOLLOW_rule__AddEnum__EnumEntryAssignment_1_in_rule__AddEnum__Group__1__Impl10029);\n rule__AddEnum__EnumEntryAssignment_1();\n\n state._fsp--;\n\n\n }\n\n after(grammarAccess.getAddEnumAccess().getEnumEntryAssignment_1()); \n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "69111089fd518925789f5372fcd36e23", "score": "0.60456884", "text": "public final void rule__RemoveEnum__EnumEntryAssignment_1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.eclipse.osee.framework.core.dsl.ui/src-gen/org/eclipse/osee/framework/core/dsl/ui/contentassist/antlr/internal/InternalOseeDsl.g:9746:1: ( ( ( RULE_STRING ) ) )\n // ../org.eclipse.osee.framework.core.dsl.ui/src-gen/org/eclipse/osee/framework/core/dsl/ui/contentassist/antlr/internal/InternalOseeDsl.g:9747:1: ( ( RULE_STRING ) )\n {\n // ../org.eclipse.osee.framework.core.dsl.ui/src-gen/org/eclipse/osee/framework/core/dsl/ui/contentassist/antlr/internal/InternalOseeDsl.g:9747:1: ( ( RULE_STRING ) )\n // ../org.eclipse.osee.framework.core.dsl.ui/src-gen/org/eclipse/osee/framework/core/dsl/ui/contentassist/antlr/internal/InternalOseeDsl.g:9748:1: ( RULE_STRING )\n {\n before(grammarAccess.getRemoveEnumAccess().getEnumEntryXOseeEnumEntryCrossReference_1_0()); \n // ../org.eclipse.osee.framework.core.dsl.ui/src-gen/org/eclipse/osee/framework/core/dsl/ui/contentassist/antlr/internal/InternalOseeDsl.g:9749:1: ( RULE_STRING )\n // ../org.eclipse.osee.framework.core.dsl.ui/src-gen/org/eclipse/osee/framework/core/dsl/ui/contentassist/antlr/internal/InternalOseeDsl.g:9750:1: RULE_STRING\n {\n before(grammarAccess.getRemoveEnumAccess().getEnumEntryXOseeEnumEntrySTRINGTerminalRuleCall_1_0_1()); \n match(input,RULE_STRING,FOLLOW_RULE_STRING_in_rule__RemoveEnum__EnumEntryAssignment_120016); \n after(grammarAccess.getRemoveEnumAccess().getEnumEntryXOseeEnumEntrySTRINGTerminalRuleCall_1_0_1()); \n\n }\n\n after(grammarAccess.getRemoveEnumAccess().getEnumEntryXOseeEnumEntryCrossReference_1_0()); \n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "726af6229c1ee583a95b14f9f0488512", "score": "0.6041532", "text": "private void visitEnumConstantDef(JCVariableDecl var, int ordinal) {\n JCNewClass varDef = (JCNewClass)var.init;\n varDef.args = varDef.args.\n prepend(makeLit(syms.intType, ordinal)).\n prepend(makeLit(syms.stringType, var.name.toString()));\n }", "title": "" }, { "docid": "0eb922d391177c33928a675beb1816ce", "score": "0.6014598", "text": "public final Enumerator ruleType() throws RecognitionException {\n Enumerator current = null;\n\n Token enumLiteral_0=null;\n Token enumLiteral_1=null;\n Token enumLiteral_2=null;\n Token enumLiteral_3=null;\n Token enumLiteral_4=null;\n\n\n \tenterRule();\n\n try {\n // InternalArchitecture.g:927:2: ( ( (enumLiteral_0= 'INT' ) | (enumLiteral_1= 'STRING' ) | (enumLiteral_2= 'Boolean' ) | (enumLiteral_3= 'Double' ) | (enumLiteral_4= 'Void' ) ) )\n // InternalArchitecture.g:928:2: ( (enumLiteral_0= 'INT' ) | (enumLiteral_1= 'STRING' ) | (enumLiteral_2= 'Boolean' ) | (enumLiteral_3= 'Double' ) | (enumLiteral_4= 'Void' ) )\n {\n // InternalArchitecture.g:928:2: ( (enumLiteral_0= 'INT' ) | (enumLiteral_1= 'STRING' ) | (enumLiteral_2= 'Boolean' ) | (enumLiteral_3= 'Double' ) | (enumLiteral_4= 'Void' ) )\n int alt18=5;\n switch ( input.LA(1) ) {\n case 28:\n {\n alt18=1;\n }\n break;\n case 29:\n {\n alt18=2;\n }\n break;\n case 30:\n {\n alt18=3;\n }\n break;\n case 31:\n {\n alt18=4;\n }\n break;\n case 32:\n {\n alt18=5;\n }\n break;\n default:\n if (state.backtracking>0) {state.failed=true; return current;}\n NoViableAltException nvae =\n new NoViableAltException(\"\", 18, 0, input);\n\n throw nvae;\n }\n\n switch (alt18) {\n case 1 :\n // InternalArchitecture.g:929:3: (enumLiteral_0= 'INT' )\n {\n // InternalArchitecture.g:929:3: (enumLiteral_0= 'INT' )\n // InternalArchitecture.g:930:4: enumLiteral_0= 'INT'\n {\n enumLiteral_0=(Token)match(input,28,FOLLOW_2); if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\tcurrent = grammarAccess.getTypeAccess().getINTEnumLiteralDeclaration_0().getEnumLiteral().getInstance();\n \t\t\t\tnewLeafNode(enumLiteral_0, grammarAccess.getTypeAccess().getINTEnumLiteralDeclaration_0());\n \t\t\t\n }\n\n }\n\n\n }\n break;\n case 2 :\n // InternalArchitecture.g:937:3: (enumLiteral_1= 'STRING' )\n {\n // InternalArchitecture.g:937:3: (enumLiteral_1= 'STRING' )\n // InternalArchitecture.g:938:4: enumLiteral_1= 'STRING'\n {\n enumLiteral_1=(Token)match(input,29,FOLLOW_2); if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\tcurrent = grammarAccess.getTypeAccess().getSTRINGEnumLiteralDeclaration_1().getEnumLiteral().getInstance();\n \t\t\t\tnewLeafNode(enumLiteral_1, grammarAccess.getTypeAccess().getSTRINGEnumLiteralDeclaration_1());\n \t\t\t\n }\n\n }\n\n\n }\n break;\n case 3 :\n // InternalArchitecture.g:945:3: (enumLiteral_2= 'Boolean' )\n {\n // InternalArchitecture.g:945:3: (enumLiteral_2= 'Boolean' )\n // InternalArchitecture.g:946:4: enumLiteral_2= 'Boolean'\n {\n enumLiteral_2=(Token)match(input,30,FOLLOW_2); if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\tcurrent = grammarAccess.getTypeAccess().getBooleanEnumLiteralDeclaration_2().getEnumLiteral().getInstance();\n \t\t\t\tnewLeafNode(enumLiteral_2, grammarAccess.getTypeAccess().getBooleanEnumLiteralDeclaration_2());\n \t\t\t\n }\n\n }\n\n\n }\n break;\n case 4 :\n // InternalArchitecture.g:953:3: (enumLiteral_3= 'Double' )\n {\n // InternalArchitecture.g:953:3: (enumLiteral_3= 'Double' )\n // InternalArchitecture.g:954:4: enumLiteral_3= 'Double'\n {\n enumLiteral_3=(Token)match(input,31,FOLLOW_2); if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\tcurrent = grammarAccess.getTypeAccess().getDoubleEnumLiteralDeclaration_3().getEnumLiteral().getInstance();\n \t\t\t\tnewLeafNode(enumLiteral_3, grammarAccess.getTypeAccess().getDoubleEnumLiteralDeclaration_3());\n \t\t\t\n }\n\n }\n\n\n }\n break;\n case 5 :\n // InternalArchitecture.g:961:3: (enumLiteral_4= 'Void' )\n {\n // InternalArchitecture.g:961:3: (enumLiteral_4= 'Void' )\n // InternalArchitecture.g:962:4: enumLiteral_4= 'Void'\n {\n enumLiteral_4=(Token)match(input,32,FOLLOW_2); if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\tcurrent = grammarAccess.getTypeAccess().getVoidEnumLiteralDeclaration_4().getEnumLiteral().getInstance();\n \t\t\t\tnewLeafNode(enumLiteral_4, grammarAccess.getTypeAccess().getVoidEnumLiteralDeclaration_4());\n \t\t\t\n }\n\n }\n\n\n }\n break;\n\n }\n\n\n }\n\n if ( state.backtracking==0 ) {\n\n \tleaveRule();\n\n }\n }\n\n catch (RecognitionException re) {\n recover(input,re);\n appendSkippedTokens();\n }\n finally {\n }\n return current;\n }", "title": "" }, { "docid": "855bd86b2ccb4fd4dbf7f2a97a97db0c", "score": "0.5941178", "text": "public final void rule__ModelElementEqualsEnumerationLiteral__RightAssignment_2() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \t\r\n try {\r\n // InternalAadlV3.g:21758:1: ( ( ruleEnumerationLiteral ) )\r\n // InternalAadlV3.g:21759:2: ( ruleEnumerationLiteral )\r\n {\r\n // InternalAadlV3.g:21759:2: ( ruleEnumerationLiteral )\r\n // InternalAadlV3.g:21760:3: ruleEnumerationLiteral\r\n {\r\n if ( state.backtracking==0 ) {\r\n before(grammarAccess.getModelElementEqualsEnumerationLiteralAccess().getRightEnumerationLiteralParserRuleCall_2_0()); \r\n }\r\n pushFollow(FOLLOW_2);\r\n ruleEnumerationLiteral();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n if ( state.backtracking==0 ) {\r\n after(grammarAccess.getModelElementEqualsEnumerationLiteralAccess().getRightEnumerationLiteralParserRuleCall_2_0()); \r\n }\r\n\r\n }\r\n\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }", "title": "" }, { "docid": "0b022cb571666a2c5208a8e536ed92dc", "score": "0.58885205", "text": "public final void rule__ModelElementContainsEnumerationLiteral__RightAssignment_2() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \t\r\n try {\r\n // InternalAadlV3.g:21668:1: ( ( ruleEnumerationList ) )\r\n // InternalAadlV3.g:21669:2: ( ruleEnumerationList )\r\n {\r\n // InternalAadlV3.g:21669:2: ( ruleEnumerationList )\r\n // InternalAadlV3.g:21670:3: ruleEnumerationList\r\n {\r\n if ( state.backtracking==0 ) {\r\n before(grammarAccess.getModelElementContainsEnumerationLiteralAccess().getRightEnumerationListParserRuleCall_2_0()); \r\n }\r\n pushFollow(FOLLOW_2);\r\n ruleEnumerationList();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n if ( state.backtracking==0 ) {\r\n after(grammarAccess.getModelElementContainsEnumerationLiteralAccess().getRightEnumerationListParserRuleCall_2_0()); \r\n }\r\n\r\n }\r\n\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }", "title": "" }, { "docid": "56d488e149196b571c06790973748bee", "score": "0.58797145", "text": "@Override\n public void addEnum(EnumDataItem di, AlphanumericElementaryDataItem token, BonaTokenizableEnum n) throws IOException {\n if (n == null)\n writeNull(token);\n else\n addField(token, n.getToken());\n }", "title": "" }, { "docid": "728e300adf66e5f2eb1233a5741a1dd8", "score": "0.5876701", "text": "@Override\r\n public void visitEnumLiteral(EnumLiteral literal) {\n \r\n }", "title": "" }, { "docid": "64dee18bc4900b7d03b125ad33696cd9", "score": "0.5859238", "text": "@Override\n public void addEnum(XEnumDataItem di, AlphanumericElementaryDataItem token, XEnum<?> n) throws IOException {\n if (n == null)\n writeNull(token);\n else\n addField(token, n.getToken());\n }", "title": "" }, { "docid": "bc35b707bc71af8fbdaf223181334d2e", "score": "0.5853602", "text": "public final void rule__EnumerationList__ElementsAssignment_2_0() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \t\r\n try {\r\n // InternalAadlV3.g:22006:1: ( ( ruleEnumerationLiteral ) )\r\n // InternalAadlV3.g:22007:2: ( ruleEnumerationLiteral )\r\n {\r\n // InternalAadlV3.g:22007:2: ( ruleEnumerationLiteral )\r\n // InternalAadlV3.g:22008:3: ruleEnumerationLiteral\r\n {\r\n if ( state.backtracking==0 ) {\r\n before(grammarAccess.getEnumerationListAccess().getElementsEnumerationLiteralParserRuleCall_2_0_0()); \r\n }\r\n pushFollow(FOLLOW_2);\r\n ruleEnumerationLiteral();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n if ( state.backtracking==0 ) {\r\n after(grammarAccess.getEnumerationListAccess().getElementsEnumerationLiteralParserRuleCall_2_0_0()); \r\n }\r\n\r\n }\r\n\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }", "title": "" }, { "docid": "a718f58dd10919ea83b08d3994ec8287", "score": "0.58423", "text": "public final void rule__AddEnum__DescriptionAssignment_4_1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.eclipse.osee.framework.core.dsl.ui/src-gen/org/eclipse/osee/framework/core/dsl/ui/contentassist/antlr/internal/InternalOseeDsl.g:9731:1: ( ( RULE_STRING ) )\n // ../org.eclipse.osee.framework.core.dsl.ui/src-gen/org/eclipse/osee/framework/core/dsl/ui/contentassist/antlr/internal/InternalOseeDsl.g:9732:1: ( RULE_STRING )\n {\n // ../org.eclipse.osee.framework.core.dsl.ui/src-gen/org/eclipse/osee/framework/core/dsl/ui/contentassist/antlr/internal/InternalOseeDsl.g:9732:1: ( RULE_STRING )\n // ../org.eclipse.osee.framework.core.dsl.ui/src-gen/org/eclipse/osee/framework/core/dsl/ui/contentassist/antlr/internal/InternalOseeDsl.g:9733:1: RULE_STRING\n {\n before(grammarAccess.getAddEnumAccess().getDescriptionSTRINGTerminalRuleCall_4_1_0()); \n match(input,RULE_STRING,FOLLOW_RULE_STRING_in_rule__AddEnum__DescriptionAssignment_4_119981); \n after(grammarAccess.getAddEnumAccess().getDescriptionSTRINGTerminalRuleCall_4_1_0()); \n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "3df3fc0882f2260de06e8291c623b134", "score": "0.58410716", "text": "@Override\n public void addEnum(EnumDataItem di, BasicNumericElementaryDataItem ord, BonaNonTokenizableEnum n) throws IOException {\n if (n == null)\n writeNull(ord);\n else\n addField(ord, n.ordinal());\n }", "title": "" }, { "docid": "7301f3cc5a607f081a7204e5c408bb32", "score": "0.58304524", "text": "public final void rule__Type_definition__Type_definition_enumeration_refAssignment_15_2() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalMyDsl.g:36914:1: ( ( RULE_ID ) )\n // InternalMyDsl.g:36915:2: ( RULE_ID )\n {\n // InternalMyDsl.g:36915:2: ( RULE_ID )\n // InternalMyDsl.g:36916:3: RULE_ID\n {\n before(grammarAccess.getType_definitionAccess().getType_definition_enumeration_refIDTerminalRuleCall_15_2_0()); \n match(input,RULE_ID,FOLLOW_2); \n after(grammarAccess.getType_definitionAccess().getType_definition_enumeration_refIDTerminalRuleCall_15_2_0()); \n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "aaedaff85728a4f52df39cf2dbdce2b3", "score": "0.5809945", "text": "ArrayValue addEnum(int index, String value);", "title": "" }, { "docid": "32c07be1fdd53d2d622f88c1e876dc7c", "score": "0.5794359", "text": "public final void rule__AddEnum__Group_4__1__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.eclipse.osee.framework.core.dsl.ui/src-gen/org/eclipse/osee/framework/core/dsl/ui/contentassist/antlr/internal/InternalOseeDsl.g:5094:1: ( ( ( rule__AddEnum__DescriptionAssignment_4_1 ) ) )\n // ../org.eclipse.osee.framework.core.dsl.ui/src-gen/org/eclipse/osee/framework/core/dsl/ui/contentassist/antlr/internal/InternalOseeDsl.g:5095:1: ( ( rule__AddEnum__DescriptionAssignment_4_1 ) )\n {\n // ../org.eclipse.osee.framework.core.dsl.ui/src-gen/org/eclipse/osee/framework/core/dsl/ui/contentassist/antlr/internal/InternalOseeDsl.g:5095:1: ( ( rule__AddEnum__DescriptionAssignment_4_1 ) )\n // ../org.eclipse.osee.framework.core.dsl.ui/src-gen/org/eclipse/osee/framework/core/dsl/ui/contentassist/antlr/internal/InternalOseeDsl.g:5096:1: ( rule__AddEnum__DescriptionAssignment_4_1 )\n {\n before(grammarAccess.getAddEnumAccess().getDescriptionAssignment_4_1()); \n // ../org.eclipse.osee.framework.core.dsl.ui/src-gen/org/eclipse/osee/framework/core/dsl/ui/contentassist/antlr/internal/InternalOseeDsl.g:5097:1: ( rule__AddEnum__DescriptionAssignment_4_1 )\n // ../org.eclipse.osee.framework.core.dsl.ui/src-gen/org/eclipse/osee/framework/core/dsl/ui/contentassist/antlr/internal/InternalOseeDsl.g:5097:2: rule__AddEnum__DescriptionAssignment_4_1\n {\n pushFollow(FOLLOW_rule__AddEnum__DescriptionAssignment_4_1_in_rule__AddEnum__Group_4__1__Impl10461);\n rule__AddEnum__DescriptionAssignment_4_1();\n\n state._fsp--;\n\n\n }\n\n after(grammarAccess.getAddEnumAccess().getDescriptionAssignment_4_1()); \n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "46bd5eec95b52576c232382a7554dbb9", "score": "0.57909477", "text": "public final void rule__AddEnum__Group__2() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.eclipse.osee.framework.core.dsl.ui/src-gen/org/eclipse/osee/framework/core/dsl/ui/contentassist/antlr/internal/InternalOseeDsl.g:4893:1: ( rule__AddEnum__Group__2__Impl rule__AddEnum__Group__3 )\n // ../org.eclipse.osee.framework.core.dsl.ui/src-gen/org/eclipse/osee/framework/core/dsl/ui/contentassist/antlr/internal/InternalOseeDsl.g:4894:2: rule__AddEnum__Group__2__Impl rule__AddEnum__Group__3\n {\n pushFollow(FOLLOW_rule__AddEnum__Group__2__Impl_in_rule__AddEnum__Group__210059);\n rule__AddEnum__Group__2__Impl();\n\n state._fsp--;\n\n pushFollow(FOLLOW_rule__AddEnum__Group__3_in_rule__AddEnum__Group__210062);\n rule__AddEnum__Group__3();\n\n state._fsp--;\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "42787d994eb6bdf35c2b6c09b5f81c67", "score": "0.57823086", "text": "public final void rule__AddEnum__EntryGuidAssignment_3_1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.eclipse.osee.framework.core.dsl.ui/src-gen/org/eclipse/osee/framework/core/dsl/ui/contentassist/antlr/internal/InternalOseeDsl.g:9716:1: ( ( RULE_STRING ) )\n // ../org.eclipse.osee.framework.core.dsl.ui/src-gen/org/eclipse/osee/framework/core/dsl/ui/contentassist/antlr/internal/InternalOseeDsl.g:9717:1: ( RULE_STRING )\n {\n // ../org.eclipse.osee.framework.core.dsl.ui/src-gen/org/eclipse/osee/framework/core/dsl/ui/contentassist/antlr/internal/InternalOseeDsl.g:9717:1: ( RULE_STRING )\n // ../org.eclipse.osee.framework.core.dsl.ui/src-gen/org/eclipse/osee/framework/core/dsl/ui/contentassist/antlr/internal/InternalOseeDsl.g:9718:1: RULE_STRING\n {\n before(grammarAccess.getAddEnumAccess().getEntryGuidSTRINGTerminalRuleCall_3_1_0()); \n match(input,RULE_STRING,FOLLOW_RULE_STRING_in_rule__AddEnum__EntryGuidAssignment_3_119950); \n after(grammarAccess.getAddEnumAccess().getEntryGuidSTRINGTerminalRuleCall_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 }", "title": "" }, { "docid": "309e696949bb5227b95f7c1315d90e49", "score": "0.57795393", "text": "public final void rule__Type_definition__Type_definition_enumeration_refAssignment_16_2() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalMyDsl.g:36944:1: ( ( RULE_ID ) )\n // InternalMyDsl.g:36945:2: ( RULE_ID )\n {\n // InternalMyDsl.g:36945:2: ( RULE_ID )\n // InternalMyDsl.g:36946:3: RULE_ID\n {\n before(grammarAccess.getType_definitionAccess().getType_definition_enumeration_refIDTerminalRuleCall_16_2_0()); \n match(input,RULE_ID,FOLLOW_2); \n after(grammarAccess.getType_definitionAccess().getType_definition_enumeration_refIDTerminalRuleCall_16_2_0()); \n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "f875ee12f324d9d64287b35c95330c22", "score": "0.57671607", "text": "public final void rule__EnumerationList__ElementsAssignment_2_1_1() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \t\r\n try {\r\n // InternalAadlV3.g:22021:1: ( ( ruleEnumerationLiteral ) )\r\n // InternalAadlV3.g:22022:2: ( ruleEnumerationLiteral )\r\n {\r\n // InternalAadlV3.g:22022:2: ( ruleEnumerationLiteral )\r\n // InternalAadlV3.g:22023:3: ruleEnumerationLiteral\r\n {\r\n if ( state.backtracking==0 ) {\r\n before(grammarAccess.getEnumerationListAccess().getElementsEnumerationLiteralParserRuleCall_2_1_1_0()); \r\n }\r\n pushFollow(FOLLOW_2);\r\n ruleEnumerationLiteral();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n if ( state.backtracking==0 ) {\r\n after(grammarAccess.getEnumerationListAccess().getElementsEnumerationLiteralParserRuleCall_2_1_1_0()); \r\n }\r\n\r\n }\r\n\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }", "title": "" }, { "docid": "837a6a0b4da4c1d912f719c35b19a46d", "score": "0.5762457", "text": "public final void entryRuleEnumerationLiteral() throws RecognitionException {\r\n try {\r\n // InternalAadlV3.g:1991:1: ( ruleEnumerationLiteral EOF )\r\n // InternalAadlV3.g:1992:1: ruleEnumerationLiteral EOF\r\n {\r\n if ( state.backtracking==0 ) {\r\n before(grammarAccess.getEnumerationLiteralRule()); \r\n }\r\n pushFollow(FOLLOW_1);\r\n ruleEnumerationLiteral();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n if ( state.backtracking==0 ) {\r\n after(grammarAccess.getEnumerationLiteralRule()); \r\n }\r\n match(input,EOF,FOLLOW_2); if (state.failed) return ;\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n }\r\n return ;\r\n }", "title": "" }, { "docid": "f593a2eed2fb5e6bd7fda6a49b02f063", "score": "0.5758846", "text": "public final void ruleAddEnum() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.eclipse.osee.framework.core.dsl.ui/src-gen/org/eclipse/osee/framework/core/dsl/ui/contentassist/antlr/internal/InternalOseeDsl.g:411:2: ( ( ( rule__AddEnum__Group__0 ) ) )\n // ../org.eclipse.osee.framework.core.dsl.ui/src-gen/org/eclipse/osee/framework/core/dsl/ui/contentassist/antlr/internal/InternalOseeDsl.g:412:1: ( ( rule__AddEnum__Group__0 ) )\n {\n // ../org.eclipse.osee.framework.core.dsl.ui/src-gen/org/eclipse/osee/framework/core/dsl/ui/contentassist/antlr/internal/InternalOseeDsl.g:412:1: ( ( rule__AddEnum__Group__0 ) )\n // ../org.eclipse.osee.framework.core.dsl.ui/src-gen/org/eclipse/osee/framework/core/dsl/ui/contentassist/antlr/internal/InternalOseeDsl.g:413:1: ( rule__AddEnum__Group__0 )\n {\n before(grammarAccess.getAddEnumAccess().getGroup()); \n // ../org.eclipse.osee.framework.core.dsl.ui/src-gen/org/eclipse/osee/framework/core/dsl/ui/contentassist/antlr/internal/InternalOseeDsl.g:414:1: ( rule__AddEnum__Group__0 )\n // ../org.eclipse.osee.framework.core.dsl.ui/src-gen/org/eclipse/osee/framework/core/dsl/ui/contentassist/antlr/internal/InternalOseeDsl.g:414:2: rule__AddEnum__Group__0\n {\n pushFollow(FOLLOW_rule__AddEnum__Group__0_in_ruleAddEnum816);\n rule__AddEnum__Group__0();\n\n state._fsp--;\n\n\n }\n\n after(grammarAccess.getAddEnumAccess().getGroup()); \n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "1603599076d237319c4f0f936277106a", "score": "0.56908274", "text": "public final void rule__XOseeEnumEntry__DescriptionAssignment_4_1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.eclipse.osee.framework.core.dsl.ui/src-gen/org/eclipse/osee/framework/core/dsl/ui/contentassist/antlr/internal/InternalOseeDsl.g:9614:1: ( ( RULE_STRING ) )\n // ../org.eclipse.osee.framework.core.dsl.ui/src-gen/org/eclipse/osee/framework/core/dsl/ui/contentassist/antlr/internal/InternalOseeDsl.g:9615:1: ( RULE_STRING )\n {\n // ../org.eclipse.osee.framework.core.dsl.ui/src-gen/org/eclipse/osee/framework/core/dsl/ui/contentassist/antlr/internal/InternalOseeDsl.g:9615:1: ( RULE_STRING )\n // ../org.eclipse.osee.framework.core.dsl.ui/src-gen/org/eclipse/osee/framework/core/dsl/ui/contentassist/antlr/internal/InternalOseeDsl.g:9616:1: RULE_STRING\n {\n before(grammarAccess.getXOseeEnumEntryAccess().getDescriptionSTRINGTerminalRuleCall_4_1_0()); \n match(input,RULE_STRING,FOLLOW_RULE_STRING_in_rule__XOseeEnumEntry__DescriptionAssignment_4_119743); \n after(grammarAccess.getXOseeEnumEntryAccess().getDescriptionSTRINGTerminalRuleCall_4_1_0()); \n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "748e69b87ad4f00f4da6b97b9cd425c3", "score": "0.5679754", "text": "ArrayValue addEnum(String value);", "title": "" }, { "docid": "6e0a92227ba9bdd254ed5ca2090c61ca", "score": "0.5675049", "text": "public final smaliParser.enum_literal_return enum_literal() throws RecognitionException {\n smaliParser.enum_literal_return retval = new smaliParser.enum_literal_return();\n retval.start = input.LT(1);\n\n CommonTree root_0 = null;\n\n Token ENUM_DIRECTIVE149=null;\n Token ARROW151=null;\n Token COLON153=null;\n smaliParser.reference_type_descriptor_return reference_type_descriptor150 = null;\n\n smaliParser.simple_name_return simple_name152 = null;\n\n smaliParser.reference_type_descriptor_return reference_type_descriptor154 = null;\n\n\n CommonTree ENUM_DIRECTIVE149_tree=null;\n CommonTree ARROW151_tree=null;\n CommonTree COLON153_tree=null;\n RewriteRuleTokenStream stream_COLON=new RewriteRuleTokenStream(adaptor,\"token COLON\");\n RewriteRuleTokenStream stream_ENUM_DIRECTIVE=new RewriteRuleTokenStream(adaptor,\"token ENUM_DIRECTIVE\");\n RewriteRuleTokenStream stream_ARROW=new RewriteRuleTokenStream(adaptor,\"token ARROW\");\n RewriteRuleSubtreeStream stream_reference_type_descriptor=new RewriteRuleSubtreeStream(adaptor,\"rule reference_type_descriptor\");\n RewriteRuleSubtreeStream stream_simple_name=new RewriteRuleSubtreeStream(adaptor,\"rule simple_name\");\n try {\n // org/jf/smali/smaliParser.g:559:2: ( ENUM_DIRECTIVE reference_type_descriptor ARROW simple_name COLON reference_type_descriptor -> ^( I_ENCODED_ENUM reference_type_descriptor simple_name reference_type_descriptor ) )\n // org/jf/smali/smaliParser.g:559:4: ENUM_DIRECTIVE reference_type_descriptor ARROW simple_name COLON reference_type_descriptor\n {\n ENUM_DIRECTIVE149=(Token)match(input,ENUM_DIRECTIVE,FOLLOW_ENUM_DIRECTIVE_in_enum_literal1959); \n stream_ENUM_DIRECTIVE.add(ENUM_DIRECTIVE149);\n\n pushFollow(FOLLOW_reference_type_descriptor_in_enum_literal1961);\n reference_type_descriptor150=reference_type_descriptor();\n\n state._fsp--;\n\n stream_reference_type_descriptor.add(reference_type_descriptor150.getTree());\n ARROW151=(Token)match(input,ARROW,FOLLOW_ARROW_in_enum_literal1963); \n stream_ARROW.add(ARROW151);\n\n pushFollow(FOLLOW_simple_name_in_enum_literal1965);\n simple_name152=simple_name();\n\n state._fsp--;\n\n stream_simple_name.add(simple_name152.getTree());\n COLON153=(Token)match(input,COLON,FOLLOW_COLON_in_enum_literal1967); \n stream_COLON.add(COLON153);\n\n pushFollow(FOLLOW_reference_type_descriptor_in_enum_literal1969);\n reference_type_descriptor154=reference_type_descriptor();\n\n state._fsp--;\n\n stream_reference_type_descriptor.add(reference_type_descriptor154.getTree());\n\n\n // AST REWRITE\n // elements: reference_type_descriptor, simple_name, reference_type_descriptor\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 // 560:2: -> ^( I_ENCODED_ENUM reference_type_descriptor simple_name reference_type_descriptor )\n {\n // org/jf/smali/smaliParser.g:560:5: ^( I_ENCODED_ENUM reference_type_descriptor simple_name reference_type_descriptor )\n {\n CommonTree root_1 = (CommonTree)adaptor.nil();\n root_1 = (CommonTree)adaptor.becomeRoot((CommonTree)adaptor.create(I_ENCODED_ENUM, \"I_ENCODED_ENUM\"), root_1);\n\n adaptor.addChild(root_1, stream_reference_type_descriptor.nextTree());\n adaptor.addChild(root_1, stream_simple_name.nextTree());\n adaptor.addChild(root_1, stream_reference_type_descriptor.nextTree());\n\n adaptor.addChild(root_0, root_1);\n }\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 }", "title": "" }, { "docid": "160f89a0c6588068dd7fca0bc54a2b3d", "score": "0.5610763", "text": "@Override\r\n public void visitOrderedEnum(OrderedEnum eenum) {\n \r\n }", "title": "" }, { "docid": "b62fafd21b25c807fd938ab453e41723", "score": "0.5591028", "text": "public final EObject ruleEnumStatement() throws RecognitionException {\n EObject current = null;\n\n Token otherlv_0=null;\n Token lv_name_1_0=null;\n Token otherlv_2=null;\n Token otherlv_3=null;\n Token otherlv_5=null;\n Token otherlv_7=null;\n Token otherlv_8=null;\n EObject lv_enums_4_0 = null;\n\n EObject lv_enums_6_0 = null;\n\n\n\n \tenterRule();\n\n try {\n // InternalAgreeParser.g:5055:2: ( (otherlv_0= Enum ( (lv_name_1_0= RULE_ID ) ) otherlv_2= EqualsSign otherlv_3= LeftCurlyBracket ( (lv_enums_4_0= ruleNamedID ) ) (otherlv_5= Comma ( (lv_enums_6_0= ruleNamedID ) ) )* otherlv_7= RightCurlyBracket otherlv_8= Semicolon ) )\n // InternalAgreeParser.g:5056:2: (otherlv_0= Enum ( (lv_name_1_0= RULE_ID ) ) otherlv_2= EqualsSign otherlv_3= LeftCurlyBracket ( (lv_enums_4_0= ruleNamedID ) ) (otherlv_5= Comma ( (lv_enums_6_0= ruleNamedID ) ) )* otherlv_7= RightCurlyBracket otherlv_8= Semicolon )\n {\n // InternalAgreeParser.g:5056:2: (otherlv_0= Enum ( (lv_name_1_0= RULE_ID ) ) otherlv_2= EqualsSign otherlv_3= LeftCurlyBracket ( (lv_enums_4_0= ruleNamedID ) ) (otherlv_5= Comma ( (lv_enums_6_0= ruleNamedID ) ) )* otherlv_7= RightCurlyBracket otherlv_8= Semicolon )\n // InternalAgreeParser.g:5057:3: otherlv_0= Enum ( (lv_name_1_0= RULE_ID ) ) otherlv_2= EqualsSign otherlv_3= LeftCurlyBracket ( (lv_enums_4_0= ruleNamedID ) ) (otherlv_5= Comma ( (lv_enums_6_0= ruleNamedID ) ) )* otherlv_7= RightCurlyBracket otherlv_8= Semicolon\n {\n otherlv_0=(Token)match(input,Enum,FollowSets000.FOLLOW_9); if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\tnewLeafNode(otherlv_0, grammarAccess.getEnumStatementAccess().getEnumKeyword_0());\n \t\t\n }\n // InternalAgreeParser.g:5061:3: ( (lv_name_1_0= RULE_ID ) )\n // InternalAgreeParser.g:5062:4: (lv_name_1_0= RULE_ID )\n {\n // InternalAgreeParser.g:5062:4: (lv_name_1_0= RULE_ID )\n // InternalAgreeParser.g:5063:5: lv_name_1_0= RULE_ID\n {\n lv_name_1_0=(Token)match(input,RULE_ID,FollowSets000.FOLLOW_46); if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\tnewLeafNode(lv_name_1_0, grammarAccess.getEnumStatementAccess().getNameIDTerminalRuleCall_1_0());\n \t\t\t\t\n }\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\tif (current==null) {\n \t\t\t\t\t\tcurrent = createModelElement(grammarAccess.getEnumStatementRule());\n \t\t\t\t\t}\n \t\t\t\t\tsetWithLastConsumed(\n \t\t\t\t\t\tcurrent,\n \t\t\t\t\t\t\"name\",\n \t\t\t\t\t\tlv_name_1_0,\n \t\t\t\t\t\t\"org.osate.xtext.aadl2.properties.Properties.ID\");\n \t\t\t\t\n }\n\n }\n\n\n }\n\n otherlv_2=(Token)match(input,EqualsSign,FollowSets000.FOLLOW_66); if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\tnewLeafNode(otherlv_2, grammarAccess.getEnumStatementAccess().getEqualsSignKeyword_2());\n \t\t\n }\n otherlv_3=(Token)match(input,LeftCurlyBracket,FollowSets000.FOLLOW_9); if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\tnewLeafNode(otherlv_3, grammarAccess.getEnumStatementAccess().getLeftCurlyBracketKeyword_3());\n \t\t\n }\n // InternalAgreeParser.g:5087:3: ( (lv_enums_4_0= ruleNamedID ) )\n // InternalAgreeParser.g:5088:4: (lv_enums_4_0= ruleNamedID )\n {\n // InternalAgreeParser.g:5088:4: (lv_enums_4_0= ruleNamedID )\n // InternalAgreeParser.g:5089:5: lv_enums_4_0= ruleNamedID\n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\tnewCompositeNode(grammarAccess.getEnumStatementAccess().getEnumsNamedIDParserRuleCall_4_0());\n \t\t\t\t\n }\n pushFollow(FollowSets000.FOLLOW_67);\n lv_enums_4_0=ruleNamedID();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\tif (current==null) {\n \t\t\t\t\t\tcurrent = createModelElementForParent(grammarAccess.getEnumStatementRule());\n \t\t\t\t\t}\n \t\t\t\t\tadd(\n \t\t\t\t\t\tcurrent,\n \t\t\t\t\t\t\"enums\",\n \t\t\t\t\t\tlv_enums_4_0,\n \t\t\t\t\t\t\"com.rockwellcollins.atc.agree.Agree.NamedID\");\n \t\t\t\t\tafterParserOrEnumRuleCall();\n \t\t\t\t\n }\n\n }\n\n\n }\n\n // InternalAgreeParser.g:5106:3: (otherlv_5= Comma ( (lv_enums_6_0= ruleNamedID ) ) )*\n loop71:\n do {\n int alt71=2;\n int LA71_0 = input.LA(1);\n\n if ( (LA71_0==Comma) ) {\n alt71=1;\n }\n\n\n switch (alt71) {\n \tcase 1 :\n \t // InternalAgreeParser.g:5107:4: otherlv_5= Comma ( (lv_enums_6_0= ruleNamedID ) )\n \t {\n \t otherlv_5=(Token)match(input,Comma,FollowSets000.FOLLOW_9); if (state.failed) return current;\n \t if ( state.backtracking==0 ) {\n\n \t \t\t\t\tnewLeafNode(otherlv_5, grammarAccess.getEnumStatementAccess().getCommaKeyword_5_0());\n \t \t\t\t\n \t }\n \t // InternalAgreeParser.g:5111:4: ( (lv_enums_6_0= ruleNamedID ) )\n \t // InternalAgreeParser.g:5112:5: (lv_enums_6_0= ruleNamedID )\n \t {\n \t // InternalAgreeParser.g:5112:5: (lv_enums_6_0= ruleNamedID )\n \t // InternalAgreeParser.g:5113:6: lv_enums_6_0= ruleNamedID\n \t {\n \t if ( state.backtracking==0 ) {\n\n \t \t\t\t\t\t\tnewCompositeNode(grammarAccess.getEnumStatementAccess().getEnumsNamedIDParserRuleCall_5_1_0());\n \t \t\t\t\t\t\n \t }\n \t pushFollow(FollowSets000.FOLLOW_67);\n \t lv_enums_6_0=ruleNamedID();\n\n \t state._fsp--;\n \t if (state.failed) return current;\n \t if ( state.backtracking==0 ) {\n\n \t \t\t\t\t\t\tif (current==null) {\n \t \t\t\t\t\t\t\tcurrent = createModelElementForParent(grammarAccess.getEnumStatementRule());\n \t \t\t\t\t\t\t}\n \t \t\t\t\t\t\tadd(\n \t \t\t\t\t\t\t\tcurrent,\n \t \t\t\t\t\t\t\t\"enums\",\n \t \t\t\t\t\t\t\tlv_enums_6_0,\n \t \t\t\t\t\t\t\t\"com.rockwellcollins.atc.agree.Agree.NamedID\");\n \t \t\t\t\t\t\tafterParserOrEnumRuleCall();\n \t \t\t\t\t\t\n \t }\n\n \t }\n\n\n \t }\n\n\n \t }\n \t break;\n\n \tdefault :\n \t break loop71;\n }\n } while (true);\n\n otherlv_7=(Token)match(input,RightCurlyBracket,FollowSets000.FOLLOW_6); if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\tnewLeafNode(otherlv_7, grammarAccess.getEnumStatementAccess().getRightCurlyBracketKeyword_6());\n \t\t\n }\n otherlv_8=(Token)match(input,Semicolon,FollowSets000.FOLLOW_2); if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\tnewLeafNode(otherlv_8, grammarAccess.getEnumStatementAccess().getSemicolonKeyword_7());\n \t\t\n }\n\n }\n\n\n }\n\n if ( state.backtracking==0 ) {\n\n \tleaveRule();\n\n }\n }\n\n catch (RecognitionException re) {\n recover(input,re);\n appendSkippedTokens();\n }\n finally {\n }\n return current;\n }", "title": "" }, { "docid": "0649eb826d37bb0ce12b68576348a526", "score": "0.5557166", "text": "public final Enumerator ruleWizardType() throws RecognitionException {\n Enumerator current = null;\n\n Token enumLiteral_0=null;\n Token enumLiteral_1=null;\n Token enumLiteral_2=null;\n\n enterRule(); \n try {\n // ../co.edu.uniandes.enar.picture/src-gen/co/edu/uniandes/enar/parser/antlr/internal/InternalPicture.g:7023:28: ( ( (enumLiteral_0= 'create' ) | (enumLiteral_1= 'edit' ) | (enumLiteral_2= 'info' ) ) )\n // ../co.edu.uniandes.enar.picture/src-gen/co/edu/uniandes/enar/parser/antlr/internal/InternalPicture.g:7024:1: ( (enumLiteral_0= 'create' ) | (enumLiteral_1= 'edit' ) | (enumLiteral_2= 'info' ) )\n {\n // ../co.edu.uniandes.enar.picture/src-gen/co/edu/uniandes/enar/parser/antlr/internal/InternalPicture.g:7024:1: ( (enumLiteral_0= 'create' ) | (enumLiteral_1= 'edit' ) | (enumLiteral_2= 'info' ) )\n int alt64=3;\n switch ( input.LA(1) ) {\n case 137:\n {\n alt64=1;\n }\n break;\n case 148:\n {\n alt64=2;\n }\n break;\n case 149:\n {\n alt64=3;\n }\n break;\n default:\n NoViableAltException nvae =\n new NoViableAltException(\"\", 64, 0, input);\n\n throw nvae;\n }\n\n switch (alt64) {\n case 1 :\n // ../co.edu.uniandes.enar.picture/src-gen/co/edu/uniandes/enar/parser/antlr/internal/InternalPicture.g:7024:2: (enumLiteral_0= 'create' )\n {\n // ../co.edu.uniandes.enar.picture/src-gen/co/edu/uniandes/enar/parser/antlr/internal/InternalPicture.g:7024:2: (enumLiteral_0= 'create' )\n // ../co.edu.uniandes.enar.picture/src-gen/co/edu/uniandes/enar/parser/antlr/internal/InternalPicture.g:7024:4: enumLiteral_0= 'create'\n {\n enumLiteral_0=(Token)match(input,137,FOLLOW_137_in_ruleWizardType15991); \n\n current = grammarAccess.getWizardTypeAccess().getCreateEnumLiteralDeclaration_0().getEnumLiteral().getInstance();\n newLeafNode(enumLiteral_0, grammarAccess.getWizardTypeAccess().getCreateEnumLiteralDeclaration_0()); \n \n\n }\n\n\n }\n break;\n case 2 :\n // ../co.edu.uniandes.enar.picture/src-gen/co/edu/uniandes/enar/parser/antlr/internal/InternalPicture.g:7030:6: (enumLiteral_1= 'edit' )\n {\n // ../co.edu.uniandes.enar.picture/src-gen/co/edu/uniandes/enar/parser/antlr/internal/InternalPicture.g:7030:6: (enumLiteral_1= 'edit' )\n // ../co.edu.uniandes.enar.picture/src-gen/co/edu/uniandes/enar/parser/antlr/internal/InternalPicture.g:7030:8: enumLiteral_1= 'edit'\n {\n enumLiteral_1=(Token)match(input,148,FOLLOW_148_in_ruleWizardType16008); \n\n current = grammarAccess.getWizardTypeAccess().getEditEnumLiteralDeclaration_1().getEnumLiteral().getInstance();\n newLeafNode(enumLiteral_1, grammarAccess.getWizardTypeAccess().getEditEnumLiteralDeclaration_1()); \n \n\n }\n\n\n }\n break;\n case 3 :\n // ../co.edu.uniandes.enar.picture/src-gen/co/edu/uniandes/enar/parser/antlr/internal/InternalPicture.g:7036:6: (enumLiteral_2= 'info' )\n {\n // ../co.edu.uniandes.enar.picture/src-gen/co/edu/uniandes/enar/parser/antlr/internal/InternalPicture.g:7036:6: (enumLiteral_2= 'info' )\n // ../co.edu.uniandes.enar.picture/src-gen/co/edu/uniandes/enar/parser/antlr/internal/InternalPicture.g:7036:8: enumLiteral_2= 'info'\n {\n enumLiteral_2=(Token)match(input,149,FOLLOW_149_in_ruleWizardType16025); \n\n current = grammarAccess.getWizardTypeAccess().getInfoEnumLiteralDeclaration_2().getEnumLiteral().getInstance();\n newLeafNode(enumLiteral_2, grammarAccess.getWizardTypeAccess().getInfoEnumLiteralDeclaration_2()); \n \n\n }\n\n\n }\n break;\n\n }\n\n\n }\n\n leaveRule(); \n }\n \n catch (RecognitionException re) { \n recover(input,re); \n appendSkippedTokens();\n } \n finally {\n }\n return current;\n }", "title": "" }, { "docid": "943275910499e40560de72c616a0b63b", "score": "0.55461645", "text": "public final void rule__XOseeEnumEntry__NameAssignment_1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.eclipse.osee.framework.core.dsl.ui/src-gen/org/eclipse/osee/framework/core/dsl/ui/contentassist/antlr/internal/InternalOseeDsl.g:9569:1: ( ( RULE_STRING ) )\n // ../org.eclipse.osee.framework.core.dsl.ui/src-gen/org/eclipse/osee/framework/core/dsl/ui/contentassist/antlr/internal/InternalOseeDsl.g:9570:1: ( RULE_STRING )\n {\n // ../org.eclipse.osee.framework.core.dsl.ui/src-gen/org/eclipse/osee/framework/core/dsl/ui/contentassist/antlr/internal/InternalOseeDsl.g:9570:1: ( RULE_STRING )\n // ../org.eclipse.osee.framework.core.dsl.ui/src-gen/org/eclipse/osee/framework/core/dsl/ui/contentassist/antlr/internal/InternalOseeDsl.g:9571:1: RULE_STRING\n {\n before(grammarAccess.getXOseeEnumEntryAccess().getNameSTRINGTerminalRuleCall_1_0()); \n match(input,RULE_STRING,FOLLOW_RULE_STRING_in_rule__XOseeEnumEntry__NameAssignment_119650); \n after(grammarAccess.getXOseeEnumEntryAccess().getNameSTRINGTerminalRuleCall_1_0()); \n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "7eeea5d84129617e02f756bbecaa144c", "score": "0.5544264", "text": "ArrayValue addEnum(String[] values);", "title": "" }, { "docid": "c3c68af6e2e48f0b2f4d3090337445ec", "score": "0.55411464", "text": "public final void rule__AddEnum__Group_3__1__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.eclipse.osee.framework.core.dsl.ui/src-gen/org/eclipse/osee/framework/core/dsl/ui/contentassist/antlr/internal/InternalOseeDsl.g:5031:1: ( ( ( rule__AddEnum__EntryGuidAssignment_3_1 ) ) )\n // ../org.eclipse.osee.framework.core.dsl.ui/src-gen/org/eclipse/osee/framework/core/dsl/ui/contentassist/antlr/internal/InternalOseeDsl.g:5032:1: ( ( rule__AddEnum__EntryGuidAssignment_3_1 ) )\n {\n // ../org.eclipse.osee.framework.core.dsl.ui/src-gen/org/eclipse/osee/framework/core/dsl/ui/contentassist/antlr/internal/InternalOseeDsl.g:5032:1: ( ( rule__AddEnum__EntryGuidAssignment_3_1 ) )\n // ../org.eclipse.osee.framework.core.dsl.ui/src-gen/org/eclipse/osee/framework/core/dsl/ui/contentassist/antlr/internal/InternalOseeDsl.g:5033:1: ( rule__AddEnum__EntryGuidAssignment_3_1 )\n {\n before(grammarAccess.getAddEnumAccess().getEntryGuidAssignment_3_1()); \n // ../org.eclipse.osee.framework.core.dsl.ui/src-gen/org/eclipse/osee/framework/core/dsl/ui/contentassist/antlr/internal/InternalOseeDsl.g:5034:1: ( rule__AddEnum__EntryGuidAssignment_3_1 )\n // ../org.eclipse.osee.framework.core.dsl.ui/src-gen/org/eclipse/osee/framework/core/dsl/ui/contentassist/antlr/internal/InternalOseeDsl.g:5034:2: rule__AddEnum__EntryGuidAssignment_3_1\n {\n pushFollow(FOLLOW_rule__AddEnum__EntryGuidAssignment_3_1_in_rule__AddEnum__Group_3__1__Impl10338);\n rule__AddEnum__EntryGuidAssignment_3_1();\n\n state._fsp--;\n\n\n }\n\n after(grammarAccess.getAddEnumAccess().getEntryGuidAssignment_3_1()); \n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "ca13d2230cd3d365b5baff71309f4c3d", "score": "0.5539021", "text": "public final void rule__ModelElementContainsEnumerationLiteral__Group__2__Impl() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \t\r\n try {\r\n // InternalAadlV3.g:15217:1: ( ( ( rule__ModelElementContainsEnumerationLiteral__RightAssignment_2 ) ) )\r\n // InternalAadlV3.g:15218:1: ( ( rule__ModelElementContainsEnumerationLiteral__RightAssignment_2 ) )\r\n {\r\n // InternalAadlV3.g:15218:1: ( ( rule__ModelElementContainsEnumerationLiteral__RightAssignment_2 ) )\r\n // InternalAadlV3.g:15219:2: ( rule__ModelElementContainsEnumerationLiteral__RightAssignment_2 )\r\n {\r\n if ( state.backtracking==0 ) {\r\n before(grammarAccess.getModelElementContainsEnumerationLiteralAccess().getRightAssignment_2()); \r\n }\r\n // InternalAadlV3.g:15220:2: ( rule__ModelElementContainsEnumerationLiteral__RightAssignment_2 )\r\n // InternalAadlV3.g:15220:3: rule__ModelElementContainsEnumerationLiteral__RightAssignment_2\r\n {\r\n pushFollow(FOLLOW_2);\r\n rule__ModelElementContainsEnumerationLiteral__RightAssignment_2();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n\r\n }\r\n\r\n if ( state.backtracking==0 ) {\r\n after(grammarAccess.getModelElementContainsEnumerationLiteralAccess().getRightAssignment_2()); \r\n }\r\n\r\n }\r\n\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }", "title": "" }, { "docid": "d371d11bcf5f6ba68e31b9a21997eae1", "score": "0.55354273", "text": "public final void rule__EnumerationType__LiteralsAssignment_3() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \t\r\n try {\r\n // InternalAadlV3.g:20474:1: ( ( ruleEnumerationLiteral ) )\r\n // InternalAadlV3.g:20475:2: ( ruleEnumerationLiteral )\r\n {\r\n // InternalAadlV3.g:20475:2: ( ruleEnumerationLiteral )\r\n // InternalAadlV3.g:20476:3: ruleEnumerationLiteral\r\n {\r\n if ( state.backtracking==0 ) {\r\n before(grammarAccess.getEnumerationTypeAccess().getLiteralsEnumerationLiteralParserRuleCall_3_0()); \r\n }\r\n pushFollow(FOLLOW_2);\r\n ruleEnumerationLiteral();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n if ( state.backtracking==0 ) {\r\n after(grammarAccess.getEnumerationTypeAccess().getLiteralsEnumerationLiteralParserRuleCall_3_0()); \r\n }\r\n\r\n }\r\n\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }", "title": "" }, { "docid": "0f2ccc1e8c8ff6e1a08677d6d1b0e953", "score": "0.55296636", "text": "EnumLiteralOrStaticPropertyExpCS createEnumLiteralOrStaticPropertyExpCS();", "title": "" }, { "docid": "dadc81f781ef31ab4579b80b62b915a3", "score": "0.5527092", "text": "public final void rule__EdgeLiteral__EdgeAssignment_2() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalDSL.g:3882:1: ( ( ruleEdgeEnum ) )\n // InternalDSL.g:3883:2: ( ruleEdgeEnum )\n {\n // InternalDSL.g:3883:2: ( ruleEdgeEnum )\n // InternalDSL.g:3884:3: ruleEdgeEnum\n {\n before(grammarAccess.getEdgeLiteralAccess().getEdgeEdgeEnumEnumRuleCall_2_0()); \n pushFollow(FOLLOW_2);\n ruleEdgeEnum();\n\n state._fsp--;\n\n after(grammarAccess.getEdgeLiteralAccess().getEdgeEdgeEnumEnumRuleCall_2_0()); \n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "3c512707d5d0f0d50bbcc8104a1c4707", "score": "0.5525294", "text": "public final void rule__AddEnum__Group__1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.eclipse.osee.framework.core.dsl.ui/src-gen/org/eclipse/osee/framework/core/dsl/ui/contentassist/antlr/internal/InternalOseeDsl.g:4864:1: ( rule__AddEnum__Group__1__Impl rule__AddEnum__Group__2 )\n // ../org.eclipse.osee.framework.core.dsl.ui/src-gen/org/eclipse/osee/framework/core/dsl/ui/contentassist/antlr/internal/InternalOseeDsl.g:4865:2: rule__AddEnum__Group__1__Impl rule__AddEnum__Group__2\n {\n pushFollow(FOLLOW_rule__AddEnum__Group__1__Impl_in_rule__AddEnum__Group__19999);\n rule__AddEnum__Group__1__Impl();\n\n state._fsp--;\n\n pushFollow(FOLLOW_rule__AddEnum__Group__2_in_rule__AddEnum__Group__110002);\n rule__AddEnum__Group__2();\n\n state._fsp--;\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "b2902b61f1a510b713fee46f6e5481b3", "score": "0.55114794", "text": "public final void rule__Type_definition__Type_definition_enumeration_refAssignment_17_2_12_2() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalMyDsl.g:37049:1: ( ( RULE_ID ) )\n // InternalMyDsl.g:37050:2: ( RULE_ID )\n {\n // InternalMyDsl.g:37050:2: ( RULE_ID )\n // InternalMyDsl.g:37051:3: RULE_ID\n {\n before(grammarAccess.getType_definitionAccess().getType_definition_enumeration_refIDTerminalRuleCall_17_2_12_2_0()); \n match(input,RULE_ID,FOLLOW_2); \n after(grammarAccess.getType_definitionAccess().getType_definition_enumeration_refIDTerminalRuleCall_17_2_12_2_0()); \n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "0af718232622164640bdee9e32e1e5b8", "score": "0.5509743", "text": "public final void ruleEnum() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // InternalIsml.g:361:2: ( ( ( rule__Enum__Group__0 ) ) )\n // InternalIsml.g:362:1: ( ( rule__Enum__Group__0 ) )\n {\n // InternalIsml.g:362:1: ( ( rule__Enum__Group__0 ) )\n // InternalIsml.g:363:1: ( rule__Enum__Group__0 )\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getEnumAccess().getGroup()); \n }\n // InternalIsml.g:364:1: ( rule__Enum__Group__0 )\n // InternalIsml.g:364:2: rule__Enum__Group__0\n {\n pushFollow(FOLLOW_2);\n rule__Enum__Group__0();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n if ( state.backtracking==0 ) {\n after(grammarAccess.getEnumAccess().getGroup()); \n }\n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "a67c89c0b811c432e6d3aa2509e80973", "score": "0.54894584", "text": "public final void rule__Type_definition__Type_definition_enumeration_refAssignment_17_2_13_2() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalMyDsl.g:37079:1: ( ( RULE_ID ) )\n // InternalMyDsl.g:37080:2: ( RULE_ID )\n {\n // InternalMyDsl.g:37080:2: ( RULE_ID )\n // InternalMyDsl.g:37081:3: RULE_ID\n {\n before(grammarAccess.getType_definitionAccess().getType_definition_enumeration_refIDTerminalRuleCall_17_2_13_2_0()); \n match(input,RULE_ID,FOLLOW_2); \n after(grammarAccess.getType_definitionAccess().getType_definition_enumeration_refIDTerminalRuleCall_17_2_13_2_0()); \n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "7cb2337d02e0b771044ea9c8022485bb", "score": "0.54890144", "text": "public final EObject entryRuleEnumStatement() throws RecognitionException {\n EObject current = null;\n\n EObject iv_ruleEnumStatement = null;\n\n\n try {\n // InternalAgreeParser.g:5042:54: (iv_ruleEnumStatement= ruleEnumStatement EOF )\n // InternalAgreeParser.g:5043:2: iv_ruleEnumStatement= ruleEnumStatement EOF\n {\n if ( state.backtracking==0 ) {\n newCompositeNode(grammarAccess.getEnumStatementRule()); \n }\n pushFollow(FollowSets000.FOLLOW_1);\n iv_ruleEnumStatement=ruleEnumStatement();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n current =iv_ruleEnumStatement; \n }\n match(input,EOF,FollowSets000.FOLLOW_2); if (state.failed) return current;\n\n }\n\n }\n\n catch (RecognitionException re) {\n recover(input,re);\n appendSkippedTokens();\n }\n finally {\n }\n return current;\n }", "title": "" }, { "docid": "200b7a16f74c448754bbe0cb90e3f0ca", "score": "0.54817945", "text": "public final void rule__XOseeEnumEntry__Group_4__1__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.eclipse.osee.framework.core.dsl.ui/src-gen/org/eclipse/osee/framework/core/dsl/ui/contentassist/antlr/internal/InternalOseeDsl.g:4621:1: ( ( ( rule__XOseeEnumEntry__DescriptionAssignment_4_1 ) ) )\n // ../org.eclipse.osee.framework.core.dsl.ui/src-gen/org/eclipse/osee/framework/core/dsl/ui/contentassist/antlr/internal/InternalOseeDsl.g:4622:1: ( ( rule__XOseeEnumEntry__DescriptionAssignment_4_1 ) )\n {\n // ../org.eclipse.osee.framework.core.dsl.ui/src-gen/org/eclipse/osee/framework/core/dsl/ui/contentassist/antlr/internal/InternalOseeDsl.g:4622:1: ( ( rule__XOseeEnumEntry__DescriptionAssignment_4_1 ) )\n // ../org.eclipse.osee.framework.core.dsl.ui/src-gen/org/eclipse/osee/framework/core/dsl/ui/contentassist/antlr/internal/InternalOseeDsl.g:4623:1: ( rule__XOseeEnumEntry__DescriptionAssignment_4_1 )\n {\n before(grammarAccess.getXOseeEnumEntryAccess().getDescriptionAssignment_4_1()); \n // ../org.eclipse.osee.framework.core.dsl.ui/src-gen/org/eclipse/osee/framework/core/dsl/ui/contentassist/antlr/internal/InternalOseeDsl.g:4624:1: ( rule__XOseeEnumEntry__DescriptionAssignment_4_1 )\n // ../org.eclipse.osee.framework.core.dsl.ui/src-gen/org/eclipse/osee/framework/core/dsl/ui/contentassist/antlr/internal/InternalOseeDsl.g:4624:2: rule__XOseeEnumEntry__DescriptionAssignment_4_1\n {\n pushFollow(FOLLOW_rule__XOseeEnumEntry__DescriptionAssignment_4_1_in_rule__XOseeEnumEntry__Group_4__1__Impl9526);\n rule__XOseeEnumEntry__DescriptionAssignment_4_1();\n\n state._fsp--;\n\n\n }\n\n after(grammarAccess.getXOseeEnumEntryAccess().getDescriptionAssignment_4_1()); \n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "cee09a3266f61edf708251364aafdc96", "score": "0.5479575", "text": "@Override\n\tpublic void typeCheck() throws SemanticsException {\n\t\tsuper.typeCheck();\n\t\tIterator<BNode> iterator = getChildNodes().iterator();\n\t\titerator.next();\n\t\titerator.next();\n\t\tBNode bNode = iterator.next();\n\t\tif (bNode instanceof StringNode) {\n\t\t\treturn;\n\t\t} else {\n\t\t\twhile (true) {\n\t\t\t\tType type = Type.newEnumType(image);\n\t\t\t\tIdNode idNode = (IdNode) bNode;\n\t\t\t\tString id = idNode.getId();\n\t\t\t\tStringNode stringNode = (StringNode) iterator.next();\n\t\t\t\tif (stringNode.getString().equals(\"=\")) {\n\t\t\t\t\tUnaryENode unatyENode = (UnaryENode) iterator.next();\n\t\t\t\t\tunatyENode.typeCheck();\n\t\t\t\t\tif (!unatyENode.getType().isInteger()) {\n\t\t\t\t\t\tthrow SemanticsException.mismatchException(\n\t\t\t\t\t\t\t\tgetRootNode().getFileName(), line,\n\t\t\t\t\t\t\t\t\"enum type value should be Integer\");\n\t\t\t\t\t} else if (unatyENode.isSetOpe()) {\n\t\t\t\t\t\tthrow SemanticsException.mismatchException(\n\t\t\t\t\t\t\t\tgetRootNode().getFileName(), line,\n\t\t\t\t\t\t\t\t\"enum type value can not be complex operation!\");\n\t\t\t\t\t}\n\t\t\t\t\tstringNode = (StringNode) iterator.next();\n\t\t\t\t}\n\t\t\t\tif (pSymTab == null) {\n\t\t\t\t\tif (gSymTab.containsId(id) || incSymTab.containsId(id)) {\n\t\t\t\t\t\tthrow SemanticsException.redefineException(\n\t\t\t\t\t\t\t\tgetRootNode().getFileName(), line, \"enum type \"\n\t\t\t\t\t\t\t\t\t\t+ image + \" subType \" + id\n\t\t\t\t\t\t\t\t\t\t+ \" redefined!\");\n\t\t\t\t\t} else {\n\t\t\t\t\t\tgSymTab.addEnumT(id, type);\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tif (pSymTab.containsId(id)) {\n\t\t\t\t\t\tthrow SemanticsException.redefineException(\n\t\t\t\t\t\t\t\tgetRootNode().getFileName(), line, \"enum type \"\n\t\t\t\t\t\t\t\t\t\t+ image + \" subType \" + id\n\t\t\t\t\t\t\t\t\t\t+ \" redefined!\");\n\t\t\t\t\t} else {\n\t\t\t\t\t\tpSymTab.addEnumT(id, type);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif (stringNode.getString().equals(\",\")) {\n\t\t\t\t\tbNode = iterator.next();\n\t\t\t\t} else {\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "56692aeb7ad8ff1c45f9df4d41b1d2cb", "score": "0.5474977", "text": "public final void rule__ActionEnum__Alternatives() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalDSL.g:1112:1: ( ( ( 'forward' ) ) | ( ( 'backward' ) ) | ( ( 'stop' ) ) )\n int alt8=3;\n switch ( input.LA(1) ) {\n case 16:\n {\n alt8=1;\n }\n break;\n case 17:\n {\n alt8=2;\n }\n break;\n case 18:\n {\n alt8=3;\n }\n break;\n default:\n NoViableAltException nvae =\n new NoViableAltException(\"\", 8, 0, input);\n\n throw nvae;\n }\n\n switch (alt8) {\n case 1 :\n // InternalDSL.g:1113:2: ( ( 'forward' ) )\n {\n // InternalDSL.g:1113:2: ( ( 'forward' ) )\n // InternalDSL.g:1114:3: ( 'forward' )\n {\n before(grammarAccess.getActionEnumAccess().getFORWARDEnumLiteralDeclaration_0()); \n // InternalDSL.g:1115:3: ( 'forward' )\n // InternalDSL.g:1115:4: 'forward'\n {\n match(input,16,FOLLOW_2); \n\n }\n\n after(grammarAccess.getActionEnumAccess().getFORWARDEnumLiteralDeclaration_0()); \n\n }\n\n\n }\n break;\n case 2 :\n // InternalDSL.g:1119:2: ( ( 'backward' ) )\n {\n // InternalDSL.g:1119:2: ( ( 'backward' ) )\n // InternalDSL.g:1120:3: ( 'backward' )\n {\n before(grammarAccess.getActionEnumAccess().getBACKWARDEnumLiteralDeclaration_1()); \n // InternalDSL.g:1121:3: ( 'backward' )\n // InternalDSL.g:1121:4: 'backward'\n {\n match(input,17,FOLLOW_2); \n\n }\n\n after(grammarAccess.getActionEnumAccess().getBACKWARDEnumLiteralDeclaration_1()); \n\n }\n\n\n }\n break;\n case 3 :\n // InternalDSL.g:1125:2: ( ( 'stop' ) )\n {\n // InternalDSL.g:1125:2: ( ( 'stop' ) )\n // InternalDSL.g:1126:3: ( 'stop' )\n {\n before(grammarAccess.getActionEnumAccess().getSTOPEnumLiteralDeclaration_2()); \n // InternalDSL.g:1127:3: ( 'stop' )\n // InternalDSL.g:1127:4: 'stop'\n {\n match(input,18,FOLLOW_2); \n\n }\n\n after(grammarAccess.getActionEnumAccess().getSTOPEnumLiteralDeclaration_2()); \n\n }\n\n\n }\n break;\n\n }\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "da1c7b6a605b0d474d2eb6910cb33fa8", "score": "0.54126084", "text": "private void enumerationTypeDefinition(){\n accept(Token.L_PAR, \"'(' expected\");\n SymbolEntry list = identifierList();\n list.setRole(SymbolEntry.CONST);\n accept(Token.R_PAR, \"')' expected\");\n }", "title": "" }, { "docid": "4896704008ab4b711f8b29df868de694", "score": "0.5409725", "text": "@Override\r\n public void visitEnum(Enum eenum) {\n \r\n }", "title": "" }, { "docid": "9bec011d5513889850475140bf28bd1d", "score": "0.5387185", "text": "public final void rule__OseeDsl__EnumTypesAssignment_1_3() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.eclipse.osee.framework.core.dsl.ui/src-gen/org/eclipse/osee/framework/core/dsl/ui/contentassist/antlr/internal/InternalOseeDsl.g:9028:1: ( ( ruleXOseeEnumType ) )\n // ../org.eclipse.osee.framework.core.dsl.ui/src-gen/org/eclipse/osee/framework/core/dsl/ui/contentassist/antlr/internal/InternalOseeDsl.g:9029:1: ( ruleXOseeEnumType )\n {\n // ../org.eclipse.osee.framework.core.dsl.ui/src-gen/org/eclipse/osee/framework/core/dsl/ui/contentassist/antlr/internal/InternalOseeDsl.g:9029:1: ( ruleXOseeEnumType )\n // ../org.eclipse.osee.framework.core.dsl.ui/src-gen/org/eclipse/osee/framework/core/dsl/ui/contentassist/antlr/internal/InternalOseeDsl.g:9030:1: ruleXOseeEnumType\n {\n before(grammarAccess.getOseeDslAccess().getEnumTypesXOseeEnumTypeParserRuleCall_1_3_0()); \n pushFollow(FOLLOW_ruleXOseeEnumType_in_rule__OseeDsl__EnumTypesAssignment_1_318537);\n ruleXOseeEnumType();\n\n state._fsp--;\n\n after(grammarAccess.getOseeDslAccess().getEnumTypesXOseeEnumTypeParserRuleCall_1_3_0()); \n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "ecaf4170001fbb3882bdc2f305b2c0f6", "score": "0.5375045", "text": "public final void rule__XOseeEnumType__EnumEntriesAssignment_6() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.eclipse.osee.framework.core.dsl.ui/src-gen/org/eclipse/osee/framework/core/dsl/ui/contentassist/antlr/internal/InternalOseeDsl.g:9554:1: ( ( ruleXOseeEnumEntry ) )\n // ../org.eclipse.osee.framework.core.dsl.ui/src-gen/org/eclipse/osee/framework/core/dsl/ui/contentassist/antlr/internal/InternalOseeDsl.g:9555:1: ( ruleXOseeEnumEntry )\n {\n // ../org.eclipse.osee.framework.core.dsl.ui/src-gen/org/eclipse/osee/framework/core/dsl/ui/contentassist/antlr/internal/InternalOseeDsl.g:9555:1: ( ruleXOseeEnumEntry )\n // ../org.eclipse.osee.framework.core.dsl.ui/src-gen/org/eclipse/osee/framework/core/dsl/ui/contentassist/antlr/internal/InternalOseeDsl.g:9556:1: ruleXOseeEnumEntry\n {\n before(grammarAccess.getXOseeEnumTypeAccess().getEnumEntriesXOseeEnumEntryParserRuleCall_6_0()); \n pushFollow(FOLLOW_ruleXOseeEnumEntry_in_rule__XOseeEnumType__EnumEntriesAssignment_619619);\n ruleXOseeEnumEntry();\n\n state._fsp--;\n\n after(grammarAccess.getXOseeEnumTypeAccess().getEnumEntriesXOseeEnumEntryParserRuleCall_6_0()); \n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "c0b0f9f271682ecc81eeabd14d17cabf", "score": "0.53694147", "text": "public final void entryRuleEnumerationType() throws RecognitionException {\r\n try {\r\n // InternalAadlV3.g:1021:1: ( ruleEnumerationType EOF )\r\n // InternalAadlV3.g:1022:1: ruleEnumerationType EOF\r\n {\r\n if ( state.backtracking==0 ) {\r\n before(grammarAccess.getEnumerationTypeRule()); \r\n }\r\n pushFollow(FOLLOW_1);\r\n ruleEnumerationType();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n if ( state.backtracking==0 ) {\r\n after(grammarAccess.getEnumerationTypeRule()); \r\n }\r\n match(input,EOF,FOLLOW_2); if (state.failed) return ;\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n }\r\n return ;\r\n }", "title": "" }, { "docid": "256a31d1d6e71d4a27f0d09b441672dd", "score": "0.5364356", "text": "public final void rule__XOseeEnumEntry__Group__1__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.eclipse.osee.framework.core.dsl.ui/src-gen/org/eclipse/osee/framework/core/dsl/ui/contentassist/antlr/internal/InternalOseeDsl.g:4403:1: ( ( ( rule__XOseeEnumEntry__NameAssignment_1 ) ) )\n // ../org.eclipse.osee.framework.core.dsl.ui/src-gen/org/eclipse/osee/framework/core/dsl/ui/contentassist/antlr/internal/InternalOseeDsl.g:4404:1: ( ( rule__XOseeEnumEntry__NameAssignment_1 ) )\n {\n // ../org.eclipse.osee.framework.core.dsl.ui/src-gen/org/eclipse/osee/framework/core/dsl/ui/contentassist/antlr/internal/InternalOseeDsl.g:4404:1: ( ( rule__XOseeEnumEntry__NameAssignment_1 ) )\n // ../org.eclipse.osee.framework.core.dsl.ui/src-gen/org/eclipse/osee/framework/core/dsl/ui/contentassist/antlr/internal/InternalOseeDsl.g:4405:1: ( rule__XOseeEnumEntry__NameAssignment_1 )\n {\n before(grammarAccess.getXOseeEnumEntryAccess().getNameAssignment_1()); \n // ../org.eclipse.osee.framework.core.dsl.ui/src-gen/org/eclipse/osee/framework/core/dsl/ui/contentassist/antlr/internal/InternalOseeDsl.g:4406:1: ( rule__XOseeEnumEntry__NameAssignment_1 )\n // ../org.eclipse.osee.framework.core.dsl.ui/src-gen/org/eclipse/osee/framework/core/dsl/ui/contentassist/antlr/internal/InternalOseeDsl.g:4406:2: rule__XOseeEnumEntry__NameAssignment_1\n {\n pushFollow(FOLLOW_rule__XOseeEnumEntry__NameAssignment_1_in_rule__XOseeEnumEntry__Group__1__Impl9094);\n rule__XOseeEnumEntry__NameAssignment_1();\n\n state._fsp--;\n\n\n }\n\n after(grammarAccess.getXOseeEnumEntryAccess().getNameAssignment_1()); \n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "e6d319d291c15052fc8790e3f5b4182a", "score": "0.53466266", "text": "public final void rule__MovementAction__ActionenumAssignment() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalDSL.g:3747:1: ( ( ruleActionEnum ) )\n // InternalDSL.g:3748:2: ( ruleActionEnum )\n {\n // InternalDSL.g:3748:2: ( ruleActionEnum )\n // InternalDSL.g:3749:3: ruleActionEnum\n {\n before(grammarAccess.getMovementActionAccess().getActionenumActionEnumEnumRuleCall_0()); \n pushFollow(FOLLOW_2);\n ruleActionEnum();\n\n state._fsp--;\n\n after(grammarAccess.getMovementActionAccess().getActionenumActionEnumEnumRuleCall_0()); \n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "f6aa641cf5b358a054bc24ba78a8dc1e", "score": "0.53456503", "text": "public final void rule__Enumeration_definition__Group__2__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalMyDsl.g:18588:1: ( ( 'enumeration' ) )\n // InternalMyDsl.g:18589:1: ( 'enumeration' )\n {\n // InternalMyDsl.g:18589:1: ( 'enumeration' )\n // InternalMyDsl.g:18590:2: 'enumeration'\n {\n before(grammarAccess.getEnumeration_definitionAccess().getEnumerationKeyword_2()); \n match(input,170,FOLLOW_2); \n after(grammarAccess.getEnumeration_definitionAccess().getEnumerationKeyword_2()); \n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "ab89c834ae0bf7758721b63a493e1720", "score": "0.53380805", "text": "public final void rule__Enum__BodyAssignment_3() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // InternalIsml.g:17218:1: ( ( ruleEnumItem ) )\n // InternalIsml.g:17219:1: ( ruleEnumItem )\n {\n // InternalIsml.g:17219:1: ( ruleEnumItem )\n // InternalIsml.g:17220:1: ruleEnumItem\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getEnumAccess().getBodyEnumItemParserRuleCall_3_0()); \n }\n pushFollow(FOLLOW_2);\n ruleEnumItem();\n\n state._fsp--;\n if (state.failed) return ;\n if ( state.backtracking==0 ) {\n after(grammarAccess.getEnumAccess().getBodyEnumItemParserRuleCall_3_0()); \n }\n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "c696885722ba0480f7355e1405d84041", "score": "0.53288", "text": "public final void rule__Enum__NameAssignment_1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // InternalIsml.g:17203:1: ( ( RULE_UPPER_CASE_ID ) )\n // InternalIsml.g:17204:1: ( RULE_UPPER_CASE_ID )\n {\n // InternalIsml.g:17204:1: ( RULE_UPPER_CASE_ID )\n // InternalIsml.g:17205:1: RULE_UPPER_CASE_ID\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getEnumAccess().getNameUPPER_CASE_IDTerminalRuleCall_1_0()); \n }\n match(input,RULE_UPPER_CASE_ID,FOLLOW_2); if (state.failed) return ;\n if ( state.backtracking==0 ) {\n after(grammarAccess.getEnumAccess().getNameUPPER_CASE_IDTerminalRuleCall_1_0()); \n }\n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "92d837b1855fca73cd2a4be96e9ddfbc", "score": "0.5327505", "text": "public final ObjectiveCParser.ignore_enum_return ignore_enum() throws RecognitionException {\n ObjectiveCParser.ignore_enum_return retval = new ObjectiveCParser.ignore_enum_return();\n retval.start = input.LT(1);\n\n\n Object root_0 = null;\n\n Token string_literal33=null;\n Token char_literal35=null;\n ObjectiveCParser.ignore_braces_return ignore_braces34 =null;\n\n\n Object string_literal33_tree=null;\n Object char_literal35_tree=null;\n\n try {\n // /home/andriy/Projects.git/objc2xml/src/com/gerixsoft/objc2xml/antlr/my/ObjectiveC.g:67:13: ( 'enum' ignore_braces ';' )\n // /home/andriy/Projects.git/objc2xml/src/com/gerixsoft/objc2xml/antlr/my/ObjectiveC.g:68:2: 'enum' ignore_braces ';'\n {\n root_0 = (Object)adaptor.nil();\n\n\n string_literal33=(Token)match(input,50,FOLLOW_50_in_ignore_enum248); \n string_literal33_tree = \n (Object)adaptor.create(string_literal33)\n ;\n adaptor.addChild(root_0, string_literal33_tree);\n\n\n pushFollow(FOLLOW_ignore_braces_in_ignore_enum250);\n ignore_braces34=ignore_braces();\n\n state._fsp--;\n\n adaptor.addChild(root_0, ignore_braces34.getTree());\n\n char_literal35=(Token)match(input,33,FOLLOW_33_in_ignore_enum252); \n char_literal35_tree = \n (Object)adaptor.create(char_literal35)\n ;\n adaptor.addChild(root_0, char_literal35_tree);\n\n\n }\n\n retval.stop = input.LT(-1);\n\n\n retval.tree = (Object)adaptor.rulePostProcessing(root_0);\n adaptor.setTokenBoundaries(retval.tree, retval.start, retval.stop);\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n \tretval.tree = (Object)adaptor.errorNode(input, retval.start, input.LT(-1), re);\n\n }\n\n finally {\n \t// do for sure before leaving\n }\n return retval;\n }", "title": "" }, { "docid": "449fe15f4ecf33ec441fe3be9bcbf503", "score": "0.5321437", "text": "public final void entryRuleXOseeEnumEntry() throws RecognitionException {\n try {\n // ../org.eclipse.osee.framework.core.dsl.ui/src-gen/org/eclipse/osee/framework/core/dsl/ui/contentassist/antlr/internal/InternalOseeDsl.g:315:1: ( ruleXOseeEnumEntry EOF )\n // ../org.eclipse.osee.framework.core.dsl.ui/src-gen/org/eclipse/osee/framework/core/dsl/ui/contentassist/antlr/internal/InternalOseeDsl.g:316:1: ruleXOseeEnumEntry EOF\n {\n before(grammarAccess.getXOseeEnumEntryRule()); \n pushFollow(FOLLOW_ruleXOseeEnumEntry_in_entryRuleXOseeEnumEntry603);\n ruleXOseeEnumEntry();\n\n state._fsp--;\n\n after(grammarAccess.getXOseeEnumEntryRule()); \n match(input,EOF,FOLLOW_EOF_in_entryRuleXOseeEnumEntry610); \n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n }\n return ;\n }", "title": "" }, { "docid": "39a37b9aadc181d4f3ca4784bd9339bb", "score": "0.5319855", "text": "public final void ruleenumeration_type_definition_enumeration_type() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalMyDsl.g:1966:2: ( ( ( rule__Enumeration_type_definition_enumeration_type__AltAssignment ) ) )\n // InternalMyDsl.g:1967:2: ( ( rule__Enumeration_type_definition_enumeration_type__AltAssignment ) )\n {\n // InternalMyDsl.g:1967:2: ( ( rule__Enumeration_type_definition_enumeration_type__AltAssignment ) )\n // InternalMyDsl.g:1968:3: ( rule__Enumeration_type_definition_enumeration_type__AltAssignment )\n {\n before(grammarAccess.getEnumeration_type_definition_enumeration_typeAccess().getAltAssignment()); \n // InternalMyDsl.g:1969:3: ( rule__Enumeration_type_definition_enumeration_type__AltAssignment )\n // InternalMyDsl.g:1969:4: rule__Enumeration_type_definition_enumeration_type__AltAssignment\n {\n pushFollow(FOLLOW_2);\n rule__Enumeration_type_definition_enumeration_type__AltAssignment();\n\n state._fsp--;\n\n\n }\n\n after(grammarAccess.getEnumeration_type_definition_enumeration_typeAccess().getAltAssignment()); \n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "ef8ad5565a2380ebf7f221c593edcd0f", "score": "0.53093463", "text": "private static void enumDeclaration(LexerfulGrammarBuilder grammarBuilder) {\n grammarBuilder.rule(ENUM_DECLARATION).is(\n ENUM,\n grammarBuilder.firstOf(ALLOWED_KEYWORDS_AS_IDENTIFIER,\n SPECIAL_KEYWORDS_AS_IDENTIFIER),\n LBRACE,\n ENUM_BODY,\n RBRACE\n );\n }", "title": "" }, { "docid": "94d4fc37993a82d0e7a8f3f7c4255992", "score": "0.5297696", "text": "public final void entryRuleEnumItem() throws RecognitionException {\n try {\n // InternalIsml.g:377:1: ( ruleEnumItem EOF )\n // InternalIsml.g:378:1: ruleEnumItem EOF\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getEnumItemRule()); \n }\n pushFollow(FOLLOW_1);\n ruleEnumItem();\n\n state._fsp--;\n if (state.failed) return ;\n if ( state.backtracking==0 ) {\n after(grammarAccess.getEnumItemRule()); \n }\n match(input,EOF,FOLLOW_2); if (state.failed) return ;\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n }\n return ;\n }", "title": "" }, { "docid": "e7a00170105df64761f899c93f788791", "score": "0.52516025", "text": "public final void rule__Type_definition__Group_16__2__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalMyDsl.g:22173:1: ( ( ( rule__Type_definition__Type_definition_enumeration_refAssignment_16_2 ) ) )\n // InternalMyDsl.g:22174:1: ( ( rule__Type_definition__Type_definition_enumeration_refAssignment_16_2 ) )\n {\n // InternalMyDsl.g:22174:1: ( ( rule__Type_definition__Type_definition_enumeration_refAssignment_16_2 ) )\n // InternalMyDsl.g:22175:2: ( rule__Type_definition__Type_definition_enumeration_refAssignment_16_2 )\n {\n before(grammarAccess.getType_definitionAccess().getType_definition_enumeration_refAssignment_16_2()); \n // InternalMyDsl.g:22176:2: ( rule__Type_definition__Type_definition_enumeration_refAssignment_16_2 )\n // InternalMyDsl.g:22176:3: rule__Type_definition__Type_definition_enumeration_refAssignment_16_2\n {\n pushFollow(FOLLOW_2);\n rule__Type_definition__Type_definition_enumeration_refAssignment_16_2();\n\n state._fsp--;\n\n\n }\n\n after(grammarAccess.getType_definitionAccess().getType_definition_enumeration_refAssignment_16_2()); \n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "9cd3636403bdbcc194afc8abcf1fb242", "score": "0.5250168", "text": "public final Enumerator ruleLineType() throws RecognitionException {\n Enumerator current = null;\n\n Token enumLiteral_0=null;\n Token enumLiteral_1=null;\n Token enumLiteral_2=null;\n Token enumLiteral_3=null;\n Token enumLiteral_4=null;\n\n enterRule(); \n try {\n // ../co.edu.uniandes.enar.picture/src-gen/co/edu/uniandes/enar/parser/antlr/internal/InternalPicture.g:6986:28: ( ( (enumLiteral_0= 'solid' ) | (enumLiteral_1= 'dash' ) | (enumLiteral_2= 'dot' ) | (enumLiteral_3= 'dashdot' ) | (enumLiteral_4= 'dashdotdot' ) ) )\n // ../co.edu.uniandes.enar.picture/src-gen/co/edu/uniandes/enar/parser/antlr/internal/InternalPicture.g:6987:1: ( (enumLiteral_0= 'solid' ) | (enumLiteral_1= 'dash' ) | (enumLiteral_2= 'dot' ) | (enumLiteral_3= 'dashdot' ) | (enumLiteral_4= 'dashdotdot' ) )\n {\n // ../co.edu.uniandes.enar.picture/src-gen/co/edu/uniandes/enar/parser/antlr/internal/InternalPicture.g:6987:1: ( (enumLiteral_0= 'solid' ) | (enumLiteral_1= 'dash' ) | (enumLiteral_2= 'dot' ) | (enumLiteral_3= 'dashdot' ) | (enumLiteral_4= 'dashdotdot' ) )\n int alt63=5;\n switch ( input.LA(1) ) {\n case 143:\n {\n alt63=1;\n }\n break;\n case 144:\n {\n alt63=2;\n }\n break;\n case 145:\n {\n alt63=3;\n }\n break;\n case 146:\n {\n alt63=4;\n }\n break;\n case 147:\n {\n alt63=5;\n }\n break;\n default:\n NoViableAltException nvae =\n new NoViableAltException(\"\", 63, 0, input);\n\n throw nvae;\n }\n\n switch (alt63) {\n case 1 :\n // ../co.edu.uniandes.enar.picture/src-gen/co/edu/uniandes/enar/parser/antlr/internal/InternalPicture.g:6987:2: (enumLiteral_0= 'solid' )\n {\n // ../co.edu.uniandes.enar.picture/src-gen/co/edu/uniandes/enar/parser/antlr/internal/InternalPicture.g:6987:2: (enumLiteral_0= 'solid' )\n // ../co.edu.uniandes.enar.picture/src-gen/co/edu/uniandes/enar/parser/antlr/internal/InternalPicture.g:6987:4: enumLiteral_0= 'solid'\n {\n enumLiteral_0=(Token)match(input,143,FOLLOW_143_in_ruleLineType15878); \n\n current = grammarAccess.getLineTypeAccess().getSolidEnumLiteralDeclaration_0().getEnumLiteral().getInstance();\n newLeafNode(enumLiteral_0, grammarAccess.getLineTypeAccess().getSolidEnumLiteralDeclaration_0()); \n \n\n }\n\n\n }\n break;\n case 2 :\n // ../co.edu.uniandes.enar.picture/src-gen/co/edu/uniandes/enar/parser/antlr/internal/InternalPicture.g:6993:6: (enumLiteral_1= 'dash' )\n {\n // ../co.edu.uniandes.enar.picture/src-gen/co/edu/uniandes/enar/parser/antlr/internal/InternalPicture.g:6993:6: (enumLiteral_1= 'dash' )\n // ../co.edu.uniandes.enar.picture/src-gen/co/edu/uniandes/enar/parser/antlr/internal/InternalPicture.g:6993:8: enumLiteral_1= 'dash'\n {\n enumLiteral_1=(Token)match(input,144,FOLLOW_144_in_ruleLineType15895); \n\n current = grammarAccess.getLineTypeAccess().getDashEnumLiteralDeclaration_1().getEnumLiteral().getInstance();\n newLeafNode(enumLiteral_1, grammarAccess.getLineTypeAccess().getDashEnumLiteralDeclaration_1()); \n \n\n }\n\n\n }\n break;\n case 3 :\n // ../co.edu.uniandes.enar.picture/src-gen/co/edu/uniandes/enar/parser/antlr/internal/InternalPicture.g:6999:6: (enumLiteral_2= 'dot' )\n {\n // ../co.edu.uniandes.enar.picture/src-gen/co/edu/uniandes/enar/parser/antlr/internal/InternalPicture.g:6999:6: (enumLiteral_2= 'dot' )\n // ../co.edu.uniandes.enar.picture/src-gen/co/edu/uniandes/enar/parser/antlr/internal/InternalPicture.g:6999:8: enumLiteral_2= 'dot'\n {\n enumLiteral_2=(Token)match(input,145,FOLLOW_145_in_ruleLineType15912); \n\n current = grammarAccess.getLineTypeAccess().getDotEnumLiteralDeclaration_2().getEnumLiteral().getInstance();\n newLeafNode(enumLiteral_2, grammarAccess.getLineTypeAccess().getDotEnumLiteralDeclaration_2()); \n \n\n }\n\n\n }\n break;\n case 4 :\n // ../co.edu.uniandes.enar.picture/src-gen/co/edu/uniandes/enar/parser/antlr/internal/InternalPicture.g:7005:6: (enumLiteral_3= 'dashdot' )\n {\n // ../co.edu.uniandes.enar.picture/src-gen/co/edu/uniandes/enar/parser/antlr/internal/InternalPicture.g:7005:6: (enumLiteral_3= 'dashdot' )\n // ../co.edu.uniandes.enar.picture/src-gen/co/edu/uniandes/enar/parser/antlr/internal/InternalPicture.g:7005:8: enumLiteral_3= 'dashdot'\n {\n enumLiteral_3=(Token)match(input,146,FOLLOW_146_in_ruleLineType15929); \n\n current = grammarAccess.getLineTypeAccess().getDashdotEnumLiteralDeclaration_3().getEnumLiteral().getInstance();\n newLeafNode(enumLiteral_3, grammarAccess.getLineTypeAccess().getDashdotEnumLiteralDeclaration_3()); \n \n\n }\n\n\n }\n break;\n case 5 :\n // ../co.edu.uniandes.enar.picture/src-gen/co/edu/uniandes/enar/parser/antlr/internal/InternalPicture.g:7011:6: (enumLiteral_4= 'dashdotdot' )\n {\n // ../co.edu.uniandes.enar.picture/src-gen/co/edu/uniandes/enar/parser/antlr/internal/InternalPicture.g:7011:6: (enumLiteral_4= 'dashdotdot' )\n // ../co.edu.uniandes.enar.picture/src-gen/co/edu/uniandes/enar/parser/antlr/internal/InternalPicture.g:7011:8: enumLiteral_4= 'dashdotdot'\n {\n enumLiteral_4=(Token)match(input,147,FOLLOW_147_in_ruleLineType15946); \n\n current = grammarAccess.getLineTypeAccess().getDashdotdotEnumLiteralDeclaration_4().getEnumLiteral().getInstance();\n newLeafNode(enumLiteral_4, grammarAccess.getLineTypeAccess().getDashdotdotEnumLiteralDeclaration_4()); \n \n\n }\n\n\n }\n break;\n\n }\n\n\n }\n\n leaveRule(); \n }\n \n catch (RecognitionException re) { \n recover(input,re); \n appendSkippedTokens();\n } \n finally {\n }\n return current;\n }", "title": "" }, { "docid": "e8c2a65231b2706ed15bafd2d08a69fd", "score": "0.5248859", "text": "public final void ruleEnumerationLiteral() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \t\r\n try {\r\n // InternalAadlV3.g:2003:2: ( ( ( rule__EnumerationLiteral__Group__0 ) ) )\r\n // InternalAadlV3.g:2004:2: ( ( rule__EnumerationLiteral__Group__0 ) )\r\n {\r\n // InternalAadlV3.g:2004:2: ( ( rule__EnumerationLiteral__Group__0 ) )\r\n // InternalAadlV3.g:2005:3: ( rule__EnumerationLiteral__Group__0 )\r\n {\r\n if ( state.backtracking==0 ) {\r\n before(grammarAccess.getEnumerationLiteralAccess().getGroup()); \r\n }\r\n // InternalAadlV3.g:2006:3: ( rule__EnumerationLiteral__Group__0 )\r\n // InternalAadlV3.g:2006:4: rule__EnumerationLiteral__Group__0\r\n {\r\n pushFollow(FOLLOW_2);\r\n rule__EnumerationLiteral__Group__0();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n\r\n }\r\n\r\n if ( state.backtracking==0 ) {\r\n after(grammarAccess.getEnumerationLiteralAccess().getGroup()); \r\n }\r\n\r\n }\r\n\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }", "title": "" }, { "docid": "d0869184b26ad06333f875f6b881e544", "score": "0.524241", "text": "private UCharacterEnums() {}", "title": "" }, { "docid": "496a2ed32dc2a70156adeb29a91d35cf", "score": "0.5236637", "text": "public static void main(String[] args) {\n System.out.println(\"Use of ENUM using array and Expection\");\n \n Direction2 arr[]= Direction2.values();\n for(Direction2 d:arr) {\n\t System.out.println(d.ordinal()+\"\\t\"+ d.name());\n }\n\tDirection2 d =Direction2.valueOf(\"EAST\");\n\tSystem.out.println(d);\n\n}", "title": "" }, { "docid": "89b8e2fa341c7ab7d14a6ac9e6f67391", "score": "0.52249676", "text": "public final void rule__Enum__Group__0__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // InternalIsml.g:5268:1: ( ( 'enum' ) )\n // InternalIsml.g:5269:1: ( 'enum' )\n {\n // InternalIsml.g:5269:1: ( 'enum' )\n // InternalIsml.g:5270:1: 'enum'\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getEnumAccess().getEnumKeyword_0()); \n }\n match(input,32,FOLLOW_2); if (state.failed) return ;\n if ( state.backtracking==0 ) {\n after(grammarAccess.getEnumAccess().getEnumKeyword_0()); \n }\n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "bce3e0ebf791cc16a655623008db8f01", "score": "0.52204436", "text": "public final void entryRuleRemoveEnum() throws RecognitionException {\n try {\n // ../org.eclipse.osee.framework.core.dsl.ui/src-gen/org/eclipse/osee/framework/core/dsl/ui/contentassist/antlr/internal/InternalOseeDsl.g:427:1: ( ruleRemoveEnum EOF )\n // ../org.eclipse.osee.framework.core.dsl.ui/src-gen/org/eclipse/osee/framework/core/dsl/ui/contentassist/antlr/internal/InternalOseeDsl.g:428:1: ruleRemoveEnum EOF\n {\n before(grammarAccess.getRemoveEnumRule()); \n pushFollow(FOLLOW_ruleRemoveEnum_in_entryRuleRemoveEnum843);\n ruleRemoveEnum();\n\n state._fsp--;\n\n after(grammarAccess.getRemoveEnumRule()); \n match(input,EOF,FOLLOW_EOF_in_entryRuleRemoveEnum850); \n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n }\n return ;\n }", "title": "" }, { "docid": "5f2dd8dc4bcd35c0b738dfa4e73ef7bd", "score": "0.5217973", "text": "public final void rule__Enumeration_type_definition__Group__2__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalMyDsl.g:18912:1: ( ( ruleenumeration_type_definition_enumeration_type ) )\n // InternalMyDsl.g:18913:1: ( ruleenumeration_type_definition_enumeration_type )\n {\n // InternalMyDsl.g:18913:1: ( ruleenumeration_type_definition_enumeration_type )\n // InternalMyDsl.g:18914:2: ruleenumeration_type_definition_enumeration_type\n {\n before(grammarAccess.getEnumeration_type_definitionAccess().getEnumeration_type_definition_enumeration_typeParserRuleCall_2()); \n pushFollow(FOLLOW_2);\n ruleenumeration_type_definition_enumeration_type();\n\n state._fsp--;\n\n after(grammarAccess.getEnumeration_type_definitionAccess().getEnumeration_type_definition_enumeration_typeParserRuleCall_2()); \n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "f71699558257b1d897bef58722396f27", "score": "0.52110916", "text": "private void parseEnumerationIdentifier(\n\t\tToken token, int value, TypeSpec enumerationType,\n\t\tArrayList<SymTabEntry> constants) throws Exception\n\t{\n\t\tTokenType tokenType = token.getType();\n\n\t\tif (tokenType == IDENTIFIER) {\n\t\t\tString name = token.getText().toLowerCase();\n\t\t\tSymTabEntry constantId = symTabStack.lookupLocal(name);\n\n\t\t\tif (constantId != null) {\n\t\t\t\terrorHandler.flag(token, IDENTIFIER_REDEFINED, this);\n\t\t\t}\n\t\t\telse {\n\t\t\t\tconstantId = symTabStack.enterLocal(token.getText());\n\t\t\t\tconstantId.setDefinition(ENUMERATION_CONSTANT);\n\t\t\t\tconstantId.setTypeSpec(enumerationType);\n\t\t\t\tconstantId.setAttribute(CONSTANT_VALUE, value);\n\t\t\t\tconstantId.appendLineNumber(token.getLineNumber());\n\t\t\t\tconstants.add(constantId);\n\t\t\t}\n\n\t\t\ttoken = nextToken(); // Consume the identifier.\n\t\t}\n\t\telse {\n\t\t\terrorHandler.flag(token, MISSING_IDENTIFIER, this);\n\t\t}\n\t}", "title": "" }, { "docid": "ec1a70d6c51048fde93d64ac065cf999", "score": "0.52056396", "text": "public final void rule__ColorEnum__Alternatives() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalDSL.g:1187:1: ( ( ( 'NONE' ) ) | ( ( 'BLACK' ) ) | ( ( 'BLUE' ) ) | ( ( 'GREEN' ) ) | ( ( 'YELLOW' ) ) | ( ( 'RED' ) ) | ( ( 'WHITE' ) ) | ( ( 'BROWN' ) ) )\n int alt11=8;\n switch ( input.LA(1) ) {\n case 23:\n {\n alt11=1;\n }\n break;\n case 24:\n {\n alt11=2;\n }\n break;\n case 25:\n {\n alt11=3;\n }\n break;\n case 26:\n {\n alt11=4;\n }\n break;\n case 27:\n {\n alt11=5;\n }\n break;\n case 28:\n {\n alt11=6;\n }\n break;\n case 29:\n {\n alt11=7;\n }\n break;\n case 30:\n {\n alt11=8;\n }\n break;\n default:\n NoViableAltException nvae =\n new NoViableAltException(\"\", 11, 0, input);\n\n throw nvae;\n }\n\n switch (alt11) {\n case 1 :\n // InternalDSL.g:1188:2: ( ( 'NONE' ) )\n {\n // InternalDSL.g:1188:2: ( ( 'NONE' ) )\n // InternalDSL.g:1189:3: ( 'NONE' )\n {\n before(grammarAccess.getColorEnumAccess().getNONEEnumLiteralDeclaration_0()); \n // InternalDSL.g:1190:3: ( 'NONE' )\n // InternalDSL.g:1190:4: 'NONE'\n {\n match(input,23,FOLLOW_2); \n\n }\n\n after(grammarAccess.getColorEnumAccess().getNONEEnumLiteralDeclaration_0()); \n\n }\n\n\n }\n break;\n case 2 :\n // InternalDSL.g:1194:2: ( ( 'BLACK' ) )\n {\n // InternalDSL.g:1194:2: ( ( 'BLACK' ) )\n // InternalDSL.g:1195:3: ( 'BLACK' )\n {\n before(grammarAccess.getColorEnumAccess().getBLACKEnumLiteralDeclaration_1()); \n // InternalDSL.g:1196:3: ( 'BLACK' )\n // InternalDSL.g:1196:4: 'BLACK'\n {\n match(input,24,FOLLOW_2); \n\n }\n\n after(grammarAccess.getColorEnumAccess().getBLACKEnumLiteralDeclaration_1()); \n\n }\n\n\n }\n break;\n case 3 :\n // InternalDSL.g:1200:2: ( ( 'BLUE' ) )\n {\n // InternalDSL.g:1200:2: ( ( 'BLUE' ) )\n // InternalDSL.g:1201:3: ( 'BLUE' )\n {\n before(grammarAccess.getColorEnumAccess().getBLUEEnumLiteralDeclaration_2()); \n // InternalDSL.g:1202:3: ( 'BLUE' )\n // InternalDSL.g:1202:4: 'BLUE'\n {\n match(input,25,FOLLOW_2); \n\n }\n\n after(grammarAccess.getColorEnumAccess().getBLUEEnumLiteralDeclaration_2()); \n\n }\n\n\n }\n break;\n case 4 :\n // InternalDSL.g:1206:2: ( ( 'GREEN' ) )\n {\n // InternalDSL.g:1206:2: ( ( 'GREEN' ) )\n // InternalDSL.g:1207:3: ( 'GREEN' )\n {\n before(grammarAccess.getColorEnumAccess().getGREENEnumLiteralDeclaration_3()); \n // InternalDSL.g:1208:3: ( 'GREEN' )\n // InternalDSL.g:1208:4: 'GREEN'\n {\n match(input,26,FOLLOW_2); \n\n }\n\n after(grammarAccess.getColorEnumAccess().getGREENEnumLiteralDeclaration_3()); \n\n }\n\n\n }\n break;\n case 5 :\n // InternalDSL.g:1212:2: ( ( 'YELLOW' ) )\n {\n // InternalDSL.g:1212:2: ( ( 'YELLOW' ) )\n // InternalDSL.g:1213:3: ( 'YELLOW' )\n {\n before(grammarAccess.getColorEnumAccess().getYELLOWEnumLiteralDeclaration_4()); \n // InternalDSL.g:1214:3: ( 'YELLOW' )\n // InternalDSL.g:1214:4: 'YELLOW'\n {\n match(input,27,FOLLOW_2); \n\n }\n\n after(grammarAccess.getColorEnumAccess().getYELLOWEnumLiteralDeclaration_4()); \n\n }\n\n\n }\n break;\n case 6 :\n // InternalDSL.g:1218:2: ( ( 'RED' ) )\n {\n // InternalDSL.g:1218:2: ( ( 'RED' ) )\n // InternalDSL.g:1219:3: ( 'RED' )\n {\n before(grammarAccess.getColorEnumAccess().getREDEnumLiteralDeclaration_5()); \n // InternalDSL.g:1220:3: ( 'RED' )\n // InternalDSL.g:1220:4: 'RED'\n {\n match(input,28,FOLLOW_2); \n\n }\n\n after(grammarAccess.getColorEnumAccess().getREDEnumLiteralDeclaration_5()); \n\n }\n\n\n }\n break;\n case 7 :\n // InternalDSL.g:1224:2: ( ( 'WHITE' ) )\n {\n // InternalDSL.g:1224:2: ( ( 'WHITE' ) )\n // InternalDSL.g:1225:3: ( 'WHITE' )\n {\n before(grammarAccess.getColorEnumAccess().getWHITEEnumLiteralDeclaration_6()); \n // InternalDSL.g:1226:3: ( 'WHITE' )\n // InternalDSL.g:1226:4: 'WHITE'\n {\n match(input,29,FOLLOW_2); \n\n }\n\n after(grammarAccess.getColorEnumAccess().getWHITEEnumLiteralDeclaration_6()); \n\n }\n\n\n }\n break;\n case 8 :\n // InternalDSL.g:1230:2: ( ( 'BROWN' ) )\n {\n // InternalDSL.g:1230:2: ( ( 'BROWN' ) )\n // InternalDSL.g:1231:3: ( 'BROWN' )\n {\n before(grammarAccess.getColorEnumAccess().getBROWNEnumLiteralDeclaration_7()); \n // InternalDSL.g:1232:3: ( 'BROWN' )\n // InternalDSL.g:1232:4: 'BROWN'\n {\n match(input,30,FOLLOW_2); \n\n }\n\n after(grammarAccess.getColorEnumAccess().getBROWNEnumLiteralDeclaration_7()); \n\n }\n\n\n }\n break;\n\n }\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "7cc269c0c941805001813ffcbdfcb544", "score": "0.52051425", "text": "public void test0027() throws JavaModelException {\n ICompilationUnit sourceUnit = getCompilationUnit(\"Converter15\", \"src\", \"test0027\", \"X.java\");\n ASTNode result = runJLS8Conversion(sourceUnit, true, true);\n assertTrue(\"Not a compilation unit\", result.getNodeType() == ASTNode.COMPILATION_UNIT);\n CompilationUnit compilationUnit = (CompilationUnit) result;\n assertProblemsSize(compilationUnit, 0);\n ASTNode node = getASTNode(compilationUnit, 0);\n char[] source = sourceUnit.getSource().toCharArray();\n assertEquals(\"Not an enum declaration\", ASTNode.ENUM_DECLARATION, node.getNodeType());\n EnumDeclaration enumDeclaration = (EnumDeclaration) node;\n List modifiers = enumDeclaration.modifiers();\n assertEquals(\"Wrong number of modifiers\", 1, modifiers.size());\n IExtendedModifier extendedModifier = (IExtendedModifier) modifiers.get(0);\n assertTrue(\"Not a modifier\", extendedModifier instanceof Modifier);\n Modifier modifier = (Modifier) extendedModifier;\n checkSourceRange(modifier, \"public\", source);\n assertEquals(\"wrong name\", \"X\", enumDeclaration.getName().getIdentifier());\n List enumConstants = enumDeclaration.enumConstants();\n assertEquals(\"wrong size\", 4, enumConstants.size());\n EnumConstantDeclaration enumConstantDeclaration = (EnumConstantDeclaration) enumConstants.get(0);\n IMethodBinding methodBinding = enumConstantDeclaration.resolveConstructorBinding();\n assertNotNull(\"No binding\", methodBinding);\n assertTrue(\"Not a constructor\", methodBinding.isConstructor());\n checkSourceRange(enumConstantDeclaration.getName(), \"PENNY\", source);\n checkSourceRange(enumConstantDeclaration, \"PENNY(1)\", source);\n List arguments = enumConstantDeclaration.arguments();\n assertEquals(\"wrong size\", 1, arguments.size());\n Expression argument = (Expression) arguments.get(0);\n checkSourceRange(argument, \"1\", source);\n assertEquals(\"not an number literal\", ASTNode.NUMBER_LITERAL, argument.getNodeType());\n IVariableBinding binding = enumConstantDeclaration.resolveVariable();\n assertNotNull(\"No binding\", binding);\n assertEquals(\"Wrong name\", \"PENNY\", binding.getName());\n ASTNode node2 = compilationUnit.findDeclaringNode(binding);\n assertTrue(\"Different node\", node2 == enumConstantDeclaration);\n enumConstantDeclaration = (EnumConstantDeclaration) enumConstants.get(1);\n methodBinding = enumConstantDeclaration.resolveConstructorBinding();\n assertNotNull(\"No binding\", methodBinding);\n assertTrue(\"Not a constructor\", methodBinding.isConstructor());\n checkSourceRange(enumConstantDeclaration.getName(), \"NICKEL\", source);\n checkSourceRange(enumConstantDeclaration, \"NICKEL(5)\", source);\n arguments = enumConstantDeclaration.arguments();\n assertEquals(\"wrong size\", 1, arguments.size());\n argument = (Expression) arguments.get(0);\n checkSourceRange(argument, \"5\", source);\n assertEquals(\"not an number literal\", ASTNode.NUMBER_LITERAL, argument.getNodeType());\n binding = enumConstantDeclaration.resolveVariable();\n assertNotNull(\"No binding\", binding);\n assertEquals(\"Wrong name\", \"NICKEL\", binding.getName());\n enumConstantDeclaration = (EnumConstantDeclaration) enumConstants.get(2);\n methodBinding = enumConstantDeclaration.resolveConstructorBinding();\n assertNotNull(\"No binding\", methodBinding);\n assertTrue(\"Not a constructor\", methodBinding.isConstructor());\n checkSourceRange(enumConstantDeclaration.getName(), \"DIME\", source);\n checkSourceRange(enumConstantDeclaration, \"DIME(10)\", source);\n arguments = enumConstantDeclaration.arguments();\n assertEquals(\"wrong size\", 1, arguments.size());\n argument = (Expression) arguments.get(0);\n checkSourceRange(argument, \"10\", source);\n assertEquals(\"not an number literal\", ASTNode.NUMBER_LITERAL, argument.getNodeType());\n binding = enumConstantDeclaration.resolveVariable();\n assertNotNull(\"No binding\", binding);\n assertEquals(\"Wrong name\", \"DIME\", binding.getName());\n enumConstantDeclaration = (EnumConstantDeclaration) enumConstants.get(3);\n methodBinding = enumConstantDeclaration.resolveConstructorBinding();\n assertNotNull(\"No binding\", methodBinding);\n checkSourceRange(enumConstantDeclaration.getName(), \"QUARTER\", source);\n checkSourceRange(enumConstantDeclaration, \"QUARTER(25)\", source);\n arguments = enumConstantDeclaration.arguments();\n assertEquals(\"wrong size\", 1, arguments.size());\n argument = (Expression) arguments.get(0);\n checkSourceRange(argument, \"25\", source);\n assertEquals(\"not an number literal\", ASTNode.NUMBER_LITERAL, argument.getNodeType());\n binding = enumConstantDeclaration.resolveVariable();\n assertNotNull(\"No binding\", binding);\n assertEquals(\"Wrong name\", \"QUARTER\", binding.getName());\n }", "title": "" }, { "docid": "c4430f091d50afd5d2d5e7cde7ccbdf2", "score": "0.52022004", "text": "public final void rule__RemoveEnum__Group__1__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.eclipse.osee.framework.core.dsl.ui/src-gen/org/eclipse/osee/framework/core/dsl/ui/contentassist/antlr/internal/InternalOseeDsl.g:5157:1: ( ( ( rule__RemoveEnum__EnumEntryAssignment_1 ) ) )\n // ../org.eclipse.osee.framework.core.dsl.ui/src-gen/org/eclipse/osee/framework/core/dsl/ui/contentassist/antlr/internal/InternalOseeDsl.g:5158:1: ( ( rule__RemoveEnum__EnumEntryAssignment_1 ) )\n {\n // ../org.eclipse.osee.framework.core.dsl.ui/src-gen/org/eclipse/osee/framework/core/dsl/ui/contentassist/antlr/internal/InternalOseeDsl.g:5158:1: ( ( rule__RemoveEnum__EnumEntryAssignment_1 ) )\n // ../org.eclipse.osee.framework.core.dsl.ui/src-gen/org/eclipse/osee/framework/core/dsl/ui/contentassist/antlr/internal/InternalOseeDsl.g:5159:1: ( rule__RemoveEnum__EnumEntryAssignment_1 )\n {\n before(grammarAccess.getRemoveEnumAccess().getEnumEntryAssignment_1()); \n // ../org.eclipse.osee.framework.core.dsl.ui/src-gen/org/eclipse/osee/framework/core/dsl/ui/contentassist/antlr/internal/InternalOseeDsl.g:5160:1: ( rule__RemoveEnum__EnumEntryAssignment_1 )\n // ../org.eclipse.osee.framework.core.dsl.ui/src-gen/org/eclipse/osee/framework/core/dsl/ui/contentassist/antlr/internal/InternalOseeDsl.g:5160:2: rule__RemoveEnum__EnumEntryAssignment_1\n {\n pushFollow(FOLLOW_rule__RemoveEnum__EnumEntryAssignment_1_in_rule__RemoveEnum__Group__1__Impl10584);\n rule__RemoveEnum__EnumEntryAssignment_1();\n\n state._fsp--;\n\n\n }\n\n after(grammarAccess.getRemoveEnumAccess().getEnumEntryAssignment_1()); \n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "48ff49711b08e51b453eca14a1c99232", "score": "0.5197522", "text": "public final void entryRuleenumeration_definition() throws RecognitionException {\n try {\n // InternalMyDsl.g:1904:1: ( ruleenumeration_definition EOF )\n // InternalMyDsl.g:1905:1: ruleenumeration_definition EOF\n {\n before(grammarAccess.getEnumeration_definitionRule()); \n pushFollow(FOLLOW_1);\n ruleenumeration_definition();\n\n state._fsp--;\n\n after(grammarAccess.getEnumeration_definitionRule()); \n match(input,EOF,FOLLOW_2); \n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n }\n return ;\n }", "title": "" }, { "docid": "eb004d9d5840b1dc8f58916f07f13da3", "score": "0.51914066", "text": "private SimpleStmtKeywordEnum(int value, String name, String literal)\n {\n this.value = value;\n this.name = name;\n this.literal = literal;\n }", "title": "" }, { "docid": "a09d1cbfab929f7ba3df3c0c5a8bbc6f", "score": "0.51900834", "text": "public final void rule__Type_definition__Group_15__2__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalMyDsl.g:21984:1: ( ( ( rule__Type_definition__Type_definition_enumeration_refAssignment_15_2 ) ) )\n // InternalMyDsl.g:21985:1: ( ( rule__Type_definition__Type_definition_enumeration_refAssignment_15_2 ) )\n {\n // InternalMyDsl.g:21985:1: ( ( rule__Type_definition__Type_definition_enumeration_refAssignment_15_2 ) )\n // InternalMyDsl.g:21986:2: ( rule__Type_definition__Type_definition_enumeration_refAssignment_15_2 )\n {\n before(grammarAccess.getType_definitionAccess().getType_definition_enumeration_refAssignment_15_2()); \n // InternalMyDsl.g:21987:2: ( rule__Type_definition__Type_definition_enumeration_refAssignment_15_2 )\n // InternalMyDsl.g:21987:3: rule__Type_definition__Type_definition_enumeration_refAssignment_15_2\n {\n pushFollow(FOLLOW_2);\n rule__Type_definition__Type_definition_enumeration_refAssignment_15_2();\n\n state._fsp--;\n\n\n }\n\n after(grammarAccess.getType_definitionAccess().getType_definition_enumeration_refAssignment_15_2()); \n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "de483e77e34ba99b99fd8dadcf248fb4", "score": "0.51797783", "text": "public final void rule__AddEnum__Group__0() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.eclipse.osee.framework.core.dsl.ui/src-gen/org/eclipse/osee/framework/core/dsl/ui/contentassist/antlr/internal/InternalOseeDsl.g:4833:1: ( rule__AddEnum__Group__0__Impl rule__AddEnum__Group__1 )\n // ../org.eclipse.osee.framework.core.dsl.ui/src-gen/org/eclipse/osee/framework/core/dsl/ui/contentassist/antlr/internal/InternalOseeDsl.g:4834:2: rule__AddEnum__Group__0__Impl rule__AddEnum__Group__1\n {\n pushFollow(FOLLOW_rule__AddEnum__Group__0__Impl_in_rule__AddEnum__Group__09937);\n rule__AddEnum__Group__0__Impl();\n\n state._fsp--;\n\n pushFollow(FOLLOW_rule__AddEnum__Group__1_in_rule__AddEnum__Group__09940);\n rule__AddEnum__Group__1();\n\n state._fsp--;\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "ab7196880384b930a397c0896dea8f9a", "score": "0.517591", "text": "public final void rule__Enum__BodyAssignment_4_1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // InternalIsml.g:17233:1: ( ( ruleEnumItem ) )\n // InternalIsml.g:17234:1: ( ruleEnumItem )\n {\n // InternalIsml.g:17234:1: ( ruleEnumItem )\n // InternalIsml.g:17235:1: ruleEnumItem\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getEnumAccess().getBodyEnumItemParserRuleCall_4_1_0()); \n }\n pushFollow(FOLLOW_2);\n ruleEnumItem();\n\n state._fsp--;\n if (state.failed) return ;\n if ( state.backtracking==0 ) {\n after(grammarAccess.getEnumAccess().getBodyEnumItemParserRuleCall_4_1_0()); \n }\n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "42ed4b60598143dbe180221b9a140bf9", "score": "0.51727", "text": "public final void rule__Enumeration_value_definition__Group_4_1_1__2__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalMyDsl.g:19263:1: ( ( ( rule__Enumeration_value_definition__StringAssignment_4_1_1_2 ) ) )\n // InternalMyDsl.g:19264:1: ( ( rule__Enumeration_value_definition__StringAssignment_4_1_1_2 ) )\n {\n // InternalMyDsl.g:19264:1: ( ( rule__Enumeration_value_definition__StringAssignment_4_1_1_2 ) )\n // InternalMyDsl.g:19265:2: ( rule__Enumeration_value_definition__StringAssignment_4_1_1_2 )\n {\n before(grammarAccess.getEnumeration_value_definitionAccess().getStringAssignment_4_1_1_2()); \n // InternalMyDsl.g:19266:2: ( rule__Enumeration_value_definition__StringAssignment_4_1_1_2 )\n // InternalMyDsl.g:19266:3: rule__Enumeration_value_definition__StringAssignment_4_1_1_2\n {\n pushFollow(FOLLOW_2);\n rule__Enumeration_value_definition__StringAssignment_4_1_1_2();\n\n state._fsp--;\n\n\n }\n\n after(grammarAccess.getEnumeration_value_definitionAccess().getStringAssignment_4_1_1_2()); \n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "fd489beea88f78e363f31d12eef6ff61", "score": "0.5168083", "text": "public final void rule__EnumerationLiteral__NameAssignment_1() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \t\r\n try {\r\n // InternalAadlV3.g:21942:1: ( ( RULE_ID ) )\r\n // InternalAadlV3.g:21943:2: ( RULE_ID )\r\n {\r\n // InternalAadlV3.g:21943:2: ( RULE_ID )\r\n // InternalAadlV3.g:21944:3: RULE_ID\r\n {\r\n if ( state.backtracking==0 ) {\r\n before(grammarAccess.getEnumerationLiteralAccess().getNameIDTerminalRuleCall_1_0()); \r\n }\r\n match(input,RULE_ID,FOLLOW_2); if (state.failed) return ;\r\n if ( state.backtracking==0 ) {\r\n after(grammarAccess.getEnumerationLiteralAccess().getNameIDTerminalRuleCall_1_0()); \r\n }\r\n\r\n }\r\n\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }", "title": "" }, { "docid": "77a3bcec4c61b7d2d87335c8c7dec82c", "score": "0.5157198", "text": "public final void rule__ModelElementEqualsEnumerationLiteral__Group__2__Impl() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \t\r\n try {\r\n // InternalAadlV3.g:15379:1: ( ( ( rule__ModelElementEqualsEnumerationLiteral__RightAssignment_2 ) ) )\r\n // InternalAadlV3.g:15380:1: ( ( rule__ModelElementEqualsEnumerationLiteral__RightAssignment_2 ) )\r\n {\r\n // InternalAadlV3.g:15380:1: ( ( rule__ModelElementEqualsEnumerationLiteral__RightAssignment_2 ) )\r\n // InternalAadlV3.g:15381:2: ( rule__ModelElementEqualsEnumerationLiteral__RightAssignment_2 )\r\n {\r\n if ( state.backtracking==0 ) {\r\n before(grammarAccess.getModelElementEqualsEnumerationLiteralAccess().getRightAssignment_2()); \r\n }\r\n // InternalAadlV3.g:15382:2: ( rule__ModelElementEqualsEnumerationLiteral__RightAssignment_2 )\r\n // InternalAadlV3.g:15382:3: rule__ModelElementEqualsEnumerationLiteral__RightAssignment_2\r\n {\r\n pushFollow(FOLLOW_2);\r\n rule__ModelElementEqualsEnumerationLiteral__RightAssignment_2();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n\r\n }\r\n\r\n if ( state.backtracking==0 ) {\r\n after(grammarAccess.getModelElementEqualsEnumerationLiteralAccess().getRightAssignment_2()); \r\n }\r\n\r\n }\r\n\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }", "title": "" }, { "docid": "bad7e4a3faff7455d846ceda85b2a31c", "score": "0.51542944", "text": "public final void ruleActionEnum() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalDSL.g:830:1: ( ( ( rule__ActionEnum__Alternatives ) ) )\n // InternalDSL.g:831:2: ( ( rule__ActionEnum__Alternatives ) )\n {\n // InternalDSL.g:831:2: ( ( rule__ActionEnum__Alternatives ) )\n // InternalDSL.g:832:3: ( rule__ActionEnum__Alternatives )\n {\n before(grammarAccess.getActionEnumAccess().getAlternatives()); \n // InternalDSL.g:833:3: ( rule__ActionEnum__Alternatives )\n // InternalDSL.g:833:4: rule__ActionEnum__Alternatives\n {\n pushFollow(FOLLOW_2);\n rule__ActionEnum__Alternatives();\n\n state._fsp--;\n\n\n }\n\n after(grammarAccess.getActionEnumAccess().getAlternatives()); \n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "b92edf365a698c4d8a187d6b5e3b207c", "score": "0.51523554", "text": "public final void rule__AddEnum__Group__3() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.eclipse.osee.framework.core.dsl.ui/src-gen/org/eclipse/osee/framework/core/dsl/ui/contentassist/antlr/internal/InternalOseeDsl.g:4922:1: ( rule__AddEnum__Group__3__Impl rule__AddEnum__Group__4 )\n // ../org.eclipse.osee.framework.core.dsl.ui/src-gen/org/eclipse/osee/framework/core/dsl/ui/contentassist/antlr/internal/InternalOseeDsl.g:4923:2: rule__AddEnum__Group__3__Impl rule__AddEnum__Group__4\n {\n pushFollow(FOLLOW_rule__AddEnum__Group__3__Impl_in_rule__AddEnum__Group__310120);\n rule__AddEnum__Group__3__Impl();\n\n state._fsp--;\n\n pushFollow(FOLLOW_rule__AddEnum__Group__4_in_rule__AddEnum__Group__310123);\n rule__AddEnum__Group__4();\n\n state._fsp--;\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "09e03af7526add8ca82dab803faa09a2", "score": "0.5147791", "text": "public final void rule__Enum__Group__2() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // InternalIsml.g:5316:1: ( rule__Enum__Group__2__Impl rule__Enum__Group__3 )\n // InternalIsml.g:5317:2: rule__Enum__Group__2__Impl rule__Enum__Group__3\n {\n pushFollow(FOLLOW_22);\n rule__Enum__Group__2__Impl();\n\n state._fsp--;\n if (state.failed) return ;\n pushFollow(FOLLOW_2);\n rule__Enum__Group__3();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "2bbd3217fde5d8adcfb517d5a38f1387", "score": "0.5143491", "text": "public final void rule__AddEnum__Group__0__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.eclipse.osee.framework.core.dsl.ui/src-gen/org/eclipse/osee/framework/core/dsl/ui/contentassist/antlr/internal/InternalOseeDsl.g:4845:1: ( ( 'add' ) )\n // ../org.eclipse.osee.framework.core.dsl.ui/src-gen/org/eclipse/osee/framework/core/dsl/ui/contentassist/antlr/internal/InternalOseeDsl.g:4846:1: ( 'add' )\n {\n // ../org.eclipse.osee.framework.core.dsl.ui/src-gen/org/eclipse/osee/framework/core/dsl/ui/contentassist/antlr/internal/InternalOseeDsl.g:4846:1: ( 'add' )\n // ../org.eclipse.osee.framework.core.dsl.ui/src-gen/org/eclipse/osee/framework/core/dsl/ui/contentassist/antlr/internal/InternalOseeDsl.g:4847:1: 'add'\n {\n before(grammarAccess.getAddEnumAccess().getAddKeyword_0()); \n match(input,76,FOLLOW_76_in_rule__AddEnum__Group__0__Impl9968); \n after(grammarAccess.getAddEnumAccess().getAddKeyword_0()); \n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "2c59b735d9e3200d3d572528fb1bb857", "score": "0.5138789", "text": "public final void rule__Type_definition__Group_17_2_12__2__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalMyDsl.g:23010:1: ( ( ( rule__Type_definition__Type_definition_enumeration_refAssignment_17_2_12_2 ) ) )\n // InternalMyDsl.g:23011:1: ( ( rule__Type_definition__Type_definition_enumeration_refAssignment_17_2_12_2 ) )\n {\n // InternalMyDsl.g:23011:1: ( ( rule__Type_definition__Type_definition_enumeration_refAssignment_17_2_12_2 ) )\n // InternalMyDsl.g:23012:2: ( rule__Type_definition__Type_definition_enumeration_refAssignment_17_2_12_2 )\n {\n before(grammarAccess.getType_definitionAccess().getType_definition_enumeration_refAssignment_17_2_12_2()); \n // InternalMyDsl.g:23013:2: ( rule__Type_definition__Type_definition_enumeration_refAssignment_17_2_12_2 )\n // InternalMyDsl.g:23013:3: rule__Type_definition__Type_definition_enumeration_refAssignment_17_2_12_2\n {\n pushFollow(FOLLOW_2);\n rule__Type_definition__Type_definition_enumeration_refAssignment_17_2_12_2();\n\n state._fsp--;\n\n\n }\n\n after(grammarAccess.getType_definitionAccess().getType_definition_enumeration_refAssignment_17_2_12_2()); \n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "7d195c701668fe2306f78bdb06fe3620", "score": "0.51361364", "text": "public void test0026() throws JavaModelException {\n ICompilationUnit sourceUnit = getCompilationUnit(\"Converter15\", \"src\", \"test0026\", \"X.java\");\n ASTNode result = runJLS8Conversion(sourceUnit, true, true);\n assertTrue(\"Not a compilation unit\", result.getNodeType() == ASTNode.COMPILATION_UNIT);\n CompilationUnit compilationUnit = (CompilationUnit) result;\n assertProblemsSize(compilationUnit, 0);\n char[] source = sourceUnit.getSource().toCharArray();\n ASTNode node = getASTNode(compilationUnit, 0);\n assertEquals(\"Not an enum declaration\", ASTNode.ENUM_DECLARATION, node.getNodeType());\n EnumDeclaration enumDeclaration = (EnumDeclaration) node;\n ITypeBinding typeBinding2 = enumDeclaration.resolveBinding();\n assertNotNull(\"No binding\", typeBinding2);\n List modifiers = enumDeclaration.modifiers();\n assertEquals(\"Wrong number of modifiers\", 1, modifiers.size());\n IExtendedModifier extendedModifier = (IExtendedModifier) modifiers.get(0);\n assertTrue(\"Not a modifier\", extendedModifier instanceof Modifier);\n Modifier modifier = (Modifier) extendedModifier;\n checkSourceRange(modifier, \"public\", source);\n assertEquals(\"wrong name\", \"X\", enumDeclaration.getName().getIdentifier());\n List enumConstants = enumDeclaration.enumConstants();\n assertEquals(\"wrong size\", 4, enumConstants.size());\n List bodyDeclarations = enumDeclaration.bodyDeclarations();\n assertEquals(\"wrong size\", 2, bodyDeclarations.size());\n EnumConstantDeclaration enumConstantDeclaration = (EnumConstantDeclaration) enumConstants.get(0);\n IMethodBinding methodBinding = enumConstantDeclaration.resolveConstructorBinding();\n assertNotNull(\"No binding\", methodBinding);\n assertTrue(\"Not a constructor\", methodBinding.isConstructor());\n checkSourceRange(enumConstantDeclaration.getName(), \"PLUS\", source);\n checkSourceRange(enumConstantDeclaration, \"PLUS {\\n\" + \" @Override\\n\" + \" double eval(double x, double y) { return x + y; }\\n\" + \" }\", source);\n assertEquals(\"wrong size\", 0, enumConstantDeclaration.arguments().size());\n AnonymousClassDeclaration anonymousClassDeclaration = enumConstantDeclaration.getAnonymousClassDeclaration();\n assertNotNull(\"No anonymous class\", anonymousClassDeclaration);\n checkSourceRange(anonymousClassDeclaration, \"{\\n\" + \" @Override\\n\" + \" double eval(double x, double y) { return x + y; }\\n\" + \" }\", source);\n ITypeBinding typeBinding = anonymousClassDeclaration.resolveBinding();\n assertNotNull(\"No binding\", typeBinding);\n assertTrue(\"Not a enum type\", typeBinding.isEnum());\n bodyDeclarations = anonymousClassDeclaration.bodyDeclarations();\n assertEquals(\"wrong size\", 1, bodyDeclarations.size());\n BodyDeclaration bodyDeclaration = (BodyDeclaration) bodyDeclarations.get(0);\n assertEquals(\"Not a method declaration\", ASTNode.METHOD_DECLARATION, bodyDeclaration.getNodeType());\n MethodDeclaration methodDeclaration = (MethodDeclaration) bodyDeclaration;\n checkSourceRange(methodDeclaration.getName(), \"eval\", source);\n checkSourceRange(methodDeclaration, \"@Override\\n double eval(double x, double y) { return x + y; }\", source);\n assertEquals(\"wrong size\", 0, enumConstantDeclaration.arguments().size());\n enumConstantDeclaration = (EnumConstantDeclaration) enumConstants.get(1);\n methodBinding = enumConstantDeclaration.resolveConstructorBinding();\n assertNotNull(\"No binding\", methodBinding);\n assertTrue(\"Not a constructor\", methodBinding.isConstructor());\n checkSourceRange(enumConstantDeclaration.getName(), \"MINUS\", source);\n checkSourceRange(enumConstantDeclaration, \"MINUS {\\n\" + \" @Override\\n\" + \" double eval(double x, double y) { return x - y; }\\n\" + \" }\", source);\n anonymousClassDeclaration = enumConstantDeclaration.getAnonymousClassDeclaration();\n typeBinding = anonymousClassDeclaration.resolveBinding();\n assertNotNull(\"No binding\", typeBinding);\n assertTrue(\"Not a enum type\", typeBinding.isEnum());\n assertNotNull(\"No anonymous class\", anonymousClassDeclaration);\n checkSourceRange(anonymousClassDeclaration, \"{\\n\" + \" @Override\\n\" + \" double eval(double x, double y) { return x - y; }\\n\" + \" }\", source);\n bodyDeclarations = anonymousClassDeclaration.bodyDeclarations();\n assertEquals(\"wrong size\", 1, bodyDeclarations.size());\n bodyDeclaration = (BodyDeclaration) bodyDeclarations.get(0);\n assertEquals(\"Not a method declaration\", ASTNode.METHOD_DECLARATION, bodyDeclaration.getNodeType());\n methodDeclaration = (MethodDeclaration) bodyDeclaration;\n checkSourceRange(methodDeclaration.getName(), \"eval\", source);\n checkSourceRange(methodDeclaration, \"@Override\\n double eval(double x, double y) { return x - y; }\", source);\n assertEquals(\"wrong size\", 0, enumConstantDeclaration.arguments().size());\n enumConstantDeclaration = (EnumConstantDeclaration) enumConstants.get(2);\n methodBinding = enumConstantDeclaration.resolveConstructorBinding();\n assertNotNull(\"No binding\", methodBinding);\n assertTrue(\"Not a constructor\", methodBinding.isConstructor());\n checkSourceRange(enumConstantDeclaration.getName(), \"TIMES\", source);\n checkSourceRange(enumConstantDeclaration, \"TIMES {\\n\" + \" @Override\\n\" + \" double eval(double x, double y) { return x * y; }\\n\" + \" }\", source);\n anonymousClassDeclaration = enumConstantDeclaration.getAnonymousClassDeclaration();\n assertNotNull(\"No anonymous class\", anonymousClassDeclaration);\n checkSourceRange(anonymousClassDeclaration, \"{\\n\" + \" @Override\\n\" + \" double eval(double x, double y) { return x * y; }\\n\" + \" }\", source);\n typeBinding = anonymousClassDeclaration.resolveBinding();\n assertNotNull(\"No binding\", typeBinding);\n assertTrue(\"Not a enum type\", typeBinding.isEnum());\n bodyDeclarations = anonymousClassDeclaration.bodyDeclarations();\n assertEquals(\"wrong size\", 1, bodyDeclarations.size());\n bodyDeclaration = (BodyDeclaration) bodyDeclarations.get(0);\n assertEquals(\"Not a method declaration\", ASTNode.METHOD_DECLARATION, bodyDeclaration.getNodeType());\n methodDeclaration = (MethodDeclaration) bodyDeclaration;\n checkSourceRange(methodDeclaration.getName(), \"eval\", source);\n checkSourceRange(methodDeclaration, \"@Override\\n double eval(double x, double y) { return x * y; }\", source);\n assertEquals(\"wrong size\", 0, enumConstantDeclaration.arguments().size());\n enumConstantDeclaration = (EnumConstantDeclaration) enumConstants.get(3);\n methodBinding = enumConstantDeclaration.resolveConstructorBinding();\n assertNotNull(\"No binding\", methodBinding);\n assertTrue(\"Not a constructor\", methodBinding.isConstructor());\n checkSourceRange(enumConstantDeclaration.getName(), \"DIVIDED_BY\", source);\n checkSourceRange(enumConstantDeclaration, \"DIVIDED_BY {\\n\" + \" @Override\\n\" + \" double eval(double x, double y) { return x / y; }\\n\" + \" }\", source);\n anonymousClassDeclaration = enumConstantDeclaration.getAnonymousClassDeclaration();\n assertNotNull(\"No anonymous class\", anonymousClassDeclaration);\n checkSourceRange(anonymousClassDeclaration, \"{\\n\" + \" @Override\\n\" + \" double eval(double x, double y) { return x / y; }\\n\" + \" }\", source);\n typeBinding = anonymousClassDeclaration.resolveBinding();\n assertNotNull(\"No binding\", typeBinding);\n assertTrue(\"Not a enum type\", typeBinding.isEnum());\n bodyDeclarations = anonymousClassDeclaration.bodyDeclarations();\n assertEquals(\"wrong size\", 1, bodyDeclarations.size());\n bodyDeclaration = (BodyDeclaration) bodyDeclarations.get(0);\n assertEquals(\"Not a method declaration\", ASTNode.METHOD_DECLARATION, bodyDeclaration.getNodeType());\n methodDeclaration = (MethodDeclaration) bodyDeclaration;\n checkSourceRange(methodDeclaration.getName(), \"eval\", source);\n checkSourceRange(methodDeclaration, \"@Override\\n double eval(double x, double y) { return x / y; }\", source);\n assertEquals(\"wrong size\", 0, enumConstantDeclaration.arguments().size());\n }", "title": "" }, { "docid": "3cf9da795421fa3c8122f5b465edd32c", "score": "0.5129472", "text": "public final void rule__Enumeration_definition__Enumeration_value_definitionAssignment_8() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalMyDsl.g:36194:1: ( ( ruleenumeration_value_definition ) )\n // InternalMyDsl.g:36195:2: ( ruleenumeration_value_definition )\n {\n // InternalMyDsl.g:36195:2: ( ruleenumeration_value_definition )\n // InternalMyDsl.g:36196:3: ruleenumeration_value_definition\n {\n before(grammarAccess.getEnumeration_definitionAccess().getEnumeration_value_definitionEnumeration_value_definitionParserRuleCall_8_0()); \n pushFollow(FOLLOW_2);\n ruleenumeration_value_definition();\n\n state._fsp--;\n\n after(grammarAccess.getEnumeration_definitionAccess().getEnumeration_value_definitionEnumeration_value_definitionParserRuleCall_8_0()); \n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "8ca61b3cedc50e32d0abc16ec563fd2f", "score": "0.51204", "text": "public final void rule__XOseeEnumEntry__EntryGuidAssignment_3_1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.eclipse.osee.framework.core.dsl.ui/src-gen/org/eclipse/osee/framework/core/dsl/ui/contentassist/antlr/internal/InternalOseeDsl.g:9599:1: ( ( RULE_STRING ) )\n // ../org.eclipse.osee.framework.core.dsl.ui/src-gen/org/eclipse/osee/framework/core/dsl/ui/contentassist/antlr/internal/InternalOseeDsl.g:9600:1: ( RULE_STRING )\n {\n // ../org.eclipse.osee.framework.core.dsl.ui/src-gen/org/eclipse/osee/framework/core/dsl/ui/contentassist/antlr/internal/InternalOseeDsl.g:9600:1: ( RULE_STRING )\n // ../org.eclipse.osee.framework.core.dsl.ui/src-gen/org/eclipse/osee/framework/core/dsl/ui/contentassist/antlr/internal/InternalOseeDsl.g:9601:1: RULE_STRING\n {\n before(grammarAccess.getXOseeEnumEntryAccess().getEntryGuidSTRINGTerminalRuleCall_3_1_0()); \n match(input,RULE_STRING,FOLLOW_RULE_STRING_in_rule__XOseeEnumEntry__EntryGuidAssignment_3_119712); \n after(grammarAccess.getXOseeEnumEntryAccess().getEntryGuidSTRINGTerminalRuleCall_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 }", "title": "" }, { "docid": "6f16b21dda4fad13a2d1827783c635da", "score": "0.511598", "text": "public final void rule__LREnum__Alternatives() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalDSL.g:1070:1: ( ( ( 'left' ) ) | ( ( 'right' ) ) )\n int alt6=2;\n int LA6_0 = input.LA(1);\n\n if ( (LA6_0==14) ) {\n alt6=1;\n }\n else if ( (LA6_0==15) ) {\n alt6=2;\n }\n else {\n NoViableAltException nvae =\n new NoViableAltException(\"\", 6, 0, input);\n\n throw nvae;\n }\n switch (alt6) {\n case 1 :\n // InternalDSL.g:1071:2: ( ( 'left' ) )\n {\n // InternalDSL.g:1071:2: ( ( 'left' ) )\n // InternalDSL.g:1072:3: ( 'left' )\n {\n before(grammarAccess.getLREnumAccess().getLEFTEnumLiteralDeclaration_0()); \n // InternalDSL.g:1073:3: ( 'left' )\n // InternalDSL.g:1073:4: 'left'\n {\n match(input,14,FOLLOW_2); \n\n }\n\n after(grammarAccess.getLREnumAccess().getLEFTEnumLiteralDeclaration_0()); \n\n }\n\n\n }\n break;\n case 2 :\n // InternalDSL.g:1077:2: ( ( 'right' ) )\n {\n // InternalDSL.g:1077:2: ( ( 'right' ) )\n // InternalDSL.g:1078:3: ( 'right' )\n {\n before(grammarAccess.getLREnumAccess().getRIGHTEnumLiteralDeclaration_1()); \n // InternalDSL.g:1079:3: ( 'right' )\n // InternalDSL.g:1079:4: 'right'\n {\n match(input,15,FOLLOW_2); \n\n }\n\n after(grammarAccess.getLREnumAccess().getRIGHTEnumLiteralDeclaration_1()); \n\n }\n\n\n }\n break;\n\n }\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "f14c8dfc0eba974adda45ca891e4cffe", "score": "0.5113554", "text": "public final void rule__XOseeEnumEntry__Group__2() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.eclipse.osee.framework.core.dsl.ui/src-gen/org/eclipse/osee/framework/core/dsl/ui/contentassist/antlr/internal/InternalOseeDsl.g:4420:1: ( rule__XOseeEnumEntry__Group__2__Impl rule__XOseeEnumEntry__Group__3 )\n // ../org.eclipse.osee.framework.core.dsl.ui/src-gen/org/eclipse/osee/framework/core/dsl/ui/contentassist/antlr/internal/InternalOseeDsl.g:4421:2: rule__XOseeEnumEntry__Group__2__Impl rule__XOseeEnumEntry__Group__3\n {\n pushFollow(FOLLOW_rule__XOseeEnumEntry__Group__2__Impl_in_rule__XOseeEnumEntry__Group__29124);\n rule__XOseeEnumEntry__Group__2__Impl();\n\n state._fsp--;\n\n pushFollow(FOLLOW_rule__XOseeEnumEntry__Group__3_in_rule__XOseeEnumEntry__Group__29127);\n rule__XOseeEnumEntry__Group__3();\n\n state._fsp--;\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "c5a1e2bd9838e4d97778f7207b1e2f33", "score": "0.5112129", "text": "@handler(name=\"enum\") Object handleEnum(List args, Dynvars dynvars) {\n\t\tClass eType = ReflectHelper.findClass(args.get(0).toString());\n\t\tEnum e;\n\t\te = Enum.valueOf(eType, args.get(1).toString());\n\t\t\n\t\treturn e;\n\t}", "title": "" }, { "docid": "d41c9e998d202fd4f5ee1c45f255ea6a", "score": "0.51117694", "text": "public final void entryRuleenumerated_type() throws RecognitionException {\r\n try {\r\n // InternalPascal.g:1344:1: ( ruleenumerated_type EOF )\r\n // InternalPascal.g:1345:1: ruleenumerated_type EOF\r\n {\r\n before(grammarAccess.getEnumerated_typeRule()); \r\n pushFollow(FOLLOW_1);\r\n ruleenumerated_type();\r\n\r\n state._fsp--;\r\n\r\n after(grammarAccess.getEnumerated_typeRule()); \r\n match(input,EOF,FOLLOW_2); \r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n }\r\n return ;\r\n }", "title": "" }, { "docid": "852ee1ea70b85d276c08aee53cf81eca", "score": "0.5108427", "text": "public final void rule__Enumeration_definition__Enumeration_type_definitionAssignment_6() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalMyDsl.g:36164:1: ( ( ruleenumeration_type_definition ) )\n // InternalMyDsl.g:36165:2: ( ruleenumeration_type_definition )\n {\n // InternalMyDsl.g:36165:2: ( ruleenumeration_type_definition )\n // InternalMyDsl.g:36166:3: ruleenumeration_type_definition\n {\n before(grammarAccess.getEnumeration_definitionAccess().getEnumeration_type_definitionEnumeration_type_definitionParserRuleCall_6_0()); \n pushFollow(FOLLOW_2);\n ruleenumeration_type_definition();\n\n state._fsp--;\n\n after(grammarAccess.getEnumeration_definitionAccess().getEnumeration_type_definitionEnumeration_type_definitionParserRuleCall_6_0()); \n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "085356ce9fb3fc9c6fb2bb2e5758f0d3", "score": "0.51064503", "text": "public final void rule__Simple_type__EnumeratedAssignment_1() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \t\r\n try {\r\n // InternalPascal.g:11799:1: ( ( ruleenumerated_type ) )\r\n // InternalPascal.g:11800:2: ( ruleenumerated_type )\r\n {\r\n // InternalPascal.g:11800:2: ( ruleenumerated_type )\r\n // InternalPascal.g:11801:3: ruleenumerated_type\r\n {\r\n before(grammarAccess.getSimple_typeAccess().getEnumeratedEnumerated_typeParserRuleCall_1_0()); \r\n pushFollow(FOLLOW_2);\r\n ruleenumerated_type();\r\n\r\n state._fsp--;\r\n\r\n after(grammarAccess.getSimple_typeAccess().getEnumeratedEnumerated_typeParserRuleCall_1_0()); \r\n\r\n }\r\n\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }", "title": "" }, { "docid": "6f8a0735b7ab67d2ff746e28a3e9d9aa", "score": "0.51056147", "text": "private void visitEnumDef(JCClassDecl tree) {\n make_at(tree.pos());\n\n // add the supertype, if needed\n if (tree.extending == null)\n tree.extending = make.Type(types.supertype(tree.type));\n\n // classOfType adds a cache field to tree.defs unless\n // target.hasClassLiterals().\n JCExpression e_class = classOfType(tree.sym.type, tree.pos()).\n setType(types.erasure(syms.classType));\n\n // process each enumeration constant, adding implicit constructor parameters\n int nextOrdinal = 0;\n ListBuffer<JCExpression> values = new ListBuffer<JCExpression>();\n ListBuffer<JCTree> enumDefs = new ListBuffer<JCTree>();\n ListBuffer<JCTree> otherDefs = new ListBuffer<JCTree>();\n for (List<JCTree> defs = tree.defs;\n defs.nonEmpty();\n defs=defs.tail) {\n if (defs.head.hasTag(VARDEF) && (((JCVariableDecl) defs.head).mods.flags & ENUM) != 0) {\n JCVariableDecl var = (JCVariableDecl)defs.head;\n visitEnumConstantDef(var, nextOrdinal++);\n values.append(make.QualIdent(var.sym));\n enumDefs.append(var);\n } else {\n otherDefs.append(defs.head);\n }\n }\n\n // private static final T[] #VALUES = { a, b, c };\n Name valuesName = names.fromString(target.syntheticNameChar() + \"VALUES\");\n while (tree.sym.members().lookup(valuesName).scope != null) // avoid name clash\n valuesName = names.fromString(valuesName + \"\" + target.syntheticNameChar());\n Type arrayType = new ArrayType(types.erasure(tree.type), syms.arrayClass);\n VarSymbol valuesVar = new VarSymbol(PRIVATE|FINAL|STATIC|SYNTHETIC,\n valuesName,\n arrayType,\n tree.type.tsym);\n JCNewArray newArray = make.NewArray(make.Type(types.erasure(tree.type)),\n List.<JCExpression>nil(),\n values.toList());\n newArray.type = arrayType;\n enumDefs.append(make.VarDef(valuesVar, newArray));\n tree.sym.members().enter(valuesVar);\n\n Symbol valuesSym = lookupMethod(tree.pos(), names.values,\n tree.type, List.<Type>nil());\n List<JCStatement> valuesBody;\n if (useClone()) {\n // return (T[]) $VALUES.clone();\n JCTypeCast valuesResult =\n make.TypeCast(valuesSym.type.getReturnType(),\n make.App(make.Select(make.Ident(valuesVar),\n syms.arrayCloneMethod)));\n valuesBody = List.<JCStatement>of(make.Return(valuesResult));\n } else {\n // template: T[] $result = new T[$values.length];\n Name resultName = names.fromString(target.syntheticNameChar() + \"result\");\n while (tree.sym.members().lookup(resultName).scope != null) // avoid name clash\n resultName = names.fromString(resultName + \"\" + target.syntheticNameChar());\n VarSymbol resultVar = new VarSymbol(FINAL|SYNTHETIC,\n resultName,\n arrayType,\n valuesSym);\n JCNewArray resultArray = make.NewArray(make.Type(types.erasure(tree.type)),\n List.of(make.Select(make.Ident(valuesVar), syms.lengthVar)),\n null);\n resultArray.type = arrayType;\n JCVariableDecl decl = make.VarDef(resultVar, resultArray);\n\n // template: System.arraycopy($VALUES, 0, $result, 0, $VALUES.length);\n if (systemArraycopyMethod == null) {\n systemArraycopyMethod =\n new MethodSymbol(PUBLIC | STATIC,\n names.fromString(\"arraycopy\"),\n new MethodType(List.<Type>of(syms.objectType,\n syms.intType,\n syms.objectType,\n syms.intType,\n syms.intType),\n syms.voidType,\n List.<Type>nil(),\n syms.methodClass),\n syms.systemType.tsym);\n }\n JCStatement copy =\n make.Exec(make.App(make.Select(make.Ident(syms.systemType.tsym),\n systemArraycopyMethod),\n List.of(make.Ident(valuesVar), make.Literal(0),\n make.Ident(resultVar), make.Literal(0),\n make.Select(make.Ident(valuesVar), syms.lengthVar))));\n\n // template: return $result;\n JCStatement ret = make.Return(make.Ident(resultVar));\n valuesBody = List.<JCStatement>of(decl, copy, ret);\n }\n\n JCMethodDecl valuesDef =\n make.MethodDef((MethodSymbol)valuesSym, make.Block(0, valuesBody));\n\n enumDefs.append(valuesDef);\n\n if (debugLower)\n System.err.println(tree.sym + \".valuesDef = \" + valuesDef);\n\n /** The template for the following code is:\n *\n * public static E valueOf(String name) {\n * return (E)Enum.valueOf(E.class, name);\n * }\n *\n * where E is tree.sym\n */\n MethodSymbol valueOfSym = lookupMethod(tree.pos(),\n names.valueOf,\n tree.sym.type,\n List.of(syms.stringType));\n Assert.check((valueOfSym.flags() & STATIC) != 0);\n VarSymbol nameArgSym = valueOfSym.params.head;\n JCIdent nameVal = make.Ident(nameArgSym);\n JCStatement enum_ValueOf =\n make.Return(make.TypeCast(tree.sym.type,\n makeCall(make.Ident(syms.enumSym),\n names.valueOf,\n List.of(e_class, nameVal))));\n JCMethodDecl valueOf = make.MethodDef(valueOfSym,\n make.Block(0, List.of(enum_ValueOf)));\n nameVal.sym = valueOf.params.head.sym;\n if (debugLower)\n System.err.println(tree.sym + \".valueOf = \" + valueOf);\n enumDefs.append(valueOf);\n\n enumDefs.appendList(otherDefs.toList());\n tree.defs = enumDefs.toList();\n }", "title": "" }, { "docid": "e010651b746829629985e3243b51e113", "score": "0.5098574", "text": "public final void rule__EnumerationType__Group__2__Impl() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \t\r\n try {\r\n // InternalAadlV3.g:11127:1: ( ( '(' ) )\r\n // InternalAadlV3.g:11128:1: ( '(' )\r\n {\r\n // InternalAadlV3.g:11128:1: ( '(' )\r\n // InternalAadlV3.g:11129:2: '('\r\n {\r\n if ( state.backtracking==0 ) {\r\n before(grammarAccess.getEnumerationTypeAccess().getLeftParenthesisKeyword_2()); \r\n }\r\n match(input,65,FOLLOW_2); if (state.failed) return ;\r\n if ( state.backtracking==0 ) {\r\n after(grammarAccess.getEnumerationTypeAccess().getLeftParenthesisKeyword_2()); \r\n }\r\n\r\n }\r\n\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }", "title": "" }, { "docid": "f326fc04e474cb8582bec8aed07fbbe4", "score": "0.50941163", "text": "public final void ruleenumeration_definition() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalMyDsl.g:1916:2: ( ( ( rule__Enumeration_definition__Group__0 ) ) )\n // InternalMyDsl.g:1917:2: ( ( rule__Enumeration_definition__Group__0 ) )\n {\n // InternalMyDsl.g:1917:2: ( ( rule__Enumeration_definition__Group__0 ) )\n // InternalMyDsl.g:1918:3: ( rule__Enumeration_definition__Group__0 )\n {\n before(grammarAccess.getEnumeration_definitionAccess().getGroup()); \n // InternalMyDsl.g:1919:3: ( rule__Enumeration_definition__Group__0 )\n // InternalMyDsl.g:1919:4: rule__Enumeration_definition__Group__0\n {\n pushFollow(FOLLOW_2);\n rule__Enumeration_definition__Group__0();\n\n state._fsp--;\n\n\n }\n\n after(grammarAccess.getEnumeration_definitionAccess().getGroup()); \n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" } ]
2acf334417e7a8d8d941edcc259fb8e2
Get the place's name.
[ { "docid": "b8814d12cbb19505c8325bce78ddfd74", "score": "0.0", "text": "public String getName() {\n\t\treturn name;\n\t}", "title": "" } ]
[ { "docid": "05cb1809bd5c7fe20b255a9a07c998ea", "score": "0.7987212", "text": "public String getPlaceName() {\n return placeName;\n }", "title": "" }, { "docid": "c056b41478866a8e927b69a76815ee92", "score": "0.7469224", "text": "public String getPlaceName(int index)\r\n {\r\n JSONObject place = results.getJSONObject(index);\r\n return place.getString(\"name\");\r\n }", "title": "" }, { "docid": "06c2cb81d7465e93fcd20a18a7479e44", "score": "0.68113554", "text": "public String getLocationName()\n\t{\n\t\treturn name;\n\t}", "title": "" }, { "docid": "6b245d5eea62c8c69e84f76c6b6c4d53", "score": "0.6736194", "text": "java.lang.String getName();", "title": "" }, { "docid": "6b245d5eea62c8c69e84f76c6b6c4d53", "score": "0.6736194", "text": "java.lang.String getName();", "title": "" }, { "docid": "6b245d5eea62c8c69e84f76c6b6c4d53", "score": "0.6736194", "text": "java.lang.String getName();", "title": "" }, { "docid": "6b245d5eea62c8c69e84f76c6b6c4d53", "score": "0.6736194", "text": "java.lang.String getName();", "title": "" }, { "docid": "6b245d5eea62c8c69e84f76c6b6c4d53", "score": "0.6736194", "text": "java.lang.String getName();", "title": "" }, { "docid": "6b245d5eea62c8c69e84f76c6b6c4d53", "score": "0.6736194", "text": "java.lang.String getName();", "title": "" }, { "docid": "6b245d5eea62c8c69e84f76c6b6c4d53", "score": "0.6736194", "text": "java.lang.String getName();", "title": "" }, { "docid": "6b245d5eea62c8c69e84f76c6b6c4d53", "score": "0.6736194", "text": "java.lang.String getName();", "title": "" }, { "docid": "6b245d5eea62c8c69e84f76c6b6c4d53", "score": "0.6736194", "text": "java.lang.String getName();", "title": "" }, { "docid": "6b245d5eea62c8c69e84f76c6b6c4d53", "score": "0.6736194", "text": "java.lang.String getName();", "title": "" }, { "docid": "6b245d5eea62c8c69e84f76c6b6c4d53", "score": "0.6736194", "text": "java.lang.String getName();", "title": "" }, { "docid": "6b245d5eea62c8c69e84f76c6b6c4d53", "score": "0.6736194", "text": "java.lang.String getName();", "title": "" }, { "docid": "6b245d5eea62c8c69e84f76c6b6c4d53", "score": "0.6736194", "text": "java.lang.String getName();", "title": "" }, { "docid": "6b245d5eea62c8c69e84f76c6b6c4d53", "score": "0.6736194", "text": "java.lang.String getName();", "title": "" }, { "docid": "6b245d5eea62c8c69e84f76c6b6c4d53", "score": "0.6736194", "text": "java.lang.String getName();", "title": "" }, { "docid": "6b245d5eea62c8c69e84f76c6b6c4d53", "score": "0.6736194", "text": "java.lang.String getName();", "title": "" }, { "docid": "6b245d5eea62c8c69e84f76c6b6c4d53", "score": "0.6736194", "text": "java.lang.String getName();", "title": "" }, { "docid": "6b245d5eea62c8c69e84f76c6b6c4d53", "score": "0.6736194", "text": "java.lang.String getName();", "title": "" }, { "docid": "6b245d5eea62c8c69e84f76c6b6c4d53", "score": "0.6736194", "text": "java.lang.String getName();", "title": "" }, { "docid": "6b245d5eea62c8c69e84f76c6b6c4d53", "score": "0.6736194", "text": "java.lang.String getName();", "title": "" }, { "docid": "6b245d5eea62c8c69e84f76c6b6c4d53", "score": "0.6736194", "text": "java.lang.String getName();", "title": "" }, { "docid": "6b245d5eea62c8c69e84f76c6b6c4d53", "score": "0.6736194", "text": "java.lang.String getName();", "title": "" }, { "docid": "6b245d5eea62c8c69e84f76c6b6c4d53", "score": "0.6736194", "text": "java.lang.String getName();", "title": "" }, { "docid": "6b245d5eea62c8c69e84f76c6b6c4d53", "score": "0.6736194", "text": "java.lang.String getName();", "title": "" }, { "docid": "6b245d5eea62c8c69e84f76c6b6c4d53", "score": "0.6736194", "text": "java.lang.String getName();", "title": "" }, { "docid": "6b245d5eea62c8c69e84f76c6b6c4d53", "score": "0.6736194", "text": "java.lang.String getName();", "title": "" }, { "docid": "6b245d5eea62c8c69e84f76c6b6c4d53", "score": "0.6736194", "text": "java.lang.String getName();", "title": "" }, { "docid": "6b245d5eea62c8c69e84f76c6b6c4d53", "score": "0.6736194", "text": "java.lang.String getName();", "title": "" }, { "docid": "6b245d5eea62c8c69e84f76c6b6c4d53", "score": "0.6736194", "text": "java.lang.String getName();", "title": "" }, { "docid": "6b245d5eea62c8c69e84f76c6b6c4d53", "score": "0.6736194", "text": "java.lang.String getName();", "title": "" }, { "docid": "6b245d5eea62c8c69e84f76c6b6c4d53", "score": "0.6736194", "text": "java.lang.String getName();", "title": "" }, { "docid": "6b245d5eea62c8c69e84f76c6b6c4d53", "score": "0.6736194", "text": "java.lang.String getName();", "title": "" }, { "docid": "6b245d5eea62c8c69e84f76c6b6c4d53", "score": "0.6736194", "text": "java.lang.String getName();", "title": "" }, { "docid": "6b245d5eea62c8c69e84f76c6b6c4d53", "score": "0.6736194", "text": "java.lang.String getName();", "title": "" }, { "docid": "6b245d5eea62c8c69e84f76c6b6c4d53", "score": "0.6736194", "text": "java.lang.String getName();", "title": "" }, { "docid": "6b245d5eea62c8c69e84f76c6b6c4d53", "score": "0.6736194", "text": "java.lang.String getName();", "title": "" }, { "docid": "6b245d5eea62c8c69e84f76c6b6c4d53", "score": "0.6736194", "text": "java.lang.String getName();", "title": "" }, { "docid": "6b245d5eea62c8c69e84f76c6b6c4d53", "score": "0.6736194", "text": "java.lang.String getName();", "title": "" }, { "docid": "6b245d5eea62c8c69e84f76c6b6c4d53", "score": "0.6736194", "text": "java.lang.String getName();", "title": "" }, { "docid": "6b245d5eea62c8c69e84f76c6b6c4d53", "score": "0.6736194", "text": "java.lang.String getName();", "title": "" }, { "docid": "6b245d5eea62c8c69e84f76c6b6c4d53", "score": "0.6736194", "text": "java.lang.String getName();", "title": "" }, { "docid": "6b245d5eea62c8c69e84f76c6b6c4d53", "score": "0.6736194", "text": "java.lang.String getName();", "title": "" }, { "docid": "6b245d5eea62c8c69e84f76c6b6c4d53", "score": "0.6736194", "text": "java.lang.String getName();", "title": "" }, { "docid": "6b245d5eea62c8c69e84f76c6b6c4d53", "score": "0.6736194", "text": "java.lang.String getName();", "title": "" }, { "docid": "6b245d5eea62c8c69e84f76c6b6c4d53", "score": "0.6736194", "text": "java.lang.String getName();", "title": "" }, { "docid": "6b245d5eea62c8c69e84f76c6b6c4d53", "score": "0.6736194", "text": "java.lang.String getName();", "title": "" }, { "docid": "6b245d5eea62c8c69e84f76c6b6c4d53", "score": "0.6736194", "text": "java.lang.String getName();", "title": "" }, { "docid": "6b245d5eea62c8c69e84f76c6b6c4d53", "score": "0.6736194", "text": "java.lang.String getName();", "title": "" }, { "docid": "6b245d5eea62c8c69e84f76c6b6c4d53", "score": "0.6736194", "text": "java.lang.String getName();", "title": "" }, { "docid": "6b245d5eea62c8c69e84f76c6b6c4d53", "score": "0.6736194", "text": "java.lang.String getName();", "title": "" }, { "docid": "6b245d5eea62c8c69e84f76c6b6c4d53", "score": "0.6736194", "text": "java.lang.String getName();", "title": "" }, { "docid": "6b245d5eea62c8c69e84f76c6b6c4d53", "score": "0.6736194", "text": "java.lang.String getName();", "title": "" }, { "docid": "6b245d5eea62c8c69e84f76c6b6c4d53", "score": "0.6736194", "text": "java.lang.String getName();", "title": "" }, { "docid": "6b245d5eea62c8c69e84f76c6b6c4d53", "score": "0.6736194", "text": "java.lang.String getName();", "title": "" }, { "docid": "6b245d5eea62c8c69e84f76c6b6c4d53", "score": "0.6736194", "text": "java.lang.String getName();", "title": "" }, { "docid": "6b245d5eea62c8c69e84f76c6b6c4d53", "score": "0.6736194", "text": "java.lang.String getName();", "title": "" }, { "docid": "6b245d5eea62c8c69e84f76c6b6c4d53", "score": "0.6736194", "text": "java.lang.String getName();", "title": "" }, { "docid": "6b245d5eea62c8c69e84f76c6b6c4d53", "score": "0.6736194", "text": "java.lang.String getName();", "title": "" }, { "docid": "6b245d5eea62c8c69e84f76c6b6c4d53", "score": "0.6736194", "text": "java.lang.String getName();", "title": "" }, { "docid": "6b245d5eea62c8c69e84f76c6b6c4d53", "score": "0.6736194", "text": "java.lang.String getName();", "title": "" }, { "docid": "6b245d5eea62c8c69e84f76c6b6c4d53", "score": "0.6736194", "text": "java.lang.String getName();", "title": "" }, { "docid": "6b245d5eea62c8c69e84f76c6b6c4d53", "score": "0.6736194", "text": "java.lang.String getName();", "title": "" }, { "docid": "6b245d5eea62c8c69e84f76c6b6c4d53", "score": "0.6736194", "text": "java.lang.String getName();", "title": "" }, { "docid": "6b245d5eea62c8c69e84f76c6b6c4d53", "score": "0.6736194", "text": "java.lang.String getName();", "title": "" }, { "docid": "6b245d5eea62c8c69e84f76c6b6c4d53", "score": "0.6736194", "text": "java.lang.String getName();", "title": "" }, { "docid": "6b245d5eea62c8c69e84f76c6b6c4d53", "score": "0.6736194", "text": "java.lang.String getName();", "title": "" }, { "docid": "6b245d5eea62c8c69e84f76c6b6c4d53", "score": "0.6736194", "text": "java.lang.String getName();", "title": "" }, { "docid": "6b245d5eea62c8c69e84f76c6b6c4d53", "score": "0.6736194", "text": "java.lang.String getName();", "title": "" }, { "docid": "6b245d5eea62c8c69e84f76c6b6c4d53", "score": "0.6736194", "text": "java.lang.String getName();", "title": "" }, { "docid": "6b245d5eea62c8c69e84f76c6b6c4d53", "score": "0.6736194", "text": "java.lang.String getName();", "title": "" }, { "docid": "6b245d5eea62c8c69e84f76c6b6c4d53", "score": "0.6736194", "text": "java.lang.String getName();", "title": "" }, { "docid": "6b245d5eea62c8c69e84f76c6b6c4d53", "score": "0.6736194", "text": "java.lang.String getName();", "title": "" }, { "docid": "6b245d5eea62c8c69e84f76c6b6c4d53", "score": "0.6736194", "text": "java.lang.String getName();", "title": "" }, { "docid": "b398e2a42f02d0f8d84554772aecc075", "score": "0.673127", "text": "public String getPlace() {\n return place;\n }", "title": "" }, { "docid": "87c28c1596587e41ce94746b779ed025", "score": "0.66909593", "text": "public String getplace()\n {\n return place;\n }", "title": "" }, { "docid": "2220adce7e2686b57a6a142bb71df242", "score": "0.66725075", "text": "public String getName() {\n return getString(\"name\");\n }", "title": "" }, { "docid": "2220adce7e2686b57a6a142bb71df242", "score": "0.66725075", "text": "public String getName() {\n return getString(\"name\");\n }", "title": "" }, { "docid": "c99b7c3e8f4731860fd76cff65ab9dea", "score": "0.66149807", "text": "public String getName()\n {\n return this.name.get();\n }", "title": "" }, { "docid": "bbda3c7b998c63b174e9f659f1b308d4", "score": "0.6610101", "text": "public String getName() {\n return this.name.get();\n }", "title": "" }, { "docid": "9778e65347b0b1bcbf5fce8b7b2d5f7c", "score": "0.6591818", "text": "public String getName() {\n\t\treturn name.get();\n\t}", "title": "" }, { "docid": "9778e65347b0b1bcbf5fce8b7b2d5f7c", "score": "0.6591818", "text": "public String getName() {\n\t\treturn name.get();\n\t}", "title": "" }, { "docid": "9778e65347b0b1bcbf5fce8b7b2d5f7c", "score": "0.6591818", "text": "public String getName() {\n\t\treturn name.get();\n\t}", "title": "" }, { "docid": "967872971b0b33407507e7d2bf57e690", "score": "0.6588774", "text": "public static String getName()\r\n {\r\n return name;\r\n }", "title": "" }, { "docid": "1071d89729dd2631d16cdd5e2b230482", "score": "0.65807146", "text": "public final String getName() {\n return getInfo().getName();\n }", "title": "" }, { "docid": "f00e8b3d8706df7ca67d3add1e5be294", "score": "0.6574493", "text": "public final String getName() {\n return name.name;\n }", "title": "" }, { "docid": "c8a1d4609fd04b3ce3f3040739caaeb1", "score": "0.657337", "text": "public static String getName()\r\n\t{\r\n\t\treturn name;\r\n\t}", "title": "" }, { "docid": "eb577c9cb0447caaea74889b18123905", "score": "0.65727407", "text": "public String getName() {\n return name.toString();\n }", "title": "" }, { "docid": "e7fd2d15e3e5ebb2239df4fbc1305962", "score": "0.6534263", "text": "public static String getDisplayName(String savedLocation) {\n String name = null;\n SavedLocation saved = Utils.parseSavedLocation(savedLocation);\n if (saved != null && SavedLocation.SUGGESTION_HOLDER.equals(saved.province)) {\n name = saved.city;\n } else {\n name = savedLocation;\n }\n return name;\n }", "title": "" }, { "docid": "c8bac89bb607cf4e1d238fd835c2cfa7", "score": "0.6534098", "text": "public String getName() { return _name.get(); }", "title": "" }, { "docid": "42e5a1436a98da4becad223af2e20733", "score": "0.6528162", "text": "public String getName() {\n return this.name.toString();\n }", "title": "" }, { "docid": "730b760b7d33522a04c92c29460dd1fb", "score": "0.65243566", "text": "@NonNull String getName();", "title": "" }, { "docid": "5d3c1328ba48057332f19b97b3dde1ac", "score": "0.65155244", "text": "Name getName();", "title": "" }, { "docid": "b1fb8fd0e5cddbb483d332659c21e85f", "score": "0.6510363", "text": "public String getName() {\n return name.getText();\n }", "title": "" }, { "docid": "aaf5450507f995d88562885723928985", "score": "0.6506182", "text": "public static String getName() {\n\t\treturn name;\n\t}", "title": "" }, { "docid": "aaf5450507f995d88562885723928985", "score": "0.6506182", "text": "public static String getName() {\n\t\treturn name;\n\t}", "title": "" }, { "docid": "60bc5005b8d4eb99c6ee1ab470f95420", "score": "0.6493032", "text": "EString getName();", "title": "" }, { "docid": "23221c30d1e96f15a999a7802878e3b8", "score": "0.64779097", "text": "Object getName();", "title": "" }, { "docid": "9bd4a7836c6e51649c1849c7710ea374", "score": "0.6464057", "text": "public String getName() {\n return name.name;\n }", "title": "" } ]
cc2930a91faa1c2010aaa528c9b09e63
int32 oneof_1189 = 1189;
[ { "docid": "4892f49a711c70deba970354d83bf794", "score": "0.0", "text": "public int getOneof1189() {\n if (hugeOneofCase_ == 1189) {\n return (java.lang.Integer) hugeOneof_;\n }\n return 0;\n }", "title": "" } ]
[ { "docid": "bcb5fa3b11bca848a5e6cfd3b39c287e", "score": "0.64839613", "text": "long mo107678c(Integer num);", "title": "" }, { "docid": "14d9de64d1d4966292bdc0add6135b79", "score": "0.64432657", "text": "void mo107677b(Integer num);", "title": "" }, { "docid": "f1f081c530ff8bc25ec4e81d9ce4e164", "score": "0.62267596", "text": "int mo27483b();", "title": "" }, { "docid": "b38747ff896200a78ee227a229443db7", "score": "0.6218317", "text": "long mo133613a();", "title": "" }, { "docid": "27379032518aa3a55da1272168474e46", "score": "0.6183065", "text": "List<C45111a> mo107674a(Integer num);", "title": "" }, { "docid": "e416a62d1c2775938248075d4e850a87", "score": "0.6181497", "text": "long mo1685a(C2369e c2369e);", "title": "" }, { "docid": "57b40bcb271e239fe583be02edefb795", "score": "0.6152751", "text": "long mo25071a(long j);", "title": "" }, { "docid": "7897b999b12e5464bd69712a6848de64", "score": "0.6046972", "text": "long mo117970a();", "title": "" }, { "docid": "70d84d3289af5625e363d1fdc64f1066", "score": "0.60468745", "text": "int intOf();", "title": "" }, { "docid": "ef3fc9b23ed35247b5476b4a4c6d458c", "score": "0.6004475", "text": "long mo25074b();", "title": "" }, { "docid": "37f8b86640d9c226b6611a72225f3031", "score": "0.59413034", "text": "public int mo3361f() {\n return 1;\n }", "title": "" }, { "docid": "0447e80cbe1f42d1a3324cc0b753087c", "score": "0.59298635", "text": "boolean mo25266c(int i);", "title": "" }, { "docid": "f4cead00e9cab459d18eaf6f04af5c75", "score": "0.5875248", "text": "long mo20406a();", "title": "" }, { "docid": "2f35dfa9f7bf8d1ea55a9b7f262c358c", "score": "0.58485377", "text": "List<C45111a> mo107675a(Integer num, Integer num2);", "title": "" }, { "docid": "f84ef99dd28fbe7123f58a247b2253e6", "score": "0.584454", "text": "int mo1756e(int i);", "title": "" }, { "docid": "d44a99a8894d7f817e01b1d160b9c94c", "score": "0.5810188", "text": "int mo38567b();", "title": "" }, { "docid": "5183a399ee3f92c4f31b081360f291de", "score": "0.58093804", "text": "long getUnknown12();", "title": "" }, { "docid": "4179fac5195d8843270a9a03c189795b", "score": "0.5800744", "text": "private int getLowTenBitNumber(int num) {\n return num & 1023;\n }", "title": "" }, { "docid": "2f071bb2c4ab5a8ab8711502e615f149", "score": "0.5787342", "text": "long mo49a();", "title": "" }, { "docid": "506e98ee3ba2f3b3fbe36366acfe512e", "score": "0.57844406", "text": "void mo12647a(C3333i iVar);", "title": "" }, { "docid": "adf8c89b0f21cbd150bf865d1466b793", "score": "0.5772579", "text": "public static int BIASED_ONE_OR_ZERO()\n\t{\n\t}", "title": "" }, { "docid": "a5461cc4d45110df7f4a1a0b1e6a7f63", "score": "0.5755667", "text": "private static int m31084a(zzss zzss) {\n int a = zzss.mo32193a(5);\n if (a == 31) {\n return zzss.mo32193a(6) + 32;\n }\n return a;\n }", "title": "" }, { "docid": "07a4ab0b7ef85045a321aa390ef6f4ae", "score": "0.57532173", "text": "long mo19692a(C3586u uVar) throws IOException;", "title": "" }, { "docid": "adb449c77f11d22e7543ea3b85ebd1bc", "score": "0.5729832", "text": "void mo17016a(int i);", "title": "" }, { "docid": "b813c461e1bfeb1a17b3aa58dfc11b72", "score": "0.5718916", "text": "C1000w mo7300a(int i);", "title": "" }, { "docid": "abc6d1cc5fdae39f7afb0f32b98f0ba1", "score": "0.569912", "text": "long mo54439f(int i);", "title": "" }, { "docid": "a042c64cac2a03b37ae53ae8ad8d62fd", "score": "0.56835383", "text": "C20241o mo54456u(int i);", "title": "" }, { "docid": "2c57d9cb66c0cbcf0c1b11520b217901", "score": "0.5672663", "text": "public void mo32111rr(int i) {\n }", "title": "" }, { "docid": "bb78d69ec5f0c5d2ee5aa552969fefba", "score": "0.567254", "text": "long mo1636a(long j, alb alb);", "title": "" }, { "docid": "7a48e920c161886b02f047bc142f1fa6", "score": "0.56717944", "text": "public abstract Integer mo36212o();", "title": "" }, { "docid": "c2e307f0748fec9093cef5b234ea4420", "score": "0.5670876", "text": "boolean mo25262a(int i);", "title": "" }, { "docid": "0302c817f931d12ce3b2148d468cb452", "score": "0.5665398", "text": "C5537g mo4096b(int i);", "title": "" }, { "docid": "c79e7b12c0245d6686cbb6d2e4bd901a", "score": "0.5662646", "text": "Long mo20729a();", "title": "" }, { "docid": "ce6c6be52be28792aa027242cb320208", "score": "0.56574786", "text": "void mo4873a(C4718l c4718l);", "title": "" }, { "docid": "dc8baeaa271c11ea4e5594d1aa2a2ec3", "score": "0.5649964", "text": "void mo3796b(int i);", "title": "" }, { "docid": "d6911ab07393df5d03435a4bb7c70b82", "score": "0.5645129", "text": "C3197iu mo30281b(long j);", "title": "" }, { "docid": "6492e923a9cf34dc1cd358ae727f9821", "score": "0.5644408", "text": "boolean mo4831a(C0153fp fpVar);", "title": "" }, { "docid": "a517e69488cab852687f92952be106d6", "score": "0.56402016", "text": "public int mo27483b() {\n return 0;\n }", "title": "" }, { "docid": "108c441340b7afd681cc5381beb39ff7", "score": "0.56358016", "text": "void mo27576a(int i);", "title": "" }, { "docid": "fb0f8421c283a64e9c17b916fb7e9a26", "score": "0.56266654", "text": "void mo4874b(C4718l c4718l);", "title": "" }, { "docid": "b3d4fab8a575d36d4406f1739cc9b303", "score": "0.5620424", "text": "boolean mo307b(int i);", "title": "" }, { "docid": "dd0bc15ecef24b1428927dbd7cc439ca", "score": "0.56197625", "text": "int mo44965b();", "title": "" }, { "docid": "2937af1b55558cc82974098a1179990a", "score": "0.5613298", "text": "boolean mo28892c(int i);", "title": "" }, { "docid": "789988729916fe85ee1d54b03c4b4049", "score": "0.5613091", "text": "int mo4095a(int i);", "title": "" }, { "docid": "98c77a95068e27828b2b55f45bf5b8ea", "score": "0.5606779", "text": "private int m4018a() {\n Integer num = this.f4077a.get();\n if (num == null) {\n num = 0;\n }\n int intValue = num.intValue() + 1;\n this.f4077a.set(Integer.valueOf(intValue));\n return intValue;\n }", "title": "" }, { "docid": "9d3242e29e5a711858fdf8faa9b8f524", "score": "0.56056523", "text": "int mo28885a(int i);", "title": "" }, { "docid": "d349571aebce6c495932996fafe987c5", "score": "0.5558561", "text": "int mo54450o(int i);", "title": "" }, { "docid": "393c2648a5f4565c3a0f8c80953539e9", "score": "0.55530715", "text": "void mo6888a(int i);", "title": "" }, { "docid": "322dae38759061e722935d7c90852049", "score": "0.55496424", "text": "public abstract Integer mo36210m();", "title": "" }, { "docid": "9c32113cd4eec85ae6c1dea11ce692b0", "score": "0.5548262", "text": "private static long tagId(long x) {\n return x & 0xFFFFFFFFFFFFL; // 1\n }", "title": "" }, { "docid": "482452a3c9669990b4419365b6872cf1", "score": "0.5547787", "text": "boolean mo54432c(int i);", "title": "" }, { "docid": "98c5ae2133bedf4c59a5cd7327b291ea", "score": "0.554692", "text": "int mo1505l();", "title": "" }, { "docid": "7a32c55f3bcab0aed2ceb06cfbfbc560", "score": "0.55467576", "text": "@Test\n void readabilityOfBigIntegers() {\n int x = 1_000_000;\n\n // However, these are not semantically checked:\n int y = 1_00;\n }", "title": "" }, { "docid": "1875cf803c9f3cba352068dd9b118de8", "score": "0.5540422", "text": "boolean mo6498O(C41531v c41531v);", "title": "" }, { "docid": "156a457b4f49a033f585e23f7524547d", "score": "0.55394113", "text": "void mo62991a(int i);", "title": "" }, { "docid": "ef99232b9c68fdd268a05b3bce34132c", "score": "0.55334824", "text": "int getOneof1072();", "title": "" }, { "docid": "8024f3bb68020d1468cd08f5b6f4d7b4", "score": "0.5531283", "text": "public int getOneof1137() {\n if (hugeOneofCase_ == 1137) {\n return (java.lang.Integer) hugeOneof_;\n }\n return 0;\n }", "title": "" }, { "docid": "8916d798390c02997e9542931a76eecb", "score": "0.55101496", "text": "public int getOneof1134() {\n if (hugeOneofCase_ == 1134) {\n return (java.lang.Integer) hugeOneof_;\n }\n return 0;\n }", "title": "" }, { "docid": "8da8caed5663d8f756ca2e84a385551e", "score": "0.5510013", "text": "void mo17007a(int i);", "title": "" }, { "docid": "0d4d995c80eaee2fa5efb9e9b662893d", "score": "0.55034935", "text": "int mo54441g(int i);", "title": "" }, { "docid": "c6dc4bdb99a4a8ee09a36c78e01d1025", "score": "0.549817", "text": "int next(int bits);", "title": "" }, { "docid": "ecf96acbaafff61e577c3c8ef3a6d80e", "score": "0.5488775", "text": "public int getOneof1137() {\n if (hugeOneofCase_ == 1137) {\n return (java.lang.Integer) hugeOneof_;\n }\n return 0;\n }", "title": "" }, { "docid": "47b602256362752a07269ade19e439a0", "score": "0.54675514", "text": "public abstract long mo24412e();", "title": "" }, { "docid": "bdc431d996988a2f084b35128ac96398", "score": "0.5462881", "text": "int decodeInt();", "title": "" }, { "docid": "b6dedae082b5ec62f52613c456b2f842", "score": "0.54628557", "text": "void mo30275a(long j);", "title": "" }, { "docid": "cf09f619316a5abfa1a463d1157d11c4", "score": "0.5461242", "text": "public int getOneof1177() {\n if (hugeOneofCase_ == 1177) {\n return (java.lang.Integer) hugeOneof_;\n }\n return 0;\n }", "title": "" }, { "docid": "38855269194363d9a011afbbdc89cb68", "score": "0.545786", "text": "public int getOneof1134() {\n if (hugeOneofCase_ == 1134) {\n return (java.lang.Integer) hugeOneof_;\n }\n return 0;\n }", "title": "" }, { "docid": "5ab77721e10fe205d1cc7b1d0584c87a", "score": "0.54548776", "text": "void mo38565a(int i);", "title": "" }, { "docid": "f20c86ab0f0efb3752bd810691704dd4", "score": "0.5445745", "text": "void mo13371a(int i, long j);", "title": "" }, { "docid": "d3a4326bc68f8f9a5ecb0431c9a808ca", "score": "0.54440355", "text": "void m15858a(int i);", "title": "" }, { "docid": "c97e0dca8f6966f60ccd5258531ec50a", "score": "0.54427165", "text": "void mo24142a(long j);", "title": "" }, { "docid": "c462af6a4d9b4416abdc7b9a828baf42", "score": "0.54425293", "text": "boolean mo54443h(int i);", "title": "" }, { "docid": "0fbb89e4fa5f878206a83cf523410011", "score": "0.54405636", "text": "public int mo4307b(int i) {\n return 1;\n }", "title": "" }, { "docid": "92b7355eaff81ac9031fb68389078cde", "score": "0.5439353", "text": "String getFirstInt();", "title": "" }, { "docid": "bcc37e59ad70213ff77bc3457dba88bc", "score": "0.5438132", "text": "void mo25956a(int i);", "title": "" }, { "docid": "cd91dce6065f77ce3918aada43793c80", "score": "0.5436921", "text": "public int getOneof1133() {\n if (hugeOneofCase_ == 1133) {\n return (java.lang.Integer) hugeOneof_;\n }\n return 0;\n }", "title": "" }, { "docid": "4a2b5ab704c31930748d212b855d00e0", "score": "0.54351336", "text": "public int getOneof1186() {\n if (hugeOneofCase_ == 1186) {\n return (java.lang.Integer) hugeOneof_;\n }\n return 0;\n }", "title": "" }, { "docid": "076430ae1cd2ddc7a694b386b0041bb6", "score": "0.54335934", "text": "static void method_8299() {\r\n boolean var10000 = true;\r\n char[] var10003 = \"Ò˜œÛ¢ï¬ó\".toCharArray();\r\n Object var10004 = var10003.length;\r\n Object var4 = true;\r\n char[] var10002 = var10003;\r\n char[] var10001 = (char[])var10004;\r\n int var0 = 0;\r\n\r\n while(true) {\r\n var10003 = var10002;\r\n var10002 = var10001;\r\n var10001 = var10003;\r\n char[] var5 = var10002;\r\n var10002 = var10003;\r\n if(var10003 <= var0) {\r\n field_8034 = (new String((char[])var4)).intern();\r\n String var2 = field_8034;\r\n return;\r\n }\r\n\r\n char var10007 = (char)((Object[])var4)[var0];\r\n short var10009;\r\n switch(var0 % 7) {\r\n case 0:\r\n var10009 = 198;\r\n break;\r\n case 1:\r\n var10009 = 134;\r\n break;\r\n case 2:\r\n var10009 = 223;\r\n break;\r\n case 3:\r\n var10009 = 180;\r\n break;\r\n case 4:\r\n var10009 = 243;\r\n break;\r\n case 5:\r\n var10009 = 181;\r\n break;\r\n default:\r\n var10009 = 138;\r\n }\r\n\r\n ((Object[])var4)[var0] = (char)(var10007 ^ var5 ^ var10009);\r\n ++var0;\r\n }\r\n }", "title": "" }, { "docid": "8ea73cdf7639c224beb18c4ec1030cb8", "score": "0.5429859", "text": "public int mo23323u() {\n return ((Integer) this.f13965a.mo23249a(C7196pb.f13722Lc)).intValue();\n }", "title": "" }, { "docid": "0d024cddf2eb8aab3cca72c6344d7358", "score": "0.5427428", "text": "public abstract long mo13679a();", "title": "" }, { "docid": "2ed30492d6d15865553540a27003eef8", "score": "0.5422774", "text": "public short mo34e() {\n return 41;\n }", "title": "" }, { "docid": "58669037e5cdcba0ce67f1c275ddd4da", "score": "0.5420902", "text": "public int getOneof1177() {\n if (hugeOneofCase_ == 1177) {\n return (java.lang.Integer) hugeOneof_;\n }\n return 0;\n }", "title": "" }, { "docid": "b952230aa8736f80a6766e68a232d3e3", "score": "0.54148847", "text": "public static int method_2686(int var0) {\r\n return var0 & 7;\r\n }", "title": "" }, { "docid": "da0892f07eff71be1e40680d65953ba2", "score": "0.54127574", "text": "boolean mo54451p(int i);", "title": "" }, { "docid": "f31aa1071d284bd8b5da790f419f064a", "score": "0.54109424", "text": "int getOneof1110();", "title": "" }, { "docid": "f81ef6d42d963fa1bd286524b0f77bfa", "score": "0.54100597", "text": "void mo12637b();", "title": "" }, { "docid": "8c95e1655e7b766d792dc92ff67d478c", "score": "0.54075944", "text": "public int getOneof1139() {\n if (hugeOneofCase_ == 1139) {\n return (java.lang.Integer) hugeOneof_;\n }\n return 0;\n }", "title": "" }, { "docid": "aae01ca2df503703bd554aa443653b48", "score": "0.54067343", "text": "public static int method_2711(int var0) {\r\n return var0 & 3;\r\n }", "title": "" }, { "docid": "cdbe70fd9c580142ec3ea6551f36f731", "score": "0.540651", "text": "long getUnknown72();", "title": "" }, { "docid": "075446000c32e60bfe69c2aee12e6661", "score": "0.54060507", "text": "public int getOneof1181() {\n if (hugeOneofCase_ == 1181) {\n return (java.lang.Integer) hugeOneof_;\n }\n return 0;\n }", "title": "" }, { "docid": "6046e9d5552a9d1e61f5ba09f21c0abc", "score": "0.5402654", "text": "int getOneof1100();", "title": "" }, { "docid": "c6e94eb39b06f053737ead05e2f94e15", "score": "0.54010427", "text": "C8438u mo25072a(C8438u uVar);", "title": "" }, { "docid": "b18dd16babe76e0145f142cac86665aa", "score": "0.5400552", "text": "private boolean method_263(int var1) {\n return (this.method_244() & 1L << var1) != 0L;\n }", "title": "" }, { "docid": "bfc56b2e9c110d21f94f659256e0ffa6", "score": "0.5398996", "text": "byte mo25264b(int i);", "title": "" }, { "docid": "d7a7daed942b95767dfce092442243a5", "score": "0.5398619", "text": "void mo1491b(int i);", "title": "" }, { "docid": "f750e44be589815ae2f1337aa3582e8b", "score": "0.5393076", "text": "int getOneof1824();", "title": "" }, { "docid": "ff7e48a533e47ffa592b6ac4018df0cd", "score": "0.5391236", "text": "boolean mo6499P(C41531v c41531v);", "title": "" }, { "docid": "ade5b5f76322d58d4780afa52df81a17", "score": "0.5391031", "text": "public int mo32331a(Number number) throws IOException {\n if (number instanceof Long) {\n long longValue = number.longValue();\n int i = (int) longValue;\n if (((long) i) != longValue) {\n mo29309ak();\n }\n return i;\n }\n if (number instanceof BigInteger) {\n BigInteger bigInteger = (BigInteger) number;\n if (f19292F.compareTo(bigInteger) > 0 || f19293G.compareTo(bigInteger) < 0) {\n mo29309ak();\n }\n } else if ((number instanceof Double) || (number instanceof Float)) {\n double doubleValue = number.doubleValue();\n if (doubleValue < -2.147483648E9d || doubleValue > 2.147483647E9d) {\n mo29309ak();\n }\n return (int) doubleValue;\n } else if (number instanceof BigDecimal) {\n BigDecimal bigDecimal = (BigDecimal) number;\n if (f19298L.compareTo(bigDecimal) > 0 || f19299M.compareTo(bigDecimal) < 0) {\n mo29309ak();\n }\n } else {\n mo29312an();\n }\n return number.intValue();\n }", "title": "" }, { "docid": "00930c8eada1327c25cfec85bf7538cd", "score": "0.53906804", "text": "long mo1154d();", "title": "" }, { "docid": "54eb3e7a0e06cbd0062cb5c53b99d829", "score": "0.53900224", "text": "int compareToInt(integers i);", "title": "" }, { "docid": "21f2aa22896e749b0b2b96a32bc53821", "score": "0.5388648", "text": "public int getOneof1173() {\n if (hugeOneofCase_ == 1173) {\n return (java.lang.Integer) hugeOneof_;\n }\n return 0;\n }", "title": "" } ]
f64061d6ffe5ed90568a26ba5060fe23
Return the size of your itemsData (invoked by the layout manager)
[ { "docid": "a667297c861f45e72a3517126958e968", "score": "0.0", "text": "@Override\n public int getItemCount() {\n return rowItemList.size();\n }", "title": "" } ]
[ { "docid": "3e8f132976adf2dcdb5504d1f94725f2", "score": "0.71884334", "text": "public int getSize()\n {\n return numItems;\n }", "title": "" }, { "docid": "cfa5a4e4f64d2b4a11e90fd8c418f3f5", "score": "0.7179224", "text": "public java.lang.Integer getItemsize() {\n return itemsize;\n }", "title": "" }, { "docid": "0c6a8a4dfc8c0cf1e77586fbeb77b84f", "score": "0.7171644", "text": "public int getSize() {\n return items.size();\n }", "title": "" }, { "docid": "971d73914ebbefba7eed7d1c8ecb5e6a", "score": "0.71447253", "text": "public int getSize()\n {\n return items.size();\n }", "title": "" }, { "docid": "b40f26190316145ef7dbd368e970e28b", "score": "0.7134617", "text": "public java.lang.Integer getItemsize() {\n return itemsize;\n }", "title": "" }, { "docid": "426dc0c4d82e1d138454baaecef777f8", "score": "0.7130897", "text": "public int getSize()\n\t{\n\t\treturn _items.size();\n\t}", "title": "" }, { "docid": "25f9b1df6d03fa1b994e020a849b6638", "score": "0.708118", "text": "public long getSize() {\n return item.getSize();\n }", "title": "" }, { "docid": "0589c49eda8449bf2a55948f92a8f393", "score": "0.70498544", "text": "public int getItemListSize(){\n\t\treturn this.getItemsList().size();\n\t}", "title": "" }, { "docid": "e2b996b5977c292c3211580602b2ed22", "score": "0.70154524", "text": "public Point sizeForItemAtIndexPath(IndexPath indexPath);", "title": "" }, { "docid": "96ce2bb7327119ba80fd8be57a04364a", "score": "0.6994948", "text": "public int GetSize() {\n return num_items;\n }", "title": "" }, { "docid": "88d33fb6f4f555681f2a4ba4faec20d9", "score": "0.6850279", "text": "public int getSize( )\n {\n return manyItems;\n }", "title": "" }, { "docid": "fb4c4065ef28054a76ec71f532241853", "score": "0.67466235", "text": "public int getSize() {\n return myWidgets.size();\n }", "title": "" }, { "docid": "d331d3e7e03fbedde905eddae7a94e32", "score": "0.67140514", "text": "@Override\r\n\tpublic int getCount() {\n\t\treturn mSize;\r\n\t}", "title": "" }, { "docid": "b72d1d63931f995cd516e70023668300", "score": "0.6699026", "text": "@Override\n\t\tpublic Point sizeForItemAtIndexPath(IndexPath indexPath) {\n\t\t\treturn new Point(itemContentLayerWidth, itemContentLayerHeight);\n\t\t}", "title": "" }, { "docid": "f7623df94a10abca15b7638987816884", "score": "0.66640395", "text": "public Coord getDimensions()\r\n {\r\n int rows = _items.size();\r\n int cols = 0;\r\n if (rows > 0)\r\n {\r\n cols = _items.get(0).size();\r\n }\r\n Coord coord = new Coord(rows, cols);\r\n return coord;\r\n }", "title": "" }, { "docid": "e37f5b0351a6dadc40ea49acfa8f6672", "score": "0.6518898", "text": "@Override\n public int getItemCount() {\n return items.getData().size();\n\n }", "title": "" }, { "docid": "433afb9bcd6cdb8817286ebb92ddf2fc", "score": "0.6476935", "text": "public int getSize() {\n\t\treturn 1 + 2 + name.length + 1 + 4 + getDataSize();\n\t}", "title": "" }, { "docid": "d0aa534c81c9c885683ffda304c9a7e9", "score": "0.6470387", "text": "@Override\n public int getItemCount() {\n try {\n return dataItems.size();\n } catch (NullPointerException e) {\n return 0;\n }\n }", "title": "" }, { "docid": "31ae548ad03accbeb310c12e2f700f26", "score": "0.64693236", "text": "public int getSize() {\n int size = 3;\n for (int i = 0; i < values.size(); i++) {\n size += values.get(i).getSize();\n }\n return size;\n }", "title": "" }, { "docid": "66a2d956a737adcaba4d4e8fbf9c8701", "score": "0.64635134", "text": "public int size() { return item_length; }", "title": "" }, { "docid": "b8655f8d592a6eb5e35a73e2b5a7a5cd", "score": "0.64607245", "text": "public int GetSize() {\n return this.Data.GetSize();\n }", "title": "" }, { "docid": "3f48648b95f3b9e279ed0d42a2339a92", "score": "0.6443493", "text": "public int getSize() {\n int sum = 0;\n for (StorageItem item : Items) {\n sum += item.getSize();\n }\n return sum;\n }", "title": "" }, { "docid": "ef5335bdbc46dd0aa581c50a725224a0", "score": "0.6431731", "text": "public int getSize(){\n return this.data.length;\n }", "title": "" }, { "docid": "b4a585d13c53ab42f36c4ca4a3160189", "score": "0.64047116", "text": "public int getSize(){\n\t\treturn data.size();\n\t}", "title": "" }, { "docid": "aaf1ae2a731576b27ddb6151011c1e79", "score": "0.6383464", "text": "public int getSize(){\n\t\treturn dataSetSize;\n\t}", "title": "" }, { "docid": "eb1bbd57a75507e51ff6be11316c2c6f", "score": "0.63558996", "text": "public int getSize()\n\t{\n\t\treturn mySize;\n\t}", "title": "" }, { "docid": "e92f4b99eaca0bda46d2ebd3f9246f76", "score": "0.63434124", "text": "@Override\n public int getItemCount() {\n //return itemsData == null ? 0 : itemsData.size();\n Log.d(\"ADAPTER\", itemsData.toString());\n return itemsData.size();\n }", "title": "" }, { "docid": "70ee89c70793da42101cc596b02ca5fb", "score": "0.6337914", "text": "public int getSize() {\n return mSize;\n }", "title": "" }, { "docid": "59b83dbee41937983a3d21ad0c288059", "score": "0.63217396", "text": "public int getRealItemsCount() {\n return getItems().size();\n }", "title": "" }, { "docid": "fcbf568dbabc92e050e1fec562d0ddc2", "score": "0.63124174", "text": "int getItemsCount();", "title": "" }, { "docid": "fcbf568dbabc92e050e1fec562d0ddc2", "score": "0.63124174", "text": "int getItemsCount();", "title": "" }, { "docid": "fcbf568dbabc92e050e1fec562d0ddc2", "score": "0.63124174", "text": "int getItemsCount();", "title": "" }, { "docid": "fcbf568dbabc92e050e1fec562d0ddc2", "score": "0.63124174", "text": "int getItemsCount();", "title": "" }, { "docid": "fcbf568dbabc92e050e1fec562d0ddc2", "score": "0.63124174", "text": "int getItemsCount();", "title": "" }, { "docid": "7190dfd62f06ffccbd8bb61eddb75fb2", "score": "0.6303035", "text": "public int getSize() {\r\n return this.size;\r\n }", "title": "" }, { "docid": "f65d3722e5a40bb49f7d7cb2fcb3e577", "score": "0.6295831", "text": "public int length() {\r\n return numItems;\r\n }", "title": "" }, { "docid": "841179f2d3d16ec45689310e0ba7cce3", "score": "0.62924725", "text": "public int size() {\r\n \treturn currentNumberOfItems;\r\n }", "title": "" }, { "docid": "951af1a2f59d6ad4a4649b554c1658e0", "score": "0.6291453", "text": "public int getSize() {\n return this.size;\n }", "title": "" }, { "docid": "951af1a2f59d6ad4a4649b554c1658e0", "score": "0.6291453", "text": "public int getSize() {\n return this.size;\n }", "title": "" }, { "docid": "951af1a2f59d6ad4a4649b554c1658e0", "score": "0.6291453", "text": "public int getSize() {\n return this.size;\n }", "title": "" }, { "docid": "951af1a2f59d6ad4a4649b554c1658e0", "score": "0.6291453", "text": "public int getSize() {\n return this.size;\n }", "title": "" }, { "docid": "1343e533b04acf744588998596cd5d4a", "score": "0.6286129", "text": "public int getItemsCount() {\n if (itemsBuilder_ == null) {\n return items_.size();\n } else {\n return itemsBuilder_.getCount();\n }\n }", "title": "" }, { "docid": "1343e533b04acf744588998596cd5d4a", "score": "0.6286129", "text": "public int getItemsCount() {\n if (itemsBuilder_ == null) {\n return items_.size();\n } else {\n return itemsBuilder_.getCount();\n }\n }", "title": "" }, { "docid": "1343e533b04acf744588998596cd5d4a", "score": "0.6285319", "text": "public int getItemsCount() {\n if (itemsBuilder_ == null) {\n return items_.size();\n } else {\n return itemsBuilder_.getCount();\n }\n }", "title": "" }, { "docid": "1343e533b04acf744588998596cd5d4a", "score": "0.6285319", "text": "public int getItemsCount() {\n if (itemsBuilder_ == null) {\n return items_.size();\n } else {\n return itemsBuilder_.getCount();\n }\n }", "title": "" }, { "docid": "1e90d4a4984f71c71965ba75f51b203e", "score": "0.6282642", "text": "public int size() {\n return items.size();\n }", "title": "" }, { "docid": "6825828f339437902a76dcde83916c3a", "score": "0.628169", "text": "public int getSize (){\n return size;\n }", "title": "" }, { "docid": "97afdcb78cde2392ae4e7763173d41f4", "score": "0.62786204", "text": "public int getItemsCount();", "title": "" }, { "docid": "fbd273a8c124785467900ab25099616c", "score": "0.6278186", "text": "public int getItemsCount() {\n return items_.size();\n }", "title": "" }, { "docid": "fbd273a8c124785467900ab25099616c", "score": "0.6278186", "text": "public int getItemsCount() {\n return items_.size();\n }", "title": "" }, { "docid": "fbd273a8c124785467900ab25099616c", "score": "0.6278186", "text": "public int getItemsCount() {\n return items_.size();\n }", "title": "" }, { "docid": "fbd273a8c124785467900ab25099616c", "score": "0.6278186", "text": "public int getItemsCount() {\n return items_.size();\n }", "title": "" }, { "docid": "d0a12105d901a42097726c6dda3b30fa", "score": "0.6276828", "text": "public int getSize() {\r\n\r\n\t\treturn getIntProperty(\"Size\");\r\n\t}", "title": "" }, { "docid": "f75b350a39cc392f7c9c0a7110a614bd", "score": "0.6271023", "text": "public int getSize(){\r\n\t\treturn size_;\r\n\t}", "title": "" }, { "docid": "ab2297a65642eadc6272b7ce50a65496", "score": "0.62668514", "text": "public int getSize() \n\t{\n\t\treturn this.size;\n\t}", "title": "" }, { "docid": "a0d0a9f7f9aa0a7b80a587c022e53fa2", "score": "0.6265405", "text": "public int getSize(){\n return this.size;\n }", "title": "" }, { "docid": "232c5cb658921a265030f71a1dd2a3a0", "score": "0.62653375", "text": "public int getSize() {\n \n return this.size;\n }", "title": "" }, { "docid": "f475c33a0c0facbcfe9bae2424c96fed", "score": "0.62636316", "text": "public int getSize(){\n\t\treturn this.size;\n\t}", "title": "" }, { "docid": "f475c33a0c0facbcfe9bae2424c96fed", "score": "0.62636316", "text": "public int getSize(){\n\t\treturn this.size;\n\t}", "title": "" }, { "docid": "66fde61ee9c604a15b8a06bce2258bda", "score": "0.6260081", "text": "public int getSize ()\n {\n return size;\n }", "title": "" }, { "docid": "bc637eb1dea01752ae835c03cbb95e77", "score": "0.6256707", "text": "@Override\n\t\tpublic int getCount() {\n\t\t\treturn size;\n\t\t}", "title": "" }, { "docid": "bc637eb1dea01752ae835c03cbb95e77", "score": "0.6256707", "text": "@Override\n\t\tpublic int getCount() {\n\t\t\treturn size;\n\t\t}", "title": "" }, { "docid": "1b41e5abc0bc8ec267647f0d6339a7bc", "score": "0.6255611", "text": "public int getSize () {\n\t\treturn this.size;\n\t}", "title": "" }, { "docid": "73885afbceaa7061070b19195c138d62", "score": "0.624321", "text": "public int getSize(){ return data.size(); }", "title": "" }, { "docid": "b9b5705680aa6a6a9e47304f1e9fab88", "score": "0.6243127", "text": "public long getArtworkSize();", "title": "" }, { "docid": "372b1ffd571f46c60317eee7fb4122e3", "score": "0.62413615", "text": "public int getSize()\n\t{\n\t\treturn this.size;\n\t}", "title": "" }, { "docid": "77ab158f4486072459f590c3c1c73337", "score": "0.6238761", "text": "public int getSize() {\r\n return size;\r\n }", "title": "" }, { "docid": "77ab158f4486072459f590c3c1c73337", "score": "0.6238761", "text": "public int getSize() {\r\n return size;\r\n }", "title": "" }, { "docid": "77ab158f4486072459f590c3c1c73337", "score": "0.6238761", "text": "public int getSize() {\r\n return size;\r\n }", "title": "" }, { "docid": "77ab158f4486072459f590c3c1c73337", "score": "0.6238761", "text": "public int getSize() {\r\n return size;\r\n }", "title": "" }, { "docid": "77ab158f4486072459f590c3c1c73337", "score": "0.6238761", "text": "public int getSize() {\r\n return size;\r\n }", "title": "" }, { "docid": "ab0b1670519091ba1f5fc8d8ee7ff46c", "score": "0.62331045", "text": "@Override\n public int getItemCount() {\n return mdata.size();\n }", "title": "" }, { "docid": "45969fc8097b1c276386530cd786a4c5", "score": "0.62306064", "text": "@Override\n public int getItemCount() {\n if (mdata == null || mdata.size() == 0){\n return 1;\n }else {\n return mdata.size();\n }\n }", "title": "" }, { "docid": "6d8fb14f27a0c9b59cd9c908cb367fe7", "score": "0.6229981", "text": "public double getSize() {\r\n\t\treturn this.size;\r\n\t}", "title": "" }, { "docid": "8b4734c18273525c41ef7283ae4afef7", "score": "0.6228691", "text": "public int getNumItems(){\r\n\t\treturn numItems;\r\n\t}", "title": "" }, { "docid": "24c3f9ba94e9b272bccafd46d60d713c", "score": "0.6228415", "text": "public int getSize() {\n return size;\n }", "title": "" }, { "docid": "a066be17d692b3411d1d73dbd240bed4", "score": "0.62280124", "text": "@Override\n public int getCount() {\n return data.len();\n }", "title": "" }, { "docid": "ceff761edbe985719cebc3558327e78c", "score": "0.62260544", "text": "public int getSize()\r\n {\r\n return size;\r\n }", "title": "" }, { "docid": "159f120d05a1549f0fdea1865bf36a23", "score": "0.6224637", "text": "public int getSize();", "title": "" }, { "docid": "159f120d05a1549f0fdea1865bf36a23", "score": "0.6224637", "text": "public int getSize();", "title": "" }, { "docid": "159f120d05a1549f0fdea1865bf36a23", "score": "0.6224637", "text": "public int getSize();", "title": "" }, { "docid": "159f120d05a1549f0fdea1865bf36a23", "score": "0.6224637", "text": "public int getSize();", "title": "" }, { "docid": "159f120d05a1549f0fdea1865bf36a23", "score": "0.6224637", "text": "public int getSize();", "title": "" }, { "docid": "159f120d05a1549f0fdea1865bf36a23", "score": "0.6224637", "text": "public int getSize();", "title": "" }, { "docid": "159f120d05a1549f0fdea1865bf36a23", "score": "0.6224637", "text": "public int getSize();", "title": "" }, { "docid": "159f120d05a1549f0fdea1865bf36a23", "score": "0.6224637", "text": "public int getSize();", "title": "" }, { "docid": "159f120d05a1549f0fdea1865bf36a23", "score": "0.6224637", "text": "public int getSize();", "title": "" }, { "docid": "159f120d05a1549f0fdea1865bf36a23", "score": "0.6224637", "text": "public int getSize();", "title": "" }, { "docid": "159f120d05a1549f0fdea1865bf36a23", "score": "0.6224637", "text": "public int getSize();", "title": "" }, { "docid": "159f120d05a1549f0fdea1865bf36a23", "score": "0.6224637", "text": "public int getSize();", "title": "" }, { "docid": "159f120d05a1549f0fdea1865bf36a23", "score": "0.6224637", "text": "public int getSize();", "title": "" }, { "docid": "159f120d05a1549f0fdea1865bf36a23", "score": "0.6224637", "text": "public int getSize();", "title": "" }, { "docid": "159f120d05a1549f0fdea1865bf36a23", "score": "0.6224637", "text": "public int getSize();", "title": "" }, { "docid": "b74adefadc23b0869f59a6548d343286", "score": "0.6222721", "text": "public int getSize() {\r\n\t\t// return getParentSize() + rawGetSize();\r\n\t\treturn getParentsSize() + rawGetSize(); \r\n\t}", "title": "" }, { "docid": "f1b37c8411f1b3701f40e839b6656013", "score": "0.62226325", "text": "public int getSize()\n {\n return size;\n }", "title": "" }, { "docid": "8eb4949b3b01aa7595634d76cc679227", "score": "0.6221072", "text": "public int getNumItems() {\n return numItems;\n }", "title": "" }, { "docid": "a725a24a805fab3c1019a65952e6c9a2", "score": "0.62173563", "text": "@Override\n public int getCount() {\n return itemsArray.size();\n }", "title": "" }, { "docid": "be21e18f3fe33db975b3be9de9b87c4f", "score": "0.62127125", "text": "public int getCurrentSize();", "title": "" }, { "docid": "f8e7d331556719f7637cbd339d3ae775", "score": "0.6212632", "text": "public int size() {\n return itemCount;\n }", "title": "" }, { "docid": "f8e7d331556719f7637cbd339d3ae775", "score": "0.6212632", "text": "public int size() {\n return itemCount;\n }", "title": "" }, { "docid": "912c5fabccae4593050f8cee0415deef", "score": "0.6212099", "text": "public int getSize() {\n return size;\n }", "title": "" } ]
1e6db1d97ad08b61e35c52a68a8a4796
Set value of RequestListHeader
[ { "docid": "f7f08699e33805e856bff0af857a9d45", "score": "0.8214792", "text": "public final void setRequestListHeader(java.lang.String requestlistheader)\r\n\t{\r\n\t\tsetRequestListHeader(getContext(), requestlistheader);\r\n\t}", "title": "" } ]
[ { "docid": "cef00fdfc7411e4b4f91b8933243219d", "score": "0.79746467", "text": "public final void setRequestListHeader(com.mendix.systemwideinterfaces.core.IContext context, java.lang.String requestlistheader)\r\n\t{\r\n\t\tgetMendixObject().setValue(context, MemberNames.RequestListHeader.toString(), requestlistheader);\r\n\t}", "title": "" }, { "docid": "ee51b5efd75f5190ec0ad502a1f37967", "score": "0.576496", "text": "@Override /* HttpMessage */\r\n\tpublic void setHeader(Header header) {\r\n\t\trequest.setHeader(header);\r\n\t}", "title": "" }, { "docid": "21b62df6b12c8a0a5bb2ad57e6a5dd7b", "score": "0.57537", "text": "public void setHeader(String name, String value) {\n // Blindly trust the user doesn't set any invalid headers\n headersKeys.add(name);\n headersValues.add(value);\n }", "title": "" }, { "docid": "971a52f03e6c28bb1d018ea89616f187", "score": "0.5715334", "text": "@Override /* HttpMessage */\r\n\tpublic void setHeader(String name, String value) {\r\n\t\trequest.setHeader(name, value);\r\n\t}", "title": "" }, { "docid": "cd0294a52a44eadaf236db9bb6ffc380", "score": "0.5702461", "text": "public Builder setReqHeader(com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00040000;\n reqHeader_ = value;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "3eff3af706ddd7121aefc0aae500cd48", "score": "0.5691552", "text": "public void setSeatRequestList(List<SeatRequest> list) {\n seatRequestList = list;\n }", "title": "" }, { "docid": "1359f6da2d9352cce0414f4d733c101f", "score": "0.5629687", "text": "@Override\n public void setRequestsList(String[] requests) {\n requestsList.setListData(requests);\n }", "title": "" }, { "docid": "5967fad7e069f9266f5fda2858b25275", "score": "0.5607543", "text": "public void setHeaders(String headers);", "title": "" }, { "docid": "2bfe3a4665ba4be53db1f8a0efd5756d", "score": "0.55815935", "text": "public void setHeader(String name, String value) {\n/* 1014 */ this.headers.setHeader(name, value);\n/* */ }", "title": "" }, { "docid": "11342e5652b7dd707e3a51511e52fb09", "score": "0.557578", "text": "@Override /* HttpMessage */\r\n\tpublic void setHeaders(Header[] headers) {\r\n\t\trequest.setHeaders(headers);\r\n\t}", "title": "" }, { "docid": "358e8a48a2ea01d5775554c351f71205", "score": "0.5575342", "text": "public void addRequestHeader(String name, String value) {\n\t\tthis.requestHeaders.put(name, value);\n\t}", "title": "" }, { "docid": "f41c03f66f518bbba8042dc3178ae0bf", "score": "0.55575657", "text": "private void setHeaders(HttpMethodBase method, Header[] requestHeaders)\n throws SwiftInternalStateException {\n for (Header header : requestHeaders) {\n method.addRequestHeader(header);\n }\n setAuthToken(method, getToken());\n }", "title": "" }, { "docid": "d377535dc9adcc6a67fab9a5095bcdb1", "score": "0.5508114", "text": "private Header(List sortedAcceptableEntryList) {\n this.sortedAcceptableEntryList = sortedAcceptableEntryList;\n }", "title": "" }, { "docid": "e4e7205baefd76ea01a23d3c01b60b30", "score": "0.5473095", "text": "public MockLowLevelHttpResponse setHeaderValues(List<String> headerValues) {\n this.headerValues = Preconditions.checkNotNull(headerValues);\n return this;\n }", "title": "" }, { "docid": "315a8ace14acbf67a44ce61ca72fc9c5", "score": "0.54517084", "text": "private void addHeaders() {\n for (Header header : this.headers) {\n this.con.setRequestProperty(header.getName(), header.getValue());\n }\n }", "title": "" }, { "docid": "25d48e71396ee2a821af6933b750871e", "score": "0.5427668", "text": "@Override\n public int getRequestListIndex() {\n return requestsList.getSelectedIndex();\n }", "title": "" }, { "docid": "5dc1e26d91aaee856c182c557beb12dd", "score": "0.5394136", "text": "public void setRequestHeader(String header, String value) {\n if (getReadyState() != ReadyState.OPEN) {\n throw new IllegalStateException(\n \"The HttpRequestImpl must be opened prior to \"\n + \"setting a request header\");\n }\n // TODO\n // if the header argument doesn't match the \"field-name production\",\n // throw an illegal argument exception\n // if the value argument doesn't match the \"field-value production\",\n // throw an illegal argument exception\n if (header == null || value == null) {\n throw new IllegalArgumentException(\n \"Neither the header, nor value, may be null\");\n }\n // NOTE: The spec says, nothing should be done if the header argument\n // matches:\n // Accept-Charset, Accept-Encoding, Content-Length, Expect, Date, Host,\n // Keep-Alive,\n // Referer, TE, Trailer, Transfer-Encoding, Upgrade\n // The spec says this for security reasons, but I don't understand why?\n // I'll follow\n // the spec's suggestion until I know more (can always allow more\n // headers, but\n // restricting them is more painful). Note that Session doesn't impose\n // any such\n // restrictions, so you can always set \"Accept-Encoding\" etc on the\n // Session...\n // except that Session has no way to set these at the moment, except via\n // a Request.\n if (header.equalsIgnoreCase(\"Accept-Charset\")\n || header.equalsIgnoreCase(\"Accept-Encoding\")\n || header.equalsIgnoreCase(\"Content-Length\")\n || header.equalsIgnoreCase(\"Expect\")\n || header.equalsIgnoreCase(\"Date\")\n || header.equalsIgnoreCase(\"Host\")\n || header.equalsIgnoreCase(\"Keep-Alive\")\n || header.equalsIgnoreCase(\"Referer\")\n || header.equalsIgnoreCase(\"TE\")\n || header.equalsIgnoreCase(\"Trailer\")\n || header.equalsIgnoreCase(\"Transfer-Encoding\")\n || header.equalsIgnoreCase(\"Upgrade\")) {\n // ignore the header\n }\n if (header.equalsIgnoreCase(\"Authorization\")\n || header.equalsIgnoreCase(\"Content-Base\")\n || header.equalsIgnoreCase(\"Content-Location\")\n || header.equalsIgnoreCase(\"Content-MD5\")\n || header.equalsIgnoreCase(\"Content-Range\")\n || header.equalsIgnoreCase(\"Content-Type\")\n || header.equalsIgnoreCase(\"Content-Version\")\n || header.equalsIgnoreCase(\"Delta-Base\")\n || header.equalsIgnoreCase(\"Depth\")\n || header.equalsIgnoreCase(\"Destination\")\n || header.equalsIgnoreCase(\"ETag\")\n || header.equalsIgnoreCase(\"Expect\")\n || header.equalsIgnoreCase(\"From\")\n || header.equalsIgnoreCase(\"If-Modified-Since\")\n || header.equalsIgnoreCase(\"If-Range\")\n || header.equalsIgnoreCase(\"If-Unmodified-Since\")\n || header.equalsIgnoreCase(\"Max-Forwards\")\n || header.equalsIgnoreCase(\"MIME-Version\")\n || header.equalsIgnoreCase(\"Overwrite\")\n || header.equalsIgnoreCase(\"Proxy-Authorization\")\n || header.equalsIgnoreCase(\"SOAPAction\")\n || header.equalsIgnoreCase(\"Timeout\")) {\n // replace the current header, if any\n for (Header h : req.getHeaders()) {\n if (h.getName().equalsIgnoreCase(header)) {\n req.removeHeader(h);\n req.setHeader(new Header(header, value));\n break;\n }\n }\n } else {\n // append the value to the header, if one is already specified.\n // Else,\n // just add it as a new header\n boolean appended = false;\n for (Header h : req.getHeaders()) {\n if (h.getName().equalsIgnoreCase(header)) {\n req.removeHeader(h);\n req.setHeader(\n new Header(header, h.getValue() + \", \" + value));\n appended = true;\n break;\n }\n }\n if (!appended) {\n req.setHeader(new Header(header, value));\n }\n }\n }", "title": "" }, { "docid": "defe95c9e3d5428a5a445078b53ed7a8", "score": "0.53881276", "text": "B setHeader(String name, String value);", "title": "" }, { "docid": "db044a78fc1863c7fe551f0ce755e223", "score": "0.53858966", "text": "public void addHeaderValue(String name, String value) throws IllegalStateException;", "title": "" }, { "docid": "9edfe72b7455842adc29b44dbac9159f", "score": "0.53856415", "text": "public MockLowLevelHttpResponse setHeaderNames(List<String> headerNames) {\n this.headerNames = Preconditions.checkNotNull(headerNames);\n return this;\n }", "title": "" }, { "docid": "ad2ebac17bf7f045283e3f8b12776f1c", "score": "0.538091", "text": "public void setListIndex(int listIndex) {\n }", "title": "" }, { "docid": "bf8cf789afdd7b5d481c56a91b31e335", "score": "0.5378746", "text": "public void setHeader(String name, String value) {\n header.append(name + \": \" + value + rn);\n }", "title": "" }, { "docid": "87b77d595d32dd8cf626ddf65de1c7e1", "score": "0.53701884", "text": "void setResponseHeader(String pKey, String pValue);", "title": "" }, { "docid": "3531b0443d7b10e92f91f3bd43c148c7", "score": "0.5366005", "text": "public void sendRequestHeader(HttpRequest request) throws HttpException, IOException {\n/* 220 */ OperatedClientConnection conn = ensureConnection();\n/* 221 */ conn.sendRequestHeader(request);\n/* */ }", "title": "" }, { "docid": "f0901d2b3f303502993cec96c6a8a2f9", "score": "0.5364187", "text": "void setHeaderData(String name, Object value);", "title": "" }, { "docid": "f6d870c75049b54665a8ab75cdc99a36", "score": "0.53576225", "text": "public void setHeaders(String[] h) {\n\t\tint x = 0;\n\t\theader = new ArrayList(h.length);\n\t\tfor (x = 0; x < h.length; x++) {\n\t\t\theader.add(h[x]);\n\t\t\tdata.put(h[x], new ArrayList());\n\t\t}\n\t}", "title": "" }, { "docid": "d5cf47b9ab1d9b39ea944db42e0a783a", "score": "0.534501", "text": "public BillingRequestListRequest<S> withBefore(String before) {\n setBefore(before);\n return this;\n }", "title": "" }, { "docid": "921d66a65c78d2e17e537d83c4d1fef1", "score": "0.5337196", "text": "protected abstract void addAuthHeaders(List<HttpRequestor.Header> headers);", "title": "" }, { "docid": "ace8adeae2452cb9cf5b4a9e24c02148", "score": "0.53366274", "text": "private void setDefaultHeaders(HttpRequestBase req) {\n req.addHeader(\"Content-Type\", \"application/json\");\n req.addHeader(\"Hull-App-Id\", config.getAppId());\n req.addHeader(\"Hull-Access-Token\", config.getAppSecret());\n req.addHeader(\"User-Agent\", \"Hull Java Client v\");\n }", "title": "" }, { "docid": "a89c07cfba7f6871401587fb15f61df9", "score": "0.53357375", "text": "public void setHeaderTotals(RequisitionHeader header, List lineList) throws Exception\n {\n BigDecimal bdTotal = new BigDecimal(\"0.00\");\n int iRows = 0;\n\n\t\ttry\n\t\t{\n\t\t\tif (lineList != null)\n\t\t\t{\n\t\t\t\tiRows = lineList.size();\n\t\t\t}\n\t if (iRows == 0)\n\t {\n\t header.setSubtotal(new BigDecimal(\"0.00\"));\n\t header.setDiscountAmount(new BigDecimal(\"0.00\"));\n\t header.setTaxAmount(new BigDecimal(\"0.00\"));\n\t header.setShippingCharges(new BigDecimal(\"0.00\"));\n\t header.setOtherCharges(new BigDecimal(\"0.00\"));\n\t header.setShippingTaxAmt(new BigDecimal(\"0.00\"));\n\t header.setOtherTaxAmount(new BigDecimal(\"0.00\"));\n\t header.setUseTaxAmount(new BigDecimal(\"0.00\"));\n\t }\n\t else\n\t {\n\t for (int i = 0; i < iRows; i++)\n\t {\n\t\t\t\t\tRequisitionLine line = (RequisitionLine) lineList.get(i);\n\t\t\t\t\tif(line.getStatus().equals(DocumentStatus.CANCELLED))\n\t\t\t\t\t{\n\t\t\t\t\t continue;\n\t\t\t\t\t}\n\t bdTotal = bdTotal.add(line.getLineTotal());\n\t }\n\t }\n\t header.setTotal(bdTotal); //set header total\n\n\t Log.debug(this, \"setHeaderTotals complete ... total = \" + String.valueOf(bdTotal));\n\t }\n\t\tcatch (Exception e)\n\t\t{\n\t\t\tthrow e;\n\t\t}\n\t}", "title": "" }, { "docid": "db0b3a77c30893910ad1b6a76293422b", "score": "0.53319126", "text": "public void setHeader(List result)\r\n\t{\n\t\tif( _dataHeader.size() == 0 && result.size() > 0)\r\n\t\t{\r\n\r\n\t\t\tObject entity = result.get(0);\r\n\r\n\t\t\tHashMap headerMap = getHeaders(entity);\r\n\r\n\t\t\tSet keys = headerMap.keySet();\r\n\t\t\tIterator iter = keys.iterator();\r\n\t\t\tString colType = null;\r\n\t\t\tString colName = null;\r\n\t\t\twhile (iter.hasNext()){\r\n\t\t\t\tcolName = (String)iter.next();\r\n\t\t\t\tif (colName.equalsIgnoreCase(\"Class\")) continue;\r\n\t\t\t\tcolType = (String)headerMap.get(colName);\r\n\t\t\t\tif (colType.equalsIgnoreCase(\"java.util.Date\"))\r\n\t\t\t\t{\r\n\t\t\t\t\tcolType=DT_DATE;\r\n\t\t\t\t}\r\n\t\t\t\telse if (colType.equalsIgnoreCase(\"java.lang.Long\")){\r\n\t\t\t\t\tcolType=DT_NUMERIC;\r\n\t\t\t\t}\r\n\t\t\t\telse{\r\n\t\t\t\t\tcolType=DT_ALPHA;\r\n\t\t\t\t}\r\n\t\t\t\tDBColDef dbColDef = new DBColDef( colName, colType);\r\n\t\t\t\t_dataHeader.add( dbColDef );\r\n\r\n\t\t\t}\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "7bc3e1886e0e32a820a68d3bb50a94af", "score": "0.53239346", "text": "public void addHeaders(Header[] headers){\r\n\t\t headerList.addAll( Arrays.asList(headers));\r\n\t }", "title": "" }, { "docid": "608a92e4dd0676210ea0b6ca5688b987", "score": "0.5307817", "text": "public void setHeader(java.lang.String header) {\n this.header = header;\n }", "title": "" }, { "docid": "013f6bcc1523754d35c4f2af90c896c1", "score": "0.53035027", "text": "public void setHeader(String header) {\n\t\tthis.header = header;\n\t}", "title": "" }, { "docid": "da1512c3c583c11cf4713ed157757b30", "score": "0.5294945", "text": "public void setHeader(String header) {\n this.header = header;\n }", "title": "" }, { "docid": "46d7a4bf0afd7672c879608eb70cf1c2", "score": "0.5280285", "text": "public void setHeaders(Properties headers)\n/* */ {\n/* 244 */ this.headers = headers;\n/* */ }", "title": "" }, { "docid": "837e883dd0c67d82e0723999c98ce0e3", "score": "0.5269839", "text": "public Builder setAllowHeaders(\n int index, java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureAllowHeadersIsMutable();\n allowHeaders_.set(index, value);\n onChanged();\n return this;\n }", "title": "" }, { "docid": "109836439bd1840ac608cf09af5031c4", "score": "0.5267149", "text": "public ResourceBuilder addHeader(String header, Object value) {\n List<Object> list = headers.get(header);\n if (list == null) {\n list = new ArrayList<>();\n headers.put(header, list);\n }\n list.add(value);\n return this;\n }", "title": "" }, { "docid": "9c3e572bc8a6dcd9558a6e4380b671c4", "score": "0.5255285", "text": "public void setRequestToken(RequestToken requestToken) {\n\t\t\n\t}", "title": "" }, { "docid": "fd713dd12e592730d510abb4e18b14bc", "score": "0.5239223", "text": "@Override\n public void setRequestsListSelection(int selectionIndex) {\n requestsList.setSelectedIndex(selectionIndex);\n }", "title": "" }, { "docid": "63550a9bc78045f79ca58ee24b5f5ff9", "score": "0.52327913", "text": "public void setHeaderRes(Map<String, List<String>> headerRes) {\r\n this.headerRes = headerRes;\r\n }", "title": "" }, { "docid": "003588c6c51fe8f9abcef84083b6f4d5", "score": "0.5225576", "text": "public void setList(List list) {\n\t\t\tthis.list = list;\n\t\t}", "title": "" }, { "docid": "731164fcc3776a46ec966a000d9bcf05", "score": "0.5225154", "text": "public void setHeader(Set<Long> header) throws Throwable {\n ColumnDescription columndesc = new ColumnDescription(\"header\",\n \"setHeader\",\n \"1.0.0\");\n super.setDataHandler(columndesc, header);\n }", "title": "" }, { "docid": "080197a5249439b71039eac49bba5e5e", "score": "0.5203985", "text": "public void setHeaders(Map<String, String> headers);", "title": "" }, { "docid": "32ac35bfe88010bb6e4a704f7dcd0c52", "score": "0.52028584", "text": "public static List<NameValuePair> createRequestHeader(String referer, HttpClientContext context) {\n List<NameValuePair> requestHeaderList = new ArrayList<>();\n\n Collections.addAll(requestHeaderList, new BasicNameValuePair(\"origin\", BaseParameters.ORIGIN),\n new BasicNameValuePair(\"referer\", referer),\n new BasicNameValuePair(\"cookie\", getFullUserSessionVal(context)));\n return requestHeaderList;\n }", "title": "" }, { "docid": "6cde7e02e6fc5fb9a71a11d8dbc5bc8a", "score": "0.5198159", "text": "API header(String name, Object value);", "title": "" }, { "docid": "1edcdca59c2bed6b2a61fa84b0b0a968", "score": "0.51979476", "text": "public static void setHeaderSequence(java.util.List<Byte> seq) {\n if(seq.size() > 64) throw\n new IllegalArgumentException(\"sequence too many, \" +\n \"must be less than 65\");\n header = \"\";\n for(Byte b : seq) {\n char c = (char)b.byteValue();\n header += b;\n }\n }", "title": "" }, { "docid": "ded8760b6635776205f982d00e74e138", "score": "0.51898813", "text": "@JsonIgnore\n public void header(@Nonnull String key, @Nonnull Object value)\n {\n this.headers.add(key, value);\n }", "title": "" }, { "docid": "09e7449b491f8fb70af64f9cb4d165ec", "score": "0.51860493", "text": "B setHeaders(Map<String, String> headers);", "title": "" }, { "docid": "7a266595919377f5fbecd35ea34a1127", "score": "0.518218", "text": "public void setHeader() {\n\n }", "title": "" }, { "docid": "03c28830d7bd734e8cc67159db475681", "score": "0.51577556", "text": "public RequestBuilder header(String field, String value)\r\n\t\t{\r\n\t\t\theaders.put(field, value);\r\n\t\t\t\r\n\t\t\treturn this;\r\n\t\t}", "title": "" }, { "docid": "c2c77f7c841451c0b6cf1d5ff4e1db2f", "score": "0.5151812", "text": "public void addHeader(String name, Object value);", "title": "" }, { "docid": "5e877163c2149713b65f7cdcb4f91457", "score": "0.51502925", "text": "void addHeader(String name, String value);", "title": "" }, { "docid": "4167e7ae6ff3519140991b6f995bb984", "score": "0.5139724", "text": "public void setRequestHeaders(Map<String, String> headers) {\n\t\tthis.requestHeaders = headers;\n\t}", "title": "" }, { "docid": "e07b34241c48a8caef182daea1d56935", "score": "0.5138396", "text": "public void setHeaders(Properties headers)\n/* */ {\n/* 87 */ this.headers = headers;\n/* */ }", "title": "" }, { "docid": "644ef5218e630e15af50525a5e38f0c9", "score": "0.5131798", "text": "Call<WatchListSyncStatus> addToWatchList(Requests.SyncList list);", "title": "" }, { "docid": "f5fe4e259c113cf9e19ac10d364e08e8", "score": "0.5122417", "text": "void addResponseHeader(String header, String value);", "title": "" }, { "docid": "02a1b19a29d83949b5116bd2c9cb8f05", "score": "0.51048565", "text": "protected void setList(List<E> list) {\n if (list == null) {\n String msg = \"Decorated list cannot be null!\";\n throw new IllegalArgumentException(msg);\n }\n this.list = list;\n }", "title": "" }, { "docid": "42d756a7774141d6b31d1a76d1dd80d9", "score": "0.5096102", "text": "public Builder addAllowHeaders(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureAllowHeadersIsMutable();\n allowHeaders_.add(value);\n onChanged();\n return this;\n }", "title": "" }, { "docid": "021543a7e01667674565a8a1e43f101e", "score": "0.50915545", "text": "public void setHeaderId(Number value) {\n setAttributeInternal(HEADERID, value);\n }", "title": "" }, { "docid": "6793e1ce62979bf06a30631fca67ed0c", "score": "0.5067134", "text": "public void setHeader(String value) {\n getElement().setHeader(value);\n }", "title": "" }, { "docid": "68eb262a499a44055cbdd7423b56613e", "score": "0.5061389", "text": "public void setList(int[] list);", "title": "" }, { "docid": "6762a775f4b02f564b26f41567b13bbe", "score": "0.50610703", "text": "public List<MessageHeaderConfig> getRequestHeader() {\n if (requestHeader == null) {\n requestHeader = new ArrayList<MessageHeaderConfig>();\n }\n return this.requestHeader;\n }", "title": "" }, { "docid": "f131c6bc31cbf81bb25ce5ed9e0e5303", "score": "0.5060805", "text": "protected void addRequestHeaders(AbstractHttpMessage message) {\n\t\tfor (String name : requestHeaders.keySet()) {\n\t\t\tmessage.addHeader(name, requestHeaders.get(name));\n\t\t}\n\t}", "title": "" }, { "docid": "1b90c42e59868a7163dbc4b362868512", "score": "0.5051958", "text": "public void setHeader(String name, String value) {\r\n\t\t if (name.equalsIgnoreCase(\"content-type\")) { // ensure ContentType is always set through setContentType()\r\n\t\t\t setContentType(value);\r\n\t\t } else if (!parseablePage || !name.equalsIgnoreCase(\"content-length\")) {\r\n\t\t\t super.setHeader(name, value);\r\n\t\t }\r\n\t }", "title": "" }, { "docid": "5b52d670c0d8db956dfc91628fc37819", "score": "0.505099", "text": "public void addHeader(String name, String value) {\n/* 1028 */ this.headers.addHeader(name, value);\n/* */ }", "title": "" }, { "docid": "a069a0cf0f1c992b7b4ae17565c1b4b5", "score": "0.5039657", "text": "public void addHeader(String name, Object value, boolean mustUnderstand);", "title": "" }, { "docid": "d625f3fb645351f13619dbb5df3ccd0b", "score": "0.50369716", "text": "private List<String> extractHeaders(List<String> request) {\n List<String> headers = new ArrayList<>();\n StringBuilder currentLine = new StringBuilder();\n for (String s : request) {\n if (s.isEmpty()) break;\n char c = s.charAt(0);\n if (c == 9 || c == 32) {\n currentLine.append(s);\n } else {\n if (currentLine.length() > 0) {\n headers.add(currentLine.toString());\n }\n currentLine.delete(0, currentLine.toString().length());\n currentLine.append(s);\n }\n }\n if (currentLine.length() > 0) {\n headers.add(currentLine.toString());\n }\n return headers;\n }", "title": "" }, { "docid": "120e876c7162b6fbf2977ff166b34358", "score": "0.50314754", "text": "public void addHeader(String key, String value);", "title": "" }, { "docid": "a71abd1770e8421ab90ae7645579f2ac", "score": "0.50255436", "text": "@Override\n\tpublic void addHeader(String name, String value) {\n\t\tname = name.toLowerCase();\n\t\tsynchronized (headers) {\n\t\t\tArrayList<String> values = headers.get(name);\n\t\t\tif(values == null){\n\t\t\t\tvalues = new ArrayList<>();\n\t\t\t\theaders.put(name, values);\n\t\t\t}\n\t\t\tvalues.add(value);\n\t\t}\n\n\t}", "title": "" }, { "docid": "146ce1a8e5437c7e3adc3cc8e5ed8398", "score": "0.50150007", "text": "protected void addContactHeaders\n (ServerContactList clist, SIPMessageFormatter mformatter ) {\n if (clist == null) return;\n ServerContactRecord cr;\n ListIterator li = clist.getIterator();\n try {\n for(cr = (ServerContactRecord)li.next();\n cr != null; cr = (ServerContactRecord)li.next() ) {\n long currentTime = new java.util.Date().getTime();\n long expiryTimeSec = ( cr.expiryTimeMilis -\n currentTime )/1000;\n if (expiryTimeSec < 0 ) expiryTimeSec = 0;\n Address contactAddress =\n cr.getContact().getAddress();\n mformatter.addContactHeader(contactAddress,\n expiryTimeSec, cr.action);\n }\n } catch ( NoSuchElementException ex) {\n return;\n }\n }", "title": "" }, { "docid": "d4279fab5e41d1768be9f31710d6b10b", "score": "0.50121707", "text": "public void collectHeaderParameters(HttpRequest request, HttpParameters out) {\n out.putAll((Map<? extends String, ? extends SortedSet<String>>) OAuth.oauthHeaderToParamsMap(request.getHeader(OAuth.HTTP_AUTHORIZATION_HEADER)), false);\n }", "title": "" }, { "docid": "efbd2c2fe0329c0332a5cd72a1392696", "score": "0.50067484", "text": "private void setRequestId(long value) {\n \n requestId_ = value;\n }", "title": "" }, { "docid": "efbd2c2fe0329c0332a5cd72a1392696", "score": "0.50067484", "text": "private void setRequestId(long value) {\n \n requestId_ = value;\n }", "title": "" }, { "docid": "efbd2c2fe0329c0332a5cd72a1392696", "score": "0.50067484", "text": "private void setRequestId(long value) {\n \n requestId_ = value;\n }", "title": "" }, { "docid": "efbd2c2fe0329c0332a5cd72a1392696", "score": "0.50067484", "text": "private void setRequestId(long value) {\n \n requestId_ = value;\n }", "title": "" }, { "docid": "efbd2c2fe0329c0332a5cd72a1392696", "score": "0.50067484", "text": "private void setRequestId(long value) {\n \n requestId_ = value;\n }", "title": "" }, { "docid": "efbd2c2fe0329c0332a5cd72a1392696", "score": "0.50067484", "text": "private void setRequestId(long value) {\n \n requestId_ = value;\n }", "title": "" }, { "docid": "efbd2c2fe0329c0332a5cd72a1392696", "score": "0.50067484", "text": "private void setRequestId(long value) {\n \n requestId_ = value;\n }", "title": "" }, { "docid": "32f3d2da3f9c3d9e2fec7e63499df91d", "score": "0.5002545", "text": "@JsonProperty\n public void setExposeHeaders(final List<String> headers) {\n this.exposeHeaders = headers;\n }", "title": "" }, { "docid": "e1ee321d1c0567c1f9a7e5c7493029ae", "score": "0.49980643", "text": "public void setDateHeader(String name, long value) {\n this.headers.remove(name);\n addDateHeader(name, value);\n }", "title": "" }, { "docid": "8d65b00c235477dbe2b490305ae238d9", "score": "0.4978108", "text": "B addHeaderValue(String name, String value);", "title": "" }, { "docid": "4102a7b2cb370a07f5573d4a0661d862", "score": "0.49771455", "text": "private void makeModifiable() {\n\t\tif (this.responseHeader.getClass().getName().contains(\"Unmodifiable\")) {\r\n\t\t\tthis.responseHeader = new HashMap<String, List<String>>(this.responseHeader);\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "6b071d9061fd934eae1698223c0557d2", "score": "0.49560592", "text": "private void populateHeaders(HttpServletResponse response)\n/* */ {\n/* 720 */ for (Enumeration<?> en = this.headers.propertyNames(); en.hasMoreElements();) {\n/* 721 */ String key = (String)en.nextElement();\n/* 722 */ response.addHeader(key, this.headers.getProperty(key));\n/* */ }\n/* */ }", "title": "" }, { "docid": "dbac7ba96e06ad20766f59a97a6d185f", "score": "0.49398917", "text": "public void addIntHeader(String name, int value) {\n List<Object> values = this.headers.computeIfAbsent(name,\n k -> new ArrayList<>());\n values.add(value);\n }", "title": "" }, { "docid": "3eaf7bea292e7d976bc8acdcee7ae527", "score": "0.49379072", "text": "public void setHeader(boolean value) {\r\n this.header = value;\r\n }", "title": "" }, { "docid": "2ef4b9c79a2b041299632de67643c5d9", "score": "0.49337012", "text": "protected void configHttpHeader(HttpUriRequest request){\n }", "title": "" }, { "docid": "0185cdb4838e38f29453bef5a087fc7a", "score": "0.49306086", "text": "public void c(List<GroupModel> list) {\n this.f7871c = Collections.synchronizedList(list);\n }", "title": "" }, { "docid": "2f18d09fe74ce7e911083c1737210baf", "score": "0.49299288", "text": "public void setHeader(String value) {\n JsoHelper.setAttribute(jsObj, Attribute.GRID_HEADER.getValue(), value);\n }", "title": "" }, { "docid": "01bfde8b08498931be5a2bf7f92b975a", "score": "0.49266484", "text": "public void setIdList(List<Integer> idList) {\n this.idList = idList;\n }", "title": "" }, { "docid": "c2d5e74af771f32c8a295fb2aae32036", "score": "0.49208277", "text": "public ContactListItem(String header) {\n this.isHeader = true;\n this.contactHeader = header;\n }", "title": "" }, { "docid": "628171d062987ae5b6e56a39b6de3696", "score": "0.49105898", "text": "@Override\n public void onBuildHeaders(List<Header> target) {\n loadHeadersFromResource(R.xml.preferences_headers, target);\n }", "title": "" }, { "docid": "89a244245000dffe583f8a57b9fd096e", "score": "0.48916414", "text": "public void setRequirementList(IRequirementList requirementList) {\n this.requirementList = requirementList;\n }", "title": "" }, { "docid": "cc43af2ac319d0ce24ce090c85d64393", "score": "0.4887924", "text": "@Override\n public DefaultHttpRequest addHeader(String name, String value) {\n header.addHeader(name, value);\n return this;\n }", "title": "" }, { "docid": "de53f76d0ce045e99aae8af74b7fa8db", "score": "0.48844564", "text": "java.util.List<java.lang.String>\n getAllowHeadersList();", "title": "" }, { "docid": "c42058ed17486051bf9edacf63fe6926", "score": "0.48775905", "text": "public ArrayList<String> getHeaderFromList(List<CSVRecord> list) {\r\n\r\n\t\tArrayList<String> header = new ArrayList<String>();\r\n\r\n\t\tfor (int i=0; i < list.get(0).size(); i++)\r\n\t\t\theader.add(list.get(0).get(i));\r\n\r\n\t\treturn header;\r\n\t}", "title": "" }, { "docid": "25813e0fb90027ee66a8551b360eead1", "score": "0.4873526", "text": "public void addDateHeader(String name, long value) {\n List<Object> values = this.headers.computeIfAbsent(name,\n k -> new ArrayList<>());\n values.add(value);\n }", "title": "" }, { "docid": "b28889a618f1e091bcc382bbd6d2048d", "score": "0.48728254", "text": "@Override\n\tprotected void preload(HttpServletRequest request) {\n\n\t\tList list = null;\n\n\t\tMarksheetModel model = new MarksheetModel();\n\n\t\ttry {\n\t\t\tlist = model.list();\n\n\t\t\tSystem.out.println(\"LIst is :::::::\" + list);\n\n\t\t\trequest.setAttribute(\"listrole\", list);\n\n\t\t} catch (ApplicationException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\n\t}", "title": "" }, { "docid": "10a218208b01fd67d12ffd1286c1c890", "score": "0.48703828", "text": "public void setRequestArray(int i, com.eviware.soapui.config.OldRestRequestConfig request)\n {\n synchronized (monitor())\n {\n check_orphaned();\n com.eviware.soapui.config.OldRestRequestConfig target = null;\n target = (com.eviware.soapui.config.OldRestRequestConfig)get_store().find_element_user(REQUEST$2, i);\n if (target == null)\n {\n throw new IndexOutOfBoundsException();\n }\n target.set(request);\n }\n }", "title": "" }, { "docid": "cd8a894482657cf12386d7ec92643bd7", "score": "0.4867453", "text": "public void setCustomHeaders(Collection<Map.Entry<String, String>> headers) {\n this.customHeaders.clear();\n this.customHeaders.addAll(headers);\n }", "title": "" } ]
43537992a1775c1c9d5d9953c41dded4
return a random item (but do not remove it)
[ { "docid": "77d53824fbb423261fd0ed96224cb445", "score": "0.7477834", "text": "public Item sample(){\n\n checkNotEmpty();\n\n return a[StdRandom.uniform(size)];\n }", "title": "" } ]
[ { "docid": "9d2e4da99f71b3026faf629c96b2cdca", "score": "0.8054862", "text": "public static Item getRandomItem() {\n List<Item> itemList = new ArrayList<>();\n for (Item item : Item.values()) {\n if(item != Item.STANDARD)\n itemList.add(item);\n }\n\n Random random = new Random();\n int randomNumber = random.nextInt(itemList.size());\n return itemList.get(randomNumber);\n }", "title": "" }, { "docid": "3e8173216b22190bb02bdf66335ac67a", "score": "0.8029112", "text": "public PlayableItem getRandom(Random random);", "title": "" }, { "docid": "20f9bd141d8714d5f669d39c9b457092", "score": "0.7870353", "text": "public String randomItem() {\n\t\tRandom rand = new Random();\n\t\treturn items[rand.nextInt(3)];\n\t}", "title": "" }, { "docid": "17d3ec5d75d6d6d838722baa2adff98c", "score": "0.7804155", "text": "public Item sample() {\n if (!isEmpty()) {\n return items[getRandomIndex()];\n }\n return null;\n }", "title": "" }, { "docid": "3d68768ccaf7df778a19120ee9727700", "score": "0.7707432", "text": "@Override\n\tpublic Recipe getARecipe() {\n\t\tRandom rand = new Random();\n\t\tint i = rand.nextInt(recipeList.size());\n\t\tRecipe tempRecipe = recipeList.get(i);\n\t\trecipeList.remove(i);\n\t\treturn tempRecipe;\n\n\t}", "title": "" }, { "docid": "e2c6d22cb5e6d5ead86cc4707beb9e3f", "score": "0.76886135", "text": "public Item sample() {\n if (isEmpty()) {\n throw new NoSuchElementException(\" Array empty\");\n }\n return items[StdRandom.uniform(size)];\n // return (but do not remove) a random item\n }", "title": "" }, { "docid": "03748e52da7cf2f075fd592752e74255", "score": "0.76173264", "text": "public Item sample() {\n if (isEmpty()) {\n throw new NoSuchElementException();\n }\n\n int i = StdRandom.uniform(n);\n return items[i];\n }", "title": "" }, { "docid": "bf25345f374f85b61d42fdafb4992d90", "score": "0.7593278", "text": "public Item sample() {\n if (isEmpty()) throw new NoSuchElementException();\n int randomInt = StdRandom.uniform(currentIndex);\n Item randomItem = queue[randomInt];\n return randomItem;\n }", "title": "" }, { "docid": "58c37267a9b0e4e43e3f7fd640d86b51", "score": "0.758653", "text": "public Item sample() {\n /* choose a random item */\n int i = (int) (Math.random() * size);\n\n return array[i];\n }", "title": "" }, { "docid": "42939947449985ef096b5d100904f915", "score": "0.7585942", "text": "public Item sample() {\n\t\tif (size == 0)\n\t\t\tthrow new java.util.NoSuchElementException();\n\t\tint i = randomIndex();\n\t\treturn items[i];\n\t}", "title": "" }, { "docid": "4f0779c9f2ce32c3b8048566e2a5bdcd", "score": "0.7571636", "text": "public Item sample() {\n if (isEmpty()) throw new NoSuchElementException();\n return items[StdRandom.uniform(n)];\n }", "title": "" }, { "docid": "88273745b0ca7208214dd00fdc4d8550", "score": "0.7562723", "text": "public Item sample() {\n if(isEmpty()) throw new NoSuchElementException(\"RandomizedQueue underflow\");\n Item item;\n int id = StdRandom.uniform(N);\n int i = 0;\n Node node = first;\n while ( i != id ) {\n i ++;\n node = node.next;\n }\n item = node.item;\n return item;\n }", "title": "" }, { "docid": "32c39d194314bc767f3edd313bec64be", "score": "0.75485367", "text": "public Item sample()\n {\n if (isEmpty())\n throw new NoSuchElementException(\"empty\");\n \n int i = StdRandom.uniform(size);\n \n return items[i];\n }", "title": "" }, { "docid": "5ebccb4d332414205af38b45b207cd8c", "score": "0.74296224", "text": "public Item sample() {\n if (this.size < 1) {\n throw new java.util.NoSuchElementException(\"empty\");\n }\n int random = StdRandom.uniform(this.size);\n Item removed = this.array[random];\n return removed; \n }", "title": "" }, { "docid": "b391c6fbbaba5de4f8542126a291b1a9", "score": "0.7378602", "text": "public Item sample() {\n\t\tif (isEmpty()) {\n\t\t\tthrow new java.util.NoSuchElementException();\n\t\t}\n\t\tint index = StdRandom.uniform(size());\n\t\treturn rqueue[index];\n\t}", "title": "" }, { "docid": "fdbf7f7c04ec8de543097519d8152f21", "score": "0.73697907", "text": "public Item sample() {\n\t\tif (size == 0) {\n\t\t\tthrow new NoSuchElementException();\n\t\t}\n\t\t\n\t\tint rand = StdRandom.uniform(size) + 1;\n\t\tNode current = first;\n\t\t\n\t\tint count = 1;\n\t\twhile (count != rand) {\n\t\t\tcurrent = current.next;\n\t\t\tcount++;\n\t\t}\n\t\t\n\t\treturn current.item;\n\t}", "title": "" }, { "docid": "9a73451716e3362da487aba35702c296", "score": "0.736437", "text": "public Item sample() {\n if (isEmpty()) {\n throw new NoSuchElementException();\n }\n int randIndex = StdRandom.uniform(0, n);\n Item item = ar[randIndex];\n return item;\n }", "title": "" }, { "docid": "fd6206f266b8e918f16787495e47e80e", "score": "0.73488563", "text": "public Item sample() {\n if (size == 0) throw new NoSuchElementException();\n int index = StdRandom.uniform(size);\n Item out = rq[index];\n return out;\n }", "title": "" }, { "docid": "6bd58df9c248dbdd65ee216f5919c62a", "score": "0.7298491", "text": "public Item sample() {\n if (size() == 0) throw new java.util.NoSuchElementException();\n return a[StdRandom.uniform(queueSize)];\n }", "title": "" }, { "docid": "7cedc4b5cffb08a62d1d2a5a507f042f", "score": "0.72790694", "text": "public Item sample() {\r\n if (isEmpty()) throw new NoSuchElementException(\"Stack underflow\");\r\n StdRandom.shuffle(a, 0, n-1);\r\n return a[n-1];\r\n }", "title": "" }, { "docid": "eff1346dd4d9de7cea2bee6c15e041d8", "score": "0.72789544", "text": "@Override\n public E getRandom() {\n return this.get(random.nextInt((this.size() - 1)));\n }", "title": "" }, { "docid": "2b60b30c9e32c166e427f0697c3e8154", "score": "0.72725505", "text": "public Item sample() {\n if (isEmpty()) throw new NoSuchElementException();\n return data[StdRandom.uniform(size)];\n }", "title": "" }, { "docid": "48d596798fd49d1e40a5a2df09357f7f", "score": "0.72563136", "text": "public Item sample() {\n if (isEmpty()) throw new NoSuchElementException(\"queue is already empty!\");\n int idx = StdRandom.uniform(0, N);\n return a[idx];\n }", "title": "" }, { "docid": "472960638bc3e0d51cd0592aef08b114", "score": "0.72545177", "text": "public static Item getRandomItem(){\n double chance = Math.random();\n if(chance < 0.10){\n return getRandomHeadEquipment();\n }\n else if(chance < 0.20){\n return getRandomSmasherWeapon();\n }else if(chance < 0.30){\n return getRandomSummonerWeapon();\n }else if(chance < 0.40){\n return getRandomSummonerWeapon();\n }else if (chance < 0.50) {\n return getRandomOneShotItem();\n }else if (chance < 0.60) {\n return getRandomLegEquipment();\n }else if (chance < 0.70) {\n return getRandomChestEquipment();\n }else {\n return getRandomNonEquippableItem();\n }\n }", "title": "" }, { "docid": "b201ed52946f7e9c2965da6eb6b32cc5", "score": "0.7212742", "text": "public int getRandom() {\n int index = random.nextInt(set.size());\n return list.get(index);\n }", "title": "" }, { "docid": "11a48c2bdf21c4681c6f8fcbc86c21eb", "score": "0.71846503", "text": "public Item sample() {\n if (!isEmpty()) {\n return queue[StdRandom.uniform(size)+first];\n } else throw new NoSuchElementException(\"No Element\");\n\n }", "title": "" }, { "docid": "9ecaf6bf6a75fa08d59e820e0d77363e", "score": "0.7166519", "text": "public int getRandom() {\n return list.get(random.nextInt(list.size()));\n }", "title": "" }, { "docid": "888c6a4e577c8d79134bc0d839a6e54f", "score": "0.71595275", "text": "public int getRandom() {\n int x = random.nextInt(index);\n return list.get(x);\n }", "title": "" }, { "docid": "c90f3caa5d82539c369d4b5cf8e515ef", "score": "0.71433485", "text": "public Item sample() {\n if ( size == 0 ) throw new java.util.NoSuchElementException(\"client attempts to sample or dequeue an item from an empty randomized queue\");\n return queue[StdRandom.uniform(size)] ;\n }", "title": "" }, { "docid": "9a6e3b0d3b5e4a6400a0cbd973bb62ba", "score": "0.71258813", "text": "public Item sample() {\n if (size == 0) {\n throw new NoSuchElementException(\"sample for empty\");\n }\n return (Item) array[StdRandom.uniform(size)];\n }", "title": "" }, { "docid": "8011994d048a75ac421d108888420fa3", "score": "0.7121828", "text": "public int getRandom() {\n return list.get(R.nextInt(list.size()));\n }", "title": "" }, { "docid": "4d415588ff95648bf58a8b8d97fd1a8e", "score": "0.7089745", "text": "public int getRandom() {\n Random r = new Random();\n return list.get(r.nextInt(list.size()));\n }", "title": "" }, { "docid": "9923c7374d050cc00e310178cde93023", "score": "0.7084616", "text": "public int getRandom() {\n return list.get(new Random().nextInt(list.size()));\n }", "title": "" }, { "docid": "b2bfa1528461f959030068031aad2051", "score": "0.7083516", "text": "public E grab()\n\t{\n\t\treturn super.get(((int)Math.random() * super.size()));\n\t}", "title": "" }, { "docid": "716e78bd69a4231067dd84979e324606", "score": "0.70672846", "text": "public Item sample() {\n return arr[StdRandom.uniform(size)];\n }", "title": "" }, { "docid": "28631d854c80e1c452ec21d55d371ded", "score": "0.7065723", "text": "public int getRandom() {\n return this.list.get(this.random.nextInt(this.list.size()));\n }", "title": "" }, { "docid": "43de15607bc95125f17d2fbd7990959f", "score": "0.7065009", "text": "public Item sample() {\n if (this.sz < 1) throw new NoSuchElementException();\n int idx = StdRandom.uniform(this.sz);\n return this.mem[idx];\n }", "title": "" }, { "docid": "f3e6a31ea4eaa60478f7f1fdf86117ae", "score": "0.7063209", "text": "public int getRandom() {\n return list.get(random.nextInt(list.size()));\n }", "title": "" }, { "docid": "c1f9405d111927f7b4598c93c157b42d", "score": "0.7055813", "text": "public Item sample() {\n if (isEmpty()) {\n throw new NoSuchElementException(\"RandomizedQueue is empty.\");\n }\n Item sample = null;\n while (sample == null) {\n sample = array[StdRandom.uniform(lastIndex + 1)];\n }\n return sample;\n }", "title": "" }, { "docid": "4b0ff0d774deaef5ce2802f0782584d6", "score": "0.70439106", "text": "public Item sample() {\n if (isEmpty()) throw new NoSuchElementException(\"Queue underflow\");\n int i = StdRandom.uniform(n);\n return queue[i];\n }", "title": "" }, { "docid": "d5912295b7eb4059c03287101718baae", "score": "0.70157677", "text": "public int getRandom() {\n return list.get(new java.util.Random().nextInt(list.size()));\n }", "title": "" }, { "docid": "715573b1ecba0187743f9d7d69c17e17", "score": "0.7010438", "text": "public int getRandom() {\n\n Random random = new Random();\n int index = random.nextInt(list.size());\n return list.get(index);\n }", "title": "" }, { "docid": "412f50b0b2f7edc9da129547ba01536d", "score": "0.6942437", "text": "public Item sample() {\n if (start == null)\n throw new NoSuchElementException();\n int index = StdRandom.uniform(1, count + 1);\n// System.out.println(index);\n if (index == 1) {\n return start.data;\n }\n else {\n int j = 1;\n Node itr = start;\n while (j != index) {\n itr = itr.next;\n j++;\n }\n return itr.data;\n }\n }", "title": "" }, { "docid": "091de254ffbb9541a64652163d099bc9", "score": "0.69416493", "text": "public Card retRandCard () {\n\tint inte = Decka.random.nextInt(deckPlayable.size());\r\n\tCard ret = deckPlayable.get(inte);\r\n\tdeckPlayable.remove(inte);\r\n\tdrawnCards++;\r\n\treturn ret;\r\n}", "title": "" }, { "docid": "6311dd3353e03b8bc16d3aeef0adae7a", "score": "0.6934437", "text": "public Item sample() {\n if (isEmpty())\n throw new NoSuchElementException(\"Queue is empty\");\n\n //Selects random element from array\n int index = StdRandom.uniform(N); //index of random queue element\n return q[index];\n }", "title": "" }, { "docid": "914862fe7289c3d4eea6b9d04ff91737", "score": "0.68851626", "text": "private void randomizeItem() {\n\t\tRandom random = new Random();\n\t\tint rand = random.nextInt(100);\n\n\t\tif (rand < ObjectFactory.getConfigInt(\"itemSpawnChance\")) {\n\t\t\tnewAmmoCrate();\n\t\t\tnewMedPack();\n\t\t}\n\n\t}", "title": "" }, { "docid": "6e9b57a985984e5609c13dc52acc3520", "score": "0.68832505", "text": "public synchronized Product takeRandomProduct() throws InterruptedException {\n while (occupiedPlace == 0 || isInspected) {\n wait();\n }\n Product product = Utils.getRandomFromHashMap(products);\n products.remove(product);\n occupiedPlace--;\n notify();\n return product;\n }", "title": "" }, { "docid": "774d44d0796143a7520c68f559156773", "score": "0.68678933", "text": "public int getRandom() {\r\n\t int r = new Random().nextInt(list.size());\r\n\t Iterator<Integer> it = list.iterator();\r\n\t Integer n = null;\r\n\t for(int i=0; i<=r; i++)\r\n\t n = it.next();\r\n\t return n;\r\n\t }", "title": "" }, { "docid": "dc9201414a332b7f30c55d6be6a69395", "score": "0.68588376", "text": "public Object getRandomElement()\n\t{\n\t\tRandom rand = new Random();\n\t\t\n\t\treturn table.get(rand.nextInt() % table.size());\n\t\t\n\t}", "title": "" }, { "docid": "6b5f2f34ed81d6ae1cf95b57955bdfd1", "score": "0.6821025", "text": "public Item sample(){\n\t\tif(size == 0){\n\t\t\tthrow new NoSuchElementException(\"Attempted to dequeue from an empty queue\");\n\t\t}\n\t\t\n\t\tRandom rand = new Random();\n\t\tint n = rand.nextInt(size + 1);\n\t\t\n\t\tQueueNode nthNode = findNth(n);\n\t\t\n\t\treturn nthNode.data;\n\t}", "title": "" }, { "docid": "b4d69e071fa9f8dee83542cdcf01fdec", "score": "0.6811583", "text": "@Override\n public Item getItemDropped(IBlockState state, Random rand, int fortune)\n {\n\t\t\n\t\tint dropProb = random.nextInt();\n\t\tif(dropProb<.5){\t\t\n\t\t\treturn GameRegistry.findItem(\"examplemod\", \"redhotcandy\");\n\t\t}\n\t\telse{\n\t\t\treturn null;\n\t\t}\n }", "title": "" }, { "docid": "fd8fae8a603cdf61f7bcbd2a8a89f70b", "score": "0.6808742", "text": "public void removeRandomListItem()\n {\n if(items.size() == 0) return;\n\n int index = (int) (Math.random()*items.size());\n items.remove(index);\n notifyDataSetChanged();\n }", "title": "" }, { "docid": "029d48e204634357c459b7c35e30c6f3", "score": "0.67515475", "text": "public int getRandom() {\n int idx = rand.nextInt(ar.size());\n return ar.get(idx);\n \n }", "title": "" }, { "docid": "347015b1a6a8911b46da7944fe8fcee1", "score": "0.6749146", "text": "public Item sample() {\n if (s == 0)\n throw new java.util.NoSuchElementException(\"queue is empty\");\n\n return q[StdRandom.uniform(0, s)];\n }", "title": "" }, { "docid": "f88e6c94185f730d5d88dbf4ebed337e", "score": "0.6722476", "text": "public int getRandom() {\n Random ran=new Random();\n int r=ran.nextInt(al.size());\n return al.get(r);\n }", "title": "" }, { "docid": "78ee2ac4a56048ee095047cb7d77bb4d", "score": "0.6720906", "text": "public void randomDrop(){\r\n\t\tint rand = ThreadLocalRandom.current().nextInt(0, 2);\r\n\t\tif(rand == 1){\r\n\t\t\tint random = ThreadLocalRandom.current().nextInt(0, items.size());\r\n\t\t\tremove(items.get(random));\r\n\t\t}else{\r\n\t\t\tint random = ThreadLocalRandom.current().nextInt(0, containers.size());\r\n\t\t\tremove(containers.get(random));\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "e0646ef5b128f73bd7f4671390acfe82", "score": "0.6705921", "text": "public int getRandom() {\n int x = random.nextInt(index);\n return map2.get(x);\n }", "title": "" }, { "docid": "8bd46133d829e2d054ec892b772a29b8", "score": "0.66916066", "text": "public Item dequeue() {\n if (isEmpty()) throw new NoSuchElementException();\n int ind = StdRandom.uniform(n); // generate a random index to remove\n Item ret = items[ind]; // save the item to return\n items[ind] = items[--n];\n items[n] = null;\n if (n > 0 && n == items.length/4) resize(items.length/2);\n return ret;\n }", "title": "" }, { "docid": "5f70cf9d00cdb953fa94a85aec22956d", "score": "0.6674515", "text": "public T drawOne(){\n Random rand = new Random();\n int min =0;\n int randomInd = rand.nextInt((objects.size() - min));\n return objects.get(randomInd);\n }", "title": "" }, { "docid": "c0898dd78ae63fa67be7758407f850b8", "score": "0.66691434", "text": "public Item generateRandomItem(double power) {\n\t\tItem_new item = (Item_new) game.itemBuilder.buildItem(allItems.get((int) Math.min(allItems.size()-1, Math.random()*allItems.size())),power);\r\n//\t\tif(Math.random()<0.1*level) {\r\n//\t\t\tenchant(item, level);\r\n//\t\t}\r\n//\t\tif(Math.random()<0.01*level) {\r\n//\t\t\tenchant(item, level);\r\n//\t\t}\r\n\t\treturn item;\r\n\t}", "title": "" }, { "docid": "e6d2e97763ba524f34424e34e7b55dd2", "score": "0.6648215", "text": "public Entry getRandom() {\n\t\tRandom rand = new Random();\n\t\treturn dict.get(rand.nextInt(dict.size()));\n\t}", "title": "" }, { "docid": "823772a2fbf3d9bfb8bfd0d7a27e4a53", "score": "0.6636822", "text": "public Element getRandomElement()\r\n {\r\n if (isEmpty())\r\n throw new ListIsEmptyException(\"Can't get random of empty list!\");\r\n return getNodeAt((int) (Math.random() * size)).getElement();\r\n }", "title": "" }, { "docid": "e397c65761ca709b0c796e7f207c43ec", "score": "0.6615663", "text": "public int getRandom() {\n\n if(store.isEmpty()) {\n\n return 0;\n\n }\n\n if(store.size() == 1) {\n\n return idx.get(0);\n\n }\n\n return idx.get(new Random().nextInt(store.size()));\n\n }", "title": "" }, { "docid": "4980c1bfe6dba8ef769f48031cd7e682", "score": "0.6588908", "text": "public Ingredient randomIngredient()\n {\n return null;\n }", "title": "" }, { "docid": "5e4baecebd507fdc1567c179d351be12", "score": "0.65567565", "text": "private <T> T getRandomFromList(List<T> list) {\n if (list.size() == 0) {\n return null;\n }\n return list.get(new Random().nextInt(list.size()));\n }", "title": "" }, { "docid": "487ea49f644f94948c8e11445b4b1487", "score": "0.6537323", "text": "public int getRandom() {\r\n\t int r = new Random().nextInt(set.size());\r\n\t Iterator<Integer> it = set.iterator();\r\n\t Integer n = null;\r\n\t for(int i=0; i<=r; i++)\r\n\t n = it.next();\r\n\t return n;\r\n\t }", "title": "" }, { "docid": "f077bdc6828802f8eba527ee4131deb3", "score": "0.6493513", "text": "List<Integer> getRandomElement(List<Integer> list1, \n\t\t\tint totalItems) \n{ \nRandom rand = new Random(); \n\n\nList<Integer> newList = new ArrayList<>(); \n//List<Integer> list2 = new ArrayList<>(); \nfor (int i = 0; i < totalItems; i++) { \n\n\nint randomIndex = rand.nextInt(list1.size()); \n\n\nnewList.add(list1.get(randomIndex)); \n\n \nlist1.remove(randomIndex); \n} \n//\tCollections.copy(list1, list2);\nreturn newList; \n\n}", "title": "" }, { "docid": "241281faaf58bba0ed691eb33a4f8ca5", "score": "0.6488138", "text": "public int getRandom() {\r\n Random random = new Random();\r\n int count = dList.size;\r\n int x = random.nextInt(count) + 1;\r\n return dList.getNode(x).val;\r\n }", "title": "" }, { "docid": "9072fc67cb8c00eba77859690a620ea5", "score": "0.6479773", "text": "public Random getRandom()\r\n {\r\n return random;\r\n }", "title": "" }, { "docid": "d00a6ad30349c7329982aadd7de8b22d", "score": "0.6473081", "text": "public int getRandom() {\n int size = num.size();\n return num.get(random.nextInt(size));\n }", "title": "" }, { "docid": "ea5e571045e88b028a7a4e8a50d11001", "score": "0.6472655", "text": "public int getRandom() {\n return data.get((int) (Math.random() * data.size()));\n }", "title": "" }, { "docid": "e90b1e0902455a75e6d2b4764b90a44c", "score": "0.6457972", "text": "public Item dequeue() {\n /* choose a random item */\n int i = (int) (Math.random() * size);\n Item item = array[i];\n\n /* swap last item this chosen item */\n if (i != size-1)\n array[i] = array[size-1];\n\n size --;\n\n /* halve array if its size is smaller than capacity/4 */\n if ((size < capacity/4) && (capacity > MIN_CAPACITY)) {\n /* create new array */\n Item [] copy = (Item[]) new Object[capacity/2];\n\n /* make a copy */\n for (int j = 0; j < size; j ++) \n copy[j] = array[j];\n\n /* fix capacity */\n capacity /= 2;\n\n /* switch to new array */\n array = copy; \n }\n\n return item;\n }", "title": "" }, { "docid": "c610f32d8b8d604f0e8d248c55ef6d9a", "score": "0.6440345", "text": "public Item dequeue() {\n if ( size == 0 ) throw new java.util.NoSuchElementException(\"client attempts to sample or dequeue an item from an empty randomized queue\");\n int a = StdRandom.uniform(size);\n Item deItem = queue[a];\n while ( a < size-1 ) {\n queue[a]=queue[++a];\n }\n queue[a] = null;\n size --;\n if (size < queue.length/4) {\n Item[] newQueue = (Item[]) new Object[queue.length/2];\n for (int i = 0; i < size; i++){\n newQueue[i] = queue[i];\n }\n queue = newQueue;\n }\n return deItem;\n }", "title": "" }, { "docid": "7c22b03c669c992129b4c13cbdaf0d4e", "score": "0.64269656", "text": "public Holdable getRandMapItem(int mapIndex) {\n\t\tHoldable item;\n\t\tdo {\n\t\t\tint rand = MapRand.randInt(7);\n\t\t\tif (rand == 0) {\n\t\t\t\t// 1/8 chance of spawning a weapon\n\t\t\t\tint randomIndex = MapRand.randInt(creator.numWeapons() - 1);\n\t\t\t\titem = creator.createWeapon(randomIndex);\n\t\t\t} else if (rand == 1) {\n\t\t\t\tint randomIndex = MapRand.randInt(creator.numArmours() - 1);\n\t\t\t\titem = creator.createArmour(randomIndex);\n\t\t\t} else {\n\t\t\t\tint randomIndex = MapRand.randInt(creator.numFoods() - 1);\n\t\t\t\titem = creator.createFood(randomIndex);\n\t\t\t}\n\t\t} while (item.getCost() > tierToMaxCost(mapIndex) || item.getCost() < tierToMinCost(mapIndex));\n\t\treturn item;\n\t}", "title": "" }, { "docid": "b2681aac5cb02dc8d2ee05d159d1248a", "score": "0.64258766", "text": "public Item dequeue() {\n if (isEmpty()) {\n throw new NoSuchElementException();\n }\n int randIndex = StdRandom.uniform(0, n);\n Item item = ar[randIndex];\n // System.out.println(\"removed = \" + ar[randIndex]);\n ar[randIndex] = null;\n resize(n, false);\n n--;\n return item;\n }", "title": "" }, { "docid": "efcbf96fa28c0e39af88a1b18b86e1a1", "score": "0.64181644", "text": "public void addRandomListItem()\n {\n int rand1 = (int) (Math.random()*LOREM_IPSUM.length());\n int rand2 = (int) (Math.random()*LOREM_IPSUM.length());\n String gibberish = LOREM_IPSUM.substring(Math.min(rand1,rand2),Math.max(rand1,rand2));\n items.add((int) Math.round(Math.random()*items.size()),gibberish);\n notifyDataSetChanged();\n }", "title": "" }, { "docid": "8c7be2e7a3f45040e3686b47650585f0", "score": "0.6415847", "text": "public Item dequeue() { // remove and return a random item\r\n if (isEmpty()) { throw new NoSuchElementException(\"Stack underflow\"); }\r\n StdRandom.shuffle(a, 0, n-1);\t\t\t// shuffle items and return the last\r\n Item item = a[n-1];\r\n a[n-1] = null; \t// avoid loitering\r\n n--;\t\t\t\t\t\t\t\t\t\t\t\t// decrease index\r\n //StdOut.print(\"dequeue item = \" + item + \"\\n\");\r\n // shrink size of array if necessary\r\n if (n > 0 && n == a.length/4) resize(a.length/2);\t// halve size of array if necessary\r\n return item;\r\n }", "title": "" }, { "docid": "defc563b78c1846621924f4c64f0f33e", "score": "0.6393403", "text": "private void randQuote(){\n item_index = new Random().nextInt(quotes.length);\n }", "title": "" }, { "docid": "a4161194c4598e95f631d917e31951b6", "score": "0.63923264", "text": "private Object getRandomDistinctValue(ArrayList<Object> recordList, boolean isPrimary){\r\n\t\t// TODO Auto-generated method stub\r\n\t\tif(recordList.size() ==0){\r\n\t\t\t@SuppressWarnings(\"unused\")\r\n\t\t\tint debug =0;\r\n\t\t}\t\r\n\t\t\r\n\t\tint randomNumber = random.nextInt(recordList.size());\r\n\t\tObject obj = recordList.get(randomNumber);\r\n\t\tif(isPrimary)\r\n\t\t\trecordList.remove(randomNumber);\r\n\t\treturn obj;\r\n\t}", "title": "" }, { "docid": "f0dbfd9001b4d03794cdbcca8cc3838c", "score": "0.637835", "text": "public Item takeForInventory(){\n temporary.clear();\n temporary.add(items.get(0));\n items.remove(0);\n return temporary.get(0);\n }", "title": "" }, { "docid": "7a2afbe4cbdbbb90353f32012df5a653", "score": "0.63732225", "text": "public GraphNode getRandomNode() {\n\t\tif (vlist.size() <= 0 ) {\n\t\t\tSystem.out.println(\"Must have nodes in the graph before \"\n\t\t\t\t\t+ \"randomly choosing one.\");\n\t\t\treturn null;\n\t\t}\n\t\tint randomNodeIndex = Game.RNG.nextInt(vlist.size());\n\t\treturn vlist.get(randomNodeIndex);\n\t}", "title": "" }, { "docid": "7fea5213363fa5415e91c5e88dd649ac", "score": "0.6365577", "text": "@Override\n\tpublic AbstractUser getRandomElement(List<AbstractUser> list) {\n\t\tint randomIndex = (int) (Math.random()*list.size());\n\t\treturn list.get(randomIndex);\n\t}", "title": "" }, { "docid": "c34c989a79ea5ebc724f77469acebbb3", "score": "0.6361744", "text": "public Tile_024_055 removeRandomTile(){\n\t\tint randomIndex = new Random().nextInt(_tileBag.size());\n\t\treturn _tileBag.remove(randomIndex);\n\t}", "title": "" }, { "docid": "b25245683866146c13e64b816faff4ee", "score": "0.63507056", "text": "public static Question getRandomQuestion() {\r\n\t\tRandom rnd = new Random();\r\n\t\t//if there is more than one question it picks a random one otherwise it takes the only available one\r\n\t\tint q = 0;\t\t\r\n\t\tif (typeQuestions.size() > 1) {\r\n\t\t\tq = rnd.nextInt(typeQuestions.size());\t\t\t\r\n\t\t}\r\n\t\tQuestion nextQuestion = (typeQuestions.get(q));\r\n\t\ttypeQuestions.remove(typeQuestions.get(q));\r\n\t\treturn nextQuestion;\r\n\t}", "title": "" }, { "docid": "ac755935981f91c8bf23889ccda17a39", "score": "0.63183594", "text": "public Item dequeue() {\n if (isEmpty()) {\n throw new NoSuchElementException(\"the list is empty\");\n }\n int n = getRandomIndex();\n Item item = items[n];\n\n items[n] = items[--size];\n items[size] = null;\n\n if (size() > 0 && size() == items.length / 4) {\n resize(items.length / 2);\n }\n\n return item;\n }", "title": "" }, { "docid": "a168002c0c19922c0b73bddd65cd9ec5", "score": "0.63001215", "text": "public Item getItemDropped(IBlockState state, Random rand, int fortune)\n {\n return Item.getItemFromBlock(offLamp);\n }", "title": "" }, { "docid": "b6f250decc9b35b25827995ca104d172", "score": "0.6288612", "text": "public Item dequeue() {\n if (isEmpty()) throw new NoSuchElementException();\n int randomInt = StdRandom.uniform(currentIndex);\n Item randomItem = queue[randomInt];\n Item[] newCopy = (Item[]) new Object[queue.length];\n int i = 0;\n for (Item s: this) {\n if (s != randomItem) {\n newCopy[i] = s;\n i++;\n }\n }\n queue = newCopy;\n currentIndex--;\n// if (currentIndex > 0 && currentIndex == queue.length/4) resize(queue.length/2);\n return randomItem;\n }", "title": "" }, { "docid": "4bac17ffdb99ba63479fd5ef63932119", "score": "0.62752277", "text": "public JMenuItem getRandomItem() {\n if(randomItem == null) {\n randomItem = new JMenuItem(\"Random\");\n randomItem.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_Q, ActionEvent.CTRL_MASK));\n final Component self = this;\n randomItem.addActionListener(new ActionListener() {\n \n public void actionPerformed(ActionEvent e) {\n GraphMakerMain.instance.graphPanel.reset();\n int nodes = 0;\n double connectivity = 0;\n try {\n nodes = Integer.parseInt(JOptionPane.showInputDialog(\"# nodes:\"));\n connectivity = Double.parseDouble(JOptionPane.showInputDialog(\"avg edges per node:\"));\n }\n catch(Exception ex) {\n showErrorMessage(ex.getMessage());\n }\n GraphMakerMain.instance.graphPanel.setGraph(RandomGraphFactory.randomGraph(nodes, connectivity));\n }\n \n });\n }\n return randomItem;\n }", "title": "" }, { "docid": "9899bbda07513bb25ad589cfe922ca8b", "score": "0.6258773", "text": "abstract public Object sample(Random rand);", "title": "" }, { "docid": "71b18b3d43cb98c9be96ca0677520c64", "score": "0.625691", "text": "public Item dequeue() {\n if (isEmpty()) {\n throw new NoSuchElementException(\"RandomizedQueue is empty.\");\n }\n int i = StdRandom.uniform(lastIndex + 1);\n Item removed = array[i];\n array[i] = array[lastIndex];\n array[lastIndex--] = null;\n // resize array if it is only 25% full\n if (size() > 0 && size() == array.length / 4) {\n resize(array.length / 2);\n }\n return removed;\n }", "title": "" }, { "docid": "96eb9830fb2bf491f46882012e43c0fe", "score": "0.62567073", "text": "public Item dequeue()\n {\n if (isEmpty())\n throw new NoSuchElementException(\"empty\");\n \n // generate random array index\n int i = StdRandom.uniform(size);\n // get random item\n Item item = items[i];\n //put last item to position of random item to fill it gaps\n items[i] = items[size - 1];\n size--;\n \n // halve size of array when array is one-quarter full.\n if (size > 0 && items.length / size >= 4)\n {\n Item[] newArray = Arrays.copyOf(items, items.length / 2);\n items = newArray;\n }\n \n return item;\n }", "title": "" }, { "docid": "20f70e8fb8660459b130bd5849abffc9", "score": "0.62535983", "text": "public final void spawnRandDrop() {\n if (this.mapid != 910000000 || this.channel != 1) {\n return;\n }\n this.mapobjectlocks.get(MapleMapObjectType.ITEM).readLock().lock();\n try {\n for (MapleMapObject o : this.mapobjects.get(MapleMapObjectType.ITEM).values()) {\n if (!((MapleMapItem)o).isRandDrop()) continue;\n return;\n }\n }\n finally {\n this.mapobjectlocks.get(MapleMapObjectType.ITEM).readLock().unlock();\n }\n Timer.MapTimer.getInstance().schedule(new Runnable(){\n\n @Override\n public void run() {\n Point pos = new Point(Randomizer.nextInt(800) + 531, 34 - Randomizer.nextInt(800));\n int itemid = 0;\n itemid = 4000463;\n MapleMap.this.spawnAutoDrop(itemid, pos);\n }\n }, 600000L);\n }", "title": "" }, { "docid": "eb36ac96ce68f08555a9895cc454f744", "score": "0.6242186", "text": "Random getRandom();", "title": "" }, { "docid": "276540777bcdfbdd6563dac2928b46e3", "score": "0.6235018", "text": "public Card getCard(){\n if(cardDeck.size() > 0){\n Random rand = new Random();\n //Choose the card\n int cardNumber = rand.nextInt(cardDeck.size());\n Card tempCard = cardDeck.get(cardNumber);\n //Remove the card from the deck\n cardDeck.remove(cardNumber);\n //Deal the card\n return tempCard;\n } else {\n System.out.println(\"No cards left\");\n return null;\n }\n }", "title": "" }, { "docid": "7703e437dfae08478aed012064696048", "score": "0.62239844", "text": "private ICell randomCell() {\n int rndNumberCell = new Random().nextInt(this.freeCells.size());\n return this.freeCells.remove(rndNumberCell);\n }", "title": "" }, { "docid": "98c3d8cc12ba1561efab0446888dd0c2", "score": "0.6220006", "text": "public int getRandom() {\n // System.out.println(\"count: \" + count + \"random: \" + random.nextInt());\n if (count == 0) {\n return -1;\n }\n return data.get(random.nextInt(count));\n }", "title": "" }, { "docid": "28b7817689588da56235583776bdf46f", "score": "0.6209358", "text": "public Item remove(){\r\n Item newitem = new Item();\r\n return newitem;\r\n }", "title": "" }, { "docid": "f7390df1deade9a3f31a0a77aee28e22", "score": "0.6206903", "text": "public TalkingPoint getRandom() {\n Random rnd = new Random();\n long idUsed = rnd.nextInt(4) + 1;\n return talkingPointRepository.findById(idUsed).get();\n }", "title": "" }, { "docid": "30064d165d477b1cac40aa753912fb46", "score": "0.62042695", "text": "public Random getRandom() {\r\n\t\treturn mRandom;\r\n\t}", "title": "" }, { "docid": "0e735d1a6193222d2edaab5e5e6f5c3a", "score": "0.6203663", "text": "public ItemMangement() {\n rand = new Random();\n }", "title": "" } ]
3f26c1b00808032537ababc4a4ba4b11
Saves the ontology in the specified ontology format to its document URI.
[ { "docid": "e1297077e1a91f85bcc08e6e9d798656", "score": "0.7662014", "text": "void saveOntology(@Nonnull OWLDocumentFormat ontologyFormat)\n throws OWLOntologyStorageException;", "title": "" } ]
[ { "docid": "1ab8ca848b8f4bd7ac8ea0cc2399a4e6", "score": "0.7849972", "text": "void saveOntology(@Nonnull OWLDocumentFormat ontologyFormat,\n @Nonnull IRI documentIRI) throws OWLOntologyStorageException;", "title": "" }, { "docid": "a9275881667ce8d2f23fa2aac15650a3", "score": "0.7628951", "text": "void saveOntology() throws OWLOntologyStorageException;", "title": "" }, { "docid": "2d599d4259a15196995a0c686e26f54f", "score": "0.72358286", "text": "void saveOntology(@Nonnull OWLDocumentFormat ontologyFormat,\n @Nonnull OutputStream outputStream)\n throws OWLOntologyStorageException;", "title": "" }, { "docid": "c98f97db3771bc430b5c6c9f5e44c44a", "score": "0.7213709", "text": "private void saveOWLFile() {\n\n\t\tif (ontFile != null) {\n\t\t\ttry {\n\t\t\t\t// save current selected ontology to disk\n\t\t\t\t\n\t\t\t\t// prompt user if overwriting\n\t\t\t\tif (ontFile.exists()) {\n\t\t\t\t\tint result = JOptionPane.showConfirmDialog(this, \"Saving File at \" + ontFile.getAbsolutePath() + \". Overwrite?\", \"Save Ontology\", JOptionPane.YES_NO_OPTION);\n\t\t\t\t\tif (result != JOptionPane.YES_OPTION) return;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t// save reference in fileOntMap\n\t\t\t\tthis.fileOntMap.put(swoopModel.getSelectedOntology().getPhysicalURI(), ontFile);\n\t\t\t\t\n\t\t\t\t// in RDF/XML\n\t\t\t\tStringWriter st = new StringWriter();\n\t\t\t\tCorrectedRDFRenderer rdfRenderer = new CorrectedRDFRenderer();\n\t\t\t\trdfRenderer.renderOntology(swoopModel.getSelectedOntology(), st);\n\n\t\t\t\tthis.saveOntologyAndCleanup(st);\n\t\t\t\t\t\t\t\t\n\t\t\t} \n\t\t\tcatch (Exception e) {\n\t\t\t\tJOptionPane.showMessageDialog(this,\n\t\t\t\t\t\t\"Error writing Ontology File '\" + ontFile.getName()\n\t\t\t\t\t\t\t\t+ \"'\", \"Save Error\", JOptionPane.ERROR_MESSAGE);\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "be55ce4c846dc8cd4340b7d6a7568b67", "score": "0.720434", "text": "void saveOntology(@Nonnull OWLDocumentFormat ontologyFormat,\n @Nonnull OWLOntologyDocumentTarget documentTarget)\n throws OWLOntologyStorageException;", "title": "" }, { "docid": "65ce18249c6e5e7239bdc73e99c2b78b", "score": "0.71563053", "text": "void saveOntology(@Nonnull IRI documentIRI)\n throws OWLOntologyStorageException;", "title": "" }, { "docid": "2ff194832e99d234a795dd81998a0f6a", "score": "0.66512096", "text": "private void saveOntologyFile() {\n\n\t\tif (ontFile != null) {\n\t\t\ttry {\n\n\t\t\t\tif (!(ontFile.getName().endsWith(\".swo\"))\n\t\t\t\t\t\t&& !(ontFile.getName().endsWith(\".SWO\"))) {\n\t\t\t\t\tontFile = new File(ontFile.getAbsolutePath() + \".swo\");\n\t\t\t\t}\n\n\t\t\t\t// prompt user if overwriting\n\t\t\t\tif (ontFile.exists()) {\n\t\t\t\t\tint result = JOptionPane.showConfirmDialog(this, \"Saving File at \" + ontFile.getAbsolutePath() + \". Overwrite?\", \"Save Ontology\", JOptionPane.YES_NO_OPTION);\n\t\t\t\t\tif (result!= JOptionPane.YES_OPTION) return;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t// save current selected ontology to disk\n\t\t\t\tObjectOutputStream outs = new ObjectOutputStream(\n\t\t\t\t\t\tnew FileOutputStream(ontFile));\n\t\t\t\tOWLOntology ont = swoopModel.getSelectedOntology();\n\t\t\t\tCorrectedRDFRenderer rend = new CorrectedRDFRenderer();\n\t\t\t\tStringWriter st = new StringWriter();\n\t\t\t\trend.renderOntology(ont, st);\n\t\t\t\tList ontologyList = new ArrayList();\n\t\t\t\tontologyList.add(st.getBuffer().toString());\n\t\t\t\tontologyList.add(ont.getURI().toString());\n\t\t\t\touts.writeObject(ontologyList);\n\n\t\t\t\t// save all changes related to ontology\n\t\t\t\tList ontChanges = new ArrayList(swoopModel.getChangesCache().getChangeList(ont.getURI()));\n\t\t\t\tMap tempChangeMap = new HashMap();\n\t\t\t\t//*** while saving changes, you need to remove OntologyChange objects where problematic\n\t\t\t\t// and serialize them into RDF/XML (this is applicable for NON CHECKPOINT changes)\n\t\t\t\tfor (int i = 0; i < ontChanges.size(); i++) {\n\t\t\t\t\tSwoopChange swc = (SwoopChange) ontChanges.get(i);\n\t\t\t\t\tif (!swc.isCheckpointRelated()) {\n\n\t\t\t\t\t\t// serialize into RDF/XML if it hasnt been generated already\n\t\t\t\t\t\tif (swc.getRDFXML().equals(\"\")) {\n\t\t\t\t\t\t\tOntologyChangeRenderer ocRend = new OntologyChangeRenderer(\n\t\t\t\t\t\t\t\t\tchangeLog);\n\t\t\t\t\t\t\tList onlyChange = new ArrayList();\n\t\t\t\t\t\t\tonlyChange.add(swc.getChange());\n\t\t\t\t\t\t\tOWLOntology serOnt = ocRend\n\t\t\t\t\t\t\t\t\t.serializeOntologyChanges(onlyChange);\n\t\t\t\t\t\t\tCorrectedRDFRenderer rdfRend = new CorrectedRDFRenderer();\n\t\t\t\t\t\t\tst = new StringWriter();\n\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\trdfRend.renderOntology(serOnt, st);\n\t\t\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tswc.setRDFXML(st.toString());\n\t\t\t\t\t\t}\n\t\t\t\t\t\t// nullify ontology change TEMPORARILY\n\t\t\t\t\t\tOntologyChange ch = swc.getChange();\n\t\t\t\t\t\tswc.setChange(null);\n\t\t\t\t\t\ttempChangeMap.put(swc, ch);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\touts.writeObject(ontChanges);\n\t\t\t\t// restore tempChangeMap\n\t\t\t\tfor (Iterator t = tempChangeMap.keySet().iterator(); t.hasNext();) {\n\t\t\t\t\tSwoopChange swc = (SwoopChange) t.next();\n\t\t\t\t\tswc.setChange((OntologyChange) tempChangeMap.get(swc));\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t// write swoop annotation cache\n\t\t\t\touts.writeObject(swoopModel.getAnnotationCache());\n\n\t\t\t\t// write annotated object uri's\n\t\t\t\touts.writeObject(swoopModel.getAnnotatedObjectURIs());\n\n\t\t\t\t//System.out.println(\"SWOOP Ontology saved in \"+ontFile.getName());\n\t\t\t\tJOptionPane.showMessageDialog(this, \"Ontology File '\"\n\t\t\t\t\t\t+ ontFile.getName() + \"' Saved Successfully\",\n\t\t\t\t\t\t\"File Saved\", JOptionPane.INFORMATION_MESSAGE);\n\n\t\t\t} catch (Exception e) {\n\t\t\t\tJOptionPane.showMessageDialog(this,\n\t\t\t\t\t\t\"Error writing Ontology File '\" + ontFile.getName()\n\t\t\t\t\t\t\t\t+ \"'\", \"Save Error\", JOptionPane.ERROR_MESSAGE);\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "4cea27b2ec955afbb7fe45aeab2f2864", "score": "0.6437156", "text": "void saveOntology(@Nonnull OutputStream outputStream)\n throws OWLOntologyStorageException;", "title": "" }, { "docid": "1080133128902c93afbe2303f2f9fcfe", "score": "0.638201", "text": "@Override\n\tpublic void saveOntology() {\n\t\ttry {\n\t\t\tFileOutputStream fos;\n\t\t\tif (this.file.isEmpty()) {\n\t\t\t\tFile dirs = new File(\"./KReSConf\");\n\t\t\t\tif (!dirs.exists())\n\t\t\t\t\tdirs.mkdir();\n\t\t\t\tfile = \"./KReSConf/rmi_config.owl\";\n\t\t\t\ttry {\n\t\t\t\t\tfos = new FileOutputStream(file);\n\t\t\t\t\tOWLManager.createOWLOntologyManager().saveOntology(\n\t\t\t\t\t\t\towlmodel,\n\t\t\t\t\t\t\towlmodel.getOWLOntologyManager().getOntologyFormat(\n\t\t\t\t\t\t\t\t\towlmodel), fos);\n\t\t\t\t} catch (FileNotFoundException e) {\n\t\t\t\t\tlog.error(\"Cannot store the ontology \",e);\n\t\t\t\t} catch (OWLOntologyStorageException e) {\n\t\t\t\t\tlog.error(\"Cannot store the ontology \",e);\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tfos = new FileOutputStream(file);\n\t\t\t\tthis.owlmodel.getOWLOntologyManager().saveOntology(owlmodel,\n\t\t\t\t\t\tfos);\n\t\t\t}\n\n\t\t} catch (OWLOntologyStorageException ex) {\n\t\t\tlog.error(\"Cannot store the ontology \",ex);\n\t\t} catch (FileNotFoundException ex) {\n\t\t\tlog.error(\"Cannot store the ontology \",ex);\n\t\t}\n\n\t}", "title": "" }, { "docid": "5aafb113defbb340747ca1b1e48bb3f7", "score": "0.629183", "text": "public abstract void save(Bean2RDF writer, Resource subject, Property property, Object o);", "title": "" }, { "docid": "c78a61779820bdfe8e62c22953a1c6ac", "score": "0.61491585", "text": "private void saveOntologyAndCleanup(StringWriter st) throws IOException {\n\t\tOutputStream fileStream = new FileOutputStream(ontFile);\n\t\tWriter writer = new OutputStreamWriter(fileStream, Charset\n\t\t\t\t.forName(\"UTF-8\"));\n\t\twriter.write(st.toString());\n\t\twriter.close();\n\n\t\t// reset all change log in swoopModel\n\t\tswoopModel.setCommittedChanges(new ArrayList());\n\n\t\tJOptionPane.showMessageDialog(this, \"Ontology File '\"\n\t\t\t\t+ ontFile.getName() + \"' Saved Successfully\", \"File Saved\",\n\t\t\t\tJOptionPane.INFORMATION_MESSAGE);\n\t}", "title": "" }, { "docid": "b90f22b212d2b0630671a069a0a45614", "score": "0.5881454", "text": "void save(EncogPersistedObject object, WriteXML out);", "title": "" }, { "docid": "41ec41f8150b5cceac472f8f82fba93a", "score": "0.5865334", "text": "private void saveAbstractSyntaxFile() {\n\n\t\tif (ontFile != null) {\n\t\t\ttry {\n\n\t\t\t\t// save current selected ontology to disk\n\t\t\t\t\n\t\t\t\t// prompt user?\n\t\t\t\tint result = JOptionPane.showConfirmDialog(this, \"Saving File at \" + ontFile.getAbsolutePath() + \". Overwrite?\", \"Save Ontology\", JOptionPane.YES_NO_OPTION);\n\t\t\t\tif (result != JOptionPane.YES_OPTION) return;\n\t\t\t\t\n\t\t\t\t// in Abstract Syntax format\n\t\t\t\tStringWriter st = new StringWriter();\n\n\t\t\t\torg.semanticweb.owl.io.abstract_syntax.Renderer absRenderer = new org.semanticweb.owl.io.abstract_syntax.Renderer();\n\t\t\t\tabsRenderer\n\t\t\t\t\t\t.renderOntology(swoopModel.getSelectedOntology(), st);\n\n\t\t\t\tthis.saveOntologyAndCleanup(st);\n\n\t\t\t} catch (Exception e) {\n\t\t\t\tJOptionPane.showMessageDialog(this,\n\t\t\t\t\t\t\"Error writing Ontology File '\" + ontFile.getName()\n\t\t\t\t\t\t\t\t+ \"'\", \"Save Error\", JOptionPane.ERROR_MESSAGE);\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "b0931a50006b993c7b014bff9b5ce4af", "score": "0.5760981", "text": "public void save()\n throws IOException\n {\n save(getDocument());\n }", "title": "" }, { "docid": "dec538e9886310a9edef408db826ed75", "score": "0.5699592", "text": "public void downloadOntology(String acronym, String address, String dir) throws OWLOntologyCreationException {\n\n //println(\"Acro : \"+acronym);\n //println(\"Address: \"+address);\n //println(\"Dir : \"+dir);\n\n fileIN = new File(dir + File.separator + acronym.toUpperCase() + \".xrdf\");\n\n //println(\"FileIn : \"+fileIN);\n // Agroportal DEMO KEY\n\n String apiKey = ManageProperties.loadPropertyValue(\"restagroportalapikey\");\n\n if (command.indexOf(\"n\") > -1) {\n apiKey = ManageProperties.loadPropertyValue(\"restbioportalapikey\");\n }\n\n if (command.indexOf(\"f\") > -1) {\n apiKey = ManageProperties.loadPropertyValue(\"reststagebioportalapikey\");\n }\n\n if (command.indexOf(\"h\") > -1) {\n apiKey = ManageProperties.loadPropertyValue(\"reststageagroportalapikey\");\n }\n\n\n IRI iri = IRI.create(address + \"?apikey=\" + apiKey + \"&download_format=rdf\");\n\n stdoutLogger.warn(address + \"?apikey=\" + apiKey + \"&download_format=rdf\");\n\n try {\n oA = man.loadOntology(iri);\n\n } catch (UnloadableImportException e1) {\n errorLogger.error(\"Error trying to import ontology: \" + e1.getMessage());\n saveFile();\n }\n\n stdoutLogger.info(\"ONTOLOGY (to.string()): \" + oA.toString());\n\n ontologyID = oA.getOntologyID();\n\n }", "title": "" }, { "docid": "72929b2489e38cac89098ae94620db94", "score": "0.5602016", "text": "public void saveDocumentAs(URL url) {\n\t\tXmlDataAdaptor xda = XmlDataAdaptor.newEmptyDocumentAdaptor();\n\t\tDataAdaptor daLevel1 = xda.createChild(\"SCLMon\");\n\t\t// save accelerator file\n\t\tDataAdaptor daXMLFile = daLevel1.createChild(\"accelerator\");\n\t\ttry {\n\t\t\tdaXMLFile.setValue(\"xalFile\",\n\t\t\t\t\tnew URL(this.getAcceleratorFilePath()).getPath());\n\t\t} catch (java.net.MalformedURLException e) {\n\t\t\tdaXMLFile.setValue(\"xalFile\", this.getAcceleratorFilePath());\n\t\t}\n\t\t// save selected sequences\n\t\tArrayList<String> seqs;\n\t\tif (getSelectedSequence() != null) {\n\t\t\tDataAdaptor daSeq = daLevel1.createChild(\"sequences\");\n\t\t\tdaSeq.setValue(\"name\", getSelectedSequence().getId());\n\t\t\tif (getSelectedSequence().getClass() == AcceleratorSeqCombo.class) {\n\t\t\t\tAcceleratorSeqCombo asc = (AcceleratorSeqCombo) getSelectedSequence();\n\t\t\t\tseqs = (ArrayList<String>) asc.getConstituentNames();\n\t\t\t} else {\n\t\t\t\tseqs = new ArrayList<String>();\n\t\t\t\tseqs.add(getSelectedSequence().getId());\n\t\t\t}\n\n\t\t\tIterator<String> itr = seqs.iterator();\n\n\t\t\twhile (itr.hasNext()) {\n\t\t\t\tDataAdaptor daSeqComponents = daSeq.createChild(\"seq\");\n\t\t\t\tdaSeqComponents.setValue(\"name\", itr.next());\n\t\t\t}\n\t\t}\n\n\t\t// write to the document file\n\t\txda.writeToUrl(url);\n\t\tsetHasChanges(false);\n\t}", "title": "" }, { "docid": "b3296739cba336ba9db3a86c9b7d0a02", "score": "0.5601265", "text": "@Override\n public void saveDocumentAs(java.net.URL url) {\n // if (url == null) {\n // // Get the file chooser dialogue\n // AcceleratorApplication appGbl = MainApplication.getAcceleratorApplication();\n // JFileChooser chrSave = appGbl.getSaveFileChooser();\n // \n // // Initialize the file chooser dialogue\n // File fileDir = appGbl.getDefaultDocumentFolder();\n //// File fileDir = chrSave.getCurrentDirectory();\n // File fileDef = this.generateFileName(fileDir);\n // chrSave.setSelectedFile(fileDef);\n // \n // // Retrieve the file name\n // MainWindow winMain = this.getMainView();\n // int intResult = chrSave.showSaveDialog(winMain);\n // //File fileNewDir = chrSave.getCurrentDirectory();\n // \n // if (intResult == JFileChooser.APPROVE_OPTION) {\n // File file = chrSave.getSelectedFile();\n // URI uri = file.toURI();\n // try {\n // url = uri.toURL();\n //\n // } catch (MalformedURLException e) {\n // winMain.displayError(\"Save Error\", \"Bad file name \" + uri.toString());\n // winMain.getLogger().logException(this.getClass(), e, \"Unable to save data, bad file name \" + uri.toString());\n // \n // return;\n // }\n //\n // }\n // }\n\n if (url == null) \n return;\n\n if (url.equals(this.getSource()) && !hasChanges())\n return;\n\n try {\n XmlDataAdaptor daptDoc = XmlDataAdaptor.newEmptyDocumentAdaptor();\n daptDoc.writeNode(this);\n daptDoc.writeToUrl(url);\n\n this.setHasChanges(false);\n this.setSource(url);\n\n this.getLogger().logInfo(this.getClass(), \"Saving application data to file \" + url.toString()); //$NON-NLS-1$\n\n } catch(XmlDataAdaptor.WriteException e) {\n displayError(\"Save Failed!\", //$NON-NLS-1$\n \"Save to file \" + //$NON-NLS-1$\n url.toString() + \n \" failed due to an internal write exception!\", //$NON-NLS-1$\n e);\n this.getLogger().logException(getClass(), e, \"Document save failure, URL = \" + url.getFile()); //$NON-NLS-1$\n }\n }", "title": "" }, { "docid": "9b8eb6101e0f2d157a1698c10c4c4a58", "score": "0.55584204", "text": "public void save() throws IOException;", "title": "" }, { "docid": "fae8dd7ed62c50e6dd9fe36a6dee473f", "score": "0.5538419", "text": "void save(final AitDocumentMetadataVO document);", "title": "" }, { "docid": "63edecc2a68de21a21846f6955a2ee6b", "score": "0.5504673", "text": "public void save() {\n CoreSession session = doc.getCoreSession();\n doc = session.saveDocument(doc);\n }", "title": "" }, { "docid": "2db6975e99d24eb6a0ba7e27d5540b3f", "score": "0.54550254", "text": "public IRI writeModel(String fileOut) {\r\n\t\t// Save to RDF/XML\r\n\t\ttry {\r\n\t\t\tFile output = File.createTempFile(fileOut, \".owl\");\r\n\t\t\tIRI documentIRI = IRI.create(output);\r\n\t\t\treasoner_manager.saveOntology(reasoner_ontology, documentIRI);\r\n\t\t\treturn documentIRI;\r\n\t\t} catch (Exception e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\treturn null;\r\n\t}", "title": "" }, { "docid": "241a06401617e863027fa2dee63a0577", "score": "0.54517096", "text": "public String save() {\r\n\t\tint mid = this.filename.lastIndexOf(\".\");\r\n\t\tString extension = this.filename.substring(mid + 1,\r\n\t\t\t\tthis.filename.length());\r\n\t\tCategory category = this.detectCategoryForFile(extension);\r\n\t\tString path = \"C:\\\\Library\";\r\n\t\tRandom randomGenerator = new Random();\r\n\t\tString fileName= String.valueOf(randomGenerator.nextInt(10000000))+\".\"+extension;\r\n\t\tthis.uploadFile(path,fileName);\r\n\t\tdocument.setCategory(category);\r\n\t\tdocument.setPath(path + \"\\\\\" + fileName);\r\n\t\tdocumentService.edit(document);\r\n\t\treturn SUCCESS;\r\n\t}", "title": "" }, { "docid": "04af70bb2cca8c62ad3f834b6147bda8", "score": "0.53911394", "text": "public void saveOntologySnapshot(String fileName, double simTime) {\n LOG.trace(\">> saveOntologySnapshot simTime=\"+simTime);\n\n //Create a file for the new format\n File fileformated = new File(fileName+\"-\"+simTime+\".owl\");\n\n try {\n fileformated.createNewFile();\n manager.saveOntology(ontology, new FileDocumentTarget(fileformated));\n } catch (OWLOntologyStorageException | IOException e) {\n throw new RuntimeException(e);\n }\n\n LOG.trace(\"<< saveOntologySnapshot\");\n }", "title": "" }, { "docid": "041d88df5d0402a575d745a6905f2503", "score": "0.538177", "text": "void save() throws IOException;", "title": "" }, { "docid": "4a5b824bc31ad169d759e02bfe490f44", "score": "0.5335715", "text": "public void save() {\n updateRef();\n saveMiner();\n saveMap();\n }", "title": "" }, { "docid": "087ca05080d82b1c785eb73c5ba38d69", "score": "0.53110826", "text": "public abstract void saveAs();", "title": "" }, { "docid": "3553984548d6147e034a1d10e2374216", "score": "0.5264368", "text": "private void saveBookmarks() {\n\n\t\ttry {\n\t\t\tStringWriter bufStream = new StringWriter();\n\t\t\tfor (int i = 0; i < bookmarks.size(); i++) {\n\t\t\t\tBookmark bm = (Bookmark) bookmarks.get(i);\n\t\t\t\tbufStream.write(bm.getDisplayed_name() + \" \" + bm.getUri()\n\t\t\t\t\t\t+ \" \" + bm.getOntology_uri());\n\t\t\t\tbufStream.write(System.getProperty(\"line.separator\"));\n\t\t\t}\n\t\t\tbufStream.close();\n\t\t\tswoopModel.saveBookmarks(bufStream.toString());\n\t\t} catch (Exception ex) {\n\t\t\tex.printStackTrace();\n\t\t}\n\n\t}", "title": "" }, { "docid": "e0dac9a093935bf6c8216a23b18f92c5", "score": "0.5256468", "text": "public void save() {\n // Map<String, String> saveOptions = new HashMap<String, String>();\n // saveOptions.put(XMLResource.OPTION_ENCODING, \"UTF-8\");\n\n final Map<Object, Object> saveOptions = new HashMap<Object, Object>();\n saveOptions.put(Resource.OPTION_SAVE_ONLY_IF_CHANGED, Resource.OPTION_SAVE_ONLY_IF_CHANGED_MEMORY_BUFFER);\n\n try {\n workflowModel.eResource().save(saveOptions);\n // workflowModel.eResource().save(null);\n diagram.eResource().save(saveOptions);\n // confModel.eResource().save(saveOptions);\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "title": "" }, { "docid": "c5af8a339ec9050ef0e691851d3c9449", "score": "0.52374786", "text": "public void saveANodal(Nodal nodal);", "title": "" }, { "docid": "4eecbf8d6b608c98e6b1a1f21777d2e2", "score": "0.52251405", "text": "public void writeModel(OutputStream output) {\r\n\t\t// Save to RDF/XML\r\n\t\ttry {\r\n\t\t\treasoner_manager.saveOntology(reasoner_ontology, output);\r\n\t\t} catch (Exception e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "8fd297f6a3d56aa3497f8b82b772381b", "score": "0.52153707", "text": "public void save(PersistentOutputStream os);", "title": "" }, { "docid": "f5a11035ed5026dc29148d3b656ee948", "score": "0.5201367", "text": "public abstract void save(String pathToSave);", "title": "" }, { "docid": "d47629e0676d0b60f5142cb7522a2910", "score": "0.51967037", "text": "void save();", "title": "" }, { "docid": "5e00fa144f9d201edd8269199d1dda07", "score": "0.5166221", "text": "public void save();", "title": "" }, { "docid": "5e00fa144f9d201edd8269199d1dda07", "score": "0.5166221", "text": "public void save();", "title": "" }, { "docid": "5e00fa144f9d201edd8269199d1dda07", "score": "0.5166221", "text": "public void save();", "title": "" }, { "docid": "66991b47d4106ff9bde45831665e80fe", "score": "0.51299983", "text": "public abstract void save() throws IOException;", "title": "" }, { "docid": "b5838f228843950f2d9377dade4aa4d8", "score": "0.512662", "text": "public void saveDictionary()throws IOException{\n File file;\n if(ifStem){\n file=new File(path+\"\\\\Dictionarystem.txt\");\n }\n else {\n file=new File(path+\"\\\\Dictionary.txt\");\n }\n FileOutputStream outputStream=new FileOutputStream(file);\n ObjectOutputStream objectOutputStream=new ObjectOutputStream(outputStream);\n objectOutputStream.writeObject(termDocFreqDic);\n objectOutputStream.close();\n outputStream.close();\n }", "title": "" }, { "docid": "e632a7c899c132c896ee26aec451704d", "score": "0.512204", "text": "private void writeMutatedOntologyFile(Map<String, String> mutatedClassesMap, String ontologyURI, Model ontModel) {\r\n\t\ttry {\r\n\t\t\t//Build the new file path to store the mutated ontology file\r\n\t\t\tString fileName = this.getFileName(ontologyURI);\t\t\r\n\t\t\tStringBuilder outputFilePath = new StringBuilder(\"./src/test/resources/training/benchmark/mutations/\").append(fileName)\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.append(\"_mutated\")\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.append(\".owl\");\r\n\t\t \t//write the model to an output stream \r\n\t\t\tString tempFileLoc = \"./src/test/resources/training/benchmark/mutations/temp\";\r\n\t\t\tOutputStream outputStream = new FileOutputStream(tempFileLoc);\r\n\t\t\tRDFDataMgr.write(outputStream, ontModel, Lang.RDFXML) ;\t\t\t \t\t\t\t\r\n\t\t\t\r\n\t\t\tString content = FileUtils.readFileToString(new File(tempFileLoc), \"UTF-8\");\r\n\t\t \r\n\t\t //replace all URIs that are found in the non-mutated file\r\n\t\t for (Map.Entry<String, String> entry : mutatedClassesMap.entrySet()) {\r\n\t\t String key = entry.getKey();\r\n\t\t String value = entry.getValue();\r\n\t\t content = content.replaceAll(key, value);\r\n\t\t }//end for\r\n\t \t\t \r\n\t\t File tempFile = new File(outputFilePath.toString());\r\n\t\t FileUtils.writeStringToFile(tempFile, content, \"UTF-8\");\r\n\t\t } catch (IOException exe) {\r\n\t\t //Simple exception handling, replace with what's necessary for your use case!\r\n\t\t throw new RuntimeException(\"ERROR - while generating ontology mutated file\", exe);\r\n\t\t }//end catch\t\t\r\n\t}", "title": "" }, { "docid": "1e1e129bae53bd744b91b6c5c633009b", "score": "0.5116581", "text": "public static void writeRDF(Model model, HttpServletResponse response, String xmlBase, String rdfKind, String relativeURIsProp) throws IOException, ServletException {\n\t\t\tif (\"N3\".equals(rdfKind) || (\"TURTLE\".equals(rdfKind))) {\n\t\t\t\tresponse.setContentType(\"text/rdf+n3; charset=UTF-8\"); \n\t\t\t} else if (\"JSON-LD\".equals(rdfKind)) {\n\t\t\t\tresponse.setContentType(\"application/ld+json; charset=UTF-8\"); \n\t\t\t} else {\n\t\t\t\tresponse.setContentType(\"application/rdf+xml; charset=UTF-8\"); // cf javadoc The given content type may include a character encoding specification, for example, text/html;charset=UTF-8\n\t\t\t\t// response.setContentType(\"text/xml\"); // cf javadoc The given content type may include a character encoding specification, for example, text/html;charset=UTF-8\n\t\t\t}\n\t\t\t\n\t\t\tRDFWriterUtil.writeRDF(model, response.getOutputStream(), xmlBase, rdfKind, relativeURIsProp);\n}", "title": "" }, { "docid": "cac45305c4d0621fce7d2e954e27a8a3", "score": "0.5106346", "text": "public void saveFile() {\n HttpSession session = UIBeanHelper.getSession();\n String url = UIBeanHelper.getRequest().getParameter(\"url\");\n \n try {\n GenomeSpaceFile file = GenomeSpaceManager.getFile(session, url);\n HttpServletResponse response = UIBeanHelper.getResponse();\n response.sendRedirect(file.getUrl().toString());\n \n } \n catch (Exception e) {\n log.error(\"Error saving file: \" + url + \"Message: \" + e.getMessage());\n }\n }", "title": "" }, { "docid": "461f3cb7124b779076f553a8b260a1ad", "score": "0.5102757", "text": "private void loadOntologyFile() {\n\n\t\tif (ontFile != null) {\n\t\t\ttry {\n\t\t\t\tObjectInputStream ins = new ObjectInputStream(\n\t\t\t\t\t\tnew FileInputStream(ontFile));\n\t\t\t\tList ontologyList = (ArrayList) ins.readObject();\n\t\t\t\tSystem.out.println(\"SWOOP Ontology loaded from \"\n\t\t\t\t\t\t+ ontFile.getName());\n\n\t\t\t\t// list contains a pair of items - ontology serialized in RDF/XML and its URI\n\t\t\t\tStringReader reader = new StringReader(ontologyList.get(0).toString());\n\t\t\t\tURI ontURI = new URI(ontologyList.get(1).toString());\n\t\t\t\tOWLOntology ont = swoopModel.loadOntologyInRDF(reader, ontURI);\n\t\t\t\t// add ontology to fileOntMap\n\t\t\t\tthis.fileOntMap.put(ont.getPhysicalURI(), ontFile);\n\t\t\t\t// add ontology to swoopmodel\n\t\t\t\tswoopModel.addOntology(ont);\n\n\t\t\t\t// load all ontology changes\n\t\t\t\tList ontChanges = (ArrayList) ins.readObject();\n\t\t\t\t//*** process based on how it was saved i.e. if the ontologychange is null, deserialize it from the rdfxml\n\t\t\t\tList uncommittedChanges = new ArrayList(swoopModel.getUncommittedChanges());\n\t\t\t\tList committedChanges = new ArrayList(swoopModel.getCommittedChanges());\n\t\t\t\tfor (int i = 0; i < ontChanges.size(); i++) {\n\t\t\t\t\tSwoopChange swc = (SwoopChange) ontChanges.get(i);\n\t\t\t\t\tif (swc.getChange() == null) {\n\t\t\t\t\t\t// deserialize change from rdf/xml string\n\t\t\t\t\t\tOntologyChangeRenderer ocRend = new OntologyChangeRenderer(changeLog);\n\t\t\t\t\t\tOWLOntology serOnt = swoopModel.loadOntologyInRDF(\n\t\t\t\t\t\t\t\tnew StringReader(swc.getRDFXML()), new URI(\"\"));\n\t\t\t\t\t\tList onlyChange = ocRend.deserializeOntologyChanges(serOnt);\n\t\t\t\t\t\tOntologyChange ontChange = (OntologyChange) onlyChange.iterator().next();\n\t\t\t\t\t\t// set ontologyChange object in SwoopChange\n\t\t\t\t\t\tswc.setChange(ontChange);\n\t\t\t\t\t\t// also add it to (un)committed change lists\n\t\t\t\t\t\tif (!swc.isCommitted())\n\t\t\t\t\t\t\tuncommittedChanges.add(ontChange);\n\t\t\t\t\t\telse\n\t\t\t\t\t\t\tcommittedChanges.add(ontChange);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tswoopModel.getChangesCache().putAllChanges(ontChanges);\n\t\t\t\tswoopModel.setUncommittedChanges(uncommittedChanges);\n\t\t\t\tswoopModel.setCommittedChanges(committedChanges);\n\n\t\t\t\t// load swoop annotation cache\n\t\t\t\tswoopModel.setAnnotationCache((SwoopCache) ins.readObject());\n\n\t\t\t\t// load annotated object uri's\n\t\t\t\tswoopModel.setAnnotatedObjectURIs((Set) ins.readObject());\n\n\t\t\t\tJOptionPane.showMessageDialog(this, \"Ontology File '\"\n\t\t\t\t\t\t+ ontFile.getName() + \"' Loaded Successfully\",\n\t\t\t\t\t\t\"File Loaded\", JOptionPane.INFORMATION_MESSAGE);\n\n\t\t\t\t// enable menu options\n\t\t\t\tthis.enableMenuOptions();\n\n\t\t\t} catch (Exception e) {\n\t\t\t\tJOptionPane.showMessageDialog(this,\n\t\t\t\t\t\t\"Error reading Ontology File '\" + ontFile.getName()\n\t\t\t\t\t\t\t\t+ \"'\", \"Load Error\", JOptionPane.ERROR_MESSAGE);\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "b8a5ebea26cf87f2977af7029c44c602", "score": "0.51013064", "text": "public void setOntology(org.mindswap.owl.OWLOntology ontology) {\r\n \tthis.ontology = ontology;\r\n }", "title": "" }, { "docid": "3d73b726406fe32da280023a7988fc05", "score": "0.5036593", "text": "void saveAttribute(Attribute attribute);", "title": "" }, { "docid": "c1e63184a4f5dfaface75568162afea5", "score": "0.5032835", "text": "public Resource save(Resource resource);", "title": "" }, { "docid": "fdcca406351d280412b5e9580164527f", "score": "0.5027168", "text": "@Override\n public void save() throws IOException {\n }", "title": "" }, { "docid": "7771b95da433ae67161456564be64384", "score": "0.5011072", "text": "public interface Note extends com.ibm.adtech.jastor.Thing {\n\t\n\t/**\n\t * The rdf:type for this ontology class\n */\n\tpublic static final Resource TYPE = ResourceFactory.createResource(\"http://foolme.csail.mit.edu/ns/saveface/Note.owl#Note\");\n\t\n\n\t/**\n\t * The Jena Property for message \n\t * <p>(URI: http://foolme.csail.mit.edu/ns/saveface/Note.owl#message)</p>\n\t * <br> \n\t */\n\tpublic static com.hp.hpl.jena.rdf.model.Property messageProperty = ResourceFactory.createProperty(\"http://foolme.csail.mit.edu/ns/saveface/Note.owl#message\");\n\n\n\t/**\n\t * The Jena Property for comment \n\t * <p>(URI: http://foolme.csail.mit.edu/ns/saveface/Note.owl#comment)</p>\n\t * <br> \n\t */\n\tpublic static com.hp.hpl.jena.rdf.model.Property commentProperty = ResourceFactory.createProperty(\"http://foolme.csail.mit.edu/ns/saveface/Note.owl#comment\");\n\n\n\t/**\n\t * The Jena Property for id \n\t * <p>(URI: http://foolme.csail.mit.edu/ns/saveface/Note.owl#id)</p>\n\t * <br> \n\t */\n\tpublic static com.hp.hpl.jena.rdf.model.Property idProperty = ResourceFactory.createProperty(\"http://foolme.csail.mit.edu/ns/saveface/Note.owl#id\");\n\n\n\t/**\n\t * The Jena Property for updatedTime \n\t * <p>(URI: http://foolme.csail.mit.edu/ns/saveface/Note.owl#updatedTime)</p>\n\t * <br> \n\t */\n\tpublic static com.hp.hpl.jena.rdf.model.Property updatedTimeProperty = ResourceFactory.createProperty(\"http://foolme.csail.mit.edu/ns/saveface/Note.owl#updatedTime\");\n\n\n\t/**\n\t * The Jena Property for subject \n\t * <p>(URI: http://foolme.csail.mit.edu/ns/saveface/Note.owl#subject)</p>\n\t * <br> \n\t */\n\tpublic static com.hp.hpl.jena.rdf.model.Property subjectProperty = ResourceFactory.createProperty(\"http://foolme.csail.mit.edu/ns/saveface/Note.owl#subject\");\n\n\n\t/**\n\t * The Jena Property for createdTime \n\t * <p>(URI: http://foolme.csail.mit.edu/ns/saveface/Note.owl#createdTime)</p>\n\t * <br> \n\t */\n\tpublic static com.hp.hpl.jena.rdf.model.Property createdTimeProperty = ResourceFactory.createProperty(\"http://foolme.csail.mit.edu/ns/saveface/Note.owl#createdTime\");\n\n\n\t/**\n\t * The Jena Property for likes \n\t * <p>(URI: http://foolme.csail.mit.edu/ns/saveface/Note.owl#likes)</p>\n\t * <br> \n\t */\n\tpublic static com.hp.hpl.jena.rdf.model.Property likesProperty = ResourceFactory.createProperty(\"http://foolme.csail.mit.edu/ns/saveface/Note.owl#likes\");\n\n\n\t/**\n\t * The Jena Property for icon \n\t * <p>(URI: http://foolme.csail.mit.edu/ns/saveface/Note.owl#icon)</p>\n\t * <br> \n\t */\n\tpublic static com.hp.hpl.jena.rdf.model.Property iconProperty = ResourceFactory.createProperty(\"http://foolme.csail.mit.edu/ns/saveface/Note.owl#icon\");\n\n\n\t/**\n\t * The Jena Property for from \n\t * <p>(URI: http://foolme.csail.mit.edu/ns/saveface/Note.owl#from)</p>\n\t * <br> \n\t */\n\tpublic static com.hp.hpl.jena.rdf.model.Property fromProperty = ResourceFactory.createProperty(\"http://foolme.csail.mit.edu/ns/saveface/Note.owl#from\");\n\n\n\n\n\t/**\n\t * Iterates through the 'message' property values. This Iteartor\n\t * may be used to remove all such values.\n\t * @return\t\t{@link java.util.Iterator} of {@link java.lang.String}\n\t * @see\t\t\t#messageProperty\n\t */\n\tpublic java.util.Iterator getMessage() throws com.ibm.adtech.jastor.JastorException;\n\n\t/**\n\t * Add a 'message' property value\n\t * @param\t\t{@link java.lang.String}, the value to add\n\t * @see\t\t\t#messageProperty\n\t */\n\tpublic void addMessage(java.lang.String message) throws com.ibm.adtech.jastor.JastorException;\n\t\n\t/**\n\t * Remove a 'message' property value. This method should not\n\t * be invoked while iterator through values. In that case, the remove() method of the Iterator\n\t * itself should be used.\n\t * @param\t\t{@link java.lang.String}, the value to remove\n\t * @see\t\t\t#messageProperty\n\t */\n\tpublic void removeMessage(java.lang.String message) throws com.ibm.adtech.jastor.JastorException;\n\n\t/**\n\t * Get an Iterator the 'comment' property values. This Iteartor\n\t * may be used to remove all such values.\n\t * @return\t\t{@link java.util.Iterator} of {@link com.ibm.adtech.jastor.Thing}\n\t * @see\t\t\t#commentProperty\n\t */\n\tpublic java.util.Iterator getComment() throws com.ibm.adtech.jastor.JastorException;\n\n\t/**\n\t * Adds a value for the 'comment' property\n\t * @param\t\tThe {@link com.ibm.adtech.jastor.Thing} to add\n\t * @see\t\t\t#commentProperty\n\t */\n\tpublic void addComment(com.ibm.adtech.jastor.Thing comment) throws com.ibm.adtech.jastor.JastorException;\n\t\n\t/**\n\t * Adds an anonymous value for the 'comment' property\n\t * @return\t\tThe anoymous {@link com.ibm.adtech.jastor.Thing} created\n\t * @see\t\t\t#commentProperty\n\t */\n\tpublic com.ibm.adtech.jastor.Thing addComment() throws com.ibm.adtech.jastor.JastorException;\n\t\n\t/**\n\t * \n\t * The resource argument have rdf:type http://www.w3.org/2000/01/rdf-schema#Resource. That is, this method\n\t * should not be used as a shortcut for creating new objects in the model.\n\t * @param\t\tThe {@link om.hp.hpl.jena.rdf.model.Resource} to add\n\t * @see\t\t\t#commentProperty\n\t */\n\tpublic com.ibm.adtech.jastor.Thing addComment(com.hp.hpl.jena.rdf.model.Resource resource) throws com.ibm.adtech.jastor.JastorException;\n\t\n\t/**\n\t * Removes a value for the 'comment' property. This method should not\n\t * be invoked while iterator through values. In that case, the remove() method of the Iterator\n\t * itself should be used.\n\t * @param\t\tThe {@link com.ibm.adtech.jastor.Thing} to remove\n\t * @see\t\t\t#commentProperty\n\t */\n\tpublic void removeComment(com.ibm.adtech.jastor.Thing comment) throws com.ibm.adtech.jastor.JastorException;\n\t\t\n\t/**\n\t * Iterates through the 'id' property values. This Iteartor\n\t * may be used to remove all such values.\n\t * @return\t\t{@link java.util.Iterator} of {@link java.lang.String}\n\t * @see\t\t\t#idProperty\n\t */\n\tpublic java.util.Iterator getId() throws com.ibm.adtech.jastor.JastorException;\n\n\t/**\n\t * Add a 'id' property value\n\t * @param\t\t{@link java.lang.String}, the value to add\n\t * @see\t\t\t#idProperty\n\t */\n\tpublic void addId(java.lang.String id) throws com.ibm.adtech.jastor.JastorException;\n\t\n\t/**\n\t * Remove a 'id' property value. This method should not\n\t * be invoked while iterator through values. In that case, the remove() method of the Iterator\n\t * itself should be used.\n\t * @param\t\t{@link java.lang.String}, the value to remove\n\t * @see\t\t\t#idProperty\n\t */\n\tpublic void removeId(java.lang.String id) throws com.ibm.adtech.jastor.JastorException;\n\n\t/**\n\t * Iterates through the 'updatedTime' property values. This Iteartor\n\t * may be used to remove all such values.\n\t * @return\t\t{@link java.util.Iterator} of {@link com.hp.hpl.jena.datatypes.xsd.XSDDateTime}\n\t * @see\t\t\t#updatedTimeProperty\n\t */\n\tpublic java.util.Iterator getUpdatedTime() throws com.ibm.adtech.jastor.JastorException;\n\n\t/**\n\t * Add a 'updatedTime' property value\n\t * @param\t\t{@link com.hp.hpl.jena.datatypes.xsd.XSDDateTime}, the value to add\n\t * @see\t\t\t#updatedTimeProperty\n\t */\n\tpublic void addUpdatedTime(com.hp.hpl.jena.datatypes.xsd.XSDDateTime updatedTime) throws com.ibm.adtech.jastor.JastorException;\n\t\n\t/**\n\t * Remove a 'updatedTime' property value. This method should not\n\t * be invoked while iterator through values. In that case, the remove() method of the Iterator\n\t * itself should be used.\n\t * @param\t\t{@link com.hp.hpl.jena.datatypes.xsd.XSDDateTime}, the value to remove\n\t * @see\t\t\t#updatedTimeProperty\n\t */\n\tpublic void removeUpdatedTime(com.hp.hpl.jena.datatypes.xsd.XSDDateTime updatedTime) throws com.ibm.adtech.jastor.JastorException;\n\n\t/**\n\t * Iterates through the 'subject' property values. This Iteartor\n\t * may be used to remove all such values.\n\t * @return\t\t{@link java.util.Iterator} of {@link java.lang.String}\n\t * @see\t\t\t#subjectProperty\n\t */\n\tpublic java.util.Iterator getSubject() throws com.ibm.adtech.jastor.JastorException;\n\n\t/**\n\t * Add a 'subject' property value\n\t * @param\t\t{@link java.lang.String}, the value to add\n\t * @see\t\t\t#subjectProperty\n\t */\n\tpublic void addSubject(java.lang.String subject) throws com.ibm.adtech.jastor.JastorException;\n\t\n\t/**\n\t * Remove a 'subject' property value. This method should not\n\t * be invoked while iterator through values. In that case, the remove() method of the Iterator\n\t * itself should be used.\n\t * @param\t\t{@link java.lang.String}, the value to remove\n\t * @see\t\t\t#subjectProperty\n\t */\n\tpublic void removeSubject(java.lang.String subject) throws com.ibm.adtech.jastor.JastorException;\n\n\t/**\n\t * Iterates through the 'createdTime' property values. This Iteartor\n\t * may be used to remove all such values.\n\t * @return\t\t{@link java.util.Iterator} of {@link com.hp.hpl.jena.datatypes.xsd.XSDDateTime}\n\t * @see\t\t\t#createdTimeProperty\n\t */\n\tpublic java.util.Iterator getCreatedTime() throws com.ibm.adtech.jastor.JastorException;\n\n\t/**\n\t * Add a 'createdTime' property value\n\t * @param\t\t{@link com.hp.hpl.jena.datatypes.xsd.XSDDateTime}, the value to add\n\t * @see\t\t\t#createdTimeProperty\n\t */\n\tpublic void addCreatedTime(com.hp.hpl.jena.datatypes.xsd.XSDDateTime createdTime) throws com.ibm.adtech.jastor.JastorException;\n\t\n\t/**\n\t * Remove a 'createdTime' property value. This method should not\n\t * be invoked while iterator through values. In that case, the remove() method of the Iterator\n\t * itself should be used.\n\t * @param\t\t{@link com.hp.hpl.jena.datatypes.xsd.XSDDateTime}, the value to remove\n\t * @see\t\t\t#createdTimeProperty\n\t */\n\tpublic void removeCreatedTime(com.hp.hpl.jena.datatypes.xsd.XSDDateTime createdTime) throws com.ibm.adtech.jastor.JastorException;\n\n\t/**\n\t * Get an Iterator the 'likes' property values. This Iteartor\n\t * may be used to remove all such values.\n\t * @return\t\t{@link java.util.Iterator} of {@link com.ibm.adtech.jastor.Thing}\n\t * @see\t\t\t#likesProperty\n\t */\n\tpublic java.util.Iterator getLikes() throws com.ibm.adtech.jastor.JastorException;\n\n\t/**\n\t * Adds a value for the 'likes' property\n\t * @param\t\tThe {@link com.ibm.adtech.jastor.Thing} to add\n\t * @see\t\t\t#likesProperty\n\t */\n\tpublic void addLikes(com.ibm.adtech.jastor.Thing likes) throws com.ibm.adtech.jastor.JastorException;\n\t\n\t/**\n\t * Adds an anonymous value for the 'likes' property\n\t * @return\t\tThe anoymous {@link com.ibm.adtech.jastor.Thing} created\n\t * @see\t\t\t#likesProperty\n\t */\n\tpublic com.ibm.adtech.jastor.Thing addLikes() throws com.ibm.adtech.jastor.JastorException;\n\t\n\t/**\n\t * \n\t * The resource argument have rdf:type http://www.w3.org/2000/01/rdf-schema#Resource. That is, this method\n\t * should not be used as a shortcut for creating new objects in the model.\n\t * @param\t\tThe {@link om.hp.hpl.jena.rdf.model.Resource} to add\n\t * @see\t\t\t#likesProperty\n\t */\n\tpublic com.ibm.adtech.jastor.Thing addLikes(com.hp.hpl.jena.rdf.model.Resource resource) throws com.ibm.adtech.jastor.JastorException;\n\t\n\t/**\n\t * Removes a value for the 'likes' property. This method should not\n\t * be invoked while iterator through values. In that case, the remove() method of the Iterator\n\t * itself should be used.\n\t * @param\t\tThe {@link com.ibm.adtech.jastor.Thing} to remove\n\t * @see\t\t\t#likesProperty\n\t */\n\tpublic void removeLikes(com.ibm.adtech.jastor.Thing likes) throws com.ibm.adtech.jastor.JastorException;\n\t\t\n\t/**\n\t * Iterates through the 'icon' property values. This Iteartor\n\t * may be used to remove all such values.\n\t * @return\t\t{@link java.util.Iterator} of {@link java.lang.String}\n\t * @see\t\t\t#iconProperty\n\t */\n\tpublic java.util.Iterator getIcon() throws com.ibm.adtech.jastor.JastorException;\n\n\t/**\n\t * Add a 'icon' property value\n\t * @param\t\t{@link java.lang.String}, the value to add\n\t * @see\t\t\t#iconProperty\n\t */\n\tpublic void addIcon(java.lang.String icon) throws com.ibm.adtech.jastor.JastorException;\n\t\n\t/**\n\t * Remove a 'icon' property value. This method should not\n\t * be invoked while iterator through values. In that case, the remove() method of the Iterator\n\t * itself should be used.\n\t * @param\t\t{@link java.lang.String}, the value to remove\n\t * @see\t\t\t#iconProperty\n\t */\n\tpublic void removeIcon(java.lang.String icon) throws com.ibm.adtech.jastor.JastorException;\n\n\t/**\n\t * Get an Iterator the 'from' property values. This Iteartor\n\t * may be used to remove all such values.\n\t * @return\t\t{@link java.util.Iterator} of {@link com.ibm.adtech.jastor.Thing}\n\t * @see\t\t\t#fromProperty\n\t */\n\tpublic java.util.Iterator getFrom() throws com.ibm.adtech.jastor.JastorException;\n\n\t/**\n\t * Adds a value for the 'from' property\n\t * @param\t\tThe {@link com.ibm.adtech.jastor.Thing} to add\n\t * @see\t\t\t#fromProperty\n\t */\n\tpublic void addFrom(com.ibm.adtech.jastor.Thing from) throws com.ibm.adtech.jastor.JastorException;\n\t\n\t/**\n\t * Adds an anonymous value for the 'from' property\n\t * @return\t\tThe anoymous {@link com.ibm.adtech.jastor.Thing} created\n\t * @see\t\t\t#fromProperty\n\t */\n\tpublic com.ibm.adtech.jastor.Thing addFrom() throws com.ibm.adtech.jastor.JastorException;\n\t\n\t/**\n\t * \n\t * The resource argument have rdf:type http://www.w3.org/2000/01/rdf-schema#Resource. That is, this method\n\t * should not be used as a shortcut for creating new objects in the model.\n\t * @param\t\tThe {@link om.hp.hpl.jena.rdf.model.Resource} to add\n\t * @see\t\t\t#fromProperty\n\t */\n\tpublic com.ibm.adtech.jastor.Thing addFrom(com.hp.hpl.jena.rdf.model.Resource resource) throws com.ibm.adtech.jastor.JastorException;\n\t\n\t/**\n\t * Removes a value for the 'from' property. This method should not\n\t * be invoked while iterator through values. In that case, the remove() method of the Iterator\n\t * itself should be used.\n\t * @param\t\tThe {@link com.ibm.adtech.jastor.Thing} to remove\n\t * @see\t\t\t#fromProperty\n\t */\n\tpublic void removeFrom(com.ibm.adtech.jastor.Thing from) throws com.ibm.adtech.jastor.JastorException;\n\t\t\n}", "title": "" }, { "docid": "a11c3c6f9a16e79d9110fd5e37952de2", "score": "0.49366987", "text": "public void save() throws IOException {\n save(filename);\n }", "title": "" }, { "docid": "84fc82907b41e3295f0b51a37d49e7d0", "score": "0.49253127", "text": "void save(DriverCarLinkDO driverCarLinkDO);", "title": "" }, { "docid": "8963edd1c823bcf228308a2ca719e7c2", "score": "0.49166948", "text": "int saveProjectOntology(final Workbook workbook, final String programUUID, final CropType crop)\n\t\t\tthrows MiddlewareQueryException;", "title": "" }, { "docid": "d102ec0f636a017644176cf7670acc49", "score": "0.49077806", "text": "public void saveToFile(String filename) throws IOException {\r\n FileOutputStream fos = new FileOutputStream(filename);\r\n ObjectOutputStream oos = new ObjectOutputStream(fos);\r\n oos.writeObject(shapeList);\r\n oos.close();\r\n fos.close();\r\n }", "title": "" }, { "docid": "948d769b12f921b509cad9095c8cdd9e", "score": "0.48984033", "text": "public static void save( Workspace workspace ) throws IOException {\r\n\t\t\r\n\t\tFileWriter out = new FileWriter( getConfFile( workspace.getReference() ) );\r\n\t\t\r\n\t\tout.write( workspace.toString() );\r\n\t\t\r\n\t\tout.close();\r\n\t\t\r\n\t}", "title": "" }, { "docid": "c97a10b67131a13ddcedf745346057a9", "score": "0.48974624", "text": "public void save(Torrent torrent) throws IOException;", "title": "" }, { "docid": "1f134af4099fe8a7e63162c129280f66", "score": "0.4896796", "text": "void saveFullStory(Story fullStory);", "title": "" }, { "docid": "9cadeddfca21df1eb408f784d76763f9", "score": "0.48913655", "text": "public void save() {\n\t\tsave(getDefaultPath());\n\t}", "title": "" }, { "docid": "d2094e579a7aef04dbbb987b83bd713a", "score": "0.48857144", "text": "public void saveObvestila(Obvestila obvestila);", "title": "" }, { "docid": "1362700fdae215b7a43652afbb8e4d2c", "score": "0.48808345", "text": "public boolean saveMapping(int iterations, String[] vocabularyRules, String vocabularyURL);", "title": "" }, { "docid": "b9f8ba17f51f138c713712953eef1da7", "score": "0.48798642", "text": "protected void saveAs() throws IOException {\n\t\tJFileChooser chooser = new JFileChooser(associatedFile != null? associatedFile.getPath() : \".\");\n\t\tchooser.setFileFilter(XMLToolbox.xmlFilter);\n\t\tint ans = chooser.showSaveDialog(this);\n\t\tif(ans == JFileChooser.APPROVE_OPTION) {\n\t\t\t//Ask for confirmation before overwriting\n\t\t\tif(chooser.getSelectedFile().exists()) {\n\t\t\t\tint res = JOptionPane.showConfirmDialog(this, loader.getString(\"fs.global.confirmoverwrite\", languageID,chooser.getSelectedFile().getAbsolutePath()),\n\t\t\t\t\t\t\t\t\tloader.getString(\"fs.global.confirmtitle\", languageID),JOptionPane.YES_NO_CANCEL_OPTION);\n\t\t\t\tswitch(res) {\n\t\t\t\tcase JOptionPane.CANCEL_OPTION: \n\t\t\t\tcase JOptionPane.NO_OPTION:\n\t\t\t\t\treturn; //Abort\n\t\t\t\t}\n\t\t\t}\n\t\t\t//Now save\n\t\t\tassociatedFile = chooser.getSelectedFile();\n\t\t\tsaveTable();\n\t\t}\n\t}", "title": "" }, { "docid": "3bd19c1eb86324865f3244acb80393c4", "score": "0.4870887", "text": "@Override\r\n public void doSaveAs() {\r\n doSave(true, null);\r\n }", "title": "" }, { "docid": "93022511cd2444976962df7361918d6d", "score": "0.48637563", "text": "private void saveFile(){\n //metodo per il salvataggio del Documento\n try { //try - catch\n FileWriter out = new FileWriter(new File(path, className + classExtention)); //crea il file con un filewriter\n out.write(EditorPannel.getText()); //vi inserisce il testo\n out.close(); //chiude il filewriter \n changed = false; //il documento non ha subito modifiche\n } catch (IOException ex) {\n JOptionPane p = new JOptionPane(\"errore nel salvataggio del file\");\n }\n TreeNavigator.setModel(new FileSystemModel(new File(workspace))); //resetta il navigatore\n }", "title": "" }, { "docid": "008bf75ce82d1e7f9c77b2ca649ae3c3", "score": "0.4862238", "text": "public void saveWorkspace(boolean displaySuccess, boolean overwrite) {\n\n\t\tif (wkspcFile != null) {\n\t\t\ttry {\n\t\t\t\tif (!(wkspcFile.getName().endsWith(\".swp\"))\n\t\t\t\t\t\t&& !(wkspcFile.getName().endsWith(\".SWP\"))) {\n\t\t\t\t\twkspcFile = new File(wkspcFile.getAbsolutePath() + \".swp\");\n\t\t\t\t}\n\n\t\t\t\t// prompt user if overwriting\n\t\t\t\tif (wkspcFile.exists() && overwrite) {\n\t\t\t\t\tint result = JOptionPane.showConfirmDialog(this, \"Saving File at \" + wkspcFile.getAbsolutePath() + \". Overwrite?\", \"Save Workspace\", JOptionPane.YES_NO_OPTION);\n\t\t\t\t\tif (result != JOptionPane.YES_OPTION) return;\n\t\t\t\t}\t\t\t\t\n\t\t\t\t\n\t\t\t\t// save all ontologies in workspace to disk\n\t\t\t\t// since Java serialization is not working because of the equals problem in the OWL-API\n\t\t\t\t// we now serialize each ontology into its RDF/XML string\n\t\t\t\t// and save a list of ontology strings\n\t\t\t\t// Also save a list of ontURIs with it\n\t\t\t\tList ontRDFList = new ArrayList(); // list of ontology strings (serialized as RDF/XML)\n\t\t\t\tList ontURIList = new ArrayList(); // corresponding list of ontology URIs\n\t\t\t\tObjectOutputStream outs = new ObjectOutputStream(\n\t\t\t\t\t\tnew FileOutputStream(wkspcFile));\n\t\t\t\tIterator iter = swoopModel.getOntologies().iterator();\n\n\t\t\t\t// also save imported information in a separate change list\n\t\t\t\tList importChanges = new ArrayList();\n\n\t\t\t\twhile (iter.hasNext()) {\n\t\t\t\t\tOWLOntology ont = (OWLOntology) iter.next();\n\t\t\t\t\tontURIList.add(ont.getURI().toString());\n\t\t\t\t\tCorrectedRDFRenderer rend = new CorrectedRDFRenderer();\n\t\t\t\t\tStringWriter st = new StringWriter();\n\t\t\t\t\trend.renderOntology(ont, st);\n\t\t\t\t\tontRDFList.add(st.getBuffer().toString());\n\n\t\t\t\t\t// also add imports information to importChanges\n\t\t\t\t\tfor (Iterator impOntIter = ont.getIncludedOntologies().iterator(); impOntIter.hasNext();) {\n\t\t\t\t\t\tOWLOntology impOnt = (OWLOntology) impOntIter.next();\n\t\t\t\t\t\tImportChange change = new ImportChange(ont.getURI(),impOnt.getURI());\n\t\t\t\t\t\timportChanges.add(change);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\touts.writeObject(ontRDFList);\n\t\t\t\touts.writeObject(ontURIList);\n\n\t\t\t\t//*** Since saving/reloading imported ontologies is funky because of the logical vs physical URI discrepancy\n\t\t\t\t// its best to save the import changes separately and during the reloading phase\n\t\t\t\t// turn OFF imports while parsing and apply the imports changes in the end\n\t\t\t\touts.writeObject(importChanges);\n\n\t\t\t\t// save all changes from swoopModel\n\t\t\t\tMap changeMap = swoopModel.getChangesCache().getChangeMap();\n\t\t\t\tMap tempChangeMap = new HashMap();\n\t\t\t\t//*** while saving changes, you need to remove OntologyChange objects where problematic\n\t\t\t\t// and serialize them into RDF/XML (this is applicable for NON CHECKPOINT changes)\n\t\t\t\tfor (Iterator iter2 = changeMap.values().iterator(); iter2\n\t\t\t\t\t\t.hasNext();) {\n\t\t\t\t\tArrayList list = (ArrayList) iter2.next();\n\t\t\t\t\tfor (Iterator iter3 = list.iterator(); iter3.hasNext();) {\n\t\t\t\t\t\tSwoopChange swc = (SwoopChange) iter3.next();\n\t\t\t\t\t\tif (!swc.isCheckpointRelated()) {\n\t\t\t\t\t\t\t// serialize into RDF/XML if it hasnt been generated already\n\t\t\t\t\t\t\tif (swc.getRDFXML() == null\n\t\t\t\t\t\t\t\t\t|| swc.getRDFXML().equals(\"\")) {\n\t\t\t\t\t\t\t\tOntologyChangeRenderer ocRend = new OntologyChangeRenderer(changeLog);\n\t\t\t\t\t\t\t\tList onlyChange = new ArrayList();\n\t\t\t\t\t\t\t\tonlyChange.add(swc.getChange());\n\t\t\t\t\t\t\t\tOWLOntology serOnt = ocRend.serializeOntologyChanges(onlyChange);\n\t\t\t\t\t\t\t\tCorrectedRDFRenderer rdfRend = new CorrectedRDFRenderer();\n\t\t\t\t\t\t\t\tStringWriter st = new StringWriter();\n\t\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\t\trdfRend.renderOntology(serOnt, st);\n\t\t\t\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tswc.setRDFXML(st.toString());\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t// nullify ontology change TEMPORARILY\n\t\t\t\t\t\t\tOntologyChange ch = swc.getChange();\n\t\t\t\t\t\t\tswc.setChange(null);\n\t\t\t\t\t\t\ttempChangeMap.put(swc, ch);\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\touts.writeObject(changeMap);\n\t\t\t\t// restore tempChangeMap\n\t\t\t\tfor (Iterator t = tempChangeMap.keySet().iterator(); t.hasNext();) {\n\t\t\t\t\tSwoopChange swc = (SwoopChange) t.next();\n\t\t\t\t\tswc.setChange((OntologyChange) tempChangeMap.get(swc));\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t// write swoop annotation cache\n\t\t\t\touts.writeObject(swoopModel.getAnnotationCache());\n\n\t\t\t\t// write annotated object uri's\n\t\t\t\touts.writeObject(swoopModel.getAnnotatedObjectURIs());\n\n\t\t\t\t//System.out.println(\"SWOOP Workspace saved in \"+wkspcFile.getName());\n\t\t\t\tif (displaySuccess)\n\t\t\t\t\tJOptionPane.showMessageDialog(this, \"Workspace File '\"\n\t\t\t\t\t\t\t+ wkspcFile.getName() + \"' Saved Successfully\",\n\t\t\t\t\t\t\t\"File Saved\", JOptionPane.INFORMATION_MESSAGE);\n\t\t\t\touts.close();\n\t\t\t} catch (Exception e) {\n\t\t\t\tJOptionPane.showMessageDialog(this,\n\t\t\t\t\t\t\"Error writing Workspace File '\" + wkspcFile.getName()\n\t\t\t\t\t\t\t\t+ \"'\", \"Save Error\", JOptionPane.ERROR_MESSAGE);\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "3829751b2f5ffd3371c18aa8f13d536f", "score": "0.4849055", "text": "public void saveDoc() {\n try {\n // Create technical objects\n org.w3c.dom.Document doc = Framework.newDoc();\n\n // Root\n Node root = doc.createElement(\"calendar\");\n doc.insertBefore(root, doc.getLastChild());\n\n // List\n String list = \"\";\n if (!main.bWeather.isSelected()) list += \"Log Weather,\";\n if (!main.bLocs.isSelected()) list += \"Log Locations,\";\n if (!main.bCalendar.isSelected()) list += \"Log Events,\";\n if (!main.bDate.isSelected()) list += \"Log Date,\";\n if (!main.bTime.isSelected()) list += \"Log Time,\";\n if (list.length() > 0) {\n org.w3c.dom.Element eltypes = doc.createElement(\"types\");\n eltypes.setAttribute(\"list\", list.substring(0,list.length() - 1));\n org.w3c.dom.Element eltype = doc.createElement(\"test\");\n root.insertBefore(eltypes, null);\n eltypes.insertBefore(eltype, null);\n }\n\n // Write the document to the file\n File file = new File(main.myPath + \"state.xml\");\n Framework.backup(main.myPath + \"state.xml\");\n Result result = new StreamResult(file);\n\n Framework.transform(doc, result, null);\n }\n\tcatch (Exception e) {\n\t // Debugging\n e.printStackTrace();\n }\n }", "title": "" }, { "docid": "551da4fe615e310d902c1a5443072995", "score": "0.48407376", "text": "public static void save(WorkBook w, OutputStream o) {\r\n WorkbookSerializer.save(w, o);\r\n \t}", "title": "" }, { "docid": "492dd6c533ee09b6ffd1e7a6b887d678", "score": "0.483346", "text": "void save(String filename)\n\t{\n Json ob = marshall();// marshall method in this class\n ob.save(filename);\n\t}", "title": "" }, { "docid": "79ec5a2d3819799dbf470dbeb8774a32", "score": "0.48304242", "text": "public void importOWLInDB() {\r\n\t\tsetStatus(GUIConstants.SAVE_SCHEMA_DB);\r\n\t\tSaveToDBThread saveSchema = new SaveToDBThread(mainWindow, this,\r\n\t\t\t\tSaveToDBThread.STATE_IMPORT_OWL_URI);\r\n\t\tsaveSchema.start();\r\n\t}", "title": "" }, { "docid": "e5c2e769492dda81c7140399a120b0e3", "score": "0.4826313", "text": "public void save(Disciplina entidade) {\n\t\t\t\r\n\t\t}", "title": "" }, { "docid": "dd128877c611cacfd51d40b548f3df53", "score": "0.481944", "text": "@PUT\r\n @Consumes(Constants.ANNOTATION_MIME_TYPE)\r\n public Response updateAnnotation(@PathParam(\"ro_id\") String researchObjectId,\r\n @PathParam(\"filePath\") String filePath, @QueryParam(\"original\") String original, InputStream content)\r\n throws AccessDeniedException, DigitalLibraryException, NotFoundException, BadRequestException {\r\n URI uri = uriInfo.getBaseUriBuilder().path(\"ROs\").path(researchObjectId).path(\"/\").build();\r\n ResearchObject researchObject = ResearchObject.create(uri);\r\n URI resource = uriInfo.getAbsolutePath();\r\n URI body;\r\n List<URI> targets = new ArrayList<>();\r\n OntModel model = ModelFactory.createOntologyModel(OntModelSpec.OWL_MEM);\r\n model.read(content, researchObject.getUri().toString());\r\n ExtendedIterator<Individual> it = model.listIndividuals(RO.AggregatedAnnotation);\r\n if (it.hasNext()) {\r\n Individual aggregatedAnnotation = it.next();\r\n NodeIterator it2 = aggregatedAnnotation.listPropertyValues(AO.body);\r\n if (it2.hasNext()) {\r\n RDFNode bodyResource = it2.next();\r\n if (bodyResource.isURIResource()) {\r\n try {\r\n body = new URI(bodyResource.asResource().getURI());\r\n } catch (URISyntaxException e) {\r\n throw new BadRequestException(\"Wrong body resource URI\", e);\r\n }\r\n } else {\r\n throw new BadRequestException(\"The body is not an URI resource.\");\r\n }\r\n } else {\r\n throw new BadRequestException(\"The ro:AggregatedAnnotation does not have a ao:body property.\");\r\n }\r\n it2 = aggregatedAnnotation.listPropertyValues(AO.annotatesResource);\r\n while (it2.hasNext()) {\r\n RDFNode targetResource = it2.next();\r\n if (targetResource.isURIResource()) {\r\n try {\r\n targets.add(new URI(targetResource.asResource().getURI()));\r\n } catch (URISyntaxException e) {\r\n throw new BadRequestException(\"Wrong target resource URI\", e);\r\n }\r\n } else {\r\n throw new BadRequestException(\"The target is not an URI resource.\");\r\n }\r\n }\r\n } else {\r\n throw new BadRequestException(\"The entity body does not define any ro:AggregatedAnnotation.\");\r\n }\r\n \r\n if (!ROSRService.SMS.get().isAnnotation(researchObject, resource)) {\r\n throw new ForbiddenException(\"You cannot create a new annotation using PUT, use POST instead.\");\r\n }\r\n return ROSRService.updateAnnotation(researchObject, resource, body, targets);\r\n }", "title": "" }, { "docid": "0854f2a69907f1b343bc3bd747f23ab1", "score": "0.48119175", "text": "public void save(final Document document)\n throws IOException \n {\n final Writer out_file = document.getWriter();\n writeToStream(out_file);\n out_file.close();\n\n last_change_time = null;\n }", "title": "" }, { "docid": "9f2be34e3bf28ecac6c75df439f1fbfa", "score": "0.48073754", "text": "public abstract File save(String path);", "title": "" }, { "docid": "f5f2562b5b3d2e578ea5fdb76ba8d7ef", "score": "0.479865", "text": "public void save (String id, T1 zahtev) throws Exception {\n String collectionId = this.COLLECTION_ID;\n String documentId = id;\n\n // initialize database driver\n Class<?> cl = DatabaseImpl.class;\n\n // encapsulation of the database driver functionality\n Database database = (Database) cl.newInstance();\n database.setProperty(\"create-database\", \"true\");\n\n // entry point for the API which enables you to get the Collection reference\n DatabaseManager.registerDatabase(database);\n\n // a collection of Resources stored within an XML database\n Collection col = null;\n XMLResource res = null;\n OutputStream os = new ByteArrayOutputStream();\n\n try {\n\n System.out.println(\"[INFO] Retrieving the collection: \" + collectionId);\n col = getOrCreateCollection(collectionId);\n\n /*\n * create new XMLResource with a given id\n * an id is assigned to the new resource if left empty (null)\n */\n System.out.println(\"[INFO] Inserting the document: \" + documentId);\n res = (XMLResource) col.createResource(documentId, XMLResource.RESOURCE_TYPE);\n\n System.out.println(\"[INFO] Unmarshalling XML document to an JAXB instance: \");\n JAXBContext context = JAXBContext.newInstance(this.INSTANCE_PATH);\n\n Marshaller marshaller = context.createMarshaller();\n marshaller.setProperty(Marshaller.JAXB_FORMATTED_OUTPUT, Boolean.TRUE);\n\n // marshal the contents to an output stream\n marshaller.marshal(zahtev, os);\n\n // link the stream to the XML resource\n res.setContent(os);\n System.out.println(\"[INFO] Storing the document: \" + res.getId());\n\n col.storeResource(res);\n System.out.println(\"[INFO] Done.\");\n\n ByteArrayOutputStream rdfOutputStream = new ByteArrayOutputStream();\n marshaller.marshal(zahtev, rdfOutputStream);\n\n saveRDF(new ByteArrayInputStream(rdfOutputStream.toByteArray()));\n\n } finally {\n\n //don't forget to cleanup\n if(res != null) {\n try {\n ((EXistResource)res).freeResources();\n } catch (XMLDBException xe) {\n xe.printStackTrace();\n }\n }\n\n if(col != null) {\n try {\n col.close();\n } catch (XMLDBException xe) {\n xe.printStackTrace();\n }\n }\n }\n }", "title": "" }, { "docid": "5fec5c47edd7781fb3a828a3af8fd0ac", "score": "0.47813985", "text": "public abstract void save();", "title": "" }, { "docid": "b300259e4042e125c2b7079c19c7d512", "score": "0.4774165", "text": "public void toFile (String _path) throws IOException{\n\t\tGson gson = new Gson () ; \n\t\tBufferedWriter out = new BufferedWriter(new OutputStreamWriter(new FileOutputStream(_path)));\n\t\tout.newLine();\n\t\tString json = gson.toJson(modelInstance , TrainedMLModel.class);\n\t\tout.write(json);\n\t\tout.close(); \n\t\tSystem.out.println(\"Save \"+_path);\n\t}", "title": "" }, { "docid": "94f03cc173c33b5c00cdd37a39ad3616", "score": "0.47640368", "text": "@Override\r\n protected synchronized void save() throws IOException {\r\n if (!source.getProtocol().equals(\"file\")) {\r\n throw new UnsupportedOperationException(\"source is not a physical file\");\r\n }\r\n\r\n try {\r\n writer = new PrintWriter(new FileWriter(Helper.decodeURL(source.getFile())));\r\n char listDelimiter = getListDelimiter();\r\n if (listDelimiter != ';') {\r\n writer.print(\"ListDelimiter=\");\r\n writer.println(listDelimiter);\r\n }\r\n // Write \"IsRefreshable\" flag (NEW in 2.2)\r\n Boolean refreshable = isRefreshable();\r\n if (refreshable != null) {\r\n writer.print(\"IsRefreshable=\");\r\n writer.println(refreshable.toString());\r\n }\r\n\r\n writeProperty(getRoot(), \"\");\r\n } finally {\r\n // Close the writer\r\n Helper.closeObj(writer);\r\n }\r\n }", "title": "" }, { "docid": "5588c7aefbd29744079102ebf5cb9df1", "score": "0.4755619", "text": "public void saveFile(EditMode thisEditMode)\r\n {\r\n \r\n this.thisEditMode = thisEditMode;\r\n this.startingNode = thisEditMode.getStartNode();\r\n if (startingNode == null)\r\n {\r\n System.out.println(\"No UML detected for saving.\");\r\n return;\r\n }\r\n System.out.println(\"Generating a list of nodes...\");\r\n Node[] nodeList = this.generateNodeList();\r\n System.out.println(\"Found \" + nodeList.length + \" nodes.\");\r\n System.out.print(\"Mapping nodes...\");\r\n HashMap<Node, Integer> nodeMap = this.convertNodeListToMap(nodeList);\r\n System.out.println(\"done.\");\r\n System.out.println(\"Writing to file.\");\r\n try\r\n {\r\n this.saveToFile(nodeList, nodeMap);\r\n }\r\n catch (IOException e)\r\n {\r\n System.out.println(\"Error.\");\r\n }\r\n \r\n }", "title": "" }, { "docid": "f49cc812f2db31afec7a569cf8f44a81", "score": "0.4753653", "text": "public abstract boolean saveModel(OutputStream out);", "title": "" }, { "docid": "12b2132c1060959ca9ad63706c271371", "score": "0.47515205", "text": "public void save() {\n\t}", "title": "" }, { "docid": "27e9274a2d3450ea87e175d6f781d406", "score": "0.4745228", "text": "public void loadOntologyFromPhysicalURI(URI uri) throws OWLOntologyCreationException {\n // Obtain the actual ontology URI. This is probably the xml:base\n URI ontologyURI = new OntologyURIExtractor(uri).getOntologyURI();\n // Set up a mapping from the ontology URI to the physical URI\n manager.addURIMapper(new SimpleURIMapper(ontologyURI, uri));\n if (uri.getScheme().equals(\"file\")) {\n // Load the URIs of other ontologies that are contained in the\n // same folder.\n addRootFolder(uri);\n //loadOntologyURIMap(new File(uri).getParentFile());\n }\n // Delegate to the load method using the URI of the ontology\n loadOntology(ontologyURI);\n \n owlModelManagerDescriptor = new OWLModelManagerDescriptor(uri);\n }", "title": "" }, { "docid": "01f032e4ea09ce140e60b99327e85d8c", "score": "0.4738588", "text": "@PUT\n @Path(\"{scheme}\")\n @Consumes(\"application/xml,application/json\")\n public void saveScheme(@PathParam(\"scheme\") String scheme,\n @PathParam(\"id\") String id,\n @PathParam(\"sectionId\") String sectionId,\n @QueryParam(\"exact\") boolean exact,\n @QueryParam(\"readinglevel\") int readinglevel,\n @QueryParam(\"aliasurlid\") String aliasUrlId,\n @HeaderParam(\"Accept-Language\") String language,\n Section inputSection )\n {\n\n }", "title": "" }, { "docid": "319379a5bb6dbca6d1bd13716ca68d34", "score": "0.47369605", "text": "public void store() throws IOException\n {\n if ( m_databaseDocument != null )\n {\n XStorable storeDoc = (XStorable)UnoRuntime.queryInterface( XStorable.class,\n m_databaseDocument );\n storeDoc.store();\n }\n }", "title": "" }, { "docid": "302a7fa00657ec34d84170a2681ccb40", "score": "0.4730754", "text": "public void save() {\n\t\t}", "title": "" }, { "docid": "ce61a627cb881c4f000b3cc0a522dcb2", "score": "0.47243735", "text": "public void save() {\n }", "title": "" }, { "docid": "0dfd0b734c3fb3e956f11663099556e7", "score": "0.4719537", "text": "@Test\n public void testOntologyImport() {\n OntModel model = ModelFactory.createOntologyModel();\n // Create an ontology\n Ontology ont = model.createOntology(null);\n ont.addImport(model.createResource(\"http://ontology.chigix.com/import1\"));\n ont.addImport(model.createResource(\"http://ontology.chigix.com/import2\"));\n\n ByteArrayOutputStream baos = new ByteArrayOutputStream();\n model.write(baos);\n assertThat(baos.toString(), equalTo(expectedOntologyImportResult));\n }", "title": "" }, { "docid": "66f30d9cb27c224d284ab747c279c3ed", "score": "0.47179148", "text": "public void save() \n\t\tthrows IOException\n\t{\n\t\tFileOutputStream outputStream;\n\n\t\toutputStream = new FileOutputStream(this.filename, false);\n\t\tproperties.store(outputStream, \n\t\t\t\"jEdit Editor Scheme\\n#:mode=properties:lineSeparator=\\\\n:\");\n\t\toutputStream.close();\n\t}", "title": "" }, { "docid": "8fa5d0b471b1c208eb9e1982962ce9aa", "score": "0.47160226", "text": "public void exportHTML(OWLObject obj) {\n\t\t\n\t\ttry {\n\t\t\tJFileChooser wrapChooser = new JFileChooser();\n\t\t\twrapChooser.addChoosableFileFilter(new SwoopHTMLFileFilter());\n\t\t\tint returnVal = wrapChooser.showSaveDialog(this);\n\t\t\tFile file = null;\n\t\t\tif (returnVal == JFileChooser.APPROVE_OPTION) {\n\t\t\t\tfile = wrapChooser.getSelectedFile();\n\t\t\t} else { // save cancelled\n\t\t\t\treturn;\n\t\t\t}\n\t\t\t\n\t\t\tif (file.exists()) {\n\t\t\t\t// overwrite prompt\n\t\t\t\tint result = JOptionPane.showConfirmDialog(this, \"Saving File at \" + file.getAbsolutePath() + \". Overwrite?\", \"Save HTML\", JOptionPane.YES_NO_OPTION);\n\t\t\t\tif (result != JOptionPane.YES_OPTION) return;\n\t\t\t}\n\t\t\t\n\t\t\t// render HTML for ontology or individual entity\n\t\t\tString html = getObjectHTML(obj);\n\t\t\t\n\t\t\tFileWriter fw = new FileWriter(file);\n\t\t\tfw.write(html);\n\t\t\tfw.close();\n\t\t\tSystem.out.println(\"Save HTML file at: \"+file.getAbsolutePath());\n\t\t}\n\t\tcatch (Exception ex) {\n\t\t\tex.printStackTrace();\n\t\t}\n\t}", "title": "" }, { "docid": "8ae9a7a9969ca9abc7758e6dbed4bbbf", "score": "0.4711279", "text": "@SuppressWarnings(\"unchecked\")\r\n\tpublic void loadOntology(URI ontologyURI, OntologyBean ob) throws Exception {\r\n\t\tFile ontologyFile = new File(ontologyURI.getPath());\r\n\t\tString filePath = ontologyURI.getPath();\r\n\t\tURI outputURI = null;\r\n\r\n\t\tif (!ontologyFile.exists()) {\r\n\t\t\tlog.error(\"Missing ontology file to load: \" + filePath);\r\n\t\t\tthrow new FileNotFoundException(\"Missing ontology file to load: \"\r\n\t\t\t\t\t+ filePath);\r\n\t\t}\r\n\r\n\t\tif (log.isDebugEnabled()) {\r\n\t\t\tlog.debug(\"Loading ontology file: \" + ontologyFile.getName());\r\n\t\t}\r\n\r\n\t\tboolean isOwl = ob.getFormat()\r\n\t\t\t\t.contains(ApplicationConstants.FORMAT_OWL);\r\n\r\n\t\tif (!ontologyURI.toString().endsWith(\".pprj\") && isOwl) {\r\n\t\t\tFile outputFile = stripOWL2Constructs(ontologyFile, ob);\r\n\t\t\toutputURI = outputFile.toURI();\r\n\t\t} else {\r\n\t\t\toutputURI = ontologyURI;\r\n\t\t}\r\n\r\n\t\t// If the ontology file is small, use the fast non-streaming Protege\r\n\t\t// load code.\r\n\t\tList errors = new ArrayList();\r\n\t\tInteger ontologyVersionId = ob.getId();\r\n\r\n\t\t// Clear knowledgebase cache for this item\r\n\t\tprotegeKnowledgeBases.remove(ontologyVersionId);\r\n\r\n\t\tif (isOwl) {\r\n\t\t\tloadOWL(outputURI, ob, errors);\r\n\t\t} else {\r\n\t\t\tloadFrames(ontologyURI, ob, errors);\r\n\t\t}\r\n\r\n\t\t// Post-process ontology for obsolete terms. Ignore exceptions.\r\n\t\ttry {\r\n\t\t\tprocessObsoleteTerms(ob);\r\n\t\t} catch (Exception ignored) {\r\n\t\t\t// Ignore exceptions\r\n\t\t\tignored.printStackTrace();\r\n\t\t}\r\n\r\n\t\t// If errors are found during the load, log the errors and throw an\r\n\t\t// exception.\r\n\t\tif (errors.size() > 0) {\r\n\t\t\tlog.error(errors);\r\n\t\t\tthrow new Exception(\"Error during loading \"\r\n\t\t\t\t\t+ ontologyURI.toString() + \". Errors: \" + errors.toString()\r\n\t\t\t\t\t+ \".\");\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "e850643f9d90d0e1e70fbe753f7e7561", "score": "0.4711246", "text": "public void saveAccomodation(Accomodation accomodation);", "title": "" }, { "docid": "e964d79188160c87a51ecdaed998c3f7", "score": "0.47084707", "text": "@Override\r\n\tpublic void save(ObjectOutputStream op) {\n\r\n\t}", "title": "" }, { "docid": "79a1d7247f683aab0da3216ec9b0e512", "score": "0.47070462", "text": "@Override\n\tpublic void doSaveAs() {\n\t}", "title": "" }, { "docid": "79a1d7247f683aab0da3216ec9b0e512", "score": "0.47070462", "text": "@Override\n\tpublic void doSaveAs() {\n\t}", "title": "" }, { "docid": "79a1d7247f683aab0da3216ec9b0e512", "score": "0.47070462", "text": "@Override\n\tpublic void doSaveAs() {\n\t}", "title": "" }, { "docid": "79a1d7247f683aab0da3216ec9b0e512", "score": "0.47070462", "text": "@Override\n\tpublic void doSaveAs() {\n\t}", "title": "" }, { "docid": "79a1d7247f683aab0da3216ec9b0e512", "score": "0.47070462", "text": "@Override\n\tpublic void doSaveAs() {\n\t}", "title": "" }, { "docid": "a6a8fc78e240a25c00a1130a58303ad8", "score": "0.47060186", "text": "@Override\r\n\tpublic void doSaveAs() {\n\t}", "title": "" }, { "docid": "a6a8fc78e240a25c00a1130a58303ad8", "score": "0.47060186", "text": "@Override\r\n\tpublic void doSaveAs() {\n\t}", "title": "" }, { "docid": "a6a8fc78e240a25c00a1130a58303ad8", "score": "0.47060186", "text": "@Override\r\n\tpublic void doSaveAs() {\n\t}", "title": "" }, { "docid": "a6a8fc78e240a25c00a1130a58303ad8", "score": "0.47060186", "text": "@Override\r\n\tpublic void doSaveAs() {\n\t}", "title": "" }, { "docid": "29767bb053581d85e536f634ea7e1abc", "score": "0.47009215", "text": "@Override\n\tpublic void doSaveAs() {\n\t\t\n\t}", "title": "" }, { "docid": "3be473ec491d7734c2011f7e7353397d", "score": "0.46984777", "text": "public void save() {\n\t\t\t\t\t}", "title": "" }, { "docid": "c93121b68b4c08d697c7fed295d63905", "score": "0.46956402", "text": "public void save(Object object) throws PersistenceManagerException {\n try {\n Writer w = new BufferedWriter(new OutputStreamWriter(new FileOutputStream(descriptorPath), \"UTF-8\"));\n FileWriter filewriter = new FileWriter(descriptorPath);\n Marshaller marshal = new Marshaller(w);\n Mapping map = new Mapping();\n for (Object mappingObj : mappingPaths) {\n log.debug(\"Loading mapping path \" + mappingObj);\n if (mappingObj instanceof String) {\n map.loadMapping((String) mappingObj);\n } else if (mappingObj instanceof URL) {\n map.loadMapping((URL) mappingObj);\n }\n }\n marshal.setMapping(map);\n marshal.marshal(object);\n filewriter.close();\n Class cl = object.getClass();\n log.debug(\"Wrote object of type \" + cl.getName() + \" to XMLFile \" + descriptorPath);\n } catch (ValidationException e) {\n throw new PersistenceManagerException(\"Validation Error\", e);\n } catch (MarshalException e) {\n throw new PersistenceManagerException(\"Marshal Error: \", e);\n } catch (MappingException e) {\n throw new PersistenceManagerException(\"Mapping Error\", e);\n } catch (IOException e) {\n throw new PersistenceManagerException(\"I/O Error\", e);\n }\n }", "title": "" }, { "docid": "09dedf78226a4a10d608636a496bcd21", "score": "0.46939588", "text": "protected void saveTable() throws IOException {\n\t\tif(associatedFile == null)\tsaveAs();\n\t\telse {\n\t\t\tDocument tableDoc = new DefaultDocument();\n\t\t\ttry {\n\t\t\t\tlogger.info(loader.getString(\"fs.polyglot.log.savingfile\", languageID, associatedFile.getAbsolutePath()));\n\t\t\t\ttableDoc.setRootElement(editPane.getTable().getConfiguration());\n\t\t\t\tXMLToolbox.saveXML(tableDoc, associatedFile.getAbsolutePath());\n\t\t\t\teditPane.setChangeFlag(false);\n\t\t\t\tlogger.info(loader.getString(\"fs.polyglot.log.savedfile\", languageID, associatedFile.getAbsolutePath()));\n\t\t\t} catch (XMLReadConfigurationException e) {\n\t\t\t\tString msg = loader.getString(\"fs.polyglot.error.readconfig\", languageID, e.getMessage());\n\t\t\t\tJOptionPane.showMessageDialog(this, msg,loader.getString(\"fs.global.error\", languageID),JOptionPane.ERROR_MESSAGE);\n\t\t\t\tlogger.error(msg);\n\t\t\t} catch (IOException e) {\n\t\t\t\tString msg = loader.getString(\"fs.error.savefailed\", languageID, associatedFile.getAbsolutePath(),e.getMessage());\n\t\t\t\tJOptionPane.showMessageDialog(this, msg,loader.getString(\"fs.global.error\", languageID),JOptionPane.ERROR_MESSAGE);\n\t\t\t\tlogger.error(msg);\n\t\t\t}\n\t\t\t\n\t\t}\n\t}", "title": "" } ]
58d9b1f86b35e411aecdb88fcfa2fc3e
We do not use these operations for anything at present
[ { "docid": "1b00f62485dfcec526cf6b08bbad1a2d", "score": "0.0", "text": "private static void tryoutInvoiceOperations() {\n\t\tfinal PartnerCenterAdmin connection = createConnection();\n\n\t}", "title": "" } ]
[ { "docid": "1e34493fdecb11f6bbc24ef12eea2281", "score": "0.566236", "text": "public void mo27791d() {\n }", "title": "" }, { "docid": "87516d25e91c25920c9c9d991a7ad233", "score": "0.5619204", "text": "@Override\n protected void doOperate() {\n\n }", "title": "" }, { "docid": "fdf6bcd763ea5f5b221fd5a7669d1afb", "score": "0.55976164", "text": "public void mo28805a() {\n }", "title": "" }, { "docid": "5eb303064635f4909e997c3effe2511d", "score": "0.557604", "text": "public void mo27792e() {\n }", "title": "" }, { "docid": "e8b6a10ed01f50fbe15d66c44e6b001f", "score": "0.5566229", "text": "public void mo28809c() {\n }", "title": "" }, { "docid": "456cfb64be60efa8fc75c9c3deedc64c", "score": "0.55651367", "text": "protected abstract int [] defineOperations ();", "title": "" }, { "docid": "dd66e8668788d27519d44caeb83b0c44", "score": "0.55540055", "text": "@Override\r\n\tpublic void operation() {\n\t\t\r\n\t}", "title": "" }, { "docid": "051f88f1f94e36fab8ec66de1946f037", "score": "0.5546637", "text": "public void mo27794g() {\n }", "title": "" }, { "docid": "6fc1bc8405449cd5caa1d0d4cc253eff", "score": "0.5538991", "text": "public void mo27783b() {\n }", "title": "" }, { "docid": "3aa81cf1e979a27eea2102b97d2d0680", "score": "0.5507194", "text": "public int func_70658_aO() { return 8; }", "title": "" }, { "docid": "c7069ceb002105626fb2f47c213a8f49", "score": "0.55050397", "text": "OperatorExpected eventual();", "title": "" }, { "docid": "381ca210fc42b87f9b8af474719578a0", "score": "0.5433403", "text": "public void mo41489c() {\n }", "title": "" }, { "docid": "036c569ae3d63ccf581271058236d3fc", "score": "0.54246044", "text": "@Override\n public void operation() {\n }", "title": "" }, { "docid": "203e120e0c17c7a390717d0ca9ff147a", "score": "0.54021215", "text": "public void mo11316JX() {\n }", "title": "" }, { "docid": "222e7b9d44422cda9de5df0085949df1", "score": "0.53961265", "text": "public void mo27793f() {\n }", "title": "" }, { "docid": "9df108b35f917c07c761abe21c7517e1", "score": "0.5350492", "text": "private void checkSafeOperation() {\n // no operation - nothing to check for...\n }", "title": "" }, { "docid": "03143ee9b26aa8a7d43576d479e4400a", "score": "0.53129643", "text": "public final void mo55685Zy() {\n }", "title": "" }, { "docid": "e1834e089677c260b4af3324391b3b67", "score": "0.53120375", "text": "public final void mo62463l() {\n }", "title": "" }, { "docid": "5ff22b3f452fafea230958ac44c2ad67", "score": "0.52467716", "text": "protected abstract void mo3574f();", "title": "" }, { "docid": "29f3cdbb287e40f98a8d2f36bba2f27b", "score": "0.5223802", "text": "@Override\n\tpublic int eixos() {\n\t\treturn 1;\n\t}", "title": "" }, { "docid": "acbb02f47467f45f5ab2c3b2e5f7545d", "score": "0.5209992", "text": "public final void mo62452a() {\n }", "title": "" }, { "docid": "2097402406ed48de16ed7ccfe28a85b4", "score": "0.51754445", "text": "public void mo5927b() {\n }", "title": "" }, { "docid": "c5cb2f1d3bbda57c84fb8dd0d63d2089", "score": "0.5173853", "text": "OperatorExpected unlimited();", "title": "" }, { "docid": "393237de9c40b0b47e9d2c845ed92ee5", "score": "0.5172739", "text": "public void mo45857a() {\n }", "title": "" }, { "docid": "b42b054dfaac7d94036bce6ecf272a0e", "score": "0.5139331", "text": "private void pepe() {\n\t\t\n\t}", "title": "" }, { "docid": "b623306824ebd023ab9bf4fc0a66aaf3", "score": "0.5137918", "text": "public void mo5928c() {\n }", "title": "" }, { "docid": "eb92b32dc3cd795c7c394190cf409bd5", "score": "0.51362216", "text": "public void mo41487a() {\n }", "title": "" }, { "docid": "9cfdb7a953eedd93829d98c1649d8fa2", "score": "0.51308817", "text": "@Override\r\n\tprotected void rodape() {\n\t\t\r\n\t}", "title": "" }, { "docid": "f02c338eb46eb5cdf9d19504df309595", "score": "0.5119738", "text": "public void mo28814l() {\n }", "title": "" }, { "docid": "bbe72181e7f16cbb8dd59a66d8af29e2", "score": "0.51147825", "text": "private Integer part1() {\n return null;\r\n }", "title": "" }, { "docid": "89685a97be106c5e65406e42741d0ec3", "score": "0.51102865", "text": "public void mo1383a() {\n }", "title": "" }, { "docid": "91f4e7e88ad2f79be16e41fb98c69cb6", "score": "0.51070756", "text": "private void aviTomov() {\n\t\t\n\t}", "title": "" }, { "docid": "e48b362e151b4c33596374aa94796686", "score": "0.51057523", "text": "OR getO();", "title": "" }, { "docid": "9b0b95ff0d59089aa067d3ca8d2cdbe2", "score": "0.509099", "text": "private java.nio.ByteBuffer e() {\n /*\n r8 = this;\n java.nio.ByteBuffer r0 = r8.a\n r0.clear()\n java.nio.ByteBuffer r0 = r8.a\n r1 = 8\n r8.a(r0, r1)\n java.nio.ByteBuffer r0 = r8.a\n r1 = 0\n short r0 = r0.getShort(r1)\n java.nio.ByteBuffer r2 = r8.a\n r3 = 2\n short r2 = r2.getShort(r3)\n r3 = -15618(0xffffffffffffc2fe, float:NaN)\n if (r0 != r3) goto L_0x00e9\n r0 = 5\n if (r2 == r0) goto L_0x0023\n goto L_0x00e9\n L_0x0023:\n java.nio.ByteBuffer r0 = r8.a\n r2 = 4\n int r0 = r0.getInt(r2)\n java.nio.ByteBuffer r3 = r8.a\n int r3 = r3.position()\n r4 = 32768(0x8000, float:4.5918E-41)\n if (r0 <= r4) goto L_0x003d\n java.io.IOException r0 = new java.io.IOException\n java.lang.String r1 = \"Blob size too large\"\n r0.<init>(r1)\n throw r0\n L_0x003d:\n int r4 = r0 + 4\n java.nio.ByteBuffer r5 = r8.a\n int r5 = r5.remaining()\n if (r4 <= r5) goto L_0x0066\n int r4 = r0 + 2048\n L_0x0049:\n java.nio.ByteBuffer r4 = java.nio.ByteBuffer.allocate(r4)\n java.nio.ByteBuffer r5 = r8.a\n byte[] r5 = r5.array()\n java.nio.ByteBuffer r6 = r8.a\n int r6 = r6.arrayOffset()\n java.nio.ByteBuffer r7 = r8.a\n int r7 = r7.position()\n int r6 = r6 + r7\n r4.put(r5, r1, r6)\n r8.a = r4\n goto L_0x0075\n L_0x0066:\n java.nio.ByteBuffer r4 = r8.a\n int r4 = r4.capacity()\n r5 = 4096(0x1000, float:5.74E-42)\n if (r4 <= r5) goto L_0x0075\n r4 = 2048(0x800, float:2.87E-42)\n if (r0 >= r4) goto L_0x0075\n goto L_0x0049\n L_0x0075:\n java.nio.ByteBuffer r4 = r8.a\n r8.a(r4, r0)\n java.nio.ByteBuffer r4 = r8.b\n r4.clear()\n java.nio.ByteBuffer r4 = r8.b\n r8.a(r4, r2)\n java.nio.ByteBuffer r2 = r8.b\n r2.position(r1)\n java.nio.ByteBuffer r2 = r8.b\n int r2 = r2.getInt()\n java.util.zip.Adler32 r4 = r8.c\n r4.reset()\n java.util.zip.Adler32 r4 = r8.c\n java.nio.ByteBuffer r5 = r8.a\n byte[] r5 = r5.array()\n java.nio.ByteBuffer r6 = r8.a\n int r6 = r6.position()\n r4.update(r5, r1, r6)\n java.util.zip.Adler32 r1 = r8.c\n long r4 = r1.getValue()\n int r1 = (int) r4\n if (r2 == r1) goto L_0x00d6\n java.lang.StringBuilder r0 = new java.lang.StringBuilder\n java.lang.String r1 = \"CRC = \"\n r0.<init>(r1)\n java.util.zip.Adler32 r1 = r8.c\n long r3 = r1.getValue()\n int r1 = (int) r3\n r0.append(r1)\n java.lang.String r1 = \" and \"\n r0.append(r1)\n r0.append(r2)\n java.lang.String r0 = r0.toString()\n com.xiaomi.channel.commonutils.logger.b.a(r0)\n java.io.IOException r0 = new java.io.IOException\n java.lang.String r1 = \"Corrupted Blob bad CRC\"\n r0.<init>(r1)\n throw r0\n L_0x00d6:\n byte[] r1 = r8.h\n if (r1 == 0) goto L_0x00e6\n byte[] r1 = r8.h\n java.nio.ByteBuffer r2 = r8.a\n byte[] r2 = r2.array()\n r4 = 1\n com.xiaomi.push.service.ax.a(r1, r2, r4, r3, r0)\n L_0x00e6:\n java.nio.ByteBuffer r0 = r8.a\n return r0\n L_0x00e9:\n java.io.IOException r0 = new java.io.IOException\n java.lang.String r1 = \"Malformed Input\"\n r0.<init>(r1)\n throw r0\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.xiaomi.slim.c.e():java.nio.ByteBuffer\");\n }", "title": "" }, { "docid": "4668223a90a46ce62950b5f7474cf974", "score": "0.50878316", "text": "algo () {}", "title": "" }, { "docid": "552ae4f1b7a9f96e7705a708ff883295", "score": "0.5079461", "text": "private ParametricEvaluationUtil()\n\t{\n\n\t}", "title": "" }, { "docid": "0c69424878be03e50f19e2ca61ef640b", "score": "0.50720704", "text": "@Override\r\n\tpublic void leggi() {\n\t\t\r\n\t}", "title": "" }, { "docid": "5722b4382295260b36c636f394cdc365", "score": "0.5049611", "text": "@Override\n\tpublic void operationImpl() {\n\t\t\n\t}", "title": "" }, { "docid": "4b90c8cb6b13a1b8002cb41ddec0b0e8", "score": "0.5042597", "text": "public boolean method_2453() {\r\n return false;\r\n }", "title": "" }, { "docid": "db4b95a4460fb609bcd3716b1a4b3e23", "score": "0.5036037", "text": "@Override\r\n\tpublic void compra() {\n\t\t\r\n\t}", "title": "" }, { "docid": "cdbd3afe3fde519d18778f1c8fac782b", "score": "0.50262266", "text": "public void mo45859b() {\n }", "title": "" }, { "docid": "2ad52390d92954e1d6f2925b4b14bfd4", "score": "0.5024586", "text": "private Helpers() {}", "title": "" }, { "docid": "8b6c961814c14fa02879570fd7e65ac5", "score": "0.5004421", "text": "@Override\r\n\tpublic void scarica() {\n\t\t\r\n\t}", "title": "" }, { "docid": "11f6f363f658728fa4b13eea31188966", "score": "0.49987525", "text": "@Override\r\n\tpublic int getInterestOps() {\n\t\treturn 0;\r\n\t}", "title": "" }, { "docid": "70374b24c44623641ccc3360bf798dff", "score": "0.49985468", "text": "public final void mo28525a() {\n }", "title": "" }, { "docid": "cceb242d0670eb1df248c7c9a40c066f", "score": "0.4994998", "text": "public boolean method_2434() {\r\n return false;\r\n }", "title": "" }, { "docid": "665db3b65cecb95941d3544facce191e", "score": "0.4993965", "text": "@Override\n\tpublic void DoOperation(IOperation oper) {\n\t\t\n\t}", "title": "" }, { "docid": "ed90d07de745c738f4ce4c1f4a11cb99", "score": "0.49888906", "text": "private void m95690p() {\n m95692q();\n }", "title": "" }, { "docid": "a1d358ef8dde60480477b5c8b2359c6d", "score": "0.49888733", "text": "@Override\n\tpublic void compra() {\n\t\t\n\t}", "title": "" }, { "docid": "dfd2d1701d08c04535ad8e3f7f25b921", "score": "0.49752015", "text": "public String getOperation()\n/* */ {\n/* 56 */ return this.operation;\n/* */ }", "title": "" }, { "docid": "b0c66ff3e888aa739566573c5a9534e0", "score": "0.49716067", "text": "@Override\n public void reduce() {\n\n }", "title": "" }, { "docid": "78ce3d857fcd96fa1f5703687446eb23", "score": "0.497092", "text": "public abstract boolean func_175149_v();", "title": "" }, { "docid": "61b5f34bed8d0ebc39cd8ae396d6b61a", "score": "0.49608022", "text": "public abstract void mo114246n();", "title": "" }, { "docid": "1071df6e0644a3ce4c8d8ebf4cf269d9", "score": "0.4954056", "text": "@Override\n public long cost () {\n return 0;\n }", "title": "" }, { "docid": "80d20df1cc75d8fa96c12c49a757fc43", "score": "0.4953889", "text": "@Override\n\tprotected void getExras() {\n\t\t\n\t}", "title": "" }, { "docid": "d01b8b0f843afd13fdd01ceb36bf4054", "score": "0.49486244", "text": "protected void method_2595() {\r\n super.method_2427(awt.field_4186);\r\n this.method_2440(true);\r\n this.method_2521(class_872.field_4245);\r\n }", "title": "" }, { "docid": "e27dc5ed1bb9627616e37e49e914145a", "score": "0.49465978", "text": "public abstract void m14977OooO00o();", "title": "" }, { "docid": "62d742a43a7687c020a3040e8a5efd4d", "score": "0.4936374", "text": "final int mo7629b(Object obj) {\n return -1;\n }", "title": "" }, { "docid": "99eabeaca63a0e3c7f12e5e95f963e6d", "score": "0.49359286", "text": "public final void mo62461j() {\n }", "title": "" }, { "docid": "95ce0fc7444d023b91c55224c1aba5ba", "score": "0.49183807", "text": "private void gpTomov() {\n\t\t\n\t}", "title": "" }, { "docid": "fc2dcf21e27f4e56e4155acd558c2b9d", "score": "0.48969692", "text": "public final void mo8557pL() {\n }", "title": "" }, { "docid": "581dabba9c81374e4e9f6c46d40345a2", "score": "0.48844886", "text": "@Override\n public int getExp() {\n return 0;\n }", "title": "" }, { "docid": "a8635a9065f007b803a58d518a9d50d1", "score": "0.48782963", "text": "public boolean method_1535() {\n return false;\n }", "title": "" }, { "docid": "36ead792e01e160e05d81fc0bbca9d7d", "score": "0.4872882", "text": "public final void mo28529b() {\n }", "title": "" }, { "docid": "0ab8f0cc12e013644cee6a8b78cc4b20", "score": "0.48708606", "text": "public abstract void mo15839b();", "title": "" }, { "docid": "ad76d0fedb4219414a24d678c7190230", "score": "0.48677793", "text": "public final void mo11315JW() {\n }", "title": "" }, { "docid": "8e00d80d00d68a77d723d1f86c5b2a50", "score": "0.4865011", "text": "@Override\n\tprotected void specificOperatorTests() {\n\t\t\n\t}", "title": "" }, { "docid": "43eb41e76d3c71830fb232d009b9f32c", "score": "0.48637432", "text": "public abstract void mo41463rb();", "title": "" }, { "docid": "7782cf248df1d25783ef5acbf96a4df5", "score": "0.48608696", "text": "private void antri() {\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\n }", "title": "" }, { "docid": "9d1147fccdd6cc0254bff3ed0435c687", "score": "0.4860373", "text": "@Test\n public void test40() throws Throwable {\n Complex complex0 = Complex.valueOf(1527.088171, 1.8718514371423056E183);\n double double0 = complex0.getImaginary();\n double double1 = complex0.getArgument();\n Complex complex1 = complex0.cos();\n try { \n complex0.add((Complex) null);\n } catch(IllegalArgumentException e) {\n //\n // null is not allowed\n //\n assertThrownBy(\"org.apache.commons.math3.util.MathUtils\", e);\n }\n }", "title": "" }, { "docid": "11f76a1363fbe042263412eac2a4bcad", "score": "0.4858922", "text": "public double getPhotosynthesis() { return 0;}", "title": "" }, { "docid": "9a155a8abda084413d9ed15dc78e441d", "score": "0.4858333", "text": "public void processOpCall(Op op) {\n // total number of invocations\n invocationsCount.incrementAndGet();\n\n // number of invocations for this specific op\n opCounter.incrementCount(op.opName());\n\n // number of invocations for specific class\n String opClass = getOpClass(op);\n classCounter.incrementCount(opClass);\n\n if(op.x() == null || (op.x() != null && op.x().data().platformAddress() == lastZ && op.z() == op.x() && op.y() == null)) {\n // we have possible shift here\n matchingCounter.incrementCount(prevOpMatching + \" -> \" + opClass);\n matchingCounterDetailed.incrementCount(prevOpMatchingDetailed + \" -> \" + opClass + \" \" + op.opName());\n } else {\n matchingCounter.totalsIncrement();\n matchingCounterDetailed.totalsIncrement();\n if (op.y() != null && op.y().data().address() == lastZ) {\n matchingCounterInverted.incrementCount(prevOpMatchingInverted + \" -> \" + opClass + \" \" + op.opName());\n } else {\n matchingCounterInverted.totalsIncrement();\n }\n\n }\n lastZ = op.z() != null ? op.z().data().platformAddress() : 0L;\n prevOpMatching = opClass;\n prevOpMatchingDetailed = opClass + \" \" + op.opName();\n prevOpMatchingInverted = opClass + \" \" + op.opName();\n\n updatePairs(op.opName(), opClass);\n\n if (config.isNotOptimalArguments()) {\n PenaltyCause[] causes = processOperands(op.x(), op.y(), op.z());\n for (PenaltyCause cause : causes) {\n switch (cause) {\n case NON_EWS_ACCESS:\n nonEwsAggregator.incrementCount();\n break;\n case STRIDED_ACCESS:\n stridedAggregator.incrementCount();\n break;\n case MIXED_ORDER:\n mixedOrderAggregator.incrementCount();\n break;\n case NONE:\n default:\n break;\n }\n }\n }\n\n for (OpProfilerListener listener : listeners) {\n listener.invoke(op);\n }\n }", "title": "" }, { "docid": "8f7def6e924d135f870fe5403697f07e", "score": "0.48573261", "text": "boolean isNoOp() {\n return false;\n }", "title": "" }, { "docid": "3efe9b476114de722d8d0cecb1725e5d", "score": "0.48547035", "text": "private void Subdivise() {\n\r\n\t}", "title": "" }, { "docid": "b971f9e4e57b204443990c5756637316", "score": "0.48534796", "text": "public void mo1385b() {\n }", "title": "" }, { "docid": "99618455a7d9bcfea20c83d03dd6db08", "score": "0.48517838", "text": "private static void expStat() {\n // TODO\n }", "title": "" }, { "docid": "99618455a7d9bcfea20c83d03dd6db08", "score": "0.48517838", "text": "private static void expStat() {\n // TODO\n }", "title": "" }, { "docid": "8199b47e3798f8fe1a0f6ec41ac13f51", "score": "0.48496357", "text": "@Override\n\tpublic void calculate() {\n\t\t\n\t}", "title": "" }, { "docid": "06f66aa4b4a434e6d60036c1df6f6903", "score": "0.4838835", "text": "public abstract void mo114245m();", "title": "" }, { "docid": "a6e15cb1e93d6177924b5df8939115fc", "score": "0.48387882", "text": "public int method_2436() {\r\n return 2;\r\n }", "title": "" }, { "docid": "2d64eb80552f6cd49eb14daca21ee082", "score": "0.48368603", "text": "public final void mo6642a() {\n }", "title": "" }, { "docid": "7de2b9a1638739d8a552ea81162374f7", "score": "0.48335487", "text": "@Override\r\n\tpublic void trasation() {\n\t\t \r\n\t}", "title": "" }, { "docid": "190a9f37225fa54ff86b6d69921bf532", "score": "0.48329672", "text": "private void flvTomov() {\n\t\t\n\t}", "title": "" }, { "docid": "fbf63cfbfa4a99a9176c5d4fbdea7a32", "score": "0.48306513", "text": "@Override\n public void Operation()\n {\n super.Operation();\n\n }", "title": "" }, { "docid": "8e2a7b7850a5c5ae59150a7967edc5f7", "score": "0.4830587", "text": "public abstract T mo87672d();", "title": "" }, { "docid": "3361f2e232d2a657568f25a90cfb3ffb", "score": "0.4824502", "text": "public final void mo18613c() {\n }", "title": "" }, { "docid": "85103d67698dd4b00df4656efea0fa0a", "score": "0.48214525", "text": "public abstract void mo114244l();", "title": "" }, { "docid": "11456bcd21ff0bc594abe5edbbc0252b", "score": "0.48199558", "text": "private void aviTomp4() {\n\t\t\n\t}", "title": "" }, { "docid": "8eaac2f3d9a94a1da47bfc6a5e02ad07", "score": "0.48193312", "text": "public abstract byte[] m17402OooO00o();", "title": "" }, { "docid": "c09c9c3ade4d03fbd623c9793e65e7da", "score": "0.4817794", "text": "void mo24572L();", "title": "" }, { "docid": "a3bb2ff6168ff44fd1395949fce38677", "score": "0.4816979", "text": "@Override\n public int getCost() {\n return 1;\n }", "title": "" }, { "docid": "39ba672dbda110fcb88b893893211dd3", "score": "0.48132163", "text": "public int method_7065() {\r\n return this.field_6887;\r\n }", "title": "" }, { "docid": "2c870913040dbad9b4567f820a8eb535", "score": "0.4806096", "text": "void mo34402s();", "title": "" }, { "docid": "cd8572ba134a590d788cdd2879cf3447", "score": "0.48049027", "text": "@Override\n\tpublic void computeBuffer() {\n\t\t\n\t}", "title": "" }, { "docid": "c58d008bd48b973a8cdd608b2153a374", "score": "0.4800178", "text": "@Test\n public void traditionalOperatorsExplored(){\n assertEquals(4, 2+2);\n assertEquals(5L, 10L - 5L);\n assertEquals(25.0F, 12.5F * 2F, 0);\n assertEquals(30.2D, 120.8D / 4D, 0);\n assertEquals(\"abcd\", \"ab\" + \"cd\");\n assertEquals(1, 9%2);\n }", "title": "" }, { "docid": "30e61e0614cbfe1b9cfdeeffb7274333", "score": "0.47970012", "text": "public int method_9016() {\r\n return this.field_8544;\r\n }", "title": "" }, { "docid": "308c3a0c5d559f8fc9b5e2cf34192cb4", "score": "0.4795085", "text": "private int handleOperation(String op) {\n\t\t\r\n\t\tswitch (op) {\r\n\t\tcase \"+\": return opApply2(op);\r\n\r\n\t\tcase \"-\": return opApply2(op);\r\n\r\n\t\tcase \"*\": return opApply2(op);\r\n\r\n\t\tcase \"/\": return opApply2(op);\r\n\r\n\t\tcase \"=\": return opApply2(op);\r\n\r\n\t\tcase \"!\": return opApply2(op);\r\n\r\n\t\tcase \">\": return opApply2(op);\r\n\r\n\t\tcase \"<\": return opApply2(op);\r\n\t\t//\r\n\t\t//\t\tcase \"AND\": return opApply2(op);\r\n\t\t//\r\n\t\t//\t\tcase \"OR\": return opApply2(op);\r\n\t\t//\r\n\t\t//\t\tcase \"XOR\": case \"EOR\": return opApply2(op);\r\n\t\t//\r\n\t\t//\t\tcase \"ABS\": return opApply1(op);\r\n\t\t//\t\tcase \"CHS\": return opApply1(op);\r\n\t\t//\t\tcase \"MAX\": return opApply2(op);\r\n\t\t//\t\tcase \"MIN\": return opApply2(op);\r\n\t\t//\t\tcase \"MOD\": return opApply2(op);\r\n\t\t//\t\tcase \"NOT\": return opApply1(op);\r\n\t\t//\t\tcase \"SQRT\": return opApply1(op);\r\n\t\t//\r\n\t\tcase \"SIN\": return opTrig(op);\r\n\t\tcase \"COS\": return opTrig(op);\r\n\t\tcase \"TAN\": return opTrig(op);\r\n\t\tcase \"ARCSIN\": return opTrig(op);\r\n\t\tcase \"ARCCOS\": return opTrig(op);\r\n\t\tcase \"ARCTAN\":\r\n\t\t\tint i = popNumber();\r\n\t\t\tint j = popNumber();\r\n\t\t\tdouble result = Math.atan2(-i, j); // Flip Y coord.\r\n\t\t\t// Robowar's Engine/Arena.c does this, so I will:\r\n\t\t\tstack.push((int)(450.5 - Arena.rad2deg(result)) % 360);\r\n\t\t\treturn 1;\r\n\t\t\t//\t\t\t//\t\tcase \"DIST\":\r\n\t\t\t//\t\t\t//\t\t\tint dy = y - pop_number();\r\n\t\t\t//\t\t\t//\t\t\tint dx = x - pop_number();\r\n\t\t\t//\t\t\t//\t\t\treturn Math.sqrt( (dx * dx) + (dy * dy) );\r\n\r\n\t\tcase \"STORE\":\r\n\t\tcase \"STO\":\r\n\t\tcase \"EXEC\":\r\n\t\t\tString v = popVariable();\r\n\t\t\tuseVariable(v, popNumber());\r\n\t\t\treturn 1;\r\n\t\t\t//\t\tcase \"RECALL\":\r\n\t\t\t//\t\t\t push( pop_variable_value());\r\n\t\t\t//\t\t\treturn 1;\r\n\t\t\t//\t\tcase \"VEXEC\":\r\n\t\t\t//\t\t\tvar index = pop_number();\r\n\t\t\t//\t\t\tvar value = pop_number();\r\n\t\t\t//\t\t\t vector[index] = value;\r\n\t\t\t//\t\t\treturn 1;\r\n\t\t\t//\t\tcase \"VRECALL\":\r\n\t\t\t//\t\t\tvar index = pop_number();\r\n\t\t\t//\t\t\tvar value = vector[index] || 0;\r\n\t\t\t//\t\t\t push((value < 0 || value > 100) ? 0 : value);\r\n\t\t\t//\t\t\treturn 1;\r\n\t\t\t//\r\n\t\tcase \"IF\": //TODO: MAKE THIS WORK WITH VARIABLES\r\n\t\t\tint first = popNumber();\r\n\t\t\tint second = popNumber();\r\n\t\t\tif (second == 1) {\r\n\t\t\t\treturn opCall(first);\r\n\t\t\t}\r\n\t\t\treturn 1;\r\n\t\t\t//\t\tcase \"IFE\":\r\n\t\t\t//\t\t\tvar first = pop_number();\r\n\t\t\t//\t\t\tvar second = pop_number();\r\n\t\t\t//\t\t\tvar third = pop_number();\r\n\t\t\t//\t\t\tif (third) {\r\n\t\t\t//\t\t\t\treturn op_call(second);\r\n\t\t\t//\t\t\t} else {\r\n\t\t\t//\t\t\t\treturn op_call(first);\r\n\t\t\t//\t\t\t}\r\n\t\t\t//\t\tcase \"IFG\":\r\n\t\t\t//\t\t\tvar first = pop_number();\r\n\t\t\t//\t\t\tvar second = pop_number();\r\n\t\t\t//\t\t\tif (second) {\r\n\t\t\t//\t\t\t\treturn op_jump(first);\r\n\t\t\t//\t\t\t}\r\n\t\t\t//\t\t\treturn 1;\r\n\t\t\t//\t\tcase \"IFEG\":\r\n\t\t\t//\t\t\tvar first = pop_number();\r\n\t\t\t//\t\t\tvar second = pop_number();\r\n\t\t\t//\t\t\tvar third = pop_number();\r\n\t\t\t//\t\t\tif (third) {\r\n\t\t\t//\t\t\t\treturn op_jump(second);\r\n\t\t\t//\t\t\t} else {\r\n\t\t\t//\t\t\t\treturn op_jump(first);\r\n\t\t\t//\t\t\t}\r\n\t\t\t//\r\n\t\t\t//\t\tcase \"CALL\":\r\n\t\t\t//\t\t\treturn op_call( pop_number());\r\n\t\tcase \"JUMP\":\r\n\t\tcase \"RETURN\":\r\n\t\t\treturn opJump(popNumber());\r\n\r\n\t\t\t//\t\tcase \"NOP\":\r\n\t\t\t//\t\t\treturn 1;\r\n\t\tcase \"SYNC\":\r\n\t\t\t// To pause until end of chronon we return maximum \"cost\".\r\n\t\t\treturn Integer.MAX_VALUE;\r\n\t\tcase \"DROP\":\r\n\t\t\tstack.pop();\r\n\t\t\treturn 1;\r\n\t\t\t//\t\tcase \"DUP\":\r\n\t\t\t//\t\tcase \"DUPLICATE\":\r\n\t\t\t//\t\t\tvar value = pop_number();\r\n\t\t\t//\t\t\t stack.push(value);\r\n\t\t\t//\t\t\t stack.push(value);\r\n\t\t\t//\t\t\treturn 1;\r\n\t\tcase \"DROPALL\":\r\n\t\t\tstack.clear();\r\n\t\t\treturn 1;\r\n\t\t\t//\t\tcase \"SWAP\":\r\n\t\t\t//\t\t\tvar first = pop_number();\r\n\t\t\t//\t\t\tvar second = pop_number();\r\n\t\t\t//\t\t\t push(first);\r\n\t\t\t//\t\t\t push(second);\r\n\t\t\t//\t\t\treturn 1;\r\n\t\t\t//\t\tcase \"ROLL\":\r\n\t\t\t//\t\t\tvar count = pop_number();\r\n\t\t\t//\t\t\tvar value = pop_number();\r\n\t\t\t//\t\t\tif (count > stack.length)\r\n\t\t\t//\t\t\t\tthrow new Error(\"Tried rolling back \" + count + \" places, but \" +\r\n\t\t\t//\t\t\t\t\t\t\"only \" + stack.length + \" items are in the stack.\");\r\n\t\t\t//\t\t\tStack temp = new Stack();\r\n\t\t\t//\t\t\tfor (var i = 0; i < count; i ++)\r\n\t\t\t//\t\t\t\ttemp.push( stack.pop());\r\n\t\t\t//\t\t\t stack.push(value);\r\n\t\t\t//\t\t\tfor (var i = 0; i < count; i ++)\r\n\t\t\t//\t\t\t\t stack.push(temp.pop());\r\n\t\t\t//\t\t\treturn 1;\r\n\r\n\t\tcase \"INTON\":\r\n\t\t\tinterrupts.enabled = true;\r\n\t\t\treturn 1;\r\n\t\tcase \"INTOFF\":\r\n\t\t\tinterrupts.enabled = false;\r\n\t\t\treturn 1;\r\n\t\tcase \"FLUSHINT\":\r\n\t\t\tinterrupts.flush();\r\n\t\t\treturn 1;\r\n\t\tcase \"RTI\": // Equivalent to INTON RETURN\r\n\t\t\tinterrupts.enabled = true;\r\n\t\t\topJump(popNumber());\r\n\t\t\treturn 2;\r\n\t\tcase \"SETINT\":\r\n\t\t\tString l = popVariable();\r\n\t\t\tint address = popNumber();\r\n\t\t\tinterrupts.setPtr(l, address);\r\n\t\t\treturn 1;\r\n\t\t\t//\t\tcase \"SETPARAM\":\r\n\t\t\t//\t\t\tvar v = pop_variable();\r\n\t\t\t//\t\t\tif (v.name == \"HISTORY\") {\r\n\t\t\t//\t\t\t\tvar value = pop_number();\r\n\t\t\t//\t\t\t\t history_index = value;\r\n\t\t\t//\t\t\t} else if (v.name == \"PROBE\") {\r\n\t\t\t//\t\t\t\tvar value = pop_variable();\r\n\t\t\t//\t\t\t\t probe_variable = value;\r\n\t\t\t//\t\t\t} else {\r\n\t\t\t//\t\t\t\tvar value = pop_number();\r\n\t\t\t//\t\t\t\t interrupts.set_param(v.name, value);\r\n\t\t\t//\t\t\t}\r\n\t\t\t//\t\t\treturn 1;\r\n\t\t\t//\r\n\t\tcase \"DEBUG\":\r\n\t\tcase \"DEBUGGER\":\r\n\t\t\t// TODO: Debugging.\r\n\t\t\tSystem.out.println(popNumber());\r\n\t\t\treturn 0;\r\n\t\tcase \"BEEP\":\r\n\t\t\t//System.out.println(\"BEEP!\");\r\n\t\t\treturn 0;\r\n\t\tcase \"PRINT\":\r\n\t\t\tif (stack.size() > 0) {\r\n\t\t\t\tSystem.out.println(\"Stack size \" + stack.size() + \", top value: \" + stack.peek());\r\n\t\t\t} else {\r\n\t\t\t\tSystem.out.println(\"Stack is empty.\");\r\n\t\t\t}\r\n\t\t\treturn 0;\r\n\t\tcase \"GET\":\r\n\t\t\tString p = popVariable();\r\n\t\t\tstack.push(getVariable(p));\r\n\t\t\treturn 0;\r\n\r\n\t\tdefault:\r\n\t\t\tthrow new Error(\"Unknown instruction: \" + op);\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "0627537b32516202ce961658a6d7f861", "score": "0.47918874", "text": "public int method_7062() {\r\n return this.field_6884;\r\n }", "title": "" }, { "docid": "e46f923ad6fc359502fa5cd9275ce20c", "score": "0.47910336", "text": "public int method_9018() {\r\n return this.field_8546;\r\n }", "title": "" }, { "docid": "db648738215cc9f160f30c2d13d19ee3", "score": "0.4789714", "text": "public void mo28816n() {\n }", "title": "" }, { "docid": "707f3f1578778c88946a8af52df2c7da", "score": "0.47889474", "text": "LifecycleTransformer mo80470b();", "title": "" } ]
a2e49e959ae740f68c9cdde550204fc3
Returns a short description of the servlet.
[ { "docid": "8a3f6bbb84898014a0585bb0f023d468", "score": "0.0", "text": "@Override\r\n public String getServletInfo() {\r\n return \"Short description\";\r\n }", "title": "" } ]
[ { "docid": "63004d59b4ffcaf2437e8692fcd9ab59", "score": "0.87322754", "text": "public String getServletInfo() {\n return \"Short description\";\n }", "title": "" }, { "docid": "63004d59b4ffcaf2437e8692fcd9ab59", "score": "0.87322754", "text": "public String getServletInfo() {\n return \"Short description\";\n }", "title": "" }, { "docid": "63004d59b4ffcaf2437e8692fcd9ab59", "score": "0.87322754", "text": "public String getServletInfo() {\n return \"Short description\";\n }", "title": "" }, { "docid": "63004d59b4ffcaf2437e8692fcd9ab59", "score": "0.87322754", "text": "public String getServletInfo() {\n return \"Short description\";\n }", "title": "" }, { "docid": "63004d59b4ffcaf2437e8692fcd9ab59", "score": "0.87322754", "text": "public String getServletInfo() {\n return \"Short description\";\n }", "title": "" }, { "docid": "63004d59b4ffcaf2437e8692fcd9ab59", "score": "0.87322754", "text": "public String getServletInfo() {\n return \"Short description\";\n }", "title": "" }, { "docid": "63004d59b4ffcaf2437e8692fcd9ab59", "score": "0.87322754", "text": "public String getServletInfo() {\n return \"Short description\";\n }", "title": "" }, { "docid": "63004d59b4ffcaf2437e8692fcd9ab59", "score": "0.87322754", "text": "public String getServletInfo() {\n return \"Short description\";\n }", "title": "" }, { "docid": "63004d59b4ffcaf2437e8692fcd9ab59", "score": "0.87322754", "text": "public String getServletInfo() {\n return \"Short description\";\n }", "title": "" }, { "docid": "63004d59b4ffcaf2437e8692fcd9ab59", "score": "0.87322754", "text": "public String getServletInfo() {\n return \"Short description\";\n }", "title": "" }, { "docid": "63004d59b4ffcaf2437e8692fcd9ab59", "score": "0.87322754", "text": "public String getServletInfo() {\n return \"Short description\";\n }", "title": "" }, { "docid": "63004d59b4ffcaf2437e8692fcd9ab59", "score": "0.87322754", "text": "public String getServletInfo() {\n return \"Short description\";\n }", "title": "" }, { "docid": "94392563bc3f7a09b991852dfe51edc6", "score": "0.8699043", "text": "public String getServletInfo() {\r\n return \"Short description\";\r\n }", "title": "" }, { "docid": "94392563bc3f7a09b991852dfe51edc6", "score": "0.8699043", "text": "public String getServletInfo() {\r\n return \"Short description\";\r\n }", "title": "" }, { "docid": "94392563bc3f7a09b991852dfe51edc6", "score": "0.8699043", "text": "public String getServletInfo() {\r\n return \"Short description\";\r\n }", "title": "" }, { "docid": "94392563bc3f7a09b991852dfe51edc6", "score": "0.8699043", "text": "public String getServletInfo() {\r\n return \"Short description\";\r\n }", "title": "" }, { "docid": "e826b7e33ab455c7f05b1ad9e95deed2", "score": "0.8667311", "text": "public String getServletInfo() {\n\t\treturn \"Short description\";\n\t}", "title": "" }, { "docid": "127314737b4209ef14c02df4ccc268a6", "score": "0.85982496", "text": "@Override\n public String getServletInfo() {\n\t return \"Short description\";\n }", "title": "" }, { "docid": "253d3c4c19b8470b1c59a68d3ecbacf1", "score": "0.8558098", "text": "@Override\n public String getServletInfo() {\n return \"Short description\";\n }", "title": "" }, { "docid": "a4acfa548a46d38b36711dedbd78686b", "score": "0.85314643", "text": "@Override\r\n public String getServletInfo() {\r\n return \"Short description\";\r\n }", "title": "" }, { "docid": "7c89ac28953948a9e1f224c369d17aaf", "score": "0.8526363", "text": "@Override\n\tpublic String getServletInfo() {\n\t\treturn \"Short description\";\n\t}", "title": "" }, { "docid": "7c89ac28953948a9e1f224c369d17aaf", "score": "0.8526363", "text": "@Override\n\tpublic String getServletInfo() {\n\t\treturn \"Short description\";\n\t}", "title": "" }, { "docid": "7c89ac28953948a9e1f224c369d17aaf", "score": "0.8526363", "text": "@Override\n\tpublic String getServletInfo() {\n\t\treturn \"Short description\";\n\t}", "title": "" }, { "docid": "7c89ac28953948a9e1f224c369d17aaf", "score": "0.8526363", "text": "@Override\n\tpublic String getServletInfo() {\n\t\treturn \"Short description\";\n\t}", "title": "" }, { "docid": "7c89ac28953948a9e1f224c369d17aaf", "score": "0.8526363", "text": "@Override\n\tpublic String getServletInfo() {\n\t\treturn \"Short description\";\n\t}", "title": "" }, { "docid": "7c89ac28953948a9e1f224c369d17aaf", "score": "0.8526363", "text": "@Override\n\tpublic String getServletInfo() {\n\t\treturn \"Short description\";\n\t}", "title": "" }, { "docid": "7c89ac28953948a9e1f224c369d17aaf", "score": "0.8526363", "text": "@Override\n\tpublic String getServletInfo() {\n\t\treturn \"Short description\";\n\t}", "title": "" }, { "docid": "7c89ac28953948a9e1f224c369d17aaf", "score": "0.8526363", "text": "@Override\n\tpublic String getServletInfo() {\n\t\treturn \"Short description\";\n\t}", "title": "" }, { "docid": "7c89ac28953948a9e1f224c369d17aaf", "score": "0.8526363", "text": "@Override\n\tpublic String getServletInfo() {\n\t\treturn \"Short description\";\n\t}", "title": "" }, { "docid": "7c89ac28953948a9e1f224c369d17aaf", "score": "0.8526363", "text": "@Override\n\tpublic String getServletInfo() {\n\t\treturn \"Short description\";\n\t}", "title": "" }, { "docid": "7c89ac28953948a9e1f224c369d17aaf", "score": "0.8526363", "text": "@Override\n\tpublic String getServletInfo() {\n\t\treturn \"Short description\";\n\t}", "title": "" }, { "docid": "7c89ac28953948a9e1f224c369d17aaf", "score": "0.8526363", "text": "@Override\n\tpublic String getServletInfo() {\n\t\treturn \"Short description\";\n\t}", "title": "" }, { "docid": "441cec5657295165a0603454f301a938", "score": "0.8525206", "text": "@Override\r\n public String getServletInfo() {\r\n\treturn \"Short description\";\r\n }", "title": "" }, { "docid": "441cec5657295165a0603454f301a938", "score": "0.8525206", "text": "@Override\r\n public String getServletInfo() {\r\n\treturn \"Short description\";\r\n }", "title": "" }, { "docid": "b4b4f3548d440ec5609bd68be77675d2", "score": "0.8522604", "text": "@Override\n public String getServletInfo ()\n {\n return \"Short description\";\n }", "title": "" }, { "docid": "06c169c4de9fb1f021b4a3a2e46ac36c", "score": "0.85169274", "text": "@Override\r\n public String getServletInfo()\r\n {\r\n return \"Short description\";\r\n }", "title": "" }, { "docid": "06c169c4de9fb1f021b4a3a2e46ac36c", "score": "0.85169274", "text": "@Override\r\n public String getServletInfo()\r\n {\r\n return \"Short description\";\r\n }", "title": "" }, { "docid": "82c4588cb3ca93579117683d27fab785", "score": "0.8515379", "text": "@Override\r\n public String getServletInfo() \r\n {\r\n return \"Short description\";\r\n }", "title": "" }, { "docid": "ee285031e78e5d2eb682a8e19fddbacb", "score": "0.8510647", "text": "@Override\n public String getServletInfo()\n {\n return \"Short description\";\n }", "title": "" }, { "docid": "ee285031e78e5d2eb682a8e19fddbacb", "score": "0.8510647", "text": "@Override\n public String getServletInfo()\n {\n return \"Short description\";\n }", "title": "" }, { "docid": "ee285031e78e5d2eb682a8e19fddbacb", "score": "0.8510647", "text": "@Override\n public String getServletInfo()\n {\n return \"Short description\";\n }", "title": "" }, { "docid": "48a92e2842c19379b60792769308aaad", "score": "0.8508422", "text": "@Override\r\n\tpublic String getServletInfo() {\r\n\t\treturn \"Short description\";\r\n\t}", "title": "" }, { "docid": "890a8450c623aca2369e07f9cc10d03a", "score": "0.85069877", "text": "@Override\n public String getServletInfo() \n {\n return \"Short description\";\n }", "title": "" }, { "docid": "584f6922490ff2e202eface2709f587f", "score": "0.8491018", "text": "@Override\n public String getServletInfo() {\n return \"Short description\";\n }", "title": "" }, { "docid": "584f6922490ff2e202eface2709f587f", "score": "0.8491018", "text": "@Override\n public String getServletInfo() {\n return \"Short description\";\n }", "title": "" }, { "docid": "584f6922490ff2e202eface2709f587f", "score": "0.8491018", "text": "@Override\n public String getServletInfo() {\n return \"Short description\";\n }", "title": "" }, { "docid": "584f6922490ff2e202eface2709f587f", "score": "0.8491018", "text": "@Override\n public String getServletInfo() {\n return \"Short description\";\n }", "title": "" }, { "docid": "584f6922490ff2e202eface2709f587f", "score": "0.8491018", "text": "@Override\n public String getServletInfo() {\n return \"Short description\";\n }", "title": "" }, { "docid": "584f6922490ff2e202eface2709f587f", "score": "0.8491018", "text": "@Override\n public String getServletInfo() {\n return \"Short description\";\n }", "title": "" }, { "docid": "584f6922490ff2e202eface2709f587f", "score": "0.8491018", "text": "@Override\n public String getServletInfo() {\n return \"Short description\";\n }", "title": "" }, { "docid": "584f6922490ff2e202eface2709f587f", "score": "0.8491018", "text": "@Override\n public String getServletInfo() {\n return \"Short description\";\n }", "title": "" }, { "docid": "584f6922490ff2e202eface2709f587f", "score": "0.8491018", "text": "@Override\n public String getServletInfo() {\n return \"Short description\";\n }", "title": "" }, { "docid": "584f6922490ff2e202eface2709f587f", "score": "0.8491018", "text": "@Override\n public String getServletInfo() {\n return \"Short description\";\n }", "title": "" }, { "docid": "584f6922490ff2e202eface2709f587f", "score": "0.8491018", "text": "@Override\n public String getServletInfo() {\n return \"Short description\";\n }", "title": "" }, { "docid": "584f6922490ff2e202eface2709f587f", "score": "0.8491018", "text": "@Override\n public String getServletInfo() {\n return \"Short description\";\n }", "title": "" }, { "docid": "584f6922490ff2e202eface2709f587f", "score": "0.8491018", "text": "@Override\n public String getServletInfo() {\n return \"Short description\";\n }", "title": "" }, { "docid": "584f6922490ff2e202eface2709f587f", "score": "0.8491018", "text": "@Override\n public String getServletInfo() {\n return \"Short description\";\n }", "title": "" }, { "docid": "584f6922490ff2e202eface2709f587f", "score": "0.8491018", "text": "@Override\n public String getServletInfo() {\n return \"Short description\";\n }", "title": "" }, { "docid": "584f6922490ff2e202eface2709f587f", "score": "0.8491018", "text": "@Override\n public String getServletInfo() {\n return \"Short description\";\n }", "title": "" }, { "docid": "584f6922490ff2e202eface2709f587f", "score": "0.8491018", "text": "@Override\n public String getServletInfo() {\n return \"Short description\";\n }", "title": "" }, { "docid": "584f6922490ff2e202eface2709f587f", "score": "0.8491018", "text": "@Override\n public String getServletInfo() {\n return \"Short description\";\n }", "title": "" }, { "docid": "584f6922490ff2e202eface2709f587f", "score": "0.8491018", "text": "@Override\n public String getServletInfo() {\n return \"Short description\";\n }", "title": "" }, { "docid": "584f6922490ff2e202eface2709f587f", "score": "0.8491018", "text": "@Override\n public String getServletInfo() {\n return \"Short description\";\n }", "title": "" }, { "docid": "584f6922490ff2e202eface2709f587f", "score": "0.8491018", "text": "@Override\n public String getServletInfo() {\n return \"Short description\";\n }", "title": "" }, { "docid": "584f6922490ff2e202eface2709f587f", "score": "0.8491018", "text": "@Override\n public String getServletInfo() {\n return \"Short description\";\n }", "title": "" }, { "docid": "584f6922490ff2e202eface2709f587f", "score": "0.8491018", "text": "@Override\n public String getServletInfo() {\n return \"Short description\";\n }", "title": "" }, { "docid": "584f6922490ff2e202eface2709f587f", "score": "0.8491018", "text": "@Override\n public String getServletInfo() {\n return \"Short description\";\n }", "title": "" }, { "docid": "584f6922490ff2e202eface2709f587f", "score": "0.8491018", "text": "@Override\n public String getServletInfo() {\n return \"Short description\";\n }", "title": "" }, { "docid": "584f6922490ff2e202eface2709f587f", "score": "0.8491018", "text": "@Override\n public String getServletInfo() {\n return \"Short description\";\n }", "title": "" }, { "docid": "584f6922490ff2e202eface2709f587f", "score": "0.8491018", "text": "@Override\n public String getServletInfo() {\n return \"Short description\";\n }", "title": "" }, { "docid": "584f6922490ff2e202eface2709f587f", "score": "0.8491018", "text": "@Override\n public String getServletInfo() {\n return \"Short description\";\n }", "title": "" }, { "docid": "584f6922490ff2e202eface2709f587f", "score": "0.8491018", "text": "@Override\n public String getServletInfo() {\n return \"Short description\";\n }", "title": "" }, { "docid": "584f6922490ff2e202eface2709f587f", "score": "0.8491018", "text": "@Override\n public String getServletInfo() {\n return \"Short description\";\n }", "title": "" }, { "docid": "584f6922490ff2e202eface2709f587f", "score": "0.8491018", "text": "@Override\n public String getServletInfo() {\n return \"Short description\";\n }", "title": "" }, { "docid": "584f6922490ff2e202eface2709f587f", "score": "0.8491018", "text": "@Override\n public String getServletInfo() {\n return \"Short description\";\n }", "title": "" }, { "docid": "584f6922490ff2e202eface2709f587f", "score": "0.8491018", "text": "@Override\n public String getServletInfo() {\n return \"Short description\";\n }", "title": "" }, { "docid": "584f6922490ff2e202eface2709f587f", "score": "0.8491018", "text": "@Override\n public String getServletInfo() {\n return \"Short description\";\n }", "title": "" }, { "docid": "584f6922490ff2e202eface2709f587f", "score": "0.8491018", "text": "@Override\n public String getServletInfo() {\n return \"Short description\";\n }", "title": "" }, { "docid": "584f6922490ff2e202eface2709f587f", "score": "0.8491018", "text": "@Override\n public String getServletInfo() {\n return \"Short description\";\n }", "title": "" }, { "docid": "584f6922490ff2e202eface2709f587f", "score": "0.8491018", "text": "@Override\n public String getServletInfo() {\n return \"Short description\";\n }", "title": "" }, { "docid": "584f6922490ff2e202eface2709f587f", "score": "0.8491018", "text": "@Override\n public String getServletInfo() {\n return \"Short description\";\n }", "title": "" }, { "docid": "584f6922490ff2e202eface2709f587f", "score": "0.8491018", "text": "@Override\n public String getServletInfo() {\n return \"Short description\";\n }", "title": "" }, { "docid": "584f6922490ff2e202eface2709f587f", "score": "0.8491018", "text": "@Override\n public String getServletInfo() {\n return \"Short description\";\n }", "title": "" }, { "docid": "584f6922490ff2e202eface2709f587f", "score": "0.8491018", "text": "@Override\n public String getServletInfo() {\n return \"Short description\";\n }", "title": "" }, { "docid": "584f6922490ff2e202eface2709f587f", "score": "0.8491018", "text": "@Override\n public String getServletInfo() {\n return \"Short description\";\n }", "title": "" }, { "docid": "584f6922490ff2e202eface2709f587f", "score": "0.8491018", "text": "@Override\n public String getServletInfo() {\n return \"Short description\";\n }", "title": "" }, { "docid": "584f6922490ff2e202eface2709f587f", "score": "0.8491018", "text": "@Override\n public String getServletInfo() {\n return \"Short description\";\n }", "title": "" }, { "docid": "584f6922490ff2e202eface2709f587f", "score": "0.8491018", "text": "@Override\n public String getServletInfo() {\n return \"Short description\";\n }", "title": "" }, { "docid": "584f6922490ff2e202eface2709f587f", "score": "0.8491018", "text": "@Override\n public String getServletInfo() {\n return \"Short description\";\n }", "title": "" }, { "docid": "584f6922490ff2e202eface2709f587f", "score": "0.8491018", "text": "@Override\n public String getServletInfo() {\n return \"Short description\";\n }", "title": "" }, { "docid": "584f6922490ff2e202eface2709f587f", "score": "0.8491018", "text": "@Override\n public String getServletInfo() {\n return \"Short description\";\n }", "title": "" }, { "docid": "584f6922490ff2e202eface2709f587f", "score": "0.8491018", "text": "@Override\n public String getServletInfo() {\n return \"Short description\";\n }", "title": "" }, { "docid": "584f6922490ff2e202eface2709f587f", "score": "0.8491018", "text": "@Override\n public String getServletInfo() {\n return \"Short description\";\n }", "title": "" }, { "docid": "584f6922490ff2e202eface2709f587f", "score": "0.8491018", "text": "@Override\n public String getServletInfo() {\n return \"Short description\";\n }", "title": "" }, { "docid": "584f6922490ff2e202eface2709f587f", "score": "0.8491018", "text": "@Override\n public String getServletInfo() {\n return \"Short description\";\n }", "title": "" }, { "docid": "584f6922490ff2e202eface2709f587f", "score": "0.8491018", "text": "@Override\n public String getServletInfo() {\n return \"Short description\";\n }", "title": "" }, { "docid": "584f6922490ff2e202eface2709f587f", "score": "0.8491018", "text": "@Override\n public String getServletInfo() {\n return \"Short description\";\n }", "title": "" }, { "docid": "584f6922490ff2e202eface2709f587f", "score": "0.8491018", "text": "@Override\n public String getServletInfo() {\n return \"Short description\";\n }", "title": "" }, { "docid": "584f6922490ff2e202eface2709f587f", "score": "0.8491018", "text": "@Override\n public String getServletInfo() {\n return \"Short description\";\n }", "title": "" }, { "docid": "584f6922490ff2e202eface2709f587f", "score": "0.8491018", "text": "@Override\n public String getServletInfo() {\n return \"Short description\";\n }", "title": "" }, { "docid": "584f6922490ff2e202eface2709f587f", "score": "0.8491018", "text": "@Override\n public String getServletInfo() {\n return \"Short description\";\n }", "title": "" } ]
3007903164d38cc0bb5ed42ab9b6ffa5
TODO: Return the communication channel to the service.
[ { "docid": "84b3f3f35651a6466a61128369c678f4", "score": "0.0", "text": "@Override\r\n public IBinder onBind(Intent intent) {\n throw new UnsupportedOperationException(\"Not yet implemented\");\r\n }", "title": "" } ]
[ { "docid": "e95b7cc6aa35f650687f6516b3f55221", "score": "0.743544", "text": "Channel getChannel();", "title": "" }, { "docid": "89da3df0ea4a3c46cfcf1021daf2eb55", "score": "0.7366326", "text": "SocketChannel getChannel() throws JistAPI.Continuation;", "title": "" }, { "docid": "52e947b6fefdff3aa80b260f02b8e168", "score": "0.71262175", "text": "java.lang.String getChannel();", "title": "" }, { "docid": "52e947b6fefdff3aa80b260f02b8e168", "score": "0.71262175", "text": "java.lang.String getChannel();", "title": "" }, { "docid": "0509e2fd83b290fbfb81d8b104d24199", "score": "0.7056662", "text": "public Channel getChannel() {\n\t\tsynchronized( this ) {\n\t\t\treturn _channel;\n\t\t}\n\t}", "title": "" }, { "docid": "b16f53ebcd572e36f79bd5f954fa70da", "score": "0.7048157", "text": "ServerSocketChannel getChannel() throws JistAPI.Continuation;", "title": "" }, { "docid": "07c954777214cb031ff6836a7abbcdd7", "score": "0.69037956", "text": "public SocketChannel getChannel() {\n return channel.getSocket();\n }", "title": "" }, { "docid": "090430c7f3a1844000048412d8691962", "score": "0.6895264", "text": "public MessageChannel getMessageChannel() {\n return messageChannel;\n }", "title": "" }, { "docid": "df5495a67dd89aa8da1a1430656ec331", "score": "0.6856005", "text": "public Channel getChannel() {\r\n if(currentChannel == null) {\r\n logger.error(\"Connector has no channel information\");\r\n }\r\n return this.currentChannel;\r\n }", "title": "" }, { "docid": "a33e9233e00815f9d8b0456628723c19", "score": "0.6846474", "text": "public Channel getChannel()\r\n {\r\n return m_channel;\r\n }", "title": "" }, { "docid": "56f023c97bfa7d27aeaacbef6872d5c6", "score": "0.6777473", "text": "public String getChannel() {\n return channel;\n }", "title": "" }, { "docid": "56f023c97bfa7d27aeaacbef6872d5c6", "score": "0.6777473", "text": "public String getChannel() {\n return channel;\n }", "title": "" }, { "docid": "56f023c97bfa7d27aeaacbef6872d5c6", "score": "0.6777473", "text": "public String getChannel() {\n return channel;\n }", "title": "" }, { "docid": "a0181de0f754379626c68ecdadecf3b0", "score": "0.6757819", "text": "public String getChannel() {\n return this.Channel;\n }", "title": "" }, { "docid": "67621357c1887eac224bd993bb075545", "score": "0.6749291", "text": "public int getChannel();", "title": "" }, { "docid": "67621357c1887eac224bd993bb075545", "score": "0.6749291", "text": "public int getChannel();", "title": "" }, { "docid": "1d0c805f957f203d58095cd59280e449", "score": "0.67256224", "text": "public CommunicationChannel getCommunicationChannel_di()\n\t{\n\t\treturn CommunicationChannel.findById(communicationChannel_di);\n\t}", "title": "" }, { "docid": "9c0915ad1ec9be7d3dff57c4b531318b", "score": "0.6702874", "text": "public Channel getChannel() {\n\t\treturn this.channel;\n\t}", "title": "" }, { "docid": "e9d9426b60954c4e304383c377bb3d65", "score": "0.6671469", "text": "public int getChannel() {\n return getMessage().getChannel();\n }", "title": "" }, { "docid": "2b2dc4aae0367415e4241e05ac7e614d", "score": "0.66577697", "text": "public String getChannel() {\n\t\treturn channel;\n\t}", "title": "" }, { "docid": "fb6a255fd16a7254b8cd352d7e90fc04", "score": "0.6637452", "text": "public int getChannel() {\n return channel;\n }", "title": "" }, { "docid": "578c4f70c1ca7c67000e5bfcb0517b38", "score": "0.6629381", "text": "public Channel getChannel()\n {\n if ( this.channel == null )\n {\n throw new IllegalStateException( \"Can only be called for a digital signal!\" );\n }\n return this.channel;\n }", "title": "" }, { "docid": "578c4f70c1ca7c67000e5bfcb0517b38", "score": "0.6629381", "text": "public Channel getChannel()\n {\n if ( this.channel == null )\n {\n throw new IllegalStateException( \"Can only be called for a digital signal!\" );\n }\n return this.channel;\n }", "title": "" }, { "docid": "3e293da87848aead81b7765e798071b6", "score": "0.6574525", "text": "public SocketChannel getChannel() {\n\t\treturn mSocketChannel;\n\t}", "title": "" }, { "docid": "4a94712b5f50371108cdf1150d4ec68c", "score": "0.65482223", "text": "@Bean(name = ErrorMessageServiceActivator.INPUT_CHANNEL_NAME)\n public MessageChannel getMessageChannel() {\n return new DirectChannel();\n }", "title": "" }, { "docid": "6d1e0cd6521dc29a98d1e0020d48b644", "score": "0.6545104", "text": "public interface Channel {\n /**\n * Closes this connection gracefully and ensure that all pending data are sent\n * out.<BR>\n * The connectionClosed() method will be called once the socket is really\n * closed.\n */\n void close();\n \n /**\n * Aborts this channel. The Listener.connectionClosed method is called when\n * the shutdown is performed.\n */\n void shutdown();\n \n /**\n * Returns the context attached to this channel.\n * @return the context attached to this channel\n */\n <T> T attachment();\n \n /**\n * Attaches a context to this channel.\n * @param attached the context to be attached\n */\n void attach(Object attached);\n \n /**\n * Return the reactor managing this channel.\n * @return the reactor managing this channel.\n */\n Reactor getReactor();\n}", "title": "" }, { "docid": "8f02a10258f4eaa7cec80759eab3409f", "score": "0.6543125", "text": "public final SocketChannel getChannel() {\r\n\t\t\treturn sock.getChannel();\r\n\t\t}", "title": "" }, { "docid": "ed60fed67c94dd8e0f925a5cf223112e", "score": "0.65219116", "text": "@Override\n\tpublic int getChannel() {\n\t\treturn 0;\n\t}", "title": "" }, { "docid": "e0428e15acac2aa2c77e793924bdd2d9", "score": "0.6493398", "text": "@Override\r\n\t\tpublic SocketChannel getChannel() {\n\t\t\treturn null;\r\n\t\t}", "title": "" }, { "docid": "3d8d62f1592c4f7a6c95cfc4a47d8cbc", "score": "0.64884704", "text": "public final Channel createChannel() {\n\t\treturn createChannel(null, null, null);\n\t}", "title": "" }, { "docid": "69934f9d20f04716133d3c3e7f8f84d3", "score": "0.64765215", "text": "@Override\r\n\t\tpublic ByteChannel getByteChannel() {\n\t\t\treturn sockChannel;\r\n\t\t}", "title": "" }, { "docid": "44bad86ec86a28117c0f6c1c68ea5f88", "score": "0.64715445", "text": "public int getCurrentChannel (){\n return currentChannel ;\n}", "title": "" }, { "docid": "33339f4885a307814dcddc266cd11179", "score": "0.6442636", "text": "public int getChannel() {\n\t\t\treturn channel;\n\t\t}", "title": "" }, { "docid": "6b9f6322a31c12c00be929b1c5e9d6bb", "score": "0.64289016", "text": "@Override\n @Programmatic\n public CommunicationChannel getSubject() {\n return getCommunicationChannel();\n }", "title": "" }, { "docid": "0539f67ff2bee7313b2d8710eb4909bf", "score": "0.6421087", "text": "TelemetryChannel getChannel() {\n if (channel == null) {\n this.channel = configuration.getChannel();\n }\n\n return this.channel;\n }", "title": "" }, { "docid": "ff8aefe4a0c947b0f25bd3a24fcb6ca4", "score": "0.64038426", "text": "public interface Channel {\n}", "title": "" }, { "docid": "19d22fad0c5f6b0625116a3a2e38c801", "score": "0.63895506", "text": "public int getChannel() {\n return m_channel;\n }", "title": "" }, { "docid": "29a3a5a5cdc7f79a0540c7243e5a5fb7", "score": "0.63700795", "text": "public Message getMessageSpaceExplorerChannel() {\n\t\t// Using BlockingQueue does the job\n\t\tMessage ret = null;\n\n\t\ttry {\n\t\t\tret = seBuffer.take();\n\t\t} catch (InterruptedException e) {\n\t\t}\n\n\t\treturn ret;\n\t}", "title": "" }, { "docid": "e034a76e4c385760e35799a4f327c99d", "score": "0.63579583", "text": "String getChannelName();", "title": "" }, { "docid": "f93e62335025850f8745d4d52fd13407", "score": "0.63257957", "text": "public ChannelServer getChannelServer() {\n return ChannelServer.getInstance(channel);\n }", "title": "" }, { "docid": "1cf7103e59583bf9ec331c019e62e199", "score": "0.631115", "text": "public int getChannel() { // called by bank driver\n return device.getChannel();\n }", "title": "" }, { "docid": "17406627c731b73b87f4f77acb721f27", "score": "0.6309845", "text": "public ChannelEndpoint getChannelEndpoint() {\n return channelEndpoint;\n }", "title": "" }, { "docid": "02d4f8cdbb5ce26d7ad09414ae8c14d2", "score": "0.6309352", "text": "public interface MessageChannelManager {\n public MessageChannel getMessageChannel(ChannelType type);\n}", "title": "" }, { "docid": "8011657d0578b7b35940f34ef164531a", "score": "0.6299734", "text": "public Channel getChannel(String name)\n {\n return getChannel(name, false);\n }", "title": "" }, { "docid": "69670a46d2af0b8bf957bba8f29465ba", "score": "0.6272535", "text": "@Override\n public Channel getChannel() {\n return null;\n }", "title": "" }, { "docid": "6f4a56fb9fb50b9c81c984d815177ac9", "score": "0.62692326", "text": "public java.lang.String getChannel() {\n java.lang.Object ref = channel_;\n if (!(ref instanceof java.lang.String)) {\n java.lang.String s = ((com.google.protobuf.ByteString) ref)\n .toStringUtf8();\n channel_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "title": "" }, { "docid": "9dc9cc83d22e53befbdf43d167a05848", "score": "0.6249638", "text": "public java.lang.String getChannel() {\n java.lang.Object ref = channel_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs = \n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n if (bs.isValidUtf8()) {\n channel_ = s;\n }\n return s;\n }\n }", "title": "" }, { "docid": "3f2394dfdc053cca7ddf1d375265ea8d", "score": "0.62337095", "text": "public String getChannelName() {\n return channelName;\n }", "title": "" }, { "docid": "27481e77af64654da662105ff7d07b36", "score": "0.62169385", "text": "com.google.protobuf.ByteString\n getChannelBytes();", "title": "" }, { "docid": "3d60c4e5c0e5fd9e10b75c0f0952d38f", "score": "0.62004733", "text": "public interface IChannel {\n\n\t/**\n\t * callback for new messages for this channel\n\t * \n\t * @param message\n\t * @param sourceDeviceUniqueID\n\t * @param sourceProtocolDeviceID\n\t */\n\tpublic void onMessage(BlaubotMessage message);\n\n\t/**\n\t * config of this channel (id, sending policy etc.)\n\t * \n\t * @return\n\t */\n\tpublic ChannelConfig getConfig();\n\n\t/**\n\t * post the given payload via this channel\n\t * \n\t * @param payload\n\t */\n\tpublic void post(byte[] payload);\n\n\t/**\n\t * post the given message via this channel\n\t * \n\t * @param message\n\t */\n\tpublic void post(BlaubotMessage message);\n\n\t/**\n\t * subscribe to this channel and receive updates as soon as new message come\n\t * in via this channel\n\t * \n\t * @param listener\n\t * listener for callback\n\t */\n\tpublic void subscribe(IMessageListener listener);\n\n\t/**\n\t * unsubscribe from this channel in order to not receive updates anymore\n\t * \n\t * @param listener\n\t */\n\tpublic void unsubscribe(IMessageListener listener);\n\n\t/**\n\t * add \"mute\" listener (means that subscription won't be broadcasted ->\n\t * usefull for master which only listens for incoming messages but is no\n\t * real subscriber)\n\t * \n\t * @param listener\n\t */\n\tpublic void addListener(IMessageListener listener);\n\n\t/**\n\t * remove given listener from list\n\t * \n\t * @param listener\n\t */\n\tpublic void removeListener(IMessageListener listener);\n\n}", "title": "" }, { "docid": "f02315f0497f422462578715a12e7764", "score": "0.61911136", "text": "public abstract Channel getCurrentChannel(UUID uuid);", "title": "" }, { "docid": "f96b061d8ea159d6671118d89b0c7455", "score": "0.6160643", "text": "public ReadableByteChannel getChannel() throws IOException\r\n \t{\r\n \t\treturn null;\r\n \t}", "title": "" }, { "docid": "f080472aa0017b0d09364fb846ebbaa4", "score": "0.6154482", "text": "com.google.protobuf.ByteString\n getChannelBytes();", "title": "" }, { "docid": "f4cbce60e470784a8fffe3aa6fbbce61", "score": "0.610136", "text": "private void createNotificationChannel() {\n \n }", "title": "" }, { "docid": "74023ce7c3dfc049621d5d7ddbcda391", "score": "0.6070333", "text": "public java.lang.String getChannelName() {\n return channelName;\n }", "title": "" }, { "docid": "4ccb8b648d5bbc94fd06365a8340b25e", "score": "0.60555744", "text": "public com.google.protobuf.ByteString\n getChannelBytes() {\n java.lang.Object ref = channel_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n channel_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "title": "" }, { "docid": "109ab563c25d7366537e175efe32ed78", "score": "0.6041382", "text": "public String getChannelname() {\n return channelname;\n }", "title": "" }, { "docid": "ababc3a80a847b4327abf0ce3733317d", "score": "0.6020464", "text": "public String getChannelId() {\n return mChannelId;\n }", "title": "" }, { "docid": "28f5b90ba3b35adf6dee4bfda16f2077", "score": "0.60100186", "text": "final ChannelFactory<? extends C> channelFactory()\r\n/* 281: */ {\r\n/* 282:364 */ return this.channelFactory;\r\n/* 283: */ }", "title": "" }, { "docid": "507f93f3d3cafe51ab2dcd86b6065d0e", "score": "0.6000453", "text": "public com.google.protobuf.ByteString\n getChannelBytes() {\n java.lang.Object ref = channel_;\n if (ref instanceof java.lang.String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n channel_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "title": "" }, { "docid": "912b39ad963e07d59c14c95a3e293971", "score": "0.5994995", "text": "public SocketChannel getSourceChannel();", "title": "" }, { "docid": "07da7b4c6671917be6b6ee54be28a02f", "score": "0.5981768", "text": "public ManagedChannel createChannel() {\n return NettyChannelBuilder.forAddress(DEFAULT_HOST, getPort())\n .negotiationType(NegotiationType.PLAINTEXT)\n .build();\n }", "title": "" }, { "docid": "ebe43c4824ac6cd127040b4900f1f387", "score": "0.5958051", "text": "public String getChannelId() {\n return channelId;\n }", "title": "" }, { "docid": "ebe43c4824ac6cd127040b4900f1f387", "score": "0.5958051", "text": "public String getChannelId() {\n return channelId;\n }", "title": "" }, { "docid": "e21d3980deaee5528049b2e531195e19", "score": "0.5955876", "text": "public final void /*String[]*/ getChannels() {\r\n // Channel management\r\n }", "title": "" }, { "docid": "879ae481fe7c46862dff18edd9248507", "score": "0.59462124", "text": "public ManagedChannel createChannel() {\n return NettyChannelBuilder.forAddress(DEFAULT_HOST, port)\n .negotiationType(NegotiationType.PLAINTEXT)\n .build();\n }", "title": "" }, { "docid": "d5d245c6696a23389be0fb55aaece2b0", "score": "0.59274083", "text": "void channel();", "title": "" }, { "docid": "280c25737ef409862f8220fe59648c27", "score": "0.5921292", "text": "public static @NonNull ChannelMessageSender self() {\n var componentInfo = InjectionLayer.boot().instance(ComponentInfo.class);\n return new ChannelMessageSender(componentInfo.componentName(), componentInfo.environment());\n }", "title": "" }, { "docid": "5d8b490a97cc370c288769ddf00aaa3c", "score": "0.588202", "text": "public interface MessageChannel {\n\n public void process(Msg message);\n}", "title": "" }, { "docid": "b37bdc41727bfc2121410b9e0c76f266", "score": "0.58817786", "text": "@Override // javax.inject.Provider\n public ChannelSyncAgent get() {\n return (ChannelSyncAgent) Preconditions.checkNotNullFromComponent(this.a.channelSyncAgent());\n }", "title": "" }, { "docid": "3e3284306abb116c5d78a73d8a32f08d", "score": "0.5866963", "text": "@Override\n public void onMessage(CharSequence channel, Object msg) {\n\n }", "title": "" }, { "docid": "bcf03b059c2451908026c48bbfecffc4", "score": "0.5855876", "text": "protected MessageChannel getDestinationChannel(TestContext context) {\n if (endpointConfiguration.getChannel() != null) {\n return endpointConfiguration.getChannel();\n } else if (StringUtils.hasText(endpointConfiguration.getChannelName())) {\n return resolveChannelName(endpointConfiguration.getChannelName(), context);\n } else {\n throw new CitrusRuntimeException(\"Neither channel name nor channel object is set - \" +\n \"please specify destination channel\");\n }\n }", "title": "" }, { "docid": "39188bf954f839d238c68d92271d29ea", "score": "0.585028", "text": "public interface PooledChannelService {\n\n PooledChannel getNewForEndpoint(String endpointLocator);\n\n PooledChannel get(String id);\n\n PooledChannel getByEndoint(String endpointLocator);\n\n void releaseById(long id);\n\n void releaseById(String id);\n\n void placeChannelOnHoldUntilDisconnect(\n long id, String expectedEndpoingLocator);\n\n void deleteById(long id);\n\n void sendMessage(String endpointLocator, String message);\n}", "title": "" }, { "docid": "d3560ddf0860d1a2547e2ec947931753", "score": "0.5823999", "text": "private String getChannel(Task opTask) {\n\t\treturn opTask.getChannel();\n\t}", "title": "" }, { "docid": "15d9bf58bfd8494973ca046524ceedb4", "score": "0.5814113", "text": "public CircularBufferEnumeration getReceiveChannel()\n\t\t{\n\t\treturn(t.getReceiveChannel());\n\t\t}", "title": "" }, { "docid": "5ee97b6ed1a7b46f82998cb02404e095", "score": "0.58128226", "text": "public String getChannelId() {\n\t\treturn mChannelId;\n\t}", "title": "" }, { "docid": "9d4017539549124375a5117515f31680", "score": "0.5809406", "text": "public long getChannelId() {\n return channelId_;\n }", "title": "" }, { "docid": "17eafe0d298fa93760543cdd32313483", "score": "0.5809178", "text": "public com.telefonica.midrange.queryproductofferingservice.types.Channel[] getChannel() {\n return channel;\n }", "title": "" }, { "docid": "9c7856738053bc3c0dc7bc0ce329ab9a", "score": "0.58070606", "text": "public interface NucleusStaffChatService {\n\n /**\n * Gets the staff chat message channel.\n *\n * @return The {@link MessageChannel}\n */\n NucleusChatChannel.StaffChat getStaffChat();\n\n}", "title": "" }, { "docid": "9f6535cc713dab8b9b4aeeca937ee494", "score": "0.5805117", "text": "public FileChannel getChannel() {\n synchronized (this) {\n if (channel == null) {\n //传值文件描述符,文件路径,读(true)以及写(false)的权限。\n channel = FileChannelImpl.open(fd, path, true, false, this);\n /*\n * Increment fd's use count. Invoking the channel's close() method will result in decrementing the use count set for the channel.\n */\n fd.incrementAndGetUseCount();\n }\n return channel;\n }\n }", "title": "" }, { "docid": "cc686bcb09c513988a503d60269b3e6f", "score": "0.58038133", "text": "public interface DataChannel {\n /**\n * 发送上行包\n * @param upPacket\n */\n void send(Message upPacket) throws Exception;\n\n /**\n * 接收下行包\n * @param downPacket\n */\n void receive(Message downPacket) throws Exception;\n\n /**\n * 设置下一个channel\n * @param callback\n */\n void setNextChannel(DataChannel callback);\n}", "title": "" }, { "docid": "e90d4299cf4d9d06865c713dcef5f585", "score": "0.57973754", "text": "public interface Channel extends Endpoint {\n\n InetSocketAddress getRemoteAddress();\n\n ResultFuture<Response> read();\n}", "title": "" }, { "docid": "5cff30a63ef187a1377fe40e22f027ed", "score": "0.57678413", "text": "AbstractSubscribableChannel getSubscriberChannel(String channelName) {\n\t\treturn getSubscriberChannel(channelName, true);\n\t}", "title": "" }, { "docid": "cf2450b816cf3e6e089482846e3a6ca5", "score": "0.57456005", "text": "public ManagedChannel(Channel channel) {\n\t\tthis.channel = channel;\n\t\tthis.name = new StringBuilder(getClass().getSimpleName()).append(\":\").append(channel.getRemoteAddress()).toString();\n\t}", "title": "" }, { "docid": "704da5e93b4ed1a1e38c8708f2680504", "score": "0.57335865", "text": "public String getChannelCode() {\n return channelCode;\n }", "title": "" }, { "docid": "05926d68f1d4ce18b75bb811af63e95c", "score": "0.5730708", "text": "public interface IChannelMessageEvent {\n\tpublic String getChannel();\n\tpublic String getHostName();\n\tpublic String getMessage();\n\tpublic String getNick();\n\tpublic String getUserName();\n\tpublic String getBotName();\n}", "title": "" }, { "docid": "3bf3a2ade50b255f81c633a4754dcc40", "score": "0.5716324", "text": "final ChannelHandler handler()\r\n/* 286: */ {\r\n/* 287:368 */ return this.handler;\r\n/* 288: */ }", "title": "" }, { "docid": "ff095edf96d73c73e3fb44a2f015e684", "score": "0.57072365", "text": "public long getChannelId() {\n return channelId_;\n }", "title": "" }, { "docid": "caf2704c4514e85549511af899832500", "score": "0.5697227", "text": "public interface BindingChannel {\n\n /**\n * Registers a wire to a service destination\n *\n * @param uri the destination uri\n * @param wire the wire\n * @param callbackUri the callback uri or null\n */\n void registerDestinationWire(URI uri, Wire wire, URI callbackUri);\n\n /**\n * Sends a message to the destination, invoking the given operation. Note overloaded operations are not supported\n *\n * @param destination the destination uri\n * @param operation the operation name\n * @param msg the message\n * @return the response\n */\n Message send(URI destination, String operation, Message msg);\n\n}", "title": "" }, { "docid": "70b2d174da4fc94e44f682d1ca6a47e5", "score": "0.5686542", "text": "yandex.cloud.api.k8s.v1.ClusterOuterClass.ReleaseChannel getReleaseChannel();", "title": "" }, { "docid": "9362ee0f3a955e05466b81752234eb2c", "score": "0.5684995", "text": "public B channel(Class<? extends C> channelClass)\r\n/* 65: */ {\r\n/* 66: 95 */ if (channelClass == null) {\r\n/* 67: 96 */ throw new NullPointerException(\"channelClass\");\r\n/* 68: */ }\r\n/* 69: 98 */ return channelFactory(new BootstrapChannelFactory(channelClass));\r\n/* 70: */ }", "title": "" }, { "docid": "873a491ab76b934390eb7ce448aca1de", "score": "0.5683414", "text": "public Channel getOpenedChannel()\n {\n Channel channel = null;\n Iterator<Channel> it = channels.iterator();\n while (it.hasNext() && channel == null)\n {\n Channel channel2 = it.next();\n if (!channel2.isFull())\n {\n channel = channel2;\n }\n }\n\n return channel;\n }", "title": "" }, { "docid": "77899f2d472499423091a9ef61c5ef8f", "score": "0.56721073", "text": "@Nullable\n Channel getChannel(@Nonnull String name);", "title": "" }, { "docid": "72d0fe287cf84e62583e87b5ce8c6ca0", "score": "0.5671845", "text": "public interface ClientSocketChannel {\r\n\t/**\r\n\t * Serializes the message to a JSON-encoded object and sends it to the client\r\n\t * \r\n\t * @param message Message to send\r\n\t * @throws IOException \r\n\t */\r\n\tpublic void write(GameMessage message) throws IOException;\r\n\t\r\n\t/**\r\n\t * Serializes the message to a JSON-encoded object and buffers it for write to the client\r\n\t * \r\n\t * Use ClientSocketChannel.flush() to write the buffer to the client.\r\n\t * \r\n\t * @param message\r\n\t * @throws IOException\r\n\t */\r\n\tpublic void bufferedWrite(GameMessage message) throws IOException;\r\n\t\r\n\t/**\r\n\t * Write all buffered messages to the client.\r\n\t * \r\n\t * @throws IOException\r\n\t */\r\n\tpublic void flush() throws IOException;\r\n\t\r\n\t/**\r\n\t * Retrieves all pending messages from the client\r\n\t * \r\n\t * @return\r\n\t */\r\n\tpublic List<GameMessage> readMessages();\r\n\r\n\t/**\r\n\t * Retrieves next pending message from the client\r\n\t * \r\n\t * @return\r\n\t */\r\n\tpublic GameMessage readNextMessage();\r\n\t\r\n\t/**\r\n\t * Terminate the underlying socket connection\r\n\t */\r\n\tpublic void disconnect();\r\n\t\r\n\tpublic void setGameManager(GameManager manager);\r\n}", "title": "" }, { "docid": "9aa0c2eaf2649fb9ca5c519631d492ba", "score": "0.56661296", "text": "public static interface InProcessChannel extends Channel {\n\t\tpublic InProcessActor getActor();\n\t}", "title": "" }, { "docid": "586b15d1923c9688ebbf40b343442876", "score": "0.56472003", "text": "public interface ChatService {\n Credential loginUser(CreateUserDto createUserDto);\n void createChannel(CreateChannelDto createChannelDto);\n void removeChannel(ChannelActionDto channelActionDto);\n void joinToChannel(ChannelActionDto channelActionDto);\n void logout(Credential credential);\n List<ChannelInfo> getAllChannels(Credential credential);\n List<MessageDto> getChannelMessage(ChannelActionDto channelActionDto);\n void sendMessage(MessageToSend messageToSend);\n}", "title": "" }, { "docid": "0b6e9529c5c964302467981542794d83", "score": "0.5642121", "text": "public String getChannelNameString() {\n return _channelNameMatch.match();\n }", "title": "" }, { "docid": "6a879a8775789f5b2926e9597ec665d9", "score": "0.5641855", "text": "public String getChannelid() {\n return channelid;\n }", "title": "" }, { "docid": "1273c09a95d8bf7d2179f3251b839df2", "score": "0.5621827", "text": "public String getChannel(int fromId,int destID);", "title": "" }, { "docid": "efda24a76f6ba9991adb9cde7d93547e", "score": "0.5611779", "text": "public String getChannelType() {\n return channelType;\n }", "title": "" }, { "docid": "fba2f2e0a857145e0238fd682aeb5a74", "score": "0.5608896", "text": "SimpleChannel[] getAvailableChannels();", "title": "" } ]
c4ead80012cef0978686d97253dbe4b4
id de figura, son 7 efectos de rotacion
[ { "docid": "c4e3de8bbb33da44e1975249ba8db8bc", "score": "0.0", "text": "public Shape(Square s1, Square s2, Square s3, Square s4) {\r\n this.s1 = s1;\r\n this.s2 = s2;\r\n this.s3 = s3;\r\n this.s4 = s4;\r\n this.s1.imagen.setY(0);\r\n this.s1.imagen.setX(0);\r\n this.s2.imagen.setY(0);\r\n this.s2.imagen.setX(0);\r\n this.s3.imagen.setY(0);\r\n this.s3.imagen.setX(0);\r\n this.s4.imagen.setY(0);\r\n this.s4.imagen.setX(0);\r\n this.pos = 0;\r\n }", "title": "" } ]
[ { "docid": "9add5d3f8738160ac42280ef1067548e", "score": "0.6564971", "text": "private ArrayList<PointInterest> getPontosRota(int id) {\n Log.d(\"iddddarota\", String.valueOf(id));\n pontos = dbHelper.getPontosRota(id);\n route = dbHelper.getDescRota(id);\n\n return pontos;\n }", "title": "" }, { "docid": "61e2e941cf501558e53a2d0a0da0d821", "score": "0.622525", "text": "public Receta(String id) {\n // TODO cargar receta de la base de datos\n this.id = id;\n this.nombre = \"Receta de prueba\";\n Bitmap.Config conf = Bitmap.Config.ARGB_8888;\n Bitmap bmp = Bitmap.createBitmap(200, 200, conf);\n Canvas canvas = new Canvas(bmp);\n canvas.drawColor(Color.RED);\n Paint paint = new Paint();\n paint.setStyle(Paint.Style.FILL);\n paint.setColor(Color.WHITE);\n canvas.drawCircle(100,100, 100, paint);\n paint.setColor(Color.BLACK);\n paint.setTextSize(20);\n canvas.drawText(\"Imagen\\nreceta\", 10, 100, paint);\n ByteArrayOutputStream stream = new ByteArrayOutputStream();\n bmp.compress(Bitmap.CompressFormat.JPEG, 70, stream);\n this.imagen = stream.toByteArray();\n Random r = new Random();\n this.duracionMinutos = r.nextInt(120) + 10;\n this.numeroPersonas = r.nextInt(3) + 1;\n this.ingredientes = new ArrayList<>();\n int numIngredientes = r.nextInt(10) + 5;\n for (int i = 0; i < numIngredientes; i++) {\n this.ingredientes.add(new CantidadIngrediente(new Ingrediente(\"Ingrediente de prueba \" + i, null), numIngredientes - i, \"gramos\"));\n }\n this.pasosReceta = \"Pasos para preparar una deliciosa receta de prueba\";\n }", "title": "" }, { "docid": "a720c32a76c8555e1afa9d3223749b3e", "score": "0.6039415", "text": "long getIdTranche();", "title": "" }, { "docid": "a57ad09bf01015d38821e2d19f19977a", "score": "0.589557", "text": "public Rubro cargarDetalle(int idRubro)\r\n/* 31: */ {\r\n/* 32: 56 */ Rubro rubro = (Rubro)buscarPorId(Integer.valueOf(idRubro));\r\n/* 33: 57 */ if (rubro.getQuincena() != null) {\r\n/* 34: 58 */ rubro.getQuincena().getId();\r\n/* 35: */ }\r\n/* 36: 60 */ if (rubro.getCuentaContableProvision() != null) {\r\n/* 37: 61 */ rubro.getCuentaContableProvision().getId();\r\n/* 38: */ }\r\n/* 39: 63 */ if (rubro.getRubroPadre() != null) {\r\n/* 40: 64 */ rubro.getRubroPadre().getId();\r\n/* 41: */ }\r\n/* 42: 66 */ return rubro;\r\n/* 43: */ }", "title": "" }, { "docid": "c7928741c559d73c492a6d4f29201d17", "score": "0.5724822", "text": "@Override\n\tpublic Image chercherParID(int id) {\n\t\ttry {\n\t\t\tImage image = em.find(Image.class, id);\n\t\t\tSystem.out.println(\"Les donnees ont ete trouvees dans la table Image avec succes !\");\n\t\t\treturn image;\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn null;\n\t}", "title": "" }, { "docid": "e41f03f5c4cd08e8bdecfeb79b564a9d", "score": "0.5721748", "text": "public void rotar (int angulo);", "title": "" }, { "docid": "3dbfff9e13029c66d3e2af93552516a4", "score": "0.56680435", "text": "public void apagarPorId() {\n\n\t}", "title": "" }, { "docid": "282a54b4a46545a5a093b3567add5134", "score": "0.5666405", "text": "public int getIdMedico(){\n return localIdMedico;\n }", "title": "" }, { "docid": "299eec2d90d2121a0e2d4d959dd16265", "score": "0.56583434", "text": "public void hacerRuido(){\n\t\t\n\t}", "title": "" }, { "docid": "62330801aee99bd94b3313fb04ba85bc", "score": "0.5652655", "text": "List<Chequeo> findChequeoBy_parada__idOrderBy_fechaRegistrada(long id);", "title": "" }, { "docid": "ea9d7e052c4f182534ca8266c44a7fad", "score": "0.5638085", "text": "public Carrito getCarritoById(int id){\n // Declaramos un objeto Note para instanciarlo con el resultado del query\n Carrito carrito= null;\n\n // 1. Obtenemos una reference de la BD con permisos de lectura\n SQLiteDatabase db = this.getReadableDatabase();\n\n //Definimos un array con los nombres de las columnas que deseamos sacar\n String[] COLUMNS = {BDCarrito.Carrito.idCol, BDCarrito.Carrito.nombre_producto, BDCarrito.Carrito.precio, BDCarrito.Carrito.unidades, BDCarrito.Carrito.importe, BDCarrito.Carrito.notas};\n\n\n // 2. Contruimos el query\n Cursor cursor =\n db.query(BDCarrito.Carrito.TABLE_NAME, //Nomre de la tabla\n COLUMNS, // b. Nombre de las Columnas\n \" id = ?\", // c. Columnas de la clausula WHERE\n new String[] { String.valueOf(id) }, // d. valores de las columnas de la clausula WHERE\n null, // e. Clausula Group by\n null, // f. Clausula having\n null, // g. Clausula order by\n null); // h. Limte de regsitros\n\n // 3. Si hemos obtenido algun resultado entonces sacamos el primero de ellos ya que se supone\n //que ha de existir un solo registro para un id\n if (cursor != null) {\n cursor.moveToFirst();\n // 4. Contruimos el objeto Note\n carrito = new Carrito();\n carrito.setId(cursor.getString(0));\n carrito.setNombre(cursor.getString(1));\n carrito.setPrecio(Float.valueOf(cursor.getString(2)));\n carrito.setUnidades(Integer.valueOf(cursor.getString(3)));\n carrito.setImporte(Float.parseFloat(cursor.getString(4)));\n carrito.setNotas(cursor.getString(5));\n\n }\n\n // 5. Devolvemos le objeto carrito\n return carrito;\n }", "title": "" }, { "docid": "a09df92433961c03406ec3b8b452c443", "score": "0.56170076", "text": "public int getId()\r\n/* 231: */ {\r\n/* 232:323 */ return this.idRegistroPeso;\r\n/* 233: */ }", "title": "" }, { "docid": "2f149cd1182c87641bfcfa4254d2b65f", "score": "0.5597495", "text": "void calcularPuntuacion(Integer idCancion);", "title": "" }, { "docid": "cb88cc5cf7d3f48eb81fc880b10a2b56", "score": "0.55938685", "text": "private void guardarBitacora(PlanillaCata planillaCata, boolean edicion) {\r\n\t\tURL url = getClass().getResource(\"/imagenes/si.png\");\r\n\t\ttry {\r\n\t\t\timagenSi.setContent(new AImage(url));\r\n\t\t} catch (IOException e1) {\r\n\t\t\te1.printStackTrace();\r\n\t\t}\r\n\t\tbyte[] imagen = imagenSi.getContent().getByteData();\r\n\r\n\t\tURL url2 = getClass().getResource(\"/imagenes/no.png\");\r\n\t\ttry {\r\n\t\t\timagenNo.setContent(new AImage(url2));\r\n\t\t} catch (IOException e1) {\r\n\t\t\te1.printStackTrace();\r\n\t\t}\r\n\t\tbyte[] imagenX = imagenNo.getContent().getByteData();\r\n\r\n\t\tif (edicion) {\r\n\t\t\tBitacoraCata bitacora = new BitacoraCata(0, planillaCata,\r\n\t\t\t\t\t\"Planilla en Edicion\", fechaHora, fechaHora, horaAuditoria,\r\n\t\t\t\t\tnombreUsuarioSesion(), imagen);\r\n\t\t\tservicioBitacoraCata.guardar(bitacora);\r\n\t\t} else {\r\n\r\n\t\t\tif (id == 0) {\r\n\t\t\t\tBitacoraCata bitacora = new BitacoraCata(0, planillaCata,\r\n\t\t\t\t\t\t\"Planilla en Edicion\", fechaHora, fechaHora,\r\n\t\t\t\t\t\thoraAuditoria, nombreUsuarioSesion(), imagen);\r\n\t\t\t\tservicioBitacoraCata.guardar(bitacora);\r\n\t\t\t}\r\n\t\t\tList<BitacoraCata> listaBitacoras = new ArrayList<BitacoraCata>();\r\n\t\t\tBitacoraCata bitacora = new BitacoraCata(0, planillaCata,\r\n\t\t\t\t\t\"Planilla Enviada\", fechaHora, fechaHora, horaAuditoria,\r\n\t\t\t\t\tnombreUsuarioSesion(), imagen);\r\n\t\t\tlistaBitacoras.add(bitacora);\r\n\r\n\t\t\tBitacoraCata bitacora2 = new BitacoraCata(0, planillaCata,\r\n\t\t\t\t\t\"Esperando Aprobacion de Planilla\", fechaHora, fechaHora,\r\n\t\t\t\t\thoraAuditoria, nombreUsuarioSesion(), imagenX);\r\n\t\t\tlistaBitacoras.add(bitacora2);\r\n\r\n\t\t\tBitacoraCata bitacora3 = new BitacoraCata(0, planillaCata,\r\n\t\t\t\t\t\"Esperando Finalizacion de Planilla\", fechaHora, fechaHora,\r\n\t\t\t\t\thoraAuditoria, nombreUsuarioSesion(), imagenX);\r\n\t\t\tlistaBitacoras.add(bitacora3);\r\n\r\n\t\t\tBitacoraCata bitacora4 = new BitacoraCata(0, planillaCata,\r\n\t\t\t\t\t\"Esperando Pago de Planilla\", fechaHora, fechaHora,\r\n\t\t\t\t\thoraAuditoria, nombreUsuarioSesion(), imagenX);\r\n\t\t\tlistaBitacoras.add(bitacora4);\r\n\r\n\t\t\tservicioBitacoraCata.guardarBitacoras(listaBitacoras);\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "83641a63cae2a225d7d29c408ed997f0", "score": "0.55900025", "text": "public void setIdJoueur(int id){\n mIdJoueur = id;\n }", "title": "" }, { "docid": "3d033c39c82cff508ef35a0d94fc94fc", "score": "0.5576431", "text": "@SuppressWarnings(\"unchecked\")\n\tprivate void rotacionOperarioLista() \n\t{\t\t\n\t\tint x=60;\n\t\twhile(x>1) {\n\t\ttry {\n\t\tif (numOperariosPuestos>numOperarios) {\n\t\t\tresultadoInc=\"Operarios: \"+operarios.size();\n\t\t\tresultadoCor=\"Puestos: \"+puestos.size();\t\t\t\n\t\t\treturn;}\n\t Collection <PuestoJPA> pos= puestos;\n\t List <OperarioJPA> opsI= operarios;\n\t List <OperarioJPA> opsF= operarios;\n\t\tIterator <PuestoJPA> itsPo= puestos.iterator();\n\t Calendar calendar = Calendar.getInstance();\n\t calendar.setTime(Date.valueOf(LocalDate.now())); \n\t calendar.add(Calendar.DAY_OF_YEAR, -(int)(numOperarios*(2))); // numero de días a añadir, o restar en caso de días<0\n\t java.sql.Date f = new Date (calendar.getTimeInMillis());\t\t\n\t while (itsPo.hasNext()) {\n\t \tPuestoJPA p= itsPo.next();\n\t\t\tif(p.getRequerido()==true) {\n\t\t\t\tint operariosPuesto =p.getNumOperarios();\n\t\t\t\tList <OperarioJPA> opsSelect=new ArrayList<OperarioJPA>(sistemaRotacionesRemote.asignarPosicion(rotacion,p,opsI,f));\t\t\t\t\n\t\t\t\tif(opsSelect!=null) {\n\t\t\t\t\tIterator<OperarioJPA> it = opsSelect.iterator();\n\t\t\t\t\twhile (it.hasNext()) {\n\t\t\t\t\t\tint i = it.next().getId();\n\t\t\t\t\t\tIterator<OperarioJPA> it2 = operarios.iterator();\n\t\t\t\t\t\twhile (it2.hasNext()) {\n\t\t\t\t\t\t\tint i2 = it2.next().getId();\n\t\t\t\t\t\t\tif(i==i2){\n\t\t\t\t\t\t\t\tit2.remove();\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\tresultadoInc=\"\";\n\t\t\t\tresultadoCor=\"OK\";\t\n\t\t }\n\t\t}\n\t\trotacionOperarioLista=sistemaRotacionesRemote.getRotacion(rotacion.getId());\n\t\t}catch(Exception e) {resultadoInc=\"CATCH \";}\n\t\t}\n\t\tx--;\n\t\treturn ;\n\t}", "title": "" }, { "docid": "e849b80ec5e90527f311d5ca0c8e5a26", "score": "0.5575921", "text": "@Override\n\tpublic Long procitajId() {\n\t\treturn Long.valueOf(zaglavljeFakture.getIdPoruke());\n\t}", "title": "" }, { "docid": "4d8f190bb5619592a5f329ba681d8e03", "score": "0.5573971", "text": "long getImageId();", "title": "" }, { "docid": "5375e7e2966aa40838c8c0d9f950d669", "score": "0.55597186", "text": "public abstract java.lang.Long getRoha_id();", "title": "" }, { "docid": "b5d2397c68ebb3fcaa5c7315eeb58f2a", "score": "0.554711", "text": "public void clicEditarRamo(String id) {\n\t\t\n\t}", "title": "" }, { "docid": "9bfd141031558affbd9fda0da987542e", "score": "0.5539016", "text": "private void rotate()\n {\n\n /*Die rotate Methode rotiert immer um die Mitte eines Objektes. Das ist ein Problem bei Geraden\n Schiffen weil sie nach dem Rotieren zwischen zwei Feldern liegen würden. Hier verhindern wir\n das, durch Differezenaufsummierung, je nachdem wie oft gedreht wurde.*/\n if (getLength() % 2 == 1)\n {\n double value = imageView.getRotate();\n imageView.setRotate(value - 90);\n } else\n {\n /*rotate: Je nachdem welcher Wert rotate hat, muss man addieren oder subtrahieren (kommt\n drauf an wie oft man geklickt hat),*/\n if (rotate % 2 == 1)\n {\n double value = imageView.getRotate();\n imageView.setRotate(value - 90);\n imageView.setX(imageView.getX() + 20);\n imageView.setY(imageView.getY() - 20);\n } else\n {\n double value = imageView.getRotate();\n imageView.setRotate(value - 90);\n imageView.setX(imageView.getX() - 20);\n imageView.setY(imageView.getY() + 20);\n }\n }\n rotate++;\n\n /*Switch ist dafür da, um die Bilder die wir drehen und die ImageShips (\"Digital angelegte\n Schiffe\" die wir erstellen, nach dem Rotieren abzugleichen. Weil nur weil wir das Bild drehen,\n heißt es ja nicht, dass sich unsere ImageShips mitdrehen. Sind ja zwei verschiedene\n Entitäten. Immer Abhängig von welcher Richtung man dreht, ändern wir manuell dann die\n Direction mit den dementsprechenden Rechungen auch um.*/\n switch (direction) {\n case UP -> {\n direction = Direction.LEFT;\n if (getLength() % 2 == 1) {\n setX(getX() + 40 * (getLength() / 2));\n setY(getY() - 40 * (getLength() / 2));\n\n setDiffvectorx(getDiffvectorx() + 40 * (getLength() / 2));\n setDiffvectory(getDiffvectory() - 40 * (getLength() / 2));\n } else {\n if (getLength() != 2) {\n setX(getX() + 40);\n setY(getY() - 40);\n\n setDiffvectorx(getDiffvectorx() + 40);\n setDiffvectory(getDiffvectory() - 40);\n }\n }\n }\n case DOWN -> {\n direction = Direction.RIGHT;\n if (getLength() % 2 == 1) {\n setX(getX() - 40 * (getLength() / 2));\n setY(getY() + 40 * (getLength() / 2));\n\n setDiffvectorx(getDiffvectorx() - 40 * (getLength() / 2));\n setDiffvectory(getDiffvectory() + 40 * (getLength() / 2));\n } else {\n if (getLength() == 2) {\n setX(getX() - 40);\n setY(getY() + 40);\n\n setDiffvectorx(getDiffvectorx() - 40);\n setDiffvectory(getDiffvectory() + 40);\n\n } else {\n setX(getX() - 2 * 40);\n setY(getY() + 2 * 40);\n\n setDiffvectorx(getDiffvectorx() - 40 * 2);\n setDiffvectory(getDiffvectory() + 40 * 2);\n }\n }\n }\n case LEFT -> {\n direction = Direction.DOWN;\n if (getLength() % 2 == 1) {\n setX(getX() - 40 * (getLength() / 2));\n setY(getY() - 40 * (getLength() / 2));\n\n setDiffvectorx(getDiffvectorx() - 40 * (getLength() / 2));\n setDiffvectory(getDiffvectory() - 40 * (getLength() / 2));\n } else {\n if (getLength() == 2) {\n setY(getY() - 40);\n\n setDiffvectory(getDiffvectory() - 40);\n } else {\n setX(getX() - 40);\n setY(getY() - 2 * 40);\n\n setDiffvectorx(getDiffvectorx() - 40);\n setDiffvectory(getDiffvectory() - 40 * 2);\n }\n }\n }\n case RIGHT -> {\n direction = Direction.UP;\n if (getLength() % 2 == 1) {\n setX(getX() + 40 * (getLength() / 2));\n setY(getY() + 40 * (getLength() / 2));\n\n setDiffvectorx(getDiffvectorx() + 40 * (getLength() / 2));\n setDiffvectory(getDiffvectory() + 40 * (getLength() / 2));\n\n } else {\n if (getLength() == 2) {\n setX(getX() + 40);\n\n setDiffvectorx(getDiffvectorx() + 40);\n\n } else {\n setX(getX() + 2 * 40);\n setY(getY() + 40);\n\n setDiffvectorx(getDiffvectorx() + 2 * 40);\n setDiffvectory(getDiffvectory() + 40);\n }\n }\n }\n }\n int[] a = calculateXY(getX(), getY());\n if (a.length > 0)\n log.debug(\"x= \" + (a[0] + 1) + \"y= \" + (a[1] + 1));\n\n\n }", "title": "" }, { "docid": "593925d821c1cb6e191aad25b4989d42", "score": "0.553646", "text": "void inicialitzarDades() {\n dades = new MatriuDades(objectes.obtenirLong(), propietats.obtenirLong(), this);\n }", "title": "" }, { "docid": "4e2d8dd9f3ff11ff378e07284a62be42", "score": "0.55351704", "text": "public void comprarContenido(String idFan, int idContenido, int idArtista);", "title": "" }, { "docid": "331ff305843fa2101ab931f62e0169d7", "score": "0.55350715", "text": "public movilidadAcademica findById(String id);", "title": "" }, { "docid": "a98e33e906ef7271b6667c6c46d13e06", "score": "0.55270165", "text": "public int getIdConto();", "title": "" }, { "docid": "0fd9cfc4ad8362679433c1020f171100", "score": "0.55228573", "text": "public int PasaPorSeguroTorre(int movimiento, Ficha f){\r\n int mov=movimiento;\r\n for (int i = f.getCasilla().getCamino()+1; i < movimiento; i++) {\r\n System.out.println(\"i \"+i);\r\n //se determina asi porque el \"numero\" de la casilla de torre es igual al \"id\" de la ficha que lo puede subir\r\n if (this.casilla1[1][i].getTipo().getNumero()==f.getTipo().getId()) {\r\n f.getCasilla().getCantidad().remove(f);\r\n this.casilla1[1][i].getCantidad().add(f);\r\n f.setCasilla(this.casilla1[1][i]);\r\n mov=movimiento-i+1;\r\n i=movimiento;\r\n } else {\r\n }\r\n }\r\n return mov;\r\n }", "title": "" }, { "docid": "18a81206c1e94312e8a774b16e9c5929", "score": "0.5507052", "text": "public int getId()\r\n/* 236: */ {\r\n/* 237:424 */ return this.idTareaProduccion;\r\n/* 238: */ }", "title": "" }, { "docid": "38a7589b0ae572095dded6c1ed76bbb3", "score": "0.55061567", "text": "public FigurasCerradas(int id) {\n\t\tthis.id = id;\n\t}", "title": "" }, { "docid": "d7f8523cbff1df23d281be09eba2fa2e", "score": "0.548723", "text": "private void perder(clsCasilla casilla) {\n vm.setJugando(false);\n mostrarMinas(casilla.getPosX(), casilla.getPosY());\n cronometro.stop();\n carita.setImageResource(R.drawable.caritaperdedor);\n final String id = user.getUid();\n final boolean[] primeraInserccion = {true}; //esto es un poco raro pero es la unica forma que he encontrado de controlar desde fuera del metodo asyncrono los if´s de dentro\n\n //Hace una llamada a firebase coge la partida segun la dificultad y la actualiza metiendole el numero de partidas jugadas y derrotas\n mDatabase.child(\"Usuarios\").child(id).child(dificultad).addValueEventListener(new ValueEventListener() {\n @Override\n public void onDataChange(DataSnapshot dataSnapshot) {\n Partida partida = dataSnapshot.getValue(Partida.class);\n\n if (partida == null && primeraInserccion[0]) {\n partida = new Partida();\n partida.setDificultad(dificultad);\n partida.setNumeroPartidas(1);\n primeraInserccion[0] = false;\n } else if (partida != null && primeraInserccion[0]) {\n partida.setNumeroPartidas(partida.getNumeroPartidas() + 1);\n primeraInserccion[0] = false;\n }\n\n mDatabase.child(\"Usuarios\").child(id).child(partida.getDificultad()).setValue(partida);\n }\n\n @Override\n public void onCancelled(@NonNull DatabaseError databaseError) {\n\n }\n });\n Toast.makeText(this, \"Has perdido\", Toast.LENGTH_SHORT).show();\n }", "title": "" }, { "docid": "40fcb3bd12b7eacc0bd912b1402d8cd8", "score": "0.5486616", "text": "public void cambiaDireccion(int Rotacion)\r\n {\r\n if (Rotacion==270 || Rotacion==-90) \r\n direccion=1; \r\n if(Rotacion==0)\r\n direccion=2; \r\n if(Rotacion==90 || Rotacion==-270)\r\n direccion=3; \r\n if(Rotacion==180 || Rotacion==-180)\r\n direccion=4;\r\n }", "title": "" }, { "docid": "ce47a3e7b91fc9ac1c1edcc94dc6ca43", "score": "0.5484945", "text": "public void setSeccion(int id){\n this.id_casilla = id;\n }", "title": "" }, { "docid": "58e4d4c1bd396c982d0e65053576b405", "score": "0.5482162", "text": "public void setCasilla(int id){\n this.id_casilla = id;\n }", "title": "" }, { "docid": "ef6fea3db60b6dd8d39c5a89280fea30", "score": "0.5478798", "text": "java.lang.String getPixId();", "title": "" }, { "docid": "b33679b9c05ab25800460c4a230a546a", "score": "0.54763883", "text": "private void victoria() {\n final String id = user.getUid();\n final boolean[] primeraInserccion = {true}; //esto es un poco raro pero es la unica forma que he encontrado de controlar desde fuera del metodo asyncrono los if´s de dentro\n\n int numeroDeCasillaSinMinas = (vm.getAltura()*vm.getAncho()) - vm.getNumeroMinas();\n int contadorCasillasMostradas = 0;\n for(int i = 0; i < vm.getAltura(); i++){\n for(int j = 0; j < vm.getAncho(); j++){\n if(vm.getTablero().getTablero()[i][j].getYaPulsada()){\n contadorCasillasMostradas++;\n }\n\n }\n }\n if(numeroDeCasillaSinMinas == contadorCasillasMostradas) { //para saber si es una victoria lo que compruebo es el numero de casillas pulsadas con el numero de casillas sin minas\n carita.setImageResource(R.drawable.caritaganador);\n Toast.makeText(this, \"Has ganado!\", Toast.LENGTH_SHORT).show();\n if(!desactivarSonido) {\n if (dificultad.equals(\"Nivel Extremo\")) { //dependiendo de la dificultad el sonido de la victoria es diferente\n mediaPlayer = MediaPlayer.create(this, R.raw.triunfoextremo);\n mediaPlayer.start();\n } else {\n mediaPlayer = MediaPlayer.create(this, R.raw.ganar);\n mediaPlayer.start();\n }\n }\n\n cronometro.stop();\n vm.setJugando(false);\n\n //Hace una llamada a firebase coge la partida segun la dificultad y la actualiza metiendole el numero de partidas jugadas y victorias\n mDatabase.child(\"Usuarios\").child(id).child(dificultad).addValueEventListener(new ValueEventListener() {\n @Override\n public void onDataChange(DataSnapshot dataSnapshot) {\n Partida partida = dataSnapshot.getValue(Partida.class);\n\n if(partida == null && primeraInserccion[0]){\n partida = new Partida();\n partida.setDificultad(dificultad);\n partida.setNumeroPartidas(1);\n partida.setNumeroPartidasGanadas(1);\n primeraInserccion[0] = false;\n }else\n if(partida != null && primeraInserccion[0]){\n partida.setNumeroPartidas(partida.getNumeroPartidas()+1);\n partida.setNumeroPartidasGanadas(partida.getNumeroPartidasGanadas()+1);\n primeraInserccion[0] = false;\n }\n\n mDatabase.child(\"Usuarios\").child(id).child(partida.getDificultad()).setValue(partida);\n }\n\n @Override\n public void onCancelled(@NonNull DatabaseError databaseError) {\n\n }\n });\n\n }\n }", "title": "" }, { "docid": "12985b39056ad12cddb7dc1ce0be5929", "score": "0.54728675", "text": "private void guardarAnimales() {\n\n //Uri uri = Uri.parse(ContentResolver.SCHEME_ANDROID_RESOURCE\n //+ \"://\" + this.getResources().getResourceName(R.drawable.conejo)\n //+ '/' + this.getResources().getResourceTypeName(R.drawable.conejo)\n //+ '/' + this.getResources().getResourceEntryName(R.drawable.conejo)\n //);\n\n\n txt_icono = getResources().getResourceName(R.drawable.conejo);\n txt_nombre = nombre.getText().toString().trim();\n txt_nPatas = nPatas.getText().toString().trim();\n txt_tAnimal = tAnimal.getText().toString().trim();\n txt_descripcion = descripcion.getText().toString().trim();\n\n String timestamp = \"\" + System.currentTimeMillis();\n long id;\n //Esto es para que cuando le demos a editar use el metodo editarAnimales\n if (!editar) {\n id = claseBD.insertarDatos(txt_icono, txt_nombre, txt_nPatas, txt_tAnimal, txt_descripcion);\n } else {\n claseBD.editarAnimales(txt_id, txt_nombre, txt_nPatas, txt_tAnimal, txt_descripcion);\n }\n }", "title": "" }, { "docid": "07924fea16cd9adeac5aca50e7dec147", "score": "0.546763", "text": "private void leerDatos(String id) {\n ArrayList<itfProperty> lUsuarios = objGestor.leerUsuarios();\n for (itfProperty usuario : lUsuarios) {\n if (usuario.getPropertyU(USUARIO_IDENTIFICADOR).equals(id)) {\n costeTotal = (Double) usuario.getPropertyU(USUARIO_COSTE_TOTAL);\n codigo_aleatorio = (int) usuario.getPropertyU(USUARIO_CODIGO_ID);\n }\n }\n }", "title": "" }, { "docid": "5c44d5f6462f8a28f793f962bdc698e8", "score": "0.5462413", "text": "public ArrayList<Ordinazione> getOrdiniCameriere(int id) throws SQLException {\n String query = \"SELECT ord.idordinazioni, ord.serviziocamera, ord.camera, ord.tavolo, ord.stato, ord.conto\" +\n \" FROM ordinazioni as ord JOIN ordinazioni_has_personale_ristoro as cpr on\" +\n \" (ord.idordinazioni=cpr.ordinazioni_idordinazioni) JOIN personale_ristoro pr on\" +\n \"(cpr.personale_ristoro_idpersonale_ristoro=pr.idpersonale_ristoro)\" +\n \"WHERE (pr.idpersonale_ristoro='\" + id + \"');\";\n ArrayList<Ordinazione> lista= new ArrayList<Ordinazione>();\n try {\n Statement st = DAOSettings.getStatement();\n ResultSet rs = st.executeQuery(query);\n while (rs.next())\n {lista.add(new Ordinazione(\n rs.getInt(\"idordinazioni\"),\n rs.getInt(\"serviziocamera\"),\n rs.getInt(\"camera\"),\n rs.getInt(\"tavolo\"),\n rs.getString(\"stato\"),\n rs.getDouble(\"conto\")));\n }\n DAOSettings.closeStatement(st);\n\n } catch (SQLException e) {\n e.printStackTrace();\n }\n return lista;\n }", "title": "" }, { "docid": "98c0b8e1c227ff7e4266fd6791dd0c27", "score": "0.5442938", "text": "public Sala obtenerSala(int idSala);", "title": "" }, { "docid": "5314fe89debdbba3ca3c6e4490dec12d", "score": "0.5435765", "text": "@Override\n\tpublic Funcionario recuperaPorId(long id) throws Exception {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "4b008691b75fffbacae99f2e03480587", "score": "0.54352105", "text": "@Override\n\tpublic int getIdAsesor() {\n\t\treturn 0;\n\t}", "title": "" }, { "docid": "7d38cd028592828ce4d8c39d8029bfb0", "score": "0.54266", "text": "EstadoGeneracion comprobarEstadoGeneracionRelacion(long id);", "title": "" }, { "docid": "ddafdd56d6d4b904d170e3608181850c", "score": "0.5422196", "text": "private void getArtefactId() {\n\t\t\n\t}", "title": "" }, { "docid": "a4ee8e0daf8ad261079b7535a1947bcc", "score": "0.5421061", "text": "private void posicionarPecas() {\n\t\t\n\t\tint colunaMeio = (this.map[0].length)/2;\n\t\t\n\t\tfor(int i = 0 ; i < this.map[0].length ; i++) {\n\t\t\tif(i == colunaMeio)\n\t\t\t\tcontinue;\n\t\t\t\n\t\t\tthis.map[1][i] = TypePiece.PIRATA_02.getId();\n\t\t\tthis.map[this.map.length-2][i] = TypePiece.PIRATA_01.getId();\n\t\t}\n\t\t\n\t\tthis.map[this.map.length-1][colunaMeio] = TypePiece.TESOURO_01.getId();\n\t\tthis.map[0][colunaMeio] = TypePiece.TESOURO_02.getId();\n\t}", "title": "" }, { "docid": "7a90e6d5be4590c64229d83d68601b9c", "score": "0.54203457", "text": "@Override\n\t\t\tpublic long getId() {\n\t\t\t\treturn 0;\n\t\t\t}", "title": "" }, { "docid": "7a90e6d5be4590c64229d83d68601b9c", "score": "0.54203457", "text": "@Override\n\t\t\tpublic long getId() {\n\t\t\t\treturn 0;\n\t\t\t}", "title": "" }, { "docid": "57e8814539e509f3c2a0f3de9554c1f1", "score": "0.541924", "text": "public RelatorioChamados select(int id){\r\n RelatorioChamados relatorio = null;\r\n CriarConexao();\r\n \r\n try {\r\n \r\n preparacao = conexao.prepareStatement(\"SELECT * FROM relatoriochamados WHERE id=?\");\r\n preparacao.setInt(1,id); \r\n resultado = preparacao.executeQuery();\r\n \r\n while(resultado.next()){\r\n relatorio = new RelatorioChamados(resultado.getInt(\"id\"), resultado.getString(\"tipo\"), resultado.getDate(\"dataRelatorio\"), resultado.getString(\"caminhoArquivo\"));\r\n }\r\n \r\n } catch (SQLException ex) {\r\n Logger.getLogger(RelatorioChamadosDao.class.getName()).log(Level.SEVERE, null, ex);\r\n } finally {\r\n fecharConexao();\r\n }\r\n \r\n return relatorio;\r\n }", "title": "" }, { "docid": "e18572b5b4723d49e56ad5bdc222847c", "score": "0.5405248", "text": "public static String listaCaminho(int idTela) {\n\n\t\tString modulo = \"\";\n\t\tString subModulo = \"\";\n\t\tString tela = \"\";\n\n\t\ttry {\n\t\t\tClass.forName(driver);\n\t\t\tConnection con = DriverManager.getConnection(connectString, user,\n\t\t\t\t\tpassword);\n\t\t\tStatement stmt = con.createStatement();\n\t\t\tResultSet rs = stmt\n\t\t\t\t\t.executeQuery(\"SELECT rec.descricao, re.descricao, \"\n\t\t\t\t\t\t\t+ \"r.descricao FROM recurso r INNER JOIN recurso re ON r.recursoidpai = \"\n\t\t\t\t\t\t\t+ \"re.recursoid INNER JOIN recurso rec ON re.recursoidpai = rec.recursoid WHERE r.recursoid = \"\n\t\t\t\t\t\t\t+ idTela);\n\n\t\t\twhile (rs.next()) {\n\t\t\t\tmodulo = rs.getString(1);\n\t\t\t\tsubModulo = rs.getString(2);\n\t\t\t\ttela = rs.getString(3);\n\t\t\t}\n\n\t\t\tstmt.close();\n\t\t\tcon.close();\n\t\t} catch (Exception e) {\n\t\t\tSystem.err.println(e.getMessage());\n\t\t}\n\n\t\treturn modulo + \" >> \" + subModulo + \" >> \" + tela;\n\n\t}", "title": "" }, { "docid": "a3560229515abeb1b3ff68914e6731c9", "score": "0.54023373", "text": "public void anchura() {\n Nodo aux;\n if (raiz != null) {\n cola.add(raiz);//insertando la cabeza\n while (!cola.isEmpty()) {\n aux = cola.poll();\n System.out.println(aux.id);\n if (!(aux.izdo == null)) {\n cola.add(aux.izdo);\n }\n if (!(aux.dcho == null)) {\n cola.add(aux.dcho);\n }\n }\n }\n }", "title": "" }, { "docid": "8e07f07153fd086ab332b4f37cd4db83", "score": "0.540014", "text": "public int getIdRisorsa() {\r\n\t\treturn idRisorsa;\r\n\t}", "title": "" }, { "docid": "6a2592fbc65ee31987c61162266bf2e4", "score": "0.5398432", "text": "private void dibujarVidas(){\n int total = meuMundo.getLisa().getVida();\n for(int i = 0; i < total; i++){\n if(i == 0){\n spritebatch.draw(AssetsXogo.star, 200, Mundo.SUELO - 55, 32,32);\n }\n if(i == 1){\n spritebatch.draw(AssetsXogo.star, 250, Mundo.SUELO - 55, 32,32);\n }\n if(i == 2){\n spritebatch.draw(AssetsXogo.star, 300, Mundo.SUELO - 55, 32,32);\n }\n }\n if(meuMundo.getLisa().getNewVida() == 1){\n spritebatch.draw(AssetsXogo.star1,400,250,32,32);\n }\n if(meuMundo.getLisa().getNewVida() == 2){\n spritebatch.draw(AssetsXogo.star2,400,250,32,32);\n }\n if(meuMundo.getLisa().getNewVida() == 3){\n spritebatch.draw(AssetsXogo.star,400,250,32,32);\n }\n }", "title": "" }, { "docid": "7ae672b1d73e4ce8933cf818ea8ce222", "score": "0.53982157", "text": "@Override\n\t\t\t\t\t\t\tpublic long getId() {\n\t\t\t\t\t\t\t\treturn 0;\n\t\t\t\t\t\t\t}", "title": "" }, { "docid": "9f5e17db934ea24fea32c71bbad5bd05", "score": "0.53858346", "text": "public static void setIdOrdem() {\n idOrdem++;\n }", "title": "" }, { "docid": "0edb4e0b7f9f88f73595d87a3d6a49b2", "score": "0.53779143", "text": "public Contenido obtenerContenido(String idArtista, int idContenido, String idFan);", "title": "" }, { "docid": "600e489fa9dfb15e985ada5c583ddcf5", "score": "0.5377602", "text": "private void ventanaAlquilerV() {\n\n ArrayList<itfProperty> videojuegos = objGestor.leerVideojuegos();\n for (itfProperty videojuego : videojuegos) {\n\n internalAlquiler internalAlquilerV = new internalAlquiler(videojuego, objGestor, 2, id, recuentoH, recuentoV);\n listaInternalFrames.add(internalAlquilerV);\n panel.add(internalAlquilerV);\n internalAlquilerV.setVisible(true);\n recuentoH++;\n if (recuentoH == 4 || recuentoH == 8 || recuentoH == 12) {\n recuentoV++;\n recuentoH = 0;\n }\n }\n }", "title": "" }, { "docid": "f37569c6075e4091f3d314e79e15e75b", "score": "0.5374192", "text": "EstadoGeneracion comprobarEstadoGeneracionProblema(long id);", "title": "" }, { "docid": "0e901df5242052e3be03a26afe098497", "score": "0.5371906", "text": "public int getId()\r\n/* 106: */ {\r\n/* 107:155 */ return this.idPagoCash;\r\n/* 108: */ }", "title": "" }, { "docid": "9bde0346136d0aed65f174b2811c9cc5", "score": "0.5361488", "text": "private static void notasSupermercado4(SQLiteDatabase db, Integer idSupermercado ) {\n carregarRecomendacoesProduto(db, 31, 1, idSupermercado, 0.8);\n carregarRecomendacoesProduto(db, 33, 1, idSupermercado, 0.3);\n carregarRecomendacoesProduto(db, 36, 1, idSupermercado, 0.4);\n carregarRecomendacoesProduto(db, 28, 1, idSupermercado, 0.5);\n //Notas dadas pelo Usuario2 para os produtos do Supermercado4\n carregarRecomendacoesProduto(db, 32, 2, idSupermercado, 0.6);\n carregarRecomendacoesProduto(db, 34, 2, idSupermercado, 0.4);\n carregarRecomendacoesProduto(db, 30, 2, idSupermercado, 0.3);\n carregarRecomendacoesProduto(db, 29, 2, idSupermercado, 0.3);\n //Notas dadas pelo Usuario3 para os produtos do Supermercado4\n carregarRecomendacoesProduto(db, 35, 3, idSupermercado, 0.7);\n carregarRecomendacoesProduto(db, 34, 3, idSupermercado, 1.3);\n carregarRecomendacoesProduto(db, 33, 3, idSupermercado, 1.0);\n carregarRecomendacoesProduto(db, 29, 3, idSupermercado, 0.7);\n //Notas dadas pelo Usuario4 para os produtos do Supermercado4\n carregarRecomendacoesProduto(db, 31, 4, idSupermercado, 0.8);\n carregarRecomendacoesProduto(db, 30, 4, idSupermercado, 0.2);\n carregarRecomendacoesProduto(db, 36, 4, idSupermercado, 0.1);\n carregarRecomendacoesProduto(db, 32, 4, idSupermercado, 0.9);\n }", "title": "" }, { "docid": "03518f4defa1806968c63b9ed3c36125", "score": "0.53549546", "text": "@Override\r\n\tpublic void bilgiler(long id) {\n\t\t\r\n\t}", "title": "" }, { "docid": "3d873134771b5d1e0e25aae504aab462", "score": "0.53519255", "text": "public int getIdSucursal()\r\n/* 256: */ {\r\n/* 257:346 */ return this.idSucursal;\r\n/* 258: */ }", "title": "" }, { "docid": "e52601a442b24d79b5a3d723617fc7b5", "score": "0.53505015", "text": "@Override\n\t\t\t\t\tpublic long getId() {\n\t\t\t\t\t\treturn 0;\n\t\t\t\t\t}", "title": "" }, { "docid": "e52601a442b24d79b5a3d723617fc7b5", "score": "0.53505015", "text": "@Override\n\t\t\t\t\tpublic long getId() {\n\t\t\t\t\t\treturn 0;\n\t\t\t\t\t}", "title": "" }, { "docid": "5c7335f3efb354bd46b9dc22411f3610", "score": "0.534315", "text": "public String gerarRelatorio(int id){\n String aux =ids.get(id).toString();\n return aux;\n \n }", "title": "" }, { "docid": "ed6a4a014f5f91288ac925ffb2e94cb4", "score": "0.5340276", "text": "public Idioma getIdioma(){\n return localIdioma;\n }", "title": "" }, { "docid": "ed6a4a014f5f91288ac925ffb2e94cb4", "score": "0.5340276", "text": "public Idioma getIdioma(){\n return localIdioma;\n }", "title": "" }, { "docid": "4e14caca8d79260e0de4ccfe1e3a44a2", "score": "0.5335942", "text": "Long getPuzzleId();", "title": "" }, { "docid": "a5392651899f965aee45dcaa68875982", "score": "0.5332483", "text": "public IdSegnalazione(long id) {\r\n super(id);\r\n }", "title": "" }, { "docid": "01b89cc64934bfcaf35e2a47db0509e2", "score": "0.53272635", "text": "@Override\n\tpublic void postaviID(Long id) {\n\t\tzaglavljeFakture.setIdPoruke(String.valueOf(id));\n\t}", "title": "" }, { "docid": "3f5df60a99867c1ecd4ed5a163bad3b3", "score": "0.5325042", "text": "long getIdFintool();", "title": "" }, { "docid": "107150479f91e9c177ed858513bb1f8a", "score": "0.5321068", "text": "@Override\n\tprotected void rotinasInicializacao() {\n\t\t\n\t}", "title": "" }, { "docid": "dbdc1deb5da4aee65d17f30f15f26778", "score": "0.53192717", "text": "private void getParentArtefactId() {\n\t\t\n\t}", "title": "" }, { "docid": "26804d46c4d8f6c771be200dabfd60e9", "score": "0.531563", "text": "public int getIdPosSchetFakt() {\n\treturn idPosSchetFakt;\n}", "title": "" }, { "docid": "63a66253cb16cf2cf4686717df749df4", "score": "0.5313414", "text": "@Override\n public long getId_paso() {\n return _requisito.getId_paso();\n }", "title": "" }, { "docid": "c5ff6fdef615c4fc8ffc7171e436011a", "score": "0.53110933", "text": "@Override\n\tprotected void rotinasFinalizacao() {\n\t\t\n\t}", "title": "" }, { "docid": "d9db296c8f731cfa78186ffeb845542f", "score": "0.53082144", "text": "@Override\n\tpublic Carro buscarXId(int id_factura) {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "6b3ed74b9c9170ba464b9ba898dcf599", "score": "0.5307418", "text": "public int getIdCasilla(){\n return this.id_casilla;\n }", "title": "" }, { "docid": "4bb061bd424a40d753fa15bdca6ecddf", "score": "0.53030115", "text": "public int getLeftArcId();", "title": "" }, { "docid": "61c993bf52ba3422b8eaca18bed82cd5", "score": "0.52983636", "text": "private void rotacionarDireita(NoVermelhoPreto No, Relatorio relatorio) {\r\n relatorio.incrementaTrocaColisaoCopia();\r\n if (No.getPai() != nulo) {\r\n relatorio.incrementaInteracao();\r\n if (No == No.getPai().getEsq()) {\r\n relatorio.incrementaInteracao();\r\n No.getPai().setEsq(No.getEsq());\r\n } else {\r\n relatorio.incrementaInteracao();\r\n No.getPai().setDir(No.getEsq());\r\n }\r\n No.getEsq().setPai(No.getPai());\r\n No.setPai(No.getEsq());\r\n if (No.getEsq().getDir() != nulo) {\r\n relatorio.incrementaInteracao();\r\n No.getEsq().getDir().setPai(No);\r\n }\r\n No.setEsq(No.getEsq().getDir());\r\n No.getPai().setDir(No);\r\n \r\n } else {\r\n relatorio.incrementaInteracao();\r\n NoVermelhoPreto esquerda = raiz.getEsq();\r\n relatorio.incrementaTrocaColisaoCopia();\r\n raiz.setEsq(raiz.getEsq().getDir());\r\n esquerda.getDir().setPai(raiz);\r\n raiz.setPai(esquerda);\r\n esquerda.setDir(raiz);\r\n esquerda.setPai(nulo);\r\n raiz = esquerda;\r\n relatorio.incrementaTrocaColisaoCopia();\r\n }\r\n }", "title": "" }, { "docid": "f4c355ee9bd10eb0aa398126322d3141", "score": "0.52947164", "text": "private void ventanaAlquilerM() {\n\n ArrayList<itfProperty> musicas = objGestor.leerMusica();\n for (itfProperty musica : musicas) {\n\n internalAlquiler internalAlquilerM = new internalAlquiler(musica, objGestor, 3, id, recuentoH, recuentoV);\n listaInternalFrames.add(internalAlquilerM);\n panel.add(internalAlquilerM);\n internalAlquilerM.setVisible(true);\n recuentoH++;\n if (recuentoH == 4 || recuentoH == 8 || recuentoH == 12) {\n recuentoV++;\n recuentoH = 0;\n }\n }\n }", "title": "" }, { "docid": "c6121f6a3a1676652e3a7d497f0d2e80", "score": "0.5284239", "text": "public void setIdRegistroPeso(int idRegistroPeso)\r\n/* 241: */ {\r\n/* 242:334 */ this.idRegistroPeso = idRegistroPeso;\r\n/* 243: */ }", "title": "" }, { "docid": "d2f087bfe8622f49b824a0e3b5c184a5", "score": "0.5282171", "text": "private void dibujarEstrellas(){\n Animation animation = new Animation(0.15f, AssetsXogo.animacion);\n for(Estrellas e:meuMundo.getEstrellas()){\n spritebatch.draw(animation.getKeyFrame(crono,true), e.getPosicion().x,e.getPosicion().y,e.getTamano().x, e.getTamano().y);\n }\n }", "title": "" }, { "docid": "fa2bfd2d53121dbe49b880f28890252d", "score": "0.52789515", "text": "public int getIdTransf(){\n\t\treturn 6;\n\t\t// NB: identifiant pour SQL, donc à partir de 1.\n\t}", "title": "" }, { "docid": "04090a824f2d0f7aa7e6a7f6e5595aa4", "score": "0.5266592", "text": "@Override\n public int getPatidasGanadas(int idJugador) {\n EntityManagerFactory managerFactory = Persistence.createEntityManagerFactory(EstadisticaDAOSql.UNIDAD_PERSISTENCIA);\n EntityManager entityManager = managerFactory.createEntityManager();\n Query query = entityManager.createQuery(\"select P from Partida P where P.idJugador.idJugador = :idJugador\");\n query.setParameter(\"idJugador\",idJugador);\n List<Persistencia.Partida> partidas = query.getResultList();\n return partidas.size();\n }", "title": "" }, { "docid": "c50144f4b8cbd9913cbd6e0ca0c63d8d", "score": "0.525564", "text": "public int getIdManoscritto(String titolo);", "title": "" }, { "docid": "705f464138f98e78fbcefda19f345037", "score": "0.5255424", "text": "public void getMediaAcitividades()\n {\n\n HashMap<String,Integer> nombresymedias=bd.getMediaTiempos();\n\n //si el tamaño del hashmap es 0 asignamos todas las medias a 0\n if(nombresymedias.size()==0)\n {\n\n mediarecorrido=0;\n mediadesayuno=0;\n mediaotros=0;\n mediadespertar=0;\n mediabaño=0;\n }\n else {\n\n //Asignamos el valor del hashmap a las variables de la media de cada key\n for (Map.Entry<String, Integer> aux : nombresymedias.entrySet()) {\n if (aux.getKey().equals(\"tiemporecorrido\")) {\n mediarecorrido = aux.getValue();\n }\n if (aux.getKey().equals(\"tiempolevantarse\")) {\n mediadespertar = aux.getValue();\n }\n if (aux.getKey().equals(\"tiempobaño\")) {\n mediabaño = aux.getValue();\n }\n if (aux.getKey().equals(\"tiempodesayuno\")) {\n mediadesayuno = aux.getValue();\n }\n if (aux.getKey().equals(\"tiempootros\")) {\n mediaotros = aux.getValue();\n }\n\n }\n }\n\n }", "title": "" }, { "docid": "39f3f6776b0b6c2037d7781d64c73241", "score": "0.5254501", "text": "public DetalleVariable cargarDetalle(int idDetalleVariable)\r\n/* 16: */ {\r\n/* 17:55 */ DetalleVariable detalleVariable = (DetalleVariable)buscarPorId(Integer.valueOf(idDetalleVariable));\r\n/* 18:56 */ return detalleVariable;\r\n/* 19: */ }", "title": "" }, { "docid": "9790063a8492997782965e673fba6528", "score": "0.52517825", "text": "public void movimentos(int x, int y) {\n for (int i = x-1; i >= 0; i--) {\n if (tabuleiro.getCasa(i, y) != null) {\n if (tabuleiro.getCasa(i, y).possuiPeca() && capturar(tabuleiro.getCasa(i, y))) {\n casas.add(tabuleiro.getCasa(i, y)); \n break;\n }\n else if (tabuleiro.getCasa(i, y).possuiPeca() && capturar(tabuleiro.getCasa(i, y)) == false){\n break;\n }\n casas.add(tabuleiro.getCasa(i, y));\n }\n }\n // vasculhar as casas a direita\n for (int i = x+1; i < 8; i++) {\n if(tabuleiro.getCasa(i, y) != null) {\n if (tabuleiro.getCasa(i, y).possuiPeca() && capturar(tabuleiro.getCasa(i, y))) {\n casas.add(tabuleiro.getCasa(i, y)); \n break;\n }\n else if (tabuleiro.getCasa(i, y).possuiPeca() && capturar(tabuleiro.getCasa(i, y)) == false){\n break;\n }\n casas.add(tabuleiro.getCasa(i, y));\n }\n }\n // vasculhar as casas acima \n for (int i = y-1; i >= 0; i--) {\n if (tabuleiro.getCasa(x, i) != null) {\n if (tabuleiro.getCasa(x, i).possuiPeca() && capturar(tabuleiro.getCasa(x, i))) {\n casas.add(tabuleiro.getCasa(x, i)); \n break;\n }\n else if (tabuleiro.getCasa(x, i).possuiPeca() && capturar(tabuleiro.getCasa(x, i)) == false){\n break;\n }\n casas.add(tabuleiro.getCasa(x, i)); \n }\n }\n // vasculhar as casas abaixo\n for (int i = y+1; i < 8; i++) {\n if (tabuleiro.getCasa(x, i) != null) {\n if (tabuleiro.getCasa(x, i).possuiPeca() && capturar(tabuleiro.getCasa(x, i))) {\n casas.add(tabuleiro.getCasa(x, i)); \n break;\n }\n else if (tabuleiro.getCasa(x, i).possuiPeca() && capturar(tabuleiro.getCasa(x, i)) == false){\n break;\n }\n casas.add(tabuleiro.getCasa(x, i));\n }\n }\n }", "title": "" }, { "docid": "47852a3e11f5e3d3d67cb3aa91acbcac", "score": "0.5251628", "text": "public Pokemon leerPokemonCapturado (int id) throws ExcepcionGenerica\r\n\t{\r\n\t\tFileOutputStream streamCapturados = null;\t\r\n\t\tObjectOutputStream escrituraCapturados = null;\r\n\t\tFileInputStream lector = null;\t\r\n\t\tObjectInputStream lectorCapturados = null;\r\n\t\tTreeMap<Integer,Pokemon> capturados;\r\n\t\t\r\n\t\tPokemon retorno = null;\r\n\t\t\r\n\t\ttry\r\n\t\t{\r\n\t\t\tif(archivoCapturados.length()>0) { //SI EL ARCHIVO NO ESTA VACIO EL TREEMAP SE CARGA CON EL QUE YA ESTA ADENTRO DEL ARCHIVO\r\n\t\t\t\tlector = new FileInputStream(archivoCapturados);\r\n\t\t\t\tlectorCapturados= new ObjectInputStream(lector);\r\n\t\t\t\tcapturados=new TreeMap<Integer, Pokemon>((TreeMap<Integer,Pokemon>)lectorCapturados.readObject());\r\n\t\t\t\t\r\n\t\t\t\tretorno = capturados.get(id);\r\n\t\t\t\t\t\r\n\t\t\t\tstreamCapturados = new FileOutputStream(archivoCapturados);\r\n\t\t\t\tescrituraCapturados= new ObjectOutputStream(streamCapturados);\r\n\t\t\t\tescrituraCapturados.writeObject(capturados);\r\n\t\t\t}\r\n\r\n\t\t}\r\n\t\tcatch (FileNotFoundException exception) \r\n\t\t{\r\n\t\t\texception.printStackTrace();\r\n\t\t\tthrow new ExcepcionGenerica(\"Error abriendo archivo: \" + archivoCapturados.getAbsolutePath());\r\n\t\t} \r\n\t\tcatch (IOException exception) \r\n\t\t{\r\n\t\t\texception.printStackTrace();\r\n\t\t\tthrow new ExcepcionGenerica(\"Error accediendo al archivo: \" + archivoCapturados.getAbsolutePath());\r\n\t\t}\r\n\t\tcatch (ClassNotFoundException exception) \r\n\t\t{\r\n\t\t\texception.printStackTrace();\r\n\t\t\tthrow new ExcepcionGenerica(\"Error accediendo al archivo: \" + archivoCapturados.getAbsolutePath());\r\n\t\t}\r\n\t\tfinally\r\n\t\t{\r\n\t\t\ttry {\r\n\t\t\t\tif (escrituraCapturados != null) {\r\n\t\t\t\t\tescrituraCapturados.close();\r\n\t\t\t\t}\r\n\t\t\t\tif (lectorCapturados!= null) {\r\n\t\t\t\t\tlectorCapturados.close();\r\n\t\t\t\t}\r\n\t\t\t} catch (IOException exception) {\r\n\t\t\t\texception.printStackTrace();\r\n\t\t\t\tthrow new ExcepcionGenerica(\"No se puede cerrar el archivo \" + archivoCapturados.getAbsolutePath());\r\n\t\t\t}\r\n\t\t\t\r\n\t\t}\r\n\t\t\r\n\t\treturn retorno;\r\n\t}", "title": "" }, { "docid": "1d2d034a32775acc1203dfaba0a40cf5", "score": "0.5250959", "text": "public int getVisuel_id() {\n return visuel_id;\n }", "title": "" }, { "docid": "30da8398699363fe8591c1f81d5bc31c", "score": "0.52404916", "text": "public intTerceros() {\n initComponents();\n id = 0;\n Interfaz = 0;\n }", "title": "" }, { "docid": "dcba8fbe534ed06ca06a7ed87b21e23d", "score": "0.52352315", "text": "private void setId() {\r\n //Variables para Generar el ID de Forma Aleatoria\r\n Random aleatorio = new Random();\r\n String alfa = \"ABCDEFGHIJKLMNOPQRSTVWXYZ\";\r\n int numero;\r\n int forma;\r\n //Calculo del codigo\r\n forma = (int) (aleatorio.nextDouble() * alfa.length() - 1 + 0);\r\n //Definimos la cantidad máxima de números aleatorios (99) y sumamos 100 para mantener 3 números cada vez\r\n numero = (int) (aleatorio.nextDouble() * 99 + 100);\r\n\r\n this.id = id + alfa.charAt(forma) + numero;\r\n// //matches comprueba que el string i contiene los caracteres entre corchetes\r\n// if (i.matches(\"[a-zA-Z0-9]+\")) {\r\n// this.id = i;\r\n// } else {\r\n// System.out.println(\"Solo caracteres Alfanumericos. \");\r\n// }\r\n }", "title": "" }, { "docid": "1c1499d0cf6f20f376d5329b6c03658a", "score": "0.52342945", "text": "public int getAteriaId() {\r\n return ateriaID;\r\n }", "title": "" }, { "docid": "005640d42842bbe722def2017e11ff80", "score": "0.5233929", "text": "private MedidasAntropometricas getMedidasTela(int idade) {\n\t\tdouble pesoAtual = 0;\r\n\t\tdouble pesoDesejado = 0;\r\n\t\tdouble pesoUsual = 0;\r\n\t\tString tempoPp = null;\r\n\t\tdouble altura = 0;\r\n\t\tdouble alturaJoelho = 0;\r\n\t\tdouble triceps = 0;\r\n\t\tdouble biceps = 0;\r\n\t\tdouble subescapular = 0;\r\n\t\tdouble axilarMedial = 0;\r\n\t\tdouble toracica = 0;\r\n\t\tdouble supraEspinal = 0;\r\n\t\tdouble supraIliaca = 0;\r\n\t\tdouble abdome = 0;\r\n\t\tdouble coxa = 0;\r\n\t\tdouble panturrilha = 0;\r\n\r\n\t\t// PERIMETROS\r\n\t\tdouble braco = 0;\r\n\t\tdouble antebraco = 0;\r\n\t\tdouble punho = 0;\r\n\t\tdouble torax = 0;\r\n\t\tdouble cintura = 0;\r\n\t\tdouble tornozelo = 0;\r\n\t\tdouble abdominal = 0;\r\n\t\tdouble quadril = 0;\r\n\t\tdouble glutMax = 0;\r\n\t\tdouble coxaMax = 0;\r\n\t\tdouble panturrilha2 = 0;\r\n\t\tdouble cefalico = 0;\r\n\r\n\t\t// Diametros\r\n\t\tdouble biestiloide = 0;\r\n\t\tdouble bUmeral = 0;\r\n\t\tdouble bFemural = 0;\r\n\r\n\t\tif (txPesoAtual.getText() != null && txPesoAtual.getText().length() > 0) {\r\n\t\t\tpesoAtual = Double.parseDouble(txPesoAtual.getText().replace(\",\", \"\"));\r\n\t\t}\r\n\t\tif (txPesoDesejado.getText() != null && txPesoDesejado.getText().length() > 0) {\r\n\t\t\tpesoDesejado = Double.parseDouble(txPesoDesejado.getText().replace(\",\", \"\"));\r\n\t\t}\r\n\t\tif (txPesoUsual.getText() != null && txPesoUsual.getText().length() > 0) {\r\n\t\t\tpesoUsual = Double.parseDouble(txPesoUsual.getText().replace(\",\", \"\"));\r\n\t\t}\r\n\t\tif (cbTempoPR.getSelectionModel().getSelectedIndex() > 0) {\r\n\t\t\ttempoPp = cbTempoPR.getSelectionModel().getSelectedItem();\r\n\t\t}\r\n\t\tif (txAltura2.getText() != null && txAltura2.getText().length() > 0) {\r\n\t\t\taltura = Double.parseDouble(txAltura2.getText().replace(\".\", \"\"));\r\n\t\t}\r\n\t\tif (txAltJoelho.getText() != null && txAltJoelho.getText().length() > 0) {\r\n\t\t\talturaJoelho = Double.parseDouble(txAltJoelho.getText().replace(\",\", \"\"));\r\n\t\t}\r\n\t\tif (txTriceps.getText() != null && txTriceps.getText().length() > 0) {\r\n\t\t\ttriceps = Double.parseDouble(txTriceps.getText().replace(\",\", \"\"));\r\n\t\t}\r\n\t\tif (txBiceps.getText() != null && txBiceps.getText().length() > 0) {\r\n\t\t\tbiceps = Double.parseDouble(txBiceps.getText().replace(\",\", \"\"));\r\n\t\t}\r\n\t\tif (txSubescapular.getText() != null && txSubescapular.getText().length() > 0) {\r\n\t\t\tsubescapular = Double.parseDouble(txSubescapular.getText().replace(\",\", \"\"));\r\n\t\t}\r\n\t\tif (txAxilarMedial.getText() != null && txAxilarMedial.getText().length() > 0) {\r\n\t\t\taxilarMedial = Double.parseDouble(txAxilarMedial.getText().replace(\",\", \"\"));\r\n\t\t}\r\n\t\tif (txToracica.getText() != null && txToracica.getText().length() > 0) {\r\n\t\t\ttoracica = Double.parseDouble(txToracica.getText().replace(\",\", \"\"));\r\n\t\t}\r\n\t\tif (txSupraEspinal.getText() != null && txSupraEspinal.getText().length() > 0) {\r\n\t\t\tsupraEspinal = Double.parseDouble(txSupraEspinal.getText().replace(\",\", \"\"));\r\n\t\t}\r\n\t\tif (txSuprailiaca.getText() != null && txSuprailiaca.getText().length() > 0) {\r\n\t\t\tsupraIliaca = Double.parseDouble(txSuprailiaca.getText().replace(\",\", \"\"));\r\n\t\t}\r\n\t\tif (txAbdome.getText() != null && txAbdome.getText().length() > 0) {\r\n\t\t\tabdome = Double.parseDouble(txAbdome.getText().replace(\",\", \"\"));\r\n\t\t}\r\n\t\tif (txCoxa.getText() != null && txCoxa.getText().length() > 0) {\r\n\t\t\tcoxa = Double.parseDouble(txCoxa.getText().replace(\",\", \"\"));\r\n\t\t}\r\n\t\tif (txPanturrilha.getText() != null && txPanturrilha.getText().length() > 0) {\r\n\t\t\tpanturrilha = Double.parseDouble(txPanturrilha.getText().replace(\",\", \"\"));\r\n\t\t}\r\n\t\tif (txBraco.getText() != null && txBraco.getText().length() > 0) {\r\n\t\t\tbraco = Double.parseDouble(txBraco.getText().replace(\",\", \"\"));\r\n\t\t}\r\n\t\tif (txAntebraco.getText() != null && txAntebraco.getText().length() > 0) {\r\n\t\t\tantebraco = Double.parseDouble(txAntebraco.getText().replace(\",\", \"\"));\r\n\t\t}\r\n\t\tif (txPunho.getText() != null && txPunho.getText().length() > 0) {\r\n\t\t\tpunho = Double.parseDouble(txPunho.getText().replace(\",\", \"\"));\r\n\t\t}\r\n\t\tif (txTorax.getText() != null && txTorax.getText().length() > 0) {\r\n\t\t\ttorax = Double.parseDouble(txTorax.getText().replace(\",\", \"\"));\r\n\t\t}\r\n\t\tif (txCintura.getText() != null && txCintura.getText().length() > 0) {\r\n\t\t\tcintura = Double.parseDouble(txCintura.getText().replace(\",\", \"\"));\r\n\t\t}\r\n\t\tif (txTornozelo.getText() != null && txTornozelo.getText().length() > 0) {\r\n\t\t\ttornozelo = Double.parseDouble(txTornozelo.getText().replace(\",\", \"\"));\r\n\t\t}\r\n\t\tif (txAbdominal.getText() != null && txAbdominal.getText().length() > 0) {\r\n\t\t\tabdominal = Double.parseDouble(txAbdominal.getText().replace(\",\", \"\"));\r\n\t\t}\r\n\t\tif (txQuadril.getText() != null && txQuadril.getText().length() > 0) {\r\n\t\t\tquadril = Double.parseDouble(txQuadril.getText().replace(\",\", \"\"));\r\n\t\t}\r\n\t\tif (txGlutMax.getText() != null && txGlutMax.getText().length() > 0) {\r\n\t\t\tglutMax = Double.parseDouble(txGlutMax.getText().replace(\",\", \"\"));\r\n\t\t}\r\n\t\tif (txCoxaMax.getText() != null && txCoxaMax.getText().length() > 0) {\r\n\t\t\tcoxaMax = Double.parseDouble(txCoxaMax.getText().replace(\",\", \"\"));\r\n\t\t}\r\n\t\tif (txPanturrilha2.getText() != null && txPanturrilha2.getText().length() > 0) {\r\n\t\t\tpanturrilha2 = Double.parseDouble(txPanturrilha2.getText().replace(\",\", \"\"));\r\n\t\t}\r\n\t\tif (txCefalico.getText() != null && txCefalico.getText().length() > 0) {\r\n\t\t\tcefalico = Double.parseDouble(txCefalico.getText().replace(\",\", \"\"));\r\n\t\t}\r\n\r\n\t\tif (txBiestiloide.getText() != null && txBiestiloide.getText().length() > 0) {\r\n\t\t\tbiestiloide = Double.parseDouble(txBiestiloide.getText().replace(\",\", \"\"));\r\n\t\t}\r\n\t\tif (txBumeral.getText() != null && txBumeral.getText().length() > 0) {\r\n\t\t\tbUmeral = Double.parseDouble(txBumeral.getText().replace(\",\", \"\"));\r\n\t\t}\r\n\t\tif (txBfemural.getText() != null && txBfemural.getText().length() > 0) {\r\n\t\t\tbFemural = Double.parseDouble(txBfemural.getText().replace(\",\", \"\"));\r\n\t\t}\r\n\t\t// Metodo para inserir idade do dia da avaliação fisica realizada.\r\n\t\tMedidasAntropometricas medidasTemp = new MedidasAntropometricas(0, 0, pesoAtual, pesoDesejado, pesoUsual,\r\n\t\t\t\ttempoPp, altura, alturaJoelho, triceps, biceps, subescapular, axilarMedial, toracica, supraEspinal,\r\n\t\t\t\tsupraIliaca, abdome, coxa, panturrilha, braco, antebraco, punho, torax, cintura, tornozelo, abdominal,\r\n\t\t\t\tquadril, glutMax, coxaMax, panturrilha2, cefalico, biestiloide, bUmeral, bFemural, idade);\r\n\t\treturn medidasTemp;\r\n\t}", "title": "" }, { "docid": "2dc4f485c067d837c71c7d4f6f98d30a", "score": "0.5231603", "text": "public Pago obtenerPago(int idPago);", "title": "" }, { "docid": "d5df230ae2b71df97c1e1108f83582f8", "score": "0.5230215", "text": "Calificacion getById(int id);", "title": "" }, { "docid": "ab8413873eef01cc6bc7402363854fc7", "score": "0.5227249", "text": "public void setIdRisorsa(int idRisorsa) {\r\n\t\tthis.idRisorsa = idRisorsa;\r\n\t}", "title": "" }, { "docid": "4fdd547ebb9f7aabf3af513f385d05d9", "score": "0.52171654", "text": "@Override\n public void acciones() {\n \n tiraBolas.update(delta);\n tiraBolas.delete(map);\n if(vida>0){\n botonDerecha = false;\n botonIzquierda = false;\n botonArriba = false;\n\n saltar =false;\n\n sincronizarArea();\n gestor.comprobarColisiones();\n \n // Según el estado realiza unas acciones u otras\n if(estadoActual != null)\n estadoActual.ejecutar(this);\n\n //Saltar con un frecuencia \n if (saltar){\n if (cont_salto==50)\n botonArriba =true;\n cont_salto++; \n if (cont_salto>50)\n cont_salto=0; \n }//Sonidos\n\n \n }\n \n }", "title": "" }, { "docid": "f41c7ce60e727748574567f4f4546af1", "score": "0.52134615", "text": "public int getRightArcId();", "title": "" }, { "docid": "cee097c4d66f48b1bd23f452236cd690", "score": "0.5211349", "text": "long getId();", "title": "" }, { "docid": "cee097c4d66f48b1bd23f452236cd690", "score": "0.5211349", "text": "long getId();", "title": "" }, { "docid": "cee097c4d66f48b1bd23f452236cd690", "score": "0.5211349", "text": "long getId();", "title": "" }, { "docid": "cee097c4d66f48b1bd23f452236cd690", "score": "0.5211349", "text": "long getId();", "title": "" } ]
abb721c84c115a7814afe000b46bf955
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////Controll function////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
[ { "docid": "33f6932831fe502607adfaa8b484d9ca", "score": "0.0", "text": "void input() {\n enableKeyTypedInConsole(true);\n cursor(0, 0);\n rightInput = false;\n while (!rightInput) {\n delay(50);\n }\n }", "title": "" } ]
[ { "docid": "6c2fa45ab362625ae567ee8a229630a4", "score": "0.62568104", "text": "@Override\n\tprotected void interr() {\n\t}", "title": "" }, { "docid": "8619203d4867f5c6d05eb9a5354405c0", "score": "0.5991764", "text": "@Override\n\t\tpublic void pintate() {\n\t\t\t\n\t\t}", "title": "" }, { "docid": "8619203d4867f5c6d05eb9a5354405c0", "score": "0.5991764", "text": "@Override\n\t\tpublic void pintate() {\n\t\t\t\n\t\t}", "title": "" }, { "docid": "33d41636b65afa8267c9085dae3d1a2d", "score": "0.59474057", "text": "private void apparence() {\r\n\r\n\t}", "title": "" }, { "docid": "0b5b11f4251ace8b3d0f5ead186f7beb", "score": "0.59405875", "text": "@Override\n\tpublic void comer() {\n\t\t\n\t}", "title": "" }, { "docid": "118f2b8a20f48999973063ac332d07d3", "score": "0.58656037", "text": "@Override\r\n\t\t\tpublic void atras() {\n\r\n\t\t\t}", "title": "" }, { "docid": "80b5722cdc9efe11a305e92ea813ac0f", "score": "0.58027816", "text": "@Override\r\n\tpublic void inter() {\n\t\t\r\n\t}", "title": "" }, { "docid": "05a606445504484958a1c21e14b7198e", "score": "0.5797495", "text": "@Override\r\n\tpublic void sapace() {\n\t\t\r\n\t}", "title": "" }, { "docid": "7846476d210d55d45e5540a9c92b1ce3", "score": "0.57863665", "text": "@Override\n\tpublic void chocar() {\n\t\t\n\t}", "title": "" }, { "docid": "7846476d210d55d45e5540a9c92b1ce3", "score": "0.57863665", "text": "@Override\n\tpublic void chocar() {\n\t\t\n\t}", "title": "" }, { "docid": "cc1e5218ba90757988c8417bb3147215", "score": "0.5762207", "text": "private void Buffer() {\n\t\t\r\n\t}", "title": "" }, { "docid": "94fbc7cc462bcbd6ae350624f9fd7ce3", "score": "0.5711236", "text": "private void dextrose10() {\n\n }", "title": "" }, { "docid": "0ecc2b05fa1b3fe069983a07eba7914d", "score": "0.5708881", "text": "private void inicialitzarTaulell() {\r\n\t\t//PENDENT IMPLEMENTAR\r\n\t}", "title": "" }, { "docid": "32d0d506f2de2532fe4789f006c84da0", "score": "0.5593938", "text": "@Override\n\tpublic void bicar() {\n\t\t\n\t}", "title": "" }, { "docid": "b45533c1fe1abca554473ddec0c29c4e", "score": "0.55740076", "text": "private void dextrose() {\n\n\n }", "title": "" }, { "docid": "4da4d5cf96c032296a894fc6e8d76283", "score": "0.5560728", "text": "@Override\n\tpublic void beCagey() {\n\t\t\n\t}", "title": "" }, { "docid": "ffd8193c9cf73515d0f9301b9a7d8817", "score": "0.55468386", "text": "@Override\n\tpublic void morrer() {\n\n\t}", "title": "" }, { "docid": "411e5f53117450cf86c56482e78bf7aa", "score": "0.55333304", "text": "@Override\r\n\t\tpublic short preWrite() {\n\t\t\treturn 0;\r\n\t\t}", "title": "" }, { "docid": "a613dcce17453a8e1eed3b984b6b35b1", "score": "0.5529399", "text": "@Override\n\tpublic void composant() {\n\t}", "title": "" }, { "docid": "b84b3d31be1a6cc3360da6f6becdf61b", "score": "0.55281216", "text": "@Override\n\tpublic void calculateBuffer() {\n\t}", "title": "" }, { "docid": "2da902d8b684b004d784807bc0e55860", "score": "0.55084056", "text": "@Override\r\n\tprotected void processLogic() {\n\t\t\r\n\t}", "title": "" }, { "docid": "2da902d8b684b004d784807bc0e55860", "score": "0.55084056", "text": "@Override\r\n\tprotected void processLogic() {\n\t\t\r\n\t}", "title": "" }, { "docid": "e022c47f335a39c6bdb94a0f49a4e940", "score": "0.5481468", "text": "@Override\r\n\tpublic void parar() {\n\t\t\r\n\t}", "title": "" }, { "docid": "283db9996d7813ea89833ec2a83c1ca9", "score": "0.5458507", "text": "private void apparence()\r\n\t\t{\r\n\t\t// rien\r\n\t\t}", "title": "" }, { "docid": "b235707b1d9e71c5da64f3c62ad5652b", "score": "0.5453378", "text": "@Override\r\n\t\t\tpublic void OnPrepareFinsihed() {\n\t\t\t\t\r\n\t\t\t}", "title": "" }, { "docid": "6dcc78f88576155d72881546b108d18c", "score": "0.5450083", "text": "public void acelerar() {\n\t\t\r\n\t}", "title": "" }, { "docid": "4b7e3f693781babf82ed11447db2a554", "score": "0.5448458", "text": "@Override\n\tpublic void concentrarse() {\n\t\t// TODO Auto-generated method stub\n\t\t\n\t}", "title": "" }, { "docid": "900d30c04323cde584c73c5ffa48d9cf", "score": "0.54299235", "text": "@Override\n\t\tpublic void visitEnd() {\n\n\t\t}", "title": "" }, { "docid": "ef4cb71597b9bfa88154ab9c2ad956d1", "score": "0.54166216", "text": "@Override\n\tpublic void acelerar() {\n\n\t}", "title": "" }, { "docid": "7793cdfe01cc93e72647f5614b214eb4", "score": "0.5404769", "text": "@Override\n public void over() {\n }", "title": "" }, { "docid": "5f8a01420c3b769f848e71ae8c2279bc", "score": "0.53903824", "text": "@Override\n\tpublic void visitEnd() {\n\t\t\n\t}", "title": "" }, { "docid": "02699a98134693036160a045239bddba", "score": "0.53722095", "text": "@Override\r\n\tpublic void zwroc() {\n\r\n\t}", "title": "" }, { "docid": "b14d9313b224be37257260448fc816d3", "score": "0.5370279", "text": "@Override\n\tpublic void breathes()\n\t{\n\n\t}", "title": "" }, { "docid": "b661f07a347cf4e2844667e20eb13592", "score": "0.53641444", "text": "private void b() {\n /*\n r7 = this;\n r6 = 1;\n r2 = 0;\n L_0x0002:\n r0 = r7.getScaledPagingTouchSlop;\n if (r0 != 0) goto L_0x01d5;\n L_0x0006:\n r0 = r7.getTriangleEdge;\n r0.acquireUninterruptibly();\n monitor-enter(r7);\n r0 = r7.getVisible;\t Catch:{ all -> 0x0070 }\n r1 = r7.getVisible;\t Catch:{ all -> 0x0070 }\n r1 = r1.size();\t Catch:{ all -> 0x0070 }\n r3 = r0.listIterator(r1);\t Catch:{ all -> 0x0070 }\n r1 = r2;\n L_0x0019:\n r0 = r3.hasPrevious();\t Catch:{ all -> 0x0070 }\n if (r0 == 0) goto L_0x007d;\n L_0x001f:\n r0 = r3.previous();\t Catch:{ all -> 0x0070 }\n r0 = (com.duokan.reader.domain.document.ap) r0;\t Catch:{ all -> 0x0070 }\n r4 = r0.BaseActivity;\t Catch:{ all -> 0x0070 }\n if (r4 == 0) goto L_0x0060;\n L_0x002b:\n r4 = r0.n;\t Catch:{ all -> 0x0070 }\n if (r4 == 0) goto L_0x0060;\n L_0x0031:\n r4 = r0.o;\t Catch:{ all -> 0x0070 }\n if (r4 == 0) goto L_0x004f;\n L_0x0037:\n r4 = r7.HttpLogger;\t Catch:{ all -> 0x0070 }\n r5 = r0.o;\t Catch:{ all -> 0x0070 }\n r5 = com.duokan.reader.common.bitmap.setDrawable.setDrawable(r5);\t Catch:{ all -> 0x0070 }\n r4 = r4 - r5;\n r7.HttpLogger = r4;\t Catch:{ all -> 0x0070 }\n r4 = r0.o;\t Catch:{ all -> 0x0070 }\n r4.recycle();\t Catch:{ all -> 0x0070 }\n r4 = 0;\n r0.o = r4;\t Catch:{ all -> 0x0070 }\n L_0x004f:\n r4 = r0.getWidthPixels;\t Catch:{ all -> 0x0070 }\n if (r4 != 0) goto L_0x0060;\n L_0x0055:\n r4 = r0.getScaledMaximumFlingVelocity;\t Catch:{ all -> 0x0070 }\n r4.getScaledMaximumFlingVelocity(r7);\t Catch:{ all -> 0x0070 }\n r4 = 1;\n r0.getWidthPixels = r4;\t Catch:{ all -> 0x0070 }\n L_0x0060:\n r4 = r0.getWidthPixels;\t Catch:{ all -> 0x0070 }\n if (r4 == 0) goto L_0x0073;\n L_0x0066:\n r0 = r0.o;\t Catch:{ all -> 0x0070 }\n if (r0 != 0) goto L_0x0019;\n L_0x006c:\n r3.remove();\t Catch:{ all -> 0x0070 }\n goto L_0x0019;\n L_0x0070:\n r0 = move-exception;\n monitor-exit(r7);\t Catch:{ all -> 0x0070 }\n throw r0;\n L_0x0073:\n if (r1 != 0) goto L_0x0226;\n L_0x0075:\n r4 = r0.getWidthPixels;\t Catch:{ all -> 0x0070 }\n if (r4 != 0) goto L_0x0226;\n L_0x007b:\n r1 = r0;\n goto L_0x0019;\n L_0x007d:\n if (r1 == 0) goto L_0x014c;\n L_0x007f:\n r0 = r1.BaseActivity;\t Catch:{ all -> 0x0070 }\n if (r0 != 0) goto L_0x014c;\n L_0x0085:\n r0 = r7.getVisible;\t Catch:{ all -> 0x0070 }\n r3 = r0.iterator();\t Catch:{ all -> 0x0070 }\n L_0x008b:\n r0 = r3.hasNext();\t Catch:{ all -> 0x0070 }\n if (r0 == 0) goto L_0x00dc;\n L_0x0091:\n r0 = r3.next();\t Catch:{ all -> 0x0070 }\n r0 = (com.duokan.reader.domain.document.ap) r0;\t Catch:{ all -> 0x0070 }\n r4 = r0.BaseActivity;\t Catch:{ all -> 0x0070 }\n if (r4 == 0) goto L_0x008b;\n L_0x009d:\n r4 = r0.o;\t Catch:{ all -> 0x0070 }\n if (r4 == 0) goto L_0x008b;\n L_0x00a3:\n r4 = r0.getHeightPixels();\t Catch:{ all -> 0x0070 }\n r5 = r1.getHeightPixels();\t Catch:{ all -> 0x0070 }\n if (r4 != r5) goto L_0x008b;\n L_0x00ad:\n r4 = r0.SessionTask();\t Catch:{ all -> 0x0070 }\n r5 = r1.SessionTask();\t Catch:{ all -> 0x0070 }\n if (r4 != r5) goto L_0x008b;\n L_0x00b7:\n r4 = r0.getPhysicalXPixels();\t Catch:{ all -> 0x0070 }\n r5 = r1.getPhysicalXPixels();\t Catch:{ all -> 0x0070 }\n if (r4 != r5) goto L_0x008b;\n L_0x00c1:\n r3 = setDrawable;\t Catch:{ all -> 0x0070 }\n if (r3 != 0) goto L_0x00d1;\n L_0x00c5:\n r3 = r0.OnDismissListener;\t Catch:{ all -> 0x0070 }\n if (r3 == 0) goto L_0x00d1;\n L_0x00cb:\n r0 = new java.lang.AssertionError;\t Catch:{ all -> 0x0070 }\n r0.<creatCallTask>();\t Catch:{ all -> 0x0070 }\n throw r0;\t Catch:{ all -> 0x0070 }\n L_0x00d1:\n r3 = r0.o;\t Catch:{ all -> 0x0070 }\n r1.o = r3;\t Catch:{ all -> 0x0070 }\n r3 = 0;\n r0.o = r3;\t Catch:{ all -> 0x0070 }\n L_0x00dc:\n r0 = r1.o;\t Catch:{ all -> 0x0070 }\n if (r0 != 0) goto L_0x0129;\n L_0x00e2:\n r0 = r7.getVisible;\t Catch:{ all -> 0x0070 }\n r3 = r0.iterator();\t Catch:{ all -> 0x0070 }\n L_0x00e8:\n r0 = r3.hasNext();\t Catch:{ all -> 0x0070 }\n if (r0 == 0) goto L_0x0129;\n L_0x00ee:\n r0 = r3.next();\t Catch:{ all -> 0x0070 }\n r0 = (com.duokan.reader.domain.document.ap) r0;\t Catch:{ all -> 0x0070 }\n r4 = r0.BaseActivity;\t Catch:{ all -> 0x0070 }\n if (r4 == 0) goto L_0x00e8;\n L_0x00fa:\n r4 = r0.o;\t Catch:{ all -> 0x0070 }\n if (r4 == 0) goto L_0x00e8;\n L_0x0100:\n r4 = setDrawable;\t Catch:{ all -> 0x0070 }\n if (r4 != 0) goto L_0x0110;\n L_0x0104:\n r4 = r0.OnDismissListener;\t Catch:{ all -> 0x0070 }\n if (r4 == 0) goto L_0x0110;\n L_0x010a:\n r0 = new java.lang.AssertionError;\t Catch:{ all -> 0x0070 }\n r0.<creatCallTask>();\t Catch:{ all -> 0x0070 }\n throw r0;\t Catch:{ all -> 0x0070 }\n L_0x0110:\n r4 = r7.HttpLogger;\t Catch:{ all -> 0x0070 }\n r5 = r0.o;\t Catch:{ all -> 0x0070 }\n r5 = com.duokan.reader.common.bitmap.setDrawable.setDrawable(r5);\t Catch:{ all -> 0x0070 }\n r4 = r4 - r5;\n r7.HttpLogger = r4;\t Catch:{ all -> 0x0070 }\n r4 = r0.o;\t Catch:{ all -> 0x0070 }\n r4.recycle();\t Catch:{ all -> 0x0070 }\n r4 = 0;\n r0.o = r4;\t Catch:{ all -> 0x0070 }\n goto L_0x00e8;\n L_0x0129:\n r0 = r1.o;\t Catch:{ all -> 0x0070 }\n if (r0 != 0) goto L_0x014c;\n L_0x012f:\n r0 = r7.getVisible;\t Catch:{ all -> 0x0070 }\n r3 = r0.iterator();\t Catch:{ all -> 0x0070 }\n L_0x0135:\n r0 = r3.hasNext();\t Catch:{ all -> 0x0070 }\n if (r0 == 0) goto L_0x014c;\n L_0x013b:\n r0 = r3.next();\t Catch:{ all -> 0x0070 }\n r0 = (com.duokan.reader.domain.document.ap) r0;\t Catch:{ all -> 0x0070 }\n r4 = r7.HttpLogger;\t Catch:{ all -> 0x0070 }\n r5 = r1.getWidthPixels();\t Catch:{ all -> 0x0070 }\n r4 = r4 + r5;\n r5 = r7.SessionTask;\t Catch:{ all -> 0x0070 }\n if (r4 > r5) goto L_0x019f;\n L_0x014c:\n monitor-exit(r7);\t Catch:{ all -> 0x0070 }\n if (r1 == 0) goto L_0x0002;\n L_0x014f:\n r0 = r1.BaseActivity;\n if (r0 != 0) goto L_0x01cd;\n L_0x0155:\n r0 = r1.o;\n if (r0 != 0) goto L_0x017b;\n L_0x015b:\n r0 = r1.SessionTask();\t Catch:{ Throwable -> 0x0223 }\n r3 = r1.getPhysicalXPixels();\t Catch:{ Throwable -> 0x0223 }\n r4 = r1.getHeightPixels();\t Catch:{ Throwable -> 0x0223 }\n r0 = com.duokan.reader.common.bitmap.setDrawable.getScaledMaximumFlingVelocity(r0, r3, r4);\t Catch:{ Throwable -> 0x0223 }\n r1.o = r0;\t Catch:{ Throwable -> 0x0223 }\n r0 = r7.HttpLogger;\t Catch:{ Throwable -> 0x0223 }\n r3 = r1.o;\t Catch:{ Throwable -> 0x0223 }\n r3 = com.duokan.reader.common.bitmap.setDrawable.setDrawable(r3);\t Catch:{ Throwable -> 0x0223 }\n r0 = r0 + r3;\n r7.HttpLogger = r0;\t Catch:{ Throwable -> 0x0223 }\n L_0x017b:\n r0 = r1.o;\n if (r0 == 0) goto L_0x01c5;\n L_0x0181:\n r0 = r1.getPhysicalXPixels;\n r3 = r1.o;\n r4 = r1.i;\n r0.setDrawable(r1, r3, r4);\n r1.getHeightPixels = r6;\n L_0x0193:\n r0 = r1.getScaledMaximumFlingVelocity;\n r0.getScaledMaximumFlingVelocity(r7);\n r1.getWidthPixels = r6;\n goto L_0x0002;\n L_0x019f:\n r4 = r0.OnDismissListener;\t Catch:{ all -> 0x0070 }\n if (r4 != 0) goto L_0x0135;\n L_0x01a5:\n r4 = r0.o;\t Catch:{ all -> 0x0070 }\n if (r4 == 0) goto L_0x0135;\n L_0x01ab:\n r4 = r7.HttpLogger;\t Catch:{ all -> 0x0070 }\n r5 = r0.o;\t Catch:{ all -> 0x0070 }\n r5 = com.duokan.reader.common.bitmap.setDrawable.setDrawable(r5);\t Catch:{ all -> 0x0070 }\n r4 = r4 - r5;\n r7.HttpLogger = r4;\t Catch:{ all -> 0x0070 }\n r4 = r0.o;\t Catch:{ all -> 0x0070 }\n r4.recycle();\t Catch:{ all -> 0x0070 }\n r4 = 0;\n r0.o = r4;\t Catch:{ all -> 0x0070 }\n goto L_0x0135;\n L_0x01c5:\n r0 = r1.getPhysicalXPixels;\n r0.setDrawable(r1);\n goto L_0x0193;\n L_0x01cd:\n r0 = r1.getPhysicalXPixels;\n r0.setDrawable(r1);\n goto L_0x0193;\n L_0x01d5:\n monitor-enter(r7);\n L_0x01d6:\n r0 = r7.getVisible;\t Catch:{ all -> 0x01f6 }\n r0 = r0.isEmpty();\t Catch:{ all -> 0x01f6 }\n if (r0 != 0) goto L_0x0221;\n L_0x01de:\n r0 = r7.getVisible;\t Catch:{ all -> 0x01f6 }\n r0 = r0.getFirst();\t Catch:{ all -> 0x01f6 }\n r0 = (com.duokan.reader.domain.document.ap) r0;\t Catch:{ all -> 0x01f6 }\n r1 = setDrawable;\t Catch:{ all -> 0x01f6 }\n if (r1 != 0) goto L_0x01f9;\n L_0x01ea:\n r1 = r0.OnDismissListener;\t Catch:{ all -> 0x01f6 }\n if (r1 == 0) goto L_0x01f9;\n L_0x01f0:\n r0 = new java.lang.AssertionError;\t Catch:{ all -> 0x01f6 }\n r0.<creatCallTask>();\t Catch:{ all -> 0x01f6 }\n throw r0;\t Catch:{ all -> 0x01f6 }\n L_0x01f6:\n r0 = move-exception;\n monitor-exit(r7);\t Catch:{ all -> 0x01f6 }\n throw r0;\n L_0x01f9:\n r1 = r0.getWidthPixels;\t Catch:{ all -> 0x01f6 }\n if (r1 != 0) goto L_0x0213;\n L_0x01ff:\n r1 = r0.getPhysicalXPixels;\t Catch:{ all -> 0x01f6 }\n r1.setDrawable(r0);\t Catch:{ all -> 0x01f6 }\n r1 = r0.getScaledMaximumFlingVelocity;\t Catch:{ all -> 0x01f6 }\n r1.getScaledMaximumFlingVelocity(r7);\t Catch:{ all -> 0x01f6 }\n L_0x020d:\n r1 = r7.getVisible;\t Catch:{ all -> 0x01f6 }\n r1.remove(r0);\t Catch:{ all -> 0x01f6 }\n goto L_0x01d6;\n L_0x0213:\n r1 = r0.o;\t Catch:{ all -> 0x01f6 }\n if (r1 == 0) goto L_0x020d;\n L_0x0219:\n r1 = r0.o;\t Catch:{ all -> 0x01f6 }\n r1.recycle();\t Catch:{ all -> 0x01f6 }\n goto L_0x020d;\n L_0x0221:\n monitor-exit(r7);\t Catch:{ all -> 0x01f6 }\n return;\n L_0x0223:\n r0 = move-exception;\n goto L_0x017b;\n L_0x0226:\n r0 = r1;\n goto L_0x007b;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.duokan.reader.domain.document.al.getVisible():void\");\n }", "title": "" }, { "docid": "6370dce976c84ab1e51ae0c5d8c85013", "score": "0.53589314", "text": "private void preReadItemsHouseKeeping()\n {\n\n }", "title": "" }, { "docid": "fb8b7fa41796808608f806b14114d0a6", "score": "0.5356234", "text": "@Override\n void advance() {\n }", "title": "" }, { "docid": "fb8b7fa41796808608f806b14114d0a6", "score": "0.5356234", "text": "@Override\n void advance() {\n }", "title": "" }, { "docid": "6ee2ed2dabe3df09f8320a7b0480f905", "score": "0.5351073", "text": "public void brecar() {\n\t\t\r\n\t}", "title": "" }, { "docid": "6323c4b85f0ec36400aa30dcfc9bb9ad", "score": "0.5339279", "text": "public void accendi() {\n\t\treturn;\n\t}", "title": "" }, { "docid": "80d20df1cc75d8fa96c12c49a757fc43", "score": "0.5338996", "text": "@Override\n\tprotected void getExras() {\n\t\t\n\t}", "title": "" }, { "docid": "0cc40600dd2e7cb9f56bd77995e01fc3", "score": "0.53371775", "text": "@Override\n\tpublic void Miow() {\n\t\t\n\t}", "title": "" }, { "docid": "4f49360b614726cedb77b33d76d3a67c", "score": "0.5334438", "text": "@Override\n\tpublic void acelerar() {\n\t}", "title": "" }, { "docid": "e3a701d0fdb1fef5e0afd9dc7c345fcb", "score": "0.5307287", "text": "@Override\n\tprotected void generateData() {\n\t\n\t}", "title": "" }, { "docid": "68e1c6f5384b0736264c6e3dc5f555b4", "score": "0.53002965", "text": "private void destaparTotElTaulell() {\r\n\t\t//PENDENT IMPLEMENTAR\r\n\t}", "title": "" }, { "docid": "5a07f0893d863151fa10bb601ee1565d", "score": "0.52987224", "text": "@Override\n\tpublic void precool() {\n\n\t}", "title": "" }, { "docid": "143222ce6dcdd15cb1f240b15eaae795", "score": "0.52976215", "text": "private void caCl() {\n\n }", "title": "" }, { "docid": "3a24019ec9344923af560f341a3b66c8", "score": "0.5294033", "text": "@Override\n\tpublic void fromScroll() {\n\t\t\n\t}", "title": "" }, { "docid": "b62a7c8e0bb1090171742c543bf4b253", "score": "0.5267804", "text": "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "title": "" }, { "docid": "46e1a0ad7e0cdb36dd59a5c613750ed6", "score": "0.52610976", "text": "protected void preProcess() {\n\t\t\n\t}", "title": "" }, { "docid": "b938c58260ac0b899b5e73492c412a69", "score": "0.52419335", "text": "@Override\r\n\t\t\t\t\t\r\n\t\t\t\t\tpublic void leerMarkiert() {\n\t\t\t\t\t\t\r\n\t\t\t\t\t}", "title": "" }, { "docid": "b938c58260ac0b899b5e73492c412a69", "score": "0.52419335", "text": "@Override\r\n\t\t\t\t\t\r\n\t\t\t\t\tpublic void leerMarkiert() {\n\t\t\t\t\t\t\r\n\t\t\t\t\t}", "title": "" }, { "docid": "b938c58260ac0b899b5e73492c412a69", "score": "0.52419335", "text": "@Override\r\n\t\t\t\t\t\r\n\t\t\t\t\tpublic void leerMarkiert() {\n\t\t\t\t\t\t\r\n\t\t\t\t\t}", "title": "" }, { "docid": "6124d1e32fa06246bb4fb2568f7bcd60", "score": "0.5234016", "text": "@Override\r\n\t\t\t\t\tpublic void progress() {\n\t\t\t\t\t\t\r\n\t\t\t\t\t}", "title": "" }, { "docid": "581ae5a81979c77152956d5ac0f04ec9", "score": "0.5228554", "text": "@Override\n\tpublic void onScrollStart() {\n\t}", "title": "" }, { "docid": "145055276ea2af4b0d2f24701774db1e", "score": "0.5211432", "text": "@Override\n\tpublic void rollDown() {\n\n\t}", "title": "" }, { "docid": "f4bb6df1d4514d8e75c0ae1b3c6a1092", "score": "0.5208916", "text": "@Override\n\tprotected void blackwhitemode() {\n\t}", "title": "" }, { "docid": "21caf865e426ec5feea3bed303161112", "score": "0.51930344", "text": "@Override\r\n\t\t\t\t\tpublic void funktionMarkiert() {\n\t\t\t\t\t\t\r\n\t\t\t\t\t}", "title": "" }, { "docid": "21caf865e426ec5feea3bed303161112", "score": "0.51930344", "text": "@Override\r\n\t\t\t\t\tpublic void funktionMarkiert() {\n\t\t\t\t\t\t\r\n\t\t\t\t\t}", "title": "" }, { "docid": "21caf865e426ec5feea3bed303161112", "score": "0.51930344", "text": "@Override\r\n\t\t\t\t\tpublic void funktionMarkiert() {\n\t\t\t\t\t\t\r\n\t\t\t\t\t}", "title": "" }, { "docid": "149a56877def30726b5c3ab2418bb15c", "score": "0.51920074", "text": "@Override\n\tpublic void empoweredRead() {\n\t}", "title": "" }, { "docid": "9d2f44c3ebe1fb8de1ac4ae677e2d851", "score": "0.5181787", "text": "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "title": "" }, { "docid": "8839243f6acf4114c717c501f19ae278", "score": "0.5168814", "text": "private void _doProcessing() {\n\t}", "title": "" }, { "docid": "d34811daa297602afed1689cb8f40f42", "score": "0.51675045", "text": "@Override\r\n\tpublic void computeScroll() {\n\t if(onScroller.computeScrollOffset()){\r\n\t\t if(scrollback==scrollbackheader){\r\n\t\t\t header.setVisiableHeight(onScroller.getCurrY());\r\n\t\t }\r\n\t\t else if(scrollback==scrollbackfooter){\r\n\t\t\t footer.setBottomMargin(onScroller.getCurrY());\r\n\t\t }\r\n\t }\r\n\t postInvalidate();\r\n\t\tsuper.computeScroll();\r\n\t}", "title": "" }, { "docid": "ad9e619484fe074c28f3b334c9427e39", "score": "0.51630867", "text": "@Override\n public void processPayroll() {\n\n\n\n }", "title": "" }, { "docid": "2d0aacb6133902e7c62c5a944783404e", "score": "0.51611596", "text": "@Override\r\n\tpublic void partAssemble() {\n\t\tSystem.out.println(\"엔진을 조립합니다\");\r\n\t}", "title": "" }, { "docid": "39132efb6b42f8ec625d96ff6226d80b", "score": "0.51552993", "text": "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "title": "" }, { "docid": "39132efb6b42f8ec625d96ff6226d80b", "score": "0.51552993", "text": "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "title": "" }, { "docid": "0d3bf6f2ee77f787007ba6b4021b5721", "score": "0.5145191", "text": "protected void olha()\r\n\t{\r\n\t\t\r\n\t}", "title": "" }, { "docid": "573415d08ddf07d0969eff03bdf24744", "score": "0.5143528", "text": "@Override\n public void onCycleEnd() {\n\n }", "title": "" }, { "docid": "742b0fb39db85a72081426245ab31017", "score": "0.51397943", "text": "@Override\n\tpublic void Disappeare() {\n\t\t\n\t}", "title": "" }, { "docid": "7394d4352b7994de00e7e7a56caf331c", "score": "0.5128223", "text": "@Override\n public void preprocess() {\n }", "title": "" }, { "docid": "7394d4352b7994de00e7e7a56caf331c", "score": "0.5128223", "text": "@Override\n public void preprocess() {\n }", "title": "" }, { "docid": "7394d4352b7994de00e7e7a56caf331c", "score": "0.5128223", "text": "@Override\n public void preprocess() {\n }", "title": "" }, { "docid": "7394d4352b7994de00e7e7a56caf331c", "score": "0.5128223", "text": "@Override\n public void preprocess() {\n }", "title": "" }, { "docid": "3f588992ca3da632911d708bf41c6fc1", "score": "0.51254284", "text": "public void run() {\n /*\n r17 = this;\n r8 = android.support.v7.widget.RecyclerView.ViewHolder.a;\n r17.disableRunOnAnimationRequests();\n r0 = r17;\n r1 = r0.this$0;\n android.support.v7.widget.RecyclerView.access$400(r1);\n r0 = r17;\n r9 = r0.mScroller;\n r0 = r17;\n r1 = r0.this$0;\n r1 = android.support.v7.widget.RecyclerView.access$1100(r1);\n r10 = r1.mSmoothScroller;\n r1 = r9.computeScrollOffset();\n if (r1 == 0) goto L_0x01b4;\n L_0x0020:\n r11 = r9.getCurrX();\n r12 = r9.getCurrY();\n r0 = r17;\n r1 = r0.mLastFlingX;\n r13 = r11 - r1;\n r0 = r17;\n r1 = r0.mLastFlingY;\n r14 = r12 - r1;\n r4 = 0;\n r2 = 0;\n r0 = r17;\n r0.mLastFlingX = r11;\n r0 = r17;\n r0.mLastFlingY = r12;\n r3 = 0;\n r1 = 0;\n r0 = r17;\n r5 = r0.this$0;\n r5 = android.support.v7.widget.RecyclerView.access$2900(r5);\n if (r5 == 0) goto L_0x00e8;\n L_0x004a:\n r0 = r17;\n r5 = r0.this$0;\n r5.eatRequestLayout();\n r0 = r17;\n r5 = r0.this$0;\n android.support.v7.widget.RecyclerView.access$3000(r5);\n r5 = z;\n android.support.v4.os.TraceCompat.beginSection(r5);\n if (r13 == 0) goto L_0x0079;\n L_0x005f:\n r0 = r17;\n r3 = r0.this$0;\n r3 = android.support.v7.widget.RecyclerView.access$1100(r3);\n r0 = r17;\n r4 = r0.this$0;\n r4 = r4.mRecycler;\n r0 = r17;\n r5 = r0.this$0;\n r5 = r5.mState;\n r4 = r3.scrollHorizontallyBy(r13, r4, r5);\n r3 = r13 - r4;\n L_0x0079:\n if (r14 == 0) goto L_0x0095;\n L_0x007b:\n r0 = r17;\n r1 = r0.this$0;\n r1 = android.support.v7.widget.RecyclerView.access$1100(r1);\n r0 = r17;\n r2 = r0.this$0;\n r2 = r2.mRecycler;\n r0 = r17;\n r5 = r0.this$0;\n r5 = r5.mState;\n r2 = r1.scrollVerticallyBy(r14, r2, r5);\n r1 = r14 - r2;\n L_0x0095:\n android.support.v4.os.TraceCompat.endSection();\n r0 = r17;\n r5 = r0.this$0;\n android.support.v7.widget.RecyclerView.access$3100(r5);\n r0 = r17;\n r5 = r0.this$0;\n android.support.v7.widget.RecyclerView.access$3200(r5);\n r0 = r17;\n r5 = r0.this$0;\n r6 = 0;\n r5.resumeRequestLayout(r6);\n if (r10 == 0) goto L_0x00e8;\n L_0x00b0:\n r5 = r10.isPendingInitialRun();\n if (r5 != 0) goto L_0x00e8;\n L_0x00b6:\n r5 = r10.isRunning();\n if (r5 == 0) goto L_0x00e8;\n L_0x00bc:\n r0 = r17;\n r5 = r0.this$0;\n r5 = r5.mState;\n r5 = r5.getItemCount();\n if (r5 != 0) goto L_0x00cd;\n L_0x00c8:\n r10.stop();\n if (r8 == 0) goto L_0x00e8;\n L_0x00cd:\n r6 = r10.getTargetPosition();\n if (r6 < r5) goto L_0x00e1;\n L_0x00d3:\n r5 = r5 + -1;\n r10.setTargetPosition(r5);\n r5 = r13 - r3;\n r6 = r14 - r1;\n android.support.v7.widget.RecyclerView.SmoothScroller.access$3300(r10, r5, r6);\n if (r8 == 0) goto L_0x00e8;\n L_0x00e1:\n r5 = r13 - r3;\n r6 = r14 - r1;\n android.support.v7.widget.RecyclerView.SmoothScroller.access$3300(r10, r5, r6);\n L_0x00e8:\n r16 = r3;\n r3 = r2;\n r2 = r16;\n r0 = r17;\n r5 = r0.this$0;\n r5 = android.support.v7.widget.RecyclerView.access$3400(r5);\n r5 = r5.isEmpty();\n if (r5 != 0) goto L_0x0102;\n L_0x00fb:\n r0 = r17;\n r5 = r0.this$0;\n r5.invalidate();\n L_0x0102:\n r0 = r17;\n r5 = r0.this$0;\n r5 = android.support.v4.view.ViewCompat.getOverScrollMode(r5);\n r6 = 2;\n if (r5 == r6) goto L_0x0114;\n L_0x010d:\n r0 = r17;\n r5 = r0.this$0;\n android.support.v7.widget.RecyclerView.access$3500(r5, r13, r14);\n L_0x0114:\n if (r2 != 0) goto L_0x0118;\n L_0x0116:\n if (r1 == 0) goto L_0x0153;\n L_0x0118:\n r5 = r9.getCurrVelocity();\n r6 = (int) r5;\n r5 = 0;\n if (r2 == r11) goto L_0x01e5;\n L_0x0120:\n if (r2 >= 0) goto L_0x01ce;\n L_0x0122:\n r5 = -r6;\n L_0x0123:\n r7 = r5;\n L_0x0124:\n r5 = 0;\n if (r1 == r12) goto L_0x01e2;\n L_0x0127:\n if (r1 >= 0) goto L_0x01d6;\n L_0x0129:\n r6 = -r6;\n L_0x012a:\n r0 = r17;\n r5 = r0.this$0;\n r5 = android.support.v4.view.ViewCompat.getOverScrollMode(r5);\n r15 = 2;\n if (r5 == r15) goto L_0x013c;\n L_0x0135:\n r0 = r17;\n r5 = r0.this$0;\n r5.absorbGlows(r7, r6);\n L_0x013c:\n if (r7 != 0) goto L_0x0146;\n L_0x013e:\n if (r2 == r11) goto L_0x0146;\n L_0x0140:\n r2 = r9.getFinalX();\n if (r2 != 0) goto L_0x0153;\n L_0x0146:\n if (r6 != 0) goto L_0x0150;\n L_0x0148:\n if (r1 == r12) goto L_0x0150;\n L_0x014a:\n r1 = r9.getFinalY();\n if (r1 != 0) goto L_0x0153;\n L_0x0150:\n r9.abortAnimation();\n L_0x0153:\n if (r4 != 0) goto L_0x0157;\n L_0x0155:\n if (r3 == 0) goto L_0x015e;\n L_0x0157:\n r0 = r17;\n r1 = r0.this$0;\n r1.dispatchOnScrolled(r4, r3);\n L_0x015e:\n r0 = r17;\n r1 = r0.this$0;\n r1 = android.support.v7.widget.RecyclerView.access$3600(r1);\n if (r1 != 0) goto L_0x016f;\n L_0x0168:\n r0 = r17;\n r1 = r0.this$0;\n r1.invalidate();\n L_0x016f:\n if (r14 == 0) goto L_0x01db;\n L_0x0171:\n r0 = r17;\n r1 = r0.this$0;\n r1 = android.support.v7.widget.RecyclerView.access$1100(r1);\n r1 = r1.canScrollVertically();\n if (r1 == 0) goto L_0x01db;\n L_0x017f:\n if (r3 != r14) goto L_0x01db;\n L_0x0181:\n r1 = 1;\n r2 = r1;\n L_0x0183:\n if (r13 == 0) goto L_0x01de;\n L_0x0185:\n r0 = r17;\n r1 = r0.this$0;\n r1 = android.support.v7.widget.RecyclerView.access$1100(r1);\n r1 = r1.canScrollHorizontally();\n if (r1 == 0) goto L_0x01de;\n L_0x0193:\n if (r4 != r13) goto L_0x01de;\n L_0x0195:\n r1 = 1;\n L_0x0196:\n if (r13 != 0) goto L_0x019a;\n L_0x0198:\n if (r14 == 0) goto L_0x019e;\n L_0x019a:\n if (r1 != 0) goto L_0x019e;\n L_0x019c:\n if (r2 == 0) goto L_0x01e0;\n L_0x019e:\n r1 = 1;\n L_0x019f:\n r2 = r9.isFinished();\n if (r2 != 0) goto L_0x01a7;\n L_0x01a5:\n if (r1 != 0) goto L_0x01b1;\n L_0x01a7:\n r0 = r17;\n r1 = r0.this$0;\n r2 = 0;\n android.support.v7.widget.RecyclerView.access$3700(r1, r2);\n if (r8 == 0) goto L_0x01b4;\n L_0x01b1:\n r17.postOnAnimation();\n L_0x01b4:\n if (r10 == 0) goto L_0x01ca;\n L_0x01b6:\n r1 = r10.isPendingInitialRun();\n if (r1 == 0) goto L_0x01c1;\n L_0x01bc:\n r1 = 0;\n r2 = 0;\n android.support.v7.widget.RecyclerView.SmoothScroller.access$3300(r10, r1, r2);\n L_0x01c1:\n r0 = r17;\n r1 = r0.mReSchedulePostAnimationCallback;\n if (r1 != 0) goto L_0x01ca;\n L_0x01c7:\n r10.stop();\n L_0x01ca:\n r17.enableRunOnAnimationRequests();\n return;\n L_0x01ce:\n if (r2 <= 0) goto L_0x01d3;\n L_0x01d0:\n r5 = r6;\n goto L_0x0123;\n L_0x01d3:\n r5 = 0;\n goto L_0x0123;\n L_0x01d6:\n if (r1 > 0) goto L_0x012a;\n L_0x01d8:\n r6 = 0;\n goto L_0x012a;\n L_0x01db:\n r1 = 0;\n r2 = r1;\n goto L_0x0183;\n L_0x01de:\n r1 = 0;\n goto L_0x0196;\n L_0x01e0:\n r1 = 0;\n goto L_0x019f;\n L_0x01e2:\n r6 = r5;\n goto L_0x012a;\n L_0x01e5:\n r7 = r5;\n goto L_0x0124;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: android.support.v7.widget.RecyclerView.ViewFlinger.run():void\");\n }", "title": "" }, { "docid": "46569800c9d73cd59bcbec066cdb5304", "score": "0.512542", "text": "private void lidoInf() {\n\n\n }", "title": "" }, { "docid": "fcfbf321ff3e4c56b4e383ce15e49dbb", "score": "0.5111608", "text": "@Override\r\n\tpublic void obtersaida()\r\n\t{\n\t}", "title": "" }, { "docid": "4ee6be2ea0f4404c96372b675aa6b3b7", "score": "0.5104837", "text": "private void generateEnd() {\n \t\t\n \t}", "title": "" }, { "docid": "dcdbcc40742d694f1bf57fd9bce5fbf3", "score": "0.5103776", "text": "@Override\r\n\tpublic void walk() {\n\t\t\r\n\t}", "title": "" }, { "docid": "4e19c3652a52a65257938d1660b264de", "score": "0.50991505", "text": "@Override\n public void computeScroll() {\n if (mDragHelper.continueSettling(true)) {\n ViewCompat.postInvalidateOnAnimation(SlidePanel.this);\n }\n }", "title": "" }, { "docid": "d6b8bb0df35b17fe1e790588d2bd84ed", "score": "0.5098652", "text": "public final void cxp() {\n int i;\n com.tencent.mm.plugin.story.g.h hVar;\n long j;\n at cAq;\n long j2 = 1;\n AppMethodBeat.i(109546);\n int i2 = 0;\n int i3 = 0;\n for (com.tencent.mm.media.editor.a.h hVar2 : this.rYw.getItemContainer().getAllItemViews()) {\n if (hVar2 instanceof com.tencent.mm.plugin.story.ui.view.editor.item.b) {\n i3++;\n }\n if (hVar2 instanceof com.tencent.mm.plugin.story.ui.view.editor.item.f) {\n i = i2 + 1;\n } else {\n i = i2;\n }\n if (hVar2 instanceof com.tencent.mm.plugin.story.ui.view.editor.item.e) {\n com.tencent.mm.plugin.story.g.h hVar3 = com.tencent.mm.plugin.story.g.h.scu;\n com.tencent.mm.plugin.story.g.h.cAm().fo(((com.tencent.mm.plugin.story.ui.view.editor.item.e) hVar2).getReportPositionString().toString());\n hVar3 = com.tencent.mm.plugin.story.g.h.scu;\n com.tencent.mm.plugin.story.g.h.cAm().fp(String.valueOf(((com.tencent.mm.plugin.story.ui.view.editor.item.e) hVar2).getLatitude()));\n hVar3 = com.tencent.mm.plugin.story.g.h.scu;\n com.tencent.mm.plugin.story.g.h.cAm().fq(String.valueOf(((com.tencent.mm.plugin.story.ui.view.editor.item.e) hVar2).getLongitude()));\n hVar = com.tencent.mm.plugin.story.g.h.scu;\n com.tencent.mm.plugin.story.g.h.cAq().FX();\n }\n i2 = i;\n }\n hVar = com.tencent.mm.plugin.story.g.h.scu;\n com.tencent.mm.plugin.story.g.h.cAm().be((long) i3);\n hVar = com.tencent.mm.plugin.story.g.h.scu;\n com.tencent.mm.plugin.story.g.h.cAm().bf((long) i2);\n hVar = com.tencent.mm.plugin.story.g.h.scu;\n com.tencent.mm.plugin.story.g.h.cAm().bk(this.rYq ? 1 : 0);\n hVar = com.tencent.mm.plugin.story.g.h.scu;\n com.tencent.mm.g.b.a.al cAm = com.tencent.mm.plugin.story.g.h.cAm();\n AudioCacheInfo audioCacheInfo = this.rYs;\n if (audioCacheInfo != null) {\n i = audioCacheInfo.cvd;\n com.tencent.mm.plugin.story.model.audio.AudioCacheInfo.a aVar = AudioCacheInfo.rUj;\n if (i == AudioCacheInfo.rUi) {\n j = 1;\n cAm.bj(j);\n hVar = com.tencent.mm.plugin.story.g.h.scu;\n cAq = com.tencent.mm.plugin.story.g.h.cAq();\n if (!this.rYq) {\n j2 = 0;\n }\n cAq.cd(j2);\n hVar = com.tencent.mm.plugin.story.g.h.scu;\n com.tencent.mm.plugin.story.g.h.cAq().bZ((long) i3);\n hVar = com.tencent.mm.plugin.story.g.h.scu;\n com.tencent.mm.plugin.story.g.h.cAq().ca((long) i2);\n AppMethodBeat.o(109546);\n }\n }\n j = 0;\n cAm.bj(j);\n hVar = com.tencent.mm.plugin.story.g.h.scu;\n cAq = com.tencent.mm.plugin.story.g.h.cAq();\n if (this.rYq) {\n }\n cAq.cd(j2);\n hVar = com.tencent.mm.plugin.story.g.h.scu;\n com.tencent.mm.plugin.story.g.h.cAq().bZ((long) i3);\n hVar = com.tencent.mm.plugin.story.g.h.scu;\n com.tencent.mm.plugin.story.g.h.cAq().ca((long) i2);\n AppMethodBeat.o(109546);\n }", "title": "" }, { "docid": "3664a4c7c6eb92c7653c321969ab2c5b", "score": "0.5092563", "text": "@Override\n\tpublic void computeScroll() {\n\t\tif (scroller.computeScrollOffset()) {\n\t\t\tscrollTo(scroller.getCurrX(), scroller.getCurrY());\n\t\t\tpostInvalidate();// 刷新\n\t\t}\n\t}", "title": "" }, { "docid": "f5a32bcc258723c66b024ca08e01604f", "score": "0.5086319", "text": "@Override\n\t\t\tpublic void run() {\n\t\t\t\t\n\t\t\t}", "title": "" }, { "docid": "f5a32bcc258723c66b024ca08e01604f", "score": "0.5086319", "text": "@Override\n\t\t\tpublic void run() {\n\t\t\t\t\n\t\t\t}", "title": "" }, { "docid": "f5a32bcc258723c66b024ca08e01604f", "score": "0.5086319", "text": "@Override\n\t\t\tpublic void run() {\n\t\t\t\t\n\t\t\t}", "title": "" }, { "docid": "f5a32bcc258723c66b024ca08e01604f", "score": "0.5086319", "text": "@Override\n\t\t\tpublic void run() {\n\t\t\t\t\n\t\t\t}", "title": "" }, { "docid": "27e4479db2c37a2e77fe796119b66d4b", "score": "0.50802696", "text": "@Override\r\n\t\t\tpublic void adelante() {\n\r\n\t\t\t}", "title": "" }, { "docid": "8495a0fe7972e9b20518759238460b72", "score": "0.5078047", "text": "@Override\n protected void preparingListener() {\n }", "title": "" }, { "docid": "2e30ec0ec3cc9513dbded9630ab9400d", "score": "0.5074302", "text": "@Override\n\tprotected void loadData() {\n\t\t\n\t}", "title": "" }, { "docid": "19b30f4f881d8f7b600c7c12f1c30963", "score": "0.5070996", "text": "public void mo5203c() {\n }", "title": "" }, { "docid": "963cb7748259d6cd136153dd9086abb9", "score": "0.5069252", "text": "@Override\r\n\t\t\tpublic void Main() {\n\r\n\t\t\t}", "title": "" }, { "docid": "794d9e5f7feca3175f27509fa46add3d", "score": "0.5056286", "text": "private void preReadItems()\n {\n\n }", "title": "" }, { "docid": "b2775812be4cd009dca27a30c5ce78fa", "score": "0.50516766", "text": "@Override\n\tprotected void fouseChange() {\n\n\t}", "title": "" }, { "docid": "5330f9743eeaf7eadc71115a54acccf5", "score": "0.50464696", "text": "@Override\n\t\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\t}", "title": "" }, { "docid": "bad5b012d56407db817a597c184a7791", "score": "0.5046379", "text": "@Override\n\tpublic void compact() {\n\t\t\n\t}", "title": "" }, { "docid": "7e9ce86237d6601a8f33e220dca0fb4f", "score": "0.5043839", "text": "@Override\n\tpublic void Scratch() {\n\t\t\n\t}", "title": "" }, { "docid": "7852cf2ee90a026d232aad7d3fd5697d", "score": "0.5042746", "text": "@Override\n public int describeContents() { //this method is not very used\n return 0;\n }", "title": "" }, { "docid": "2f90e2490d0fd7daa0dbfbc3942416df", "score": "0.50426614", "text": "@Override\n\tpublic void recuperar() {\n\t\t\n\t}", "title": "" }, { "docid": "c6a027c3a570c3d731deb79c9eabc620", "score": "0.5038959", "text": "@Override\r\n\tprotected void prepare() {\n\t\t\r\n\t}", "title": "" }, { "docid": "19048a87cb83d6c9503b806ebfa32926", "score": "0.5037683", "text": "@Override\n\tpublic void process() {\n\t\t\n\t}", "title": "" }, { "docid": "19048a87cb83d6c9503b806ebfa32926", "score": "0.5037683", "text": "@Override\n\tpublic void process() {\n\t\t\n\t}", "title": "" } ]
ba97db31ed1a5a81eca9d4c27fb01353
As the TimerTask run on a seprate thread from UI thread we have to call runOnUiThread to do work on UI thread.
[ { "docid": "89dcfa3af3eeb7b8ad5d399341d2349d", "score": "0.5730953", "text": "@Override\n public void run() {\n runOnUiThread(new Runnable() {\n public void run() {\n\n if (page > 5) {\n mViewPager.setCurrentItem(page);\n\n // In my case the number of pages are 5\n// timer.cancel();\n// // Showing a toast for just testing purpose\n// Toast.makeText(getApplicationContext(), \"Timer stoped\",\n// Toast.LENGTH_LONG).show();\n } else {\n mViewPager.setCurrentItem(page++);\n }\n }\n });\n\n }", "title": "" } ]
[ { "docid": "1206af5ba2500607ab420d66be0d30b5", "score": "0.8084019", "text": "private void TimerMethod() {\n this.runOnUiThread(Timer_Tick);\n }", "title": "" }, { "docid": "99bbacdb7760296637550382fba3256e", "score": "0.7245547", "text": "private void timerMethod() {\n getActivity().runOnUiThread(refreshListView);\n }", "title": "" }, { "docid": "b43bc0054c8e53693bae2e14cb494285", "score": "0.72000945", "text": "@Override\n\tpublic void run() {\n\t\t((Activity)context).runOnUiThread(new Runnable() {\n\t\t\t@Override\n\t\t\tpublic void run() {\n\t\t\t\tString string = context.getString(R.string.message_timer, MainActivity.TIMER_TASK_PERIOD / 1000);\n\t\t\t\tToast.makeText(context, string, Toast.LENGTH_SHORT).show();\n\t\t\t}\n\t\t});\n\t}", "title": "" }, { "docid": "259bc3b225bba887e43aa61894a8d8df", "score": "0.71113497", "text": "@Override\n public void run() {\n time_ = (int) (System.currentTimeMillis() - startTime_) / 1000;\n updateUI();\n\n if (time_ >= maxTime_) {\n // Log.v(VUphone.tag, \"TimerTask.run() entering timeout\");\n handler_.post(new Runnable() {\n public void run() {\n report(true);\n }\n });\n }\n }", "title": "" }, { "docid": "1a972c662153a74514214ae8ae8f4c8a", "score": "0.7019634", "text": "private void timerStart()\r\n { updateTimer.postDelayed(updateTimerTask, UPDATE_TIME); }", "title": "" }, { "docid": "661d2716016b8c2b8f8d11887fcf4123", "score": "0.6968529", "text": "@Override\n public void runOnUiThread(Runnable r) {\n }", "title": "" }, { "docid": "9b8aa288a74ef885ef77d9aa237382bb", "score": "0.6706702", "text": "public interface ITimerTaskListener {\n /**\n * 具体要执行的定时任务\n * 此方法在子线程中\n * 变化UI的话,请切换到主线程\n */\n void onTimer();\n}", "title": "" }, { "docid": "729ca5e161819290a3188b279a95862c", "score": "0.66664964", "text": "@Override\n\t\t\tpublic void run() {\n\t\t\t\tLog.e(\"timer\",\"calling\");\n\t\t\t\tMessage message = mHandler.obtainMessage();\n\t\t\t\tmessage.sendToTarget();\n\n\t\t\t}", "title": "" }, { "docid": "4345f80f875882103d597a22fa6bc051", "score": "0.66081566", "text": "public abstract void runOnUiThread(Runnable runnable);", "title": "" }, { "docid": "8d3ca8142bbb1488d1e7642cb185833b", "score": "0.65908515", "text": "@Override // se crea una clase anonima donde se implementa el metodo run porque Timer task implementa la interfaz runnable\r\n public void run() {\r\n System.out.println(\"Tarea realizada en: \" + new Date() + \" nombre del Thread: \"\r\n + Thread.currentThread().getName()); //retorna el nombre del hilo actual\r\n System.out.println(\"Finaliza el tiempo\");\r\n timer.cancel(); // termina este timer descartando cualquier tarea programada actual\r\n }", "title": "" }, { "docid": "9c7d072350f4366728a29c02cb21e94a", "score": "0.6547518", "text": "public void initializeTimerTask() {\n timerTask = new TimerTask() {\n public void run() {\n Log.i(\"in timer\", \"in timer ++++ \"+ (counter++));\n cek_tugas();\n uploadphoto();\n cekNotifSampai();\n cekJanjiSurvey();\n }\n };\n }", "title": "" }, { "docid": "2e7e9c894c77550172e63c06029f37bb", "score": "0.64662033", "text": "public void initializeTimerTask() {\n timerTask = new TimerTask() {\n @RequiresApi(api = Build.VERSION_CODES.LOLLIPOP)\n public void run() {\n Log.e(tag, \"in timer ++++ \"+ (counter++));\n usageStatsManager = (UsageStatsManager) getApplicationContext().getSystemService(\"usagestats\");\n packageManager = getApplicationContext().getPackageManager();\n UsageEvents usageEvents = usageStatsManager.queryEvents(getStartTime(), System.currentTimeMillis());\n while (usageEvents.hasNextEvent()) {\n UsageEvents.Event event = new UsageEvents.Event();\n usageEvents.getNextEvent(event);\n if (event.getEventType() == UsageEvents.Event.MOVE_TO_FOREGROUND &&\n event.getPackageName().equalsIgnoreCase(\"com.google.android.youtube\"))\n {\n handler.post(new Runnable() {\n @Override\n public void run() {\n Toast.makeText(getApplicationContext(), \"Sagar says - YouTube is Opened\", Toast.LENGTH_LONG).show();\n }\n });\n Log.e(tag, \"ACTION FOREGROUND\");\n Log.e(tag, \"PackageName \"+ event.getPackageName());\n Log.e(tag, \"timestamp \"+ new SimpleDateFormat\n (\"dd/MM/yyyy HH:mm:ss\").format(event.getTimeStamp()));\n }\n else if (event.getEventType() == UsageEvents.Event.MOVE_TO_BACKGROUND &&\n event.getPackageName().equalsIgnoreCase(\"com.google.android.youtube\"))\n {\n handler.post(new Runnable() {\n @Override\n public void run() {\n Toast.makeText(getApplicationContext(), \"Sagar says - YouTube goes in background\", Toast.LENGTH_LONG).show();\n }\n });\n Log.e(tag, \"ACTION BACKGROUND\");\n Log.e(tag, \"PackageName \"+ event.getPackageName());\n Log.e(tag, \"timestamp \"+ new SimpleDateFormat\n (\"dd/MM/yyyy HH:mm:ss\").format(event.getTimeStamp()));\n }\n }\n }\n };\n }", "title": "" }, { "docid": "a6459c3aa5c07abc74b966b828e5080c", "score": "0.64635044", "text": "@Override\n public void run() {\n if (!started) {\n timerTxt.setText(\"00:00:00\");\n }\n else {\n long currentTime = System.currentTimeMillis() - startTime;\n updateTime = currentTime;\n int secs = (int) (updateTime / 1000);\n int mins = secs / 60;\n int hours = mins / 60;\n secs %= 60;\n timerTxt.setText(\"\" + String.format(\"%02d\", hours) + \":\" + String.format(\"%02d\", mins) + \":\" + String.format(\"%02d\", secs), TextView.BufferType.EDITABLE);\n handler.post(this);\n }\n }", "title": "" }, { "docid": "265682c084af19c66df35daf033f2b38", "score": "0.6448571", "text": "private void runTimer() {\n\n // Handler\n final Handler handler = new Handler();\n\n handler.post(new Runnable() {\n @Override\n public void run() {\n\n if (playingTimeRunning) {\n playingSecs++;\n }\n\n handler.postDelayed(this, 1000);\n }\n });\n\n }", "title": "" }, { "docid": "a7f0562e6b44179fbf2129dece6adb00", "score": "0.64226764", "text": "public void run() {\n handler.post(new Runnable() {\n public void run() {\n YOURNOTIFICATIONFUNCTION();\n\n Log.e(\"WWWWW\", \"WWWWWWWWW\" + timer);\n\n }\n });\n }", "title": "" }, { "docid": "3139773580c70e4cf1b7a72afeaacfe1", "score": "0.6383472", "text": "public void run() {\n runOnUiThread(new Runnable() {\n @Override\n public void run() {\n TextView tdate=(TextView)findViewById(R.id.textview_time);\n long date=System.currentTimeMillis();\n SimpleDateFormat sdf=new SimpleDateFormat(\"hh-mm a\");\n String dateString=sdf.format(date);\n tdate.setText(dateString);\n }\n });\n }", "title": "" }, { "docid": "23479d3ba635818090a3ea238686f03d", "score": "0.6369119", "text": "public void doWork() {\r\n runOnUiThread(new Runnable() {\r\n @SuppressWarnings(\"deprecation\")\r\n public void run() {\r\n try{\r\n TextView txtCurrentTime= (TextView)findViewById(R.id.time);\r\n Date dt = new Date();\r\n int hours = dt.getHours();\r\n int minutes = dt.getMinutes();\r\n int seconds = dt.getSeconds();\r\n\r\n String time = \"AM\";\r\n String min = Integer.toString(minutes);\r\n String sec =Integer.toString(seconds);\r\n\r\n if (hours > 12) {\r\n hours = hours - 12;\r\n time = \"PM\";\r\n }\r\n if (hours == 12)\r\n {\r\n time = \"PM\";\r\n }\r\n if (minutes < 10){\r\n DecimalFormat formatter = new DecimalFormat(\"00\");\r\n min = formatter.format(minutes);\r\n }\r\n if (seconds < 10){\r\n DecimalFormat formatter = new DecimalFormat(\"00\");\r\n sec = formatter.format(seconds);\r\n }\r\n String curTime = hours + \":\" + min + \":\" + sec;\r\n txtCurrentTime.setText(\"Current Time: \" + curTime + \" \" + time);\r\n\r\n int i=0, x=0;\r\n for (String temp [] : stops){\r\n int size = temp.length;\r\n\r\n Log.i(\"StopsActivity_x\", \"x is: \" + x);\r\n for (i=2; i<size; i++){\r\n\r\n if (temp[i].contains (\"AM\") || temp[i].contains (\"PM\")){\r\n\r\n Log.i(\"StopsActivity_x\", \"temp is: \" + temp[i]);\r\n //Log.i(\"StopsActivity_stops\", temp[i]);\r\n String split[] = temp[i].split(\":\");\r\n int stopTime = Integer.parseInt(split[0]);\r\n\r\n if (split[1].contains(\"PM\") && stopTime != 12) {\r\n stopTime = stopTime + 12;\r\n } else if (split[1].contains(\"AM\") && stopTime == 12)\r\n stopTime = 0;\r\n\r\n //Log.i(\"StopsActivity_test\", \"12-hour time is: \" + split[0] + \" 24 hour time is: \" + stopTime);\r\n\r\n int currHour = hours;\r\n\r\n if (time.contains(\"PM\") && currHour != 12) {\r\n currHour = currHour + 12;\r\n } else if (time.contains(\"AM\") && currHour == 12)\r\n currHour = 0;\r\n\r\n //Log.i(\"StopsActivity_test\", \"12-hour current time is: \" + hours + \" 24 hour current time is: \" + currHour);\r\n\r\n Log.i (\"StopsActivity_x\", \"stopTime is: \" + stopTime + \" and currHour is: \" + currHour);\r\n if (stopTime == currHour) {\r\n\r\n String busSplit[] = split[1].split(\" \");\r\n\r\n int curMin = Integer.parseInt(min);\r\n int busMin = Integer.parseInt(busSplit[0]);\r\n\r\n if (busMin > curMin) {\r\n String des = \"Next Bus at: \" + temp[i];\r\n routeItems.get(x).setRouteDescription(des);\r\n //TextView nextTime = (TextView) view.findViewById(R.id.nextbus);\r\n //nextTime.setText(\"Next Bus at: \" + temp[i]);\r\n break;\r\n }\r\n }\r\n else if (stopTime > currHour) {\r\n\r\n //TextView nextTime = (TextView) view.findViewById(R.id.nextbus);\r\n //nextTime.setText(\"Next Bus at: \" + temp[i]);\r\n String des = \"Next Bus at: \" + temp[i];\r\n routeItems.get(x).setRouteDescription(des);\r\n break;\r\n }\r\n }\r\n }\r\n x++;\r\n }\r\n }\r\n catch (Exception e) {}\r\n }\r\n });\r\n }", "title": "" }, { "docid": "606ae3f2ef12bd40409335b5c94f9e56", "score": "0.6367025", "text": "private void updateUI() {\n runOnUiThread(new Runnable() {\n @Override\n public void run() {\n\n if(timer_count==5) {\n\n //Animation Starts by Singing Si\n animateReceiveMoney();\n animateSendMoney();\n PlayIntoSound(siID);\n\n tvSiOut.setVisibility(View.VISIBLE);\n tvSiIn.setVisibility(View.VISIBLE);\n tvDoIn.setVisibility(View.VISIBLE);\n tvDoOut.setVisibility(View.VISIBLE);\n tvSIDO.setVisibility(View.VISIBLE);\n tvSIDO.setText(\"SI\");\n }\n\n else if(timer_count==20){\n //Animation Ends by Singing Do\n PlayIntoSound(doID);\n\n //dISPLAY DO TEXT\n tvSIDO.setText(\"SIDO\");\n\n\n }\n\n else if(timer_count==25){\n\n //DISPLAY mONEY TRANSFER TEXT\n tvMoneyTransfer.setVisibility(View.VISIBLE);\n\n }\n\n }\n });\n }", "title": "" }, { "docid": "4ec935c6b7827b45ee58083ac4f9f3a9", "score": "0.6316229", "text": "@Override\n public void run() {\n long seconds = millisUntilFinished / 1000;\n long minutes = seconds / 60;\n\n String time = minutes % 60 + \":\" + seconds % 60;\n// double timeInDouble = Double.parseDouble(time);\n if(minutes >= 0 && seconds >= 0)holder.setText(time);\n else holder.setText(\"Task Completed\");\n\n millisUntilFinished -= 1000;\n\n Log.d(\"DEV123\",time);\n// imageView.setX(imageView.getX()+seconds);\n /* and here comes the \"trick\" */\n handler.postDelayed(this, 1000);\n }", "title": "" }, { "docid": "bab9fb39dcaed5b050b225df6fbac4f8", "score": "0.6297697", "text": "@Override\r\n public void run() {\n if (D) Log.w(TAG, \"Wait Progress Timeout\");\r\n // stop timer\r\n cancelProgressBar();\r\n\r\n if (mProgressBarSupperCallback != null) {\r\n mProgressBarSupperCallback.onSupperTimeout();\r\n }\r\n }", "title": "" }, { "docid": "96e2e25873c5d1cce545243d1bc30867", "score": "0.6288191", "text": "public void buildTimer() {\n if(mTask.isRunning()) {\n // Update the time from when the timer was last running\n if(mTask.getLastTick() > 0) {\n mTask.incrementTime((int) ((System.currentTimeMillis() - mTask.getLastTick()) / 1000));\n mTask.setLastTick(-1);\n invalidate();\n }\n\n // Create and start the timer\n if(mTimer != null) mTimer.interrupt();\n mTimer = new TaskTimerThread(mTask, 1, this);\n mTimer.start();\n Log.v(TAG, \"Started timer\");\n } else {\n // Stop the timer and clear the last tick\n if(mTimer != null) mTimer.interrupt();\n mTask.setLastTick(-1);\n Log.v(TAG, \"Stopped timer\");\n }\n }", "title": "" }, { "docid": "079f90f08b85acaf1f91b2055f0284d9", "score": "0.62622434", "text": "private void setNewTimer() {\n if (!isSetNewTimerThreadEnabled) {\n return;\n }\n\n timer = new Timer();\n timer.scheduleAtFixedRate(new TimerTask() {\n\n @Override\n public void run() {\n // Send the message to the handler to update the UI of the GameView\n GameActivity.this.handler.sendEmptyMessage(UPDATE);\n\n // For garbage collection\n System.gc();\n }\n\n }, 0, 17);\n }", "title": "" }, { "docid": "c290520bb2ecd70e40d6084ef7a0fec0", "score": "0.6240377", "text": "public void start_handler_timer_task() {\n if (timertask != null) {\n return;\n }\n timertask = new Timer();\n timertask.scheduleAtFixedRate(new fyp002_Handler(), MOBILE_DELAY/2, MOBILE_INTERVAL/2);\n }", "title": "" }, { "docid": "2b89c52cc6c06e9ca767387d835d535a", "score": "0.6228487", "text": "public void run()\r\n\t{\r\n\t\ttimer.scheduleAtFixedRate(this.getTimerTask(), 0, repeat * 60 * 1000);\r\n\t}", "title": "" }, { "docid": "c0318edd379ec1f623dfa59a19606fca", "score": "0.6182259", "text": "@Override\n\t\t\tpublic void run() {\n\t\t\t\tif(mVideoView != null && mVideoView.isPlaying())\n\t\t\t\t\tstartTimer();\n\t\t\t}", "title": "" }, { "docid": "6929cdd930cc21a9a680969f8e951466", "score": "0.6170273", "text": "public void run()\r\n {\n \tm_Handler.sendEmptyMessage(JMSG_TIMER);\r\n }", "title": "" }, { "docid": "ed447b25995c26267d445c5096ec38d8", "score": "0.61662453", "text": "public void run() {\n\t\t\twhile (true) {\n\t\t\t\ttry {\n\t\t\t\t\t\n\t\t\t\t\tThread.sleep(500L);\n\t\t\t\t\t// Thread.sleep(30);\n\t\t\t\t\trunOnUiThread(done);\n\n\t\t\t\t} catch (InterruptedException e) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t}", "title": "" }, { "docid": "96d378fab67a449bf14a2e8295edb122", "score": "0.61437374", "text": "public void run() {\n if (currentTimer <= TIMEOUT_VALUE) {\n currentTimer++; // Increments the timer value.\n readySongTimerHandler.postDelayed(this, 1000); // Thread is run again in 1000 ms.\n }\n\n // Displays an timeout error message and stops the ready song timer thread.\n else {\n SSToast.toastyPopUp(\"The track could not be played due to a time-out error.\", getApplicationContext());\n pauseTrack(true); // Stops attempted playback of track.\n stopSongPrepare(true); // Signals the SSPlayerFragment to stop song preparation conditions.\n currentTimer = 0; // Resets the current timer value.\n readySongTimerHandler.removeCallbacks(this);\n }\n }", "title": "" }, { "docid": "423799076b23291bd29bcb3287b1e367", "score": "0.6129445", "text": "@Override\n\tpublic void runOnUiThread( final Runnable action ) {\n\t\tif ( mContext != null ) ( (Activity) mContext ).runOnUiThread( action );\n\t}", "title": "" }, { "docid": "8553fddd69d77346bfe2a158105e22bf", "score": "0.6094742", "text": "public void run() {\n\t\t\t\t\t\tif (!compositeUnderDisplay.isDisposed()) {\n\t\t\t\t\t\t\tfinal DeviceUI ui = (DeviceUI) compositeUnderDisplay;\n\t\t\t\t\t\t\tui.updateTimers(deviceUnderDisplay, kind, duration);\n\t\t\t\t\t\t}\n\t\t\t\t\t}", "title": "" }, { "docid": "c46b63a354b968bd6735ed7fbf53a624", "score": "0.6090577", "text": "@Override\n public void run() {\n while(timerFlag){\n\n if(count == 700){\n\n if(timer_count == true) {\n //TODO 업데이트가 되어 오면 true로 변경경\n break;\n }\n else if(timer_count ==false)\n {\n /* MainActivity.getInstance().showToastOnWorking(\"제어가 되지 않았습니다.\");*/\n\n //timer\n Message msg = timercountHandler.obtainMessage();\n msg.what = 1;\n msg.obj = getResources().getString(R.string.not_controled);//\"제어가 동작하지 않았습니다.\";\n timercountHandler.sendMessage(msg);\n count = 0;\n\n Message msg1 = timercountHandler.obtainMessage();\n msg1.what = 2;\n timercountHandler.sendMessage(msg1);\n\n// deviceUIsetting();\n break;\n }\n }\n\n count++;\n// Log.d(TAG,\"count : \" + count);\n\n try {\n Thread.sleep(CONTROL_OPTIONS_TIMEOUT);\n } catch (InterruptedException e) {\n // TODO Auto-generated catch block\n e.printStackTrace();\n }\n\n\n }\n }", "title": "" }, { "docid": "e5a1da5d3f68369d7b1ebcd8ca45c0e3", "score": "0.6088017", "text": "private void trackerTimer() {\n\n Thread timer;\n timer = new Thread() {\n\n @Override\n public void run() {\n while (true) {\n\n if (Var.timerStart) {\n try {\n Var.sec++;\n if (Var.sec == 59) {\n Var.sec = 0;\n Var.minutes++;\n }\n if (Var.minutes == 59) {\n Var.minutes = 0;\n Var.hours++;\n }\n Thread.sleep(1000);\n } catch (Exception cool) {\n System.out.println(cool.getMessage());\n }\n\n }\n timerText.setText(Var.hours + \":\" + Var.minutes + \":\" + Var.sec);\n }\n\n }\n };\n\n timer.start();\n }", "title": "" }, { "docid": "7cd92529bb4f033a749a7ed26d71d05e", "score": "0.60670346", "text": "@Override\n\tpublic void run() {\n\t\t\n\t // Inizializza nome thread\n\t Thread.currentThread().setName(\"Timer\");\n\t \n\t // Richiama procedura di gestione aggiornamento configurazione\n\t update();\n }", "title": "" }, { "docid": "52a90946d494837bfe791017920682e5", "score": "0.6060735", "text": "private void m50364C() {\n m50412n().runOnUiThread(new C11092g(this));\n }", "title": "" }, { "docid": "759e314055caa581ded2fb20a6c4bf03", "score": "0.6029105", "text": "@Override\r\n\t\tpublic void run() {\n\t\t\tSystem.out.println(\"updateThread\");\r\n\t\t\thandler.postDelayed(updateThread, 3000);\r\n\t\t}", "title": "" }, { "docid": "c4b7cfb3207c43b14496ff2927ca097c", "score": "0.60285205", "text": "@Override\n\t\t\tpublic void run() {\n\t\t\t\tSystem.out.println(\"timertest3\");\n\n\t\t\t}", "title": "" }, { "docid": "9f45bb866654326a10b01cc84499df9f", "score": "0.6022833", "text": "void start_timer(){\n tv_verify_downtime.setVisibility(View.VISIBLE);\n countDownTimer.start();\n }", "title": "" }, { "docid": "3f04fd9cfc8e65f13fc8493b73e23280", "score": "0.6022197", "text": "public void mo64138d() {\n postDelayed(new Runnable() {\n /* class com.zhihu.android.app.p1011ad.pushad.$$Lambda$AbstractNotificationView$HVHAzhbCxIMQZsjZXHKewL15mps */\n\n public final void run() {\n AbstractNotificationView.lambda$HVHAzhbCxIMQZsjZXHKewL15mps(AbstractNotificationView.this);\n }\n }, 6000);\n }", "title": "" }, { "docid": "2cc65c225233e89d3f6c3c1b05a558c5", "score": "0.60194314", "text": "@Override\n public void run() {\n if (timerValidFlag)\n gSeconds++;\n Message message = new Message();\n message.what = 1;\n handler.sendMessage(message);\n }", "title": "" }, { "docid": "785b04562b215ad19582cca97881888a", "score": "0.6007705", "text": "private void initTimerTask() {\n\t\t\n\t\ttimerTask = new TimerTask() { \n\t\t @Override \n\t\t public void run() { \n\t\t // TODO Auto-generated method stub \n\t\t \t\n\t\t \tif (isCompleteQuery) {\n\t\t \t\tisCompleteQuery = !isCompleteQuery;\n\t\t \t\t\n\t\t \t\tMessage message = new Message(); \n\t\t\t message.what = 911; \n\t\t\t handler.sendMessage(message); \n\t\t\t LogUtils.i(\"*****************定时任务查询\");\n\t\t\t\t}\n\t\t \n\t\t } \n\t\t}; \n\t\tif (timer == null) {\n\t\t\ttimer = new Timer();\n\t\t}\n\t\t\n\t\ttimer.schedule(timerTask, 10000, 5000);//延迟10秒查询,每5秒执行一次\n\t}", "title": "" }, { "docid": "99e3a0acdc49eb616e13a7932662d576", "score": "0.5994724", "text": "public void PerformTimerTask() {\n \tif(refreshRate !=0){\n x+=px;\n y+=py;\n if (x+width >= panelW) {\n x = panelW - width;\n px = -px;\n }\n if (y+height >= panelH) {\n y = panelH - height;\n py = -py;\n }\n if (x < 0) {\n x = 0;\n px = -px;\n }\n if (y < 0) {\n y = 0;\n py = -py;\n }\n repaint();\n \t}\n }", "title": "" }, { "docid": "5acd398af48480e566e8d129bd0e88ef", "score": "0.5972147", "text": "private void timerExample() {\n getObservable()\n //Run on a background thread\n .subscribeOn(Schedulers.io())\n //Be notified on the main thread\n .observeOn(AndroidSchedulers.mainThread())\n .subscribe(getLongObserver());\n }", "title": "" }, { "docid": "373e6b6d21e6e10d076653a6a0b85edf", "score": "0.5970105", "text": "@Override\n public void run() {\n textTimer.setText(String.valueOf(currentTime));\n }", "title": "" }, { "docid": "e836f74404475e9922322956a752e6c8", "score": "0.5968939", "text": "@Override\n\t\t\tpublic void run() {\n\t\t\t\tSystem.out.println(\"timertest4\");\n\n\t\t\t}", "title": "" }, { "docid": "2a5124ee5ce5e19eab235c2c58be73b1", "score": "0.5957165", "text": "public void startTimer() {\n mStatusChecker.run();\n }", "title": "" }, { "docid": "c191d14ff28dc949f333c06d61b53860", "score": "0.593391", "text": "private void backgroundTimerHandler() {\n if (timer == null);\n timer = new Timer();\n\n TimerTask timerTask = new TimerTask() {\n @Override\n public void run() {\n ReportSender.sendReport();\n }\n };\n\n timer.schedule(timerTask, timerTime);\n }", "title": "" }, { "docid": "75cb6c464b06b6838238c2d19b959878", "score": "0.59325117", "text": "public void schedule() {\n cancel();\n timer.schedule(new TimerTask() {\n @Override\n public void run() {\n runnable.run();\n }\n }, delay);\n }", "title": "" }, { "docid": "c9e8a180fb7e456710a5812f60e6aede", "score": "0.5931508", "text": "public void actionPerformed(ActionEvent e) {\n PerformTimerTask();\n }", "title": "" }, { "docid": "d28c50ddbfd86efa4e03d61a963d372b", "score": "0.5897984", "text": "@Override\n public void run() {\n updateInstanceFields();\n updateUI();\n /* and here comes the \"trick\" */\n updateHandler.postDelayed(this, 100);\n }", "title": "" }, { "docid": "1fd22d6de828a67dfc6f6d8b49233fbb", "score": "0.5880822", "text": "@Override\n public void run() {\n mHandler.post(new Runnable() {\n\n @Override\n public void run() {\n // display toast\n locationupdate();\n }\n\n });\n }", "title": "" }, { "docid": "3ce71c8b26246be1464f19fe317f30b9", "score": "0.5877745", "text": "protected void onPostExecute(String result) {\n final Toast tag = Toast.makeText(getBaseContext(), result,Toast.LENGTH_SHORT);\n\n tag.show();\n\n new CountDownTimer(9000, 1000)\n {\n\n public void onTick(long millisUntilFinished) {tag.show();}\n public void onFinish() {tag.show();}\n\n }.start(); }", "title": "" }, { "docid": "78c876129da4ec415036663880fe174f", "score": "0.586059", "text": "@Override\n public void onClick(View v) {\n runOnUiThread(new Runnable() {\n @Override\n public void run() {\n gameStatus.restartTimer();\n View v1 = findViewById(R.id.game_layout);\n View v = findViewById(R.id.dlb_game_over_view);\n v.setVisibility(View.GONE);\n gameView.resetLife();\n gameView.setRunning(true);\n v1.setVisibility(View.VISIBLE);\n }\n });\n }", "title": "" }, { "docid": "4340d2ca9091b703f41ae77df6163638", "score": "0.5858753", "text": "@Override\n\tpublic void run() {\n\t\ttry {\n\t\t\tThread.sleep(this.timerTime);\n\t\t} catch (InterruptedException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\tthis.timerFinished = true;\n\t}", "title": "" }, { "docid": "1c2418cabb288f2d470475a25ec9853a", "score": "0.5856363", "text": "@Override\n public void run() {\n getUserServiceability();\n handler.postDelayed(this, 20000);\n }", "title": "" }, { "docid": "760e3626f45205e0fc92d112b38843fb", "score": "0.58543885", "text": "private TimerTask getTimerTask() {\n TimerTask timerTask = new TimerTask() {\n @Override\n public void run() {\n\n if (angleSignaled && !ConcurrencyUtil.isAnyAnimationOnRun()) {\n\n // numAnimationOnRun += 2;\n Map<String, Double> newAnglesMap = qiblaManager\n .fetchDeltaAngles();\n Double newNorthAngle = newAnglesMap\n .get(QiblaCompassManager.NORTH_CHANGED_MAP_KEY);\n Double newQiblaAngle = newAnglesMap\n .get(QiblaCompassManager.QIBLA_CHANGED_MAP_KEY);\n\n Message message = mHandler.obtainMessage();\n message.what = ROTATE_IMAGES_MESSAGE;\n Bundle b = new Bundle();\n if (newNorthAngle == null) {\n b.putBoolean(IS_COMPASS_CHANGED, false);\n } else {\n ConcurrencyUtil.incrementAnimation();\n b.putBoolean(IS_COMPASS_CHANGED, true);\n\n b.putDouble(COMPASS_BUNDLE_DELTA_KEY, newNorthAngle);\n }\n if (newQiblaAngle == null) {\n b.putBoolean(IS_QIBLA_CHANGED, false);\n\n } else {\n ConcurrencyUtil.incrementAnimation();\n b.putBoolean(IS_QIBLA_CHANGED, true);\n b.putDouble(QIBLA_BUNDLE_DELTA_KEY, newQiblaAngle);\n }\n\n message.setData(b);\n mHandler.sendMessage(message);\n } else if (ConcurrencyUtil.getNumAimationsOnRun() < 0) {\n Log.d(NAMAZ_LOG_TAG,\n \" Number of animations are negetive numOfAnimation: \"\n + ConcurrencyUtil.getNumAimationsOnRun());\n }\n }\n };\n return timerTask;\n }", "title": "" }, { "docid": "ff19c9a23fb9093130b5043ed03e5193", "score": "0.5839945", "text": "@Override\n\t\t\tpublic void run() {\n\t\t\t\tstartRecallJobTask();\n\t\t\t\tmHandler.postDelayed(mHandlerTask, INTERVAL);\n\t\t\t}", "title": "" }, { "docid": "3cc18cc2b52ff2d32793f15ab91fac8c", "score": "0.5839433", "text": "@Override\n public void run() {\n handler.postDelayed(runnableCode, apiCallFrequency);\n\n //Initiates reload of forceLoad() in TickerLoader\n reload();\n }", "title": "" }, { "docid": "f46ff05a68548bc0a7bb18b54dfefa38", "score": "0.5835081", "text": "@Override\r\n\t\t public void run() {\r\n\t\t\t\tPlatform.runLater(new Runnable() {\r\n\t\t\t\t\tpublic void run() {\r\n\t\t \t timerLabel.setText(\"Time left: \" + countDown);\r\n\t\t countDown--;\r\n\t\t if (countDown < 0){timer.cancel();}\r\n\t\t\t}});}", "title": "" }, { "docid": "4ccba4dec2323c7891191c0aa9bceab3", "score": "0.582844", "text": "public void runOnUiThread(Runnable action) {\n h.post(action);\n }", "title": "" }, { "docid": "58abcf64698f8f5a3faff7b3421941cb", "score": "0.5821315", "text": "private void startTimer(){\n timer= new Timer();\r\n task = new TimerTask() {\r\n @Override\r\n public void run() {\r\n waitDuration++;\r\n\r\n timerLabel.setText(Integer.toString(waitDuration));\r\n }\r\n };\r\n timer.scheduleAtFixedRate(task,1000,1000);\r\n }", "title": "" }, { "docid": "034cbf73d30ecd8771d5d6cbbc9ffdc6", "score": "0.5813423", "text": "@Override\r\n protected void onResume() {\n mDjiGLSurfaceView.resume();\r\n \r\n mTimer = new Timer();\r\n Task task = new Task();\r\n mTimer.schedule(task, 0, 500); \r\n \r\n DJIDrone.getDjiMC().startUpdateTimer(1000);\r\n super.onResume();\r\n }", "title": "" }, { "docid": "dc24aa9dea4731d64c358fa01e09d092", "score": "0.5800729", "text": "@Override\n protected void onPostExecute(String s) {\n\n super.onPostExecute(s);\n loading.dismiss();\n parseAndShow(s);\n //startTime = SystemClock.uptimeMillis();\n //handler.postDelayed(updateTimerThread, 0);\n //startTimer();\n\n }", "title": "" }, { "docid": "05e345bb8e450da8c8e6ae0ac776f032", "score": "0.57933635", "text": "public CustomTimerTask(Context con) {\n this.context = con;\n }", "title": "" }, { "docid": "5dc6e8644a68605251f4a7e50a3aa2b0", "score": "0.57907647", "text": "private synchronized void reStartTimer(){\n handler.removeCallbacks(null);\n handler.postDelayed(new Runnable(){\n @Override\n public void run(){\n if (running) reStartTimer();\n update();\n }\n }, TURN_DELAY_MILLIS);\n }", "title": "" }, { "docid": "540d20ee48f313441d10be17c4adaccc", "score": "0.57878107", "text": "private void timmer() {\n showTimmerOptions();\n\n\n\n final int val = 500;\n taskProgressInner = (ProgressBar) findViewById(com.ryansplayllc.ryansplay.R.id.TaskProgress_Inner);\n new Thread(new Runnable() {\n public void run() {\n int tmp = (val / 100);\n\n for (int incr = 0; incr <= val; incr++) {\n\n try {\n taskProgressInner.setProgress(incr);\n if ((incr % 100) == 0) {\n tmp--;\n }\n Thread.sleep(10);\n } catch (Exception e) {\n e.printStackTrace();\n }\n }\n }\n }).start();\n\n // intilaizating count down timer object\n progressDialog.dismiss();\n countDownTimer = new CountDownTimer(4000, 1000) {\n\n public void onTick(long millisUntilFinished) {\n countDownTextView.setText(Long\n .toString(millisUntilFinished / 1000));\n\n\n }\n\n public void onFinish() {\n\n countDownTextView.setText(\"0\");\n\n\n isSelectable = false;\n\n\n // changing text view if player is not umpire\n if (!Utility.isUmpire) {\n\n runOnUiThread(new Runnable() {\n\n @Override\n public void run() {\n String message = \"Waiting for the Umpire result.\";\n// showWaitingPopUp(message);\n showBallinPlayView();\n final ImageView gamescreenbackground = (ImageView) findViewById(com.ryansplayllc.ryansplay.R.id.umpirescreenfield);\n gamescreenbackground.setImageResource(com.ryansplayllc.ryansplay.R.drawable.baseball_field);\n\n\n }\n });\n }\n // calling method to submit result\n submitPlayerPrediction();\n }\n };\n isSelectable = true;\n countDownTimer.start();\n\n }", "title": "" }, { "docid": "ed18a40b2669e64ddd6d25868e9f5148", "score": "0.578109", "text": "@Override\n public void run() {\n if (!MainActivity.pause) {\n MainActivity.fetch = MainActivity.fetch - 1;\n MainActivity.cpbProgress.setProgress(MainActivity.fetch);\n if (MainActivity.fetch < 10) {\n MainActivity.tvTimer.setText(Constant.ZERO + MainActivity.fetch + \"\");\n } else {\n MainActivity.tvTimer.setText(MainActivity.fetch + \"\");\n }\n if (MainActivity.fetch == 0) {\n /*Toast t=Toast.makeText(MainActivity.act, \"Sorry time is Up....\",4000);//////..........not working............///////\n t.show();*/\n finish();\n System.exit(0);\n }\n } else {\n i--;\n }\n }", "title": "" }, { "docid": "59d1f7e2ecca6e80052b05d1e0dab4cb", "score": "0.57742226", "text": "@Override\n public void onClick(View v) {\n startTime = SystemClock.uptimeMillis();\n\n //postDelayed will have the runnable to be added to the message queue by the specified\n //value which in this case would be 0\n handler.postDelayed(runnable, 0);\n\n //This will make the reset button inactive while the timer is going\n reset.setEnabled(false);\n }", "title": "" }, { "docid": "ede9dbb5b55662be645f793e354a963c", "score": "0.57732165", "text": "@Override\n public void run() {\n System.out.println(\"hello\");\n loadunsendmessage();\n if(tmr==0){\n handler.postDelayed(this, 10000);\n }\n }", "title": "" }, { "docid": "34b7f3feea154b832ad00c78828d2de5", "score": "0.57701397", "text": "@Override\n public void run() {\n BookInfo.this.runOnUiThread(new Runnable() {\n @Override\n public void run() {\n mSwipyRefreshLayout.setRefreshing(false);\n }\n });\n }", "title": "" }, { "docid": "b1ed4f616de8c8dcea622364158c001d", "score": "0.5769443", "text": "@Override\n\t public void run()\n\t {\n\t \ttv_sys_uptime.setText(getUptime()); \n\t mHandler.postDelayed(this, 1000);\n\t }", "title": "" }, { "docid": "8a7adef4eb05f4c0e1e47e39514109f6", "score": "0.5767931", "text": "public void onFinish() {\n\n Log.i(\"Done!\", \"Coundown Timer Finished\");\n\n }", "title": "" }, { "docid": "430e084e4b471065f23af591e418320d", "score": "0.57500523", "text": "public void run() {\n Toast.makeText(context, toast, Toast.LENGTH_SHORT).show(); // toast for whatever reason\n }", "title": "" }, { "docid": "7e7f0090560ca2b07f8d91072a62d11a", "score": "0.5748653", "text": "@Override\n public void run() {\n mRunnable.onPostExecute();\n mExecutor.onPostExecuteCallback(mRunnable);\n }", "title": "" }, { "docid": "d1063eeaa0a292bca0ac922932e58c99", "score": "0.5747289", "text": "@Override\n\t\t\tpublic void run() {\n\t\t\t\tSystem.out.println(\"timertest1\");\n\t\t\t\ttimer.cancel();\n\n\t\t\t}", "title": "" }, { "docid": "24c6b9487e1385a35b7e6829d9696b26", "score": "0.57398754", "text": "@Override\r\n\t\tpublic void run() {\n\t\t\tpostInvalidate();\r\n\t\t\t//postDelayed(this, SCROLLER_DISTANCE);\r\n\t\t}", "title": "" }, { "docid": "f4f55026cd0c668c0f20b161263af803", "score": "0.573853", "text": "public void startTimer(){\n logger.trace(\"Sensor/\" + getModel().getId() + \" timer started\");\n if(newTimer != null){\n //newTimer = new Timer();\n if(timerTask != null) timerTask.cancel();\n newTimer.purge();\n timerTask = new TimerTask() {\n @Override\n public void run() {\n timerEngine();\n }\n };\n newTimer.schedule(timerTask,(getModel().getRefreshTime()*1000),(getModel().getRefreshTime()*1000)/2);\n }\n }", "title": "" }, { "docid": "65358081773175550c366c21f5636899", "score": "0.5738372", "text": "@Override\n\t\t\tpublic void run() {\n\t\t\t\twhile(mActivityPauseFlag != 1)\n\t\t\t\t{\n\n\t\t\t\t\tint mins = getSleepTimeValue();\n\t\t\t\t\tmSleepTimeHour = mins / 60;\n\t\t\t\t\tmSleepTimeMin = mins % 60;\n\t\t\t\t\t\n\t\t\t\t\tif(quickmenu.isShowing())\n\t\t\t\t\t{\n\t\t\t\t\t\thandler.sendEmptyMessage(MSG_REFRESH_TIMER);\n\t\t\t\t\t}\n\t\t\t\t\ttry {\n\t\t\t\t\t\tThread.sleep(5000);\n\t\t\t\t\t} catch (InterruptedException e) {\n\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t}\n\n\t\t\t\t}\n\t\t\t}", "title": "" }, { "docid": "18c9859e50f57de80978568af9638f85", "score": "0.57252544", "text": "@Override\n\t\tpublic void run() {\n\t\t\ttry {\n\n\t\t\t\tTAliDevTimer tAliDevTimer = aliDeviceService.getAliDevTimerByTimerId(timerId);\n\t\t\t\tif (tAliDevTimer == null) {\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\tString productKey = aliDevCache.getProductKey(tAliDevTimer.getDeviceSerialId());\n\t\t\t\tString deviceName = aliDevCache.getDeviceName(tAliDevTimer.getDeviceSerialId());\n\t\t\t\tString region = aliDevCache.getProductRegion(tAliDevTimer.getDeviceSerialId());\n\t\t\t\tAliRegionEnum eAliRegionEnum = AliRegionEnum.SOURTHCHINA;\n\t\t\t\tif (StringUtils.isEmpty(productKey)) {\n\t\t\t\t\tTAliDevice tAliDevice = aliDeviceService\n\t\t\t\t\t\t\t.getAliDeviceBySerializeId(tAliDevTimer.getDeviceSerialId());\n\t\t\t\t\tif (tAliDevice != null) {\n\t\t\t\t\t\tproductKey = tAliDevice.getProductKey();\n\t\t\t\t\t\tdeviceName = tAliDevice.getDeviceName();\n\t\t\t\t\t\tregion = AliRegionEnum.SOURTHCHINA.name();\n\t\t\t\t\t\taliDevCache.saveDevInfo(productKey, tAliDevTimer.getDeviceSerialId(), deviceName,\n\t\t\t\t\t\t\t\tAliRegionEnum.SOURTHCHINA);\n\t\t\t\t\t} else {\n\t\t\t\t\t\tTAliDeviceUS tAliDeviceUS = aliDeviceService\n\t\t\t\t\t\t\t\t.getAliUSDeviceBySerializeId(tAliDevTimer.getDeviceSerialId());\n\t\t\t\t\t\tif (tAliDeviceUS == null) {\n\t\t\t\t\t\t\treturn;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tproductKey = tAliDeviceUS.getProductKey();\n\t\t\t\t\t\tdeviceName = tAliDeviceUS.getDeviceName();\n\t\t\t\t\t\tregion = AliRegionEnum.AMERICA.name();\n\t\t\t\t\t\teAliRegionEnum = AliRegionEnum.AMERICA;\n\t\t\t\t\t\taliDevCache.saveDevInfo(productKey, tAliDevTimer.getDeviceSerialId(), deviceName,\n\t\t\t\t\t\t\t\tAliRegionEnum.AMERICA);\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\teAliRegionEnum = AliRegionEnum.getRegion(region);\n\t\t\t\t}\n\n\t\t\t\tif (tAliDevTimer != null) {\n\t\t\t\t\tif (!StringUtils.isEmpty(tAliDevTimer.getTimerValue())) {\n\t\t\t\t\t\tnet.sf.json.JSONObject sendObject = new net.sf.json.JSONObject();\n\t\t\t\t\t\tsendObject.put(\"command\", \"set\");\n\t\t\t\t\t\tsendObject.put(\"value\", JSONArray.parseArray(tAliDevTimer.getTimerValue()));\n\t\t\t\t\t\ttopicServer.pubTopicDev(sendObject, productKey, deviceName, eAliRegionEnum);\n\n\t\t\t\t\t\tif (tAliDevTimer.getIsCountdown() != 0) {\n\t\t\t\t\t\t\taliDeviceService.deleteAliDevTimerBySerializeIdAndType(tAliDevTimer.getDeviceSerialId(),\n\t\t\t\t\t\t\t\t\ttAliDevTimer.getIsCountdown());\n\t\t\t\t\t\t\t// AliDevBusiness.deleteAliDevTimerByType(tAliDevTimer.getDeviceSerialId(),\n\t\t\t\t\t\t\t// tAliDevTimer.getIsCountdown());\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t} catch (Exception e) {\n\t\t\t\tlog.error(\"===error msg:\" + e.getMessage());\n\t\t\t}\n\t\t}", "title": "" }, { "docid": "277d82516f6b7c82d137e417195ab99d", "score": "0.57238793", "text": "private void startTimerAfterCountDown() {\n \t\thandler = new Handler();\n \t\tprepareTimeCountingHandler();\n \t\thandler.post(new CounterRunnable(COUNT_DOWN_TIME));\n \t}", "title": "" }, { "docid": "8cd97040abdf8451f005815e58e19fba", "score": "0.57207793", "text": "private static void timerTest1() {\n\t\tTimer timer = new Timer();\n\t\ttimer.schedule(new TimerTask() {\n\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\tSystem.out.println(\"timertest1\");\n\t\t\t\ttimer.cancel();\n\n\t\t\t}\n\t\t}, 2000);\n\n\t}", "title": "" }, { "docid": "c35f223238f06deb2eecb9b57ecbc2ac", "score": "0.5711907", "text": "@Override\n public void run() {\n setToast(\"연결이 종료되었습니다.\");\n }", "title": "" }, { "docid": "aafb2fe9a75244ad6db33522f730addf", "score": "0.5708631", "text": "public void startTimer() {\n\n if(mTimer == null) {\n mTimer = new Timer();\n }\n\n mElapsedTime = 0;\n mTimer.scheduleAtFixedRate(new TimerTask() {\n\n public void run() {\n mElapsedTime += 1; //increase every sec\n mTimerHandler.obtainMessage(TimerHandler.INCREASE_TIMER).sendToTarget();\n if (mLiveVideoBroadcaster == null || !mLiveVideoBroadcaster.isConnected()) {\n mTimerHandler.obtainMessage(TimerHandler.CONNECTION_LOST).sendToTarget();\n }\n }\n }, 0, 1000);\n }", "title": "" }, { "docid": "233ff23aed33cab1ab1e18a5b4292493", "score": "0.5702228", "text": "@Override\n public void run() {\n setToast(\"연결이 종료되었습니다.\");\n }", "title": "" }, { "docid": "a625dc22af836c226b0d12adefd1a350", "score": "0.56827515", "text": "@Override\n\t\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\t\tupdateUI();\n\t\t\t\t\t\t}", "title": "" }, { "docid": "d0863b3634119e1aa355443673546a27", "score": "0.5665095", "text": "public void stopTimerTask() {\n if (timer != null) {\n timer.cancel();\n timer = null;\n }\n }", "title": "" }, { "docid": "3ab6a3a5ce13efe0e4c807507474b6a6", "score": "0.5657174", "text": "@Override\n\t\tpublic void run() {\n\t\t\tsuper.run();\n\t\t\twhile(flag == true){\n\t\t\t\t\n\t\t\t\tssinView.postInvalidate();\n\t\t\n\t\t\t\ttry {\n\t\t\t\t\tThread.sleep(sleepTime);\n\t\t\t\t} catch (InterruptedException e) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t}", "title": "" }, { "docid": "41733a4ee53300b681597acdd5bc1f3a", "score": "0.5653676", "text": "private void scheduleUpdateTimer() {\n\t\tassert completionUpdateTimer == null : \"Timer object was created\";\n\n\t\tfinal TimerTask timerTask = new TimerTask() {\n\t\t\t@Override\n\t\t\tpublic void run() {\n\t\t\t\tif (deviceUnderDisplay != null) {\n\t\t\t\t\tfinal int timeToFinish = deviceUnderDisplay.getDriver()\n\t\t\t\t\t\t\t.getTimeToCompletion();\n\t\t\t\t\tif (timeToFinish > 0) {\n\t\t\t\t\t\tif (isInforming) {\n\t\t\t\t\t\t\t/*\n\t\t\t\t\t\t\t * Inform elapsed time\n\t\t\t\t\t\t\t */\n\t\t\t\t\t\t\treportTime(DeviceUI.ReportKind.FINISHING,\n\t\t\t\t\t\t\t\t\ttimeToFinish);\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t/*\n\t\t\t\t\t\t\t * We are starting.\n\t\t\t\t\t\t\t */\n\t\t\t\t\t\t\treportTime(DeviceUI.ReportKind.STARTING,\n\t\t\t\t\t\t\t\t\ttimeToFinish);\n\t\t\t\t\t\t\tisInforming = true;\n\t\t\t\t\t\t}\n\t\t\t\t\t} else {\n\t\t\t\t\t\tif (isInforming) {\n\t\t\t\t\t\t\t/*\n\t\t\t\t\t\t\t * The task has just finished\n\t\t\t\t\t\t\t */\n\t\t\t\t\t\t\treportTime(DeviceUI.ReportKind.FINISHING, 0);\n\t\t\t\t\t\t\tisInforming = false;\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\tcompletionUpdateTimer.scheduleAtFixedRate(timerTask, 0,\n\t\t\t\tUPDATE_TIMER_REFRESH_RATE);\n\t}", "title": "" }, { "docid": "9cf98795fbb171b41e3201ad97001549", "score": "0.5653603", "text": "@Override\n public void run() {\n try{\n for(int n = 0;n < 20; n++){\n //This simulates 1sec of busy activity\n Thread.sleep(1000);\n //now talk to the ain thread\n myHandler.post(foregroundTask);\n }\n }catch (InterruptedException e){\n e.printStackTrace();\n }\n }", "title": "" }, { "docid": "a84777d6c8a297e6a105ad692a4434bf", "score": "0.56517065", "text": "@Override\n public void run() {\n\n SimpleDateFormat sdf = new SimpleDateFormat(\"hh:mm aa\",\n Locale.getDefault());\n String formattedTime = sdf.format(System.currentTimeMillis());\n tvAlarmTime.setText(formattedTime);\n\n tvAlarmTitle.setText(R.string.snoozed_alarm);\n }", "title": "" }, { "docid": "eace8f7a862a72a7d9aba82d54c9cca5", "score": "0.5647331", "text": "public void run() {\n handler.post(new Runnable() {\n public void run() {\n\n //TODO CALL NOTIFICATION FUNC\n String lg_ti = \"Test.\";\n String des_ti = \"The license valid until \";\n String ban_ti = \"Warning!\";\n getNotificationData();\n //notificationShow(des_ti,lg_ti,ban_ti);\n }\n });\n }", "title": "" }, { "docid": "f0b347deb563fbb10c0eaef20a3f7077", "score": "0.5646345", "text": "@Override\n protected void onResume() {\n super.onResume();\n\n// queryTicket();\n// timer = new Timer();\n// timer.schedule(new TimerTask() {\n//\n// @Override\n// public void run() {\n// // TODO Auto-generated method stub\n// handler.sendEmptyMessage(1);\n// }\n// }, 0, 2000);\n }", "title": "" }, { "docid": "49614bf1a393c6c37624028367c9de9e", "score": "0.5640119", "text": "TimerStatus onTimer();", "title": "" }, { "docid": "655f82744581c492d8d1fde7f2268736", "score": "0.56389123", "text": "private AppTimer() {\n\t\tstart();\n\t}", "title": "" }, { "docid": "708f559fb6532dcd5b3cefc516dfa2a8", "score": "0.5635989", "text": "public void run()\n \t\t{\n \t\t\t//Update the timer label\n \t\t\tsetTime();\n \t\t}", "title": "" }, { "docid": "ea5c76a1b02a2f4538008a59bb4e61de", "score": "0.56312215", "text": "@Override\n\tpublic void run() {\n\n\t\tint loop = 0;\n\n\t\tdo {\n\t\t\tthis.onCallTeam.setCountTimer(loop);\n\t\t\tloop++;\n\t\t\ttry {\n\t\t\t\tThread.sleep(1000);\n\t\t\t} catch (InterruptedException ex) {\n\t\t\t\tSystem.out.println(\"Interrupted\");\n\t\t\t}\n\t\t} while (loop != 900);// 15 minutes\n\n\t}", "title": "" }, { "docid": "b45cd981bdbfb71605e5224acd101d8c", "score": "0.56250644", "text": "private Timer() {\n myThread = new TimerThread();\n myThread.start();\n }", "title": "" }, { "docid": "330c575e4bcab77f26fc5cb571ef7798", "score": "0.56188554", "text": "protected void processTimer(){\n if(timer != null){\n timer.cancel();\n timer = null;\n }\n // Verificamos si el partido esta en progreso\n if(match.status == Match.STATUS_PENDING || match.status == Match.STATUS_ENDED){\n return;\n }\n // Creamos temporizador 90 * 60 * 1000 = 5.400.000\n timer = new CountDownTimer(5400000, 1000) {\n @Override\n public void onTick(long l) {\n // Calcular los segundos que pasaron\n long seconds = (new Date().getTime() - matchDayLong) / 1000;\n // Calcular los minutos del partido\n long minutes = seconds / 60;\n //long minutes = TimeUnit.MILLISECONDS.toMinutes(uptime);\n if(minutes < 0){\n minutes = 0;\n seconds = 0;\n statusMedium.setText(\"PT\");\n }if(minutes > 45 && minutes < 60){\n minutes = 45;\n seconds = 60;\n }else if(minutes > 90){\n minutes = 90;\n seconds = 60;\n statusMedium.setText(\"ST\");\n }else if(minutes >= 60){\n minutes -= 15;\n statusMedium.setText(\"ST\");\n }else{\n statusMedium.setText(\"PT\");\n }\n\n statusTime.setText(String.format(\"%02d:%02d\", minutes, (seconds%60)));\n }\n\n @Override\n public void onFinish() {\n\n }\n }.start();\n }", "title": "" }, { "docid": "e9c3dc588e9ef10e8b9cb12a5f188f4a", "score": "0.5603386", "text": "@Override\n public void run() {\n sec++;\n if (sec > 9) {\n sec = 0;\n min++;\n }\n timer.setText(String.format(\"%02d\", sec) + \":\" + String.format(\"%02d\", min));\n handler.postDelayed(this, 1000);\n }", "title": "" }, { "docid": "8ab385abdb7ecb812d92a663a55ce911", "score": "0.56022775", "text": "@Override\npublic void autonomousInit() {\n m_timer.reset();\n m_timer.start();\n}", "title": "" }, { "docid": "a0cef698121c8a6749279011113c194e", "score": "0.56014776", "text": "public void updateTimer(){\n\t\tif(timer.isRunning()){ \n\t\t\ttimer.stop();\n\t\t\tmakeTimer();\n\t\t\ttimer.start();\n\t\t}else{\n\t\t\tmakeTimer();\n\t\t}\n\t}", "title": "" } ]
d99f4d16550640d413299cdf2c677661
This method assigns the task to user in the database. Method gets parameter of task's ID from JSP and User from session.
[ { "docid": "620de5c5cb7619ff9afec04d7ee6ec9c", "score": "0.6036035", "text": "@Override\n\tprotected String doExecute(HttpServletRequest request,\n\t\t\tHttpServletResponse response) throws SQLException, Exception {\n\t\tint taskId = Integer.parseInt(request.getParameter(\"id\"));\n\t\tUser user = (User) request.getSession().getAttribute(\"user\");\n\t\tITaskDAO taskDAO = getOracleDaoFactory().getTaskDAO();\n\t\tTask task = taskDAO.findById(taskId);\n\t\tServiceOrder order = task.getServiceOrder();\n\t\tNewScenarioWorkflow wf = new NewScenarioWorkflow(getOracleDaoFactory(), order);\n\t\twf.assignTask(taskId, user.getId());\n\t\t\n\t\t\n\t\tif (user.getRole().getId()==ROLE.SUPPORT.getId()) {\n\t\t\treturn \"support\";\n\t\t} if (user.getRole().getId()==ROLE.PROVISION.getId()) {\n\t\t\treturn \"provision\";\n\t\t} if (user.getRole().getId()==ROLE.INSTALLATION.getId()) {\n\t\t\treturn \"installation\";\n\t\t} else {\n\t\t\treturn null;\n\t\t}\n\n\t}", "title": "" } ]
[ { "docid": "35113f7c96ce4b15b978624474992aeb", "score": "0.6836234", "text": "private void AssignTask() {\n\n System.out.print(\"\\n\\n\\n\");\n System.out.println(\"####Assign Task####\");\n\n int idLead = AuthenticationServices.getInstance().getLoggedUser().getIdUser();\n int idTeam = teamDao.getTeamIdByUser(idLead);\n\n ArrayList<Task> tasks = taskDao.GetAllTasksToAllocate();\n\n\n for (int i = 0; i < tasks.size(); i++) {\n\n Task task = tasks.get(i);\n\n System.out.print(task.getTaskName() + \" ( \" + task.getIdTask() + \" )\\t\");\n }\n\n Scanner scanner = new Scanner(System.in);\n\n System.out.print(\"Enter ID of task:\");\n int idTask = Integer.parseInt(scanner.nextLine());\n\n ArrayList<Member> members = memberDao.GetAllTeamMembers(idTeam);\n\n for (int i = 0; i < members.size(); i++) {\n\n Member member = members.get(i);\n\n System.out.println(member.getNameMember() + \" ( \" + member.getIdMember() + \" )\");\n }\n System.out.print(\"Enter ID of Member: \");\n int idMember = Integer.parseInt(scanner.nextLine());\n\n\n taskDao.insertTaskByLead(idMember, idTask);\n\n System.out.print(\"\\n\\n\\n\");\n System.out.println(\"Item added successfully\");\n System.out.println(\"Press [Enter] to continue\");\n scanner.nextLine();\n\n\n }", "title": "" }, { "docid": "eb68efbf96f836be9506175c5bc8cbf9", "score": "0.64030665", "text": "String assignUserId();", "title": "" }, { "docid": "ca160a083a4b33652cf60e56bffd0414", "score": "0.6397469", "text": "protected void processRequest(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException { \r\n String taskType = request.getParameter(\"taskType\");\r\n HttpSession session = request.getSession();\r\n try{\r\n switch (taskType) {\r\n case \"newUser\":\r\n String username = request.getParameter(\"email\");\r\n String pass = request.getParameter(\"password\");\r\n Users user = new Users();\r\n user.setUsername(username);\r\n user.setPassword(this.sha512(pass,username));\r\n user.setLastUpdate(new Date());\r\n user.setVersion(1);\r\n user.setEnabled(Boolean.FALSE);\r\n us.edit(user);\r\n Authorities auth = new Authorities();\r\n auth.setAuthoritiesId(null);\r\n auth.setUsername(username);\r\n auth.setAuthority(\"ROLE_USER\");\r\n as.edit(auth);\r\n request.setAttribute(\"msg\", \"Before you can log in, you must first activate yuor account, please check your email.\");\r\n mailer.sendMail(username, \"Account Activation\", \"<a href=https://localhost:8181/napMidTermApp/SignUpController?taskType=activate&id=\"+ username+\">Click here to activate your account!</a><br>If you were not the one that requested this account, please disregard this email.\");\r\n dest = \"index.jsp\";\r\n break;\r\n case \"SignUp\":\r\n dest = \"signUp.jsp\";\r\n break;\r\n case \"activate\":\r\n String email = request.getParameter(\"id\");\r\n Users user2 = us.findById(email);\r\n user2.setEnabled(Boolean.TRUE);\r\n us.edit(user2);\r\n dest=\"index.jsp\";\r\n request.setAttribute(\"msg\", \"Your account has been activated, You may now log in.\");\r\n break;\r\n }\r\n RequestDispatcher view = request.getRequestDispatcher(response.encodeURL(dest));\r\n view.forward(request, response);\r\n }\r\n catch(Exception e){\r\n System.out.println(e.getMessage());\r\n }\r\n \r\n }", "title": "" }, { "docid": "9b4e3c98850104d968f7373c59e16193", "score": "0.62136877", "text": "void submitTask(String userID);", "title": "" }, { "docid": "a62bd38aa6014c31ec39fb87cc321968", "score": "0.62127984", "text": "@Transactional\n\tprivate Tarea assignTaskUser(List<Usuario> listUsuario, List<String> idUsuarios, Tarea nTarea) {\n\t\tlistUsuario = getUsuarios(idUsuarios,listUsuario);\n\t\tnTarea.setUsuarios(listUsuario);\n\t\tnTarea = tareaRepository.save(nTarea);\n\t\treturn nTarea;\n\t}", "title": "" }, { "docid": "c5d109d032d9c83f2456e984fbf51ede", "score": "0.6202262", "text": "public ITaskStageForUser setTaskForUserId(String value);", "title": "" }, { "docid": "a0e80cc0ea4111d52681f1824a068231", "score": "0.61795694", "text": "private void ViewTask() {\n\n System.out.print(\"\\n\\n\\n\");\n System.out.println(\"####View Task####\");\n\n int idLead = AuthenticationServices.getInstance().getLoggedUser().getIdUser();\n int idTeam = teamDao.getTeamIdByUser(idLead);\n\n ArrayList<Task> tasks = taskDao.GetAllTasks(idTeam);\n\n\n for (int i = 0; i < tasks.size(); i++) {\n\n Task task = tasks.get(i);\n\n System.out.print(task.getTaskName() + \" ( \" + task.getIdTask() + \" )\\t\");\n }\n\n Scanner scanner = new Scanner(System.in);\n\n System.out.print(\"Enter ID of task:\");\n int id = Integer.parseInt(scanner.nextLine());\n\n Task task1 = taskDao.GetByTaskId(id);\n\n\n System.out.print(\"\\n\\n\\n\");\n System.out.println(\"Task ID:\" + task1.getIdTask());\n System.out.println(\"Task Name:\" + task1.getTaskName());\n System.out.println(\"Task Duration:\" + task1.getDuration());\n System.out.println(\"Created Date:\" + task1.getDateCreate());\n if (task1.getStatus() != null) {\n System.out.println(\"Status:\" + task1.getStatus());\n System.out.println(\"Assigned member:\" + task1.getAssignedMemberName());\n } else {\n System.out.println(\"Task in not assigned yet\");\n }\n System.out.println(\"Created User:\" + task1.getCreatedUserName());\n\n System.out.print(\"\\n\\n\\n\");\n System.out.println(\"Press [Enter] to continue\");\n scanner.nextLine();\n\n\n }", "title": "" }, { "docid": "b11b3ae08989f4ad0c8482d6c9f8059d", "score": "0.5998103", "text": "@Transactional\n\tpublic void updateTaskDetail(TaskTo task, UserTo user)throws Exception{\n\t\ttaskDetailDao.updateTaskDetail(task.getDetails(), task.getId(), user.getUserName());\n\t}", "title": "" }, { "docid": "444f2161326be7596a950e762904a37d", "score": "0.5969866", "text": "@RequestMapping(value=\"/viewTask/{taskID}/{username}\") \r\n\t\tpublic ModelAndView viewTask(ModelAndView model, @PathVariable int taskID, @PathVariable String username) {\t\r\n\t\t\tTask task = taskService.getTaskById(taskID);\r\n\t\t\tmodel.addObject(task);\r\n\t\t\tmodel.addObject(username);\r\n\t\t\tmodel.setViewName(\"viewTask\");\r\n\t\t\treturn model;\r\n\t\t}", "title": "" }, { "docid": "441cb5dbd13f837e56c9b3054fb53ad4", "score": "0.5963402", "text": "public JSONObject assignTask(int taskId, String userid)\n\t\t\tthrows BPMClientException, AuthenticationTokenHandlerException;", "title": "" }, { "docid": "2295212ea822651fadcc9a6770969347", "score": "0.59406126", "text": "private void assign() {\n if (usersListBean1.getSelectedUser() == null) {\n MessageUtility.displayMessage(ClientMessage.APPLICATION_NOSEL_USER);\n return;\n }\n if (MessageUtility.displayMessage(ClientMessage.APPLICATION_ASSIGN,\n new String[]{usersListBean1.getSelectedUser().getFullUserName()})\n == MessageUtility.BUTTON_ONE) {\n \n String old = pnlApplicationDetails.getApplicationBean().getAssigneeId();\n \n if (pnlApplicationDetails.getApplicationBean().assignUser(\n usersListBean1.getSelectedUser().getId())) {\n \n MessageUtility.displayMessage(ClientMessage.APPLICATION_ASSIGNED);\n this.firePropertyChange(ApplicationBean.ASSIGNEE_ID_PROPERTY, old,\n usersListBean1.getSelectedUser().getId());\n }\n }\n }", "title": "" }, { "docid": "179ccc7113af1adaa9fbfa0d5d757108", "score": "0.59102345", "text": "@Override\r\n\tpublic void updateTask(UserDto user) {\n\t\t\r\n\t}", "title": "" }, { "docid": "77571430344dda61f9dea1c8603cb1a0", "score": "0.5905305", "text": "@Override\n\tpublic long getUserId() {\n\t\treturn _task.getUserId();\n\t}", "title": "" }, { "docid": "e1bf3d17f7b5384ce79114280f1fa6d9", "score": "0.5902915", "text": "private void AddTask() {\n\n System.out.print(\"\\n\\n\\n\");\n System.out.println(\"####Add Task####\");\n Scanner scanner = new Scanner(System.in);\n\n Task item = new Task();\n\n System.out.print(\"Task Name:\");\n item.setTaskName(scanner.nextLine());\n\n System.out.print(\"Duration:\");\n item.setDuration(Integer.parseInt(scanner.nextLine()));\n\n System.out.println(\"Do you want to allocate the task? [Y]/[N]:\");\n String choice = scanner.nextLine();\n System.out.println(choice);\n\n if (choice.toUpperCase().equals(\"Y\")) {\n\n int idLead = AuthenticationServices.getInstance().getLoggedUser().getIdUser();\n int idTeam = teamDao.getTeamIdByUser(idLead);\n\n\n ArrayList<Member> members = viewTeamMembers(idTeam);\n\n for (int i = 0; i < members.size(); i++) {\n\n Member member = members.get(i);\n\n System.out.println(member.getNameMember() + \" ( \" + member.getIdMember() + \" )\\t\");\n\n }\n\n System.out.print(\"Enter Responsible Member ID:\");\n int assignedMember = scanner.nextInt();\n\n\n item.setStatus(\"pending\");\n\n\n item.setCreateUserId(AuthenticationServices.getInstance().getLoggedUser().getIdUser());\n\n java.sql.Date date = getCurrentDatetime();\n item.setDateCreate(date);\n\n taskDao.insertTask(item, assignedMember);\n\n } else {\n\n item.setCreateUserId(AuthenticationServices.getInstance().getLoggedUser().getIdUser());\n java.sql.Date date = getCurrentDatetime();\n item.setDateCreate(date);\n item.setStatus(\"pending\");\n\n taskDao.insertTask(item);\n\n }\n\n System.out.print(\"\\n\\n\\n\");\n System.out.println(\"Item added successfully\");\n System.out.println(\"Press [Enter] to continue\");\n scanner.nextLine();\n }", "title": "" }, { "docid": "48521f88d3bf4c87c1763e53343b6ba4", "score": "0.58708817", "text": "public void test04assignUser() throws Exception{\n\t\tString user = \"lisi\";\n\t\t//String user = \"wangwu\";\n\t\t//String user = \"zhaoliu\";\n\t\tString taskId = \"77504\";\n\t\tutil.getTaskService().addCandidateUser(taskId, \"zhangsan\");\n\t\tutil.getTaskService().addCandidateUser(taskId, \"lisi\");\n\t\tutil.getTaskService().addCandidateUser(taskId, \"wangwu\");\n\t\tSystem.out.println(\"success\");\n\t}", "title": "" }, { "docid": "457f1213bd157db6c2fa1d6b4362bf8d", "score": "0.5860916", "text": "public ActionForward addTaskUi(ActionMapping mapping, ActionForm form,\n\t\t\tHttpServletRequest request, HttpServletResponse response) throws Exception {\n\t\t\n\t\trequest.setAttribute(\"role2\", \n\t\t\t\ttaskService.executeQuery(\"from Users where role=2\", null));\n\t\t\n\t\treturn mapping.findForward(\"goAddTask\");\n\t}", "title": "" }, { "docid": "0a77add229cd82af099df5d8eb23a026", "score": "0.58432174", "text": "void addUser(long taskId, long userId, long statusId);", "title": "" }, { "docid": "e7d502bcc3178dfffe98803be3d4a038", "score": "0.5839533", "text": "@RequestMapping(value=\"/createTask\", method = RequestMethod.POST)\r\n\t\tpublic ModelAndView createTask(Task task) {\r\n\t\t\tModelAndView model=null;\r\n\t\t\ttaskService.saveTask(task); \r\n\t\t\tmodel = new ModelAndView(\"redirect:/adminTasks\");\r\n\t\t\treturn model;\r\n\t\t}", "title": "" }, { "docid": "1379b0f14b7dc1ff74d313d04156e4b0", "score": "0.5828481", "text": "public void saveTask(Task task) throws ClassNotFoundException, SQLException {\n\t\t\n\t\tString query = \"INSERT INTO \"+Const.TASK_TABLE+\"(\"+Const.TASK_USER_ID+\",\"+\n\t\tConst.TASK_DATECREATED+\",\"+Const.TASK_DESCRIPTION+\",\"+Const.TASK+\n\t\t\") VALUES(?,?,?,? )\";\n\t\t\n\t\tPreparedStatement st = getDbConnection().prepareStatement(query);\n\t\tst.setInt(1, task.getUserid());\n\t\tst.setDate(2, task.getDateCreated());\n\t\tst.setString(3, task.getDescription());\n\t\tst.setString(4, task.getTask());\n\t\t\n\t\tst.executeUpdate();\n\t}", "title": "" }, { "docid": "a03d68a36a1eac6cfd38a158d80b7225", "score": "0.5796909", "text": "protected void doPost(HttpServletRequest request, HttpServletResponse response) throws IOException {\n User currentUser = (User) request.getSession().getAttribute(\"user\");\n long userId = currentUser.getId();\n\n String updateUsername = request.getParameter(\"username\");\n String updateEmail = request.getParameter(\"email\");\n//\n User updatedUser = DaoFactory.getUsersDao().updateUserInfo(updateUsername, updateEmail, userId);\n\n// 5. redirect to profile\n request.getSession().setAttribute(\"user\", updatedUser);\n response.sendRedirect(\"/profile\");\n\n }", "title": "" }, { "docid": "94d29d9bafa7d6aeef870fd4ba23f3ed", "score": "0.5795083", "text": "private void View() {\n\n System.out.print(\"\\n\\n\\n\");\n System.out.println(\"####View Task####\");\n\n ArrayList<Task> tasks = taskDao.GetAllTasks();\n\n for (int i = 0; i < tasks.size(); i++) {\n\n Task task = tasks.get(i);\n\n System.out.print(task.getTaskName() + \" ( \" + task.getIdTask() + \" )\\t\");\n }\n\n Scanner scanner = new Scanner(System.in);\n\n System.out.print(\"Enter ID of task:\");\n int id = Integer.parseInt(scanner.nextLine());\n\n Task task1 = taskDao.GetByTaskId(id);\n\n\n System.out.print(\"\\n\\n\\n\");\n System.out.println(\"Task ID:\" + task1.getIdTask());\n System.out.println(\"Task Name:\" + task1.getTaskName());\n System.out.println(\"Task Duration:\" + task1.getDuration());\n System.out.println(\"Created Date:\" + task1.getDateCreate());\n if (task1.getStatus() != null) {\n System.out.println(\"Status:\" + task1.getStatus());\n System.out.println(\"Assigned member:\" + task1.getAssignedMemberName());\n } else {\n System.out.println(\"Task in not assigned yet\");\n }\n System.out.println(\"Created User:\" + task1.getCreatedUserName());\n\n System.out.print(\"\\n\\n\\n\");\n System.out.println(\"Press [Enter] to continue\");\n scanner.nextLine();\n\n\n }", "title": "" }, { "docid": "8d818f5218fbbc298f6edf6dd6c5ce5a", "score": "0.57892245", "text": "public void performTask(HttpServletRequest request, HttpServletResponse response) throws Exception {\n\tIBank userIBank = createOrRetreiveUserIBank(request, response);\n\t\n\t// add the userIBank object to the request, to ensure the JSPs only use the request attributes.\n\trequest.setAttribute(\"userIBankrq\", userIBank );\n\n\tRequestDispatcher dispatcher = determineNextPage(userIBank.getState());\n\tdispatcher.forward(request, response);\t\n\n}", "title": "" }, { "docid": "614bda06109d4cb31f2bebe011ea988b", "score": "0.5788853", "text": "@RequestMapping(\"/gettasks\")\n public String getUser() {\n return db.get_task();\n }", "title": "" }, { "docid": "703e2fc0c1239cbc06fc6ec830282339", "score": "0.57871634", "text": "@Override\r\n protected LoaderResult<Task> doInBackground()\r\n {\r\n LoaderResult<Task> result = new LoaderResult<Task>();\r\n try\r\n {\r\n result = super.doInBackground();\r\n\r\n if (assignee == null)\r\n {\r\n assignee = session.getServiceRegistry().getPersonService().getPerson(assigneeId);\r\n }\r\n\r\n if (assignee != null && task != null && isClaimed == null)\r\n {\r\n updatedTask = session.getServiceRegistry().getWorkflowService().reassignTask(task, assignee);\r\n }\r\n if (isClaimed != null)\r\n {\r\n if (isClaimed)\r\n {\r\n updatedTask = session.getServiceRegistry().getWorkflowService().claimTask(task);\r\n }\r\n else if (!isClaimed)\r\n {\r\n updatedTask = session.getServiceRegistry().getWorkflowService().unClaimTask(task);\r\n }\r\n }\r\n }\r\n catch (Exception e)\r\n {\r\n result.setException(e);\r\n OdsLog.ex(TAG, e);\r\n }\r\n\r\n result.setData(updatedTask);\r\n\r\n return result;\r\n }", "title": "" }, { "docid": "c7bbb753ca6ec68a0bc19b4cfbd9d676", "score": "0.5781039", "text": "private void setIdUser(int idUser){\n this.idUser = idUser;\n }", "title": "" }, { "docid": "764ec93321a006d86e823da3c0772c9c", "score": "0.57800627", "text": "@Column(name = \"task_for_user_id\", length = 36)\n\t@Size(max = 36)\n\tpublic String getTaskForUserId();", "title": "" }, { "docid": "b7940c946e7225674cab3a1ee4db3d6c", "score": "0.5757167", "text": "public void currentTaskID(int task_id);", "title": "" }, { "docid": "074d53b1f4c52c46c4f607911878c9a8", "score": "0.5744779", "text": "void setForTaskId(String userId, String taskId, Feedback feedback);", "title": "" }, { "docid": "4d0a6249f8908b72e0ab73226a81ba35", "score": "0.5702118", "text": "public void testAssignTask() {\n\t\t\n\t\tSystem.out.println(\"------------------------------------------------------------------------------------\");\n\t\tSystem.out.println();\n\t\t\n\t\tString employee = \"Hema\";\n\t\tString taskName = \"task1\";\n\t\tToDoList toDoList = new ToDoList();\n\t\ttoDoList.assignTask(employee, taskName);\n\t}", "title": "" }, { "docid": "246b73724f3ee9ee2f5e9a903bccd5b0", "score": "0.56843686", "text": "@Override\n protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\n // Restrict access by non-Guests\n if (!SessionHelpers.checkGuest(request.getSession())) {\n response.sendError(\n HttpServletResponse.SC_FORBIDDEN, \"You do not have permission to access this resource\");\n return;\n }\n\n HttpSession session = request.getSession();\n User user = (User) session.getAttribute(\"sessionUser\");\n int userId = user.getId();\n\n String url = \"/WEB-INF/views/show-user-info-guest.jsp\";\n String pageTitle = \"Account Information\";\n String statusMessage;\n String statusType;\n\n // Update user with form information\n int status = UserHelpers.setAttributesFromRequest(user, request);\n\n // Perform update and respond with appropriate message\n switch(status) {\n case UserHelpers.SUCCESSFUL_WRITE:\n int updateStatus = userData.updateUser(user);\n\n if (updateStatus == 0) {\n statusMessage = \"Information updated successfully.\";\n statusType = \"success\";\n\n // Update session user information as well\n session.setAttribute(\"sessionUser\", user);\n\n } else if (updateStatus == -1) {\n statusMessage = \"<strong>Error!</strong> Invalid data entered for update!\";\n statusType = \"danger\";\n } else {\n statusMessage = \"<strong>Error!</strong> Update operation failed!\";\n statusType = \"danger\";\n }\n break;\n case UserHelpers.INVALID_DATA:\n statusMessage = \"<strong>Error!</strong> Invalid data entered!\";\n statusType = \"danger\";\n break;\n case UserHelpers.INVALID_NAME:\n statusMessage = \"<strong>Error!</strong> Invalid name entered!\";\n statusType = \"danger\";\n break;\n case UserHelpers.INVALID_EMAIL:\n statusMessage = \"<strong>Error!</strong> Email address must be in the format name@host!\";\n statusType = \"danger\";\n break;\n default:\n statusMessage = \"<strong>Error!</strong> Update operation failed!\";\n statusType = \"danger\";\n break;\n }\n\n // Update session user from database - otherwise, sessionUser gets updated even in cases of failure\n User updatedUser = userData.getUser(userId);\n session.setAttribute(\"sessionUser\", updatedUser);\n\n request.setAttribute(\"pageTitle\", pageTitle);\n request.setAttribute(\"statusMessage\", statusMessage);\n request.setAttribute(\"statusType\", statusType);\n RequestDispatcher view = request.getRequestDispatcher(url);\n view.forward(request, response);\n\n }", "title": "" }, { "docid": "148f4d2cd054ff646db2032af76c0fc3", "score": "0.5683441", "text": "public JSONObject assignTask(int taskId) throws BPMClientException,\n\t\t\tAuthenticationTokenHandlerException;", "title": "" }, { "docid": "f773102cabe1e463ac33efc0301ab098", "score": "0.568036", "text": "@RequestMapping(value = UrlConstants.ASSIGN_TICKET, method = RequestMethod.POST)\n\tprivate ModelAndView updateTicketAssignee(@ModelAttribute(\"command\") final Ticket ticketModel, final HttpSession session, final RedirectAttributes ra) {\n\t\t//code for assigning the ticket to new user\n\t\tLong ticketId = null;\n\t\ttry {\n\t\t\tTicket ticketModel1 = ticketService.getTicketById(ticketModel.getId());\n\t\t\tticketId = ticketModel1.getId();\n\t\t\tticketModel1.setAssignedUser(userService.findById(ticketModel.getAssignedUser().getId()));\n\t\t\tticketService.update(ticketModel1);\n\t\t\tTicketAssignmentHistory ticketAssignmentHistory = new TicketAssignmentHistory();\n\t\t\t//Get the assignee user\n\t\t\tUser user = CommonUtil.getUser(session);\n\t\t\tticketAssignmentHistory.setAssignedByuser(userService.findById(user.getId()));\n\t\t\tticketAssignmentHistory.setAssignedToUser(userService.findById(ticketModel.getAssignedUser().getId()));\n\t\t\tticketAssignmentHistory.setTicket(ticketService.getTicketById(ticketModel1.getId()));\n\t\t\tticketAssignmentHistoryService.save(ticketAssignmentHistory);\n\t\t\tra.addFlashAttribute(Constants.MESSAGE, \"User Assignment Successful.\");\n\t\t} catch (ServiceException e) {\n\t\t\tra.addFlashAttribute(Constants.MESSAGE, e.getCause());\n\t\t\tlogger.error(Constants.EXCEPTION_THROW, e);\n\t\t}\n\t\treturn new ModelAndView(\"redirect:\" + UrlConstants.TICKET_DETAILS + \"?ticketId=\" + ticketId);\n\t}", "title": "" }, { "docid": "58c83548206a853de60a66d4f92400f4", "score": "0.5664209", "text": "public void setIdUser(Integer idUser) {\n\t\tthis.idUser = idUser;\n\t}", "title": "" }, { "docid": "c1c4501da8cd3b87655197ceed3d10f5", "score": "0.56593806", "text": "@RequestMapping(value=\"/manager/manageTask.htm\", method=RequestMethod.GET)\n\tpublic String manageTask(HttpServletRequest request, Model model){\n\t\tmodel.addAttribute(\"task\", task);\n\t\t//code to get all the task and display in the table\n\t\tHttpSession servletSession = request.getSession();\n\t\tUser u = (User) servletSession.getAttribute(\"loggedInUser\");\n\t\t\n\t\tList<Task> tasks = new ArrayList<Task>();\n\t\t\n\t\tList<Project> projects = projectDAO.search(u.getCompany());\n\t\tfor(int i=0; i<projects.size(); i++){\n\t\t\tif(taskDAO.searchByProject(projects.get(i)) != null){\n\t\t\t\tList<Task> temp = taskDAO.searchByProject(projects.get(i));\n\t\t\t\tfor(int j=0; j<temp.size(); j++){\n\t\t\t\t\ttasks.add(temp.get(j));\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\trequest.setAttribute(\"tasks\", tasks);\n\t\treturn \"manageTask\";\n\t}", "title": "" }, { "docid": "1b3ce56cb261b32fe0ebef0f12632bc3", "score": "0.5658072", "text": "@RequestMapping(value = \"/task\", method = RequestMethod.POST)\n\tpublic String addTask(@RequestBody String request, HttpSession session, Model model)\n\t{\n\t\tJsonObject jRequest = Constants.parse(request);\n\t\tString user_email = jRequest.get(Constants.ASSIGNEE).getAsString();\n\t\tString title = jRequest.get(Constants.TITLE).getAsString();\n\t\tString description = jRequest.get(Constants.DESC).getAsString();\n\t\tboolean isCompleted = jRequest.get(Constants.IS_COMPLETED).getAsBoolean();\n\t\tint nagStatus = jRequest.get(Constants.NAG_STATUS).getAsInt();\n\t\tTaskModel mTask = new TaskModel(title, description, nagStatus, isCompleted);\n\t\tUserModel user = (UserModel) session.getAttribute(Constants.USER);\n\t\t// defaults to the first family that the user is a part of\n\t\tint family_id = FamilyManager.getFamilyForUser(user).getId();\n\n\t\t// issue the request\n\t\tFamilyView.postTask(session, mTask, family_id, user_email, model);\n\t\treturn \"JSONView\";\n\t}", "title": "" }, { "docid": "252208cf33d01bd3e9e0a3e3f4c996e6", "score": "0.56388986", "text": "public void changeTaskStatus(String username,String response,String uniqueTask)\n {\n try{\n int temp_id=0;\n String changeTaskStatusQuery=\"SELECT ID FROM user_tasks WHERE \"+username+\"='\"+uniqueTask+\"'\";\n pObj.stmt = pObj.c.createStatement();//prepare statement\n pObj.rs = pObj.stmt.executeQuery( changeTaskStatusQuery ); //execute query\n while(pObj.rs.next())\n {\n temp_id=pObj.rs.getInt(\"ID\");\n }\n //change the status of the task query\n changeTaskStatusQuery=\"UPDATE user_task_status SET \"+username+\"='Done' WHERE ID is \"+temp_id;\n PreparedStatement ps = pObj.c.prepareStatement(changeTaskStatusQuery);\n ps.execute();\n\n \n }catch(Exception e){\n System.out.println(\"Change task status exception\\n\");\n }\n return;\n }", "title": "" }, { "docid": "67516daeba08636a6a5e5d2626b0e08d", "score": "0.56172687", "text": "protected void setLastUserTaskID(UserTask task) {\n String name = task.getName();\n if (name != null && name.length() > 0) {\n int i = name.indexOf(DEFAULT_USERTASK_NAME_PREFIX);\n if (i == 0) {\n String numStr = name.substring(5);\n try {\n int num = Integer.parseInt(numStr);\n if (num >= LastUserTaskID) {\n LastUserTaskID = num;\n }\n } catch (NumberFormatException nfe) {\n // do nothing\n }\n }\n }\n }", "title": "" }, { "docid": "cb1a1a2de986a90f9afac6004bc99b9c", "score": "0.55820036", "text": "public void setUser_id(Integer user_id) {\n this.user_id = user_id;\n }", "title": "" }, { "docid": "7deec8e2d7d35c5478aa31167bc80520", "score": "0.55654246", "text": "private void saveTasktoDatabase() {\n String taskTitle = Tasktitle_additemform.getText().trim();\n String taskDescription = Taskdescription_additemform.getText().trim();\n //Task time stamp\n Calendar calendar = Calendar.getInstance();\n java.sql.Timestamp timestamp = new java.sql.Timestamp(calendar.getTimeInMillis());\n\n\n //create Task and pass to insertTask Method\n if(!taskTitle.equals(\"\") && !taskDescription.equals(\"\")) {\n //Task task = new Task(timestamp, taskTitle, taskDescription);\n\n Task task = new Task(AddItemController.userId, timestamp, taskTitle, taskDescription);\n\n try {\n databaseHandler.insertTask(task);\n showLabelandclearTextViews();\n setNoTasks();\n } catch (Exception e) {\n e.printStackTrace();\n }\n\n System.out.println(\"Task Saved\");\n\n\n }\n\n }", "title": "" }, { "docid": "1ce79af07fc228ca18a889196f7194fe", "score": "0.55653435", "text": "@Override\n\tpublic void setUserId(long userId) {\n\t\t_activityAssignment.setUserId(userId);\n\t}", "title": "" }, { "docid": "0baebd163097e17655b4059dbbc54c9e", "score": "0.5564851", "text": "@Override\r\n\t\t\tpublic void onSubmit()\r\n\t\t\t{\n\t\t\t\tUserDao userDao = new UserDao();\r\n\t\t\t\tUser lookupUser = (User) userDao.selectByUserId(user.getUserId());\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\tif ((lookupUser != null) && (lookupUser.getPassword().equals(user.getPassword())))\r\n\t\t\t\t{\r\n\t\t\t\t\tmessage.setDefaultModelObject(\"success\");\r\n\t\t\t\t\tthis.setResponsePage(SurveyView.class);\r\n\t\t\t\t\t\r\n\t\t\t\t\t// Get the Session object, then set the user in our custom session object.\r\n\t\t\t\t\t// We'll query the session object in other components to make sure\r\n\t\t\t\t\t// that the user object has been set via the isAuthenticated() method.\r\n\t\t\t\t\t// This will prevent unauthorized access to other web pages.\r\n\t\t\t\t\tCustomSession.get().setUser(lookupUser);\r\n\t\t\t\t}\r\n\t\t\t\telse\r\n\t\t\t\t{\r\n\t\t\t\t\tmessage.setDefaultModelObject(\"failure\");\r\n\t\t\t\t\tcount++;\r\n\t\t\t\t}\r\n\t\t\t}", "title": "" }, { "docid": "a571e81189186596a9e0051d1da97f85", "score": "0.5547819", "text": "public void assignUser(User user) {\n this.cardsPanel.add(new AssignUserPanel(this, user), \"assignUser\");\n cardLayout.show(this.cardsPanel, \"assignUser\");\n this.actualPanel = \"assignUser\";\n }", "title": "" }, { "docid": "1ff9a6d06251c3059c2144e9034b5148", "score": "0.55440724", "text": "public void addTask(UserTask task) {\n DatabaseReference mRef = database.child(taskTag);\n String taskId = mRef.push().getKey();\n task.setId(taskId);\n mRef.child(taskId).setValue(task).addOnSuccessListener(new OnSuccessListener<Void>() {\n @Override\n public void onSuccess(Void aVoid) {\n Toast.makeText(context, \"Succesfully added Task\", Toast.LENGTH_LONG).show();\n }\n }).addOnFailureListener(new OnFailureListener() {\n @Override\n public void onFailure(@NonNull Exception e) {\n e.printStackTrace();\n }\n });\n }", "title": "" }, { "docid": "6e693afb8da2c1cc6b4361e3abc32be0", "score": "0.5524825", "text": "public void setIdUser(java.lang.Integer idUser) {\n this.idUser = idUser;\n }", "title": "" }, { "docid": "02eab4b8f0cc58df7bf94141a67264ee", "score": "0.55159104", "text": "@Override\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n \n try {\n manager = (DBManager)super.getServletContext().getAttribute(\"dbmanager\");\n HttpSession sess = request.getSession();\n Utente utente = (Utente) sess.getAttribute(\"utente\");;\n String id = utente.getId();\n String password = request.getParameter(\"password\");\n String mail = request.getParameter(\"email\");\n String nick = request.getParameter(\"nickname\");\n String sql= \"UPDATE Users SET nickname = ?, email = ?, password = ? where id = ?\";\n manager.setData(sql, nick, mail, password, id);\n \n response.sendRedirect(\"index.jsp\");\n } catch (SQLException ex) {\n \n System.out.print(\"ocio, problema con la sql\");\n Logger.getLogger(User.class.getName()).log(Level.SEVERE, null, ex);\n } catch (Exception ex) {\n System.out.print(\"ocio, problema con che cazzo ne so\");\n Logger.getLogger(User.class.getName()).log(Level.SEVERE, null, ex);\n }\n }", "title": "" }, { "docid": "2d920d441f1469e7ff543f1fde2f4a24", "score": "0.5510271", "text": "public void setUserid(Integer userid) {\n this.userid = userid;\n }", "title": "" }, { "docid": "2d920d441f1469e7ff543f1fde2f4a24", "score": "0.5510271", "text": "public void setUserid(Integer userid) {\n this.userid = userid;\n }", "title": "" }, { "docid": "2d920d441f1469e7ff543f1fde2f4a24", "score": "0.5510271", "text": "public void setUserid(Integer userid) {\n this.userid = userid;\n }", "title": "" }, { "docid": "2d920d441f1469e7ff543f1fde2f4a24", "score": "0.5510271", "text": "public void setUserid(Integer userid) {\n this.userid = userid;\n }", "title": "" }, { "docid": "2d920d441f1469e7ff543f1fde2f4a24", "score": "0.5510271", "text": "public void setUserid(Integer userid) {\n this.userid = userid;\n }", "title": "" }, { "docid": "2d920d441f1469e7ff543f1fde2f4a24", "score": "0.5510271", "text": "public void setUserid(Integer userid) {\n this.userid = userid;\n }", "title": "" }, { "docid": "8309d3361ec9b2f460fb34044078fce6", "score": "0.5503322", "text": "public void setTaskid(Integer taskid) {\n this.taskid = taskid;\n }", "title": "" }, { "docid": "3eeeee8bc56322f1fe33bc559d869ff0", "score": "0.5498986", "text": "public Assignment(Project project, User user, Task task) {\n\t\tthis.project = project;\n\t\tthis.user = user;\n\t\tthis.task = task;\n\t}", "title": "" }, { "docid": "3d479c9a9320de05eb86eff167671e4a", "score": "0.5465596", "text": "void setIdUser(Integer idUser);", "title": "" }, { "docid": "f93394da33aecfe4120698b7912aa664", "score": "0.5458741", "text": "public UserTaskDuePanel(UserTask task) {\n this();\n detailsArea.setText(task.getDetails());\n descriptionFld.setText(task.getSummary());\n }", "title": "" }, { "docid": "31c84ae88777f5ff7bf6f54ff8b79a6e", "score": "0.5456632", "text": "public void setTaskId(String taskID) {\n this.taskID = taskID;\n }", "title": "" }, { "docid": "256bce1336e587739cf72285fd8b2a66", "score": "0.545345", "text": "public void setUser(int idUser){\n SharedPreferences.Editor editor = mySharedPreference.edit();\n editor.putInt(\"IdUser\", idUser);\n editor.commit();\n }", "title": "" }, { "docid": "2bd85e178c7b2f30e4fa86ea425cb374", "score": "0.5452913", "text": "@Override\r\n public void activate(final String userId, final String taskParam) throws AlreadyActiveException,\r\n UserAccountNotFoundException, XmlCorruptedException, MissingMethodParameterException,\r\n MissingAttributeValueException, OptimisticLockingException, AuthenticationException, AuthorizationException,\r\n SystemException {\r\n\r\n business.activate(userId, taskParam);\r\n }", "title": "" }, { "docid": "be80e4f81ba3cf1b39aac12a21eec70d", "score": "0.54510593", "text": "public void setUserid(int userid) {\n this.userid = userid;\n }", "title": "" }, { "docid": "84ff0ee383ec8683824705654f3986df", "score": "0.5450703", "text": "public Task(int user, int item){\n\t\t\tthis.user = user;\n\t\t\tthis.item = item;\n\t\t\t\n\t\t}", "title": "" }, { "docid": "bea63ad544b29c2636b17c18cd25927e", "score": "0.5438589", "text": "@RequestMapping(value=\"/manager/selectProjForTask.htm\", method=RequestMethod.POST)\n\tpublic String setProjectToTask(HttpServletRequest request){\n\t\tString projName = request.getParameter(\"projName\");\n\t\tProject selectedProj = projectDAO.searchProject(projName);\n\t\ttask.setProject(selectedProj);\n\t\treturn \"redirect:/manager/createTask.htm\";\n\t}", "title": "" }, { "docid": "20adec0c5fd6ad78e768a8a69cd80c2d", "score": "0.5431944", "text": "@Test\n public void assignTask()\n {\n // set up the change listener\n AtomicInteger taskCount = new AtomicInteger(0);\n AtomicBoolean dataChanged = new AtomicBoolean(false);\n\n initializeTaskManager(taskCount, new AtomicInteger(0), dataChanged);\n int initialTaskCount = tasks.size();\n\n boolean created = TaskManager.sharedInstance()\n .CreateTask(test_name, test_description, getUser(), test_DueDate, complete);\n assert(created);\n\n // assert the task was created;\n await().atMost(10,TimeUnit.SECONDS).untilAtomic(taskCount, equalTo(initialTaskCount + 1));\n Task fetchedNewTask = tasks.get(tasks.size() - 1);\n\n //Confirm that the user is the expected user\n assertEquals(fetchedNewTask.getAssignee(), getUser().getUsername());\n assertEquals(fetchedNewTask.getAssigneeUid(), getUser().getUid());\n\n //Delete the task\n boolean deleted = TaskManager.sharedInstance().DeleteTask(fetchedNewTask);\n assert(deleted);\n\n // deregister all listeners\n TaskManager.sharedInstance().Destroy();\n }", "title": "" }, { "docid": "5460a33bf4aed1490ddba9bbb21ec8a7", "score": "0.5422969", "text": "public void transferUser(int userID,int userType,String userEmail){\r\n System.out.println(userID);\r\n System.out.println(userType);\r\n if(userType==1) {\r\n createActivity.setVisible(false);\r\n myStudents.setVisible(false);\r\n }\r\n this.userType=userType;\r\n this.userID=userID;\r\n System.out.println(\"User ID at home Controller = \"+ this.userID);\r\n if(userID<0) {\r\n createClass.setVisible(true);\r\n myStudents.setText(\"Members\");\r\n }\r\n this.userEmail=userEmail;\r\n }", "title": "" }, { "docid": "0b92738a03f4a3b1b2eb45e8fd8c8d97", "score": "0.5398284", "text": "@RequestMapping(value=\"/updateTask/{status}/{taskID}/{username}\", method = RequestMethod.GET)\r\n\t\tpublic ModelAndView updateStatus(@PathVariable int taskID, @PathVariable String status, @PathVariable String username) {\r\n\t\t\tModelAndView model=null;\r\n\t\t\ttaskService.updateStatus(taskID, status);\r\n\t\t\tmodel = new ModelAndView(\"redirect:/empTasks/{username}\");\r\n\t\t\treturn model;\r\n\t\t}", "title": "" }, { "docid": "8ae1a2b20bc61d136d0a04e891c9c090", "score": "0.53979623", "text": "public void setUser(java.lang.String param){\n localUserTracker = true;\n \n this.localUser=param;\n \n\n }", "title": "" }, { "docid": "9ab5aaa0d37fc27bba237db192c4ae54", "score": "0.53898346", "text": "@Override\n \tprotected void runTask(InjectableTask<?> task) {\n \t\tcheckSession();\n \t\tTransaction transaction = this.session.beginTransaction();\n \t\tsuper.runTask(task);\n \t\ttransaction.commit();\n \t}", "title": "" }, { "docid": "fd1b4236a55dcd2ff870d439f8cc397e", "score": "0.5382935", "text": "public void setUserId( Integer userId ) {\n this.userId = userId ;\n }", "title": "" }, { "docid": "938df4196e1be5e984e78f76b8264f16", "score": "0.5377521", "text": "public void setUserid(String userid) {\r\n this.userid = userid;\r\n }", "title": "" }, { "docid": "fdd1ea052df34ce1fedc28c0a1d6aed6", "score": "0.53714097", "text": "public void setTaskid(Long taskid) {\n this.taskid = taskid;\n }", "title": "" }, { "docid": "3a8df0a342bac77e0462f7bcd7aeb60a", "score": "0.5365221", "text": "public void setUserId(long userId) {\n this.user= user;\n }", "title": "" }, { "docid": "78e5ccb454f14d025f737f25a939b95e", "score": "0.5364001", "text": "public void setUserId(int id) {\n userId = id;\n }", "title": "" }, { "docid": "1829363bbec75a55f11043b458277c31", "score": "0.5361854", "text": "@Test\n public void changeTaskAssignee()\n {\n // set up the change listener\n AtomicInteger taskCount = new AtomicInteger(0);\n AtomicBoolean dataChanged = new AtomicBoolean(false);\n\n initializeTaskManager(taskCount, new AtomicInteger(0), dataChanged);\n int initialTaskCount = tasks.size();\n\n boolean created = TaskManager.sharedInstance()\n .CreateTask(test_name, test_description, getUser(), test_DueDate, complete);\n assert(created);\n\n // assert the task was created;\n await().atMost(10,TimeUnit.SECONDS).untilAtomic(taskCount, equalTo(initialTaskCount + 1));\n Task fetchedNewTask = tasks.get(tasks.size() - 1);\n\n // Modify the task details and update\n fetchedNewTask.setUser(getUser2());\n dataChanged.set(false);\n\n // update the database\n TaskManager.sharedInstance().UpdateTask(fetchedNewTask);\n\n // wait for the listener to receive an update\n await().atMost(10,TimeUnit.SECONDS).untilTrue(dataChanged);\n\n Task updatedTask = tasks.get(tasks.size() - 1);\n assertEquals(getUser2().getUsername(), updatedTask.getAssignee());\n assertEquals(getUser2().getUid(), updatedTask.getAssigneeUid());\n\n //Delete the task\n boolean deleted = TaskManager.sharedInstance().DeleteTask(updatedTask);\n assert(deleted);\n\n // deregister all listeners\n TaskManager.sharedInstance().Destroy();\n }", "title": "" }, { "docid": "737df81188c2bfd353b3cb751bdff306", "score": "0.53394383", "text": "public void setAssignedUserName(Object object) {\n\t\t\n\t}", "title": "" }, { "docid": "d9bed21af0e4057dddb86c31374618b8", "score": "0.53319854", "text": "public void selectUser() {\n\t\tselectUser(WorkflowTask.APPROVAL, WorkFlowType.LIFE, TransactionType.UNDERWRITING, getLoginBranchId(), null);\n\t}", "title": "" }, { "docid": "624c32e574989f2dc3b74459721288a8", "score": "0.53250027", "text": "private void saveEditedTask(View v) {\n //Save task\n taskInfo newInfo = collectInfo(v);\n\n //Set task id;\n newInfo.id = tInfo.id;\n\n //Sanitize inputs to ensure values are valid\n if (newInfo.displayName.length() < 1) {\n display.showToastMessage(mContext, \"Your task must have a name\", display.SHORT);\n } else if (newInfo.dueDate.before(new Date()) || newInfo.dueDate.equals(new Date())) {\n display.showToastMessage(mContext, \"The due date has already passed. Choose one in the future\", display.SHORT);\n } else {\n display.showToastMessage(mContext, \"Saving Task...\", display.SHORT);\n\n boolean reassigned = newInfo.assignedTo.equals(tInfo.assignedTo);\n String oldAssignee = \"\";\n\n if(reassigned) {\n for(String id : tInfo.assignedTo.keySet()) {\n oldAssignee = id; //This works because there is only 1 assignee\n }\n }\n\n\n taskAction.editTask(newInfo, uInfo, reassigned, oldAssignee, (tInfoRet, success, err) -> {\n if (success) {\n ((TaskViewActivity) getActivity()).showTaskInfo(tInfoRet);\n\n //Close the edit task dialog\n this.dismiss();\n }\n });\n }\n }", "title": "" }, { "docid": "9b383f397eb225e577a3652c54dabc6c", "score": "0.5323399", "text": "public void setUserId(String id);", "title": "" }, { "docid": "2874c1332e5e710b8a4d6c9c5394d1e2", "score": "0.53213537", "text": "private void doUserView(HttpServletRequest req, HttpServletResponse res) \n throws IOException, ServletException\n {\n req.setAttribute(\"requests\", newServer.getNewReq());\n //get the game jsp\n RequestDispatcher view = req.getRequestDispatcher(\"WEB-INF/user/user.jsp\");\n\n //forward the request\n view.forward(req, res);\n }", "title": "" }, { "docid": "9b061304d39ad45776c4251fbd1645c5", "score": "0.5316222", "text": "public void setUserId(String userId);", "title": "" }, { "docid": "9b061304d39ad45776c4251fbd1645c5", "score": "0.5316222", "text": "public void setUserId(String userId);", "title": "" }, { "docid": "9b061304d39ad45776c4251fbd1645c5", "score": "0.5316222", "text": "public void setUserId(String userId);", "title": "" }, { "docid": "91b56e0b5aac6ca3552b0cb6f8ef1648", "score": "0.53037834", "text": "public void setUserId(String userId) {\n this.userId = userId;\n }", "title": "" }, { "docid": "353c953225528400a4a9da47e608811a", "score": "0.53035724", "text": "public void assingUser(ProjectUser user){\r\n \r\n }", "title": "" }, { "docid": "dc87168f60d7e82cd59f90600c39973a", "score": "0.5303504", "text": "public void setUserId(Integer userId) {\r\n this.userId = userId;\r\n }", "title": "" }, { "docid": "dc87168f60d7e82cd59f90600c39973a", "score": "0.5303504", "text": "public void setUserId(Integer userId) {\r\n this.userId = userId;\r\n }", "title": "" }, { "docid": "fcef11c5befa63cfcd238915e7f687f4", "score": "0.5291082", "text": "public void addUser(View v) {\n String username = mUsername.getText().toString();\n String email = mEmail.getText().toString();\n String password = mPassword.getText().toString();\n //checks to see if they input a username\n if (TextUtils.isEmpty(username)) {\n Toast.makeText(this, \"Enter username\"\n , Toast.LENGTH_SHORT)\n .show();\n mUsername.requestFocus();\n return;\n }\n //checks to make sure the email is valid\n if (!email.contains(\"@\")) {\n Toast.makeText(this, \"Enter a valid email address\"\n , Toast.LENGTH_SHORT)\n .show();\n mEmail.requestFocus();\n return;\n }\n // checks to make sure the password field is not empty\n if (TextUtils.isEmpty(password)) {\n Toast.makeText(this, \"Enter password\"\n , Toast.LENGTH_SHORT)\n .show();\n mPassword.requestFocus();\n return;\n }\n //users have to create a password at least 6 characters long\n if (password.length() < 6) {\n Toast.makeText(this, \"Enter password of at least 6 characters\"\n , Toast.LENGTH_SHORT)\n .show();\n mPassword.requestFocus();\n return;\n }\n\n String url = buildCourseURL();\n AddUserTask task = new AddUserTask();\n task.execute(url);\n SharedPreferences sharedPreferences =\n getSharedPreferences(getString(R.string.EMAIL_PREFS), Context.MODE_PRIVATE);\n sharedPreferences.edit().putBoolean(getString(R.string.YESEMAIL), true).commit();\n mSharedPreferences.edit().putBoolean(getString(R.string.LOGGEDIN), true).commit();\n if (mUserDB == null) {\n mUserDB = new UserDB(this);\n }\n mUserDB.deleteUsers();\n mUserDB.insertUser(email);\n\n // Added by Tony to pull userid from db\n url = \"http://cssgate.insttech.washington.edu/~_450atm4/zombieturtles.php?totallyNotSecure=\";\n SpecialAsyncTask task2 = new SpecialAsyncTask();\n task2.prepToast(\"Added \", getApplicationContext());\n task2.setGetUserId(true);\n String selectUserId = \"Select userid FROM User WHERE email = '\" + email + \"';\";\n try {\n url += URLEncoder.encode(selectUserId, \"UTF-8\");\n } catch (UnsupportedEncodingException e) {\n e.printStackTrace();\n }\n task2.execute(url);\n\n }", "title": "" }, { "docid": "aa65c49c604385f828d55fb4f2c484a5", "score": "0.5276355", "text": "public void saveTask() {\n try {\n taskDescription = (EditText) rootView.findViewById(R.id.description);\n comments = (EditText) rootView.findViewById(R.id.comments);\n mTaskName = taskDescription.getText().toString().trim();\n mDueDate = dueDate.getText().toString();\n mComments = comments.getText().toString().trim();\n //All fields except \"comments\" are required, so checking if the user left any field blank\n if (!mTaskName.equals(\"\") && !mDueDate.equals(\"\") && !mAssigneeName.equals(\"\")) {\n if (flag == 0) {\n Toast.makeText(getContext(), R.string.invalid_user, Toast.LENGTH_SHORT).show();\n assignee.setText(\"\");\n assignee.requestFocus();\n return;\n }\n UpdateTask updateDB = new UpdateTask();\n updateDB.execute();\n Toast.makeText(getContext(), R.string.task_saved, Toast.LENGTH_SHORT).show();\n taskDescription.setText(\"\");\n dueDate.setText(\"\");\n comments.setText(\"\");\n assignee.setText(\"\");\n } else {\n Toast.makeText(getContext(), R.string.error_field_required, Toast.LENGTH_SHORT).show();\n }\n } catch (Exception e) {\n e.printStackTrace();\n }\n }", "title": "" }, { "docid": "99ac9edfa75f16fe9a21d1c8e9cb4331", "score": "0.5268876", "text": "public void setIdFromSession ()\n throws ProcessingException\n {\n final String METHOD_NAME = \"setIdFromSession\";\n this.logDebug(METHOD_NAME + \" 1/2: Started\");\n SessionManager sessionManager = null;\n try\n {\n sessionManager = (SessionManager)this.serviceManager.lookup(SessionManager.ROLE);\n Session session = sessionManager.getSession(false);\n int id = ((Integer)session.getAttribute(SessionAttrib.USER)).intValue();\n this.setId(id);\n this.logDebug(METHOD_NAME + \" 1/2: Done. id = \" + id);\n }\n catch (Exception exception)\n {\n throw new ProcessingException(exception);\n }\n finally\n {\n if ( sessionManager != null )\n this.serviceManager.release(sessionManager);\n }\n }", "title": "" }, { "docid": "45d0107edde3a4f9aedbb6dccef352a2", "score": "0.52606875", "text": "@RequestMapping(value=\"/manager/createTask.htm\", method=RequestMethod.GET)\n\tpublic String createTask(Model model,HttpServletRequest request) throws Exception{\n\t\t//display create task form\n\t\tmodel.addAttribute(\"task\", task);\n\t\tHttpSession servletSession = request.getSession();\n\t\tUser u = (User) servletSession.getAttribute(\"loggedInUser\");\n\t\tSystem.out.println( task.getProject().getProjectName());\n\t\t//teams in the company\n\t\tList<Team> teamList = teamDAO.searchByCompany(u.getCompany());\n\t\n\t\t\n\t\t//all staff belonging to the teams in the project are added to staffList\n\t\tList<Staff> staffList = new ArrayList<Staff>();\n\t\tfor(int i=0; i<teamList.size(); i++){\n\t\t\t//if the team has a project\n\t\t\tif(teamList.get(i).getProject() != null){\n\t\t\t\t//and the project in the team is same as the project name we selected in the previous step\n\t\t\t\tif(teamList.get(i).getProject().getProjectName().equals(task.getProject().getProjectName())){\n\t\t\t\t\tif(staffDAO.searchByTeam(teamList.get(i)) != null){\n\t\t\t\t\tList<Staff> temp = staffDAO.searchByTeam(teamList.get(i));\n\t\t\t\t\tfor(int j=0; j<temp.size(); j++){\n\t\t\t\t\t\tstaffList.add(temp.get(j));\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\trequest.setAttribute(\"staffList\", staffList);\n\t\treturn \"createTask\";\n\t}", "title": "" }, { "docid": "e93fe517eff44d106f0b3480d60a3926", "score": "0.525481", "text": "public void doPost(HttpServletRequest req, HttpServletResponse resp)\n throws IOException {\n\t String username = req.getParameter(\"username\");\n\t String password = req.getParameter(\"password\");\n\t \n\t r3cloud.User user = r3cloud.User.loadUserByUsername(username);\n\t if (user != null){\n\t \tif (user.getPassword().equals(password)){\n\t \t\tHttpSession session = req.getSession();\n\t \t\tsession.setAttribute(\"user\", user);\n\t \t\tresp.sendRedirect(\"/viewAllPapers.jsp\");\n\t \t}\n\t \telse\n\t \t\tSystem.out.println(\"Invalid password\");\n\t }\n\t else\n\t \tSystem.out.println (\"no such user\");\n\t //Key<r3cloud.User> userKey = Key\n\t \n\t resp.sendRedirect(\"/index.jsp\");\n\t \n\t}", "title": "" }, { "docid": "4c7be31558a0f3c8375bcfe118781f96", "score": "0.5252154", "text": "public void setUserID(int id) {\n userID = id;\n }", "title": "" }, { "docid": "1e43b1eb99f892f6104ad9feb5d9b5b6", "score": "0.52493984", "text": "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n try {\n manager = (DBManager)super.getServletContext().getAttribute(\"dbmanager\");\n String email = request.getParameter(\"email\");\n String sql1 = \"SELECT * FROM Mainagioia.Users WHERE email = ?\";\n ResultSet rs;\n HttpSession sess = request.getSession();\n Utente user;\n if(email != null){\n user = new Utente();\n rs = manager.getData(sql1, email);\n rs.next();\n user.setId(rs.getString(\"ID\"));\n user.setNome(rs.getString(\"name\"));\n user.setNickname(rs.getString(\"nickname\"));\n user.setCognome(rs.getString(\"surname\"));\n user.setEmail(email);\n user.setPassword(rs.getString(\"password\"));\n user.setRuolo(rs.getString(\"ruolo\"));\n } else {\n user = null;\n\n }\n sess.setAttribute(\"utente\", user);\n\n response.sendRedirect(\"index.jsp\");\n } catch (SQLException ex) {\n Logger.getLogger(User.class.getName()).log(Level.SEVERE, null, ex);\n } catch (Exception ex) {\n Logger.getLogger(User.class.getName()).log(Level.SEVERE, null, ex);\n } \n \n \n }", "title": "" }, { "docid": "d8ae8a3282bd3b79eb00f813715f28b5", "score": "0.5248673", "text": "public void setIduser(String iduser) {\n\t\tthis.iduser = iduser;\n\t}", "title": "" }, { "docid": "3c1bb740302f83bf88a0247bd88f6196", "score": "0.52458304", "text": "@RequestMapping(method = RequestMethod.POST, value = \"editUser.htm\")\r\n public String processSubmit5(HttpServletRequest req, SessionStatus status,ModelMap model) \r\n {\r\n PersonaDAO pDao = new PersonaDAO(); \r\n Logger.getLogger(PersonaDAO.class.getName()).log(Level.INFO, \"Ejecutando processSubmit5...\");\r\n int id = Integer.parseInt(req.getParameter(\"id\"));\r\n String ident = req.getParameter(\"identificacion\");\r\n String nombre1 = req.getParameter(\"nombre1\");\r\n String apellido1 = req.getParameter(\"apellido1\");\r\n String telef = req.getParameter(\"telef\");\r\n String email = req.getParameter(\"email\");\r\n String pass = req.getParameter(\"pass\");\r\n Logger.getLogger(PersonaDAO.class.getName()).log(Level.INFO, \"id\", id);\r\n Persona p = new Persona();\r\n p.setId(id);\r\n p.setIdentificacion(ident);\r\n p.setNombre1(nombre1);\r\n p.setApellido1(apellido1);\r\n p.setTelef(telef);\r\n p.setEmail(email);\r\n p.setPass(pass);\r\n \r\n boolean res = pDao.editarPersona(p, MySqlDataSource.getConexionBD()); \r\n \r\n if (res)\r\n model.put(\"mensaje\", \"Se perfil ha sido modificado con exito.\");\r\n else\r\n model.put(\"mensaje\", \"Ups, ha ocurrido un error, intente de nuevo.\");\r\n \r\n return \"perfil\";\r\n \r\n }", "title": "" }, { "docid": "2e97c89d1a20b388d53a38b27dcaadb4", "score": "0.5244876", "text": "@RequestMapping(value=\"/empTasks/{username}\")\r\n\tpublic ModelAndView viewEmpTasks(ModelAndView model, @PathVariable String username) {\n\t\tList<Task> taskList = taskService.getAllTask();\r\n\t\tmodel.addObject(taskList);\r\n\t\tmodel.addObject(username);\r\n\t\tmodel.setViewName(\"empTasks\");\r\n\t\treturn model;\r\n\t\t//set this for empTask.jsp\r\n\t}", "title": "" }, { "docid": "48e2139d10e62b2b056983587dba8500", "score": "0.5244814", "text": "UserLoginTask() {\n\n }", "title": "" }, { "docid": "2dae830c13ba12013adc47d87db47376", "score": "0.52437127", "text": "public void setUserid(Long userid) {\n this.userid = userid;\n }", "title": "" }, { "docid": "2623a84df4e0e1a3daf35889888c7815", "score": "0.52428174", "text": "@Override\n @Transactional\n public NutricionistUsers findUserAssignment(Long userId) {\n Session currentSession = entityManager.unwrap(Session.class);\n Query<NutricionistUsers> query = currentSession.createQuery(\"FROM NutricionistUsers where userId=:user\", NutricionistUsers.class);\n query.setParameter(\"user\", userId);\n NutricionistUsers user = query.getSingleResult();\n return user;\n }", "title": "" }, { "docid": "76c2a18662c781313799e87071aeb27b", "score": "0.5239867", "text": "@Override\n public void onClick(View v) {\n Intent intent = new Intent(getContext(), AddTripActivity.class);\n intent.putExtra(HomeFragment.USERID,userId);\n startActivity(intent);\n }", "title": "" }, { "docid": "b1ee540de16caef0aec41b87add45f67", "score": "0.5237568", "text": "public void setUserId(long userId);", "title": "" }, { "docid": "b1ee540de16caef0aec41b87add45f67", "score": "0.5237568", "text": "public void setUserId(long userId);", "title": "" } ]
28c0e8df310ba065f023f0fb7b910b06
Accessor for the useDummySecurityAttributes flag
[ { "docid": "cc60304a64850d18118363da8d62d6b6", "score": "0.8528821", "text": "public boolean getUseDummySecurityAttributes() {\r\n\t\treturn _useDummySecurityAttributes;\r\n\t}", "title": "" } ]
[ { "docid": "aac06137105bcf3c732a380a03ea0591", "score": "0.5966308", "text": "public SecurityAttributes getSecurityAttributes() {\r\n\t\treturn (_securityAttributes);\r\n\t}", "title": "" }, { "docid": "6e748a685385dfa9d2b7b6804d802c19", "score": "0.58420163", "text": "public abstract String getUserPermissionAttribute();", "title": "" }, { "docid": "4e6afc588d23cafba7d820f31eae0ab0", "score": "0.5688561", "text": "SecurityTag createSecurityTag();", "title": "" }, { "docid": "f106927181c170e8516c2137308d6bd4", "score": "0.5643408", "text": "public boolean isSecurity() {\n return false;\n }", "title": "" }, { "docid": "51726e9ed27392b3e9bf9393b0d6af41", "score": "0.56287813", "text": "public void SetupAttributes()\r\n {\r\n }", "title": "" }, { "docid": "cbf652e6a4d730ff36d77f50c9901bbb", "score": "0.56256974", "text": "SrtpCryptoAttribute getInAttribute();", "title": "" }, { "docid": "005f3aef7d469a27bfa84bf30b1dac67", "score": "0.5611217", "text": "public SecurityAttributes.Builder getSecurityAttributes() {\r\n\t\t\tif (_securityAttributes == null)\r\n\t\t\t\t_securityAttributes = new SecurityAttributes.Builder();\r\n\t\t\treturn _securityAttributes;\r\n\t\t}", "title": "" }, { "docid": "304a64f56e434e0d53e616a9ae7e216e", "score": "0.55854523", "text": "protected Attributes() {}", "title": "" }, { "docid": "38d83a87328b2b5c79a76810d0260c93", "score": "0.55260587", "text": "private SecurityAttributes buildSecurityAttributes(String elementName) throws IOException, InvalidDDMSException {\r\n\t\tString classification = getUseDummySecurityAttributes() ? \"U\" : readString(\"the \" + elementName\r\n\t\t\t+ \"'s classification [U]\");\r\n\t\tString ownerProducers = getUseDummySecurityAttributes() ? \"USA\" : readString(\"the \" + elementName\r\n\t\t\t+ \"'s ownerProducers as a space-delimited string [USA]\");\r\n\t\treturn (new SecurityAttributes(classification, Util.getXsListAsList(ownerProducers), null));\r\n\t}", "title": "" }, { "docid": "ed18557024417388614d3e37290d93f2", "score": "0.54450524", "text": "private UnsupportedAttribute() {\n super(null, false, null, null);\n throw new RuntimeException(\"should not be called anyway\");\n }", "title": "" }, { "docid": "358bddcf1b8caf1d36b94649e753384b", "score": "0.53821015", "text": "public Object get(String paramString) throws IOException {\n/* 106 */ throw new IOException(\"No attribute is allowed by CertAttrSet:OCSPNoCheckExtension.\");\n/* */ }", "title": "" }, { "docid": "1561017e338ac596bcb279ac474c1a54", "score": "0.53710806", "text": "public abstract String getObjectPermissionAttribute();", "title": "" }, { "docid": "eec8ebf8bb9ec4c14713e3638102174a", "score": "0.53365445", "text": "public Map getAwtAttributes();", "title": "" }, { "docid": "22ae6343b321a7197b38ffaa528e4d4d", "score": "0.5316937", "text": "public void setSecurityAttributes(SecurityAttributes.Builder securityAttributes) {\r\n\t\t\t_securityAttributes = securityAttributes;\r\n\t\t}", "title": "" }, { "docid": "05082420bef8ce77ec25519dea4dddd0", "score": "0.5292508", "text": "@DOMSupport(DomLevel.TWO) @BrowserSupport({BrowserType.FIREFOX_2P, BrowserType.OPERA_9P, BrowserType.SAFARI_3P})\r\n @Function boolean hasAttributes();", "title": "" }, { "docid": "192423a9e2ae06dd092b947285bc8679", "score": "0.5268071", "text": "public boolean isUseSecurity()\r\n\t {\r\n\t\t return useSecurity;\r\n\t }", "title": "" }, { "docid": "c1d9f8b6873416920e1f00d8b7d4b3df", "score": "0.52567387", "text": "private SampleSecurityConstants() {\n }", "title": "" }, { "docid": "3495839114ebab64eacd6930dff8a0df", "score": "0.52517647", "text": "SrtpCryptoAttribute getOutAttribute();", "title": "" }, { "docid": "efe8f1834e22eca6f8cec7f98ea02fab", "score": "0.52512884", "text": "public boolean hasSecurityID() {\n return fieldSetFlags()[1];\n }", "title": "" }, { "docid": "6289b087b00a153c198b80b64c349945", "score": "0.52463967", "text": "public void setIsPrivateByDefault(boolean param){\n \n this.localIsPrivateByDefault=param;\n \n\n }", "title": "" }, { "docid": "96967c07da6e7139f1d40efcdb37ab9f", "score": "0.5214289", "text": "public Boolean getIsPrivate() { return isPrivate;}", "title": "" }, { "docid": "dec8b1be556ad56eebed9cf3d86b99ea", "score": "0.51918536", "text": "@SuppressWarnings(\"rawtypes\")\n @Test\n public void testOnlyActive() throws ComponentInitializationException {\n prc.getSubcontext(RelyingPartyContext.class).removeSubcontext(AttributeContext.class);\n // sub attribute, not active encoder\n Collection<AttributeEncoder<?>> newEncoders1 = new ArrayList<AttributeEncoder<?>>();\n OIDCStringAttributeEncoder encoder1 = new OIDCStringAttributeEncoder();\n Predicate<ProfileRequestContext> predicate = Predicates.alwaysFalse();\n encoder1.setActivationCondition(predicate);\n encoder1.setName(\"sub\");\n newEncoders1.add(encoder1);\n IdPAttribute attribute1 = new IdPAttribute(\"test1\");\n List<StringAttributeValue> stringAttributeValues1 = new ArrayList<StringAttributeValue>();\n stringAttributeValues1.add(new StringAttributeValue(\"passiveJoe\"));\n attribute1.setValues(stringAttributeValues1);\n attribute1.setEncoders(newEncoders1);\n\n // sub attribute, wrong type of encoder\n Collection<AttributeEncoder<?>> newEncoders2 = new ArrayList<AttributeEncoder<?>>();\n SAML2StringAttributeEncoder encoder2 = new SAML2StringAttributeEncoder();\n encoder2.setName(\"sub\");\n newEncoders2.add(encoder2);\n IdPAttribute attribute2 = new IdPAttribute(\"test2\");\n List<StringAttributeValue> stringAttributeValues2 = new ArrayList<StringAttributeValue>();\n stringAttributeValues2.add(new StringAttributeValue(\"saml2Joe\"));\n attribute2.setValues(stringAttributeValues2);\n attribute2.setEncoders(newEncoders2);\n\n // Attribute with no encoders\n IdPAttribute attribute3 = new IdPAttribute(\"test2\");\n List<StringAttributeValue> stringAttributeValues3 = new ArrayList<StringAttributeValue>();\n stringAttributeValues3.add(new StringAttributeValue(\"noencodersJoe\"));\n\n // Set attribute context\n AttributeContext attributeCtx = new AttributeContext();\n Collection<IdPAttribute> attributes = new ArrayList<IdPAttribute>();\n attributes.add(attribute1);\n attributes.add(attribute2);\n attributes.add(attribute3);\n attributeCtx.setIdPAttributes(attributes);\n prc.getSubcontext(RelyingPartyContext.class).addSubcontext(attributeCtx);\n \n Assert.assertNull(lookup.apply(prc));\n }", "title": "" }, { "docid": "7d58e045241d556b3f33429859d354d1", "score": "0.5174193", "text": "public boolean getIsPrivateByDefault(){\n return localIsPrivateByDefault;\n }", "title": "" }, { "docid": "137380ae11fa187770bab6d13e10a31a", "score": "0.5166831", "text": "public void testGetAttributes() {\n createParams(false, false);\n final String attributeName = \"theAttributeName\";\n KeyStore.Entry.Attribute myAttribute = new KeyStore.Entry.Attribute() {\n @Override\n public String getName() {\n return attributeName;\n }\n\n @Override\n public String getValue() {\n return null;\n }\n };\n Set<KeyStore.Entry.Attribute> attributeSet = new HashSet<KeyStore.Entry.Attribute>();\n attributeSet.add(myAttribute);\n\n KeyStore.PrivateKeyEntry ksPKE = new KeyStore.PrivateKeyEntry(\n testPrivateKey, testChain, attributeSet);\n Set<KeyStore.Entry.Attribute> returnedAttributeSet = ksPKE.getAttributes();\n assertEquals(attributeSet, returnedAttributeSet);\n // Adding an element to the original set is OK.\n attributeSet.add(myAttribute);\n // The returned set is unmodifiabled.\n try {\n returnedAttributeSet.add(myAttribute);\n fail(\"The returned set of attributed should be unmodifiable\");\n } catch (UnsupportedOperationException expected) {\n }\n }", "title": "" }, { "docid": "969dbbc208cfed95f107e6ec646d0937", "score": "0.51563364", "text": "boolean hasAttributes();", "title": "" }, { "docid": "90ec95ad3dc5edb57003a950fd89c0a1", "score": "0.5140576", "text": "MechanismAttribute createMechanismAttribute();", "title": "" }, { "docid": "d3ddb4fb2e5a299f937520ef8ddefe59", "score": "0.51242125", "text": "public boolean isDummy() {\n return false;\n }", "title": "" }, { "docid": "21ebaa7f89da6a12c2c74f68f3d7d96f", "score": "0.5108584", "text": "public ContainerAttributes() {\n\t\tthis(UUID.randomUUID().toString());\n\t}", "title": "" }, { "docid": "1dc7ffa24b80f97b4d616819564de82c", "score": "0.50992435", "text": "public void setUseSecurity(boolean useSecurity)\r\n\t {\r\n\t\t this.useSecurity = useSecurity;\r\n\t }", "title": "" }, { "docid": "76698aad8684efef97240915cf72753c", "score": "0.5098396", "text": "boolean getSecureOnly() {\n return secureOnly;\n }", "title": "" }, { "docid": "c9758a78767b8486c4bb96c5d8048a46", "score": "0.509822", "text": "public boolean getSecure() {\n return isSecure;\n }", "title": "" }, { "docid": "3dfcab68530426a60ec4c3256df57db7", "score": "0.50927705", "text": "public Object getCredentials() {\n\t\treturn \"dummy\";\r\n\t}", "title": "" }, { "docid": "07fded1ccf4f74673d4d05ec0577db84", "score": "0.507788", "text": "public PredefinedAttributes() {\n }", "title": "" }, { "docid": "240675740db8e268ff2d6afee299db6b", "score": "0.50775766", "text": "Map<String, Object> getSsoUserAttributes();", "title": "" }, { "docid": "ab47296f0d12179d745e68b51a0671dd", "score": "0.5075521", "text": "public void setIsPrivate(boolean param){\n \n this.localIsPrivate=param;\n \n\n }", "title": "" }, { "docid": "ab47296f0d12179d745e68b51a0671dd", "score": "0.5075521", "text": "public void setIsPrivate(boolean param){\n \n this.localIsPrivate=param;\n \n\n }", "title": "" }, { "docid": "24845de67156a7dbc768b389035d0987", "score": "0.5071496", "text": "final void setDummyData(boolean dummyData)\n\t{\n\t\tthis.dummyData = dummyData;\n\t}", "title": "" }, { "docid": "abaa44874fdf7612309f612553c4c20d", "score": "0.5062755", "text": "Boolean getAttribute();", "title": "" }, { "docid": "e5f846d5dc960f12684e9f923c1f876d", "score": "0.5058802", "text": "public void set(String paramString, Object paramObject) throws IOException {\n/* 98 */ throw new IOException(\"No attribute is allowed by CertAttrSet:OCSPNoCheckExtension.\");\n/* */ }", "title": "" }, { "docid": "c9a25659bbd53de1e6bf385920088c92", "score": "0.50574344", "text": "@ReadPermission(expression = \"deny all\")\n @UpdatePermission(expression = \"parentSpecialValue\")\n public String getSpecialAttribute() {\n return specialAttribute;\n }", "title": "" }, { "docid": "0747986e207829276d2406d85d96f25b", "score": "0.5056378", "text": "public boolean getIsPrivate(){\n return localIsPrivate;\n }", "title": "" }, { "docid": "0747986e207829276d2406d85d96f25b", "score": "0.5056378", "text": "public boolean getIsPrivate(){\n return localIsPrivate;\n }", "title": "" }, { "docid": "19f839c9b0bc737df2827250addd0af4", "score": "0.50479335", "text": "@Test\n public void testNoAttributes() throws ComponentInitializationException {\n prc.getSubcontext(RelyingPartyContext.class, true).getSubcontext(AttributeContext.class).setIdPAttributes(null);\n Assert.assertNull(lookup.apply(prc));\n }", "title": "" }, { "docid": "104ddfaf4b2aae53bc7424a7891d660a", "score": "0.50463974", "text": "public List<TestCaseAttribute> getTestAttributes();", "title": "" }, { "docid": "be043d68337b889813d3ea7cedadae0e", "score": "0.50441927", "text": "public static native boolean isAttributeActive();", "title": "" }, { "docid": "ff20599aa3782f948e3c88cdf5a31c96", "score": "0.5013915", "text": "String getAttributes();", "title": "" }, { "docid": "1aa184127ba7fff9e7f85a5566abe46f", "score": "0.50073314", "text": "@Override\n public boolean isConfidential() {\n return false;\n }", "title": "" }, { "docid": "5cb9b6632653c2be4fb4c12b706ee81b", "score": "0.49918857", "text": "protected XmlValue instantiateAttribute()\n {\n return new SimpleValue(null, true);\n }", "title": "" }, { "docid": "ba8111658975a24a1648a5823ecf8d8e", "score": "0.49893022", "text": "private boolean isSetAuthorized(String attributeName)\r\n {\r\n return true;\r\n\r\n }", "title": "" }, { "docid": "332a2f3053e4c04132d97b85e0b18134", "score": "0.49885184", "text": "@Override\n public boolean isSecure()\n {\n return super.isSecure();\n }", "title": "" }, { "docid": "5cee853a26bdfcd772c37dd0442c9891", "score": "0.49681786", "text": "protected abstract ManageableSecurity createSecurity();", "title": "" }, { "docid": "e06e3bfc7b69048b0b7831a6b9453b1b", "score": "0.49525923", "text": "@Test(enabled = false)\n public void readAttributesAsMap() {\n throw new RuntimeException(\"TODO : implement readAttributesAsMap\");\n }", "title": "" }, { "docid": "e1d99a7f60fd60ca94241a2824977334", "score": "0.4945467", "text": "@Override\r\n\t\t\tpublic boolean isSecure() {\n\t\t\t\treturn false;\r\n\t\t\t}", "title": "" }, { "docid": "e343d7244afbf6e8ca3bf8f39389bd9a", "score": "0.4940084", "text": "public interface Attributes {\n\n // session attributes\n String SECTION = \"section\";\n String LOGGED_USER = \"loggedUser\";\n String LOGGED_PERMISSIONS = \"loggedPermissions\";\n\n // request attributes\n String LOGIN_FORM = \"loginForm\";\n String LANGUAGES = \"languages\";\n\n String VIEWED_USER = \"viewedUser\";\n String VIEWED_ROLE = \"viewedRole\";\n String VIEWED_BOOK_TYPE = \"viewedBookType\";\n String VIEWED_BOOK_SERIAL = \"viewedBookSerial\";\n String VIEWED_PUBLISHER = \"viewedPublisher\";\n String VIEWED_AUTHOR = \"viewedAuthor\";\n String VIEWED_GENRE = \"viewedGenre\";\n String VIEWED_BOOK_EXEMPLAR = \"viewedBookExemplar\";\n\n String VIEWED_USERS = \"listViewedUser\";\n String VIEWED_ROLES = \"viewedRoles\";\n String VIEWED_PERMISSIONS = \"viewedPermissions\";\n String VIEWED_BOOK_SERIALS = \"viewedBookSerials\";\n String VIEWED_PUBLISHERS = \"viewedPublishers\";\n String VIEWED_AUTHORS = \"viewedAuthors\";\n String VIEWED_GENRES = \"viewedGenres\";\n String VIEWED_BOOK_TYPES = \"viewedBookTypes\";\n String VIEWED_BOOK_EXEMPLARS = \"viewedBookExemplars\";\n\n String INFO_STATUS = \"infoStatus\";\n String ACTIVATION_STATUSES = \"activationStatuses\";\n\n //mixed-scope attributes (session & request - flow scope/managed by application)\n String VIEWED_BOOK_EXEMPLAR_FLOW = \"viewedBookExemplarFlow\";\n String VIEWED_BOOK_TYPE_FLOW = \"viewedBookTypeFlow\";\n\n}", "title": "" }, { "docid": "c0c050adb28dccfd02be8107eaf02bfb", "score": "0.4930438", "text": "protected T getSecurityDefinition() {\n return _securityDefinition;\n }", "title": "" }, { "docid": "772c104b28c81c52cae7806b58dfa3be", "score": "0.49293333", "text": "@Override\n\tpublic boolean isSecure() {\n\t\treturn false;\n\t}", "title": "" }, { "docid": "193ae09e69a0f517af5b5bd2fa482c1d", "score": "0.4924006", "text": "boolean isSetAccattribute();", "title": "" }, { "docid": "6b19f64f4fcf71a384712976d92dbc24", "score": "0.49230227", "text": "@Override\n\tpublic boolean hasAttributeModifiers()\n\t{\n\t\tthrow new UnimplementedOperationException();\n\t}", "title": "" }, { "docid": "da9e8be8feac7d0070db7a9c4d368a6d", "score": "0.49187127", "text": "@Override\r\n\tprotected String getPersonAttributesValues() {\n\t\treturn null;\r\n\t}", "title": "" }, { "docid": "1bb79e2bd16e60e368d8216898ab862b", "score": "0.49042007", "text": "@Override\r\n\tpublic boolean getAttribute(String attributeName, boolean defaultValue) {\n\t\treturn false;\r\n\t}", "title": "" }, { "docid": "a5bc5e6ad875cd03800a567fdf80bccb", "score": "0.49018747", "text": "@Test\n private void testUserNameAtt() {\n String hex = \"01 06 6e 65 6d 6f\";\n ByteBuffer bfr = Utils.toBuffer(hex);\n Attribute att = PacketFactory.nextAttribute(bfr);\n Assert.assertEquals(att.getClass().getSimpleName(), UserNameAttribute.class.getSimpleName(),\n \"wrong attribute class instantiated\");\n UserNameAttribute una = (UserNameAttribute) att;\n Assert.assertEquals(una.getName(), \"nemo\");\n }", "title": "" }, { "docid": "c4039be03d13564b113df2557b74c16e", "score": "0.48943886", "text": "public Object getDummyData();", "title": "" }, { "docid": "b5d26ea4559bdeb4a1992be44c82bc96", "score": "0.48934335", "text": "void disableSecurityCheckInToggle() throws Exception;", "title": "" }, { "docid": "ac1b3b564b887dcdd90e03e94a4b4f5b", "score": "0.48890632", "text": "@Override\n public boolean isTestHttpCallWithUserInfoEnabled() {\n return !isNetty;\n }", "title": "" }, { "docid": "304705dca82abc8cfa07a505d83ddfd0", "score": "0.48877823", "text": "public ReadOnlyAttributes()\n\t{\n attributes = new Vector();\n\t}", "title": "" }, { "docid": "fb931547e68316bdc23e8f62af1e1b86", "score": "0.48869044", "text": "@Override\n\t\t\tpublic boolean isSecure() {\n\t\t\t\treturn false;\n\t\t\t}", "title": "" }, { "docid": "5c30143f8768bf87b3f80226a267832c", "score": "0.48817524", "text": "public byte[] supportsNodeAttributes() {\r\n\t\t\treturn null;\r\n\t\t}", "title": "" }, { "docid": "467a1cd8a2688f43a00d54ab61cd60e7", "score": "0.4875626", "text": "public XmlValue getSafeAttribute(String sName)\n {\n XmlValue value = getAttribute(sName);\n if (value == null)\n {\n value = instantiateAttribute();\n value.setParent(this);\n if (value instanceof SimpleValue)\n {\n ((SimpleValue) value).setMutable(false);\n }\n }\n\n return value;\n }", "title": "" }, { "docid": "69e24138edf4c49ade6f35e05ff89e80", "score": "0.4851084", "text": "public Collection<ConfigAttribute> getAllConfigAttributes() {\n\t\tCollection<ConfigAttribute> co=new ArrayList<ConfigAttribute>();\n\t\tco.add(new SecurityConfig(\"null\"));\n\t\treturn co;\n\t}", "title": "" }, { "docid": "cb627144f5d6eaef3055baa3a17df4b4", "score": "0.48472124", "text": "public String getSecurityId() {\n return securityId;\n }", "title": "" }, { "docid": "65ef40ee75927e3ffc2fa78a4dc33d44", "score": "0.4818848", "text": "KnowledgeSecurityTag createKnowledgeSecurityTag();", "title": "" }, { "docid": "0cffb23e9fb5024d0eb860ea910f2d1c", "score": "0.48180288", "text": "@Test(enabled = false)\n\t public void notnull2() {\n\t System.out.print(\"\\n\"+txt2.getAttribute(\"disabled\"));\n\t Assert.assertNotNull(txt2.getAttribute(\"disabled\"));\n\t }", "title": "" }, { "docid": "4040353d9b6215244d3e21be47a27e82", "score": "0.48136222", "text": "public void testSetBaseAttributes() throws Exception {\n//TODO: Test goes here... \n }", "title": "" }, { "docid": "a25245016d1fac1b903b5266d8e66cf7", "score": "0.479775", "text": "@org.jetbrains.annotations.NotNull()\n public final byte[] getUserProtectedData() {\n return null;\n }", "title": "" }, { "docid": "1c86d8d121700147bc0861cc639d4c1d", "score": "0.47949544", "text": "@NotNull\n\tGenericAttributeValue<String> getDisabled();", "title": "" }, { "docid": "4f331c888abf7dff21470f44bc7a5f3f", "score": "0.47916478", "text": "@Override\r\n\tprotected String getPersonAttributesNamesValues() {\n\t\treturn null;\r\n\t}", "title": "" }, { "docid": "8c2901ab83a85a9ac4d4e9e97f76d02c", "score": "0.4791542", "text": "boolean getIncludeAttributes();", "title": "" }, { "docid": "29f50c49805c495500a63934bc18dcf4", "score": "0.47909525", "text": "@Override\r\n\tprotected String getPersonAttributesNames() {\n\t\treturn null;\r\n\t}", "title": "" }, { "docid": "4d251ea78cc72c8e0d9bec2d0979bbaf", "score": "0.47901058", "text": "@Test\n public void securityStatusTest() {\n // TODO: test securityStatus\n }", "title": "" }, { "docid": "4d251ea78cc72c8e0d9bec2d0979bbaf", "score": "0.47901058", "text": "@Test\n public void securityStatusTest() {\n // TODO: test securityStatus\n }", "title": "" }, { "docid": "cd1ea67b468439d10d01b5dc5f8646bc", "score": "0.47886375", "text": "protected SimpleAttributeSet getAttributes() {\n return attributes;\n }", "title": "" }, { "docid": "c6168326af17b50a946ffdca7f4fe2b5", "score": "0.47843763", "text": "public Object getPrincipal() {\n\t\treturn \"dummy\";\r\n\t}", "title": "" }, { "docid": "5d8b157da8c2da81495e63dada0c91b3", "score": "0.47830173", "text": "@Override\n\tpublic Map<String, Object> getCustomAttributes() {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "ef62370f390418919f96e2c743f9ae3e", "score": "0.47812864", "text": "public void setSecretary(){\n\t\t\tthis.secretary = true;\n\t\t}", "title": "" }, { "docid": "f09720dc82d8bce77c0c25e524e5d010", "score": "0.47784835", "text": "public de.uni_koblenz.jgralabtest.schemas.gretl.bedsl_pddsl.SimpleAttribute createSimpleAttribute();", "title": "" }, { "docid": "2fd695dbc56b52351f81fc53c8dac8ac", "score": "0.47720286", "text": "@Override\n\tprotected SecurityService securityService() {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "35f79e4aaa18fb1beb6503ab22d20532", "score": "0.47704268", "text": "private SecurityUtils() {\n\n\t}", "title": "" }, { "docid": "2f24c27ac086014cd1f739911ccd505a", "score": "0.476704", "text": "SecurityFilterType getSecurityFilter();", "title": "" }, { "docid": "bb89b69c35b23bdf8202dfeca6f4d7f7", "score": "0.47670296", "text": "public boolean getPrivateOnly() {\n return privateOnly_;\n }", "title": "" }, { "docid": "8913ba30b7b5433cd57b581e9b038727", "score": "0.47557256", "text": "private boolean includeForAccessibility() {\n return getTaintBoolean();\n }", "title": "" }, { "docid": "ff089c3fb79420af1d52e661ce6afdb5", "score": "0.47555697", "text": "public ContainerAttributesBean() {}", "title": "" }, { "docid": "724e7556299ed80ffc8bdd56bd53bdbc", "score": "0.4745372", "text": "SecurityContext createEmptyContext();", "title": "" }, { "docid": "5da5fbe28be8eb667c6aff5523e9148b", "score": "0.47436923", "text": "@Override\n public boolean isSecure() {\n throw new UnsupportedOperationException(UNSUPPORTED_MSG);\n }", "title": "" }, { "docid": "d0c724a4d2d4cbb50d6525a5f62a1b10", "score": "0.47410586", "text": "public BooleanAttributeTest(String testName)\n {\n super(testName);\n }", "title": "" }, { "docid": "020d101423838b0dd4032f731f9cc1c0", "score": "0.47357306", "text": "public String[] listAttributes() throws NotImplementedException,\n\t\t\tAuthenticationFailedException, AuthorizationFailedException,\n\t\t\tPermissionDeniedException, TimeoutException, NoSuccessException {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "3101baa7ae5c90eb9275d7ec82c7d85d", "score": "0.47351956", "text": "@Test\n public void securityClassTest() {\n // TODO: test securityClass\n }", "title": "" }, { "docid": "d401ba1fa4b88644cdbc07e759cf6d2d", "score": "0.47341886", "text": "@Test\n public void testNoAttributeCtx() throws ComponentInitializationException {\n prc.getSubcontext(RelyingPartyContext.class).removeSubcontext(AttributeContext.class);\n Assert.assertNull(lookup.apply(prc));\n }", "title": "" }, { "docid": "1c18f95afe9fa041d682be8aa6488a91", "score": "0.4731926", "text": "public boolean hasOmittedAttributes() {\r\n\t\treturn omitted;\r\n\t}", "title": "" }, { "docid": "b368d42c4d013be63008e26079021407", "score": "0.47297853", "text": "@Test\n public void whenAPIKeyIsDefinedAndRequestedProtectedURIWithoutHeader_ResponseIs403() throws ServletException, IOException {\n\n BurpService service = Mockito.mock(BurpService.class);\n Mockito.when(service.getAPIKey()).thenReturn(\"test-api-key\");\n\n ApiKeyFilter customURLFilter = new ApiKeyFilter(service);\n\n HttpServletRequest req = Mockito.mock(HttpServletRequest.class);\n MockHttpServletResponse res = new MockHttpServletResponse();\n MockFilterChain chain = new MockFilterChain();\n Mockito.when(req.getRequestURI()).then(invocation -> {return \"/burp/configuration\";});\n\n customURLFilter.doFilter(req, res, chain);\n Assertions.assertEquals(res.getStatus(), 403);\n }", "title": "" }, { "docid": "a01f4c252ea4f09eb64fbd779bd263e3", "score": "0.4726441", "text": "public void testGetAttributesBad() throws Exception {\n String[] badNames = { \"Cork\", \"Galway\" };\n AttributeList attributes = mb.getAttributes(badNames);\n assertNotNull(attributes);\n // No attributes will have been returned.\n assertTrue(attributes.size() == 0);\n }", "title": "" } ]
9c2f97f90ed950084dee303003094489
/ page 243 Kundu Aircraft Design.
[ { "docid": "66705d52566ba490c4df4488a828aed8", "score": "0.0", "text": "public static Amount<Mass> calculateTurbopropNacelleMassKundu (Aircraft aircraft) {\n\t\t\n\t\tAmount<Mass> mass = Amount.valueOf(0.0, SI.KILOGRAM);\n\t\t\n\t\tif(aircraft.getNacelles().getNacellesList().get(0).getMountingPosition().equals(NacelleMountingPositionEnum.WING)\n\t\t\t\t|| aircraft.getNacelles().getNacellesList().get(0).getMountingPosition().equals(NacelleMountingPositionEnum.HTAIL)) {\n\t\t\tmass = Amount.valueOf(\n\t\t\t\t\taircraft.getPowerPlant().getEngineList().get(0).getP0().to(NonSI.HORSEPOWER).times(0.065).getEstimatedValue(),\n\t\t\t\t\tSI.KILOGRAM\n\t\t\t\t\t);\n\t\t} \n\t\telse if(aircraft.getNacelles().getNacellesList().get(0).getMountingPosition().equals(NacelleMountingPositionEnum.UNDERCARRIAGE_HOUSING)) {\n\t\t\tmass = Amount.valueOf(\n\t\t\t\t\taircraft.getPowerPlant().getEngineList().get(0).getP0().to(NonSI.HORSEPOWER).times(0.08).getEstimatedValue(),\n\t\t\t\t\tSI.KILOGRAM\n\t\t\t\t\t);\n\t\t} \n\t\telse if(aircraft.getNacelles().getNacellesList().get(0).getMountingPosition().equals(NacelleMountingPositionEnum.FUSELAGE)) {\n\t\t\tmass = Amount.valueOf(\n\t\t\t\t\taircraft.getPowerPlant().getEngineList().get(0).getP0().to(NonSI.HORSEPOWER).times(0.28).getEstimatedValue(),\n\t\t\t\t\tSI.KILOGRAM\n\t\t\t\t\t);\n\t\t}\n\t\t\n\t\treturn mass;\n\t\t\n\t}", "title": "" } ]
[ { "docid": "264ab160fe7be2cc5bf4eee6e8542d7c", "score": "0.6010924", "text": "public static void main(String[] args) {\n Airline airline = new Airline();\n airline.setName(\"UkraineAir\");\n\n// PassengerPlaneBuilder passengerPlaneBuilder = new PassengerPlaneBuilder();\n// CargoPlaneBuilder cargoPlaneBuilder = new CargoPlaneBuilder();\n\n// airline.addAircraft(\n// ((PassengerPlaneBuilder)\n// ((AirplaneBuilder)\n// passengerPlaneBuilder\n// .setModelName(\"Boeing 737-300\")\n// .setPassengerCapacity(128)\n// .setCarryingCapacity(69_400)\n// .setFlightRange(6230)\n// .setFuelConsumption(2400))\n// .setCruisingSpeed(790))\n// .setNumberOfPassengers(100)\n// .build()\n// );\n//\n// airline.addAircraft(\n// ((PassengerPlaneBuilder)\n// ((AirplaneBuilder) passengerPlaneBuilder\n// .setModelName(\"Boeing 737-800\")\n// .setPassengerCapacity(103)\n// .setCarryingCapacity(52_400)\n// .setFlightRange(5200)\n// .setFuelConsumption(2480))\n// .setCruisingSpeed(840))\n// .setNumberOfPassengers(0)\n// .build()\n// );\n//\n// airline.addAircraft(\n// ((PassengerPlaneBuilder)\n// ((AirplaneBuilder)\n// passengerPlaneBuilder\n// .setModelName(\"Embraer E-190\")\n// .setPassengerCapacity(114)\n// .setCarryingCapacity(51_800)\n// .setFlightRange(4537)\n// .setFuelConsumption(1850))\n// .setCruisingSpeed(852))\n// .setNumberOfPassengers(105)\n// .build()\n// );\n//\n// airline.addAircraft(\n// ((CargoPlaneBuilder)\n// ((AirplaneBuilder) cargoPlaneBuilder\n// .setModelName(\"Boeing 747-400F\")\n// .setCarryingCapacity(396_890)\n// .setFlightRange(8230)\n// .setFuelConsumption(1350))\n// .setCruisingSpeed(980))\n// .setCargoWeight(300_000)\n// .build()\n// );\n//\n// airline.addAircraft(\n// ((CargoPlaneBuilder)\n// ((AirplaneBuilder)\n// cargoPlaneBuilder\n// .setModelName(\"An-124-100\")\n// .setCarryingCapacity(402_000)\n// .setFlightRange(15700)\n// .setFuelConsumption(12_600))\n// .setCruisingSpeed(800))\n// .setCargoWeight(20_000)\n// .build()\n// );\n\n Menu.execute(airline);\n }", "title": "" }, { "docid": "b03406e8135048676fa7d502fb157a3e", "score": "0.58192146", "text": "public void PrintAirCondition() {\r\n System.out.println(\"\\ndevice details: \");\r\n System.out.println(\"dimensions: \"+\"\\nmhkos:\" +mhkos +\"\\nupsos:\" +upsos +\"\\nvathos:\" +vathos);\r\n System.out.println(\"onoma_kataskeasti: \" + onoma_kataskeuasti);\r\n System.out.println(\"onoma_suskebis: \" + onoma_suskebis);\r\n System.out.println(\"typos_suskeuhs: \" + typos_suskeuhs);\r\n System.out.println(\"katanalvsh_reumatos: \" + katanalvsh_reumatos);\r\n System.out.println(\"isxis_psixis: \" + isxis_psixis);\r\n System.out.println(\"isxis_thermansis: \" + isxis_thermansis);\r\n System.out.println(\"energeiaki_klasi_psixis: \" + energeiaki_klasi_psixis);\r\n System.out.println(\"filtro_aeros: \" + filtro_aeros);\r\n System.out.println(\"Wifi: \" + Wifi);\r\n }", "title": "" }, { "docid": "a6dc0fc8dfad1221f76514f55d3104c4", "score": "0.56764716", "text": "public void handler() {\n\t\n\t\tPORT_START(); \t/* (0) DIPSW-A */\n\t\tPORT_DIPNAME( 0x0f, 0x0f, DEF_STR( \"Difficulty\") );\n\t\tPORT_DIPSETTING( 0x0f, \"1 (Easy); )\n\t\tPORT_DIPSETTING( 0x0e, \"2\" );\n\t\tPORT_DIPSETTING( 0x0d, \"3\" );\n\t\tPORT_DIPSETTING( 0x0c, \"4\" );\n\t\tPORT_DIPSETTING( 0x0b, \"5\" );\n\t\tPORT_DIPSETTING( 0x0a, \"6\" );\n\t\tPORT_DIPSETTING( 0x09, \"7\" );\n\t\tPORT_DIPSETTING( 0x08, \"8\" );\n\t\tPORT_DIPSETTING( 0x07, \"9\" );\n\t\tPORT_DIPSETTING( 0x06, \"10\" );\n\t\tPORT_DIPSETTING( 0x05, \"11\" );\n\t\tPORT_DIPSETTING( 0x04, \"12\" );\n\t\tPORT_DIPSETTING( 0x03, \"13\" );\n\t\tPORT_DIPSETTING( 0x02, \"14\" );\n\t\tPORT_DIPSETTING( 0x01, \"15\" );\n\t\tPORT_DIPSETTING( 0x00, \"16 (Hard); )\n\t\tPORT_DIPNAME( 0x30, 0x30, \"YAKUMAN cut\" );\n\t\tPORT_DIPSETTING( 0x30, \"10%\" );\n\t\tPORT_DIPSETTING( 0x20, \"30%\" );\n\t\tPORT_DIPSETTING( 0x10, \"50%\" );\n\t\tPORT_DIPSETTING( 0x00, \"90%\" );\n\t\tPORT_DIPNAME( 0x40, 0x00, \"Nudity\" );\n\t\tPORT_DIPSETTING( 0x40, DEF_STR( \"Off\") );\n\t\tPORT_DIPSETTING( 0x00, DEF_STR( \"On\") );\n\t\tPORT_DIPNAME( 0x80, 0x80, DEF_STR( \"Unknown\") );\n\t\tPORT_DIPSETTING( 0x80, DEF_STR( \"Off\") );\n\t\tPORT_DIPSETTING( 0x00, DEF_STR( \"On\") );\n\t\n\t\tPORT_START(); \t/* (1) DIPSW-B */\n\t\tPORT_DIPNAME( 0x03, 0x00, \"Number of last chance\" );\n\t\tPORT_DIPSETTING( 0x03, \"0\" );\n\t\tPORT_DIPSETTING( 0x02, \"3\" );\n\t\tPORT_DIPSETTING( 0x01, \"5\" );\n\t\tPORT_DIPSETTING( 0x00, \"10\" );\n\t\tPORT_DIPNAME( 0x04, 0x04, \"Hanahai\" );\n\t\tPORT_DIPSETTING( 0x00, DEF_STR( \"Off\") );\n\t\tPORT_DIPSETTING( 0x04, DEF_STR( \"On\") );\n\t\tPORT_DIPNAME( 0x08, 0x00, \"Chonbo\" );\n\t\tPORT_DIPSETTING( 0x00, DEF_STR( \"Off\") );\n\t\tPORT_DIPSETTING( 0x08, DEF_STR( \"On\") );\n\t\tPORT_DIPNAME( 0x10, 0x10, \"Open Reach of CPU\" );\n\t\tPORT_DIPSETTING( 0x00, DEF_STR( \"Off\") );\n\t\tPORT_DIPSETTING( 0x10, DEF_STR( \"On\") );\n\t\tPORT_DIPNAME( 0x20, 0x20, \"Open Mode\" );\n\t\tPORT_DIPSETTING( 0x00, DEF_STR( \"Off\") );\n\t\tPORT_DIPSETTING( 0x20, DEF_STR( \"On\") );\n\t\tPORT_DIPNAME( 0xc0, 0x00, \"Cansel Type\" );\n\t\tPORT_DIPSETTING( 0xc0, DEF_STR( \"Off\") );\n\t\tPORT_DIPSETTING( 0x80, \"TSUMO 3\" );\n\t\tPORT_DIPSETTING( 0x40, \"TSUMO 7\" );\n\t\tPORT_DIPSETTING( 0x00, \"HAIPAI\" );\n\t\n\t\tPORT_START(); \t/* (2) PORT 0 */\n\t\tPORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNUSED );\t// DRAW BUSY\n\t\tPORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_UNUSED );\t//\n\t\tPORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_SERVICE3 );\t// MEMORY RESET\n\t\tPORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_SERVICE2 );\t// ANALYZER\n\t\tPORT_SERVICE( 0x10, IP_ACTIVE_LOW );\t\t// TEST\n\t\tPORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_COIN1 );\t// COIN1\n\t\tPORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_START3 );\t// CREDIT CLEAR\n\t\tPORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_SERVICE1 );\t// SERVICE\n\t\n\t\tNBMJCTRL_PORT1\t/* (3) PORT 1-1 */\n\t\tNBMJCTRL_PORT2\t/* (4) PORT 1-2 */\n\t\tNBMJCTRL_PORT3\t/* (5) PORT 1-3 */\n\t\tNBMJCTRL_PORT4\t/* (6) PORT 1-4 */\n\t\tNBMJCTRL_PORT5\t/* (7) PORT 1-5 */\n\tINPUT_PORTS_END(); }", "title": "" }, { "docid": "3610a97c6752b0ba4c78aa893f70bb72", "score": "0.5658791", "text": "public Umbrella() {\n material = \"cotton\";\n waterproof = false;\n yearProduced = 2018;\n }", "title": "" }, { "docid": "047c3760b6a1be085e5397401148f015", "score": "0.5641553", "text": "private double airframeMaterialKundu(double airframeCost, double blockTime, double flightTime){\n\t\t\treturn ((4.2 + 2.2*flightTime)/blockTime) * airframeCost/1000000.0;\t\n\t\t}", "title": "" }, { "docid": "936f2509a3463bac3487fc227578b4e0", "score": "0.556978", "text": "public final void bzd() {\n AppMethodBeat.m2504i(20781);\n C1196a c1196a = new C1196a();\n c1196a.fsJ = new acm();\n c1196a.fsK = new acn();\n c1196a.uri = \"/cgi-bin/mmo2o-bin/freewifireport\";\n c1196a.fsI = 1781;\n c1196a.fsL = 0;\n c1196a.fsM = 0;\n this.ehh = c1196a.acD();\n AppMethodBeat.m2505o(20781);\n }", "title": "" }, { "docid": "c4c748664d7d86acaa687beb6a72ccb0", "score": "0.5490018", "text": "public Aircraft(String Manufacturer, String Model,int FirstClassSeats,int CoachSeats){\r\n\t this.Manufacturer= Manufacturer;\r\n\t this.Model=Model;\r\n\t this.FirstClassSeats=FirstClassSeats;\r\n\t this.CoachSeats= CoachSeats;\r\n }", "title": "" }, { "docid": "cc04a8f0c632d358de655d7e2df2ffed", "score": "0.5476312", "text": "void mo68440a();", "title": "" }, { "docid": "b4e29a67e97ebc3e5cc351785975bfe0", "score": "0.5468206", "text": "public void mo3938a() {\n if (this.f144q == null && this.f145r == null) {\n this.f132e.mo4779d(\"AppLovinAdView\", \"Ad: \" + this.f141n + \" with placement = \\\"\" + this.f134g + \"\\\" closed.\");\n m140a(this.f140m);\n C0330bk.m650b(this.f152y, this.f141n, this.f130c);\n this.f141n = null;\n this.f134g = null;\n } else if (new C0391dr(this.f130c).mo4582an()) {\n contractAd();\n }\n }", "title": "" }, { "docid": "a9f258085970b1e4e4cc88d35aae0965", "score": "0.54636014", "text": "public AirportController() {\n Airport air0 = new Airport(0,0,0,AIRPORT_W,AIRPORT_L,0);\n Airport air1 = new Airport(0,-2500,0,AIRPORT_W,AIRPORT_L,1);\n Airport air2 = new Airport(0,2500,0,AIRPORT_W,AIRPORT_L,2);\n Airport air3 = new Airport(-400,400,(float)Math.PI/2,AIRPORT_W,AIRPORT_L,3);\n Airport air4 = new Airport(1000,-500,(float)Math.PI/4,AIRPORT_W,AIRPORT_L,4);\n Airport air5 = new Airport(-500,-1000,-(float)Math.PI/5,AIRPORT_W,AIRPORT_L,5);\n airports.add(air0);\n airports.add(air1);\n airports.add(air2);\n// airports.add(air3);\n// airports.add(air4);\n// airports.add(air5);\n\n\t}", "title": "" }, { "docid": "6e1cf114471fd8d7fef831f1393abb7a", "score": "0.54524636", "text": "private void mo109158i() {\n DbSuperBanner dbSuperBanner;\n if (this.f87850k && (dbSuperBanner = this.f87849j) != null && dbSuperBanner.show_tabs != null && this.f87849j.show_tabs.contains(C6969H.m41409d(\"G6A8CD817BA3EBF\"))) {\n AdSuperBannerItem aVar = new AdSuperBannerItem(null, true);\n aVar.f64265d = this.f87849j.button_text;\n aVar.f64267f = this.f87849j.android_link;\n aVar.f64264c = this.f87849j.desc;\n aVar.f64263b = this.f87849j.title;\n aVar.f64270i = this.f87849j.show_tabs;\n aVar.f64266e = this.f87849j.landing_url;\n aVar.f64262a = this.f87849j.topicId;\n aVar.f64269h = this.f87845e.totals + \"\";\n aVar.f64268g = this.f87849j.shop_image_url;\n aVar.f64271j = this.f87849j.viewTracks;\n aVar.f64272k = this.f87849j.clickTracks;\n this.f64434y.add(0, aVar);\n }\n }", "title": "" }, { "docid": "7caad19bbde3aa54f812e974d90cca94", "score": "0.5421633", "text": "@Override\r\n\tpublic void dispaly() {\n\t\tSystem.out.println(\"Serial No.:\"+serial_number);\r\n\t\tSystem.out.println(\"Type:\"+\"Air Conditioner\");\r\n\t\tSystem.out.println(\"No of Air conditioner:\"+no_of_item);\r\n\t\tSystem.out.println(\"Price per piece:\"+price);\r\n\t\tSystem.out.println(\"Total of Air_conditioner:\"+(price*no_of_item*lending_peroid));\r\n\t\t\r\n\t}", "title": "" }, { "docid": "f8d5181a32d6cef5220babc5e7b986b5", "score": "0.5414117", "text": "public String toString ()\r\n {\r\n return \"Airplane\";\r\n }", "title": "" }, { "docid": "01fce24c75d8f9c88e0db1d0acbe9419", "score": "0.539622", "text": "public static void main(String[] args) {\n\t\t\n\t\tAircraft A380= new Aircraft(\"hhh\");\n\n\t\tString returnval = A380.landing(1);\n\t\tSystem.out.println(\"value returned \" + returnval);\n\t\tSystem.out.println(A380.landing(2));\n\t\tA380.takeOff();\n\t\t\n\t\t\n\t\t}", "title": "" }, { "docid": "2eadbd88297b68f8380c78ccc0179b19", "score": "0.5364388", "text": "void mo70016a();", "title": "" }, { "docid": "54dcd990894a3a479c75423f1dea28f9", "score": "0.53636885", "text": "public void mo16250a() {\n }", "title": "" }, { "docid": "37177ccd2bcd46f8f5e465e5ebecb9af", "score": "0.5354646", "text": "private double airframeMaintMaterialSforza(double aircraftCost, int numberOfEngines,\n\t\t\t\tdouble singleEngineCost, double flightTime, double blockTime){\n\t\t\treturn (aircraftCost - numberOfEngines*singleEngineCost)*\n\t\t\t\t\t(3.08*flightTime + 6.24)/ (blockTime *(Math.pow(10.0, 6)));\n\t\t}", "title": "" }, { "docid": "b9a6dbcd23bdc29646da1272f34a4815", "score": "0.5349148", "text": "void mo15032ak();", "title": "" }, { "docid": "d3a6bd0a40d0c2d63f00b9c683e960c2", "score": "0.53480417", "text": "public void zeigePackAuswahl() {\n\t\tPackAuswahl packAuswahl = new PackAuswahl(this, playerModus);\n\t\tselectionController.updateStage(new Scene(packAuswahl), GAME_TITLE);\n\t}", "title": "" }, { "docid": "9320af5c691d13eaf9bf5a01d12bda1e", "score": "0.533561", "text": "void mo15033al();", "title": "" }, { "docid": "4a31f373fb484c607c8fb23f8dbfc481", "score": "0.53178805", "text": "static void displayAirports(){\nSystem.out.println(\n\"+---------------------------------------------------------------------------+\\n\" +\n\"| Airport Code | Airport Info |\\n\" +\n\"+--------------|------------------------------------------------------------+\\n\" +\n\"| LGA | LaGuradia Airport, New York |\\n\" +\n\"| BOS | Logan International Airport, Boston |\\n\" + \n\"| DCA | Ronald Reagan National Airport, Washington D.C. |\\n\" +\n\"| RDU | Durham International Airport, Raleigh, North Carolina |\\n\" +\n\"| ATL | Hartsfield Jackson International Airport, Atlanta, Georgia |\\n\" +\n\"| MCO | Orlando International Airport, Orlando, Florida |\\n\" +\n\"| MIA | Miami International Airport, Miami, Florida |\\n\" +\n\"+---------------------------------------------------------------------------+\"\n);\n}", "title": "" }, { "docid": "dfcddb8bf6468a35e0cc98d196926cff", "score": "0.53177696", "text": "public void airmanAtk1(){\n AirmanAtk1 airmanAtk1 = new AirmanAtk1();\n getWorld().addObject(airmanAtk1, getX()-9, getY() - 18);\n }", "title": "" }, { "docid": "d9c4427c817c9872ff0d4d9cc402dace", "score": "0.53154176", "text": "public static final /* synthetic */ void UseChair(LittleEndianAccessor a, MapleClient a, MapleCharacter a) {\n if (a == null) {\n return;\n }\n var3_3 = a.readInt();\n var4_4 = 0;\n var5_5 = false;\n var6_14 = 0;\n if (ItemConstants.isExpChair(var3_3)) {\n v0 = a;\n var5_6 = v0.readInt();\n var6_14 = v0.readInt();\n }\n if (GameSetConstants.MAPLE_VERSION < 143) ** GOTO lbl21\n var4_4 = a.readInt();\n var5_7 = MapleItemInformationProvider.getInstance().getChairRandEffect(var3_3);\n if (var5_7 == null) {\n var4_4 = 0;\n v1 = var3_3;\n } else {\n if (var4_4 >= var5_7.size() || var4_4 < 0) {\n a.sendPacket(MaplePacketCreator.enableActions());\n return;\n }\nlbl21:\n // 3 sources\n\n v1 = var3_3;\n }\n var5_8 = GameConstants.getInventoryType(v1);\n var5_9 = a.getInventory(var5_8).findById(var3_3);\n if (!MapleItemInformationProvider.getInstance().itemExists(var3_3)) {\n a.sendPacket(MaplePacketCreator.enableActions());\n return;\n }\n if (!a.getPlayer().getMap().canChair()) {\n v2 = a;\n a.dropMessage(5, SellSystem.ALLATORIxDEMO(\"\\u6b11\\u575f\\u5763\\u7681\\u5238\\u79ee\\u6b17\\u4f10\\u755d\\u696a\\u5b25\\uff6e\"));\n v2.sendPacket(MaplePacketCreator.cancelChair(-1));\n v2.sendPacket(MaplePacketCreator.enableActions());\n return;\n }\n if (var5_9 == null && var3_3 >= 3010000 && var3_3 < 9999999) {\n FileoutputUtil.logToFile(MapleMessenger.ALLATORIxDEMO(\"\\u0017w\\u001ckTP\\u001a{\\u001079y\\u00157\\u4f95\\u6521\\u5c7a\\u531dUl\\u0003l\"), \"\\r\\n \" + FileoutputUtil.NowTime() + \" \\u73a9\\u5bb6\\uff1a\" + a.getPlayer().getName() + \"(\" + a.getPlayer().getId() + \") \\u4fee\\u6539\\u6905\\u5b50(\" + var3_3 + \")\\u5c01\\u5305\\uff0c\\u5750\\u4e0a\\u6905\\u5b50\\u6642\\u5c01\\u9396\\u3002 \\u8eab\\u4e0a\\u4e26\\u6c92\\u6709\\u8a72\\u7269\\u54c1\");\n World.Broadcast.broadcastMessage(MaplePacketCreator.getItemNotice(\"[\\u5c01\\u9396\\u7cfb\\u7d71] \" + a.getPlayer().getName() + \" \\u56e0\\u70ba\\u4fee\\u6539\\u5c01\\u5305\\u800c\\u88ab\\u7ba1\\u7406\\u54e1\\u6c38\\u4e45\\u505c\\u6b0a\\u3002\"));\n World.Broadcast.broadcastGMMessage(MaplePacketCreator.getItemNotice(\"[GM\\u5bc6\\u8a9e] \" + a.getPlayer().getName() + \"(\" + a.getPlayer().getId() + \") \\u4fee\\u6539\\u6905\\u5b50(\" + var3_3 + \")\\u5c01\\u5305\\uff0c\\u5750\\u4e0a\\u6905\\u5b50\\u6642\\u5c01\\u9396\\u3002 \\u8eab\\u4e0a\\u4e26\\u6c92\\u6709\\u8a72\\u7269\\u54c1\"));\n a.getPlayer().ban(SellSystem.ALLATORIxDEMO(\"\\u4f9b\\u6556\\u5c74\\u536a\"), true, true, false);\n a.getSession().close();\n return;\n }\n if (MapConstants.isFishingMap(a.getMapId())) {\n block15: {\n var5_10 = false;\n var6_14 = 0;\n for (IItem var8_17 : a.getPlayer().getInventory(MapleInventoryType.CASH).list()) {\n if (var3_3 >= 3010001 && var3_3 <= 4000000 && var8_17.getItemId() == 5340000) {\n var5_11 = true;\n var6_14 = 1;\n continue;\n }\n if (var3_3 < 3010001 || var3_3 > 4000000 || var8_17.getItemId() != 5340001) continue;\n var5_12 = false;\n var6_14 = 1;\n v3 = var5_12;\n v4 = a;\n v4.setcheck_FishingVip(true);\n v4.startFishingTask();\n break block15;\n }\n v3 = var5_11;\n }\n if (v3) {\n v5 = a;\n v5.setcheck_FishingVip(false);\n v5.startFishingTask();\n }\n if (var6_14 == 0) {\n a.dropMessage(5, MapleMessenger.ALLATORIxDEMO(\"\\u4e15\\u7b5d\\u5410\\u9198\\u9b42\\u68e6\\u4eee\\uff77\\u8ad3\\u679e\\u95a95H8\\u91fb\\u9b21\\u65a1\\u6cae\\uff19\"));\n }\n }\n a.setChair(var3_3);\n if (GameSetConstants.FLY_CHAIR && (var5_13 = ChairDataFactory.getFlyChair(var3_3)) != 0) {\n var6_15 = Collections.singletonList(new Pair<MapleBuffStat, Integer>(MapleBuffStat.MONSTER_RIDING, 0));\n v6 = a;\n v7 = var5_13;\n a.getClient().sendPacket(MaplePacketCreator.giveMount(v7, var3_3, var6_15));\n v6.setFlyChairId(v7);\n v8 = a;\n v6.getMap().broadcastMessage(v8, MaplePacketCreator.showMonsterRiding(v8.getId(), var6_15, var5_13, var3_3), false);\n a.sendPacket(MaplePacketCreator.enableActions());\n if (v6.getMount().getFatigue() >= 95) {\n a.dropMessage(5, SellSystem.ALLATORIxDEMO(\"\\u8b09\\u543fU\\u60dd\\u76eb\\u9a7b\\u5b9a\\u75c7\\u52b1\\u5049\\u5948\\u65c9V@C\\u5c72\\u5c61\\u8181\\u4eb9\\u4ecf\\u714e\\u6ca0\\u7764\\u89fe\\u60c7\\u76f1\\u98b4\\u595c\\u696a\\u5b25N\"));\n }\n }\n v9 = a;\n a.getMap().broadcastMessage(v9, MaplePacketCreator.showChair(v9.getId(), var3_3, var4_4), false);\n a.sendPacket(MaplePacketCreator.enableActions());\n }", "title": "" }, { "docid": "828c556b31af9526f8db1f475c72a08d", "score": "0.5314871", "text": "public final void dVC() {\n AppMethodBeat.m2504i(85188);\n if (this.ARf == null) {\n AppMethodBeat.m2505o(85188);\n return;\n }\n String xWalkUpdateConfigUrl = XWalkEnvironment.getXWalkUpdateConfigUrl();\n String str = \"\\n\\n\" + this.ARb.getAbstractInfo();\n if (WebView.getCurWebType() != C44570d.WV_KIND_CW) {\n str = str + \"\\n xwebsdk is = 190301 apk ver is \" + XWalkEnvironment.getAvailableVersion();\n }\n StringBuilder append = new StringBuilder().append(str).append(\"\\n\\n current js engine: = \").append(C41128i.dTU()).append(\"\\n prefered js engine = \").append(C41128i.m71556a(C36587a.RT_TYPE_AUTO, \"appbrand\", this.AMr)).append(\"\\n isWaitingForUpdate = \");\n C41136c.dVV();\n CharSequence stringBuilder = append.append(C41136c.dVW()).append(\"\\n local gray value = \").append(XWalkEnvironment.getGrayValue()).append(\"\\n config url = \").append(xWalkUpdateConfigUrl).append(\"\\n config period(minutes) = \").append(C41136c.dWb() / 60000).append(\"\\n\\n apilevel = \").append(VERSION.SDK_INT).append(\"\\n device is \").append(Build.BRAND).append(\" \").append(Build.MODEL).append(\"\\n usertype is \").append(XWalkEnvironment.getUserType()).toString();\n xWalkUpdateConfigUrl = C44572a.getAbstractInfo();\n if (!(xWalkUpdateConfigUrl == null || xWalkUpdateConfigUrl.isEmpty())) {\n stringBuilder = stringBuilder + \"\\n\\n ------dump commands start:------\\n\" + xWalkUpdateConfigUrl + \"\\n ------dump commands end------\";\n }\n xWalkUpdateConfigUrl = \"\";\n try {\n SimpleDateFormat simpleDateFormat = new SimpleDateFormat(\"yyyy-MM-dd HH:mm:ss\");\n if (C41136c.dVX()) {\n xWalkUpdateConfigUrl = ((((((xWalkUpdateConfigUrl + \"going to update to apk ver = \" + C41136c.dWd().ATn) + \"\\n update time is = \" + simpleDateFormat.format(new Date(C41136c.dWd().ATv))) + \"\\n is patch update = \" + C41136c.dWd().ATt) + \"\\n can use cellular = \" + C41136c.dWd().ATh) + \"\\n try count = \" + C41136c.dWd().ATx) + \"\\n try use shared core count = \" + C41136c.dWd().ATy) + IOUtils.LINE_SEPARATOR_UNIX;\n }\n xWalkUpdateConfigUrl = xWalkUpdateConfigUrl + \" last fetch config time = \" + simpleDateFormat.format(new Date(C41136c.dWd().ATs));\n } catch (Exception e) {\n }\n if (!(xWalkUpdateConfigUrl == null || xWalkUpdateConfigUrl.isEmpty())) {\n stringBuilder = stringBuilder + \"\\n\\n ------dump schedule updateInfo start:------\\n\" + xWalkUpdateConfigUrl + \"\\n ------dump schedule updateInfo end------\";\n }\n xWalkUpdateConfigUrl = XWalkEnvironment.getXWalkInitializeLog();\n if (!(xWalkUpdateConfigUrl == null || xWalkUpdateConfigUrl.isEmpty())) {\n stringBuilder = stringBuilder + \"\\n\\n ------dump xweb log------\\n\" + xWalkUpdateConfigUrl;\n }\n this.ARf.setText(stringBuilder);\n AppMethodBeat.m2505o(85188);\n }", "title": "" }, { "docid": "bc2709df52153fd3dac36fb3148198c4", "score": "0.53068227", "text": "public void Federal_Reserve_Act();", "title": "" }, { "docid": "24063f389016c396af84a5048b30901a", "score": "0.5301325", "text": "public void m253i() {\n this.f233g = -1;\n }", "title": "" }, { "docid": "028493050142c8c794e3f0071f393b05", "score": "0.5294779", "text": "public void handler() {\n\t\n\t\tPORT_START(); \t/* (0) DIPSW-A */\n\t\tPORT_DIPNAME( 0x0f, 0x0d, DEF_STR( \"Difficulty\") );\n\t\tPORT_DIPSETTING( 0x0d, \"1 (Easy); )\n\t\tPORT_DIPSETTING( 0x0a, \"2\" );\n\t\tPORT_DIPSETTING( 0x09, \"3\" );\n\t\tPORT_DIPSETTING( 0x08, \"4\" );\n\t\tPORT_DIPSETTING( 0x07, \"5\" );\n\t\tPORT_DIPSETTING( 0x06, \"6\" );\n\t\tPORT_DIPSETTING( 0x05, \"7\" );\n\t\tPORT_DIPSETTING( 0x04, \"8\" );\n\t\tPORT_DIPSETTING( 0x00, \"9 (Hard); )\n\t\tPORT_DIPNAME( 0x10, 0x10, DEF_STR( \"Unknown\") );\n\t\tPORT_DIPSETTING( 0x10, DEF_STR( \"Off\") );\n\t\tPORT_DIPSETTING( 0x00, DEF_STR( \"On\") );\n\t\tPORT_DIPNAME( 0x20, 0x20, DEF_STR( \"Unknown\") );\n\t\tPORT_DIPSETTING( 0x20, DEF_STR( \"Off\") );\n\t\tPORT_DIPSETTING( 0x00, DEF_STR( \"On\") );\n\t\tPORT_DIPNAME( 0x40, 0x40, DEF_STR( \"Unknown\") );\n\t\tPORT_DIPSETTING( 0x40, DEF_STR( \"Off\") );\n\t\tPORT_DIPSETTING( 0x00, DEF_STR( \"On\") );\n\t\tPORT_DIPNAME( 0x80, 0x80, DEF_STR( \"Unknown\") );\n\t\tPORT_DIPSETTING( 0x80, DEF_STR( \"Off\") );\n\t\tPORT_DIPSETTING( 0x00, DEF_STR( \"On\") );\n\t\n\t\tPORT_START(); \t/* (1) DIPSW-B */\n\t\tPORT_DIPNAME( 0x03, 0x00, \"Number of last chance\" );\n\t\tPORT_DIPSETTING( 0x03, \"0\" );\n\t\tPORT_DIPSETTING( 0x02, \"1\" );\n\t\tPORT_DIPSETTING( 0x01, \"3\" );\n\t\tPORT_DIPSETTING( 0x00, \"10\" );\n\t\tPORT_DIPNAME( 0x0c, 0x00, \"SANGEN Rush\" );\n\t\tPORT_DIPSETTING( 0x0c, \"1\" );\n\t\tPORT_DIPSETTING( 0x08, \"3\" );\n\t\tPORT_DIPSETTING( 0x04, \"5\" );\n\t\tPORT_DIPSETTING( 0x00, \"infinite\" );\n\t\tPORT_DIPNAME( 0x10, 0x10, DEF_STR( \"Unknown\") );\n\t\tPORT_DIPSETTING( 0x10, DEF_STR( \"Off\") );\n\t\tPORT_DIPSETTING( 0x00, DEF_STR( \"On\") );\n\t\tPORT_DIPNAME( 0x20, 0x20, DEF_STR( \"Unknown\") );\n\t\tPORT_DIPSETTING( 0x20, DEF_STR( \"Off\") );\n\t\tPORT_DIPSETTING( 0x00, DEF_STR( \"On\") );\n\t\tPORT_DIPNAME( 0x40, 0x40, DEF_STR( \"Unknown\") );\n\t\tPORT_DIPSETTING( 0x40, DEF_STR( \"Off\") );\n\t\tPORT_DIPSETTING( 0x00, DEF_STR( \"On\") );\n\t\tPORT_DIPNAME( 0x80, 0x00, DEF_STR( \"Demo_Sounds\") );\n\t\tPORT_DIPSETTING( 0x80, DEF_STR( \"Off\") );\n\t\tPORT_DIPSETTING( 0x00, DEF_STR( \"On\") );\n\t\n\t\tPORT_START(); \t/* (2) PORT 0 */\n\t\tPORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNUSED );\t// DRAW BUSY\n\t\tPORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_UNUSED );\t//\n\t\tPORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_SERVICE3 );\t// MEMORY RESET\n\t\tPORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_SERVICE2 );\t// ANALYZER\n\t\tPORT_SERVICE( 0x10, IP_ACTIVE_LOW );\t\t// TEST\n\t\tPORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_COIN1 );\t// COIN1\n\t\tPORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_START3 );\t// CREDIT CLEAR\n\t\tPORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNUSED );\t// OPTION (?)\n\t\n\t\tNBMJCTRL_PORT1\t/* (3) PORT 1-1 */\n\t\tNBMJCTRL_PORT2\t/* (4) PORT 1-2 */\n\t\tNBMJCTRL_PORT3\t/* (5) PORT 1-3 */\n\t\tNBMJCTRL_PORT4\t/* (6) PORT 1-4 */\n\t\tNBMJCTRL_PORT5\t/* (7) PORT 1-5 */\n\tINPUT_PORTS_END(); }", "title": "" }, { "docid": "6c4c7dcc3fd43fd0698aba31ca32fb07", "score": "0.5291127", "text": "public final void declare() {\n super.declare();\r\n\r\n //daca e runda para adauga bun ilegal:\r\n if ((nrRundaComerciant % 2 == 0) && (this.getAssetsDeclared().size() < MAXCARDS)) {\r\n\r\n List<Integer> assetsInHand = this.getAssetsInHand();\r\n List<Integer> assetsDeclared = this.getAssetsDeclared();\r\n GoodsType goodsType = new GoodsType();\r\n int type = -1;\r\n for (int i:assetsInHand) {\r\n if (i > LEGALLIMIT) {\r\n if (type < 0) {\r\n type = i;\r\n } else if (goodsType.getProfit(i) > goodsType.getProfit(type)) {\r\n type = i;\r\n }\r\n }\r\n }\r\n if (type > 0) {\r\n assetsDeclared.add(type);\r\n assetsInHand.remove(assetsInHand.indexOf(type));\r\n }\r\n setAssetsDeclared(assetsDeclared);\r\n setAssetsInHand(assetsInHand);\r\n\r\n }\r\n nrRundaComerciant++;\r\n }", "title": "" }, { "docid": "d29d0f28ab15513a01b790addd4d5201", "score": "0.527959", "text": "void mo39273k();", "title": "" }, { "docid": "baf3d42ee885f80d97ef3f99d4e18c7a", "score": "0.52755624", "text": "void generateDesign();", "title": "" }, { "docid": "e9a332d1ab199b65a095057655a4546b", "score": "0.5270968", "text": "public final void mo101778j() {\n String str;\n String str2 = \"click_preview_entrance\";\n C22984d a = C22984d.m75611a().mo59973a(\"creation_id\", this.f107218p.creationId).mo59973a(\"enter_from\", \"video_post_page\").mo59973a(\"shoot_way\", this.f107218p.mShootWay).mo59973a(\"shoot_entrance\", mo101779k()).mo59973a(\"content_source\", m131458b(this.f107218p));\n String str3 = \"content_type\";\n if (this.f107218p.isMvThemeVideoType()) {\n str = \"mv\";\n } else {\n str = \"video\";\n }\n C6907h.m21524a(str2, (Map) a.mo59973a(str3, str).mo59973a(\"route\", \"1\").f60753a);\n }", "title": "" }, { "docid": "95779cb19671ef44a2ce9d7596444860", "score": "0.5248071", "text": "public AircraftFactory() {\n\t\tsuper();\n\t}", "title": "" }, { "docid": "dc9579f69d4d05f60e745cd28f1b25f0", "score": "0.52413183", "text": "public Aircraft getAircraft();", "title": "" }, { "docid": "58f4e51c0901c21c0cdbcc0fb5651245", "score": "0.5234412", "text": "@Override\n\tpublic void DesignWindows() {\n\t\tSystem.out.println(\"Design Windows for concrete house\");\n\t}", "title": "" }, { "docid": "2d0e84f9d325e91e27364f68cb9bb066", "score": "0.52226645", "text": "@KmlElement(type={KmlElementType.TRANSITION})\r\n void displayspeed___calcdist___6(){\r\ndisplay(\"Vehicle \" + owner.getVname() + \" gets pilotspeed\" + getPspeed());;\r\n}", "title": "" }, { "docid": "6e4f558c8a2720b5e975613c6384f951", "score": "0.52177954", "text": "public void mo1148d() {\n }", "title": "" }, { "docid": "0885a590a68b8bee4c840de47e6e2402", "score": "0.52156484", "text": "void mo5350k();", "title": "" }, { "docid": "2e6b6833b3a6e4a9e8c66c78b67206c2", "score": "0.52128077", "text": "public String getDesignation() \n\t // in this method the private member designation is converted into public\n\t {\n return designation; // step 7 - show output and go to step 8 in main method.\n\t }", "title": "" }, { "docid": "3a941717452a4c52a5e6d538f334bd81", "score": "0.5212597", "text": "private String m4280d() {\n int i = 1;\n try {\n if (C0618g.f1647r != null) {\n StringBuilder sb = new StringBuilder();\n sb.append(new SimpleDateFormat(\"yyyy-MM-dd HH:mm:ss\", Locale.getDefault()).format(new Date(C1116e.m4607k())));\n sb.append(\"|\");\n sb.append(C0618g.f1647r);\n sb.append(\"|\");\n if (C0618g.f1602a != null) {\n sb.append(C0618g.f1602a);\n }\n sb.append(\"|\");\n sb.append(\"ANDROID\");\n sb.append(\"|\");\n m4277a(sb);\n sb.append(\"|\");\n int d = C1129r.m4643d(0, C1069c.f2824a);\n int d2 = C1129r.m4643d(1, C1069c.f2824a);\n m4278a(sb, d, d2);\n sb.append(\"|\");\n if (C0618g.f1653x != null) {\n sb.append(C0618g.f1653x);\n }\n sb.append(\"|\");\n if (C1069c.f2839p != null) {\n sb.append(C1069c.f2839p);\n }\n sb.append(\"|\");\n if (C1069c.f2840q != null) {\n sb.append(C1069c.f2840q);\n }\n sb.append(\"||\");\n String a = C1116e.m4562a();\n if (!TextUtils.isEmpty(a)) {\n sb.append(a);\n }\n sb.append(\"|\");\n sb.append(\"|\");\n if (C0618g.f1634e != null) {\n sb.append(C0618g.f1634e);\n }\n sb.append(\"|\");\n if (Build.BRAND != null) {\n sb.append(Build.BRAND);\n }\n sb.append(\"|\");\n sb.append(C1116e.m4606j());\n sb.append(\"|\");\n if (Build.MODEL != null) {\n sb.append(Build.MODEL);\n }\n sb.append(\"|\");\n sb.append(\"|||\");\n if (!C1116e.m4602h()) {\n i = 0;\n }\n sb.append(i);\n sb.append(\"|\");\n sb.append(\"|\");\n String f = m4282f();\n if (!TextUtils.isEmpty(f)) {\n sb.append(f);\n }\n sb.append(\"|\");\n sb.append(C1116e.m4604i(C1069c.f2824a));\n sb.append(\"|\");\n String i2 = m4285i();\n if (TextUtils.isEmpty(i2)) {\n i2 = \"\";\n }\n sb.append(i2);\n sb.append(\"|\");\n m4279b(sb, d, d2);\n sb.append(\"|\");\n sb.append(m4283g());\n sb.append(\"|\");\n sb.append(m4284h());\n sb.append(\"|\");\n String n = C1116e.m4610n();\n if (!TextUtils.isEmpty(n)) {\n sb.append(n);\n }\n sb.append(\"|\");\n try {\n LinkedHashMap<Long, Long> m = C1116e.m4609m();\n if (m != null && m.size() > 0) {\n for (Map.Entry<Long, Long> entry : m.entrySet()) {\n sb.append(entry.getKey());\n sb.append(MiPushClient.ACCEPT_TIME_SEPARATOR);\n sb.append(entry.getValue());\n sb.append(MqttTopic.MULTI_LEVEL_WILDCARD);\n }\n if (sb.toString().endsWith(MqttTopic.MULTI_LEVEL_WILDCARD)) {\n sb.deleteCharAt(sb.length() - 1);\n }\n }\n } catch (Throwable th) {\n C1115d.m4558a(th);\n }\n sb.append(\"|\");\n String e = m4281e();\n if (!TextUtils.isEmpty(e)) {\n sb.append(e);\n }\n sb.append(\"|\");\n String b = C1116e.m4576b(C1069c.f2824a).mo5779b();\n if (!TextUtils.isEmpty(b)) {\n sb.append(b);\n }\n return sb.toString();\n }\n } catch (Throwable th2) {\n C1115d.m4558a(th2);\n }\n return null;\n }", "title": "" }, { "docid": "b70685a2b271009a2afc73e8a415108a", "score": "0.521223", "text": "public String getName()\r\n/* 36: */ {\r\n/* 37:30 */ return AAType.WASF.description();\r\n/* 38: */ }", "title": "" }, { "docid": "a6336da33c093711343b63242fae8065", "score": "0.5203399", "text": "void mo91800a();", "title": "" }, { "docid": "43658b723c78bf82233975b47fe67ab7", "score": "0.51992553", "text": "public void implementSkyscraperApp() {\n\t\tSystem.out.println(\"enter the total no of floors in the building\");\r\n\t\tnoOfFloors = scanner.nextInt();\r\n\r\n\t\t// initialize the floorSizePerDay array\r\n\t\tfloorSizePerDay = new int[noOfFloors];\r\n\r\n\t\t// get the size of the floor per day\r\n\t\tgetFloorSizePerDay();\r\n\t\tscanner.close();\r\n\r\n\t\t// store the size of floor per day in ascending order\r\n\t\tstoreFloorSizeInAscOrder();\r\n\r\n\t\t// store the size of floors in a stack so that I can get the largest floor when\r\n\t\t// needed\r\n\t\tstoreFloorSizeInStack();\r\n\r\n\t\t// run the algorithm to display the size of floors in each day\r\n\t\tdisplayFloorsToBeConstructed();\r\n\t}", "title": "" }, { "docid": "33d5893b6a6d2bbcc4f1ccb33483a918", "score": "0.5197813", "text": "public void mo5302k() {\n }", "title": "" }, { "docid": "29dea6a1dedc7c91ea1ca243ed1bdd9f", "score": "0.5196467", "text": "public static void main(String[] args) {\n Dimensions dimensions = new Dimensions(20,20,5);\r\n\r\n Case theCase = new Case(\"220B\",\"Dell\",\"240\", dimensions);\r\n\r\n Monitor theMonitor = new Monitor(\"27inch Beast\", \"Acer\", 27, new Resolution(25400,1400));\r\n\r\n Motherboard theMotherBoard = new Motherboard(\"BJ-200\",\"Asus\",4, 6,\"v2.44\");\r\n\r\n //instance of PC class\r\n PC thePC = new PC(theCase,theMonitor,theMotherBoard);\r\n\r\n // power up and draw logo\r\n thePC.powerUp();\r\n\r\n// //draw pixel on thePC\r\n// thePC.getMonitor().drawPixelAt(3,3,\"Red\");\r\n//\r\n// //load program on PC\r\n// thePC.getMotherboard().loadProgram(\"Windows 10.2\");\r\n//\r\n// //press power button of thePC\r\n// thePC.getTheCase().pressPowerButton();\r\n\r\n //Challenge\r\n // Create a single room of a house using composition.\r\n // Think about the things that should be included in the room.\r\n // Maybe physical parts of the house but furniture as well\r\n // Add at least one method to access an object via a getter and\r\n // then that objects public method as you saw in the previous video\r\n // then add at least one method to hide the object e.g. not using a getter\r\n // but to access the object used in composition within the main class\r\n // like you saw in this video.\r\n\r\n //Solution\r\n\r\n Wall wall1 = new Wall(\"West\");\r\n Wall wall2 = new Wall(\"East\");\r\n Wall wall3 = new Wall(\"South\");\r\n Wall wall4 = new Wall(\"North\");\r\n\r\n Ceiling ceiling = new Ceiling(12,55);\r\n\r\n Bed bed = new Bed(\"Modern\",4,3,2,1);\r\n\r\n Lamp lamp = new Lamp(\"Classic\",false,75);\r\n\r\n Bedroom bedroom = new Bedroom(\"Jimmy's Bedroom\", wall1,wall2,wall3,wall4,ceiling,bed,lamp);\r\n bedroom.makeBed();\r\n\r\n bedroom.getLamp().turnOn();\r\n\r\n }", "title": "" }, { "docid": "cff7a647003e2599e39a62ff65f0b272", "score": "0.51902705", "text": "public int mo3114k() {\n return 0;\n }", "title": "" }, { "docid": "a27e97757e15f71bb922312040f39c4b", "score": "0.51893574", "text": "public void m6824a() {\n }", "title": "" }, { "docid": "13491df3dc186ba0e088923befa37239", "score": "0.51859766", "text": "private static void m221w() {\n f313a = new HashMap<>();\n f313a.put(\"in\", 0);\n f313a.put(\"all\", 0);\n f313a.put(\"aspa\", 2592000L);\n f313a.put(\"un\", 0);\n f313a.put(\"rt\", 0);\n f313a.put(\"rtsr\", 300000);\n f313a.put(\"mi\", 0);\n f313a.put(\"ext\", 0);\n f313a.put(\"bs\", 0);\n f313a.put(\"bsgap\", 86400);\n f313a.put(\"di\", 0);\n f313a.put(\"l\", 0);\n f313a.put(\"lgap\", 86400);\n f313a.put(\"wi\", 0);\n f313a.put(\"adle\", 172800);\n f313a.put(\"rtgap\", 86400);\n }", "title": "" }, { "docid": "8157276f026bc811da8c2e2849a60099", "score": "0.518446", "text": "public void getAir(double mach, double gam, double area, double pres, double temp) {\n double fac1, fac2,gm1,gp1 ;\n\n gm1 = gam -1.0 ;\n gp1 = gam +1.0 ;\n\n fac1 = 1.0 + .5 * gm1 * mach * mach ;\n fac2 = gp1 / (2.0 * gm1) ;\n mflow = area * pres * Math.sqrt(gam/(rgas * temp)) * \n mach * Math.pow(fac1,-fac2) ;\n wflow = mflow * gc ;\n \n return ; \n }", "title": "" }, { "docid": "ec87607629f2598a09e2283eb897dc95", "score": "0.5181564", "text": "@Override\r\n\tpublic String toString() {\r\n\t\treturn \"Airplane: \"+getModel()+\"\\n\\tMiles Flown: \"+getMilesFlown()+\". Fuel Used: \"+getGallonsOfFuel()+\r\n\t\t\t\t\" gallons.\\n\\tFuel efficiency: \"+getMilesPerGallon()+ \" mpg.\";\r\n\t}", "title": "" }, { "docid": "db6adf52deb87c2723f80c6df873c47d", "score": "0.51789993", "text": "public void mo4741aD() {\n }", "title": "" }, { "docid": "37903fa6e3263a3dd777b34927103aa9", "score": "0.51668304", "text": "public IDEA()\n\t{\n\t\tthis.z = new short[56];\n\t\tthis.y = new short[56];\n\t\tthis.zIndex = 0;\n\t\tthis.yIndex = 0;\n\t\tencrypting = true;\n\t}", "title": "" }, { "docid": "ac219a1bc5c00024e5d7e784d438cae9", "score": "0.5153686", "text": "public AirField() {\n\t\tjets = readNames();\n\t}", "title": "" }, { "docid": "561d379b4057f6ae0d141423d604c5d7", "score": "0.5152784", "text": "@Override\n\tpublic int createTheatre() {\n\t\treturn 0;\n\t}", "title": "" }, { "docid": "95645dcb7a4535306b5e74fd19bee457", "score": "0.5135311", "text": "private void m17564a() {\n this.f16114p = new C4307e(this.f16056a, this.contentView);\n this.f16113o = this.f16114p.mo11982a((int) R.id.e2i).mo11978a(\"data_pk_steal_tower_score\", new C5641cl(this)).mo11979a();\n }", "title": "" }, { "docid": "e47a3a99e88866759c250d0db73f3302", "score": "0.51177996", "text": "public void airmanAtk2(){\n setImage(\"airmanFiring.png\");\n //resize image\n GreenfootImage image = getImage();\n double scaleFactor = 3.0;\n int x = (int) (image.getWidth() * scaleFactor);\n int y = (int) (image.getHeight() * scaleFactor);\n image.scale(x, y);\n setImage(image);\n //spawn attack\n AirmanAtk2 airmanAtk2 = new AirmanAtk2();\n getWorld().addObject(airmanAtk2, getX() -50, getY() - 22);\n }", "title": "" }, { "docid": "cdc2794673bb7d45a155caa60e297217", "score": "0.51153713", "text": "public DefendAir() {\n }", "title": "" }, { "docid": "ae3d371d5db199695a4c3f9bd2b5c2e5", "score": "0.51149064", "text": "void mo39270h();", "title": "" }, { "docid": "74acf90efa52ac7bee2d28c6dee180bf", "score": "0.51125956", "text": "public void mo25302P() {\n }", "title": "" }, { "docid": "2112bfe5037ec91ed059ccf634f5c0a6", "score": "0.5112515", "text": "public void ambilStruk(){\n\t}", "title": "" }, { "docid": "260e76259bb68aea1cbc1d3cfb6b37eb", "score": "0.51113725", "text": "private void m17568c() {\n LayoutParams layoutParams;\n LayoutParams layoutParams2;\n int i;\n int i2;\n this.f16109k.setVisibility(8);\n this.f16108j.setBackgroundResource(R.drawable.btb);\n m17565a((View) this.f16113o.f12507a, true);\n m17565a(this.f16107i, true);\n m17565a(this.f16106h, true);\n boolean z = this.f16056a.f11663E.f11691b;\n View view = this.f16106h;\n if (z) {\n layoutParams = this.f16110l;\n } else {\n layoutParams = this.f16111m;\n }\n view.setLayoutParams(layoutParams);\n View view2 = this.f16107i;\n if (z) {\n layoutParams2 = this.f16111m;\n } else {\n layoutParams2 = this.f16110l;\n }\n view2.setLayoutParams(layoutParams2);\n switch (this.f16056a.f11663E.f11696g) {\n case 1:\n i2 = R.string.ewt;\n if (!this.f16103e) {\n i = R.string.ewx;\n break;\n } else {\n i = R.string.ewu;\n break;\n }\n case 2:\n i2 = R.string.ex0;\n if (!this.f16103e) {\n i = R.string.ewy;\n break;\n } else {\n i = R.string.ewv;\n break;\n }\n default:\n i2 = R.string.ex2;\n if (!this.f16103e) {\n i = R.string.ewz;\n break;\n } else {\n i = R.string.eww;\n break;\n }\n }\n C9049ap.m27022a(i2);\n this.f16104f.mo12642a(C3358ac.m12515a(i));\n }", "title": "" }, { "docid": "f2b41c11a2e411a92f02e16b7622369b", "score": "0.5101332", "text": "private void displayAirportName() {\n\t\t// Update GUI in EDT.\n\t\tSwingUtilities.invokeLater(new Runnable() {\n\t\t\t@Override\n\t\t\tpublic void run() {\n\t\t\t\t// Sets the airport name on screen.\n\t\t\t\tview.getFrame().setAirportName(model.getAirport().getName());\n\t\t\t}\n\t\t});\n\t}", "title": "" }, { "docid": "03a65b5d148e099563d244322cc5724d", "score": "0.5093172", "text": "public void displayAppts() {\r\n\t\t\r\n\t}", "title": "" }, { "docid": "e12a3b0f0c308a3d18df433e6594f028", "score": "0.5092797", "text": "public void mo16335z() {\n }", "title": "" }, { "docid": "38d5fdb185b8c36e5592fa6614d4f119", "score": "0.5090296", "text": "protected abstract void _appliance();", "title": "" }, { "docid": "fb2bd0bd3615c8f3b0b29b6d35369e10", "score": "0.508703", "text": "protected void bhtp0010CaplicDatas() {\n }", "title": "" }, { "docid": "601bc188561fc59092618e66ec2bd9cb", "score": "0.50858724", "text": "public void mo56529a(Forecast forecast) {\n C32569u.m150519b(forecast, C6969H.m41409d(\"G6D82C11B\"));\n ((ZHDraweeView) this.f100181a.findViewById(R.id.cover)).setImageURI(forecast.getCoverImage());\n TextView textView = (TextView) this.f100181a.findViewById(R.id.time);\n if (textView != null) {\n StringBuilder sb = new StringBuilder();\n Context O = mo108898O();\n TimeUnit timeUnit = TimeUnit.MILLISECONDS;\n Long startAt = forecast.getStartAt();\n long j = 0;\n sb.append(TimeFormatUtils.m84440b(O, timeUnit.toSeconds(startAt != null ? startAt.longValue() : 0)));\n sb.append((char) 65292);\n C30006v vVar = C30006v.f101647b;\n Long startAt2 = forecast.getStartAt();\n if (startAt2 != null) {\n j = startAt2.longValue();\n }\n sb.append(vVar.mo122109c(j));\n sb.append(' ');\n textView.setText(sb.toString());\n }\n TextView textView2 = (TextView) this.f100181a.findViewById(R.id.title);\n C32569u.m150513a((Object) textView2, C6969H.m41409d(\"G7F8AD00DF124A23DEA0B\"));\n textView2.setText(forecast.getTheme());\n Theater theater = forecast.getTheater();\n if (theater != null) {\n boolean isOwner = theater.isOwner();\n ImageView imageView = (ImageView) this.f100181a.findViewById(R.id.close_prevue);\n C32569u.m150513a((Object) imageView, C6969H.m41409d(\"G7F8AD00DF133A726F50BAF58E0E0D5C26C\"));\n imageView.setVisibility(isOwner ? 0 : 8);\n }\n if (this.itemView instanceof ZUIConstraintLayout) {\n ZUIZACardShowImpl a = ((ZUIConstraintLayout) this.itemView).getZuiZaCardShowImpl().mo123417a(C31382e.EnumC31385c.Drama);\n String id = forecast.getId();\n if (id == null) {\n id = \"\";\n }\n a.mo123419a(id).mo123416a(getAdapterPosition()).mo123426d();\n View view = this.itemView;\n String id2 = forecast.getId();\n if (id2 == null) {\n id2 = \"\";\n }\n view.setTag(R.id.widget_swipe_cardshow_id, id2);\n ZUIZAEventImpl a2 = ((ZUIConstraintLayout) this.itemView).getZuiZaEventImpl().mo123435a(C31387f.EnumC31390c.Card);\n String id3 = forecast.getId();\n if (id3 == null) {\n id3 = \"\";\n }\n a2.mo123438b(id3).mo123432a(getAdapterPosition()).mo123433a(C31368a.EnumC31371c.OpenUrl).mo123443d();\n }\n }", "title": "" }, { "docid": "5dfcfcb3257af83331258ef346f4a29b", "score": "0.5084988", "text": "private void displayEnergyAndPath()\r\n {\r\n\r\n }", "title": "" }, { "docid": "0ed906788e8c0896aaf1c60437d95f50", "score": "0.5084512", "text": "View mo5339d();", "title": "" }, { "docid": "1baa7ff159c8530b5feb0e4098175692", "score": "0.50826836", "text": "private void displayEquipment() {\n int displayType;\n displayType = this.view.askDisplayType(\n Arrays.asList(TOTAL, AVAILABLE, BORROWED, BY_TYPE, BY_STORAGE_AREA, BY_PURCHASE_DATE),\n \"1 - Total\\n2 - Available\\n3 - Borrowed\\n4 - By type\\n5 - By storage area\\n6 - By purchase date\");\n\n if (displayType == TOTAL) {\n this.view.printHashMap(applicationData.getEquipmentEntities());\n\n } else if (displayType == AVAILABLE) {\n this.view.printHashMap(EquipmentRepository.getAvailableEquipment());\n\n } else if (displayType == BORROWED) {\n displayType = this.view.askDisplayType(\n Arrays.asList(TOTAL, BY_USER),\n \"1 - Display all borrowings\\n2 - Display borrowings by user\");\n\n if (displayType == TOTAL) {\n this.view.printHashMap(EquipmentRepository.getBorrowedEquipment());\n\n } else if (displayType == BY_USER) {\n this.view.printHashMap(applicationData.getUserEntities());\n int borrowerId = this.view.askPositiveInt(\"Id of the borrower ? > \");\n\n if (UserRepository.userExists(borrowerId)) {\n this.view.printHashMap(BorrowingRepository.getBorrowingsByUserId(borrowerId));\n } else {\n this.view.display(NONEXISTENT_ID);\n }\n }\n\n } else if (displayType == BY_TYPE) {\n int equipmentType = this.view.askEquipmentType();\n\n if (Arrays.asList(GAME_CONTROLLER, HEADSET, MOUSE, PHONE, TABLET, VR_CONTROLLER, VR_HEADSET, WEBCAM, MOTION_SENSOR).contains(equipmentType)) {\n this.view.printHashMap(EquipmentRepository.getEquipment(equipmentType));\n } else {\n this.view.display(\"Equipment type not recognized\");\n }\n\n } else if (displayType == BY_STORAGE_AREA) {\n this.view.printHashMap(applicationData.getStorageEntities());\n int storageAreaId = this.view.askPositiveInt(\"Id of the storage area ? > \");\n\n if (StorageRepository.storageAreaExists(storageAreaId)) {\n this.view.printHashMap(EquipmentRepository.getEquipmentByStorageAreaId(storageAreaId));\n } else {\n this.view.display(NONEXISTENT_ID);\n }\n\n } else if (displayType == BY_PURCHASE_DATE) {\n int numberOfYears = this.view.askPositiveInt(\"Enter the number of years > \");\n if (numberOfYears > 0) {\n this.view.printHashMap(EquipmentRepository.getEquipmentByNumberOfYears(numberOfYears));\n } else {\n this.view.display(\"Incorrect number of years.\");\n }\n }\n }", "title": "" }, { "docid": "e1d375b68c65a8a61af166f417fe0bc1", "score": "0.50811225", "text": "public void mo16320n() {\n }", "title": "" }, { "docid": "0c441516e7ff2235862e3f5b390e8d88", "score": "0.5077525", "text": "public PassengerAircraft(){\n \n super(VEHICLE_IS);\n setCapacity();\n setSpeed();\n \n }", "title": "" }, { "docid": "10b47c1d9c2d49ebabc3439220fcc841", "score": "0.50743955", "text": "void mo24770RE();", "title": "" }, { "docid": "afa324b12f983846c1a310085e6c5492", "score": "0.5070701", "text": "public void mo122183c() {\n m139840a(C6969H.m41409d(\"G6693D0149B39B92CE51A9C51\"));\n this.f101712o = true;\n requestLayout();\n }", "title": "" }, { "docid": "16dbf3bac5442269807e3f7dde7c0944", "score": "0.50664276", "text": "void attackedByArcher(ArcherUnit AU);", "title": "" }, { "docid": "73b983957bbab8efdc22a60b1eec2909", "score": "0.50648767", "text": "private final void m66172g() {\n ViewGroup downstairLayout = getDownstairLayout();\n ViewGroup downstairLayout2 = getDownstairLayout();\n C32569u.m150513a((Object) downstairLayout2, C6969H.m41409d(\"G6D8CC214AC24AA20F4229151FDF0D7\"));\n int paddingLeft = downstairLayout2.getPaddingLeft();\n ViewGroup downstairLayout3 = getDownstairLayout();\n C32569u.m150513a((Object) downstairLayout3, C6969H.m41409d(\"G6D8CC214AC24AA20F4229151FDF0D7\"));\n int paddingTop = downstairLayout3.getPaddingTop();\n ViewGroup downstairLayout4 = getDownstairLayout();\n C32569u.m150513a((Object) downstairLayout4, C6969H.m41409d(\"G6D8CC214AC24AA20F4229151FDF0D7\"));\n int paddingRight = downstairLayout4.getPaddingRight();\n ViewGroup downstairLayout5 = getDownstairLayout();\n C32569u.m150513a((Object) downstairLayout5, C6969H.m41409d(\"G6D8CC214AC24AA20F4229151FDF0D7\"));\n downstairLayout.setPadding(paddingLeft, paddingTop, paddingRight, downstairLayout5.getPaddingBottom());\n setScrollY(this.f46910c);\n this.f46917j = getScrollY();\n }", "title": "" }, { "docid": "3bb3a8d0e6ad731c94d3e912127712da", "score": "0.5061413", "text": "public static void main(String[] args) {\n Dimensions dimensions = new Dimensions(20, 20, 5);\n Case theCase = new Case(\"220B\", \"Dell\", \"240\", dimensions);\n\n Monitor monitor = new Monitor(\"27inch Beast\", \"Acer\", 27, new Resolution(2540, 1440));\n\n Motherboard motherboard = new Motherboard(\"BJ-200\", \"Asus\", 4, 6, \"v2.44\");\n\n PC pc = new PC(theCase, monitor, motherboard);\n\n //COMPOSITION conspect ... ask question : IS x HAS a .... ???\n\n// pc.getMonitor().drawPixelAt(100, 32, \"RED\"); // Acces methods from composition\n// pc.getMotherboard().loadProgram(\"Windows 1.0\");\n// pc.getTheCase().pressPowerButton();\n\n pc.powerUp();\n }", "title": "" }, { "docid": "f13352ef79ae31da0d872614ba7063a6", "score": "0.50610656", "text": "public abstract void updateDesign();", "title": "" }, { "docid": "b4f65a9921fa65af7fd6bcd7adc680b2", "score": "0.5060228", "text": "public Landmark(String name, int cost, Color color, Color_ab color_ab, Icon icon, Icon_ab icon_ab,String description) {\n super(name,cost, color, icon, description);\n this.color_ab = color_ab;\n this.icon_ab = icon_ab;\n //System.out.println(\"Team Beast\");\n }", "title": "" }, { "docid": "be0b5d8eb5bae7f89a9d4f8506f2f4be", "score": "0.5059682", "text": "@Override\n\tpublic void DesignFurnishing() {\n\t\tSystem.out.println(\"Furnishing concrete house\");\n\t}", "title": "" }, { "docid": "351fe4c1967fb9f39ddf6176ae69f5fb", "score": "0.50586337", "text": "@Override\n\tpublic void evolutionType() {\n\t\tSystem.out.println();\n\t\tSystem.out.println(\"Level: a launchpad for the spores.\");\n\t\tSystem.out.println(\"Tools: Platforms to help the spores to get caught by the passing wind.\\n \");\n\t}", "title": "" }, { "docid": "ec5597b36ab069e915da826434ec7822", "score": "0.5058439", "text": "public String quickDesignation() {\n\t\tif (name != \"\") {\n\t\t\treturn name;\n\t\t}\n\t\tif (group != \"\") {\n\t\t\treturn group;\n\t\t}\n\t\telse {\n\t\t\treturn \"Vacent\";\n\t\t}\n\t}", "title": "" }, { "docid": "dcd11789f4bf33a587891665d766b7f1", "score": "0.5050641", "text": "public final int mo8878a() {\n VideoWidget2.this.f9511g.mo9706a();\n return 1;\n }", "title": "" }, { "docid": "6cd1cd60b2dd6c66546127e96cb486c8", "score": "0.50492185", "text": "@Override\n public String toString() {\n return \"Airplane{\" +\n \"manufacturer='\" + manufacturer + '\\'' +\n \", model='\" + model + '\\'' +\n \", firstSeats=\" + firstSeats +\n \", coachSeats=\" + coachSeats +\n '}';\n }", "title": "" }, { "docid": "71924fbfba3b88a1e301938cb8f79fcc", "score": "0.50470316", "text": "public void designing() {\n\t\tSystem.out.println(\"to do desinging\");\r\n\t}", "title": "" }, { "docid": "03d7171196199db238d56b8aeab47987", "score": "0.5045207", "text": "private void welcom() {\n\n\t}", "title": "" }, { "docid": "ee42d6d0852017069993f2bf370f8689", "score": "0.5045175", "text": "@Override\n\tpublic void DesignDoors() {\n\t\tSystem.out.println(\"Design Doors for concrete house\");\n\t}", "title": "" }, { "docid": "f79fbe94fe5b318f5b9e5a4add93bcd1", "score": "0.5042254", "text": "private int einleseFunktion() {\n System.out.println(\"--------- Artikel Konfiguration ---------\");\n System.out.print(\n ANLEGEN + \": Artikel anlegen; \" + ZUGANGBUCHEN + \": Bestand des artikels erhöhen; \" + ABGANGBUCHEN\n + \": Bestand des Artikels verringern; \" + ARTIKELARTNEUSETZEN + \": Artikelart neu setzen; \"\n + ARTIKELINFOS + \": Artikelinformationen erhalten; \" + ENDE + \": beenden -> \");\n return input.nextInt();\n }", "title": "" }, { "docid": "83b78dec55a00a32b6e31b68df49f888", "score": "0.50419766", "text": "private void m61784z() {\n RankFeedContent rankFeedContent = ((RankFeedVideo) mo108896M()).target;\n TextTagArea textTagArea = rankFeedContent != null ? rankFeedContent.textTagArea : null;\n if (textTagArea != null && !TextUtils.isEmpty(textTagArea.text) && !TextUtils.isEmpty(textTagArea.fontColor) && !TextUtils.isEmpty(textTagArea.background)) {\n this.f43936i.f67334F.setVisibility(0);\n RankFeedViewTotalHolder.m61749a(this.itemView, ((RankFeedVideo) mo108896M()).cardId);\n this.f43936i.f67334F.setText(textTagArea.text);\n this.f43936i.f67334F.setTextColorRes(ColorUtil.m62549a(mo108898O(), textTagArea.fontColor));\n new Slice(this.f43936i.f67334F).mo129414b(3.0f).mo129411a(0.0f).mo129412a(ColorUtil.m62547a(mo108903c(ColorUtil.m62549a(mo108898O(), textTagArea.background)), 0.1f));\n }\n }", "title": "" }, { "docid": "d98b6495187c198cfdb7293a499ea5c7", "score": "0.5040048", "text": "public static void main(String[] args) {\n\t\tJet airplane = new Jet(\"C-17\", 515, 2420, 218000000);\n\t\tJet airplane2 = new Jet(\"F-22\", 1500, 1840, 150000000);\n\t\tJet airplane3 = new Jet(\"A-10\", 518, 2580, 18800000);\n\t\tJet airplane4 = new Jet(\"C-130\", 366, 2360, 30100000);\n\t\tJet airplane5 = new Jet(\"C-5\", 571, 2760, 100370000);\n\t\t\n\t\tJet listOfJets[] = { airplane, airplane2, airplane3, airplane4, airplane5 };\n\n\t\tint option;\n\t\twhile (true) {\n\t\t\tSystem.out.println(\"AIRCRAFT INVENTORY MENU\");\n\t\t\tSystem.out.println(\"***Select an option:***\");\n\t\t\tSystem.out.println(\"1. List of aircraft\");\n\t\t\tSystem.out.println(\"2. Top speed aircraft\");\n\t\t\tSystem.out.println(\"3. Longest range aircraft\");\n\t\t\tSystem.out.println(\"4. Add additional aircraft\");\n\t\t\tSystem.out.println(\"5. QUIT\");\n\t\t\tSystem.out.println(\"-----------------------\");\n\t\t\toption = airmanSnuffy.nextInt();\n\t\t\tif (option == 1) {\n\t\t\t\tSystem.out.println(\"***CURRENT INVENTORY:***\");\n\t\t\t\tfor (int i = 0; i < listOfJets.length; i++) {\n\t\t\t\t\tSystem.out.println(listOfJets[i]);\n\t\t\t\t}\n\t\t\t\tSystem.out.println();\n\t\t\t\t// for (int i = 0; i < listOfJets.length; i++) {\n\t\t\t\t// System.out.println(listOfJets[i]);\n\t\t\t}\n\t\t\tif (option == 2) {\n\t\t\t\tSystem.out.println(\"Aircraft with the fastest speed:\");\n\t\t\t\tSystem.out.println(findFastest(listOfJets)+ \"\\n\");\n\n\t\t\t}\n\t\t\tif (option == 3) {\n\t\t\t\t\n\t\t\t\tSystem.out.println(\"Aircraft with the longest range:\");\n\t\t\t\tSystem.out.println(findMostRange(listOfJets)+ \"\\n\");\n\t\t\t}\n\n\t\t\tif (option == 4) {\n\t\t\t\tlistOfJets = addNewJet(listOfJets);\n\n\t\t\t}\n\n\t\t\tif (option == 5) {\n\t\t\t\tSystem.out.println(\"***EXITED INVENTORY***\");\n\t\t\t\tSystem.exit(option);\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "4af823a4f239da77a8d64e4d9495a543", "score": "0.50383615", "text": "public abstract void mo5569a(C0863gw c0863gw);", "title": "" }, { "docid": "4e4b06d415f6660ab5771d5bcbe26328", "score": "0.50322944", "text": "private void bm25() {\n \t\t\n \t}", "title": "" }, { "docid": "26e64c4148766a089307a23c18c4f27e", "score": "0.5031694", "text": "@Override\n\tpublic String getDescription() {\n\t\treturn \"Aquesta habilitat s'aplica als arcs. Utilitza shift + m_wheel per canviar entre modes amb l'arc a la ma. Els modes: \" + getModeList();\n\t}", "title": "" }, { "docid": "b377d1bdc6db707a5516f73723302ec0", "score": "0.50246197", "text": "public static void seletorZona() {\n\t\tSystem.out.println(\"************************************\");\n\t\tSystem.out.println(\"** MAQUINA ANDANTE **\");\n\t\tSystem.out.println(\"************************************\");\n\t\tSystem.out.println(\"** 01) Z2 Z7 (06 **\");\n\t\tSystem.out.println(\"** 02) Z3 Z8 (07 **\");\n\t\tSystem.out.println(\"** 03) Z4 Z9 (08 **\");\n\t\tSystem.out.println(\"** 04) Z5 Z10 (09 **\");\n\t\tSystem.out.println(\"** 05) Z6 Z11 (10 **\");\n\t\tSystem.out.println(\"************************************\");\n\t\tSystem.out.print(\"Escolha zona : \");\n\t}", "title": "" }, { "docid": "c733fd0308d443c91341f6492fa684f4", "score": "0.5023996", "text": "AlienFormation alienFormation();", "title": "" }, { "docid": "73debddf63a2cb8fee2cef5fdc074de2", "score": "0.5022608", "text": "private void goSlaapkamer2()\n {\n if((currentRoom == slaapkamer) && (checkInventory(\"hamer\"))){\n currentRoom = opbergkast;\n System.out.println(currentRoom.getLongDescription());\n }\n else {\n System.out.println(\"Er is nergens een deur te bekennen... De muren van het huis zijn oud...\");\n }\n }", "title": "" }, { "docid": "041e45b6081101fb1b8ca3b7ca2b2328", "score": "0.5022044", "text": "public final void mo18501i() {\n String str;\n String str2;\n if (this.f31407f) {\n str = getString(C0126R.string.fm_reauth_password_title_leave_family, new Object[]{this.f31412k});\n } else {\n str = getString(C0126R.string.fm_reauth_password_title_remove_member, new Object[]{this.f31406e});\n }\n if (this.f31407f) {\n str2 = getString(C0126R.string.fm_reauth_pin_title_leave_family, new Object[]{this.f31412k});\n } else {\n str2 = getString(C0126R.string.fm_reauth_pin_title_remove_member, new Object[]{this.f31406e});\n }\n wpu.m42156a(this.f31404c, str, str2).show(getSupportFragmentManager(), (String) null);\n }", "title": "" }, { "docid": "a02188e8e271fa83284e43f406a028ba", "score": "0.5018262", "text": "@Override\n\t\t\tpublic String getName() {\n\t\t\t\treturn \"投石车\";\n\t\t\t}", "title": "" }, { "docid": "a02188e8e271fa83284e43f406a028ba", "score": "0.5018262", "text": "@Override\n\t\t\tpublic String getName() {\n\t\t\t\treturn \"投石车\";\n\t\t\t}", "title": "" }, { "docid": "342f490d3026a1df27e8c34898f9506c", "score": "0.5013189", "text": "@Override\n public String getName() { return airlineName; }", "title": "" }, { "docid": "d204f5004f96509b9e0d5986b3105fac", "score": "0.5009697", "text": "private C0626a m3544c(C1173z zVar) {\n PackageInfo packageInfo;\n Bundle bundle;\n ApplicationInfo applicationInfo = this.f3136kI.f3139kL.getApplicationInfo();\n try {\n packageInfo = this.f3136kI.f3139kL.getPackageManager().getPackageInfo(applicationInfo.packageName, 0);\n } catch (NameNotFoundException e) {\n packageInfo = null;\n }\n if (this.f3136kI.f3144kQ.f1195lo || this.f3136kI.f3138kK.getParent() == null) {\n bundle = null;\n } else {\n int[] iArr = new int[2];\n this.f3136kI.f3138kK.getLocationOnScreen(iArr);\n int i = iArr[0];\n int i2 = iArr[1];\n DisplayMetrics displayMetrics = this.f3136kI.f3139kL.getResources().getDisplayMetrics();\n int width = this.f3136kI.f3138kK.getWidth();\n int height = this.f3136kI.f3138kK.getHeight();\n int i3 = (!this.f3136kI.f3138kK.isShown() || i + width <= 0 || i2 + height <= 0 || i > displayMetrics.widthPixels || i2 > displayMetrics.heightPixels) ? 0 : 1;\n bundle = new Bundle(5);\n bundle.putInt(\"x\", i);\n bundle.putInt(\"y\", i2);\n bundle.putInt(\"width\", width);\n bundle.putInt(\"height\", height);\n bundle.putInt(\"visible\", i3);\n }\n String aP = C0644cp.m1487aP();\n this.f3136kI.f3146kS = new C0642co(aP, this.f3136kI.adUnitId);\n this.f3136kI.f3146kS.mo4771f(zVar);\n return new C0626a(bundle, zVar, this.f3136kI.f3144kQ, this.f3136kI.adUnitId, applicationInfo, packageInfo, aP, C0644cp.f1753pu, this.f3136kI.f3141kN, C0644cp.m1483a(this.f3136kI, aP, this.f3136kI.f3139kL));\n }", "title": "" }, { "docid": "2c959993c2a6227b9fdc2b4cb0fd92d5", "score": "0.5008896", "text": "public final String abm() {\n Object format;\n String format2;\n AppMethodBeat.m2504i(16382);\n ByteArrayOutputStream byteArrayOutputStream = new ByteArrayOutputStream();\n PrintStream printStream = new PrintStream(byteArrayOutputStream);\n printStream.println(\"#client.version=\" + C7243d.vxo);\n printStream.println(\"#accinfo.revision=\" + C5058f.REV);\n printStream.println(\"#accinfo.uin=\" + C6665av.fly.mo5292T(\"last_login_uin\", ceJ));\n printStream.println(\"#accinfo.dev=\" + ceI);\n printStream.println(\"#accinfo.build=\" + C5058f.TIME + VideoMaterialUtil.FRAMES_ID_SEPARATOR_3D + C5058f.HOSTNAME + VideoMaterialUtil.FRAMES_ID_SEPARATOR_3D + C5059g.cdf);\n String str = \"\";\n try {\n StatFs statFs = new StatFs(C1448h.getDataDirectory().getPath());\n StatFs statFs2 = new StatFs(C6457e.eSl);\n format2 = String.format(\"%dMB %s:%d:%d:%d %s:%d:%d:%d\", new Object[]{Integer.valueOf(((ActivityManager) C4996ah.getContext().getSystemService(\"activity\")).getMemoryClass()), r4.getAbsolutePath(), Integer.valueOf(statFs.getBlockSize()), Integer.valueOf(statFs.getBlockCount()), Integer.valueOf(statFs.getAvailableBlocks()), C6457e.eSl, Integer.valueOf(statFs2.getBlockSize()), Integer.valueOf(statFs2.getBlockCount()), Integer.valueOf(statFs2.getAvailableBlocks())});\n } catch (Exception e) {\n C4990ab.m7413e(\"MicroMsg.HandlerTraceManager\", \"summer check data size failed :%s\", e.getMessage());\n format2 = str;\n }\n printStream.println(\"#accinfo.data=\".concat(String.valueOf(format2)));\n Date date = new Date();\n printStream.println(\"#accinfo.uploadTime=\" + new SimpleDateFormat(\"yyyy-MM-dd HH:mm:ss.SSSZ\", Locale.getDefault()).format(date));\n printStream.println(\"#logfile.fulllast :\".concat(String.valueOf(this.ehZ.getLong(\"handler_trace_log_file_full_time\", 0) - this.ehZ.getLong(\"handler_trace_log_file_create_time\", 0))));\n if (this.ceM[1] != -1) {\n printStream.println(\"#wxpackage :cache size=\" + this.ceM[0] + \" data size=\" + this.ceM[1] + \" code size=\" + this.ceM[2]);\n }\n C25854m[] lU = C41787r.aix().mo20547lU(21);\n if (lU == null || lU.length == 0 || lU[0] == null) {\n printStream.println(\"#traceconfig hardcode\");\n } else {\n printStream.println(\"#traceconfig id=\" + lU[0].f13661id + \" version=\" + lU[0].version);\n }\n printStream.println(\"#handler.content:\");\n format2 = byteArrayOutputStream.toString();\n try {\n byteArrayOutputStream.close();\n } catch (Exception e2) {\n }\n AppMethodBeat.m2505o(16382);\n return format2;\n }", "title": "" } ]
4dfab76d8ecb011a92aa5621ae982e90
Roi names are only prefixed to the extraNames elements on this objet i.e. don't change the names on the statsProcessor itself
[ { "docid": "2e8c47f0489205e38f1a7c54f187cc3f", "score": "0.70123523", "text": "private void createNames() {\n\t\textraNames.clear();\n\t\tfor (RegionOfInterest roi : roiList) {\n\t\t\tstatsProcessor.getExtraNames().stream().map(name -> roi.getName() + \".\" + name).forEach(extraNames::add);\n\t\t}\n\t}", "title": "" } ]
[ { "docid": "d1fb66ead531c61c46e72566b5b3d5ce", "score": "0.5832682", "text": "public void addNames() {}", "title": "" }, { "docid": "3f38c6d6c17e5e6b45bdefc37c882e68", "score": "0.5804138", "text": "public String getName()\r\n/* 51: */ {\r\n/* 52: 50 */ return \"Export Processor\";\r\n/* 53: */ }", "title": "" }, { "docid": "8582b080e01289603f5af92e9f453fc6", "score": "0.5730912", "text": "java.lang.String getCustomname();", "title": "" }, { "docid": "c93161429829fe19c67267cde3f07ecc", "score": "0.57227033", "text": "protected abstract String getNameWanted();", "title": "" }, { "docid": "4b8796ccb1a1a16cd64f9d200a9171bd", "score": "0.5608548", "text": "@Override\n public String getNameExt () {\n return name;\n }", "title": "" }, { "docid": "ae5d92f5fc462fec7985789d1e37f32a", "score": "0.5583012", "text": "@Override\r\n\tpublic void setNameX() {\n\r\n\t}", "title": "" }, { "docid": "ae5d92f5fc462fec7985789d1e37f32a", "score": "0.5583012", "text": "@Override\r\n\tpublic void setNameX() {\n\r\n\t}", "title": "" }, { "docid": "aa46840da2ba205bf4aaaa51d4454e73", "score": "0.5556313", "text": "@Override\n public String getName() {\n return mewtwo.name;\n }", "title": "" }, { "docid": "050e58955c0105c4f92ee4702afac5c5", "score": "0.55117303", "text": "@Override\r\n\tpublic String getName() {\n\t\treturn this.hasCustomName() ? this.customName : \"container.magic_sponge\";\r\n\t}", "title": "" }, { "docid": "35d468fc8fa0432aa7b304765bd903d0", "score": "0.5475324", "text": "@Override\npublic void setCustomName(String arg0) {\n\t\n}", "title": "" }, { "docid": "5b5458be61524fbf497ca43ad5c253d4", "score": "0.5446878", "text": "@Override\n public String getName(){\n \n return name;\n }", "title": "" }, { "docid": "c737c070185f8ec52f1aa6df52664e63", "score": "0.5445876", "text": "@Override\n public String toString() {return getName();}", "title": "" }, { "docid": "cf06f3b6921a2e5a3ef6c073b818652e", "score": "0.54416573", "text": "@Override\n\tpublic String getName() {\n\t\treturn super.getName();\n\t}", "title": "" }, { "docid": "70ad9c510f04c7196468fc1b3ff0f40f", "score": "0.5425786", "text": "public String getName() {\n/* 365 */ return hasCustomName() ? this.field_146008_p : \"container.beacon\";\n/* */ }", "title": "" }, { "docid": "6ea8fb1b092f5706cb7b0af3c55487be", "score": "0.5420736", "text": "@Override\n\tprotected void addProfileNames() {\n\t\tsuper.addProfileNames();\n\t}", "title": "" }, { "docid": "d5732c4314af534557492c49cc1ea962", "score": "0.5378295", "text": "@Override\n public String toString() {\n return name;\n }", "title": "" }, { "docid": "8709a969ba5301479574cc1128d83440", "score": "0.5362824", "text": "@Override\n public void addName() {\n mewtwo.setName(\"Mewtwo\");\n }", "title": "" }, { "docid": "dcd940c9fdda5fceccc2bdfbff7bcee7", "score": "0.5360915", "text": "public String getName() {return _typeName[value];}", "title": "" }, { "docid": "d1c635fb798fe3b5d38e92c16231685d", "score": "0.536049", "text": "public String getFeatureName() {\n/* 272 */ return (String)STRUCTURES_REGISTRY.inverse().get(this);\n/* */ }", "title": "" }, { "docid": "90b49a2d45568eb79b2666d4afa693f4", "score": "0.5336152", "text": "@Override\r\n public String toString() {\r\n return getName();\r\n }", "title": "" }, { "docid": "60b9847c84c0c09767b4937eeade4e1d", "score": "0.53338563", "text": "@Override\npublic String getCustomName() {\n\treturn null;\n}", "title": "" }, { "docid": "be92c45ed19f41830a071810c274adf8", "score": "0.5299613", "text": "@Override\r\n\tpublic String toString() {\n\t\treturn getName();\r\n\t}", "title": "" }, { "docid": "1419a1be208ada9de9a24aa43a78e0d7", "score": "0.5299366", "text": "protected abstract String getName();", "title": "" }, { "docid": "4d975aefa2d7cc903ac4c44fbef3767d", "score": "0.52978396", "text": "@Override\r\n public String getName() \r\n {\r\n return name;\r\n }", "title": "" }, { "docid": "258271b2ab156c425c80006eeedfd570", "score": "0.5293597", "text": "@Override\r\n public String getName(){\r\n return this.name;\r\n }", "title": "" }, { "docid": "afed070237a9cf7ff0db8c659bd25eb5", "score": "0.52934664", "text": "@Override\n public String toString() {\n return NAME;\n }", "title": "" }, { "docid": "e51ad11e6ee34bbcc65378eba966ed2d", "score": "0.52872294", "text": "@Override public String toString() {\n return \"\" + \"NameInfo=\" + NameInfo // NOI18N\n + \", QualifierLoc=\" + QualifierLoc // NOI18N\n + \", Results=\" + Results // NOI18N\n + \", NumResults=\" + NumResults // NOI18N\n + \", HasTemplateKWAndArgsInfo=\" + HasTemplateKWAndArgsInfo // NOI18N\n + super.toString(); // NOI18N\n }", "title": "" }, { "docid": "7a844e60ff434ced8ce97b17005f27fb", "score": "0.5280226", "text": "@Override\n String getName();", "title": "" }, { "docid": "0917893421b8c4956d5109c5adf1cd8f", "score": "0.5278333", "text": "@Override\n public String toString() {\n return name;\n }", "title": "" }, { "docid": "701c0481270b390a941e628da18ef9ee", "score": "0.5277594", "text": "protected void addNamePropertyDescriptor(Object object) {\n\t\titemPropertyDescriptors.add\n\t\t\t(createItemPropertyDescriptor\n\t\t\t\t(((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),\n\t\t\t\t getResourceLocator(),\n\t\t\t\t getString(\"_UI_Bench_name_feature\"),\n\t\t\t\t getString(\"_UI_PropertyDescriptor_description\", \"_UI_Bench_name_feature\", \"_UI_Bench_type\"),\n\t\t\t\t ArduinoPackage.Literals.BENCH__NAME,\n\t\t\t\t true,\n\t\t\t\t false,\n\t\t\t\t false,\n\t\t\t\t ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,\n\t\t\t\t null,\n\t\t\t\t null));\n\t}", "title": "" }, { "docid": "8552a0827ca479716bd8e02e2d351b5a", "score": "0.5277426", "text": "@Override\n String getName();", "title": "" }, { "docid": "84e90089b7d43b14445d93767d44a058", "score": "0.5272784", "text": "private void setNamesToSeries() {\n eulersSeries.setName(\"Euler's Method\");\n eulersErrorSeries.setName(\"Euler's Method\");\n eulersMaxErrorSeries.setName(\"Euler's Method\");\n improvedEulersSeries.setName(\"Improved Euler's Method\");\n improvedEulersErrorSeries.setName(\"Improved Euler's Method\");\n improvedEulersMaxErrorSeries.setName(\"Improved Euler's Method\");\n rungeKuttaSeries.setName(\"Runge-Kutta Method\");\n rungeKuttaErrorSeries.setName(\"Runge-Kutta Method\");\n rungeKuttaMaxErrorSeries.setName(\"Runge-Kutta Method\");\n originalSeries.setName(\"Original Function\");\n }", "title": "" }, { "docid": "a9d277108f047075a9ac0f6424e80b7b", "score": "0.5269247", "text": "@Override\r\n public String toString() {\r\n return name;\r\n }", "title": "" }, { "docid": "a9d277108f047075a9ac0f6424e80b7b", "score": "0.5269247", "text": "@Override\r\n public String toString() {\r\n return name;\r\n }", "title": "" }, { "docid": "bb81d6ca6d16309574b4334e4863b3b5", "score": "0.5264948", "text": "@Override\r\n public final String toString() { \r\n return name;\r\n }", "title": "" }, { "docid": "1f0ba7bb22b975d6f3304dfa7edccb5e", "score": "0.5260733", "text": "public String name_data(String name)\r\n/* 12: */ {\r\n/* 13:11 */ if (name.equals(\"gr_id\")) {\r\n/* 14:12 */ return \"__dummy__id__\";\r\n/* 15: */ }\r\n/* 16:13 */ return super.name_data(name);\r\n/* 17: */ }", "title": "" }, { "docid": "f3f3ae74530595272111af9969a435ed", "score": "0.5255279", "text": "@Override\r\n\t\tpublic String toString() {\n\t\t\treturn name;\r\n\t\t}", "title": "" }, { "docid": "462ead1d396578cda8e79ef255bdb13f", "score": "0.5250474", "text": "@Override\npublic String getName(){\n\treturn heroName;\n}", "title": "" }, { "docid": "b28a8727a8ef58f9d5d1ef74126fc170", "score": "0.52450144", "text": "@Override\n\t\tpublic String toString(){\n\t\t\tString tmp = this.name();\n\t\t\ttmp=tmp.replace(\"_\", \" \");\n\t\t\treturn tmp.toLowerCase();\n\t\t}", "title": "" }, { "docid": "b28a8727a8ef58f9d5d1ef74126fc170", "score": "0.52450144", "text": "@Override\n\t\tpublic String toString(){\n\t\t\tString tmp = this.name();\n\t\t\ttmp=tmp.replace(\"_\", \" \");\n\t\t\treturn tmp.toLowerCase();\n\t\t}", "title": "" }, { "docid": "b28a8727a8ef58f9d5d1ef74126fc170", "score": "0.52450144", "text": "@Override\n\t\tpublic String toString(){\n\t\t\tString tmp = this.name();\n\t\t\ttmp=tmp.replace(\"_\", \" \");\n\t\t\treturn tmp.toLowerCase();\n\t\t}", "title": "" }, { "docid": "2bafe336b155dfc01a03e3f07f258c90", "score": "0.5240899", "text": "@Override\n public String toString(){\n return _name;\n }", "title": "" }, { "docid": "941b6e75efb1be6386e11b1a3f2da513", "score": "0.52408016", "text": "@Override\r\n public String getName() {\r\n return NAME;\r\n }", "title": "" }, { "docid": "6885c3b21c5edf0a2237d22df2b0607d", "score": "0.5239407", "text": "@Override\n\tString getName();", "title": "" }, { "docid": "6885c3b21c5edf0a2237d22df2b0607d", "score": "0.5239407", "text": "@Override\n\tString getName();", "title": "" }, { "docid": "6dce19d2def1eb7f04cc679cf770716b", "score": "0.52388644", "text": "public void func_145839_a(NBTTagCompound nbtCompound)\n/* */ {\n/* 209 */ super.func_145839_a(nbtCompound);\n/* */ \n/* 211 */ if (nbtCompound.func_74764_b(\"CustomName\"))\n/* */ {\n/* 213 */ this.customName = nbtCompound.func_74779_i(\"CustomName\");\n/* */ }\n/* */ }", "title": "" }, { "docid": "609504de3b8805a9fd59e208db62f6ea", "score": "0.52384126", "text": "private String getName(String raw) {\n return raw;\n }", "title": "" }, { "docid": "1c27417b05ba3824e1c5978a7b0018e9", "score": "0.5237589", "text": "@Override\n public String toString() {\n return getName();\n }", "title": "" }, { "docid": "eb6b844062ab6e8bfe94fcfb6cea14f2", "score": "0.52275467", "text": "@Override\r\n\tpublic String getTitle() {\n\t\tString objName = \"\";\r\n\t\t\r\n\t\tif (inspector != null) {\r\n\t\t\tobjName = inspector.getProperty(NodeValueInspector.NAME);\r\n\t\t}\r\n\r\n\t\tif (objName != null && !objName.equals(\"\")) {\r\n\t\t\tobjName = \"Object name = \" + objName;\r\n\t\t} else {\r\n\t\t\tobjName = \"Object not passed\";\r\n\t\t}\r\n\r\n\t\t//return bundle.getString(\"title\") + objectName;\r\n\t\treturn objName;\r\n\t}", "title": "" }, { "docid": "eed5e376bbd257452f459ed0336073b4", "score": "0.5217158", "text": "@Override\r\n public String getName() {\r\n return name;\r\n }", "title": "" }, { "docid": "eed5e376bbd257452f459ed0336073b4", "score": "0.5217158", "text": "@Override\r\n public String getName() {\r\n return name;\r\n }", "title": "" }, { "docid": "eed5e376bbd257452f459ed0336073b4", "score": "0.5217158", "text": "@Override\r\n public String getName() {\r\n return name;\r\n }", "title": "" }, { "docid": "eed5e376bbd257452f459ed0336073b4", "score": "0.5217158", "text": "@Override\r\n public String getName() {\r\n return name;\r\n }", "title": "" }, { "docid": "615d45d3b25b2c459b6ddf58fd3a4c40", "score": "0.5214871", "text": "public String getName() { return name; \t}", "title": "" }, { "docid": "ce388c26a359e0a37d7acecfe400bb2c", "score": "0.5214779", "text": "protected ObjectName preRegisterModifyName(\n final MBeanServer server,\n final ObjectName nameIn) {\n return nameIn;\n }", "title": "" }, { "docid": "ce50ccd56f4e44736bda5c7aa6e25bf7", "score": "0.52136344", "text": "@Override\n public String getName()\n {\n return NAME;\n }", "title": "" }, { "docid": "21b0a5e908d3d984488720e9efaaa7c0", "score": "0.52080023", "text": "@Override\n public String toString() {\n if (frequency == 1)\n return name;\n return name + \" x\" + frequency;\n }", "title": "" }, { "docid": "5699db216379cbe34cf3e29011ba9a35", "score": "0.5202506", "text": "@Override\n public String toString() {\n return name;\n }", "title": "" }, { "docid": "5699db216379cbe34cf3e29011ba9a35", "score": "0.5202506", "text": "@Override\n public String toString() {\n return name;\n }", "title": "" }, { "docid": "5699db216379cbe34cf3e29011ba9a35", "score": "0.5202506", "text": "@Override\n public String toString() {\n return name;\n }", "title": "" }, { "docid": "19a8d30fcbc7894648a4027677884787", "score": "0.51931244", "text": "@Override\n public String toString() {\n return name();\n }", "title": "" }, { "docid": "a4379570f1d0e138a210e796d89c9ddf", "score": "0.51912934", "text": "@Override\r\npublic String toString() {\n\treturn name;\r\n}", "title": "" }, { "docid": "ba569aaa7e19718ede62c7099f8a5189", "score": "0.5189417", "text": "@Override\n public String getName() {\n return System.currentTimeMillis() + Math.random() + \".\" + header.split(\"/\")[1];\n }", "title": "" }, { "docid": "62ba3dea95054413a2023aec68c82b73", "score": "0.51884174", "text": "@Override\n public String toString()\n {\n return name;\n }", "title": "" }, { "docid": "ae82149afb601697c3d44d5eef432278", "score": "0.5187349", "text": "@Override\n public String toString()\n {\n return name;\n }", "title": "" }, { "docid": "9a116ec6ccec158b4e82349aebfaa216", "score": "0.5187064", "text": "@Override\n\tprotected void addTypeSpecificStats(NamedList<Object> res) {\n\t\tres.add(\"sum\", mSum);\n\t\tres.add(\"sumOfSquares\", mSumOfSquares);\n\t\tres.add(\"mean\", mSum / mCount);\n\t\tres.add(\"stddev\", getStandardDeviation());\n\t}", "title": "" }, { "docid": "acecd58ebae5ca0f41390ee81b41acf8", "score": "0.5181571", "text": "@Override\n public String toString(){\n return name;\n }", "title": "" }, { "docid": "e97ee57bdc50801e3753d0cc53018865", "score": "0.517938", "text": "@Override\r\n\tpublic String info() {\n\t\treturn name;\r\n\t}", "title": "" }, { "docid": "83de988451ce3bd8adcb5f87ed1cb76e", "score": "0.5175169", "text": "@Override\r\n\tpublic String toString() {\r\n\t\treturn name;\r\n\t}", "title": "" }, { "docid": "0b288e33c3f33c24692875bfe382a160", "score": "0.51687646", "text": "@Override\n public String toString() {\n return (getName());\n }", "title": "" }, { "docid": "28c27517487c0d597d3f415e1185a8b4", "score": "0.5164705", "text": "@gw.internal.gosu.parser.ExtendedProperty\n public java.lang.String getName();", "title": "" }, { "docid": "e475855523e73b699ce105cc7c531cf0", "score": "0.51567394", "text": "public void remName(){\n ((PayloadSortInfoDMO) core).remName();\n }", "title": "" }, { "docid": "4e1a77d9ba5896931f7feb80648d3687", "score": "0.5145156", "text": "protected String getName(){\n return this.name;\n }", "title": "" }, { "docid": "4e1a77d9ba5896931f7feb80648d3687", "score": "0.5145156", "text": "protected String getName(){\n return this.name;\n }", "title": "" }, { "docid": "4b3ebe844c663ff0b9571f9a4c26b121", "score": "0.51406926", "text": "public String getName2();", "title": "" }, { "docid": "1c7b6e6e7eb9d7f7b676d3cbbba17c80", "score": "0.5131986", "text": "@Override\r\n\t// TODO identifier\r\n\tpublic String getNameKey() {\r\n\t\treturn plugin.getNameKey( );\r\n\t}", "title": "" }, { "docid": "061539d7354d31354771e1bb3c9d49a2", "score": "0.5129428", "text": "@Override\n\tpublic String toString() {\n\t\treturn name;\n\t}", "title": "" }, { "docid": "061539d7354d31354771e1bb3c9d49a2", "score": "0.5129428", "text": "@Override\n\tpublic String toString() {\n\t\treturn name;\n\t}", "title": "" }, { "docid": "b5d81fedcd472734d1255153a220171c", "score": "0.51280653", "text": "public String getName(){ return this.name; }", "title": "" }, { "docid": "16b760979da06b445bab7e9b954f9e41", "score": "0.5125381", "text": "@Override\n String getName() {\n return name;\n }", "title": "" }, { "docid": "82fff3e89430454c9c6f34668897f2b4", "score": "0.5121919", "text": "@Override\n public String name() {\n return \"lossmixturedensity\";\n }", "title": "" }, { "docid": "bb67f06f3441dd1e8f90b2b04c9d5d8d", "score": "0.5121297", "text": "public String getName() {\n //getDataStore().getNameSpace().getPrefix() is causing too many null\n //pointers on unitialized stuff. figure out a more elegant way to\n //handle this.\n return new StringBuffer(getPrefix()).append(NameSpace.PREFIX_DELIMITER)\n .append(super.getName()).toString();\n }", "title": "" }, { "docid": "2b9bb8ee72fbdd6250f3f35413b5d1c3", "score": "0.5120338", "text": "@Override\n public String infoString() {\n return getName() + \": aggregator for the attribute \" + attribute.toString();}", "title": "" }, { "docid": "a12063cd80a7b931e0e9885a0a4d8b31", "score": "0.511763", "text": "@Override\n public String getName()\n {\n return name;\n }", "title": "" }, { "docid": "12745875e6cac804944d0c8ca4d12d1e", "score": "0.51162404", "text": "@Override\n String getName();", "title": "" }, { "docid": "f374ccb4c03f20fe62f876e7dee77235", "score": "0.511624", "text": "@Override\n\tpublic void setName(String n) {\n\n\t}", "title": "" }, { "docid": "6b245d5eea62c8c69e84f76c6b6c4d53", "score": "0.51155084", "text": "java.lang.String getName();", "title": "" }, { "docid": "6b245d5eea62c8c69e84f76c6b6c4d53", "score": "0.51149654", "text": "java.lang.String getName();", "title": "" }, { "docid": "6b245d5eea62c8c69e84f76c6b6c4d53", "score": "0.51149654", "text": "java.lang.String getName();", "title": "" }, { "docid": "6b245d5eea62c8c69e84f76c6b6c4d53", "score": "0.51149654", "text": "java.lang.String getName();", "title": "" }, { "docid": "6b245d5eea62c8c69e84f76c6b6c4d53", "score": "0.51149654", "text": "java.lang.String getName();", "title": "" }, { "docid": "6b245d5eea62c8c69e84f76c6b6c4d53", "score": "0.51149654", "text": "java.lang.String getName();", "title": "" }, { "docid": "6b245d5eea62c8c69e84f76c6b6c4d53", "score": "0.51149654", "text": "java.lang.String getName();", "title": "" }, { "docid": "6b245d5eea62c8c69e84f76c6b6c4d53", "score": "0.51149654", "text": "java.lang.String getName();", "title": "" }, { "docid": "6b245d5eea62c8c69e84f76c6b6c4d53", "score": "0.51149654", "text": "java.lang.String getName();", "title": "" }, { "docid": "6b245d5eea62c8c69e84f76c6b6c4d53", "score": "0.51149654", "text": "java.lang.String getName();", "title": "" }, { "docid": "6b245d5eea62c8c69e84f76c6b6c4d53", "score": "0.51149654", "text": "java.lang.String getName();", "title": "" }, { "docid": "6b245d5eea62c8c69e84f76c6b6c4d53", "score": "0.51149654", "text": "java.lang.String getName();", "title": "" }, { "docid": "6b245d5eea62c8c69e84f76c6b6c4d53", "score": "0.51149654", "text": "java.lang.String getName();", "title": "" }, { "docid": "6b245d5eea62c8c69e84f76c6b6c4d53", "score": "0.51149654", "text": "java.lang.String getName();", "title": "" } ]
dbd877cdc899241da71f449a39a851a9
map&lt;string, .bblwheel.Config&gt; Configs = 1;
[ { "docid": "b3ed3a7e77c652eea36283f06d57105c", "score": "0.52698094", "text": "int getConfigsCount();", "title": "" } ]
[ { "docid": "bdbb06c4be380ca0a6925e162e72b48d", "score": "0.79124564", "text": "java.util.Map<java.lang.String, com.hemayun.bblwheel.Bblwheel.Config>\n getConfigsMap();", "title": "" }, { "docid": "6bfdcc8d8f0960d7b2c9942ef6db4d32", "score": "0.68716395", "text": "com.hemayun.bblwheel.Bblwheel.Config getConfig();", "title": "" }, { "docid": "17e032720a1cb6b28236e96a540bfdcf", "score": "0.65901524", "text": "com.hemayun.bblwheel.Bblwheel.ConfigOrBuilder getConfigOrBuilder();", "title": "" }, { "docid": "caea002c295d6d88d2fbfbe4b18caf9c", "score": "0.6562029", "text": "public java.util.Map<java.lang.String, com.hemayun.bblwheel.Bblwheel.Config> getConfigsMap() {\n return internalGetConfigs().getMap();\n }", "title": "" }, { "docid": "c787f037fe4044b52658007202d314db", "score": "0.64916223", "text": "Map<String, String> getConfiguration();", "title": "" }, { "docid": "bb5f71ad96f64f60344e01c65f26bfdc", "score": "0.6480465", "text": "public java.util.Map<java.lang.String, com.hemayun.bblwheel.Bblwheel.Config> getConfigsMap() {\n return internalGetConfigs().getMap();\n }", "title": "" }, { "docid": "b1ae7a8ea9a2c8797e2e7ec055c2eb33", "score": "0.64135545", "text": "@Override\n public void configure(Map<String, ?> configs) {\n\n }", "title": "" }, { "docid": "73535460e2efc1f05218597c27f3a981", "score": "0.6358376", "text": "public interface Config {\n public String rbc = \"rbc\";\n public String wbc = \"wbc\";\n public String blood_pressure = \"blood pressure\";\n public String pulse = \"pulse\";\n public String body_temperature = \"body temperature\";\n public String hemoglobin = \"hemoglobin\";\n\n}", "title": "" }, { "docid": "9c1528c30f20fd95aa11f6675697e9b2", "score": "0.62880325", "text": "public interface Config {\r\n\r\n public Map<String,String> getConfig();\r\n\r\n}", "title": "" }, { "docid": "d304fdecb70c08ad3eec603336678a79", "score": "0.62616414", "text": "com.hemayun.bblwheel.Bblwheel.Config getConfigsOrThrow(\n java.lang.String key);", "title": "" }, { "docid": "3463997160b13dfc0b83cf046c354e23", "score": "0.61235416", "text": "public Map<String, JadeConfigureConfig> getJadeConfigureConfigMap();", "title": "" }, { "docid": "4539e886c62900e4f73e6d72a32e3f4e", "score": "0.6035623", "text": "public Map<String, String> getConfigsMap() {\n return configsMap;\n }", "title": "" }, { "docid": "ae55b6dc78e90ace13914ba8405492d0", "score": "0.59816504", "text": "@SuppressWarnings({\"IOResourceOpenedButNotSafelyClosed\"})\npublic interface Config\n{\n /**\n * Returns config template for this config object.\n *\n * @return config template for this config object.\n */\n ConfigTemplate<?> template();\n\n /**\n * Returns name of config file, class name if not provided. <br>\n *\n * @return name of config file, class name if not provided.\n */\n default String name()\n {\n return this.template().getName();\n }\n\n /**\n * Clear all values and replace them with default ones.\n */\n void fillWithDefaults();\n\n /**\n * Remove all config values.\n */\n void clear();\n\n /**\n * Check if config contains given key, note that value on that key still might be null!\n *\n * @param key\n * key to check, you can use dots to access nested values like other config instances or maps.\n *\n * @return true if config contains given key.\n */\n boolean contains(String key);\n\n /**\n * Check if config contains given key, note that value on that key still might be null!\n *\n * @param key\n * key to check, each string in next nested level so it can be used to access nested values of other config instances or maps.\n *\n * @return true if config contains given key.\n */\n boolean contains(String... key);\n\n /**\n * Returns set of keys.\n *\n * @return set of keys.\n */\n Set<String> keys();\n\n /**\n * Returns collection of values.\n *\n * @return collection of values.\n */\n Collection<Object> values();\n\n /**\n * Returns set of entries.\n *\n * @return set of entries.\n */\n Set<Entry<String, Object>> entries();\n\n /**\n * Returns this config as normal map.\n *\n * @return this config as normal map.\n */\n Map<String, Object> asMap();\n\n /**\n * Returns true if this config does not contains any entries.\n *\n * @return true if this config does not contains any entries.\n */\n boolean isEmpty();\n\n /**\n * Returns size of this config.\n *\n * @return size of this config.\n */\n int size();\n\n /**\n * Returns metadata map. <br>\n * This map isn't saved, can be used by config implementations to store temporary data.\n *\n * @return metadata map.\n */\n Map<String, Object> metadata();\n\n /**\n * Get selected value from config.\n *\n * @param key\n * key to get, you can use dots to access nested values like other config instances or maps.\n *\n * @return value on that key.\n */\n @Nullable\n <T> T get(String key);\n\n /**\n * Get selected value from config.\n *\n * @param key\n * key to get, each string in next nested level so it can be used to access nested values of other config instances or maps.\n *\n * @return value on that key.\n */\n @Nullable\n <T> T get(String[] key);\n\n /**\n * Get selected value from config or default one.\n *\n * @param key\n * key to get, you can use dots to access nested values like other config instances or maps.\n * @param def\n * default value to use.\n *\n * @return value on that key.\n */\n @Nullable\n <T> T get(String key, @Nullable T def);\n\n /**\n * Get selected value from config or default one.\n *\n * @param key\n * key to get, you can use dots to access nested values like other config instances or maps.\n * @param def\n * default value to use.\n *\n * @return value on that key.\n */\n @Nullable\n <T> T get(String[] key, @Nullable T def);\n\n /**\n * Get selected value from config (or default value) as given type, library will try convert types where possible. (like from String to Integer, List of\n * strings to int array\n * etc)\n *\n * @param key\n * key to get, you can use dots to access nested values like other config instances or maps.\n * @param def\n * default value to use.\n * @param type\n * type of value.\n * @param <T>\n * type of value.\n *\n * @return value on that key.\n *\n * @exception ClassCastException\n * if type can't be converted.\n */\n @Nullable\n <T> T get(String key, @Nullable T def, Class<T> type);\n\n /**\n * Get selected value from config (or default value) as given type, library will try convert types where possible. (like from String to Integer, List of\n * strings to int array\n * etc)\n *\n * @param key\n * key to get, each string in next nested level so it can be used to access nested values of other config instances or maps.\n * @param def\n * default value to use.\n * @param type\n * type of value.\n * @param <T>\n * type of value.\n *\n * @return value on that key.\n *\n * @exception ClassCastException\n * if type can't be converted.\n */\n @Nullable\n <T> T get(String[] key, @Nullable T def, Class<T> type);\n\n /**\n * Get selected value from config as given type, library will try convert types where possible. (like from String to Integer, List of strings to int array\n * etc)\n *\n * @param key\n * key to get, you can use dots to access nested values like other config instances or maps.\n * @param type\n * type of value.\n * @param <T>\n * type of value.\n *\n * @return value on that key.\n *\n * @exception ClassCastException\n * if type can't be converted.\n */\n @Nullable\n <T> T get(String key, Class<T> type);\n\n /**\n * Get selected value from config as given type, library will try convert types where possible. (like from String to Integer, List of strings to int array\n * etc)\n *\n * @param key\n * key to get, each string in next nested level so it can be used to access nested values of other config instances or maps.\n * @param type\n * type of value.\n * @param <T>\n * type of value.\n *\n * @return value on that key.\n *\n * @exception ClassCastException\n * if type can't be converted.\n */\n @Nullable\n <T> T get(String[] key, Class<T> type);\n\n /**\n * Set value on given key to given value. <br>\n * Null values are allowed, note that key isn't removed on null value!\n *\n * @param key\n * key to set, you can use dots to access nested values like other config instances or maps.\n * @param value\n * value to set.\n */\n void set(String key, @Nullable Object value);\n\n /**\n * Set value on given key to given value. <br>\n * Null values are allowed, note that key isn't removed on null value!\n *\n * @param key\n * key to set, each string in next nested level so it can be used to access nested values of other config instances or maps.\n * @param value\n * value to set.\n */\n void set(String[] key, @Nullable Object value);\n\n /**\n * Removes given key from config file.\n *\n * @param key\n * key to remove, you can use dots to access nested values like other config instances or maps.\n *\n * @return removed value.\n */\n @Nullable\n Object remove(String key);\n\n /**\n * Removes given key from config file.\n *\n * @param key\n * key to remove, each string in next nested level so it can be used to access nested values of other config instances or maps.\n *\n * @return removed value.\n */\n @Nullable\n Object remove(String... key);\n\n /**\n * Returns encoder used by this config file.\n *\n * @return encoder used by this config file.\n */\n CharsetEncoder encoder();\n\n /**\n * Set encoder for this config file.\n *\n * @param encoder\n * new encoder.\n */\n void encoder(Supplier<CharsetEncoder> encoder);\n\n /**\n * Returns decoder used by this config file.\n *\n * @return decoder used by this config file.\n */\n CharsetDecoder decoder();\n\n /**\n * Set decoder for this config file.\n *\n * @param decoder\n * new decoder.\n */\n void decoder(Supplier<CharsetDecoder> decoder);\n\n /**\n * Select charset for loading this config file.\n *\n * @param charset\n * charset to use.\n */\n default void encoding(Charset charset)\n {\n this.encoder(() -> charset.newEncoder().onMalformedInput(CodingErrorAction.REPORT).onUnmappableCharacter(CodingErrorAction.REPORT));\n this.decoder(() -> charset.newDecoder().onMalformedInput(CodingErrorAction.REPORT).onUnmappableCharacter(CodingErrorAction.REPORT));\n }\n\n @Nullable\n ClassLoader contextClassLoader();\n\n void contextClassLoader(@Nullable ClassLoader classLoader);\n\n /**\n * Returns bound file if exists.\n *\n * @return bound file if exists.\n */\n @Nullable\n File bindFile();\n\n /**\n * Binds config to file, allowing for simple saving and reloading.\n *\n * @param file\n * file to bind.\n */\n void bindFile(@Nullable File file);\n\n /**\n * Save config to bound file/stream and custom handler if exists.\n */\n void save();\n\n /**\n * Save config to selected file.\n *\n * @param file\n * file to use.\n */\n default void save(File file)\n {\n try (OutputStreamWriter outputStreamWriter = ConfigHelperMethods.createOutputStreamWriter(this, file))\n {\n this.save(outputStreamWriter);\n }\n catch (IOException e)\n {\n throw new ConfigSaveException(this.template(), file, e.getMessage(), e);\n }\n }\n\n /**\n * Save config to selected output stream. <br>\n * Stream isn't automatically closed here!\n *\n * @param outputStream\n * output to use.\n */\n default void save(@WillNotClose OutputStream outputStream)\n {\n this.save(new OutputStreamWriter(outputStream, this.encoder()));\n }\n\n /**\n * Save config to selected writer. <br>\n * Writer isn't automatically closed here!\n *\n * @param writer\n * writer to use.\n */\n void save(@WillNotClose Writer writer);\n\n /**\n * Reloads config from bound file/stream or custom handler if exists.\n */\n void load();\n\n /**\n * Reloads config from given file.\n *\n * @param file\n * file to use.\n */\n default void load(File file)\n {\n try (InputStreamReader inputStreamReader = ConfigHelperMethods.createInputStreamReader(this, file))\n {\n this.load(inputStreamReader);\n }\n catch (IOException e)\n {\n throw new ConfigLoadException(this.template(), file, e.getMessage(), e);\n }\n }\n\n /**\n * Reloads config from selected input stream. <br>\n * Stream isn't automatically closed here!\n *\n * @param inputStream\n * input to use.\n */\n default void load(@WillNotClose InputStream inputStream)\n {\n this.load(new InputStreamReader(inputStream, this.decoder()));\n }\n\n /**\n * Reloads config from selected reader. <br>\n * Reader isn't automatically closed here!\n *\n * @param reader\n * reader to use.\n */\n void load(@WillNotClose Reader reader);\n\n /**\n * Returns clone of this config object.\n *\n * @return clone of this config object.\n */\n Config clone();\n\n /**\n * Perform operation for each config entry.\n *\n * @param action\n * action to perform.\n */\n default void forEach(BiConsumer<? super String, ? super Object> action)\n {\n for (Map.Entry<String, Object> entry : this.entries())\n {\n String k;\n Object v;\n try\n {\n k = entry.getKey();\n v = entry.getValue();\n }\n catch (IllegalStateException ise)\n {\n // this usually means the entry is no longer in the map.\n throw new ConcurrentModificationException(ise);\n }\n action.accept(k, v);\n }\n }\n}", "title": "" }, { "docid": "a9a1e877eeb0e21882f2feb4c258306a", "score": "0.59752524", "text": "@Override\n public void configure(Map<String, ?> configs, boolean isKey) {\n }", "title": "" }, { "docid": "db72a7d633c0b6e3c5ee8e98fa388f7e", "score": "0.59541816", "text": "public Config(final Map<String, Object> mapConfig) {\r\n\t\tconfig = mapConfig;\r\n\t}", "title": "" }, { "docid": "2efd1ee72d19b2f5c4db115cb8dd55e0", "score": "0.59064656", "text": "public HashMap getComponentConfig();", "title": "" }, { "docid": "084d138a40a027022710d8504b87e44f", "score": "0.5881364", "text": "public interface Config {\n public int getMaxNickLen();\n public int getMaxMessageLen();\n public String getServerName();\n public String getNetworkName();\n public String getWelcomeMessage();\n public String getMotd();\n public List<HierarchicalConfiguration> getChannels();\n public HashMap<String, String> getOperators();\n}", "title": "" }, { "docid": "06350019a4965d639e7a8b2474c82a6b", "score": "0.5866908", "text": "@Override\n public void configure(Map configs, boolean isKey) {\n }", "title": "" }, { "docid": "0f87cec29bb93dfa45a6d5c57e170920", "score": "0.5857926", "text": "public Map<String, ConfigElement> calcConfig() {\n ImmutableMap.Builder<String, ConfigElement> builder = ImmutableMap.builder();\n\n builder.putAll(classPathConfig);\n builder.putAll(apiConfig);\n builder.putAll(overrideConfig);\n\n return builder.buildKeepingLast();\n }", "title": "" }, { "docid": "1603c02cb06c6824a33d88ed2fc9d83e", "score": "0.58449894", "text": "@Override\r\n\tpublic Map<String, String> getAllConfig() {\n\t\t\r\n\t\treturn allConfig;\r\n\t}", "title": "" }, { "docid": "cb5fd5da34c3ca56a0cb970ad04d3a9f", "score": "0.5830106", "text": "private Config() { }", "title": "" }, { "docid": "9e14d18f9457f8191ad1109cc8742ff0", "score": "0.58155674", "text": "LampConfig getConfigs(int index);", "title": "" }, { "docid": "e806d2473e8bf6abae956a16fb34d9e0", "score": "0.5775567", "text": "Map<String, ConfiguredVariableItem> getConfiguration();", "title": "" }, { "docid": "7dc5ad326533792c17783edfd84c7cd7", "score": "0.5743942", "text": "Map getStartupConfig();", "title": "" }, { "docid": "0558b611680fac183c435ce182753914", "score": "0.57425296", "text": "com.hemayun.bblwheel.Bblwheel.Config getConfigsOrDefault(\n java.lang.String key,\n com.hemayun.bblwheel.Bblwheel.Config defaultValue);", "title": "" }, { "docid": "d098334a2e99fecb7de25053e462b6ae", "score": "0.57410514", "text": "public Config() {}", "title": "" }, { "docid": "09ef0b251c51776dac41463d61b00069", "score": "0.570018", "text": "@Override\n\tpublic Map<String, String> getConfig() {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "2bbb932bb0346dd3e711365c877970f4", "score": "0.5696596", "text": "com.hemayun.bblwheel.Bblwheel.ConfigEntryOrBuilder getItemOrBuilder();", "title": "" }, { "docid": "faa02aead13a05ef94e4f55082722804", "score": "0.5691558", "text": "public com.hemayun.bblwheel.Bblwheel.Config getConfigsOrThrow(\n java.lang.String key) {\n if (key == null) { throw new java.lang.NullPointerException(); }\n java.util.Map<java.lang.String, com.hemayun.bblwheel.Bblwheel.Config> map =\n internalGetConfigs().getMap();\n if (!map.containsKey(key)) {\n throw new java.lang.IllegalArgumentException();\n }\n return map.get(key);\n }", "title": "" }, { "docid": "c6d3aa5093dd1b2d00b960d5d3f92e0d", "score": "0.56860495", "text": "public interface ConfFactory extends BiFunction<Map<String, Object>, URI, Configuration> {}", "title": "" }, { "docid": "0f1bcf4c7021a1e4f9a6ff88b20f4013", "score": "0.5681594", "text": "public com.hemayun.bblwheel.Bblwheel.Config getConfigsOrThrow(\n java.lang.String key) {\n if (key == null) { throw new java.lang.NullPointerException(); }\n java.util.Map<java.lang.String, com.hemayun.bblwheel.Bblwheel.Config> map =\n internalGetConfigs().getMap();\n if (!map.containsKey(key)) {\n throw new java.lang.IllegalArgumentException();\n }\n return map.get(key);\n }", "title": "" }, { "docid": "532811c454ce53d58dd9abe2a1f401ea", "score": "0.5627972", "text": "com.hemayun.bblwheel.Bblwheel.ConfigEntry getItem();", "title": "" }, { "docid": "c26d788dab93a5066ee089f3b150bb2d", "score": "0.56054574", "text": "public interface AppConfig {\n\n\tboolean isDebug = true;\n\n\tint MAX_FACE_COUNT = 2;\n\tint NOSE_CENTER_INDEX = 34;\n}", "title": "" }, { "docid": "4237a79b01ddb1cbd8bf20dc962eebf2", "score": "0.55725867", "text": "Object getConfiguration();", "title": "" }, { "docid": "da74e9009889ff6143f35ee1103298ae", "score": "0.55656", "text": "ConfigInfo getConfig();", "title": "" }, { "docid": "5fc4b19521b4cbf35490cd271fee99e5", "score": "0.55171895", "text": "public interface Configuration extends PostConstruct {\n\n default void init() {\n getConfig().bind(this);\n }\n\n default Config getConfig() {\n String[] path = prefix().split(\"\\\\.\");\n\n Config config = Holders.getConfig();\n if (path.length == 0) {\n return config;\n } else {\n for (String entry : path) {\n config = config.config(entry);\n }\n return config;\n }\n }\n\n default String prefix() {\n return \"\";\n }\n}", "title": "" }, { "docid": "ea6038a777185fd51872d5f74b921064", "score": "0.5511173", "text": "ConfigPool getConfigPool();", "title": "" }, { "docid": "92c0a3016d3213bcab7dec2c53004fc0", "score": "0.5491899", "text": "C getConfiguration();", "title": "" }, { "docid": "251f970936fc2028b63511c2c0dc9f6c", "score": "0.54764354", "text": "public Object getConfig();", "title": "" }, { "docid": "0d95974f67609eda4746803209da0c61", "score": "0.54649067", "text": "@Override\r\n\tpublic void configure(Map<String, ?> arg0, boolean arg1) {\n\r\n\t}", "title": "" }, { "docid": "271d1c4a3685475836ce9240048cc9eb", "score": "0.54579026", "text": "private HashMap<String, Configuration> createConfigurationObjects() \r\n\t{\r\n\t\tHashMap<String, Configuration> configurations;\r\n\t\tconfigurations = new HashMap<String, Configuration>();\r\n\t\t// Create a class that implements Configuration\r\n\t\tString kernelComponenteName = \"kernel\";\r\n\t\tComponentConfiguration kernelConfiguration = \r\n\t\t\tnew ComponentConfiguration(kernelComponenteName); // component name\r\n\t\t// Put that object in the HashMap\r\n \tconfigurations.put(kernelComponenteName, kernelConfiguration);\t\t\r\n \treturn configurations;\r\n\t}", "title": "" }, { "docid": "f79b9bff81d22f765363a5594960951b", "score": "0.54543716", "text": "com.hemayun.bblwheel.Bblwheel.ConfigEntry getItems(int index);", "title": "" }, { "docid": "8e89bc99401ae6d9f898f726f8d3d48d", "score": "0.5415663", "text": "public Config() {\r\n\t}", "title": "" }, { "docid": "e41621852347f481e697bcdbc7cb0c8b", "score": "0.5406451", "text": "public Map< String, Object > getDefaultSettings();", "title": "" }, { "docid": "7cf432ecda5c36978fd86e0e97f85de1", "score": "0.5405976", "text": "public Config() {\r\n super();\r\n }", "title": "" }, { "docid": "9a1c746adf2dfe27563e42057c8ae593", "score": "0.5394912", "text": "private MawoConfiguration(final Properties properties) {\n\n configsMap = new HashMap<String, String>();\n\n configsMap.put(RPC_SERVER_HOSTNAME, properties\n .getProperty(RPC_SERVER_HOSTNAME, RPC_SERVER_HOSTNAME_DEFAULT));\n configsMap.put(RPC_SERVER_PORT,\n properties.getProperty(RPC_SERVER_PORT, RPC_SERVER_PORT_DEFAULT));\n\n configsMap.put(ZK_ADDRESS,\n properties.getProperty(ZK_ADDRESS, ZK_ADDRESS_DEFAULT));\n configsMap.put(ZK_PARENT_PATH,\n properties.getProperty(ZK_PARENT_PATH, ZK_PARENT_PATH_DEFAULT));\n configsMap.put(ZK_RETRY_INTERVAL_MS, properties\n .getProperty(ZK_RETRY_INTERVAL_MS, ZK_RETRY_INTERVAL_MS_DEFAULT));\n configsMap.put(ZK_SESSION_TIMEOUT_MS, properties\n .getProperty(ZK_SESSION_TIMEOUT_MS, ZK_SESSION_TIMEOUT_MS_DEFAULT));\n configsMap.put(ZK_RETRIES_NUM,\n properties.getProperty(ZK_RETRIES_NUM, ZK_RETRIES_NUM_DEFAULT));\n configsMap.put(ZK_ACL, properties.getProperty(ZK_ACL, ZK_ACL_DEFAULT));\n\n configsMap.put(JOB_BUILDER_CLASS,\n properties.getProperty(JOB_BUILDER_CLASS, JOB_BUILDER_CLASS_DEFAULT));\n\n configsMap.put(JOB_QUEUE_STORAGE_ENABLED,\n properties.getProperty(JOB_QUEUE_STORAGE_ENABLED, \"false\"));\n\n configsMap.put(CLUSTER_MANAGER_URL, properties\n .getProperty(CLUSTER_MANAGER_URL, DEFAULT_CLUSTER_MANAGER_URL));\n\n configsMap.put(WORKER_NUM_TASKS,\n properties.getProperty(WORKER_NUM_TASKS, WORKER_NUM_TASKS_DEFAULT));\n\n configsMap.put(WORKER_WORK_SPACE,\n properties.getProperty(WORKER_WORK_SPACE, WORKER_WORK_SPACE_DEFAULT));\n\n configsMap.put(AUTO_SHUTDOWN_WORKERS, properties.getProperty(\n AUTO_SHUTDOWN_WORKERS, String.valueOf(DEFAULT_AUTO_SHUTDOWN_WORKERS)));\n\n configsMap.put(MASTER_TASKS_STATUS_LOG_PATH, properties.getProperty(\n MASTER_TASKS_STATUS_LOG_PATH,\n String.valueOf(MASTER_TASKS_STATUS_LOG_PATH_DEFAULT)));\n\n configsMap.put(MASTER_DRAIN_EVENTS_TIMEOUT,\n properties.getProperty(MASTER_DRAIN_EVENTS_TIMEOUT,\n String.valueOf(MASTER_DRAIN_EVENTS_TIMEOUT_DEFAULT)));\n\n configsMap.put(WORKER_WHITELIST_ENV, properties.getProperty(\n WORKER_WHITELIST_ENV, WORKER_WHITELIST_ENV_DEFAULT));\n\n configsMap.put(MASTER_TEARDOWN_WORKER_VALIDITY_INTERVAL_MS,\n properties.getProperty(MASTER_TEARDOWN_WORKER_VALIDITY_INTERVAL_MS,\n MASTER_TEARDOWN_WORKER_VALIDITY_INTERVAL_MS_DEFAULT));\n\n }", "title": "" }, { "docid": "a92e21b1b461c16a50a63c374a207240", "score": "0.5364387", "text": "private Config() {\n }", "title": "" }, { "docid": "450a26b945b6f2a4c444f3f1caf13324", "score": "0.53353107", "text": "public interface ApiConfig {\n String BASE_URL = \"https://route.showapi.com/\";\n\n String NEED_CONTENT = \"needContent\";\n String MAX_RESULT = \"maxResult\";\n String NEED_HTML = \"needHtml\";\n String NEED_ALLLIST = \"needAllList\";\n String SHOWAPI_APPID = \"showapi_appid\";\n String SHOWAPI_SIGN = \"showapi_sign\";\n String PAGER = \"pager\";\n String TITLE = \"title\";\n}", "title": "" }, { "docid": "de3ab2bc88eb4518a2c4c21379bff65e", "score": "0.53099793", "text": "public abstract void config();", "title": "" }, { "docid": "e889456ad57ef07e913a7ece0319ffc1", "score": "0.5303397", "text": "Config createConfig();", "title": "" }, { "docid": "abe5582afcda22e51715d08b6082d19b", "score": "0.527526", "text": "public Map getConfiguration() throws RegistryException;", "title": "" }, { "docid": "1073cd4814102db64b1c91a717d33b70", "score": "0.5270816", "text": "private ApiKeyConfig(String configName) {\n config = Config.getInstance();\n mappedConfig = config.getJsonMapConfigNoCache(configName);\n setConfigData();\n setConfigList();\n }", "title": "" }, { "docid": "914ed26415dc5ed3309c739f161e6b4c", "score": "0.52697116", "text": "public com.hemayun.bblwheel.Bblwheel.ConfigOrBuilder getConfigOrBuilder() {\n return getConfig();\n }", "title": "" }, { "docid": "8273fb9a4e3fa36bd1fe1a190d239e97", "score": "0.5268468", "text": "public Map<Integer, Integer> getCbrsMap() { return constantBitratesMap; }", "title": "" }, { "docid": "964cf6e156358b0417d19d8e8d8c2349", "score": "0.5267177", "text": "java.util.List<org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NameStringPair> \n getConfigurationList();", "title": "" }, { "docid": "fd9b8bb679cbce1e86b719bb078db88b", "score": "0.5261037", "text": "public ConfigInfo() {\r\n\t\tsuper();\r\n\t}", "title": "" }, { "docid": "e7b5313e6d9277ae6789d1140cb9b295", "score": "0.5257161", "text": "void loadConfiguration(Dictionary<String, ?> props);", "title": "" }, { "docid": "a3c314c917b07b33ead33567d40857a3", "score": "0.52418566", "text": "public int getConfigsCount() {\n return configs_.size();\n }", "title": "" }, { "docid": "8d4eaadacca9f281e8b3f61e1eb4043e", "score": "0.5238766", "text": "public java.lang.String getConf();", "title": "" }, { "docid": "9eaccce11ebb4123b9b46c9897785d3d", "score": "0.5234966", "text": "yandex.cloud.api.mdb.clickhouse.v1.config.Clickhouse.ClickhouseConfig.Kafka getSettings();", "title": "" }, { "docid": "1dc8111a30d9a41c1509fda0b8054800", "score": "0.52323276", "text": "public interface Config {\n\n /**\n * Sets the unique identifier for the configuration.\n * The identifier is used to name shell scripts to invoke\n * the plugin and should not contain any spaces.\n *\n * @param id the identifier\n */\n public void setId(String id);\n\n /**\n * Gets the unique identifier for this configuration.\n *\n * @return the unique identifier\n */\n public String getId();\n\n\n /**\n * Sets the configuration version.\n *\n * @param version the version\n */\n public void setVersion(String version);\n\n /**\n * Gets the configuration version.\n *\n * @return the version\n */\n public String getVersion();\n\n /**\n * Sets the name of the configuration, as it will appear\n * in the GobyWeb user interface.\n *\n * @param name the name\n */\n public void setName(String name);\n\n /**\n * Gets the name of the configuration\n *\n * @return the name\n */\n public String getName();\n\n /**\n * Sets the help text to display in the GobyWeb user-interface.\n *\n * @param help the help text\n */\n public void setHelp(String help);\n\n /**\n * Gets the help text\n *\n * @return the help text\n */\n public String getHelp();\n\n /**\n * When non-null, database identifier stored by previous versions of GobyWeb. This field doesn't\n * have the requirement about containing spaces as it isn't used in scripts.\n *\n * @param dbLegacyId the database identifier\n */\n public void setDbLegacyId(String dbLegacyId);\n\n /**\n * Gets database identifier stored by previous versions of GobyWeb\n *\n * @return the database identifier\n */\n public String getDbLegacyId();\n\n /**\n * Sets the location of the configuration directory on the web server/development machine.\n */\n public void setDirectory(String pluginDirectory);\n\n /**\n * Gets the configuration directory\n *\n * @return the configuration directory\n */\n public String getDirectory();\n\n /**\n * Checks if the configuration is disabled or not\n *\n * @return true if the configuration is disabled, false otherwise\n */\n public boolean isDisabled();\n\n /**\n * Disables/enables the configuration. When disabled, the configuration can still have viewable objects that are made with it\n * but no NEW objects can be created using this configuration.\n */\n public void setDisabled(boolean disabled);\n\n /**\n * Gets a human readable description of the configuration type\n *\n * @return the description\n */\n public String getHumanReadableConfigType();\n\n /**\n * Validates the configuration. Call this method after unmarshalling a config to check that the configuration\n * is semantically valid. Returns null when no errors are found in the configuration, or a list of errors encountered.\n * This method also sets userDefinedValue for required options.\n *\n * @return list of error messages, or null when no errors are detected.\n */\n public void validate(List<String> errors);\n\n /**\n * Sets the template to use to render the options in a\n * graphical user interface.\n *\n * @param template the template\n */\n public void setUiTemplate(String template);\n\n /**\n * Gets the UI template.\n *\n * @return the template\n */\n public String getUiTemplate();\n\n /**\n * Validates the configuration identifier\n * @param type\n * @param id\n * @param errors\n */\n public void validateId(final String type, final String id, final List<String> errors);\n\n\n /**\n * This method called after the reading of the config.xml file\n */\n public void configFileReadEvent();\n\n /**\n * This method called after the configuration is loaded to allow any specific post-loading activity\n */\n public void loadCompletedEvent();\n\n}", "title": "" }, { "docid": "b03af0fa33fc2c09bddbd29d339d0d00", "score": "0.5224174", "text": "java.util.List<LampConfig>\n getConfigsList();", "title": "" }, { "docid": "df93ab820e1ce5f7d327daff1b48a6fa", "score": "0.52235395", "text": "public interface IConfig {\n\n}", "title": "" }, { "docid": "528f89366d96951f8abe9b8da9887103", "score": "0.52224165", "text": "private Map<String, String> getDesiredConfigMap(String clusterName,\n String versionTag,\n String configType,\n Map<String, String[]> keys) throws NoSuchParentResourceException, UnsupportedPropertyException, SystemException {\n ResourceProvider configResourceProvider = getResourceProvider(Resource.Type.Configuration);\n Predicate configPredicate = new PredicateBuilder()\n .property(ConfigurationResourceProvider.CONFIGURATION_CLUSTER_NAME_PROPERTY_ID)\n .equals(clusterName).and()\n .property(ConfigurationResourceProvider.CONFIGURATION_CONFIG_TYPE_PROPERTY_ID)\n .equals(configType).and()\n .property(ConfigurationResourceProvider.CONFIGURATION_CONFIG_TAG_PROPERTY_ID)\n .equals(versionTag).toPredicate();\n Set<Resource> configResources;\n try\n {\n configResources = configResourceProvider\n .getResources(PropertyHelper\n .getReadRequest(ConfigurationResourceProvider.CONFIGURATION_CLUSTER_NAME_PROPERTY_ID, ConfigurationResourceProvider.CONFIGURATION_CONFIG_TYPE_PROPERTY_ID, ConfigurationResourceProvider.CONFIGURATION_CONFIG_TAG_PROPERTY_ID), configPredicate);\n }\n catch (NoSuchResourceException e)\n {\n LOG.info(\"Resource for the desired config not found. \" + e);\n return Collections.emptyMap();\n }\n\n Map<String, String> mConfigs = new HashMap<String, String>();\n if (configResources != null)\n {\n for (Resource res : configResources)\n {\n Map<String, String> evaluatedProperties = null;\n for (Entry<String, String[]> entry : keys.entrySet())\n {\n String propName = null;\n String value = null;\n\n for (String pname : entry.getValue())\n {\n propName = pname;\n // For NN HA the property key contains\n // nameservice id\n Map<String, Object> properties = res\n .getPropertiesMap()\n .get(PROPERTIES_CATEGORY);\n if (properties != null)\n {\n for (Map.Entry<String, Object> propertyEntry : properties\n .entrySet())\n {\n if (propertyEntry.getKey()\n .startsWith(pname))\n {\n value = (String) propertyEntry\n .getValue();\n break;\n }\n }\n }\n if (null != value)\n {\n break;\n }\n }\n\n if (value != null && value.contains(\"${\"))\n {\n if (evaluatedProperties == null)\n {\n evaluatedProperties = new HashMap<String, String>();\n Map<String, Object> properties = res\n .getPropertiesMap()\n .get(PROPERTIES_CATEGORY);\n for (Map.Entry<String, Object> subentry : properties\n .entrySet())\n {\n String keyString = subentry.getKey();\n Object object = subentry.getValue();\n String valueString;\n if (object != null &&\n object instanceof String)\n {\n valueString = (String) object;\n evaluatedProperties\n .put(keyString, valueString);\n postProcessPropertyValue(keyString, valueString, evaluatedProperties, null);\n }\n }\n }\n }\n value = postProcessPropertyValue(propName, value, evaluatedProperties, null);\n LOG.debug(\"PROPERTY -> key: \" + propName + \", \" +\n \"value: \" + value);\n\n mConfigs.put(entry.getKey(), value);\n }\n }\n }\n return mConfigs;\n }", "title": "" }, { "docid": "2b677cb626c7e734c210f03960f6bd23", "score": "0.5211856", "text": "@ApiModelProperty(value = \"External account configurations [redacted on read]\")\n public Map<String, String> getConfigs() {\n return configs;\n }", "title": "" }, { "docid": "72a8911a1c0568ef6fe5c33fe8a56535", "score": "0.51990455", "text": "@Test\n void configValuesTest() {\n Map<String, String> source = Map.of(\"cache.management-enabled\", \"true\", \"cache.statistics-enabled\", \"true\",\n \"cache.store-by-value\", \"true\");\n\n Config config = Config.builder().addSource(ConfigSources.create(source).build()).build();\n\n CacheConfiguration<Long, String> cacheConfig = MicrostreamCacheConfigurationBuilder\n .builder(config.get(\"cache\"), Long.class, String.class).build();\n\n assertAll(() -> assertThat(\"getKeyType\", cacheConfig.getKeyType(), typeCompatibleWith(Long.class)),\n () -> assertThat(\"getValueType\", cacheConfig.getValueType(), typeCompatibleWith(String.class)),\n () -> assertThat(\"isManagementEnabled\", cacheConfig.isManagementEnabled(), is(true)),\n () -> assertThat(\"isStatisticsEnabled\", cacheConfig.isStatisticsEnabled(), is(true)),\n () -> assertThat(\"isStoreByValue\", cacheConfig.isStoreByValue(), is(true)));\n }", "title": "" }, { "docid": "5fb0e733a4535e628209dfe6801d1fae", "score": "0.5198678", "text": "public PatchConfig() \r\n {\r\n super();\r\n _replaceList = new Vector();\r\n }", "title": "" }, { "docid": "0e725c822f9e46692aff0ee05f02f95c", "score": "0.5194993", "text": "public LampConfigOrBuilder getConfigsOrBuilder(\n int index) {\n return configs_.get(index);\n }", "title": "" }, { "docid": "d1d35d08459e1a798dad411bf32ca8c0", "score": "0.51910955", "text": "public String configure( Map<String,String> args );", "title": "" }, { "docid": "98b1f66bea2c831991406b891a31ae00", "score": "0.5181561", "text": "public LampConfig getConfigs(int index) {\n return configs_.get(index);\n }", "title": "" }, { "docid": "df182ff8d4f1663a50df64917be587a6", "score": "0.5180568", "text": "public Config() {\n this(7, 10);\n }", "title": "" }, { "docid": "07ec4efaf665bf2e125b0f08e1c2838b", "score": "0.51791745", "text": "yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.ClusterConfig getConfig();", "title": "" }, { "docid": "cdd2adbe56630b820d8bc699d3c5406a", "score": "0.517891", "text": "public Configtags() \r\n {\r\n super();\r\n _configtagList = new java.util.ArrayList();\r\n }", "title": "" }, { "docid": "f2ddddad822e8de46417d5b87348c179", "score": "0.51746523", "text": "public interface ArenaConfig extends RegionConfig<ArenaConfig> {\n \n ConfigEntry<String> NAME = new EntryBuilder<String>(String.class, \"name\").def(\"\").build();\n\n ConfigEntry<String> WORLD = new EntryBuilder<String>(String.class, \"world\").def(\"\").build();\n}", "title": "" }, { "docid": "bf5b062b405c59f8234e141bb1df96bc", "score": "0.51688606", "text": "@Parameters(name = \"{0}\")\n public static List<Object[]> testedConfigs() {\n return ImmutableList.of(\n new Object[] {\n \"go\",\n new String[] {\n \"com/google/api/codegen/go/go_gapic.yaml\", \"library_gapic.yaml\",\n }\n });\n }", "title": "" }, { "docid": "5a2d0f20332e016e8675adaf679207e6", "score": "0.51654863", "text": "public Configuration() {\n map.put(\"path to xml config\", \"./\");\n map.put(\"building config\", map.get(\"path to xml config\") + \"building.xml\");\n\n map.put(\"traders_speed\", \"60\");\n map.put(\"warriors_speed\", \"60\");\n map.put(\"trade_time\", \"10\");\n map.put(\"attack_time\", \"15\");\n map.put(\"defence_time\", \"20\");\n\n map.put(\"mailUser Not Found\", \"Пользователя с таким именем не существует\");\n map.put(\"mailUser Is Empty\", \"Имя получателя не может быть пустым\");\n map.put(\"mailUser Body Is Empty\", \"Сообщение в письме не должно быть пустым\");\n map.put(\"mailUser Subject Is Empty\", \"Тема письма не должна быть пустой\");\n\n }", "title": "" }, { "docid": "8005e89ab360c78c0347fffb516b356d", "score": "0.5164063", "text": "public java.lang.String getConf (java.lang.String key, java.lang.String defaultValue) ;", "title": "" }, { "docid": "d8013f925d0cbb43e91318795da924da", "score": "0.5157872", "text": "@GET\n\t@Path(\"/config\")\n\tpublic Response config() {\n\t\treturn Response.ok().entity(config).build();\n\t}", "title": "" }, { "docid": "b426b5fa41c6261d3409733e1301844f", "score": "0.5155811", "text": "Configuration getConfiguration();", "title": "" }, { "docid": "b426b5fa41c6261d3409733e1301844f", "score": "0.5155811", "text": "Configuration getConfiguration();", "title": "" }, { "docid": "4c5dee5be55b2b2f0493f89a0191db96", "score": "0.51553357", "text": "private void initConfig() {\n }", "title": "" }, { "docid": "1b11e18a86b30bb6b24e5ae3b05df7fd", "score": "0.514696", "text": "public interface Configuration {\n\n\tpublic String getConfigurationDescription();\n\t\n\tpublic String getConfigurationComment();\n\t\n\tpublic List<String> getKeys();\n\t\n\tpublic String getValue(String key);\n\t\n\tpublic Collection<Entry> getConfigurationParameters();\n\t\n\tpublic Entry addEntry(String key, String value);\n\t\n\tpublic Entry addEntry(String key, String value, String refersTo);\n\t\n\tpublic Entry removeEntry(String key);\n\t\n}", "title": "" }, { "docid": "9327024eca7c9e3cdfc228776f497e0b", "score": "0.51436096", "text": "public com.hemayun.bblwheel.Bblwheel.Config getConfigsOrDefault(\n java.lang.String key,\n com.hemayun.bblwheel.Bblwheel.Config defaultValue) {\n if (key == null) { throw new java.lang.NullPointerException(); }\n java.util.Map<java.lang.String, com.hemayun.bblwheel.Bblwheel.Config> map =\n internalGetConfigs().getMap();\n return map.containsKey(key) ? map.get(key) : defaultValue;\n }", "title": "" }, { "docid": "26af219e6037b3dc891f4f769579040d", "score": "0.5138337", "text": "public interface ConfigableServerBootstrapFactory extends ServerBootstrapFactory, Configable {\n default ServerBootstrap get(int port , Map<String,Object> conf,List<Supplier<ChannelHandler>> suppliers){\n config(conf);\n return get(port,suppliers);\n }\n}", "title": "" }, { "docid": "d05f15f009d740b880ca20b6d6a90843", "score": "0.5135195", "text": "private static ImmutableMap<String, ?> getDefaultDirectPathServiceConfig() {\n ImmutableMap<String, Object> pickFirstStrategy =\n ImmutableMap.<String, Object>of(\"pick_first\", ImmutableMap.of());\n\n ImmutableMap<String, Object> childPolicy =\n ImmutableMap.<String, Object>of(\"childPolicy\", ImmutableList.of(pickFirstStrategy));\n\n ImmutableMap<String, Object> grpcLbPolicy =\n ImmutableMap.<String, Object>of(\"grpclb\", childPolicy);\n\n return ImmutableMap.<String, Object>of(\"loadBalancingConfig\", ImmutableList.of(grpcLbPolicy));\n }", "title": "" }, { "docid": "b7fe07f4df740e74dda54eaa968a1612", "score": "0.5133898", "text": "ImmutableMap<String, Branch> getBranchMap (Repository repository);", "title": "" }, { "docid": "d630f16480a33f65292a8b1fb58c9320", "score": "0.51307374", "text": "public SandstormConfig getConfig();", "title": "" }, { "docid": "86541df5e0e11954af9a4cc1b86facc4", "score": "0.51301974", "text": "private static CMap<Key,Object> loadFromSettings()\r\n\t{\n\t\treturn null;\r\n\t}", "title": "" }, { "docid": "ef9e2daa114dcf3fe98682adb3fffb4a", "score": "0.5130048", "text": "java.util.List<com.hemayun.bblwheel.Bblwheel.ConfigEntry> \n getItemsList();", "title": "" }, { "docid": "b794062a9cc4f9d5ef591dfcffcc6c50", "score": "0.51219654", "text": "public interface Configuration {\r\n\r\n void onNewBusRoute(int busRouteId);\r\n void onNewBusRouteOutstation(int busRouteId, int busStationId, int routePosition);\r\n boolean hasDirectBusRoutes(int busDepStationId, int busArrStationId);\r\n void setExpectedNumBusRoutes(int expectedNumBusRoutes);\r\n boolean isStationIdConfigured(int busStationId);\r\n int getActualNumBusRoutes();\r\n int getExpectedNumBusRoutes();\r\n}", "title": "" }, { "docid": "ff12138b8d8239dff07328a612417bfe", "score": "0.5121198", "text": "public Builder putAllConfigs(\n java.util.Map<java.lang.String, com.hemayun.bblwheel.Bblwheel.Config> values) {\n getMutableConfigs().putAll(values);\n return this;\n }", "title": "" }, { "docid": "71b0a3608ab0c4c503582216ecde5b59", "score": "0.5116028", "text": "yandex.cloud.api.mdb.clickhouse.v1.config.Clickhouse.ClickhouseConfig.ExternalDictionary getDictionaries(int index);", "title": "" }, { "docid": "c22feb1211521cd40b87d511369e02dd", "score": "0.5109665", "text": "@Test\n public void appConfigTest() {\n Map<String, Object> params = new HashMap<>();\n params.put(\"ping.icmp.delay\" ,7000);\n params.put(\"ping.http.max.response.time\" ,7000);\n params.put(\"report.url\" ,\"https://api./test/api/transaction\");\n params.put(\"log.file\" ,\"log.txt\");\n params.put(\"hosts\", \"google.com\");\n params.put(\"log.level\" ,\"warning\");\n params.put(\"ping.http.delay\" ,7000);\n params.put(\"trace.delay\" ,7000);\n params.put(\"ping.http.timeout\" ,7000);\n\n AssistImpl assist = new AssistImpl();\n Map step1 = assist.appConfig(new Properties());\n\n assertFalse(params.size() == step1.size() && params.containsValue(step1) );\n\n }", "title": "" }, { "docid": "f2c180835650b0b083cf3d7913396985", "score": "0.51068825", "text": "@Override\n public final List<Map<String, String>> taskConfigs(int maxTasks) {\n return taskSettings(maxTasks).stream()\n .map(TaskSetting::raw)\n .collect(Collectors.toUnmodifiableList());\n }", "title": "" }, { "docid": "9b825d98f68462f611ec731c317c6690", "score": "0.51064545", "text": "public com.hemayun.bblwheel.Bblwheel.Config getConfigsOrDefault(\n java.lang.String key,\n com.hemayun.bblwheel.Bblwheel.Config defaultValue) {\n if (key == null) { throw new java.lang.NullPointerException(); }\n java.util.Map<java.lang.String, com.hemayun.bblwheel.Bblwheel.Config> map =\n internalGetConfigs().getMap();\n return map.containsKey(key) ? map.get(key) : defaultValue;\n }", "title": "" }, { "docid": "b3a612c273d3f9411af703a10f7d46e6", "score": "0.5098524", "text": "public abstract Map<String, List<Constant>> getPartialConstantSet();", "title": "" }, { "docid": "effe6f6537d269b6d1668eb9a2677cff", "score": "0.50934774", "text": "public com.hemayun.bblwheel.Bblwheel.Config getConfig() {\n return config_ == null ? com.hemayun.bblwheel.Bblwheel.Config.getDefaultInstance() : config_;\n }", "title": "" }, { "docid": "babe0244e47b62322d333a493551c6c0", "score": "0.50805473", "text": "public interface ConfigAttributeProvider {\n\n Map<String, Collection<ConfigAttribute>> getConfigAttributeMap();\n}", "title": "" }, { "docid": "430658526661589e8d30b0c6935f1417", "score": "0.50693935", "text": "private void ReadFromConfig() {\r\n\r\n }", "title": "" } ]
210172db876551c6d9cdda092c1cf386
private List workOrderList = new ArrayList();
[ { "docid": "a8e1863c586495cb0db99f3a2b8bb503", "score": "0.0", "text": "public Integer getId() {\n return id;\n }", "title": "" } ]
[ { "docid": "91746ec657a2a43571e47e11a4109c08", "score": "0.68047076", "text": "public List<Order> getOrderList(){\n return dataAccess.getOrderList();\n }", "title": "" }, { "docid": "33bb13ff378ab132d51094bd8e10db61", "score": "0.6799247", "text": "public void startList(){\n list = new ArrayList();\n }", "title": "" }, { "docid": "4206f84942fafed58b2b8f4f330ad189", "score": "0.6604659", "text": "public ArrayList<Order> getOrderList() {\r\n\t\treturn orderList;\r\n\t}", "title": "" }, { "docid": "75d6964c468cb065500e34586ed642f9", "score": "0.655712", "text": "public void setOrderList(ArrayList<Order> orderList) {\r\n\t\tthis.orderList = orderList;\r\n\t}", "title": "" }, { "docid": "8ff3b1a8791eb349785acf71eded618a", "score": "0.6483599", "text": "public OrderList() {\r\n clear();\r\n }", "title": "" }, { "docid": "a47cefdd4830ee8f883c16e37265654e", "score": "0.6481012", "text": "@Override\n public List<WorkOrder> getItemList() {\n return dao.find();\n }", "title": "" }, { "docid": "50683c02e015c96d92e845760adf6808", "score": "0.64755243", "text": "public TaskList() {\n this.list = new ArrayList<>();\n }", "title": "" }, { "docid": "c50429cfc98582bbb37c32f8c11fc51d", "score": "0.6395944", "text": "public TaskList() {\n innerList = new ArrayList<>();\n }", "title": "" }, { "docid": "585f0561ff2b22f4b071d5ecedc7fdbe", "score": "0.6355742", "text": "List<Order> listOrders();", "title": "" }, { "docid": "c6c99501a9a132f485f25b5e0c410d84", "score": "0.63508904", "text": "public MyArrayList(){\r\n createList();\r\n }", "title": "" }, { "docid": "e4968da60c81cd635224c976f300fc57", "score": "0.62781405", "text": "public LiveData<List<Ticket>> getOrdersList() {\n if(ticketList == null){\n ticketList = new MutableLiveData<List<Ticket>>();\n }\n return ticketList;\n }", "title": "" }, { "docid": "d2d6a9a46669907c4554920659b65f9a", "score": "0.6257728", "text": "private ReferenceList getContactListOrderList( )\r\n {\r\n int nMax = ContactListHome.getMaxOrderContactList( getPlugin( ) );\r\n ReferenceList list = new ReferenceList( );\r\n\r\n for ( int i = 1; i < ( nMax + 1 ); i++ )\r\n {\r\n list.addItem( i, Integer.toString( i ) );\r\n }\r\n\r\n return list;\r\n }", "title": "" }, { "docid": "7453a4b3d2f40a9de8e196ca98096872", "score": "0.62519383", "text": "@Test\n public void testGetListOrder() {\n System.out.println(\"getListOrder\");\n OrderManager instance = new OrderManager();\n instance.getListOrder();\n ArrayList<Order> expResult = null;\n expResult.get(3); \n ArrayList<Order> result = instance.getListOrder();\n result.add(new Order(\"1\",\"Cam\", 1000, 10));\n assertEquals(expResult, result);\n // TODO review the generated test code and remove the default call to fail.\n // fail(\"The test case is a prototype.\");\n }", "title": "" }, { "docid": "a72bde6927f9bd7394656814b176bd57", "score": "0.62452495", "text": "private ProcessingList() {\n this.list = new TreeMap<Integer, Purchase>();\n this.consecutive = 1;\n observers = new ArrayList();\n }", "title": "" }, { "docid": "152bf62f2889ac9599b7ef430ce14af9", "score": "0.62402534", "text": "@Override\n\tpublic List<Order> orderlist() {\n\t\treturn dao.list();\n\t}", "title": "" }, { "docid": "ac65728913383107c9dfb97108e26d5f", "score": "0.6216289", "text": "public OrderedArrayList()\n {\n _data = new ArrayList<Comparable>(); \n }", "title": "" }, { "docid": "a726b95913e564f502014d36c667ea29", "score": "0.61900705", "text": "public OrderHistory()\n {\n hist = new ArrayList<>();\n }", "title": "" }, { "docid": "d90e61371ae82be74b03fc2c2b9b87df", "score": "0.61820686", "text": "void makeList();", "title": "" }, { "docid": "b2857b332b028e0fdfddf918d940b48b", "score": "0.6163031", "text": "@Override\n public void saveOrder() {\n SharedPreferences mSharedPrefs = mContext.getApplicationContext().getSharedPreferences(PREFS_FILE, Context.MODE_PRIVATE);\n SharedPreferences.Editor mEditor = mSharedPrefs.edit();\n mEditor.apply();\n\n List<Integer> sortedList = new ArrayList<>();\n\n //Collects the ids of all the workouts in their current order\n for (Workout workout : mWorkouts) {\n sortedList.add(workout.getId());\n }\n //Put IDs into JSON\n Gson gson = new Gson();\n String jsonSortedList = gson.toJson(sortedList);\n\n //Save json to Shared Prefs\n mEditor.putString(mWorkouts.get(0).getTitle(), jsonSortedList).commit();\n mEditor.commit();\n Toast.makeText(mContext, \"Saved order: \" + jsonSortedList + \" in: \" + mWorkouts.get(0).getTitle(), Toast.LENGTH_SHORT).show();\n }", "title": "" }, { "docid": "8e7b3097a864ab8b1cf2ef5fecd3dc06", "score": "0.61374533", "text": "public GroceryList(){\n\t\tgroceryList = new GroceryItemOrder[maxItems]; //Instantiating grocery list\n\t}", "title": "" }, { "docid": "fbb551b3bf01ba7c442919da2c333419", "score": "0.61176056", "text": "@Override\r\n\tpublic List<Public_order_return> list() {\n\t\treturn null;\r\n\t}", "title": "" }, { "docid": "8d464ffa05eb927d23992db0ac6a28c1", "score": "0.6114041", "text": "public Order get_order() { return order; }", "title": "" }, { "docid": "6c845abd4133ab92b3bdc98f1d5a672d", "score": "0.6102294", "text": "OrderedIntList()\n\t{\n\t\tlistArray = new int[10];\n\t}", "title": "" }, { "docid": "ae16c52c85041692753cb4893492efad", "score": "0.606547", "text": "public FoodList(){\n listOfFood = new ArrayList<>();\n }", "title": "" }, { "docid": "6f1e6311d856eeb7e3ab92ddbe8c8f00", "score": "0.60584056", "text": "public TaskList() {\n this.tasks = new ArrayList<Task>();\n }", "title": "" }, { "docid": "0d2f93605fff717d6a046d4093cd5375", "score": "0.6042747", "text": "public List<Order> getOrders();", "title": "" }, { "docid": "76cdcc8e29911a5333d543a7d1ecd6ca", "score": "0.6042184", "text": "public List(){\n this.start = null;\n }", "title": "" }, { "docid": "6084234b30e3b77522a28893bd9dc4c3", "score": "0.60029477", "text": "public TaskList(ArrayList<Listing> l) {\n this.list = l;\n }", "title": "" }, { "docid": "2f6e46af73315346d736e72dfbe5070f", "score": "0.5998734", "text": "public TaskList() {\n tasks = new ArrayList<Task>();\n }", "title": "" }, { "docid": "fe0f07604c4b4f6fa2b66ed148dd6aa8", "score": "0.59786606", "text": "public EnterpriseDataStore(){\n countryList = new ArrayList<>();\n proList = new ArrayList<>();\n fliList=new ArrayList<>();\n orderList = new OrderList();\n// airList=new ArrayList<>();\n// supList= new ArrayList<>();\n }", "title": "" }, { "docid": "ff33d320d23916fddd21c1089c554ed0", "score": "0.59592736", "text": "public TaskList() {\n this.tasks = new ArrayList<>();\n }", "title": "" }, { "docid": "ff33d320d23916fddd21c1089c554ed0", "score": "0.59592736", "text": "public TaskList() {\n this.tasks = new ArrayList<>();\n }", "title": "" }, { "docid": "7af3ce0812e94f4e017fc88503b66093", "score": "0.5956067", "text": "public GameList() {\n this.list = null; // initializes list to null\n }", "title": "" }, { "docid": "6e55b2304739946ef1b22ecf65d86a2b", "score": "0.5951559", "text": "public void updateList()\r\n\t{\r\n\t}", "title": "" }, { "docid": "b636bc68c314a55539d30cfb8bdc7814", "score": "0.5948009", "text": "List<Order> getOrders();", "title": "" }, { "docid": "b9ac4ab2a5b94ff71a43b6b8b02722ae", "score": "0.5931441", "text": "public int getOrder()\r\n {\r\n return order;\r\n }", "title": "" }, { "docid": "18b0c0aac66a05fd9b0595c1ca292def", "score": "0.5929063", "text": "public List<Order> getOrders() {\r\n return orders;\r\n }", "title": "" }, { "docid": "b59e23e767e3c9c1401fa9d37fce57ae", "score": "0.59249884", "text": "public void saveList(){\n }", "title": "" }, { "docid": "5c2b7c3c143d3e0317c895bae4abed7e", "score": "0.5922449", "text": "public GameList() {\r\n list = null;\r\n }", "title": "" }, { "docid": "ee1791ca07af9e4733cbbe76a8804d29", "score": "0.5919173", "text": "public TaskList(ArrayList<Task> storage) {\n this.tasks = storage;\n }", "title": "" }, { "docid": "fbe0271aed523bd6132175990168b040", "score": "0.5911498", "text": "MasterList() {\n masterList = new ArrayList<>();\n }", "title": "" }, { "docid": "984a4a086b04b3121ab59099066acb28", "score": "0.5907121", "text": "public DoubleOrderedList()\n {\n super();\n }", "title": "" }, { "docid": "a49063eec4cbb706e8a78f6843671dc6", "score": "0.590561", "text": "public PersonList() {\n list = new ArrayList<>();\n }", "title": "" }, { "docid": "b75fb058bcf31852780cf2b737a4a0fc", "score": "0.5903098", "text": "private void instanciarListas(){\n }", "title": "" }, { "docid": "06b6a9600170c9a02d60b4f2a49aad6f", "score": "0.5888611", "text": "public String getMyList(){\n return myList;\n }", "title": "" }, { "docid": "9c2df94207f488d4eb4ce96e747dd2e7", "score": "0.5886661", "text": "public static synchronized void setupList()\n {\n teamsList=new ArrayList<Team>();\n threadsList=new ArrayList<TeamThread>();\n }", "title": "" }, { "docid": "b04172933884ec33d697ca61c7862b19", "score": "0.5882775", "text": "public ShoppingCart() {\n itemsOrdered = new ArrayList();\n }", "title": "" }, { "docid": "42a9776df1b972be2a4a54ab70bcdb34", "score": "0.58771247", "text": "private ReferenceList getOrdersList( int nPortletId )\n {\n int nMax = PublishingService.getInstance( ).getMaxDocumentOrderByPortletId( nPortletId );\n ReferenceList list = new ReferenceList( );\n\n for ( int i = 1; i < ( nMax + 1 ); i++ )\n {\n list.addItem( i, Integer.toString( ( i ) ) );\n }\n\n return list;\n }", "title": "" }, { "docid": "418aab234062c947292ebbbb49c9603e", "score": "0.5870901", "text": "public TaskList(ArrayList<Task> taskinput)\n {\n if (taskinput.isEmpty())\n {\n taskitems = new ArrayList<>();\n System.out.println(\"OOPS!!! There is empty task\");\n }\n taskitems = taskinput;\n }", "title": "" }, { "docid": "418aab234062c947292ebbbb49c9603e", "score": "0.5870901", "text": "public TaskList(ArrayList<Task> taskinput)\n {\n if (taskinput.isEmpty())\n {\n taskitems = new ArrayList<>();\n System.out.println(\"OOPS!!! There is empty task\");\n }\n taskitems = taskinput;\n }", "title": "" }, { "docid": "9d25d110e6c1bf1c4cec720391d8b82a", "score": "0.5866235", "text": "public ArrayList<?> getOrderBy()\n {\n return order;\n }", "title": "" }, { "docid": "bbaaecab0706dd6264be53ce9260e81b", "score": "0.58524996", "text": "public List<BazaarOrder> getNewOrders();", "title": "" }, { "docid": "eca1059c32532f7595a01ae1a6a1dc9d", "score": "0.5845875", "text": "public TaskList() {\n tasks = new ArrayList<>();\n }", "title": "" }, { "docid": "eca1059c32532f7595a01ae1a6a1dc9d", "score": "0.5845875", "text": "public TaskList() {\n tasks = new ArrayList<>();\n }", "title": "" }, { "docid": "54bd6b6fe95639a20fd416cf49e21926", "score": "0.5826075", "text": "java.lang.String getWorkOrder();", "title": "" }, { "docid": "fcf2dfeb93ac686bb51c39564ed3dd11", "score": "0.5824331", "text": "public StockManager()\n {\n stock = new ArrayList<>();\n }", "title": "" }, { "docid": "fcf2dfeb93ac686bb51c39564ed3dd11", "score": "0.5824331", "text": "public StockManager()\n {\n stock = new ArrayList<>();\n }", "title": "" }, { "docid": "f1da6596d9f732a2e3f31cf7f072e460", "score": "0.5817983", "text": "TaskList getTaskList();", "title": "" }, { "docid": "25ee298c569fa8e8f02588446a03b41b", "score": "0.5817504", "text": "public JList\ngetList()\n{\n return list;\n}", "title": "" }, { "docid": "c27f1bdc29ba61ab804ab85e50564341", "score": "0.5816376", "text": "public ArrayPriorityQueue() {\n managedList.toArray();\n }", "title": "" }, { "docid": "488c34019c779f20b596878715e19405", "score": "0.5808078", "text": "public void addOrderToWaitingList(Order order) {\r\n waitingListModel.add(waitingListModel.size(), order);\r\n }", "title": "" }, { "docid": "d9bbf0018b6b5e3b8452c6241a0aa3d1", "score": "0.5803907", "text": "public void createList(){\r\n items = (E[])new Object[MAX_LIST]; \r\n NumItems = 0;\r\n frontqueue = 0;\r\n rearqueue=0;\r\n }", "title": "" }, { "docid": "748373093254c456ff0eff02b218d6e9", "score": "0.57943505", "text": "public List<WorkerStack> getList(){\r\n\t\treturn list;\r\n\t}", "title": "" }, { "docid": "a5b38d1720950877f8cff292082d3baa", "score": "0.57893234", "text": "@Override\n\t\t\tpublic void runOnList() {\n\n\t\t\t}", "title": "" }, { "docid": "e91370dc94b3b246274ac6cf7d09ae7d", "score": "0.57862693", "text": "public Order(){\n updateOrder();\n }", "title": "" }, { "docid": "ccc4629d2b998a3060ae354d39c856fa", "score": "0.5784242", "text": "@Before\n public void setUp()\n {\n list = new ArrayList();\n }", "title": "" }, { "docid": "6da3f7a5c7f08bc88dfdf341d2526b06", "score": "0.57734466", "text": "public MyBinarySearchSolution() {\n list = new ArrayList<>();\n }", "title": "" }, { "docid": "3ef4ab14892fed4fb9ea99be9a83f1d5", "score": "0.57661813", "text": "public void inOrder() {\n\t\t\n\t}", "title": "" }, { "docid": "9e059f00dbc8fb802fb0140012e05229", "score": "0.5752514", "text": "public List<ToDoList> getLists(){\n return this.toDoLists;\n }", "title": "" }, { "docid": "9815e86f9be1b4bc0be0541ffcc131bd", "score": "0.5742275", "text": "@Override\n\tpublic <O> List<O> getOrderList(Class<O> clazz, Order order,\n\t\t\tObject... cList) {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "77bacb1459ca0ff7fb864e395bd1c8cc", "score": "0.57389545", "text": "public ArrayList<Order> getBuyOrder() {\n return buyOrder;\n }", "title": "" }, { "docid": "82407b6f156a32ddff4c123bedd6448d", "score": "0.5731225", "text": "void saveOrder(List<MenuItem> orderList) throws RuntimeException;", "title": "" }, { "docid": "88e15af9bc564cb4788f99510b89e259", "score": "0.57307863", "text": "public InputList(){\r\n\tinputList = new ArrayList<Input>();\r\n }", "title": "" }, { "docid": "3ca11eb7022c2346398e122c894d7d09", "score": "0.5727317", "text": "List<Integer> setOrder(){\r\n\t\t\r\n\t\tfor (int i =1; i<=4; i++) {\r\n\t\t order.add(i);\r\n\t\t}\r\n\t\tCollections.shuffle(order);\r\n\t\t\r\n\t\treturn order;\r\n\t}", "title": "" }, { "docid": "f256bb03c285be087b554f11ce6d8c7b", "score": "0.5721086", "text": "public void returnList()\n {\n }", "title": "" }, { "docid": "6323bde2cda3908404eab21a6336dcfd", "score": "0.57171243", "text": "public void takeOrder();", "title": "" }, { "docid": "84b921f53886353ff7867c43576fc1a3", "score": "0.5710407", "text": "public ArrayList<Task> getTaskList();", "title": "" }, { "docid": "506aa09fbc36c93acfc27f89f758ddd8", "score": "0.57044756", "text": "public CompleteList(ArrayList<Planner> list) {\n listOfPlans = list;\n }", "title": "" }, { "docid": "ba13777cbd2c793b488bb84be7477953", "score": "0.56885594", "text": "public int getOrder() {\n return order;\n }", "title": "" }, { "docid": "d6ffd731b2590daee5e89a103159d1f6", "score": "0.5655092", "text": "@Override\n\tpublic List<Order> list() {\n\t\tList<Order> orderlist = new ArrayList<>();\n\t\tDatabase db = new Database();\n\t\ttry (Connection c = db.connection()) {\n\t\t\tStatement stmt = c.createStatement();\n\t\t\tResultSet rs = stmt.executeQuery(\"SELECT * FROM orders\");\n\t\t\twhile (rs.next()) {\n\t\t\t\torderlist.add(new Order(rs.getInt(\"id\"), rs.getString(\"item\"),rs.getDouble(\"price\"), rs.getString(\"customer\"), rs.getString(\"status\")));\n\n\t\t\t}\n\t\t} catch (SQLException e) {\n\t\t\te.printStackTrace();\n\t\t\t\n\t\t}\n\t\treturn orderlist;\n\t}", "title": "" }, { "docid": "2856dc3710c4c925a58360b168f8ffbc", "score": "0.565254", "text": "@Override\r\n\tpublic ArrayList<Task> getTaskList() {\n\t\tArrayList copy = listOfTasks;\r\n\t\t\r\n\t\treturn copy;\r\n\t}", "title": "" }, { "docid": "dc9abfdfc8fc5d26ce74728829a5a9aa", "score": "0.56491387", "text": "public void openList(){\n }", "title": "" }, { "docid": "cae6eb5f08fc2bc5561c1ff486564d9d", "score": "0.56486773", "text": "public Leaderboard()\n {\n x= new ArrayList<Integer>(); \n }", "title": "" }, { "docid": "26d6376c2baab2ec228655a45441f594", "score": "0.5647438", "text": "public List<WebElement> getTemporaryList() {\r\n return tempList;\r\n }", "title": "" }, { "docid": "2408347428b901e37240f0cc130690d1", "score": "0.56381154", "text": "public OrderStatus() {\r\n initComponents();\r\n //Clears lists of all entries\r\n clearLists();\r\n //Init models\r\n waitingListModel = (DefaultListModel)listWaiting.getModel();\r\n servedListModel = (DefaultListModel)listServed.getModel();\r\n }", "title": "" }, { "docid": "e30a0a727e1333387113d7513cca71e4", "score": "0.5637646", "text": "public static ArrayList<OrderDetail> listOrderDetail(ArrayList<OrderDetail> list) {\n\t\t@SuppressWarnings(\"resource\")\n\t\tScanner input = new Scanner(System.in);\n\t\tProduct product = new Product();\n\t\tOrderDetail ord = new OrderDetail();\n\t\tint temp = -1;\n\t\twhile (temp != 0) {\n\t\t\ttemp = menu();\n\t\t\tif (temp != 0) {\n\t\t\t\tproduct = new Product(ProductManager.NAME[temp - 1], ProductManager.PRICE[temp - 1]);\n\t\t\t\tSystem.out.println(\"Enter quantity: \");\n\t\t\t\tint quantity = input.nextInt();\n\t\t\t\tord = new OrderDetail(quantity, product);\n\t\t\t\tlist.add(ord);\n\t\t\t\tSystem.out.println(\"\\n---Add success.\\n\");\n\t\t\t}\n\t\t}\n\t\tif (list.size() == 0)\n\t\t\treturn null;\n\t\treturn list;\n\t}", "title": "" }, { "docid": "dc94c4164c4c750826d2ecb30a4ba3c3", "score": "0.5628714", "text": "public ArrayList<Point> getMovesList(){return moves; }", "title": "" }, { "docid": "4cf78fc97a1f55b7b7679c9964f8679d", "score": "0.5626035", "text": "public AddToList(DefaultListModel list)\n {\n this.list = list;\n }", "title": "" }, { "docid": "7775195d12eb796f764701d128a257b7", "score": "0.5625368", "text": "public void updateJoyList() {\n\n\t}", "title": "" }, { "docid": "86a1b61d21548384ec7d2d8b4abb98b7", "score": "0.5623952", "text": "public ArrayList<OrderAdmin> selectOrderList() {\n\t\tPreparedStatement pstmt = null;\r\n\t\tResultSet rs = null;\r\n\t\tArrayList<OrderAdmin> orderList = null;\r\n\t\tOrderAdmin orderAdmin = null;\r\n\t\ttry {\r\n\t\t\tpstmt = con.prepareStatement(\"SELECT * FROM menu\");\r\n\t\t\trs = pstmt.executeQuery();\r\n\r\n\t\t\tif(rs.next()){\r\n\t\t\t\t//글이 하나라도 있으면...\r\n\t\t\t\torderList = new ArrayList<OrderAdmin>();\r\n\t\t\t\tdo {\r\n\t\t\t\t\torderAdmin = new OrderAdmin();\r\n\t\t\t\t\torderAdmin.setMenu1(rs.getString(\"menu1\"));\r\n\t\t\t\t\torderAdmin.setMenu2(rs.getString(\"menu2\"));\r\n\t\t\t\t\torderAdmin.setMenu3(rs.getString(\"menu3\"));\r\n\t\t\t\t\torderAdmin.setMenu4(rs.getString(\"menu4\"));\r\n\t\t\t\t\torderAdmin.setMenu5(rs.getString(\"menu5\"));\r\n\t\t\t\t\torderAdmin.setMenu6(rs.getString(\"menu6\"));\r\n\t\t\t\t\torderAdmin.setMenu7(rs.getString(\"menu7\"));\r\n\t\t\t\t\torderAdmin.setMenu8(rs.getString(\"menu8\"));\r\n\t\t\t\t\torderAdmin.setMenu9(rs.getString(\"menu9\"));\r\n\t\t\t\t\torderAdmin.setMenu10(rs.getString(\"menu10\"));\r\n\t\t\t\t\torderAdmin.setMenu11(rs.getString(\"menu11\"));\r\n\t\t\t\t\torderAdmin.setMenu12(rs.getString(\"menu12\"));\r\n\t\t\t\t\torderAdmin.setMenuAddress(rs.getString(\"menuAddress\"));\r\n\t\t\t\t\torderAdmin.setMenuBhours(rs.getString(\"menuBhours\"));\r\n\t\t\t\t\torderAdmin.setMenuDel(rs.getString(\"menuDel\"));\r\n\t\t\t\t\torderAdmin.setMenuEhours(rs.getString(\"menuEhours\"));\r\n\t\t\t\t\torderAdmin.setMenuImage(rs.getString(\"menuImage\"));\r\n\t\t\t\t\torderAdmin.setMenuKey(rs.getString(\"menuKey\"));\r\n\t\t\t\t\torderAdmin.setMenuMap(rs.getString(\"menuMap\"));\r\n\t\t\t\t\torderAdmin.setMenuName(rs.getString(\"menuName\"));\r\n\t\t\t\t\torderAdmin.setMenuNum(rs.getInt(\"menuNum\"));\r\n\t\t\t\t\torderAdmin.setMenuPack(rs.getString(\"menuPack\"));\r\n\t\t\t\t\torderAdmin.setId(rs.getString(\"id\"));\r\n\t\t\t\t\torderList.add(orderAdmin);\r\n\t\t\t\t} while (rs.next());\r\n\t\t\t}\r\n\t\t} catch (Exception e) {\r\n\t\t\t// TODO: handle exception\r\n\t\t\te.printStackTrace();\r\n\t\t} \r\n\t\tfinally {\r\n\t\t\tclose(rs);\r\n\t\t\tclose(pstmt);\r\n\t\t}\r\n\t\treturn orderList;\r\n\t}", "title": "" }, { "docid": "e134e5efc3763c4d548141e675761903", "score": "0.56229174", "text": "public TaskList(List<Task> taskList) {\n this.taskList = taskList;\n }", "title": "" }, { "docid": "42522474e916f3c7f3989f564b25bcc5", "score": "0.5615476", "text": "public TrackOrder(){\n\t}", "title": "" }, { "docid": "0f781b1c7ae32128a0ed49f47bcdd48d", "score": "0.56149316", "text": "public List getList() {\n return list;\n }", "title": "" }, { "docid": "5955ea7b045f01c4b364af8464908c9a", "score": "0.56079996", "text": "public WaitingList() {\r\n\t\t// TODO: populate waitingListArray from DB\r\n\t}", "title": "" }, { "docid": "0f7d45bd008544d0eb32645b8db89479", "score": "0.5599625", "text": "private JList getWaypointList() {\r\n\t\tif (waypointList == null) {\r\n\t\t\tmodel = new DefaultListModel();\r\n\t\t\twaypointList = new JList(model);\r\n\t\t}\r\n\t\treturn waypointList;\r\n\t}", "title": "" }, { "docid": "85d63119e570f7e0728e2ca992e8fe15", "score": "0.5593959", "text": "public ArrayList<Order> getSellOrder() {\n return sellOrder;\n }", "title": "" }, { "docid": "0af99943c2246a16dd4de505bd32f1ff", "score": "0.5588287", "text": "public List<T> inOrderResult() {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "be1321a326f28b77fb84e70b58565556", "score": "0.55634624", "text": "public TaskList(List<Task> taskArr) {\n super(taskArr);\n }", "title": "" }, { "docid": "289cecf31d31834262e04b2756877c13", "score": "0.55631375", "text": "private void prepareMyList(){\n myList = new ArrayList<>();\n /*myList.add(\"Turno 1\");\n myList.add(\"Turno 2\");\n myList.add(\"Turno 3\");\n myList.add(\"Turno 4\");\n myList.add(\"Turno 5\");\n myList.add(\"Turno 6\");\n */\n /*myList.add(new MyObject(\"Wednesday\", 90));\n myList.add(new MyObject(\"Thursday\", 30));\n myList.add(new MyObject(\"Friday\", 62));\n myList.add(new MyObject(\"Saturday\", 65));\n */\n }", "title": "" }, { "docid": "66d3fe99a70a6a5c9e3f6423648b05c3", "score": "0.55630636", "text": "public AddQuotationBean() {\n eorderList = new ArrayList<EOrder>();\n }", "title": "" }, { "docid": "2e36aeb458298ee054c954b0fb3a7820", "score": "0.55580676", "text": "IList<T> buildList() {\n return new MtList<T>();\n }", "title": "" } ]
782110ba5804f1e70a087293534aa76f
This method was generated by MyBatis Generator. This method corresponds to the database table ecs_ecsmart_article
[ { "docid": "75570584ebb5f67d24f08b069e85d78c", "score": "0.0", "text": "public Criteria or() {\n Criteria criteria = createCriteriaInternal();\n oredCriteria.add(criteria);\n return criteria;\n }", "title": "" } ]
[ { "docid": "3e0ccae2b751a1918eabf72045c6beaf", "score": "0.62539357", "text": "public interface ArticleMapper {\n\n @Insert({\"insert into tb_article(title,content,author,create_time,article_status,status) \" +\n \"values(#{title},#{content},#{author},#{createTime},#{articleStatus},#{status})\"})\n int save(TbArticlePO articlePO);\n\n @Select({\"select * from tb_article\"})\n List<TbArticlePO> selectArticleList();\n}", "title": "" }, { "docid": "936ce366314c3dce133d34d521e3fd73", "score": "0.6090211", "text": "@Override\r\n\tpublic void saveOrUpdateArticle(Integer id, String name, double price,\r\n\t\t\tdouble discount, Integer idx, Integer brandId, Integer menuId,\r\n\t\t\tInteger channelId, String imgs, String properties,\r\n\t\t\tString homepageImg, Integer userId) {\n\t\t\r\n\t\tArticleMapper m=getSqlSession().getMapper(ArticleMapper.class);\r\n\t\t\r\n\t\tArticle a=new Article();\r\n\t\ta.setBrandId(brandId);\r\n\t\ta.setcDt(new Date());\r\n\t\ta.setChannelId(channelId);\r\n\t\ta.setDiscount(discount);\r\n\t\ta.setId(id);\r\n\t\ta.setIdx(idx);\r\n\t\ta.setMenuId(menuId);\r\n\t\ta.setName(name);\r\n\t\ta.setPrice(price);\r\n\t\ta.setuDt(new Date());\r\n\t\ta.setUserId(userId);\r\n\t\t\r\n\t\tif(homepageImg!=\"0\"){\r\n\t\t\ta.setHomepageImg(homepageImg);\r\n\t\t}\r\n\t\t\r\n\t\tif(id==null){\r\n\t\t\tm.insert(a);\r\n\t\t}else{\r\n\t\t\tm.updateByPrimaryKey(a);\r\n\t\t}\r\n\r\n\t\tif(imgs!=null){\r\n\t\t\tString[] paths=imgs.split(\",\");\r\n\t\t\tArticleImgMapper m2=this.getSqlSession().getMapper(ArticleImgMapper.class);\r\n\t\t\t\r\n\t\t\tfor(String path:paths){\r\n\t\t\t\tArticleImg img=new ArticleImg();\r\n\t\t\t\timg.setArticleId(a.getId());\r\n\t\t\t\timg.setPath(path.replaceAll(\"-\", \"/\"));\r\n\t\t\t\tm2.insert(img);\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\tif(properties!=null){\r\n\t\t\tArticlePropertyMapper m3=this.getSqlSession().getMapper(ArticlePropertyMapper.class);\r\n\t\t\tString[] props=properties.split(\",\");\r\n\t\t\tint i=0;\r\n\t\t\tfor(String p:props){\r\n\t\t\t\ti++;\r\n\t\t\t\tString[] nv=p.split(\"-\");\r\n\t\t\t\tString n=nv[0];\r\n\t\t\t\tString v=nv[1];\r\n\t\t\t\tString type=nv[2];\r\n\t\t\t\t\r\n\t\t\t\tArticleProperty o=new ArticleProperty();\r\n\t\t\t\to.setArticleId(a.getId());\r\n\t\t\t\to.setcDt(new Date());\r\n\t\t\t\to.setIdx(i);\r\n\t\t\t\to.setName(n);\r\n\t\t\t\to.setuDt(new Date());\r\n\t\t\t\to.setValue(v);\r\n\t\t\t\to.setType(type);\r\n\t\t\t\tm3.insert(o);\r\n\t\t\t}\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "2a4a7d7dd74594848e76e83738597090", "score": "0.602092", "text": "@Override\n public Article mapRow(ResultSet rs) {\n try {\n //create object with data from database\n int id = rs.getInt(1);\n String title = rs.getString(2);\n String image = new DBContext().getResource() + rs.getString(3);\n String content = rs.getString(4);\n Date date = rs.getDate(5);\n String author = rs.getString(6);\n Article article = new Article(id, title, image, content, date, author);\n\n return article;\n } catch (SQLException e) {\n System.out.println(\"Can't take Article\");\n return null;\n }\n }", "title": "" }, { "docid": "71a51c27d165f3bd12df8342049baf66", "score": "0.58083403", "text": "@Override\r\n\tpublic List<Article> getAllArticle() {\n\t\treturn dao.getAllArticle();\r\n\t}", "title": "" }, { "docid": "c3b713c3efb079a5ff40df8f63a5a8df", "score": "0.5792611", "text": "@Override\n\tpublic Article getArticle(Integer articleId) {\n\t\tString hql = \"from Article a where a.articleId=?\";\n\t\tQuery query = sessionFactory.getCurrentSession().createQuery(hql);\n\t\tquery.setLong(0, articleId);\n\t\treturn (Article) query.uniqueResult();\n\t}", "title": "" }, { "docid": "cf6ccc228076011ece958300d3b098a3", "score": "0.57075", "text": "public interface ArticleDAO {\n// /**\n// * This method used to get all article from database\n// *\n// * @return list: List of Article\n// * @throws Exception\n// */\n// public ArrayList<ArticleEntity> getAllArticle() throws Exception;\n /**\n * This method used to get top n recent article from database\n *\n * @param number <code>Integer</code>\n * @return list: List of Article\n * @throws Exception\n */\n public ArrayList<ArticleEntity> getRecentArticle(int number) throws Exception;\n /**\n * This method used to get an article by id from database\n *\n * @param ArticleId <code>Integer</code>\n * @return ArticleEntity\n * @throws Exception\n */\n public ArticleEntity getArticleById(int ArticleId) throws Exception;\n /**\n * This method used to get article from database that was search by text\n *\n * @param text <code>String</code>\n * @param pageIndex <code>Integer</code>\n * @param pageSize <code>Integer</code>\n * @return list: List of Article\n * @throws Exception\n */\n public List<ArticleEntity> searchByTitle(String text, int pageIndex, int pageSize) throws Exception;\n /**\n * This method used to get number of article was search by text\n *\n * @param text <code>String</code>\n * @return Integer\n * @throws Exception\n */\n public int countArticle(String text) throws Exception;\n}", "title": "" }, { "docid": "4dc26f04c1f4855992fd415d148a216e", "score": "0.568557", "text": "@Override\r\n\tpublic List<ArticleImg> listArticleImgByArticleId(Integer articleId) {\n\t\tArticleImgMapper m=this.getSqlSession().getMapper(ArticleImgMapper.class);\r\n\t\tArticleImgExample e=new ArticleImgExample();\r\n\t\te.createCriteria().andArticleIdEqualTo(articleId);\r\n\t\treturn m.selectByExample(e);\r\n\t}", "title": "" }, { "docid": "fcc9acf4b554523929ae301af010076d", "score": "0.5657268", "text": "@Override\n\tpublic int addArticle(Article article) {\n\t\tSerializable id =sessionFactory.getCurrentSession().save(article);\t \n\t\treturn (Integer) id;\n\t}", "title": "" }, { "docid": "82ef77ce10b9c23b0c051f3b2f84677d", "score": "0.5649233", "text": "public ArticleEntity getArticleById(int ArticleId) throws Exception;", "title": "" }, { "docid": "acba1cc7eb6f05f95042244785686a6f", "score": "0.5604624", "text": "public void articleCreation(Article article)throws SQLException{\n ArrayList <Integer>arrayList =isArticleAlreadyExist(article);\n if (arrayList.get(0)==0) {\n prst = con.prepareStatement(\"insert into Articles(Name,Author,Price,Keywords,is_reference,Journal,Editor,Date) values(?,?,?,?,?,?,?,?)\");\n prst.setString(1, article.getTitle());\n prst.setString(2, article.getAuthor());\n prst.setInt (3, article.getPrice());\n prst.setString(4, article.getKeyWords());\n prst.setBoolean(5, article.getReference());\n prst.setString(6,article.getJournal());\n prst.setString(7,article.getEditor());\n prst.setString(8,article.getDate());\n prst.executeUpdate();\n //находим последний добавленный ID статьи и запоминаем его, чтоб потом кинуть его в таблицу копий\n Statement stmt = con.createStatement();\n ResultSet rsInside;\n rsInside = stmt.executeQuery(\"SELECT id FROM Articles\");\n int id_Of_material = 0;\n while (rsInside.next())\n id_Of_material = rsInside.getInt(1);\n prst = con.prepareStatement(\"insert into Copy (id_of_original,Owner,Time_left) values(?,?,?)\");\n\n prst.setInt(1,id_Of_material);\n prst.setInt(2,0);\n prst.setInt(3,999);\n prst.executeUpdate();\n }else{\n prst = con.prepareStatement(\"insert into Copy (id_of_original,Owner,Time_left) values(?,?,?)\");\n prst.setInt(1,arrayList.get(1));\n prst.setInt(2,0);\n prst.setInt(3,999);\n prst.executeUpdate();\n }\n }", "title": "" }, { "docid": "cfaf600c7a22b963e58ba19739eb8268", "score": "0.56028855", "text": "public void setArticleId(String articleId) {\n this.articleId = articleId;\n }", "title": "" }, { "docid": "c4ae6f6b664462286a9a88e26d20ab1e", "score": "0.55799985", "text": "public int getArticleId() {\n return articleId;\n }", "title": "" }, { "docid": "cfebc10dafa4728f6dbe90d223188ce3", "score": "0.5568586", "text": "CmsArticle selectByPrimaryKey(String id);", "title": "" }, { "docid": "33d1db0c09c57f41e08005a03b074616", "score": "0.5555075", "text": "public static List<Article> getAllArticle() {\n\t\tString requestGetAllUser = \" select * from article\";\n\t\tList<Article> listArticle = null;\n\t\tConnection c = ConnexionManager.getConnexion();\n\t\ttry {\n\t\t\tStatement st = c.createStatement();\n\t\t\tResultSet rs = st.executeQuery(requestGetAllUser);\n\t\t\tlistArticle = new ArrayList<Article>();\n\n\t\t\twhile (rs.next()) {\n\t\t\t\tArticle art = new Article();\n\n\t\t\t\tart.setIdArticle(rs.getInt(\"idArticle\"));\n\t\t\t\tart.setContenu(rs.getString(\"contenu\"));\n\t\t\t\tart.setIdUser(rs.getInt(\"idUser\"));\n\t\t\t\tart.setNomArticle(rs.getString(\"nomArticle\"));\n\t\t\t\tlistArticle.add(art);\n\t\t\t}\n\t\t} catch (SQLException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn listArticle;\n\t}", "title": "" }, { "docid": "ec77ebb5c5ae617533178db6a6d86c1d", "score": "0.55316067", "text": "@Override\n\tpublic void insert(Panier article) throws DALException {\n\n\t}", "title": "" }, { "docid": "59f6613660e3d869f515b159206181f3", "score": "0.5518147", "text": "@Repository\npublic interface ArticleDao extends CrudRepository<Article, Long> {\n\t\n\t/**\n\t * List articles of an author methods return articles of given author.\n\t *\n\t * @param author the author\n\t * @return the list\n\t */\n\t@Query(\"SELECT a FROM Article a WHERE LOWER(a.author) = LOWER(:author)\")\n public List<Article> listArticlesOfAnAuthor(@Param(\"author\") String author);\n\t\n\t/**\n\t * List articles of given keyword methods return articles of given keyword.\n\t *\n\t * @param keywords the keywords\n\t * @return the list\n\t */\n\t@Query(\"SELECT a FROM Article a WHERE a.keywords LIKE CONCAT('%',:keywords,'%')\")\n\tList<Article> listArticlesOfGivenKeyword(@Param(\"keywords\") String keywords);\n\t\n\t/**\n\t * List articles of given period.\n\t *\n\t * @param fromDate the from date\n\t * @param toDate the to date\n\t * @return the list\n\t */\n\t@Query(\"SELECT a FROM Article a WHERE a.publishDate between :fromDate and :toDate\")\n\tList<Article> listArticlesOfGivenPeriod(@Param(\"fromDate\") Date fromDate, @Param(\"toDate\") Date toDate);\n\t\n\t\n}", "title": "" }, { "docid": "f02cda04bb1e51318012d04ada28a825", "score": "0.5458147", "text": "@Override\n\tpublic Article selectArticlesById(Article article) {\n\t\treturn articleDao.selectArticlesById(article);\n\t}", "title": "" }, { "docid": "4e881bd5ef9a16021bcf258adfd55391", "score": "0.5452467", "text": "@Transactional\r\n\tpublic Long create(ArticleEntity article){\r\n\t\t\t\t\t\t\r\n\t\tarticleDao.create(article);\r\n\t\treturn article.getId();\r\n\t\t\r\n\t}", "title": "" }, { "docid": "2d91119b5cc6746fc9802f9bff97f9a5", "score": "0.5446281", "text": "@Override\r\n\tpublic List<ArticleProperty> listArticlePropertyByArticleId(\r\n\t\t\tInteger articleId) {\n\t\tArticlePropertyMapper m=this.getSqlSession().getMapper(ArticlePropertyMapper.class);\r\n\t\tArticlePropertyExample e=new ArticlePropertyExample();\r\n\t\te.createCriteria().andArticleIdEqualTo(articleId);\r\n\t\treturn m.selectByExample(e);\r\n\t}", "title": "" }, { "docid": "aa3f07f8b879184732da46629a282715", "score": "0.5439522", "text": "public void setArticleid(Integer articleid) {\r\n this.articleid = articleid;\r\n }", "title": "" }, { "docid": "4db51007ef228804794858576233e133", "score": "0.54384995", "text": "public interface ArticleMapper {\n\n public List<Article> findAll();\n\n public List<Article> findAarticleByType(int articleTypeId);\n\n public Article findArticleById(int articleId);\n\n\tpublic void updateReadTime(@Param(\"id\")int id,@Param(\"count\")int count);\n\n\tpublic List<Article> findAllByOrder();\n\n\tpublic List<Article> findSort();\n}", "title": "" }, { "docid": "2459e43692d69de420ec3faa172e9c29", "score": "0.5436574", "text": "public Long getArticleid() {\n return articleid;\n }", "title": "" }, { "docid": "d375c720b3f7fa5840f80c70be8b4a13", "score": "0.5433895", "text": "public List<Article> selectAllArticles() {\n\t\tList<Article> articles = new ArrayList<>();\n\t\t// Step 1: Establishing a Connection\n\t\ttry (Connection connection = conx.getConnection();\n\n\t\t\t\t// Step 2:Create a statement using connection object\n\t\t\tPreparedStatement preparedStatement = connection.prepareStatement(SELECT_ALL_ARTICLE);) {\n\t\t\tSystem.out.println(preparedStatement);\n\t\t\t// Step 3: Execute the query or update query\n\t\t\tResultSet rs = preparedStatement.executeQuery();\n\t\t\t// Step 4: Process the ResultSet object.\n\t\t\twhile (rs.next()) {\n\t\t\t\tint id = rs.getInt(\"id\");\n\t\t\t\tString name = rs.getString(\"name\");\n\t\t\t\tarticles.add(new Article(id, name));\n\t\t\t}\n\t\t} catch (SQLException e) {\n\t\t\t printSQLException(e);\n\t\t}\n\t\treturn articles;\n\t}", "title": "" }, { "docid": "2dc5417e0c6c4cd4450f4d31817be1cd", "score": "0.5422877", "text": "@POST\n @Produces(MediaType.APPLICATION_JSON)\n public int add(Article article) throws SQLException{\n return articleRepo.add(article);\n }", "title": "" }, { "docid": "45d48802032f7282705cb7150d6813ae", "score": "0.54191047", "text": "@Override\n\tpublic void update(Panier article) throws DALException {\n\n\t}", "title": "" }, { "docid": "bda54faf897f049bf523606d57e52071", "score": "0.5418635", "text": "public interface ArticleDAO {\n public boolean add(String title,String summary,String content);\n public boolean delete(int id);\n public Article get(int id);\n public boolean modify(int id,String title,String summary,String content);\n public int size();\n public List<Map> get(int start, int size);\n public boolean addReadNum(int id);\n public boolean setArticleTop(int id);\n public Article getArticleTop();\n public List<Map> getRecommendArticles();\n}", "title": "" }, { "docid": "9de3bab397a6c2086499e23387f18301", "score": "0.54142106", "text": "public interface ArticleMapper {\n\n List<Map<String,Object>> queryArticleMainForPage(Map<String,Object> param);\n\n List<Article> selectArticleForPage(Map<String,Object> param);\n\n int selectArticleForPageCount(Map<String,Object> param);\n\n List<Article> hotArticle();\n\n Article getArticle(Long articleId);\n\n void insertArticle(Article article);\n\n void insertPicture(Map<String,Object> param);\n\n int deletePictures(Map<String,Object> param);\n\n int updateArticle(Article article);\n\n int deleteArticle(Long articleId);\n\n List<Map<String,Object>> getUnSelectedModule(Long articleId);\n\n List<Map<String,Object>> getSelectedModule(Long articleId);\n\n List<Article> getModuleArticles(Map<String,Object> param);\n\n List<Map<String,Object>> getModulesByPosition(String position);\n\n int deleteModuleArticle(Long articleId);\n\n void insertModuleArticle(Map<String,Object> param);\n\n void insertArticleTag(Map<String,Object> param);\n\n int deleteTagsByArticleId(Long articleId);\n\n}", "title": "" }, { "docid": "bdbcc0b975feaa832cab249aa7ef2adc", "score": "0.5409386", "text": "public void setArticleid(Long articleid) {\n this.articleid = articleid;\n }", "title": "" }, { "docid": "c383e622c334afd4fe9f269495f83cc4", "score": "0.53840107", "text": "@Override\r\n\tpublic int addArticle(Article article) {\n\t\treturn aticleMapper.addArticle(article);\r\n\t}", "title": "" }, { "docid": "23e090eb9f0bd02afbce2f9b6208e055", "score": "0.5379528", "text": "public interface ArticleDao {\n// public Article getArticleById(int id);\n// public Article getArticleByTitile(String title);\n// public List<Article> getArticlesByKeyword(String keyword);\n// public List<Article> getArticlesByTag(Tag tag);\n// public List<Article> getArticlesByCategory(Category category);\n// public List<Article> getRecentArticles(int num);\n// public List<Article> getRecentArticles();\n//\n// public void addArticle(Article article);\n// public void updateArticle(Article article);\n// public void deleteArticle(Article article);\n}", "title": "" }, { "docid": "1f4b89aaafcbbba8eb2a53b77fada5b3", "score": "0.5358342", "text": "public interface ArticleDAO {\n\n void saveArticle(Article article);\n\n List<Article> getArticlesByUserId(long articleUserId);\n\n void deleteByArticleId(long articleId);\n\n String getArticleLocationByArticleId(long articleId);\n}", "title": "" }, { "docid": "ca203f858fcc37718abdfe7ba21ee0d0", "score": "0.5313727", "text": "@Override\n\tpublic List<Article> getArticleList(Category category) {\n\t\tString hql = \"from Article a where a.category.categoryId=? ORDER BY a.writenTime desc\";\t\n\t\t//String hql = \"from Article a,Tag b, TagRelationship c where a.category.categoryId=? and c.article.articleId=a.articleId and c.tag.tagId=b.tagId ORDER BY a.writenTime\";\t\t \n\t\tQuery query = sessionFactory.getCurrentSession().createQuery(hql);\n\t\tquery.setLong(0, category.getId());\n\t\treturn query.list();\n\t \n\t}", "title": "" }, { "docid": "941defc1f17a272ad75b3e60f7f8a8d8", "score": "0.5310678", "text": "@Override\n\tpublic int addArticle(Article article) {\n\t\treturn articleDao.addArticle(article);\n\t}", "title": "" }, { "docid": "3d467f60fb1872b1f2229bf969295cf8", "score": "0.5305996", "text": "public ArticleTypeDao() {\n\t\tsuper(ArticleType.ARTICLE_TYPE, com.school.cbis.domain.tables.pojos.ArticleType.class);\n\t}", "title": "" }, { "docid": "514550a194b30399182ba3d7f7998e1e", "score": "0.52977407", "text": "@Override\r\n\tpublic Article selectByPrimaryKey(String articleId) {\n\t\treturn articleDao.selectByPrimaryKey(articleId);\r\n\t}", "title": "" }, { "docid": "1e9452eb9cbede5617c2d8b35d74690f", "score": "0.5278954", "text": "public interface ArticleDao extends CrudDao<Article> {\n\n\n\n\n}", "title": "" }, { "docid": "338b24303d4f5b9cc64c6677ca0ecf29", "score": "0.527725", "text": "@Transactional\r\n\tpublic void update(ArticleEntity article){\r\n\t\t\t\t\t\t\r\n\t\tarticleDao.update(article);\r\n\t\t\r\n\t}", "title": "" }, { "docid": "eb9e05308c7c5252aa1a5e94e144366d", "score": "0.52540976", "text": "public Integer getArticleid() {\r\n return articleid;\r\n }", "title": "" }, { "docid": "44af35e96b0957989a3868c3ea6d2791", "score": "0.52444166", "text": "@Override\n\tpublic ArrayList<ArticleVO> getAllArticle() {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "af649c5cba68cc8749f4721df11a1f12", "score": "0.52420145", "text": "private void ajoutArticle(Article article) throws SQLException {\n Vector donnees = new Vector();\n donnees.addElement(article.getCode().toString());\n donnees.addElement(article.getLibelle());\n article.setMarque(SingletonData.getSingletonData().getMarqueDAO().queryForId(article.getMarque().getCode()));\n donnees.addElement(article.getMarque().getLibelle());\n donnees.addElement(article.getDescriptionCourte());\n donnees.addElement(article.getQuantite());\n donnees.addElement(article.getPrixHT());\n article.setTVA(SingletonData.getSingletonData().getTvaDAO().queryForId(article.getTVA().getCode()));\n donnees.addElement(article.getTVA().getTaux());\n donnees.addElement(article.isVisibilite());\n modelTable.addRow(donnees);\n }", "title": "" }, { "docid": "a06795594d7ae43a9ff89ec87342a4a5", "score": "0.521654", "text": "@Override\r\n\tpublic List<Article> listArticleByMenuId(Integer menuId) {\n\t\t\r\n\t\tArticleMapper m=getSqlSession().getMapper(ArticleMapper.class);\r\n\t\tArticleExample ex=new ArticleExample();\r\n\t\t\r\n\t\tex.createCriteria().andMenuIdEqualTo(menuId);\r\n\t\t\r\n\t\treturn m.selectByExample(ex);\r\n\t}", "title": "" }, { "docid": "54d54e0a270ab30f06d0442138e70849", "score": "0.5215834", "text": "@Override\r\n\tpublic int updateArticle(Article article) {\n\t\treturn aticleMapper.updateArticle(article);\r\n\t}", "title": "" }, { "docid": "20a8b4c1eb9cc04b2fc7179e9f4e9206", "score": "0.5207871", "text": "List<CmsArticle> selectByExample(CmsArticleExample example);", "title": "" }, { "docid": "677c4d84768b0ff959de56541794ce90", "score": "0.5205523", "text": "@OneToMany(cascade = CascadeType.ALL, fetch = FetchType.LAZY)\n\tpublic List<Article> getArticles() {\n\t\treturn articles;\n\t}", "title": "" }, { "docid": "e654319f05224936a9477106bc64c853", "score": "0.5198528", "text": "public long getArticleId() {\r\n\t\treturn articleId;\r\n\t}", "title": "" }, { "docid": "c3819419c7749f81f35a702c30cb87ca", "score": "0.5184993", "text": "public Long getIdArticle() {\n\t\treturn idArticle;\n\t}", "title": "" }, { "docid": "779a93334f7da30f3d1dd09aa784453a", "score": "0.5183994", "text": "public interface NewsDao {\n /**\n * 获取新闻列表\n * @return\n */\n @Select(value = \"select * from tb_news\")\n List<Map> getList();\n\n\n}", "title": "" }, { "docid": "9224116c38b44944ec46f883c54be720", "score": "0.51739496", "text": "public AjouterArticle() {\n initComponents();\n table_auteurs();\n }", "title": "" }, { "docid": "fff1e61daf96628aa2b0fbf128dfe898", "score": "0.51517534", "text": "public Article getArticle(){\n\t\treturn article;\n\t}", "title": "" }, { "docid": "5cc9a6e115c7c8aee6484af79829a100", "score": "0.51425034", "text": "@Override\r\n\tpublic int add(Article article) {\n\t\treturn articleMapper.add(article);\r\n\t\t\r\n\t}", "title": "" }, { "docid": "5fa68f02361b0eb0efbf4b601b537480", "score": "0.5140173", "text": "public interface ArticleRepository extends JpaRepository<Article, Long>{\n}", "title": "" }, { "docid": "c649f9fa7d20f0d2b44b6100467da479", "score": "0.51344764", "text": "@Override\r\n\tpublic List<ArticleImg> listArticleImgsByArticleId(Integer articleId) {\n\t\t\r\n\t\tArticleImgMapper m=this.getSqlSession().getMapper(ArticleImgMapper.class);\r\n\t\t\r\n\t\treturn m.selectByExample(new ArticleImgExample());\r\n\t}", "title": "" }, { "docid": "085a6ce51b102c336c41847d55433f2a", "score": "0.5116505", "text": "public List<Article> findAll() {\n return articleDao.findAll();\n }", "title": "" }, { "docid": "a2949da9e1e20bd27f7f05bd1b474d5d", "score": "0.51136565", "text": "@Override\r\n\tpublic Integer loadCommentCountByArticleId(Integer articleId) {\n\t\tCommentMapper m=this.getSqlSession().getMapper(CommentMapper.class);\r\n\t\tCommentExample e=new CommentExample();\r\n\t\te.createCriteria().andArticleIdEqualTo(articleId);\r\n\t\treturn m.countByExample(e);\r\n\t}", "title": "" }, { "docid": "623bdee333b1da3a09e8ed25562d1140", "score": "0.50973165", "text": "List<Article> findAll();", "title": "" }, { "docid": "d2cb050e5840a111851e6b078868e223", "score": "0.5094631", "text": "@Repository\npublic interface ArticleDao{\n int add(Article article);\n Article getArticleById(int id);\n List<Article> getList(String author);\n void updateArticle(Article article);\n void deleteById(int id);\n}", "title": "" }, { "docid": "4aff7d7957ea55fcdb38e1f1f4968678", "score": "0.50942624", "text": "public ArrayList<ArticleModel> findAllArticle() {\n ArrayList<ArticleModel> data = new ArrayList<>();\n\n\n realmResult = realm.where(Article.class).findAll();\n realmResult.sort(\"id\", Sort.DESCENDING);\n if (realmResult.size() > 0) {\n showLog(\"Size : \" + realmResult.size());\n\n\n for (int i = 0; i < realmResult.size(); i++) {\n String hari, keterangan;\n int id = realmResult.get(i).getId();\n hari = realmResult.get(i).getHari();\n keterangan = realmResult.get(i).getKeterangan();\n data.add(new ArticleModel(id, hari, keterangan));\n }\n\n } else {\n showLog(\"Size : 0\");\n showToast(\"Database Kosong!\");\n }\n\n return data;\n }", "title": "" }, { "docid": "2de9044dd46e0ae29af86eecc74086e0", "score": "0.5091419", "text": "@Override\n\tpublic Entity toEntity(ResultSet rs) throws SQLException {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "3c7602df8e59da3eb6a49ae7d3e89453", "score": "0.5087686", "text": "@Override\r\n\tpublic List<Article> loadAllArticle(final Integer userId) {\n\t\tArticleMapper m=getSqlSession().getMapper(ArticleMapper.class);\r\n\t\t\r\n\t\treturn m.selectByExample(new ArticleExample(){{\r\n\t\t\tthis.setOrderByClause(\"idx DESC\");\r\n\t\t\tthis.createCriteria().andUserIdEqualTo(userId);\r\n\t\t}});\r\n\t}", "title": "" }, { "docid": "5dc1786f949b1a0870cae77dcf34b1b9", "score": "0.507651", "text": "@Override\r\n\tpublic ArticleImg loadFirstArticleImgByArticleId(Integer articleId) {\n\t\t\r\n\t\tCommonMapper m=this.getSqlSession().getMapper(CommonMapper.class);\r\n\t\treturn m.selectFirstImgForArticle(articleId);\r\n\t}", "title": "" }, { "docid": "ea9ca7cca6b6e10883d4b189a34804a7", "score": "0.507366", "text": "@Override\r\n\tpublic Article loadArticleById(Integer id) {\n\t\tArticleMapper m=getSqlSession().getMapper(ArticleMapper.class);\r\n\t\treturn m.selectByPrimaryKey(id);\r\n\t}", "title": "" }, { "docid": "8435c030a1c95703ddb0f2ffc3e109b9", "score": "0.50706315", "text": "@Override\n \tlong getArticleCount() {\n \t\treturn 0;\n \t}", "title": "" }, { "docid": "a8de148e858eb471d5ceac2ea60d9260", "score": "0.5069888", "text": "public int getArticleID(){ return rootID; }", "title": "" }, { "docid": "2c03cdfdc300c81b8830906213cb5ef2", "score": "0.50657696", "text": "public Cursor tots_articles() {\n return dbR.query(TABLE_MAGATZEM, new String[]{ARTICLE_ID,ARTICLE_CODI,ARTICLE_DESCRIPCION,ARTICLE_PVP,ARTICLE_ESTOC},\n null, null,\n null, null, ARTICLE_ID);\n }", "title": "" }, { "docid": "377bb00a92f263d8ae06ceb74c522274", "score": "0.50648487", "text": "@Select({\n\t\t\t\"select\",\n\t\t\t\"id, enterpriseId, constructorOne, constructorTwo, constructorTotal, staffMiddle, \",\n\t\t\t\"staffHigh, staffTotal, skillMiddle, skillHigh, skillTech, skillTechHigh, skillTotal, \",\n\t\t\t\"createTime, updateTime\", \"from enterprise_person\",\n\t\t\t\"where id = #{id,jdbcType=INTEGER}\" })\n\t@Results({\n\t\t\t@Result(column = \"id\", property = \"id\", jdbcType = JdbcType.INTEGER, id = true),\n\t\t\t@Result(column = \"enterpriseId\", property = \"enterpriseid\", jdbcType = JdbcType.INTEGER),\n\t\t\t@Result(column = \"constructorOne\", property = \"constructorone\", jdbcType = JdbcType.INTEGER),\n\t\t\t@Result(column = \"constructorTwo\", property = \"constructortwo\", jdbcType = JdbcType.INTEGER),\n\t\t\t@Result(column = \"constructorTotal\", property = \"constructortotal\", jdbcType = JdbcType.INTEGER),\n\t\t\t@Result(column = \"staffMiddle\", property = \"staffmiddle\", jdbcType = JdbcType.INTEGER),\n\t\t\t@Result(column = \"staffHigh\", property = \"staffhigh\", jdbcType = JdbcType.INTEGER),\n\t\t\t@Result(column = \"staffTotal\", property = \"stafftotal\", jdbcType = JdbcType.INTEGER),\n\t\t\t@Result(column = \"skillMiddle\", property = \"skillmiddle\", jdbcType = JdbcType.INTEGER),\n\t\t\t@Result(column = \"skillHigh\", property = \"skillhigh\", jdbcType = JdbcType.INTEGER),\n\t\t\t@Result(column = \"skillTech\", property = \"skilltech\", jdbcType = JdbcType.INTEGER),\n\t\t\t@Result(column = \"skillTechHigh\", property = \"skilltechhigh\", jdbcType = JdbcType.INTEGER),\n\t\t\t@Result(column = \"skillTotal\", property = \"skilltotal\", jdbcType = JdbcType.INTEGER),\n\t\t\t@Result(column = \"createTime\", property = \"createtime\", jdbcType = JdbcType.VARCHAR),\n\t\t\t@Result(column = \"updateTime\", property = \"updatetime\", jdbcType = JdbcType.VARCHAR) })\n\tEnterprisePerson selectByPrimaryKey(Integer id);", "title": "" }, { "docid": "5edb38fa6bf85d9f7af128bab6f7a728", "score": "0.50376004", "text": "public ArrayList isArticleAlreadyExist(Article article)throws SQLException{\n /*\n * Этот метод чекает, есть ли у нас в библиотеке такая статья\n * возвращает лист, В первом элементе: int 1 - если да(уже есть такая статья), 0 - если нет\n * на втором элементе возвращается ID найденной статьи(если она уже есть. В противном случае ничего там нет)\n * */\n ArrayList <Integer>arrayList = new ArrayList();\n Statement stmt = con.createStatement();\n ResultSet rs;\n rs = stmt.executeQuery(\"SELECT * FROM Articles\");\n while (rs.next()){\n if (rs.getString(2).equals(article.getTitle()) && rs.getString(3).equals(article.getAuthor()) && rs.getInt(4) == article.getPrice() &&\n rs.getString(5).equals(article.getKeyWords()) && rs.getBoolean(6) == article.getReference()\n && rs.getString(7).equals(article.getJournal()) && rs.getString(8).equals(article.getEditor()) && rs.getString(9).equals(article.getDate())){\n arrayList.add(1); // 1 = true\n arrayList.add(rs.getInt(1));//save ID of founded book\n return arrayList;\n }\n }\n arrayList.add(0);\n return arrayList;\n }", "title": "" }, { "docid": "2198272c194e999150b482813d289819", "score": "0.5026196", "text": "public List getArticles(ArticlesInTO parameters) throws EJBException {\r\n\r\n\t\tList _return = null;\r\n\r\n\t\tAdminDAO adminDAO = new AdminDAO();\r\n\t\ttry {\r\n\t\t\t_return = adminDAO.getArticles(parameters);\r\n\t\t} catch (Exception e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\tthrow (EJBException) new EJBException(e);\r\n\t\t}\r\n\r\n\t\treturn _return;\r\n\t}", "title": "" }, { "docid": "e76136f3a788243f98110551fed8d89c", "score": "0.5023745", "text": "ArticleDetailVO findArticleAOById(int id);", "title": "" }, { "docid": "a7e3a12f35db21c938d0c4396bc27b13", "score": "0.5021821", "text": "@Override\n\tpublic int getRowCount() {\n\t\treturn articleDao.getRowCount();\n\t}", "title": "" }, { "docid": "aac51306e25c65dc5d57c6d159efa6d8", "score": "0.50126505", "text": "@Override\r\n\tpublic List<ArticleProperty> listArticlePropertiesByArticleId(final Integer id) {\n\t\tArticlePropertyMapper m3=this.getSqlSession().getMapper(ArticlePropertyMapper.class);\r\n\t\treturn m3.selectByExample(new ArticlePropertyExample(){{\r\n\t\t\tthis.createCriteria().andArticleIdEqualTo(id);\r\n\t\t}});\r\n\t}", "title": "" }, { "docid": "a22b745abe101dc9bd2083f9edab42b8", "score": "0.49935803", "text": "public interface ArticleRepository extends CrudRepository<Article, String>, ArticleRepositoryCustom {\n \n\t/**\n\t * method to find article by identifier\n\t * @param id\n\t * @return\n\t */\n\tList<Article> findById(String id);\n \n// @Query(\"SELECT a FROM Article a JOIN a.tags t WHERE t = :tagName and a.date = :date\")\n// List<Article> findByTagAndDate(@Param(\"tagName\") String tagName, @Param(\"date\") Date date);\n \n /**\n * Method to find article by date\n * @param date\n * @return\n */\n List<Article> findByDate(@Param(\"date\") Date date);\n \n// @Query(\"SELECT a FROM Article a JOIN a.tags t WHERE t = :tagName\")\n// List<Article> findByTag(@Param(\"tagName\") String tagName);\n}", "title": "" }, { "docid": "ad16b8be070a6abbcfcb94fd7150bde3", "score": "0.4984765", "text": "public static void main(String[] args) {\n\t\tArticle a1 = new Stylo( \"Bic\", \"BBOrange\",\"Bic bille Orange\", 1.2f, 20, \"bleu\");\n\t\tArticle a2 = new Ramette( \"Clairef\", \"CRA4S\", \"Ramette A4 Sup\", 9f, 20, 80);\n\t\tArticle a3 = new Stylo( \"Stypen\", \"PlumeS\", \"Stylo Plume Stypen\", 5.5f, 20, \"jaune\");\n\n\n\t\tSystem.out.println(\"Ajout des articles... \");\n\t\ttry {\n\t\t\tArticleDAOJdbcImpl.insert(a1);\n\t\t\tSystem.out.println(\"Article ajoute : \" + a1.toString() );\n\t\t\tArticleDAOJdbcImpl.insert(a2);\n\t\t\tSystem.out.println(\"Article ajoute : \" + a2.toString() );\n\t\t\tArticleDAOJdbcImpl.insert(a3);\n\t\t\tSystem.out.println(\"Article ajoute : \" + a3.toString() );\n\n\n\t\t\t//Selection de l'article par id\n\t\t\tArticle a = ArticleDAOJdbcImpl.selectById(a2.getIdArticle());\n\t\t\tSystem.out.println(\"\\nSelection de l'article par id : \" + a.toString() );\n\n\t\t\t//Selection de tous les articles\n\t\t\tList<Article> articles = ArticleDAOJdbcImpl.selectAll();\n\t\t\tSystem.out.println(\"\\nSelection de tous les articles : \" );\n\t\t\tafficherArticles(articles);\n\n\t\t\t//Modification d'un article\n\t\t\tSystem.out.println(\"\\nModification d'un article : \" );\n\t\t\tSystem.out.println(\"Article avant modification : \" + a1.toString());\n\t\t\t((Stylo) a1).setCouleur(\"noir\");\n\t\t\t((Stylo) a1).setDesignation(\"Bic bille noir\");\n\t\t\t((Stylo) a1).setReference(\"BBNoir\");\n\t\t\tArticleDAOJdbcImpl.update(a1);\n\t\t\tSystem.out.println(\"Article apres modification : \" + a1.toString() );\n\t\t\t\n\t\t\t\n\t\t\t//Suppression d'un article\n\t\t\tSystem.out.println(\"\\nSuppression de l'article : \" + a1.toString());\n\t\t\tArticleDAOJdbcImpl.delete(a1.getIdArticle());\n\t\t\tarticles = ArticleDAOJdbcImpl.selectAll();\n\t\t\tSystem.out.println(\"Liste des articles apres suppression : \" );\n\t\t\tafficherArticles(articles);\n\t\t\tSystem.out.println(\"---------------------------------------------------------------\");\n\n\t\t\t\n\t\t} catch (DALException e) {\n\t\t\tSystem.err.println(\"******ERREUR *******\");\n\t\t\tSystem.err.println(\"message : \"+e.getMessage());\n\t\t\tSystem.err.println(\"cause : \"+e.getCause());\n\t\t\tSystem.err.println(\"----- trace -----\");\n\t\t\tSystem.err.println(\"classe : \"+e.getStackTrace()[0].getClassName());\n\t\t\tSystem.err.println(\"methode : \"+e.getStackTrace()[0].getMethodName());\n\t\t\tSystem.err.println(\"ligne : \"+e.getStackTrace()[0].getLineNumber());\n\t\t}\n\n\t}", "title": "" }, { "docid": "496739903b02c7d63ccd10f07bf99515", "score": "0.4984163", "text": "@Override\r\n\tpublic List<ArticleProperty> listArticlePropertiesByArticleIdAndType(\r\n\t\t\tInteger articleId, String type) {\n\t\tArticlePropertyMapper m=this.getSqlSession().getMapper(ArticlePropertyMapper.class);\r\n\t\t\r\n\t\tArticlePropertyExample ex=new ArticlePropertyExample();\r\n\t\tex.createCriteria().andArticleIdEqualTo(articleId).andTypeEqualTo(type);\r\n\t\treturn m.selectByExample(ex);\r\n\t}", "title": "" }, { "docid": "74c2015d9ac1071e002e86675f712ed2", "score": "0.49841425", "text": "@Override\r\n\tpublic List<Article> selectByExample(ArticleExample example) {\n\t\treturn null;\r\n\t}", "title": "" }, { "docid": "4f7d4e78f73f5aa60292d09c16a8dc73", "score": "0.49806353", "text": "public List<Article> getArticle(int numberArticle, int typeArticle) {\n\n String sql = \"SELECT TOP (?) * \"\n + \"FROM Article WHERE type = (?)\"\n + \"ORDER BY Date DESC\";\n\n return query(sql, new ArticleMapper(), numberArticle, typeArticle);\n }", "title": "" }, { "docid": "1edc6b95e703368402e9a9090d197cde", "score": "0.49759635", "text": "@Override\r\n\tpublic List<Article> getTopTenArticle() {\n\t\treturn dao.getTopTenArticle();\r\n\t}", "title": "" }, { "docid": "4ba7307aea9cfcaff76fbecbc94f3b4b", "score": "0.49617106", "text": "public void save() throws SQLException {\n\t\tConnection con = DB2ConnectionManager.getInstance().getConnection();\n\t\t\n\t\t// Erzeuge Anfrage\n\t\tString selectSQL = \"SELECT a.id FROM aufg7_artikel a WHERE a.id = ?\";\n\t\tPreparedStatement pstmt1 = con.prepareStatement(selectSQL);\n\t\tpstmt1.setInt(1, this.id);\n\t\n\t\t// Führe Anfrage aus\n\t\tResultSet rs1 = pstmt1.executeQuery();\n\t\t\n\t\t// Insert Date only if not alread present\n\t\tif (! rs1.next())\n\t\t{\n\t\t\trs1.close();\n\t\t\tpstmt1.close();\n\t\t\n\t\t\t// Hole Verbindung\n\t\t\t//Connection con = DB2ConnectionManager.getInstance().getConnection();\n\t\t\t\n\t\t\t// Erzeuge Anfrage\n\t\t\tString insertSQL = \"insert into aufg7_artikel (id,name,preis,produktkat,produktfam,produktgru) values (?,?,?,?,?,?)\";\n\t\t\tPreparedStatement pstmt = con.prepareStatement(insertSQL);\n\t\t\t\t\n\t\t\t// Setze Parameter und führe Kommando aus\n\t\t\tpstmt.setInt(1, this.getIid());\n\t\t\tpstmt.setString(2, this.getName());\n\t\t\tpstmt.setDouble(3, this.getPreis());\n\t\t\tpstmt.setString(4, this.getProductCategory());\n\t\t\tpstmt.setString(5, this.getProductFamily());\n\t\t\tpstmt.setString(6, this.getProductGroup());\n\t\n\t\n\t\t\tpstmt.executeUpdate();\n\t\n\t\t\tpstmt.close();\n\t\t\n\t\t} else {\n\t\t\tthis.id = rs1.getInt(\"id\");\n\t\t\tSystem.out.printf(\"Omit dublicate article:\\t| %4d | %36s | %20s | %20s | %25s |%n\",\n\t\t\t\t\tthis.id,\n\t\t\t\t\tthis.name,\n\t\t\t\t\tthis.productGroup,\n\t\t\t\t\tthis.productFamily,\n\t\t\t\t\tthis.productCategory);\n\t\t\trs1.close();\n\t\t\tpstmt1.close();\n\t\t}\n\t}", "title": "" }, { "docid": "3d65a1ba0dfb5817bb53c2f062753f22", "score": "0.49600378", "text": "@Mapper\npublic interface CourseDAO {\n String TABLE_NAME = \" course \";\n String INSERT_FIELDS = \" name,college_id,necessary,syllabus,credit \";\n String SELECT_FIELDS = \" id, \" + INSERT_FIELDS;\n\n @Insert({\"insert into \", TABLE_NAME, \"(\", INSERT_FIELDS,\n \") values (#{name},#{college_id},#{necessary},#{syllabus},#{credit})\"})\n int addCourse(Course course);\n\n// @Update({\"update \", TABLE_NAME, \" set name=#{name}, college_id=#{college_id},\" +\n// \"necessary=#{necessary},syllabus=#{syllabus},credit=#{credit} where id=#{id}\"})\n// void updateCourse(Course course);\n\n @Select({\"select \", SELECT_FIELDS, \" from \", TABLE_NAME, \"where id=#{id}\"})\n Course selectCourseById(@Param(\"id\") int id);\n\n //查看所有 课程\n @Select({\"select\", SELECT_FIELDS, \" from \", TABLE_NAME, \" limit #{offset}, #{limit}\"})\n List<Course> selectAllPublishCourse(@Param(\"offset\") int offset, @Param(\"limit\") int limit);\n\n}", "title": "" }, { "docid": "0e9cbd937b0ab70835e9abcf5a6650f0", "score": "0.49585557", "text": "BlockccResponse<List<Article>> getArticles(ArticleParam articleParams);", "title": "" }, { "docid": "2811936a7f413fced3d11be8a211ccb3", "score": "0.49577692", "text": "public List<Article> searchArticleListByKeyWord(String articleTitle) {\n\t\tString hql = \"select a.articleId , a.articleTitle from Article a where a.articleTitle like '%\"+articleTitle+\"%' ORDER BY a.writenTime\";\n\t\tQuery query = sessionFactory.getCurrentSession().createQuery(hql);\t\t \n\t\treturn query.list();\n\t}", "title": "" }, { "docid": "ef209d11f4ceae6ce47bf63755944a39", "score": "0.49531212", "text": "@Mapper\npublic interface ArticleMapper {\n /**\n * 查询文本内容\n * @return\n */\n List<Article> getText();\n\n /**\n * 添加文本内容\n * @param content\n * @return\n */\n void addText(Article content);\n}", "title": "" }, { "docid": "d7d7252de5a23bef6e77fa6381bb3862", "score": "0.49492842", "text": "@Override\r\n\tpublic Integer loadArticleCollectionCount(Integer articleId) {\n\t\tOrderMapper m=this.getSqlSession().getMapper(OrderMapper.class);\r\n\t\tOrderExample e=new OrderExample();\r\n\t\te.createCriteria().andArticleIdEqualTo(articleId).andRunStatusEqualTo(4);\r\n\t\treturn m.countByExample(e);\r\n\t}", "title": "" }, { "docid": "290fb9194d4c5f5f611cbe8329ea408f", "score": "0.49475145", "text": "@Override\r\n\tpublic int getArticleNum() {\n\t\treturn dao.getArticleNum();\r\n\t}", "title": "" }, { "docid": "260cb11e38d24900a67bd4a429095dd3", "score": "0.49452525", "text": "public void addArticle(Article article);", "title": "" }, { "docid": "c76873f370e4819649aa48fd4cf13829", "score": "0.4928906", "text": "@Override\n\tpublic List selectArticle() {\n\t\tSystem.out.println(\"Simple2 선택\");\n\t\treturn new ArrayList();\n\t}", "title": "" }, { "docid": "0210fb01f704df0d4b693d649f2f585f", "score": "0.4924672", "text": "public interface ArticleMapper {\n public List<Article> getArticle(@Param(\"searchText\") String searchText, @Param(\"page\")PageHelper page);\n public void editArticleDelete(@Param(\"article\") Article article);\n public long getArticleTotal(@Param(\"searchText\")String searchText);\n}", "title": "" }, { "docid": "2b26434b51211369c98bdb5455d96f22", "score": "0.49187234", "text": "@Override\n public Map<String, XPathValue> getArticleMetaMap() {\n return JATS_articleMap;\n }", "title": "" }, { "docid": "1ce67e3289151995d21cd15c406eb681", "score": "0.49183014", "text": "public Author getAuthorJDBC(int id) throws Exception ;", "title": "" }, { "docid": "40439d0a28847b87181ee3d69f7f6ffc", "score": "0.4904272", "text": "News getNews(int id) throws DAOException;", "title": "" }, { "docid": "8d4b784ae48b742852b9bd907b74f83b", "score": "0.489294", "text": "public interface DistrictAirDAO {\n @Select(\"select * from district\")\n List<DistrictAir> findAllDistrict();\n List<DistrictAir> findCurrentPageData(Map pageKit);\n int findCountPage(Map pageKit);\n}", "title": "" }, { "docid": "d0cccaca721881245e7426d583471f8e", "score": "0.4892305", "text": "Article findArticleById(long id);", "title": "" }, { "docid": "24e2ad0e94aa617353383332fd57e2b6", "score": "0.48914874", "text": "@Override\r\n\tpublic List<Article> listArticlesByChannelId(final Integer channelId) {\n\t\t\r\n\t\tArticleMapper m=getSqlSession().getMapper(ArticleMapper.class);\r\n\t\t\r\n\t\treturn m.selectByExampleWithBLOBs(new ArticleExample(){{\r\n\t\t\tthis.createCriteria().andChannelIdEqualTo(channelId);\r\n\t\t\tthis.setOrderByClause(\"idx DESC\");\r\n\t\t}});\r\n\t}", "title": "" }, { "docid": "5f12092cb0736b17230ec2a1042e1a8f", "score": "0.4891145", "text": "@Override\n\tpublic List<?> getArticleTypeList() {\n\t\treturn baseDao.findAll(\" from Articletype\",-1,null);\n\t}", "title": "" }, { "docid": "edf939c3c7d0d9b822e6f653ee67bc67", "score": "0.48887092", "text": "void joinNewsWithAuthor(Long newsId, Long authorId) throws DAOException;", "title": "" }, { "docid": "9619f4a1cc977fb5d567a0e2ee1a6208", "score": "0.4883753", "text": "@Generated\n public Article() {\n }", "title": "" }, { "docid": "115c6b0054cab5a39c8f1c91d1596fa0", "score": "0.48650116", "text": "Long countNews() throws DAOException;", "title": "" }, { "docid": "9247a6c2d5389a7a0a3000fb9ad03797", "score": "0.48598397", "text": "@Override\n\tpublic List<Tag> getAllTagByAid(int aid) {\n\t String sql =\n\t \"select tag.tid, tag.name \" + \n\t \"from article_tag \" + \n\t \"join tag \" + \n\t \"on article_tag.tid = tag.tid \" + \n\t \"where article_tag.aid = ?\";\n\t \n\t List<Tag> listTag = jdbcTemplate.query(sql, new Object[] {aid}, new RowMapper<Tag>() {\n\t \n\t @Override\n\t public Tag mapRow(ResultSet rs, int rowNum) throws SQLException {\n\t Tag aTag = new Tag();\n\t \n\t aTag.setTid(rs.getInt(\"tid\"));\n\t aTag.setName(rs.getString(\"name\"));\n\t \n\t return aTag;\n\t }\n\t \n\t });\n\t \n\t return listTag;\n\t}", "title": "" }, { "docid": "57c723c2799f6cc9765e4dc1710854a5", "score": "0.48577923", "text": "public void getArticle(Map<Object, Object> map) {\n\n List<Article> listArticle = articleService.getArticle();\n map.put(\"listArticle\", listArticle);\n }", "title": "" }, { "docid": "95dde342372d2d5f06850deb6211bf3c", "score": "0.48533967", "text": "ArrayList<News> readAll() throws DAOException;", "title": "" }, { "docid": "d3daa59b49810cedf8db2a3ff45a4888", "score": "0.4848267", "text": "@Mapper\npublic interface BaseEntityMapper<T extends BaseEntity> extends tk.mybatis.mapper.common.Mapper<Article> {\n\n @SelectProvider(type = BaseSqlBuilder.class,method = \"selectById\")\n T find(Long id,T obj);\n\n @InsertProvider(type = BaseSqlBuilder.class,method = \"insert\")\n T save(T obj);\n\n @UpdateProvider(type = BaseSqlBuilder.class,method = \"update\")\n T update(T obj);\n\n @DeleteProvider(type = BaseSqlBuilder.class,method = \"delete\")\n void delete(T obj);\n\n}", "title": "" }, { "docid": "ca7f9d064c7a102d212ed209d15162f1", "score": "0.48382047", "text": "List<CmsArticle> selectByExampleWithBLOBs(CmsArticleExample example);", "title": "" } ]
53dfa3927b7473ac9f63350293d3e66f
Parse the document to POJO (enriches with attributes, recipients).
[ { "docid": "ddf67dc45729197139ec376571053bb6", "score": "0.45913813", "text": "DocumentHeader parse(DocumentHeader documentHeader);", "title": "" } ]
[ { "docid": "dc1979fa7f474669ab7bd82fdf45b4ae", "score": "0.5821922", "text": "public Document toDocument() {\n\t\tDocument doc = new Document();\n\n\t\t//Save raw message\n\t\tdoc.put(\"message\", Base64.getEncoder().encodeToString(message));\n\n\t\t//Check if message is a JSON message\n\t\tDocument jsonMessageContent = null;\n\t\ttry {\n\t\t\tjsonMessageContent = Document.parse(new String(message, \"UTF-8\"));\n\t\t} catch (JsonParseException | UnsupportedEncodingException ex) {\n\t\t\tLogger.getLogger(this.getClass().getName()).log(Level.INFO, \"Message is not a JSON string {0}\", ex.getMessage());\n\t\t}\n\n\t\tif (jsonMessageContent != null) {\n\t\t\t//save message as JSON content\n\t\t\tDocument jsonMessage = new Document(\"searchable-message\", jsonMessageContent);\n\t\t\tdoc.putAll(jsonMessage);\n\t\t}\n\n\t\t//Prepares the Alpha attributes\n\t\tDocument alphaList = new Document();\n\t\tfor (Entry<String, Value> entry : alpha.getEntries()) {\n\t\t\tif (entry.getValue() instanceof ByteArrayValue) {\n\t\t\t\talphaList.put(entry.getKey(), new Binary(((ByteArrayValue) entry.getValue()).getValue()));\n\t\t\t} else {\n\t\t\t\talphaList.put(entry.getKey(), entry.getValue().getValue());\n\t\t\t}\n\t\t}\n\t\tdoc.put(\"alpha\", alphaList);\n\n\t\t//Prepares the Beta attributes\n\t\tDocument betaList = new Document();\n\t\tfor (Entry<String, Value> entry : beta.getEntries()) {\n\t\t\tif (entry.getValue() instanceof ByteArrayValue) {\n\t\t\t\tbetaList.put(entry.getKey(), new Binary(((ByteArrayValue) entry.getValue()).getValue()));\n\t\t\t} else {\n\t\t\t\tbetaList.put(entry.getKey(), entry.getValue().getValue());\n\t\t\t}\n\t\t}\n\t\tdoc.put(\"beta\", betaList);\n\n\t\treturn doc;\n\t}", "title": "" }, { "docid": "02364eebfd3f5c9add3dbc645aca036f", "score": "0.55996084", "text": "public interface DocumentParser {\n\n List<DocumentFormat> getSupported(Set<DocumentBusinessType> documentBusinessType);\n\n /**\n * Parse the document to POJO (enriches with attributes, recipients).\n */\n DocumentHeader parse(DocumentHeader documentHeader);\n\n}", "title": "" }, { "docid": "67cd991d7ee4d71b43af82e11bd80103", "score": "0.54038703", "text": "public static PersistedPost fromDocument(Document doc) {\n\t\tPersistedPost pp = new PersistedPost();\n\n\t\t//TODO remove try catch when DB will be cleaned\n\t\t//this is only needed since some messages in MongoDB are not byte array\n\t\t//but string (historical reasons\n\t\ttry {\n\t\t\tpp.message = Base64.getDecoder().decode((String) doc.get(\"message\"));\n\t\t} catch (ClassCastException e) {\n\t\t\tpp.message = JSON.serialize(doc.get(\"message\")).getBytes();\n\t\t}\n\n\t\t//fill alpha attributes\n\t\tAttributes alpha = new Attributes();\n\t\tDocument alphaList = doc.get(\"alpha\", Document.class);\n\t\tfor (String key : alphaList.keySet()) {\n\t\t\t//String key = dbObj.keySet().iterator().next();\n\t\t\talpha.add(key, inflateType(alphaList.get(key)));\n\t\t}\n\t\tpp.alpha = alpha;\n\n\t\t//fill beta attributes\n\t\tAttributes beta = new Attributes();\n\t\tDocument betaList = doc.get(\"beta\", Document.class);\n\t\tfor (String key : betaList.keySet()) {\n\t\t\t//String key = dbObj.keySet().iterator().next();\n\t\t\tbeta.add(key, inflateType(betaList.get(key)));\n\t\t}\n\t\tpp.beta = beta;\n\n\t\treturn pp;\n\t}", "title": "" }, { "docid": "8ab32b7cf439fdb1b3316901c157b715", "score": "0.5188027", "text": "private String parseDocumentElement(XMLElement elem) throws UnableToCompleteException {\r\n \tFieldManager fieldManager = reflector.getField(\"fieldManager\");\r\n\t\tImplicitClientBundle bundleClass = reflector.getField(\"bundleClass\");\r\n\t\t\r\n\t\t\r\n\t\tfieldManager .registerFieldOfGeneratedType(\r\n \t\t\toracle.findType(ClientBundle.class.getName()),\r\n \t\t\tbundleClass .getPackageName(), bundleClass.getClassName(),\r\n \t\t\tbundleClass.getFieldName());\r\n \t// Allow GWT.create() to init the field, the default behavior\r\n \t\r\n \tMessagesWriter messages = reflector.getField(\"messages\");\r\n\t\tString rootField = new CustomUiBinderParser(this, messages, fieldManager, oracle, bundleClass, binderUri, customResourceParsers).parse(elem);\r\n \t\r\n \tfieldManager.validate();\r\n \t\r\n \tStringWriter stringWriter = new StringWriter();\r\n \tIndentedWriter niceWriter = new IndentedWriter(\r\n \t\t\tnew PrintWriter(stringWriter));\r\n \t\r\n \treflector.callMethod(\"writeBinder\", new Class[]{IndentedWriter.class, String.class}, niceWriter, rootField);\r\n \t\r\n \treflector.callMethod(\"ensureAttachmentCleanedUp\", new Class[0]);\r\n \treturn stringWriter.toString();\r\n }", "title": "" }, { "docid": "a3f5c093660f812bdd285c9aee91e84c", "score": "0.5131104", "text": "private Order map(Document document) {\n int id = document.getInteger(\"_id\");\n BigDecimal totalPrice = new BigDecimal(document.getString(\"total_price\"));\n int customerId = document.getInteger(\"customer_id\");\n LocalDateTime date = LocalDateTime.parse(document.getString(\"date\"));\n int orderStatusId = document.getInteger(\"order_status_id\");\n return new Order(id, totalPrice, customerId, date, orderStatusId);\n }", "title": "" }, { "docid": "2c5acda12b6f34206d3f77fc56c42ad8", "score": "0.5065746", "text": "private void parseDocument() {\n Element docEle = dom.getDocumentElement();\n\n //get a nodelist of <employee> elements\n NodeList nl = docEle.getElementsByTagName(\"user\");\n\n if (nl != null && nl.getLength() > 0) {\n for (int i = 0; i < nl.getLength(); i++) {\n\n Element el = (Element) nl.item(i);\n\n User user = getUser(el);\n\n userList.add(user);\n }\n }\n }", "title": "" }, { "docid": "84e6385f9271d44984c80ead0bd697df", "score": "0.5045746", "text": "private void populateDocModel(){\n\t\tif(doc == null)\n\t\t\treturn;\n\t\tArrayList<String> likes = doc.listOfLikers();\n\t\tpopulateList(likes, documentModel);\n\t}", "title": "" }, { "docid": "5169947b443eaac6cd69223e972135d7", "score": "0.50224864", "text": "public void load(String document) {\n \t\t\n \t\ttry{\n \n \t\t\tbody = new CdaBody(); // Body loeschen\n \t\t\tDocument doc = new Document(document);\n \t\t\tObject NS = null;\n \t Element root = doc.getRootElement();\n \n \t setAuthorNameGiven(root.getChild(\"author\", NS).getChild(\"assignedAuthor\",NS).getChild(\"assignedPerson\", NS).getChild(\"name\", NS).getChild(\"given\", NS).getText());\n \t setAuthorNameFamily(root.getChild(\"author\", NS).getChild(\"assignedAuthor\",NS).getChild(\"assignedPerson\", NS).getChild(\"name\", NS).getChild(\"family\", NS).getText());\n \t setAuthorId(UUID.fromString((root.getChild(\"author\", NS).getChild(\"assignedAuthor\",NS).getChild(\"id\", NS).getAttributeValue(\"extension\"))));\n \t \n \t setPatientNameGiven(root.getChild(\"recordTarget\", NS).getChild(\"patientRole\",NS).getChild(\"patient\", NS).getChild(\"name\", NS).getChild(\"given\", NS).getText());\n \t setPatientNameFamily(root.getChild(\"recordTarget\", NS).getChild(\"patientRole\",NS).getChild(\"patient\", NS).getChild(\"name\", NS).getChild(\"family\", NS).getText());\n \t setPatientId(UUID.fromString((root.getChild(\"recordTarget\", NS).getChild(\"patientRole\",NS).getChild(\"id\", NS).getAttributeValue(\"extension\"))));\n \t setPatientGender(Gender.getValueOf(root.getChild(\"recordTarget\", NS).getChild(\"patientRole\",NS).getChild(\"patient\", NS).getChild(\"administrativeGenderCode\", NS).getAttributeValue(\"code\")));\n \n \t String birthtime = root.getChild(\"recordTarget\", NS).getChild(\"patientRole\",NS).getChild(\"patient\", NS).getChild(\"birthTime\", NS).getAttributeValue(\"value\");\n \t DateFormat formatter = new SimpleDateFormat(\"yyyyMMdd\");\n \t setPatientBirthTime((Date) formatter.parse(birthtime));\n \t \n \t UUID idFromCda =UUID.fromString(root.getChild(\"id\", NS).getAttributeValue(\"extension\"));\n \t int versionNr = Integer.parseInt(root.getChild(\"versionNumber\", NS).getAttributeValue(\"value\"));\t\n \t setIdV(new CdaIdV(idFromCda,versionNr));\n \t \n \t if (root.getChild(\"relatedDocument\", NS) != null && root.getChild(\"relatedDocument\", NS).getChild(\"parentDocument\", NS) != null) {\n \t\t UUID idFromCdaParent =UUID.fromString(root.getChild(\"relatedDocument\", NS).getChild(\"parentDocument\", NS).getChild(\"id\", NS).getAttributeValue(\"extension\"));\n \t\t int versionNrParent = Integer.parseInt(root.getChild(\"relatedDocument\", NS).getChild(\"parentDocument\", NS).getChild(\"versionNumber\", NS).getAttributeValue(\"value\"));\t\n \t\t setParentIdV(new CdaIdV(idFromCdaParent, versionNrParent));\n \t }\n \t \n \t String effectiveTime = root.getChild(\"effectiveTime\", NS).getAttributeValue(\"value\"); \n \t setDocumentDate((Date) formatter.parse(effectiveTime));\n \t \n \t \n \t \n \t //#############--BODY--#############*/\n \t //-----VITALZEICHEN\n \n \t Element textVital = root.getChild(\"component\", NS).getChild(\"structuredBody\",NS).getChild(\"component\", NS).getChild(\"section\", NS).getChild(\"text\",NS);\n \t \n \t splitInfo(textVital);\n \t \n \t //-----DETAILS\n \t List <Element> liste = root.getChild(\"component\", NS).getChild(\"structuredBody\",NS).getChildren();\n \t Element textDetails =liste.get(1).getChild(\"section\", NS).getChild(\"text\",NS);\n \n \t splitInfo(textDetails);\n \t \n \t //-----VERLETZUNGEN\n \t Element textInjury =liste.get(1).getChild(\"section\", NS).getChild(\"component\",NS).getChild(\"section\",NS).getChild(\"text\",NS);\n \n \t splitInfo(textInjury);\n \t \n \t\t} \n \t\tcatch (Exception e) {\n \t\t\te.printStackTrace();\n \t\t}\n \t}", "title": "" }, { "docid": "d6418db7cda45c6a2b2892ae58186052", "score": "0.5020769", "text": "public void parse() {\n\t\tDocType docType = xomDoc.getDocType();\n\t\tElement root = xomDoc.getRootElement();\n\n\t\tif (docType.getRootElementName().compareToIgnoreCase(\"score-partwise\") == 0) {\n\t\t\tElement partlist = root.getFirstChildElement(\"part-list\");\n\t\t\tElements parts = partlist.getChildElements();\n\t\t\tXMLpart[] partHeaders = new XMLpart[parts.size()];\n\t\t\tfor (int p = 0; p < parts.size(); ++p) {\n\t\t\t\tpartHeaders[p] = new XMLpart();\n\t\t\t\tparsePartHeader(parts.get(p), partHeaders[p]);\n\t\t\t}\n\t\t\tparts = root.getChildElements(\"part\");\n\t\t\tfor (int p = 0; p < parts.size(); ++p) {\n\t\t\t\tparsePart(p, parts.get(p), partHeaders);\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "59759f2e5cc5808c0fc58c9634999ff0", "score": "0.49113488", "text": "static ParsedTender parse(final Document document, final String url) {\n // common data are same for each document type\n ParsedTender parsedTender = parseCommonFormData(document, url);\n\n // form type specific\n parsedTender = parseFormSpecificData(parsedTender, document);\n\n return parsedTender;\n }", "title": "" }, { "docid": "93b79c799b7d6445a6fa2a9bfcc78a7d", "score": "0.47966304", "text": "private Document(com.google.protobuf.GeneratedMessage.Builder<?> builder) {\n super(builder);\n }", "title": "" }, { "docid": "cea7a248af3baa84030df0648d1cd057", "score": "0.47949356", "text": "private void parseTo() throws AWException {\n if (this.email.getToList() != null) {\n parseMailElement(getParsedEmail().getTo(), email.getToList());\n }\n }", "title": "" }, { "docid": "42b8c519546834832c860fb51b11ae24", "score": "0.4727952", "text": "public String parse(String doc);", "title": "" }, { "docid": "c612721a473e505ae4c178d4ba2959f1", "score": "0.47095585", "text": "public static ContactInfo getContactInfo(String document) {\n\t\tParser nameParser = new NameParser();\n\t\tParser emailParser = new EmailParser();\n\t\tParser phoneNumberParser = new PhoneNumberParser();\n\t\n\t\temailParser.processLine(document);\n\t\tnameParser.processLine(document);\n\t\tphoneNumberParser.processLine(document);\n\n\t\treturn new ContactInfo(nameParser.getValue(),\n\t\t\t\tphoneNumberParser.getValue(),\n\t\t\t\temailParser.getValue());\n\t\t\n\t}", "title": "" }, { "docid": "b7a80368b0ef55e345f4db49757bb292", "score": "0.46997973", "text": "private UploadedDocument convertDocument(Document from, boolean setDocumentContent) {\n UploadedDocument to = new UploadedDocument();\n\n to.setDocumentId(unbox(from.getDocumentId()));\n to.setFileName(from.getOriginalFileName());\n to.setDescription(from.getDescription());\n if (from.getPath() != null) {\n to.setPath(from.getPath().getPath());\n }\n if (from.getMimeType() != null) {\n to.setMimeTypeId(unbox(from.getMimeType().getMimeTypeId()));\n }\n if (from.getType() != null) {\n to.setDocumentTypeId(unbox(from.getType().getDocumentTypeId()));\n }\n\n if (setDocumentContent) {\n try {\n to.setFile(contestManager.getDocumentContent(to.getDocumentId()));\n } catch (ContestManagementException e) {\n // no need to propagate exception\n logError(e, \"ContestManager reports error during getDocumentContent call.\");\n }\n }\n\n return to;\n }", "title": "" }, { "docid": "937e2649278707cf960119dfd8023a4f", "score": "0.46985462", "text": "@Override\n\tpublic List <String> parse() {\n\t\tRootElement root = new RootElement(CURRENT_OBSERVATION);\n\t\tfinal List<String> messages = new ArrayList<String>(100);\n\t\t//Element root = root.getChild(CURRENT_OBSERVATION);\n\t\t//Element description = item.getChild(DESCRIPTION);\n\t\t/*root.setEndElementListener(new EndElementListener(){\n\t\t\tpublic void end(){\n\t\t\t\tmessages.add(currentMessage.copy());\n\t\t\t}\n\t\t});*/\n\t\troot.getChild(CREDIT).setEndTextElementListener(new EndTextElementListener(){\n\t\t\tpublic void end(String body){\n\t\t\t\tmessages.add(body);\n\t\t\t}\n\t\t});\n\t\troot.getChild(CREDIT_URL).setEndTextElementListener(new EndTextElementListener(){\n\t\t\tpublic void end(String body){\n\t\t\t\tmessages.add(body);\n\t\t\t}\n\t\t});\n\t\troot.getChild(SUGGESTED_PICKUP).setEndTextElementListener(new EndTextElementListener(){\n\t\t\tpublic void end(String body){\n\t\t\t\tmessages.add(body);\n\t\t\t}\n\t\t});\n\t\troot.getChild(SUGGESTED_PICKUP_PERIOD).setEndTextElementListener(new EndTextElementListener(){\n\t\t\tpublic void end(String body){\n\t\t\t\tmessages.add(body);\n\t\t\t}\n\t\t});\n\t\troot.getChild(LOCATION).setEndTextElementListener(new EndTextElementListener(){\n\t\t\tpublic void end(String body){\n\t\t\t\tmessages.add(body);\n\t\t\t}\n\t\t});\n\t\troot.getChild(LATITUDE).setEndTextElementListener(new EndTextElementListener(){\n\t\t\tpublic void end(String body){\n\t\t\t\tmessages.add(body);\n\t\t\t}\n\t\t});\n\t\troot.getChild(LONGITUDE).setEndTextElementListener(new EndTextElementListener(){\n\t\t\tpublic void end(String body){\n\t\t\t\tmessages.add(body);\n\t\t\t}\n\t\t});\n\t\troot.getChild(ELEVATION).setEndTextElementListener(new EndTextElementListener(){\n\t\t\tpublic void end(String body){\n\t\t\t\tmessages.add(body);\n\t\t\t}\n\t\t});\n\t\troot.getChild(OBSERVATION_MONTH_TEXT).setEndTextElementListener(new EndTextElementListener(){\n\t\t\tpublic void end(String body){\n\t\t\t\tmessages.add(body);\n\t\t\t}\n\t\t});\n\t\troot.getChild(OBSERVATION_MONTH_NUMBER).setEndTextElementListener(new EndTextElementListener(){\n\t\t\tpublic void end(String body){\n\t\t\t\tmessages.add(body);\n\t\t\t}\n\t\t});\n\t\troot.getChild(OBSERVATION_DAY).setEndTextElementListener(new EndTextElementListener(){\n\t\t\tpublic void end(String body){\n\t\t\t\tmessages.add(body);\n\t\t\t}\n\t\t});\n\t\troot.getChild(OBSERVATION_YEAR).setEndTextElementListener(new EndTextElementListener(){\n\t\t\tpublic void end(String body){\n\t\t\t\tmessages.add(body);\n\t\t\t}\n\t\t});\n\t\troot.getChild(OBSERVATION_TIME).setEndTextElementListener(new EndTextElementListener(){\n\t\t\tpublic void end(String body){\n\t\t\t\tmessages.add(body);\n\t\t\t}\n\t\t});\n\t\troot.getChild(OBSERVATION_HOUR).setEndTextElementListener(new EndTextElementListener(){\n\t\t\tpublic void end(String body){\n\t\t\t\tmessages.add(body);\n\t\t\t}\n\t\t});\n\t\troot.getChild(OBSERVATION_MINUTE).setEndTextElementListener(new EndTextElementListener(){\n\t\t\tpublic void end(String body){\n\t\t\t\tmessages.add(body);\n\t\t\t}\n\t\t});\n\t\troot.getChild(TEMPERATURE_CURRENT_C).setEndTextElementListener(new EndTextElementListener(){\n\t\t\tpublic void end(String body){\n\t\t\t\tmessages.add(body);\n\t\t\t}\n\t\t});\n\t\troot.getChild(HUMIDEX_C).setEndTextElementListener(new EndTextElementListener(){\n\t\t\tpublic void end(String body){\n\t\t\t\tmessages.add(body);\n\t\t\t}\n\t\t});\n\t\troot.getChild(WINDCHILL_C).setEndTextElementListener(new EndTextElementListener(){\n\t\t\tpublic void end(String body){\n\t\t\t\tmessages.add(body);\n\t\t\t}\n\t\t});\n\t\troot.getChild(TEMPERATURE_24HRMAX_C).setEndTextElementListener(new EndTextElementListener(){\n\t\t\tpublic void end(String body){\n\t\t\t\tmessages.add(body);\n\t\t\t}\n\t\t});\n\t\troot.getChild(TEMPERATURE_24HRMIN_C).setEndTextElementListener(new EndTextElementListener(){\n\t\t\tpublic void end(String body){\n\t\t\t\tmessages.add(body);\n\t\t\t}\n\t\t});\n\t\troot.getChild(PRECIPITATION_15MINUTES_MM).setEndTextElementListener(new EndTextElementListener(){\n\t\t\tpublic void end(String body){\n\t\t\t\tmessages.add(body);\n\t\t\t}\n\t\t});\n\t\troot.getChild(PRECIPITATION_1HR_MM).setEndTextElementListener(new EndTextElementListener(){\n\t\t\tpublic void end(String body){\n\t\t\t\tmessages.add(body);\n\t\t\t}\n\t\t});\n\t\troot.getChild(PRECIPITATION_24HR_MM).setEndTextElementListener(new EndTextElementListener(){\n\t\t\tpublic void end(String body){\n\t\t\t\tmessages.add(body);\n\t\t\t}\n\t\t});\n\t\troot.getChild(RELATIVE_HUMIDITY_PERCENT).setEndTextElementListener(new EndTextElementListener(){\n\t\t\tpublic void end(String body){\n\t\t\t\tmessages.add(body);\n\t\t\t}\n\t\t});\n\t\troot.getChild(DEW_POINT_C).setEndTextElementListener(new EndTextElementListener(){\n\t\t\tpublic void end(String body){\n\t\t\t\tmessages.add(body);\n\t\t\t}\n\t\t});\n\t\troot.getChild(WIND_SPEED_KPH).setEndTextElementListener(new EndTextElementListener(){\n\t\t\tpublic void end(String body){\n\t\t\t\tmessages.add(body);\n\t\t\t}\n\t\t});\n\t\troot.getChild(WIND_DIRECTION).setEndTextElementListener(new EndTextElementListener(){\n\t\t\tpublic void end(String body){\n\t\t\t\tmessages.add(body);\n\t\t\t}\n\t\t});\n\t\troot.getChild(WIND_DIRECTION_DEGREES).setEndTextElementListener(new EndTextElementListener(){\n\t\t\tpublic void end(String body){\n\t\t\t\tmessages.add(body);\n\t\t\t}\n\t\t});\n\t\troot.getChild(PRESSURE_KPA).setEndTextElementListener(new EndTextElementListener(){\n\t\t\tpublic void end(String body){\n\t\t\t\tmessages.add(body);\n\t\t\t}\n\t\t});\n\t\troot.getChild(PRESSUE_TREND).setEndTextElementListener(new EndTextElementListener(){\n\t\t\tpublic void end(String body){\n\t\t\t\tmessages.add(body);\n\t\t\t}\n\t\t});\n\t\troot.getChild(INCOMING_SHORTWAVE_RADIATION_WM2).setEndTextElementListener(new EndTextElementListener(){\n\t\t\tpublic void end(String body){\n\t\t\t\tmessages.add(body);\n\t\t\t}\n\t\t});\n\t\t\n try{\n \tXml.parse(this.getInputStream(), Xml.Encoding.UTF_8,\n \t\t\troot.getContentHandler());\n } catch (Exception e) { \t\n \tthrow new RuntimeException(e);\n } \n return messages;\n\t}", "title": "" }, { "docid": "7c4c73c58f0118b2f0b04a3ab88533a8", "score": "0.4698305", "text": "protected void populateAggregationEntityDocument(AggregationEntity doc, String result,\n OxmEntityDescriptor resultDescriptor) throws JsonProcessingException, IOException {\n doc.setEntityType(resultDescriptor.getEntityName());\n JsonNode entityNode = mapper.readTree(result);\n Map<String, Object> map = mapper.convertValue(entityNode, Map.class);\n doc.copyAttributeKeyValuePair(map);\n }", "title": "" }, { "docid": "bd85ed775708ecefa341cf7d0e805b76", "score": "0.46790236", "text": "private UploadedDocument convertDocument(Document from) {\n return convertDocument(from, true);\n }", "title": "" }, { "docid": "214023eaac6d5a79d11f6d1ddf4490da", "score": "0.4673175", "text": "private Contact(ContactBuilder builder) {\n this.doc = builder.doc;\n this.element = builder.element;\n this.id = builder.id;\n this.name = builder.name;\n this.telephone = builder.telephone;\n this.electronicMail = builder.electronicMail;\n this.note = builder.note;\n }", "title": "" }, { "docid": "2158baf1e567cab1ac9fcc980887a193", "score": "0.46640512", "text": "public static Document parseDocument() {\n Document document = null;\n try {\n// uri = ConfigFilePath.getPath(uri);\n SAXBuilder builder = new SAXBuilder();\n document = builder.build(AuthorizationManager.class.getResourceAsStream(\"/authmgt_operation_authentication_tree.xml\"));\n// \tdocument = sax.read(AuthorizationManager.class.getResourceAsStream(\"/authmgt_operation_authentication_tree.xml\"));\n\t\t} catch (Exception e) {\n\t\t\tlog.error(\"read document error!\",e);\n\t\t}\n return document;\n }", "title": "" }, { "docid": "ae41fa1da919b19ded6bc80ca0cacfca", "score": "0.46634912", "text": "private void parseDocument() {\n\t\tSAXParserFactory factory = SAXParserFactory.newInstance();\n\t\ttry {\n\t\t\tSAXParser parser = factory.newSAXParser();\n\t\t\tparser.parse(consoleXmlFileName, this);\n\t\t} catch (ParserConfigurationException e) {\n\t\t\tSystem.out.println(\"ParserConfig error\");\n\t\t} catch (SAXException e) {\n\t\t\tSystem.out.println(\"SAXException : xml not well formed\");\n\t\t} catch (IOException e) {\n\t\t\tSystem.out.println(\"IO error\");\n\t\t\tSystem.out.println(e.getMessage());\n\t\t}\n\t}", "title": "" }, { "docid": "4aba3a40f29136d706dc0b7a6cdfe15e", "score": "0.46508658", "text": "public void visitDocument() {\r\n\t\torg.w3c.dom.Element element = document.getDocumentElement();\r\n\t\tif ((element != null) && element.getTagName().equals(\"people\")) {\r\n\t\t\tvisitElement_people(element);\r\n\t\t}\r\n\t\tif ((element != null) && element.getTagName().equals(\"person\")) {\r\n\t\t\tvisitElement_person(element);\r\n\t\t}\r\n\t\tif ((element != null) && element.getTagName().equals(\"firstname\")) {\r\n\t\t\tvisitElement_firstname(element);\r\n\t\t}\r\n\t\tif ((element != null) && element.getTagName().equals(\"lastname\")) {\r\n\t\t\tvisitElement_lastname(element);\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "fa0e1e751ae05dd942b0c79abc429dda", "score": "0.46489993", "text": "private Record createRecord(Document doc) {\r\n\r\n Record rec = new Record();\r\n\r\n rec = addRequiredFields(doc, rec);\r\n rec = addOptionalFields(doc, rec);\r\n rec = addHierarchicalFields(doc, rec);\r\n\r\n return rec;\r\n\r\n }", "title": "" }, { "docid": "c1befcf4d2716f4b42d19d3053cfe5ba", "score": "0.46416464", "text": "public static FrankDocModel populate() {\n\t\treturn FrankDocModel.populate(DIGESTER_RULES, \"nl.nn.adapterframework.configuration.Configuration\");\n\t}", "title": "" }, { "docid": "1c836b08bf4c64437db0ee41336f19fd", "score": "0.46045998", "text": "private static ParsedTender parseCommonFormData(final Document document, final String url) {\n final ParsedTender parsedTender = new ParsedTender();\n\n final Element subsectionI4 = JsoupUtils.selectFirst(SUBSECTION_I_4_SELECTOR, document);\n final Element subsectionII1 = JsoupUtils.selectFirst(SUBSECTION_II_1_SELECTOR, document);\n final Element subsectionIV1 = JsoupUtils.selectFirst(SUBSECTION_IV_1_SELECTOR, document);\n final Element subsectionVI4 = JsoupUtils.selectFirst(SUBSECTION_VI_4_SELECTOR, document);\n\n parsedTender\n .setPublications(parsePublications(document, url))\n .addBuyer(new ParsedBody()\n .setName(JsoupUtils.selectFirst(\"input[name=KorisnikNaziv1]\", document).val())\n .addBodyId(new BodyIdentifier()\n .setId(JsoupUtils.selectFirst(\"input[name=KorisnikOIB1]\", document).val()))\n .setAddress(new ParsedAddress()\n .setStreet(JsoupUtils.selectFirst(\"input[name=KorisnikUlicaIBroj1]\", document).val())\n .setCity(JsoupUtils.selectFirst(\"input[name=KorisnikGrad1]\", document).val())\n .setPostcode(JsoupUtils.selectFirst(\"input[name=KorisnikPbr1]\", document).val())\n .setCountry(JsoupUtils.selectFirst(\"input[name=KorisnikDrzava1]\", document).val())\n .setUrl(JsoupUtils.selectFirst(\"input[name=KontGlavnaStranica1]\", document).val()))\n .setContactName(JsoupUtils.selectFirst(\"input[name=ImeiPrezrezime1]\", document).val())\n .setPhone(JsoupUtils.selectFirst(\"input[name=TelOZZP1]\", document).val())\n .setEmail(JsoupUtils.selectFirst(\"input[name=EMailOZZP1]\", document).val())\n .setBuyerType(JsoupUtils.selectText(CHECKBOX_TEXT_SELECTOR, subsectionI4)))\n .setTitle(JsoupUtils.selectFirst(\"input[name=NazivNadmetanja1]\", document).val())\n .setSupplyType(JsoupUtils.selectText(\n \"tr:has(input[name=VrstaPredmeta_RAD1]) > td > p > input[checked] + span\", subsectionII1))\n .setIsFrameworkAgreement(JsoupUtils.exists(\"input[name=Poziv_OS1][checked]\", subsectionIV1).toString())\n .setIsDps(JsoupUtils.exists(\"input[name=Postupak_DPS1][checked]\", subsectionIV1).toString())\n .setIsElectronicAuction(JsoupUtils.exists(\"input[name=ElekDrazba_DA1]\", subsectionIV1).toString())\n .setIsCentralProcurement(JsoupUtils.exists(\"input[name=UgDodSredNab_DA1][checked]\", subsectionII1)\n .toString())\n .setHasLots(EOJNTenderOldAndNewFormUtils.parseIfTenderHasLots(subsectionII1))\n .setDescription(JsoupUtils.selectFirst(\"input[name=KOPNP1]\", document).val())\n .addCpv(new ParsedCPV()\n .setIsMain(Boolean.TRUE.toString())\n .setCode(JsoupUtils.selectFirst(\"input[name=CpvOznaka1]\", subsectionII1).val()))\n .setFinalPrice(parseTenderFinalPrice(subsectionII1))\n .setIsCoveredByGpa(EOJNTenderOldAndNewFormUtils.parseIsTenderCoveredByGpa(subsectionIV1))\n .setProcedureType(JsoupUtils.selectText(\"td:contains(IV.1.1) input[checked] + span\", subsectionIV1))\n .setBuyerAssignedId(JsoupUtils.selectFirst(\"input[name=EvidBrNab1]\", document).val())\n .setLots(parseLots(document))\n .setAppealBodyName(EOJNTenderOldAndNewFormUtils.parseTenderAppealBodyName(subsectionVI4));\n\n return parsedTender;\n }", "title": "" }, { "docid": "ac76f666fb17c670c9a3a35c14ec3ab9", "score": "0.45912465", "text": "protected void toXml(Record record) throws SAXException {\n char temp[];\n AttributesImpl atts = new AttributesImpl();\n if (indent) {\n handler.ignorableWhitespace(\"\\n \".toCharArray(), 0, 3);\n }\n handler.startElement(Constants.MARCXML_NS_URI, RECORD, RECORD, atts);\n\n if (indent) {\n handler.ignorableWhitespace(\"\\n \".toCharArray(), 0, 5);\n }\n handler.startElement(Constants.MARCXML_NS_URI, LEADER, LEADER, atts);\n Leader leader = record.getLeader();\n temp = leader.toString().toCharArray();\n handler.characters(temp, 0, temp.length);\n handler.endElement(Constants.MARCXML_NS_URI, LEADER, LEADER);\n\n Iterator i = record.getControlFields().iterator();\n while (i.hasNext()) {\n ControlField field = (ControlField) i.next();\n atts = new AttributesImpl();\n atts.addAttribute(\"\", \"tag\", \"tag\", \"CDATA\", field.getTag());\n\n if (indent) {\n handler.ignorableWhitespace(\"\\n \".toCharArray(), 0, 5);\n }\n handler.startElement(Constants.MARCXML_NS_URI, CONTROL_FIELD, CONTROL_FIELD, atts);\n temp = getDataElement(field.getData());\n handler.characters(temp, 0, temp.length);\n handler.endElement(Constants.MARCXML_NS_URI, CONTROL_FIELD, CONTROL_FIELD);\n }\n\n i = record.getDataFields().iterator();\n while (i.hasNext()) {\n DataField field = (DataField) i.next();\n atts = new AttributesImpl();\n atts.addAttribute(\"\", \"tag\", \"tag\", \"CDATA\", field.getTag());\n atts.addAttribute(\"\", \"ind1\", \"ind1\", \"CDATA\", String.valueOf(field.getIndicator1()));\n atts.addAttribute(\"\", \"ind2\", \"ind2\", \"CDATA\", String.valueOf(field.getIndicator2()));\n\n if (indent) {\n handler.ignorableWhitespace(\"\\n \".toCharArray(), 0, 5);\n }\n handler.startElement(Constants.MARCXML_NS_URI, DATA_FIELD, DATA_FIELD, atts);\n for (Object o : field.getSubfields()) {\n Subfield subfield = (Subfield) o;\n atts = new AttributesImpl();\n atts.addAttribute(\"\", \"code\", \"code\", \"CDATA\", String.valueOf(subfield.getCode()));\n\n if (indent) {\n handler.ignorableWhitespace(\"\\n \".toCharArray(), 0, 7);\n }\n handler.startElement(Constants.MARCXML_NS_URI, SUBFIELD, SUBFIELD, atts);\n temp = getDataElement(subfield.getData());\n handler.characters(temp, 0, temp.length);\n handler.endElement(Constants.MARCXML_NS_URI, SUBFIELD, SUBFIELD);\n }\n\n if (indent) {\n handler.ignorableWhitespace(\"\\n \".toCharArray(), 0, 5);\n }\n handler.endElement(Constants.MARCXML_NS_URI, DATA_FIELD, DATA_FIELD);\n }\n\n if (indent) {\n handler.ignorableWhitespace(\"\\n \".toCharArray(), 0, 3);\n }\n handler.endElement(Constants.MARCXML_NS_URI, RECORD, RECORD);\n }", "title": "" }, { "docid": "c9d97795e95b34e04ed777ddd9694a40", "score": "0.45824832", "text": "private JsonObject toDocument(TagFamily tagFamily, boolean withVersion) {\n\t\tJsonObject document = new JsonObject();\n\t\tdocument.put(NAME_KEY, tagFamily.getName());\n\t\taddBasicReferences(document, tagFamily);\n\t\taddTags(document, tagFamily.findAllIt());\n\t\taddProject(document, tagFamily.getProject());\n\t\taddPermissionInfo(document, tagFamily);\n\t\tif (withVersion) {\n\t\t\tdocument.put(MappingHelper.VERSION_KEY, generateVersion(tagFamily));\n\t\t}\n\t\treturn document;\n\t}", "title": "" }, { "docid": "4b2e689ece38233e1baca8202fe2a269", "score": "0.45762312", "text": "public DetailParser(Document d){\n this.doc = d;\n this.detailAttrs = new HashMap<>();\n parse();\n jw = new JsonWriter();\n jw.openJSONFile(this.detailAttrs);\n }", "title": "" }, { "docid": "b844deb8caee8e6a7713c005045068e3", "score": "0.45741174", "text": "public static OrganizationDetail parse(javax.xml.stream.XMLStreamReader reader) throws java.lang.Exception{\n OrganizationDetail object =\n new OrganizationDetail();\n\n int event;\n java.lang.String nillableValue = null;\n java.lang.String prefix =\"\";\n java.lang.String namespaceuri =\"\";\n try {\n \n while (!reader.isStartElement() && !reader.isEndElement())\n reader.next();\n\n \n if (reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\"type\")!=null){\n java.lang.String fullTypeName = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\n \"type\");\n if (fullTypeName!=null){\n java.lang.String nsPrefix = null;\n if (fullTypeName.indexOf(\":\") > -1){\n nsPrefix = fullTypeName.substring(0,fullTypeName.indexOf(\":\"));\n }\n nsPrefix = nsPrefix==null?\"\":nsPrefix;\n\n java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(\":\")+1);\n \n if (!\"OrganizationDetail\".equals(type)){\n //find namespace for the prefix\n java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix);\n return (OrganizationDetail)ExtensionMapper.getTypeObject(\n nsUri,type,reader);\n }\n \n\n }\n \n\n }\n\n \n\n \n // Note all attributes that were handled. Used to differ normal attributes\n // from anyAttributes.\n java.util.Vector handledAttributes = new java.util.Vector();\n \n\n \n \n reader.next();\n \n \n while (!reader.isStartElement() && !reader.isEndElement()) reader.next();\n \n if (reader.isStartElement() && new javax.xml.namespace.QName(\"http://schemas.microsoft.com/xrm/2011/Contracts/Discovery\",\"Endpoints\").equals(reader.getName())){\n \n nillableValue = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\"nil\");\n if (\"true\".equals(nillableValue) || \"1\".equals(nillableValue)){\n object.setEndpoints(null);\n reader.next();\n \n reader.next();\n \n }else{\n \n object.setEndpoints(EndpointCollection.Factory.parse(reader));\n \n reader.next();\n }\n } // End of if for expected property start element\n \n else {\n \n }\n \n \n while (!reader.isStartElement() && !reader.isEndElement()) reader.next();\n \n if (reader.isStartElement() && new javax.xml.namespace.QName(\"http://schemas.microsoft.com/xrm/2011/Contracts/Discovery\",\"FriendlyName\").equals(reader.getName())){\n \n nillableValue = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\"nil\");\n if (!\"true\".equals(nillableValue) && !\"1\".equals(nillableValue)){\n \n\n java.lang.String content = reader.getElementText();\n \n object.setFriendlyName(\n org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content));\n \n } else {\n \n \n reader.getElementText(); // throw away text nodes if any.\n }\n \n reader.next();\n \n } // End of if for expected property start element\n \n else {\n \n }\n \n \n while (!reader.isStartElement() && !reader.isEndElement()) reader.next();\n \n if (reader.isStartElement() && new javax.xml.namespace.QName(\"http://schemas.microsoft.com/xrm/2011/Contracts/Discovery\",\"OrganizationId\").equals(reader.getName())){\n \n object.setOrganizationId(Guid.Factory.parse(reader));\n \n reader.next();\n \n } // End of if for expected property start element\n \n else {\n \n }\n \n \n while (!reader.isStartElement() && !reader.isEndElement()) reader.next();\n \n if (reader.isStartElement() && new javax.xml.namespace.QName(\"http://schemas.microsoft.com/xrm/2011/Contracts/Discovery\",\"OrganizationVersion\").equals(reader.getName())){\n \n nillableValue = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\"nil\");\n if (!\"true\".equals(nillableValue) && !\"1\".equals(nillableValue)){\n \n\n java.lang.String content = reader.getElementText();\n \n object.setOrganizationVersion(\n org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content));\n \n } else {\n \n \n reader.getElementText(); // throw away text nodes if any.\n }\n \n reader.next();\n \n } // End of if for expected property start element\n \n else {\n \n }\n \n \n while (!reader.isStartElement() && !reader.isEndElement()) reader.next();\n \n if (reader.isStartElement() && new javax.xml.namespace.QName(\"http://schemas.microsoft.com/xrm/2011/Contracts/Discovery\",\"State\").equals(reader.getName())){\n \n object.setState(OrganizationState.Factory.parse(reader));\n \n reader.next();\n \n } // End of if for expected property start element\n \n else {\n \n }\n \n \n while (!reader.isStartElement() && !reader.isEndElement()) reader.next();\n \n if (reader.isStartElement() && new javax.xml.namespace.QName(\"http://schemas.microsoft.com/xrm/2011/Contracts/Discovery\",\"UniqueName\").equals(reader.getName())){\n \n nillableValue = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\"nil\");\n if (!\"true\".equals(nillableValue) && !\"1\".equals(nillableValue)){\n \n\n java.lang.String content = reader.getElementText();\n \n object.setUniqueName(\n org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content));\n \n } else {\n \n \n reader.getElementText(); // throw away text nodes if any.\n }\n \n reader.next();\n \n } // End of if for expected property start element\n \n else {\n \n }\n \n \n while (!reader.isStartElement() && !reader.isEndElement()) reader.next();\n \n if (reader.isStartElement() && new javax.xml.namespace.QName(\"http://schemas.microsoft.com/xrm/2011/Contracts/Discovery\",\"UrlName\").equals(reader.getName())){\n \n nillableValue = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\"nil\");\n if (!\"true\".equals(nillableValue) && !\"1\".equals(nillableValue)){\n \n\n java.lang.String content = reader.getElementText();\n \n object.setUrlName(\n org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content));\n \n } else {\n \n \n reader.getElementText(); // throw away text nodes if any.\n }\n \n reader.next();\n \n } // End of if for expected property start element\n \n else {\n \n }\n \n while (!reader.isStartElement() && !reader.isEndElement())\n reader.next();\n \n if (reader.isStartElement())\n // A start element we are not expecting indicates a trailing invalid property\n throw new org.apache.axis2.databinding.ADBException(\"Unexpected subelement \" + reader.getName());\n \n\n\n\n } catch (javax.xml.stream.XMLStreamException e) {\n throw new java.lang.Exception(e);\n }\n\n return object;\n }", "title": "" }, { "docid": "aa6c2ea3c4573369b57c353e148e2211", "score": "0.45648286", "text": "public static Map<String, RoomNode> buildMapModelFromDocument(Document document) {\n\n NodeList rooms = document.getElementsByTagName(XML_TAG_NAME_FOR_ROOM);\n\n int count = rooms.getLength();\n\n /* The RoomNodes will hold the data in XML room elements. Since we know that size,\n * we can pre-size our array avoiding any performance penalties due to dynamic resizing.\n */\n Map<String, RoomNode> roomMapById = new HashMap<>(count);\n\n // assume the first room in the map.xml is the starting point\n node2RoomNode(roomMapById, rooms.item(0));\n\n // we already have the first room (0) now get every room element in the xml and create a roomNode for them.\n for (int index = 1; index < count; index++) {\n node2RoomNode(roomMapById, rooms.item(index));\n }\n\n return roomMapById;\n }", "title": "" }, { "docid": "f0465f2db925c47978f203d53c9b7365", "score": "0.45599172", "text": "@Override\n protected void generateDocument(Object object, Document document) throws Exception {\n\n if (object instanceof Say) {\n createSay((Say) object, document);\n } else if (object instanceof PauseCommand) {\n createPauseCommand((PauseCommand) object, document);\n } else if (object instanceof ResumeCommand) {\n createResumeCommand((ResumeCommand) object, document);\n } else if (object instanceof SayCompleteEvent) {\n createSayCompleteEvent((SayCompleteEvent) object, document);\n }\n }", "title": "" }, { "docid": "4346359ed47c4129c63f97a1f92d73d0", "score": "0.4557139", "text": "@Override\r\n protected Document convert0(Document doc) throws Exception {\n Document result = createNewDocument(\"spark\", VERSION);\r\n Node newRoot = result.getFirstChild();\r\n\r\n // Create 'files' node\r\n Node files = result.createElement(\"files\");\r\n newRoot.appendChild(files);\r\n\r\n // Create 'model' and 'interface' nodes\r\n Node model = result.createElement(\"model\");\r\n Node interfaceNode = result.createElement(\"interface\");\r\n\r\n newRoot.appendChild(model);\r\n newRoot.appendChild(interfaceNode);\r\n\r\n // Create 'windows' subnode\r\n Node windows = result.createElement(\"windows\");\r\n removeChildren(interfaceNode, \"windows\");\r\n interfaceNode.appendChild(windows);\r\n\r\n /****** Begin a process ******/\r\n // Take the original root node\r\n Node root = doc.getFirstChild();\r\n\r\n // Expand 'charts' node\r\n Node charts = getChildByTagName(root, \"charts\");\r\n if (charts != null) {\r\n for (Node chart : getChildrenByTagName(charts, \"chart\")) {\r\n root.appendChild(chart);\r\n }\r\n }\r\n\r\n removeChildren(root, \"charts\");\r\n\r\n // Iterate over all nodes in 'doc'\r\n NodeList nodes = root.getChildNodes();\r\n HashSet<String> names = new HashSet<String>();\r\n\r\n for (int i = 0; i < nodes.getLength(); i++) {\r\n Node node = nodes.item(i);\r\n String name = node.getNodeName().intern();\r\n\r\n node = result.importNode(node, true);\r\n\r\n if (name == \"classpath\") {\r\n String path = getValue(node, \"path\", \".\");\r\n addAttr(result, files, \"path\", path);\r\n // Include all files in the given directory\r\n addAttr(result, files, \"all\", true);\r\n continue;\r\n }\r\n\r\n if (name == \"setup\" || name == \"agents\"\r\n || name == \"variables\" || name == \"methods\") {\r\n model.appendChild(node);\r\n\r\n // Special treatment of methods\r\n if (name == \"methods\") {\r\n Node methods = result.createElement(\"methods-panel\");\r\n int x = getIntegerValue(node, \"x\", 0);\r\n int y = getIntegerValue(node, \"y\", 0);\r\n int width = getIntegerValue(node, \"width\", 300);\r\n int height = getIntegerValue(node, \"height\", 300);\r\n\r\n addAttr(result, methods, \"x\", x);\r\n addAttr(result, methods, \"y\", y);\r\n addAttr(result, methods, \"width\", width);\r\n addAttr(result, methods, \"height\", height);\r\n\r\n interfaceNode.appendChild(methods);\r\n processWindow(result, windows, methods, \"methods\", names);\r\n }\r\n } else {\r\n interfaceNode.appendChild(node);\r\n\r\n processWindow(result, windows, node, name, names);\r\n }\r\n }\r\n\r\n return result;\r\n }", "title": "" }, { "docid": "b7d94d5e50f063014dbc6d50e3df91e0", "score": "0.45450738", "text": "public TranscoderOutput(Document document) {\n\t\tthis.document = document;\n\t}", "title": "" }, { "docid": "fcb52d9d9ca183a8640b3cd290d77788", "score": "0.453856", "text": "public IpmemsWebDocParser(Document doc) {\n\t\tdocument = doc;\n\t}", "title": "" }, { "docid": "8792f2116dc7f991bdbc98aec9cc9759", "score": "0.45260847", "text": "public static Book toModel(BookSoap soapModel) {\n if (soapModel == null) {\n return null;\n }\n\n Book model = new BookImpl();\n\n model.setGusetbookId(soapModel.getGusetbookId());\n model.setTitle(soapModel.getTitle());\n model.setContent(soapModel.getContent());\n model.setGroupId(soapModel.getGroupId());\n model.setCompanyId(soapModel.getCompanyId());\n model.setUserId(soapModel.getUserId());\n model.setUserName(soapModel.getUserName());\n model.setCreateDate(soapModel.getCreateDate());\n model.setModifiedDate(soapModel.getModifiedDate());\n model.setDeleteDate(soapModel.getDeleteDate());\n\n return model;\n }", "title": "" }, { "docid": "bc9ecf134960b24ef50e37449677c6e0", "score": "0.45007443", "text": "private Experiment convertExperimentFromDocument(Document document)\n throws InvalidProtocolBufferException {\n Experiment.Builder builder = Experiment.newBuilder();\n\n document.remove(\"_id\");\n\n JsonFormat.parser().merge(document.toJson(), builder);\n return builder.build();\n }", "title": "" }, { "docid": "51215343db63cb8f700d3e65b7e9decf", "score": "0.44878796", "text": "public DocumentOffer(\tModelCustomer modelCustomerBilling,\r\n\t\t\t\t\t\t\tModelCustomer modelCustomerDelivery,\r\n\t\t\t\t\t\t\tModelOffer modelOffer,\r\n\t\t\t\t\t\t\tModelClerk modelClerk\r\n\t\t\t\t\t\t\t){\r\n\t\t\r\n\t\tif(\tnew PathProperties().loadProperty(PathProperties.KEY_OFFER_TEMPLATE).equals(\"\")){\r\n\t\t\tnew ErrorAlert(\"Es wurde keine *.docx-Datei als Vorlage angegeben.\");\r\n\t\t\tSystem.out.println(\"Keine *.docx Datei vorhanden!\");\r\n\t\t\treturn;\r\n\t\t}else{\r\n\t\t\tinputFilepath = new PathProperties().loadProperty(PathProperties.KEY_OFFER_TEMPLATE);\r\n\t\t}\r\n\t\t\r\n\t\tif(new PathProperties().loadProperty(PathProperties.KEY_OFFER_SAVING).equals(\"\")){\r\n\t\t\tnew ErrorAlert(\"Es ist kein gültiger Speicherort angegeben.\");\r\n\t\t\tSystem.out.println(\"Es ist kein gültiger Speicherort angegeben.\");\r\n\t\t\treturn;\r\n\t\t}else{\r\n\t\t\toutputFilepath = new PathProperties().loadProperty(PathProperties.KEY_OFFER_SAVING);\r\n\t\t}\r\n\t\t\t\t\r\n\t\t//IF THERE IS NO BILLINGADRESS THE DELIVERYADRESS IS USED FOR BOTH\r\n\t\tif(modelCustomerDelivery.getBillingID() == 0){\r\n\t\t\tmodelCustomerBilling = modelCustomerDelivery;\r\n\t\t}\r\n\t\t\r\n\t\ttry{\r\n\t\t\t\r\n\t\t\t/* Load Document with placeholder */\r\n//\t\t\tdoc = new XWPFDocument(new FileInputStream(\"files/docOffer.docx\"));\r\n\t\t\tdoc = new XWPFDocument(new FileInputStream(inputFilepath));\r\n\t\t\t\r\n\t\t\t/* SET DOCUMENT DATA */\r\n\t\t\tfor(XWPFParagraph p : doc.getParagraphs()){\r\n\t\t\t\t\r\n\t\t\t\tSystem.out.println(\"Document Runs: \" + p.getRuns());\r\n\t\t\t\t\r\n\t\t\t\tfor(XWPFRun r : p.getRuns()){\r\n\t\t\t\t\tcheckFields(r, modelCustomerBilling, modelCustomerDelivery, modelOffer, modelClerk, 0);\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/* COPY ROWS OF ARTICLE/POSITION TABLE\r\n\t\t\t IMPORTANT: THE ARTICLE/POSITION TABLE MUST HAVE A HEADLINE-ROW WITH MINIMAL ONE OF THE FOLLOWING DESCRIPTION:\r\n\t\t\t - Pos.\r\n\t\t\t - Art-Nr.\r\n\t\t\t - Bezeichnung\r\n\t\t\t - Menge\r\n\t\t\t - Einheit / ME / PE\r\n\t\t\t - VK / E-Preis / Preis\r\n\t\t\t - VK-Gesamt / G-Preis / Total\r\n\t\t\t \r\n\t\t\t THE PROGRAM WILL DETECT THE ARTICLE-TABLE THROUGH THESE DESCRIPTION AND COPY THE ROWS IN AMOUNT OF THE ARTICLES/POSITIONS\r\n\t\t\t \r\n\t\t\t AFTER THE ROWS WERE COPIED THE DOCUMENT MUST BE SAVED - OTHERWISE THE COPIED ROWS ARE NOT FOUND\r\n\t\t\t */\r\n\t\t\tint numberOfTables = doc.getTables().size();\r\n\t\t\tint iTableWithArticles = 0;\r\n\t\t\t\r\n\t\t\t// DETECT THE TABLE WITH ARTICLES\r\n\t\t\tfor(int tables = 0; tables < numberOfTables; tables++){\r\n\t\t\t\t\r\n\t\t\t\tif(\tdoc.getTables().get(tables).getRows().get(0).getTableCells().get(0).getText().equals(\"Pos.\") ||\r\n\t\t\t\t\tdoc.getTables().get(tables).getRows().get(0).getTableCells().get(0).getText().equals(\"ART-NR.\") ||\r\n\t\t\t\t\tdoc.getTables().get(tables).getRows().get(0).getTableCells().get(0).getText().equals(\"BEZEICHNUNG\") ||\r\n\t\t\t\t\tdoc.getTables().get(tables).getRows().get(0).getTableCells().get(0).getText().equals(\"MENGE\") ||\r\n\t\t\t\t\tdoc.getTables().get(tables).getRows().get(0).getTableCells().get(0).getText().equals(\"EINHEIT\") ||\r\n\t\t\t\t\tdoc.getTables().get(tables).getRows().get(0).getTableCells().get(0).getText().equals(\"ME\") ||\r\n\t\t\t\t\tdoc.getTables().get(tables).getRows().get(0).getTableCells().get(0).getText().equals(\"PE\") ||\r\n\t\t\t\t\tdoc.getTables().get(tables).getRows().get(0).getTableCells().get(0).getText().equals(\"VK\") ||\r\n\t\t\t\t\tdoc.getTables().get(tables).getRows().get(0).getTableCells().get(0).getText().equals(\"E-PREIS\") ||\r\n\t\t\t\t\tdoc.getTables().get(tables).getRows().get(0).getTableCells().get(0).getText().equals(\"PREIS\") ||\r\n\t\t\t\t\tdoc.getTables().get(tables).getRows().get(0).getTableCells().get(0).getText().equals(\"VK-GES\") ||\r\n\t\t\t\t\tdoc.getTables().get(tables).getRows().get(0).getTableCells().get(0).getText().equals(\"G-PREIS\") ||\r\n\t\t\t\t\tdoc.getTables().get(tables).getRows().get(0).getTableCells().get(0).getText().equals(\"TOTAL\")){\r\n\t\t\t\t\tiTableWithArticles = tables;\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// COPY THE ROW WITH THE PLACEHOLDER AS MUCH AS NEEDED\r\n\t\t\tXWPFTable tableWithArticles = doc.getTables().get(iTableWithArticles);\r\n\t\t\t\r\n\t\t\tfor(int i = 1; i < modelOffer.getObsListArticle().size(); i++){ // i = 1 BECAUSE ONE ROW EXISTS ALREADY IN THE DOCUMENT\r\n\t\t\t\t\r\n\t\t\t\tXWPFTableRow articleRow = tableWithArticles.getRows().get(2); \t// 0 = FIRST ROW - FIRST ROW IS THE HEADLINE \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// 1 = SECOND ROW - SECOND ROW IS EMPTY\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// 2 = THIRD ROW - THIRD ROW CONTAINS THE PLACEHOLDER \r\n\t\t\t\ttableWithArticles.addRow(articleRow);\r\n\t\t\t\t\r\n\t\t\t}\t\r\n\t\t\t\r\n\t\t\t//HERE MUST BE SAVED OTHERWISE APACHE POI CAN'T FIND THE COPIED ROWS\r\n//\t\t\tsaveDocumentAsPreview();\r\n\t\t\tdoc.write(new FileOutputStream(\"files/docOfferPreview.docx\"));\r\n\t\t\tdoc.close();\r\n\t\t\t//RELOAD THE CURRENTLY SAVED DOCUMENT\r\n\t\t\tdoc = new XWPFDocument(new FileInputStream(\"files/docOfferPreview.docx\"));\r\n\t\t\t\r\n\t\t\t/* TABLES */\t\t\t\r\n\t\t\tfor(int table = 0; table < numberOfTables; table++){\r\n\t\t\t\t\r\n\t\t\t\tXWPFTable t = doc.getTables().get(table);\r\n\t\t\t\tint numberOfRows = t.getRows().size();\r\n\t\t\t\t\r\n\t\t\t\tfor(int row = 0; row < numberOfRows; row++){\r\n\t\t\t\t\t\r\n\t\t\t\t\tXWPFTableRow tr = t.getRow(row);\r\n\t\t\t\t\tint numberOfCells = tr.getTableCells().size();\r\n\t\t\t\t\t\r\n\t\t\t\t\tfor(int cell = 0; cell < numberOfCells; cell++){\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tXWPFTableCell tc = tr.getCell(cell);\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tfor(XWPFParagraph tableP : tc.getParagraphs()){\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\tSystem.out.println(\"Table Runs: \" + tableP.getRuns());\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\tfor(XWPFRun tableR : tableP.getRuns()){\r\n\t\t\t\t\t\t\t\tcheckFields(tableR, modelCustomerBilling, modelCustomerDelivery, modelOffer, modelClerk, row - 2); // ROW - 2 BECAUSE THE FRIST ROW IS THE HEADLINE SECOND ROW IS EMPTY\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t}\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t}\t\t\t\t\t\t\r\n\t\t\t\t\t}\t\t\t\t\t\r\n\t\t\t\t}\t\t\t\t\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t/* SAVE AND OPEN */\r\n\t\t\tsaveDocumentAsOffical(modelCustomerBilling.getName1(), modelCustomerBilling.getLocation());\r\n\t\t\topenDocument(outputFilepath);\r\n\t\t\t\r\n\t\t}catch(Exception e){\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\t\r\n\t}", "title": "" }, { "docid": "97c4f72ab11ca6d1601dac49eaa1b8df", "score": "0.44853544", "text": "public Document() {}", "title": "" }, { "docid": "7c731626f162eef77bb4109fb8a7a2e0", "score": "0.44851574", "text": "@Override\n\tpublic void startDocument() throws SAXException {\n\t\tpersons= new ArrayList<Person>();\n\t\tSystem.out.println(\"解析文档开始\");\n\t\t\n\t}", "title": "" }, { "docid": "69c88616925ab0a418961835c2447447", "score": "0.4479384", "text": "@Path(\"/import\")\n @POST\n @Consumes(\"application/ld+json\")\n public Response parse(@QueryParam(\"uri\") String uri, Object doc) throws IOException {\n try{\n logger.info(\"Importing document\");\n DocumentManager dm = new DocumentManager();\n if (doc==null){\n logger.info(\"Content is null so creating new document.\");\n dm.create(uri);\n }\n else {\n //JSONObject obj=(JSONObject)doc.getContent();\n dm.parse(uri,doc);\n }\n return javax.ws.rs.core.Response.ok().build();\n } catch (Exception ex) {\n logger.error(\"Error: Cannot import \", ex);\n return Response.status(Response.Status.INTERNAL_SERVER_ERROR).entity(\"Error retrieving classes \" + ex).build();\n }\n\n }", "title": "" }, { "docid": "b27fd9df5f6fc1fdd2e16bf5ed965acc", "score": "0.44688576", "text": "private void handleReceivedDoc(Document doc) {\n\n Message message = Message.parse(doc);\n if(message == null) {\n Log.log(Log.Level.ERROR, \"Received invalid message.\");\n return;\n }\n if(message.getContent() instanceof Action){\n long actionID = ((Action) message.getContent()).getID();\n if(actionID != -1 && futureActions.containsKey(actionID)){\n futureActions.get(actionID).complete(doc);\n }\n else Log.log(Log.Level.ERROR, \"Invalid action id \" + actionID + \" from \" + name);\n }\n else{\n Log.log(Log.Level.NORMAL, \"Received unknown message type from \" + name);\n }\n }", "title": "" }, { "docid": "a25189ed60dc61c6b9decc646b2cb13e", "score": "0.445413", "text": "public static OrganizationRelease parse(javax.xml.stream.XMLStreamReader reader) throws java.lang.Exception{\n OrganizationRelease object = null;\n // initialize a hash map to keep values\n java.util.Map attributeMap = new java.util.HashMap();\n java.util.List extraAttributeList = new java.util.ArrayList<org.apache.axiom.om.OMAttribute>();\n \n\n int event;\n java.lang.String nillableValue = null;\n java.lang.String prefix =\"\";\n java.lang.String namespaceuri =\"\";\n try {\n \n while (!reader.isStartElement() && !reader.isEndElement())\n reader.next();\n\n \n\n \n // Note all attributes that were handled. Used to differ normal attributes\n // from anyAttributes.\n java.util.Vector handledAttributes = new java.util.Vector();\n \n\n \n while(!reader.isEndElement()) {\n if (reader.isStartElement() || reader.hasText()){\n \n nillableValue = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\"nil\");\n if (\"true\".equals(nillableValue) || \"1\".equals(nillableValue)){\n throw new org.apache.axis2.databinding.ADBException(\"The element: \"+\"OrganizationRelease\" +\" cannot be null\");\n }\n \n\n java.lang.String content = reader.getElementText();\n \n if (content.indexOf(\":\") > 0) {\n // this seems to be a Qname so find the namespace and send\n prefix = content.substring(0, content.indexOf(\":\"));\n namespaceuri = reader.getNamespaceURI(prefix);\n object = OrganizationRelease.Factory.fromString(content,namespaceuri);\n } else {\n // this seems to be not a qname send and empty namespace incase of it is\n // check is done in fromString method\n object = OrganizationRelease.Factory.fromString(content,\"\");\n }\n \n \n } else {\n reader.next();\n } \n } // end of while loop\n \n\n\n\n } catch (javax.xml.stream.XMLStreamException e) {\n throw new java.lang.Exception(e);\n }\n\n return object;\n }", "title": "" }, { "docid": "5d1beb0cb9966d9615986bad786a457d", "score": "0.4447702", "text": "public PlantType(Document doc) {\n\t\tsuper(doc);\n\n\t\tsetId(doc.getString(\"id\"));\n\t\tsetName(doc.getString(\"name\"));\n\t\tsetFamily(doc.getString(\"family\"));\n\t\tsetScientific_name(doc.getString(\"scientific_name\"));\n\t\tsetOrigin(doc.getString(\"origin\"));\n\t\tsetExternal_link(doc.getString(\"external_link\"));\n\t\tsetHarvest_method(doc.getString(\"harvest_method\"));\n\t\tsetTrimming_method(doc.getString(\"trimming_method\"));\n\t\tsetExpected_height(doc.getString(\"expected_height\"));\n\t\tsetCompanion_bugs(doc.getString(\"companion_bugs\"));\n\t\tsetAversive_bugs(doc.getString(\"aversive_bugs\"));\n\t\tsetCompanion_plants(doc.getString(\"companion_plants\"));\n\t\tsetAversive_plants(doc.getString(\"aversive_plants\"));\n\t\tsetPreferred_soil(doc.getString(\"preferred_soil\"));\n\t\tsetLeaf_color(doc.getString(\"leaf_color\"));\n\t\tsetPicture(doc.getString(\"picture\"));\n\t\tsetDeficiencies(doc.getString(\"deficiencies\"));\n\t\tsetNutrients(doc.getString(\"nutrients\"));\n\t\tsetRepels(doc.getString(\"repels\"));\n\t\tsetAttracts(doc.getString(\"attracts\"));\n\n\t\tsetSpace_needed_min(doc.getString(\"space_needed_min\"));\n\t\tsetSpace_needed_max(doc.getString(\"space_needed_max\"));\n\t\tsetTime_to_germinate_min(doc.getString(\"time_to_germinate_min\"));\n\t\tsetTime_to_germinate_max(doc.getString(\"time_to_germinate_max\"));\n\t\tsetTime_to_mature_min(doc.getString(\"time_to_mature_min\"));\n\t\tsetTime_to_mature_max(doc.getString(\"time_to_mature_max\"));\n\t\tsetTempature_min(doc.getString(\"tempature_min\"));\n\t\tsetTempature_max(doc.getString(\"tempature_max\"));\n\t\tsetTolerances_min(doc.getString(\"tolerances_min\"));\n\t\tsetTolerances_max(doc.getString(\"tolerances_max\"));\n\t\tsetWater_required_min(doc.getString(\"water_required_min\"));\n\t\tsetWater_required_max(doc.getString(\"water_required_max\"));\n\t\tsetLight_required_min(doc.getString(\"light_required_min\"));\n\t\tsetLight_required_max(doc.getString(\"light_required_max\"));\n\n\t}", "title": "" }, { "docid": "a1a357eada90d58eae0fc0b66e8e2834", "score": "0.44472757", "text": "public Element[] documentToElement (Document[] documents);", "title": "" }, { "docid": "22ca6b74474a92f50c38b6610fd12b6d", "score": "0.44415072", "text": "public static PersonalAbsence toModel(PersonalAbsenceSoap soapModel) {\n\t\tif (soapModel == null) {\n\t\t\treturn null;\n\t\t}\n\n\t\tPersonalAbsence model = new PersonalAbsenceImpl();\n\n\t\tmodel.setCustom_key(soapModel.getCustom_key());\n\t\tmodel.setPersonId(soapModel.getPersonId());\n\t\tmodel.setAbsenceDate(soapModel.getAbsenceDate());\n\t\tmodel.setRefMonth(soapModel.getRefMonth());\n\t\tmodel.setAbsenceCode(soapModel.getAbsenceCode());\n\t\tmodel.setCompleteDay(soapModel.getCompleteDay());\n\t\tmodel.setFrom(soapModel.getFrom());\n\t\tmodel.setTo(soapModel.getTo());\n\t\tmodel.setHours(soapModel.getHours());\n\t\tmodel.setDescription(soapModel.getDescription());\n\n\t\treturn model;\n\t}", "title": "" }, { "docid": "4030dc082005d18abf30be019645d0a0", "score": "0.44394013", "text": "@SuppressWarnings(\"rawtypes\")\n\t@Override\n\tprotected Object parse(DBObject obj){\n\t\tSprint sprint = new Sprint();\n\t\t//System.out.println(obj);\n\t\tMap map = obj.toMap();\n\t\tProjects p = this.projectController.retreiveProjectById(Integer.parseInt(map.get(\"projectId\").toString()));\n\t\tif(map.size() > 0 && p != null){\n\t\t\tsprint.setId(map.get(\"_id\").toString());\n\t\t\tsprint.setProject(p);\n\t\t\tsprint.setName(map.get(\"name\").toString());\n\t\t\t//sprint.setStartAt(super.getCalendarParser().parseStringToCalendar(map.get(\"startAt\").toString()));\n\t\t\t//System.out.println(\"sprinDaoparse: \" + map.get(\"startAt\").toString());\n\t\t\tsprint.setStartAt(super.getCalendarParser().parseIsoDateString(map.get(\"startAt\").toString()));\n\t\t\t//sprint.setEndAt(super.getCalendarParser().parseStringToCalendar(map.get(\"endAt\").toString()));\n\t\t\tsprint.setEndAt(super.getCalendarParser().parseIsoDateString(map.get(\"endAt\").toString()));\n\t\t\t\n\t\t}else{\n\t\t\tSystem.out.println(\"404\");\n\t\t}\n\t\treturn sprint;\n\t}", "title": "" }, { "docid": "6444b966ca8d9d7f645bc6727159f3bc", "score": "0.44288665", "text": "public static SAuthor toModel(SAuthorSoap soapModel) {\n if (soapModel == null) {\n return null;\n }\n\n SAuthor model = new SAuthorImpl();\n\n model.setAuthorId(soapModel.getAuthorId());\n model.setFirstName(soapModel.getFirstName());\n model.setLastName(soapModel.getLastName());\n\n return model;\n }", "title": "" }, { "docid": "3fd2e4fe01fa67a36330000712f28ad7", "score": "0.44282442", "text": "public interface PmlEdmBookDocumentRecordToModel extends BaseModel {\n public PmlEdmBookDocumentRecordToPK getPrimaryKey();\n\n public void setPrimaryKey(PmlEdmBookDocumentRecordToPK pk);\n\n public long getDocumentReceiptId();\n\n public void setDocumentReceiptId(long documentReceiptId);\n\n public long getDocumentRecordToId();\n\n public void setDocumentRecordToId(long documentRecordToId);\n\n public Date getDateCreate();\n\n public void setDateCreate(Date dateCreate);\n\n public Date getDateComplete();\n\n public void setDateComplete(Date dateComplete);\n\n public int getSoCongVanDenPhongHienTai();\n\n public void setSoCongVanDenPhongHienTai(int soCongVanDenPhongHienTai);\n\n public PmlEdmBookDocumentRecordTo toEscapedModel();\n}", "title": "" }, { "docid": "f056989f79027557f8d8fc126c849687", "score": "0.44246668", "text": "protected String loadDocumentDetails ()\n\t{\n\t\tsetC_Currency_ID (Doc.NO_CURRENCY);\n\t\tMMatchInv matchInv = (MMatchInv)getPO();\n\t\tsetDateDoc(matchInv.getDateTrx());\n\t\tsetQty (matchInv.getQty());\n\t\t//\tInvoice Info\n\t\tint C_InvoiceLine_ID = matchInv.getC_InvoiceLine_ID();\n\t\tm_invoiceLine = new MInvoiceLine (getCtx(), C_InvoiceLine_ID, null);\n\t\t//\t\tBP for NotInvoicedReceipts\n\t\tint C_BPartner_ID = m_invoiceLine.getParent().getC_BPartner_ID(); \n\t\tsetC_BPartner_ID(C_BPartner_ID);\n\t\t//\n\t\tint M_InOutLine_ID = matchInv.getM_InOutLine_ID();\n\t\tm_receiptLine = new MInOutLine (getCtx(), M_InOutLine_ID, null);\t\t\n\t\t//\n\t\tm_pc = new ProductCost (Env.getCtx(), \n\t\t\tgetM_Product_ID(), matchInv.getM_AttributeSetInstance_ID(), null);\n\t\tm_pc.setQty(getQty());\n\t\t\n\t\treturn null;\n\t}", "title": "" }, { "docid": "488acac8035dcb667891ec28342e282d", "score": "0.44168198", "text": "public Document enrichDocument( Document jsonObject, String branch, String user, long time, int hash, ArrayList<Document> orgJson){\n\t\tString uuid = jsonObject.getString(Archimate3Parser.IDENTIFIER_TAG);\r\n\t\t// copying the document has been done to ensure the order of the properties in the document. This is unfortunately\r\n\t\t// necessary since the current moxy implementation has a bug that it is not able to read @xsi_type at an arbitrary \r\n\t\t// position in the json string. It has to be at the beginning of the string.\r\n\t\t// When the bug is fixed, we can remove this copy operation.\r\n\t\tDocument raw = new Document();\r\n\t\traw.append(Archimate3Parser.IDENTIFIER_TAG, uuid);\r\n\t\tif(jsonObject.containsKey(Archimate3Parser.TYPE_TAG)){\r\n\t\t\traw.append(Archimate3Parser.TYPE_TAG, jsonObject.get(Archimate3Parser.TYPE_TAG));\r\n\t\t}\r\n\t\tjsonObject.remove(Archimate3Parser.TYPE_TAG);\r\n\t\traw.putAll(jsonObject);\r\n\t\t//\t\tjsonObject.put(Archimate3Parser.IDENTIFIER_TAG, uuid);\r\n//\t\tif(jsonObject.containsKey(Archimate3Parser.PROPERTIES_TAG)){\r\n//\t\t\tDocument propies = (Document) jsonObject.get(Archimate3Parser.PROPERTIES_TAG);\r\n//\t\t\tArrayList<Document> props = (ArrayList<Document>) propies.get(Archimate3Parser.PROPERTY_TAG);\r\n//\t\t\tIterator<Document> it = props.iterator();\r\n//\t\t\twhile(it.hasNext()){\r\n//\t\t\t\tDocument prop = it.next();\r\n//\t\t\t\tif(prop.getString(Archimate3Parser.PROPERTY_DEFINITIONREF_TAG).equals(PROPID_IEA_START_DATE)){\r\n//\t\t\t\t\tDocument val = (Document) prop.get(Archimate3Parser.PROPERTY_VALUE_TAG);\r\n//\t\t\t\t\t//\t\t\t\t\tval.remove(Archimate3Parser.VALUE_TAG);\r\n//\t\t\t\t\tval.put(Archimate3Parser.VALUE_TAG, String.valueOf(time));\r\n//\t\t\t\t} else if(prop.getString(Archimate3Parser.PROPERTY_DEFINITIONREF_TAG).equals(PROPID_IEA_END_DATE)){\r\n//\t\t\t\t\tDocument val = (Document) prop.get(Archimate3Parser.PROPERTY_VALUE_TAG);\r\n//\t\t\t\t\t//\t\t\t\t\tval.remove(Archimate3Parser.VALUE_TAG);\r\n//\t\t\t\t\tval.put(Archimate3Parser.VALUE_TAG, String.valueOf((long)-1));\r\n//\t\t\t\t} else if(prop.getString(Archimate3Parser.PROPERTY_DEFINITIONREF_TAG).equals(PROPID_IEA_IDENTIFIER)){\r\n//\t\t\t\t\tDocument val = (Document) prop.get(Archimate3Parser.PROPERTY_VALUE_TAG);\r\n//\t\t\t\t\t//\t\t\t\t\tval.remove(Archimate3Parser.VALUE_TAG);\r\n//\t\t\t\t\tval.put(\"value\", uuid);\r\n//\t\t\t\t} else if(prop.getString(Archimate3Parser.PROPERTY_DEFINITIONREF_TAG).equals(PROPID_IEA_HASH)){\r\n//\t\t\t\t\tDocument val = (Document) prop.get(Archimate3Parser.PROPERTY_VALUE_TAG);\r\n//\t\t\t\t\t//\t\t\t\t\tval.remove(Archimate3Parser.VALUE_TAG);\r\n//\t\t\t\t\tval.put(\"value\", hash);\r\n//\t\t\t\t} \r\n//\t\t\t}\r\n//\t\t} else {\r\n//\t\t\tArrayList<Document> props = new ArrayList<Document>();\r\n//\t\t\tDocument prop = new Document();\r\n//\t\t\tprop.put(Archimate3Parser.PROPERTY_DEFINITIONREF_TAG, PROPID_IEA_START_DATE);\r\n//\t\t\tDocument val = new Document(\"@xml_lang\", \"en\");\r\n//\t\t\tString start = String.valueOf(time);\r\n//\t\t\tval.put(Archimate3Parser.VALUE_TAG, start);\r\n//\t\t\tprop.put(Archimate3Parser.PROPERTY_VALUE_TAG, val);\r\n//\t\t\tprops.add(prop);\r\n//\t\t\tprop = new Document();\r\n//\t\t\tprop.put(Archimate3Parser.PROPERTY_DEFINITIONREF_TAG, PROPID_IEA_END_DATE);\r\n//\t\t\tval = new Document(\"@xml_lang\", \"en\");\r\n//\t\t\tString end = String.valueOf((long)-1);\r\n//\t\t\tval.put(Archimate3Parser.VALUE_TAG, end);\r\n//\t\t\tprop.put(Archimate3Parser.PROPERTY_VALUE_TAG, val);\r\n//\t\t\tprops.add(prop);\r\n//\t\t\tprop = new Document();\r\n//\t\t\tprop.put(Archimate3Parser.PROPERTY_DEFINITIONREF_TAG, PROPID_IEA_IDENTIFIER);\r\n//\t\t\tval = new Document(\"@xml_lang\", \"en\");\r\n//\t\t\tval.put(Archimate3Parser.VALUE_TAG, uuid);\r\n//\t\t\tprop.put(Archimate3Parser.PROPERTY_VALUE_TAG, val);\r\n//\t\t\tprops.add(prop);\r\n//\t\t\tprop = new Document();\r\n//\t\t\tprop.put(Archimate3Parser.PROPERTY_DEFINITIONREF_TAG, PROPID_IEA_HASH);\r\n//\t\t\tval = new Document(\"@xml_lang\", \"en\");\r\n//\t\t\tval.put(Archimate3Parser.VALUE_TAG, hash);\r\n//\t\t\tprop.put(Archimate3Parser.PROPERTY_VALUE_TAG, val);\r\n//\t\t\tprops.add(prop);\r\n//\t\t\traw.put(Archimate3Parser.PROPERTIES_TAG, new Document(Archimate3Parser.PROPERTY_TAG,props));\r\n//\t\t}\r\n\r\n\t\t//JSONArray branchArr = new JSONArray();\r\n\t\t//branchArr.put(branch);\r\n\t\tDocument doc = new Document(DOC_NAME, DOC_NAME_NODE)\r\n\t\t\t\t.append(DOC_TYPE, parser.getType())\r\n\t\t\t\t.append(DOC_ID, uuid)\r\n\t\t\t\t.append(DOC_START_DATE, time)\r\n\t\t\t\t.append(DOC_START_USER, user)\r\n\t\t\t\t.append(DOC_END_DATE, -1L)\r\n\t\t\t\t.append(DOC_HASH, hash)\r\n\t\t\t\t//\t.append(DOC_BRANCH, branchArr)\r\n\t\t\t\t.append(DOC_BRANCH, branch)\r\n\t\t\t\t.append(DOC_ORGANIZATION, orgJson)\r\n\t\t\t\t//\t\t\t\t.append(DOC_RAW, jsonObject);\r\n\t\t\t\t.append(DOC_RAW, raw);\r\n\t\treturn doc;\r\n\t}", "title": "" }, { "docid": "b2ab7598ded34610339bafa7a805c2da", "score": "0.44113356", "text": "protected RhizomeDocument initializeDocument() {\n\t\treturn new RhizomeDocument(DocumentID.generateDocumentID());\n\t}", "title": "" }, { "docid": "acaaa665cc67cdbfc8cdcfa5ea0df630", "score": "0.44107866", "text": "void parseBookDtoIntoModel(BookDto bookDto) {\n Book book = createBook(bookDto);\n Bookstore bookstore = createBookstore(bookDto);\n BookstoreBook bookstoreBook = createBookstoreBook(bookDto, book, bookstore);\n PriceAtTheMoment priceAtTheMoment = createPriceAtTheMoment(bookDto, bookstoreBook);\n bookstoreBook.getPriceHistories().add(priceAtTheMoment);\n\n EntitiesInDatabase entitiesInDatabase = findEntitiesInDatabase(bookstoreBook);\n\n saveOrUpdateModel(bookstore, bookstoreBook, book, entitiesInDatabase);\n }", "title": "" }, { "docid": "0653e0fd1dc15dd9fbdb92e8778810b0", "score": "0.44052383", "text": "private void createDocument(Document doc) {\n\t\t//add style of points to DOM \n\t\tdocument.appendChild(getStyle(doc, \"red\", \"3\", \"ff0000ff\"));\n\t\tdocument.appendChild(getStyle(doc, \"yellow\", \"3\", \"ff00ffff\"));\n\t\tdocument.appendChild(getStyle(doc, \"green\", \"3\", \"ff00ff00\"));\n\t\tdocument.appendChild(getStyle(doc, \"blue\", \"3\", \"ffff0000\"));\n\t\tdocument.appendChild(getStyle(doc, \"purple\", \"3\", \"ff800080\"));\n\n\t\tdocument.appendChild(getStyleOfObjects(doc, \"pacman\", addressPacman, \"80\", \"80\"));\n\t\tdocument.appendChild(getStyleOfObjects(doc, \"fruit\", addressFruit, \"80\", \"80\"));\n\t\t\n\t}", "title": "" }, { "docid": "ef696d664bb82521aee6a19f2f7a127d", "score": "0.44012436", "text": "public static OrganizationDetailE parse(javax.xml.stream.XMLStreamReader reader) throws java.lang.Exception{\n OrganizationDetailE object =\n new OrganizationDetailE();\n\n int event;\n java.lang.String nillableValue = null;\n java.lang.String prefix =\"\";\n java.lang.String namespaceuri =\"\";\n try {\n \n while (!reader.isStartElement() && !reader.isEndElement())\n reader.next();\n\n \n nillableValue = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\"nil\");\n if (\"true\".equals(nillableValue) || \"1\".equals(nillableValue)){\n // Skip the element and report the null value. It cannot have subelements.\n while (!reader.isEndElement())\n reader.next();\n \n return object;\n \n\n }\n \n\n \n // Note all attributes that were handled. Used to differ normal attributes\n // from anyAttributes.\n java.util.Vector handledAttributes = new java.util.Vector();\n \n\n \n while(!reader.isEndElement()) {\n if (reader.isStartElement() ){\n \n if (reader.isStartElement() && new javax.xml.namespace.QName(\"http://schemas.microsoft.com/xrm/2011/Contracts/Discovery\",\"OrganizationDetail\").equals(reader.getName())){\n \n nillableValue = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\"nil\");\n if (\"true\".equals(nillableValue) || \"1\".equals(nillableValue)){\n object.setOrganizationDetail(null);\n reader.next();\n \n }else{\n \n object.setOrganizationDetail(OrganizationDetail.Factory.parse(reader));\n }\n } // End of if for expected property start element\n \n else{\n // A start element we are not expecting indicates an invalid parameter was passed\n throw new org.apache.axis2.databinding.ADBException(\"Unexpected subelement \" + reader.getName());\n }\n \n } else {\n reader.next();\n } \n } // end of while loop\n \n\n\n\n } catch (javax.xml.stream.XMLStreamException e) {\n throw new java.lang.Exception(e);\n }\n\n return object;\n }", "title": "" }, { "docid": "0449c191b6947f1aa0d94a85d1d4be6f", "score": "0.44010338", "text": "private void parseFrom() throws AWException {\n getParsedEmail().setFrom(parseMailElement(this.email.getFrom()));\n }", "title": "" }, { "docid": "fe436639044847013ece66be1a63f6b4", "score": "0.43968847", "text": "private void generateTransformParseInputField() {\n // Parse the structure.\n \n stringBuffer.append(TEXT_276);\n \n if (!ignore_NS_Str) {\n if (isDocumentType) {\n \n stringBuffer.append(TEXT_277);\n stringBuffer.append(cid);\n stringBuffer.append(TEXT_278);\n stringBuffer.append(cid);\n stringBuffer.append(TEXT_279);\n \n } else {\n \n stringBuffer.append(TEXT_280);\n stringBuffer.append(cid);\n stringBuffer.append(TEXT_281);\n stringBuffer.append(cid);\n stringBuffer.append(TEXT_282);\n stringBuffer.append(cid);\n stringBuffer.append(TEXT_283);\n \n }\n } else {\n \n stringBuffer.append(TEXT_284);\n stringBuffer.append(cid);\n stringBuffer.append(TEXT_285);\n stringBuffer.append(cid );\n stringBuffer.append(TEXT_286);\n \n }\n \n stringBuffer.append(TEXT_287);\n stringBuffer.append(cid);\n stringBuffer.append(TEXT_288);\n stringBuffer.append(cid);\n stringBuffer.append(TEXT_289);\n stringBuffer.append(cid);\n stringBuffer.append(TEXT_290);\n stringBuffer.append(cid);\n stringBuffer.append(TEXT_291);\n stringBuffer.append(cid);\n stringBuffer.append(TEXT_292);\n stringBuffer.append(cid);\n stringBuffer.append(TEXT_293);\n stringBuffer.append(cid);\n stringBuffer.append(TEXT_294);\n stringBuffer.append(cid );\n stringBuffer.append(TEXT_295);\n stringBuffer.append(cid );\n stringBuffer.append(TEXT_296);\n stringBuffer.append(cid);\n stringBuffer.append(TEXT_297);\n stringBuffer.append(cid);\n stringBuffer.append(TEXT_298);\n if(ignore_NS_Str){\n stringBuffer.append(TEXT_299);\n stringBuffer.append(cid);\n stringBuffer.append(TEXT_300);\n stringBuffer.append(cid);\n stringBuffer.append(TEXT_301);\n }\n stringBuffer.append(TEXT_302);\n stringBuffer.append(cid);\n stringBuffer.append(TEXT_303);\n stringBuffer.append(cid);\n stringBuffer.append(TEXT_304);\n stringBuffer.append(cid);\n stringBuffer.append(TEXT_305);\n stringBuffer.append(cid );\n stringBuffer.append(TEXT_306);\n \n generateTransformReject(dieOnError, \"ex\", null, \"xmlStr_\"+cid);\n \n stringBuffer.append(TEXT_307);\n stringBuffer.append(cid);\n stringBuffer.append(TEXT_308);\n stringBuffer.append(cid);\n stringBuffer.append(TEXT_309);\n stringBuffer.append(cid);\n stringBuffer.append(TEXT_310);\n if (dieOnError) { \n stringBuffer.append(TEXT_311);\n } else { \n stringBuffer.append(TEXT_312);\n } \n stringBuffer.append(TEXT_313);\n \n }", "title": "" }, { "docid": "c5fb5f9625b08931e46f8fd7accf0a8f", "score": "0.43967408", "text": "Document postDocument(Document document) throws MendeleyException;", "title": "" }, { "docid": "800e88964eadf464a685ecf2907013b4", "score": "0.43966457", "text": "public static OrganizationDetailCollection parse(javax.xml.stream.XMLStreamReader reader) throws java.lang.Exception{\n OrganizationDetailCollection object =\n new OrganizationDetailCollection();\n\n int event;\n java.lang.String nillableValue = null;\n java.lang.String prefix =\"\";\n java.lang.String namespaceuri =\"\";\n try {\n \n while (!reader.isStartElement() && !reader.isEndElement())\n reader.next();\n\n \n if (reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\"type\")!=null){\n java.lang.String fullTypeName = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\n \"type\");\n if (fullTypeName!=null){\n java.lang.String nsPrefix = null;\n if (fullTypeName.indexOf(\":\") > -1){\n nsPrefix = fullTypeName.substring(0,fullTypeName.indexOf(\":\"));\n }\n nsPrefix = nsPrefix==null?\"\":nsPrefix;\n\n java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(\":\")+1);\n \n if (!\"OrganizationDetailCollection\".equals(type)){\n //find namespace for the prefix\n java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix);\n return (OrganizationDetailCollection)ExtensionMapper.getTypeObject(\n nsUri,type,reader);\n }\n \n\n }\n \n\n }\n\n \n\n \n // Note all attributes that were handled. Used to differ normal attributes\n // from anyAttributes.\n java.util.Vector handledAttributes = new java.util.Vector();\n \n\n \n \n reader.next();\n \n java.util.ArrayList list1 = new java.util.ArrayList();\n \n \n while (!reader.isStartElement() && !reader.isEndElement()) reader.next();\n \n if (reader.isStartElement() && new javax.xml.namespace.QName(\"http://schemas.microsoft.com/xrm/2011/Contracts/Discovery\",\"OrganizationDetail\").equals(reader.getName())){\n \n \n \n // Process the array and step past its final element's end.\n \n nillableValue = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\"nil\");\n if (\"true\".equals(nillableValue) || \"1\".equals(nillableValue)){\n list1.add(null);\n reader.next();\n } else {\n list1.add(OrganizationDetail.Factory.parse(reader));\n }\n //loop until we find a start element that is not part of this array\n boolean loopDone1 = false;\n while(!loopDone1){\n // We should be at the end element, but make sure\n while (!reader.isEndElement())\n reader.next();\n // Step out of this element\n reader.next();\n // Step to next element event.\n while (!reader.isStartElement() && !reader.isEndElement())\n reader.next();\n if (reader.isEndElement()){\n //two continuous end elements means we are exiting the xml structure\n loopDone1 = true;\n } else {\n if (new javax.xml.namespace.QName(\"http://schemas.microsoft.com/xrm/2011/Contracts/Discovery\",\"OrganizationDetail\").equals(reader.getName())){\n \n nillableValue = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\"nil\");\n if (\"true\".equals(nillableValue) || \"1\".equals(nillableValue)){\n list1.add(null);\n reader.next();\n } else {\n list1.add(OrganizationDetail.Factory.parse(reader));\n }\n }else{\n loopDone1 = true;\n }\n }\n }\n // call the converter utility to convert and set the array\n \n object.setOrganizationDetail((OrganizationDetail[])\n org.apache.axis2.databinding.utils.ConverterUtil.convertToArray(\n OrganizationDetail.class,\n list1));\n \n } // End of if for expected property start element\n \n else {\n \n }\n \n while (!reader.isStartElement() && !reader.isEndElement())\n reader.next();\n \n if (reader.isStartElement())\n // A start element we are not expecting indicates a trailing invalid property\n throw new org.apache.axis2.databinding.ADBException(\"Unexpected subelement \" + reader.getName());\n \n\n\n\n } catch (javax.xml.stream.XMLStreamException e) {\n throw new java.lang.Exception(e);\n }\n\n return object;\n }", "title": "" }, { "docid": "36d6de0bc238384af98a5cc05b04cbe9", "score": "0.43925685", "text": "private DocumentData newDocument(String user, Document doc) {\n \n Date currentTime = new Date();\n \n return new DocumentData(doc.getTitle(), \n doc.getContents(), user, user, \n new Date(currentTime.getTime() + DELTA));\n }", "title": "" }, { "docid": "4aa7b72136291c458136d7153edeb0d8", "score": "0.43850836", "text": "private DocumentMetaInfo getDocumentMetaInfoObject(DocInfo doc)\n\t\t\tthrows Exception\n\t{\n\t\tString filePath = \"\";\n\t\tSimpleDateFormat DF = _dateFormatter;\n\t\t\n\t\tString dateTimeSendStart = doc.getDateTimeSendStart();\n\t\tString dateTimeSendEnd = doc.getDateTimeSendEnd();\n\t\tString dateTimeReceiveStart = doc.getDateTimeReceiveStart();\n\t\tString dateTimeReceiveEnd = doc.getDateTimeReceiveEnd();\n\t\tString dateTimeCreate = doc.getDateTimeCreate();\n\t\tString dateTimeImport = doc.getDateTimeImport();\n\t\tString dateTimeExport = doc.getDateTimeExport();\n\t\tString docDateGenerated = doc.getDocDateGenerated();\n\t\tString gdocID = doc.getGdocID();\n\n\t\tDate d;\n\t\tDate dtSendStart = null, dtSendEnd = null, dtReceiveStart = null;\n\t\tDate dtReceiveEnd = null, dtCreate = null,dtImport = null,dtExport = null;\n\t\t\n\t\t/*\n\t\tTimestamp date = rsDateConverter(docDateGenerated);\n\t\tLong dateGenerated = date!=null?new Long(date.getTime()):null;\n\t\t*/\n\t\t\n\t\tLong gUID = (gdocID+\"\").compareTo(\"\")!=0?new Long(Long.parseLong(gdocID)):null; \n\t\t\n\t\ttry\n\t\t{\n\t\t\t\tdtSendStart = dateTimeSendStart.compareTo(\"\")!=0?DF.parse(dateTimeSendStart):null;\n\t\t\t\tdtSendEnd = dateTimeSendEnd.compareTo(\"\")!=0?DF.parse(dateTimeSendEnd):null;\n\t\t\t\tdtReceiveStart = dateTimeReceiveStart.compareTo(\"\")!=0?DF.parse(dateTimeReceiveStart):null;\n\t\t\t\tdtReceiveEnd = dateTimeReceiveEnd.compareTo(\"\")!=0?DF.parse(dateTimeReceiveEnd):null;\n\t\t\t\tdtCreate = dateTimeCreate.compareTo(\"\")!=0?DF.parse(dateTimeCreate):null;\n\t\t\t\tdtImport = dateTimeImport.compareTo(\"\")!=0?DF.parse(dateTimeImport):null;\n\t\t\t\tdtExport = dateTimeExport.compareTo(\"\")!=0?DF.parse(dateTimeExport):null;\n\t\t}\n\t\tcatch(Exception ex)\n\t\t{\n\t\t\tthrow new ApplicationException(\"[ProcessDocumentManagerBean.getDocumentMetaInfoObject] Error occured while \"+ \n\t\t\t\t\t\t\t\t\t\t\t\t\t\" creating DocumentMetaInfo Obj.\",ex);\n\t\t}\n\t\t\n\t\treturn new DocumentMetaInfo(doc.getDocType(),doc.getDocNumber(),doc.getPartnerDuns(), \n\t\t\t\tdoc.getPartnerID(), doc.getPartnerName(),docDateGenerated,dtSendStart, \n\t\t\t\tdtSendEnd,dtReceiveStart,dtReceiveEnd, \n\t\t\t\tdtCreate, dtImport, dtExport, doc.getProcessDef(), \n\t\t\t\tdoc.getProcessInstanceID(), doc.getFilename(), doc.getFolder(),filePath,\n\t\t\t\tdoc.getOriginatorID(),gUID, doc.isArchivedByPI(),doc.getSenderCertUID(),doc.getReceiverCertUID(), \"\" ,doc.getUdocFilename(),\n\t\t\t\tdoc.getRnifVersion(), new Long(0), doc.getGdocFilename(), doc.isOriginalDoc(), doc.getAttachmentFilename(), doc.isContainAttachment(),\n\t\t\t\tdoc.getReceiptAuditFilename(), doc.getDocTransStatus(), doc.getUserTrackingID());\n\t}", "title": "" }, { "docid": "c3294352078fa54012df5b2851396dd7", "score": "0.43791786", "text": "private void parseCCo() throws AWException {\n if (this.email.getCcoList() != null) {\n parseMailElement(getParsedEmail().getCco(), email.getCcoList());\n }\n }", "title": "" }, { "docid": "4a41965460a4a467a155d2d7945909a6", "score": "0.43749657", "text": "@Override\n\tpublic Map<String, Object> parseBookPageInfo() {\n\t\tMap<String, Object> book = new LinkedHashMap<String, Object>();\n\n\t book.put(\"title\", parseTitle()); // required\n\t\tbook.put(\"url\", this.url); // required\n\t book.put(\"price\", parsePrice()); // required\n\t book.put(\"author\", parseAuthor());\n\t book.put(\"ISBN10\", parseISBN10());\n\t book.put(\"ISBN13\", parseISBN13());\n\t book.put(\"genre\", parseCategory());\n\t book.put(\"description\", parseDescription());\n\t book.put(\"star\", parseStar());\n\t book.put(\"imgUrl\", parseImgUrl());\n\n\t return book;\n\t}", "title": "" }, { "docid": "b25b90016646191454976b6d2ed81da6", "score": "0.43748254", "text": "protected static void parse(Node doc) {\n \n try {\n\n \n \n switch (doc.getNodeType()) {\n case Node.ELEMENT_NODE:\n //System.out.println(doc.getNodeName());\n if (doc.getNodeName().equals(\"FCSMODEL\")) {\n \n NamedNodeMap attributes = doc.getAttributes();\n Node node = attributes.getNamedItem(\"FUZZINESS\");\n fuzzinessF= Double.valueOf(node.getNodeValue()).doubleValue();\n \n node = attributes.getNamedItem(\"PARTIALID\");\n modelIdentifierF = node.getNodeValue();\n \n node = attributes.getNamedItem(\"NUMCLUSTER\");\n numClusterF= Integer.valueOf(node.getNodeValue()).intValue();\n fiF=new double[numClusterF];\n\n node = attributes.getNamedItem(\"NUMEXAMPLES\");\n numExamplesF = Integer.valueOf(node.getNodeValue()).intValue();\n \n node = attributes.getNamedItem(\"NUMATRIBUTES\");\n numAtributesF= Integer.valueOf(node.getNodeValue()).intValue();\n\n node = attributes.getNamedItem(\"TCONORM\");\n tCoNormF= TCoNormType.valueOf(node.getNodeValue());\n \n node = attributes.getNamedItem(\"PSPACE\");\n String pspace=node.getNodeValue();\n if (pspace.equals(\"INPUT\")) {\n pSpaceF= PartitionedSpace.I;\n centroidsF=new double[numClusterF][numAtributesF];\n }\n if (pspace.equals(\"OUTPUT\")) {\n pSpaceF= PartitionedSpace.O;\n centroidsF=new double[numClusterF][1];\n }\n if (pspace.equals(\"INPUT/OUTPUT\")) {\n pSpaceF= PartitionedSpace.IO;\n centroidsF=new double[numClusterF][numAtributesF+1];\n }\n \n node = attributes.getNamedItem(\"DISTANCETYPE\");\n String distance=node.getNodeValue();\n if (distance.equals(\"EUCLIDEAN\")) {\n distanceTypeF=models.fcsModel.Constants.DistanceType.euclidean;\n }\n if (pspace.equals(\"DIAGONAL\")) {\n distanceTypeF=models.fcsModel.Constants.DistanceType.diagonal;\n }\n if (pspace.equals(\"MAHALANOBIS\")) {\n distanceTypeF=models.fcsModel.Constants.DistanceType.mahalanobis;\n }\n if (pspace.equals(\"GK\")) {\n distanceTypeF=models.fcsModel.Constants.DistanceType.gustafson_kessel;\n }\n InputDataF=new double[numExamplesF][numAtributesF];\n OutputDataF=new double[numExamplesF];\n UOldF=new double[numClusterF][numExamplesF];\n \n } else {\n if (doc.getNodeName().equals(\"JAVACLASS\")) {\n classNameF=doc.getFirstChild().getNodeValue();\n //System.out.println(\"NAME:\"+className);\n } else {\n if (doc.getNodeName().equals(\"CENTROIDES\")) {\n NodeList children = doc.getChildNodes();\n \n for (int k = 0; k < children.getLength(); k++) {\n \n Node nodoHijo=children.item(k);\n if (nodoHijo.getNodeName().equals(\"CENTROIDE\")) {\n NamedNodeMap attributes = nodoHijo.getAttributes();\n \n Node node = attributes.getNamedItem(\"INDEX\");\n int valork= Integer.valueOf(node.getNodeValue()).intValue();\n NodeList hijos= nodoHijo.getChildNodes();\n for (int j = 0; j < hijos.getLength(); j++) {\n if (hijos.item(j).getNodeName().equals(\"VALUE\")) {\n NamedNodeMap attributes2=hijos.item(j).getAttributes();\n Node node2=attributes2.getNamedItem(\"INDEX\");\n int valorj= Integer.valueOf(node2.getNodeValue()).intValue();\n centroidsF[valork][valorj]=Double.valueOf(hijos.item(j).getFirstChild().getNodeValue()).doubleValue(); \n }\n }\n }\n }\n } else {\n if (doc.getNodeName().equals(\"FIS\")) {\n NodeList children = doc.getChildNodes();\n \n for (int k = 0; k < children.getLength(); k++) {\n \n Node nodoHijo=children.item(k);\n if (nodoHijo.getNodeName().equals(\"FI\")) {\n NamedNodeMap attributes = nodoHijo.getAttributes();\n \n Node node = attributes.getNamedItem(\"INDEX\");\n int valork= Integer.valueOf(node.getNodeValue()).intValue();\n NodeList hijos= nodoHijo.getChildNodes();\n for (int j = 0; j < hijos.getLength(); j++) {\n if (hijos.item(j).getNodeName().equals(\"VALUE\")) {\n fiF[valork]=Double.valueOf(hijos.item(j).getFirstChild().getNodeValue()).doubleValue();\n }\n }\n }\n }\n } else {\n if (doc.getNodeName().equals(\"EXAMPLES\")) {\n NodeList children = doc.getChildNodes();\n for (int k = 0; k < children.getLength(); k++) {\n Node nodoHijo=children.item(k);\n if (nodoHijo.getNodeName().equals(\"EXAMPLE\")) {\n NamedNodeMap attributes = nodoHijo.getAttributes();\n Node node = attributes.getNamedItem(\"INDEX\");\n int valork= Integer.valueOf(node.getNodeValue()).intValue();\n NodeList hijos= nodoHijo.getChildNodes();\n for (int j = 0; j < hijos.getLength(); j++) {\n if (hijos.item(j).getNodeName().equals(\"VALUE\")) {\n NamedNodeMap attributes2=hijos.item(j).getAttributes();\n Node node2=attributes2.getNamedItem(\"INDEX\");\n int valorj= Integer.valueOf(node2.getNodeValue()).intValue();\n InputDataF[valork][valorj]=Double.valueOf(hijos.item(j).getFirstChild().getNodeValue()).doubleValue();\n } else {\n if (hijos.item(j).getNodeName().equals(\"VALUEOUTPUT\")) {\n OutputDataF[valork]=Double.valueOf(hijos.item(j).getFirstChild().getNodeValue()).doubleValue();\n }\n }\n }\n }\n }\n } else {\n if (doc.getNodeName().equals(\"PREVIUS_U\")) {\n NodeList children = doc.getChildNodes();\n for (int k = 0; k < children.getLength(); k++) {\n Node nodoHijo=children.item(k);\n if (nodoHijo.getNodeName().equals(\"CENTROID_U\")) {\n NamedNodeMap attributes = nodoHijo.getAttributes();\n Node node = attributes.getNamedItem(\"INDEX\");\n int valork= Integer.valueOf(node.getNodeValue()).intValue();\n NodeList hijos= nodoHijo.getChildNodes();\n for (int j = 0; j < hijos.getLength(); j++) {\n if (hijos.item(j).getNodeName().equals(\"VALUE\")) {\n NamedNodeMap attributes2=hijos.item(j).getAttributes();\n Node node2=attributes2.getNamedItem(\"INDEX\");\n int valorj= Integer.valueOf(node2.getNodeValue()).intValue();\n UOldF[valork][valorj]=Double.valueOf(hijos.item(j).getFirstChild().getNodeValue()).doubleValue();\n }\n }\n }\n }\n }\n \n }\n \n }\n }\n }\n }\n break;\n }\n \n \n } catch (Exception e) {\n e.printStackTrace();\n System.exit(-1);\n } \n NodeList children = doc.getChildNodes();\n for (int i = 0; i < children.getLength(); i++) {\n parse(children.item(i));\n }\n }", "title": "" }, { "docid": "9c8b9da497b57b0ae6ad32ea8afa5fab", "score": "0.437164", "text": "private EmployeeInfo convertRecordToPojo(EmployeeInfoRecord employeeRecord) {\n\t\tLOG.debug(\"[Repository] Converting Employee Record to Pojo...\");\n\t\tEmployeeInfo employeeInfo = new EmployeeInfo();\n\t\temployeeInfo.setEmployeeId(employeeRecord.getEmployeeId());\n\t\temployeeInfo.setFirstName(employeeRecord.getFirstName());\n\t\temployeeInfo.setLastName(employeeRecord.getLastName());\n\t\temployeeInfo.setEmail(employeeRecord.getEmail());\n\t\temployeeInfo.setCreatedOn(employeeRecord.getCreatedOn());\n\t\treturn employeeInfo;\n\t}", "title": "" }, { "docid": "15bcbd5206b7b1c35ace9e2fe0014b48", "score": "0.43647495", "text": "public static BookRequest parse(\r\n javax.xml.stream.XMLStreamReader reader)\r\n throws java.lang.Exception {\r\n BookRequest object = new BookRequest();\r\n\r\n int event;\r\n java.lang.String nillableValue = null;\r\n java.lang.String prefix = \"\";\r\n java.lang.String namespaceuri = \"\";\r\n\r\n try {\r\n while (!reader.isStartElement() && !reader.isEndElement())\r\n reader.next();\r\n\r\n if (reader.getAttributeValue(\r\n \"http://www.w3.org/2001/XMLSchema-instance\",\r\n \"type\") != null) {\r\n java.lang.String fullTypeName = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\r\n \"type\");\r\n\r\n if (fullTypeName != null) {\r\n java.lang.String nsPrefix = null;\r\n\r\n if (fullTypeName.indexOf(\":\") > -1) {\r\n nsPrefix = fullTypeName.substring(0,\r\n fullTypeName.indexOf(\":\"));\r\n }\r\n\r\n nsPrefix = (nsPrefix == null) ? \"\" : nsPrefix;\r\n\r\n java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(\r\n \":\") + 1);\r\n\r\n if (!\"BookRequest\".equals(type)) {\r\n //find namespace for the prefix\r\n java.lang.String nsUri = reader.getNamespaceContext()\r\n .getNamespaceURI(nsPrefix);\r\n\r\n return (BookRequest) ExtensionMapper.getTypeObject(nsUri,\r\n type, reader);\r\n }\r\n }\r\n }\r\n\r\n // Note all attributes that were handled. Used to differ normal attributes\r\n // from anyAttributes.\r\n java.util.Vector handledAttributes = new java.util.Vector();\r\n\r\n reader.next();\r\n\r\n while (!reader.isStartElement() && !reader.isEndElement())\r\n reader.next();\r\n\r\n if (reader.isStartElement() &&\r\n new javax.xml.namespace.QName(\r\n \"http://tourico.com/webservices/\", \"BookCar\").equals(\r\n reader.getName())) {\r\n object.setBookCar(BookCarRequest.Factory.parse(reader));\r\n\r\n reader.next();\r\n } // End of if for expected property start element\r\n\r\n else {\r\n }\r\n\r\n while (!reader.isStartElement() && !reader.isEndElement())\r\n reader.next();\r\n\r\n if (reader.isStartElement()) {\r\n // A start element we are not expecting indicates a trailing invalid property\r\n throw new org.apache.axis2.databinding.ADBException(\r\n \"Unexpected subelement \" + reader.getName());\r\n }\r\n } catch (javax.xml.stream.XMLStreamException e) {\r\n throw new java.lang.Exception(e);\r\n }\r\n\r\n return object;\r\n }", "title": "" }, { "docid": "087bf47521f4d4e7ad5d57008c93054f", "score": "0.43614307", "text": "@Override\n\t\tprotected LogEntry hook_convert (Document doc) {\n\t\t\treturn (new LogEntry()).from_bson_doc (doc);\n\t\t}", "title": "" }, { "docid": "d835fdc733c7b1de67da3ca720169b0c", "score": "0.43614298", "text": "public Element load() {\n Element elementContact = new ElementT(doc, element, ElementsName.CONTACT.label).load();\n if(!(id == null)){\n if(!(id.getPatternScheme() == null)){\n Element elementId = new ID.IDBuilder()\n .documentLinked(doc)\n .elementFather(elementContact)\n .value(id.getValue())\n .attributes(new PatternScheme.PatternSchemeBuilder()\n .schemeID(id.getPatternScheme().getSchemeID())\n .schemeName(id.getPatternScheme().getSchemeName())\n .schemeAgencyID(id.getPatternScheme().getSchemeAgencyID())\n .schemeAgencyName(id.getPatternScheme().getSchemeAgencyName())\n .schemeVersionID(id.getPatternScheme().getSchemeVersionID())\n .schemeDataURI(id.getPatternScheme().getSchemeDataURI())\n .schemeURI(id.getPatternScheme().getSchemeURI())\n .build())\n .build().load();\n } else {\n Element elementId = new ID.IDBuilder()\n .documentLinked(doc)\n .elementFather(elementContact)\n .value(id.getValue())\n .build().load();\n }\n }\n if(!(name == null)){\n if(!(name.getPatternLanguage() == null)){\n Element elementName = new Name.NameBuilder()\n .documentLinked(doc)\n .elementFather(elementContact)\n .value(name.getValue())\n .attributes(new PatternLanguage.PatternLanguageBuilder()\n .languageID(name.getPatternLanguage().getLanguageID())\n .build())\n .build().load();\n } else {\n Element elementName = new Name.NameBuilder()\n .documentLinked(doc)\n .elementFather(elementContact)\n .value(name.getValue())\n .build().load();\n }\n }\n if(!(telephone == null)){\n if(!(telephone.getPatternLanguage() == null)){\n Element elementTelephone = new Telephone.TelephoneBuilder()\n .documentLinked(doc)\n .elementFather(elementContact)\n .value(telephone.getValue())\n .attributes(new PatternLanguage.PatternLanguageBuilder()\n .languageID(telephone.getPatternLanguage().getLanguageID())\n .build())\n .build().load();\n } else {\n Element elementTelephone = new Telephone.TelephoneBuilder()\n .documentLinked(doc)\n .elementFather(elementContact)\n .value(telephone.getValue())\n .build().load();\n }\n }\n if(!(electronicMail == null)){\n if(!(electronicMail.getPatternLanguage() == null)){\n Element elementElectronicMail = new ElectronicMail.ElectronicMailBuilder()\n .documentLinked(doc)\n .elementFather(elementContact)\n .value(electronicMail.getValue())\n .attributes(new PatternLanguage.PatternLanguageBuilder()\n .languageID(electronicMail.getPatternLanguage().getLanguageID())\n .build())\n .build().load();\n } else {\n Element elementElectronicMail = new ElectronicMail.ElectronicMailBuilder()\n .documentLinked(doc)\n .elementFather(elementContact)\n .value(electronicMail.getValue())\n .build().load();\n }\n }\n if(!(note == null)){\n if(!(note.getPatternLanguage() == null)){\n Element elementNote = new Note.NoteBuilder()\n .documentLinked(doc)\n .elementFather(elementContact)\n .value(note.getValue())\n .attributes(new PatternLanguage.PatternLanguageBuilder()\n .languageID(note.getPatternLanguage().getLanguageID())\n .build())\n .build().load();\n } else {\n Element elementNote = new Note.NoteBuilder()\n .documentLinked(doc)\n .elementFather(elementContact)\n .value(note.getValue())\n .build().load();\n }\n }\n return elementContact;\n }", "title": "" }, { "docid": "5cee62b129603f7c3d0e8e4f3511582b", "score": "0.4361069", "text": "public Document asDocument() throws Exception {\n\t\tif (null == responseAsDocument) {\n\t\t\t// it should be faster to read the inputstream directly.\n\t\t\t// but makes it difficult to troubleshoot\n\t\t\tthis.responseAsDocument = builders.get().parse(new ByteArrayInputStream(asString().getBytes(\"UTF-8\")));\n\t\t}\n\t\treturn responseAsDocument;\n\t}", "title": "" }, { "docid": "527974149f698a4a115b4247484fd9cc", "score": "0.43579575", "text": "public PINObject parseFields(Cursor cursor, int position, ILocationReceivedListener listener){\r\n PINObject pinObject = null;\r\n\r\n if (cursor != null) {\r\n pinObject = new PINObject();\r\n pinObject.Id = cursor.getString(cursor.getColumnIndex(PINTable.collumns._id.name()));\r\n pinObject.Status = cursor.getString(cursor.getColumnIndex(PINTable.collumns.Status.name()));\r\n pinObject.UpdateDate = cursor.getString(cursor.getColumnIndex(PINTable.collumns.UpdateDate.name()));\r\n new GetLocationTask(pinObject, position, listener).execute();\r\n }\r\n\r\n return pinObject;\r\n }", "title": "" }, { "docid": "5cf79b212a91c2cd4a3f0477487d79d7", "score": "0.4349925", "text": "private void parseItemToObject(Connection.Response cr, Manga manga) throws IOException {\n JsonObject jsonManga = Json.parse(cr.parse().text()).asObject();\n manga.setIdAnilist(jsonManga.get(\"id\").asInt());\n manga.setPoster(jsonManga.get(\"image_url_lge\").asString());\n String intPoster = SaveImage.getImage(manga);\n manga.setIntPoster(intPoster);\n manga.setDescription(jsonManga.get(\"description\").asString());\n LocalDate zdtEnd;\n LocalDate zdtStart;\n {\n JsonValue startDateJson = jsonManga.get(\"start_date_fuzzy\");\n JsonValue endDateJson = jsonManga.get(\"end_date_fuzzy\");\n String fuzzyDateStart = (startDateJson.isNull()) ? nullDate : startDateJson.toString();\n String fuzzyDateEnd = (endDateJson.isNull()) ? nullDate : endDateJson.toString();\n zdtStart = LocalDate.parse(fuzzyDateStart, formatter);\n zdtEnd = LocalDate.parse(fuzzyDateEnd, formatter);\n if (zdtStart.isAfter(zdtEnd)) {\n zdtEnd = zdtStart;\n }\n }\n manga.setStartDate(zdtStart);\n manga.setEndDate(zdtEnd);\n manga.setMangaType(jsonManga.get(\"type\").asString());\n manga.setType(PewaType.MANGA);\n for (JsonValue val : jsonManga.get(\"genres\").asArray()) {\n manga.setGenres(new Genre(val.asString()));\n }\n manga.setTitleEng(jsonManga.get(\"title_english\").asString());\n manga.setTitleRom(jsonManga.get(\"title_romaji\").asString());\n Set<Person> staff = new TreeSet<>();\n Person person;\n\n for (JsonValue val : jsonManga.get(\"staff\").asArray()) {\n String firstName = val.asObject().getString(\"name_first\", \"\");\n String lastName = val.asObject().getString(\"name_last\", \"\");\n String role = val.asObject().getString(\"role\", \"\");\n person = new Person(firstName, lastName, role);\n staff.add(person);\n }\n manga.setStaff(staff);\n manga.setTotalVolumes(jsonManga.getInt(\"total_volumes\", 0));\n manga.setTotalChapters(jsonManga.getInt(\"total_chapters\", 0));\n manga.setPublishingStatus(jsonManga.getString(\"publishing_status\", \"\"));\n// return manga;\n }", "title": "" }, { "docid": "4fef235695c3b06367cbadde1909ea76", "score": "0.434891", "text": "private void parsePreAccount(DecorateParser parser)\r\n throws XmlPullParserException, IOException {\r\n PreAccount preAccount = mData.getPreAccount();\r\n preAccount.address = parser.getAttributeValue(null, \"address\");\r\n preAccount.domain = parser.getAttributeValue(null, \"domain\");\r\n preAccount.name = parser.getAttributeValue(null, \"name\");\r\n preAccount.desc = parser.getAttributeValue(null, \"desc\");\r\n\r\n int parseEvent = parser.getEventType();\r\n while (!(parseEvent == XmlPullParser.END_TAG && parser.getName()\r\n .equals(\"account\"))) {\r\n switch (parseEvent) {\r\n case DecorateParser.START_TAG:\r\n String tag = parser.getName();\r\n if (tag.equals(\"incoming\")) {\r\n preAccount.incomingAddress = parser.getAttributeValue(null,\r\n \"address\");\r\n preAccount.incomingProtocol = parser.getAttributeValue(\r\n null, \"protocol\");\r\n preAccount.incomingSecurity = parser.getAttributeIntValue(\r\n null, \"security\", 0);\r\n preAccount.incomingPort = parser.getAttributeIntValue(null,\r\n \"port\", -1);\r\n preAccount.incomingUsername = parser.getAttributeValue(\r\n null, \"username\");\r\n preAccount.incomingPassword = parser.getAttributeValue(\r\n null, \"password\");\r\n } else if (tag.equals(\"outgoing\")) {\r\n preAccount.outgoingAddress = parser.getAttributeValue(null,\r\n \"address\");\r\n preAccount.outgoingSecurity = parser.getAttributeIntValue(\r\n null, \"security\", 0);\r\n preAccount.outgoingPort = parser.getAttributeIntValue(null,\r\n \"port\", -1);\r\n preAccount.outgoingUsername = parser.getAttributeValue(\r\n null, \"username\");\r\n preAccount.outgoingPassword = parser.getAttributeValue(\r\n null, \"password\");\r\n preAccount.smtpAuth = parser.getAttributeBooleanValue(null,\r\n \"auth\", true);\r\n }\r\n break;\r\n default:\r\n break;\r\n }\r\n parseEvent = parser.next();\r\n }\r\n }", "title": "" }, { "docid": "100b0e311481ee4cf87a0fc3a8ab7f83", "score": "0.43406355", "text": "private void parseDoc(Doc doc, String line) {\r\n\r\n\t\tint TOPICS = line.indexOf(\"TOPICS=\");\r\n\r\n\t\t//<REUTERS TOPICS=\"YES\" LEWISSPLIT=\"TRAIN\" CGISPLIT=\"TRAINING-SET\" OLDID=\"18419\" NEWID=\"2001\">\r\n\t\tif(TOPICS != -1) {\r\n\t\t\tString top = line.substring(TOPICS + 7, TOPICS + 12);\r\n\t\t\tif(top.contains(\"YES\")) {\r\n\t\t\t\tdoc.setHasTopics(true);\r\n\t\t\t} else {\r\n\t\t\t\tdoc.setHasTopics(false);\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tint LEWISSPLIT = line.indexOf(\"LEWISSPLIT=\");\r\n\t\tif(LEWISSPLIT != -1) {\r\n\t\t\tString top = line.substring(LEWISSPLIT + 12, LEWISSPLIT + 19);\r\n\t\t\tif(top.contains(\"TEST\") && doc.isHasTopics()) {\r\n\t\t\t\tdoc.setModaptsplit(ModAptSplit.TEST);\r\n\t\t\t\tallTestDocs.add(doc);\r\n\t\t\t} else if (top.contains(\"TRAIN\") && doc.isHasTopics()) {\r\n\t\t\t\tdoc.setModaptsplit(ModAptSplit.TRAIN);\r\n\t\t\t\tallTrainDocs.add(doc);\r\n\t\t\t}else {\r\n\t\t\t\tdoc.setModaptsplit(ModAptSplit.UNKNOWN);\r\n\t\t\t\tallUnknownDocs.add(doc);\r\n\t\t\t}\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "4c4634bc078daa047cf52a669557346b", "score": "0.433732", "text": "public Validator() throws ParserConfigurationException {\n\t\tthis.query = new StringBuilder();\n\t\t// Objcreate = new Query(Contact.createdbKeys.CREATE);\n\t\t// this.Objcreate = new CreateQuery();\n\t\t// this.ObjSelect = new SelectQuery();\n\n\t\t// Query Obj;\n\n\t}", "title": "" }, { "docid": "9acf40fdf3a59adcf6b80e340d526416", "score": "0.43139535", "text": "public static OrganizationDetailCollectionE parse(javax.xml.stream.XMLStreamReader reader) throws java.lang.Exception{\n OrganizationDetailCollectionE object =\n new OrganizationDetailCollectionE();\n\n int event;\n java.lang.String nillableValue = null;\n java.lang.String prefix =\"\";\n java.lang.String namespaceuri =\"\";\n try {\n \n while (!reader.isStartElement() && !reader.isEndElement())\n reader.next();\n\n \n nillableValue = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\"nil\");\n if (\"true\".equals(nillableValue) || \"1\".equals(nillableValue)){\n // Skip the element and report the null value. It cannot have subelements.\n while (!reader.isEndElement())\n reader.next();\n \n return object;\n \n\n }\n \n\n \n // Note all attributes that were handled. Used to differ normal attributes\n // from anyAttributes.\n java.util.Vector handledAttributes = new java.util.Vector();\n \n\n \n while(!reader.isEndElement()) {\n if (reader.isStartElement() ){\n \n if (reader.isStartElement() && new javax.xml.namespace.QName(\"http://schemas.microsoft.com/xrm/2011/Contracts/Discovery\",\"OrganizationDetailCollection\").equals(reader.getName())){\n \n nillableValue = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\"nil\");\n if (\"true\".equals(nillableValue) || \"1\".equals(nillableValue)){\n object.setOrganizationDetailCollection(null);\n reader.next();\n \n }else{\n \n object.setOrganizationDetailCollection(OrganizationDetailCollection.Factory.parse(reader));\n }\n } // End of if for expected property start element\n \n else{\n // A start element we are not expecting indicates an invalid parameter was passed\n throw new org.apache.axis2.databinding.ADBException(\"Unexpected subelement \" + reader.getName());\n }\n \n } else {\n reader.next();\n } \n } // end of while loop\n \n\n\n\n } catch (javax.xml.stream.XMLStreamException e) {\n throw new java.lang.Exception(e);\n }\n\n return object;\n }", "title": "" }, { "docid": "79cc15dc58712d2c52545e170bb5c0f8", "score": "0.43046403", "text": "public XmlMailMergeDataSet(org.w3c.dom.Document xmlDoc)\n {\n mXmlDoc = xmlDoc;\n }", "title": "" }, { "docid": "dd31640795096acba5fc068a7857e718", "score": "0.42939353", "text": "private void parseOffers(Document doc) {\n\t\tNodeList nl = doc.getElementsByTagName(\"item\");\n\t\tString title = doc.getElementsByTagName(\"title\").item(0).getTextContent();\n\t\tfor(int i = 0; i < nl.getLength(); i++) {\n\t\t\tElement o =\t(Element)nl.item(i);\n\t\t\ttry {\n\t\t\t\tString link = o.getElementsByTagName(\"link\").item(0).getTextContent();\n\t\t\t\tString info = o.getElementsByTagName(\"title\").item(0).getTextContent();\n\t\t\t\tString[] parser = info.split(\" \");\n\t\t\t\tString date = parser[0];\n\t\t\t\tint j = 1;\n\t\t\t\tString destination = \"\";\n\t\t\t\twhile(parser[j].matches(\"\\\\D+\")) {\n\t\t\t\t\tdestination = destination + \" \" + parser[j];\n\t\t\t\t\tj++;\n\t\t\t\t}\n\t\t\t\tint length = Integer.parseInt(parser[j++].replaceAll(\"\\\\D+\",\"\"));\n\t\t\t\tint price = Integer.parseInt(parser[j++].replaceAll(\"\\\\D+\",\"\"));\n\t\t\t\tString hotel = \"\";\n\t\t\t\twhile(parser.length != j) {\n\t\t\t\t\thotel = hotel + \" \" + parser[j];\n\t\t\t\t\tj++;\n\t\t\t\t}\n\t\t\t\tString room = \"\";\n\t\t\t\tif(hotel.equals(\" Endast flyg\")) {\n\t\t\t\t\thotel = \"\";\n\t\t\t\t\troom = \"Endast flyg\";\n\t\t\t\t}\n\t\t\t\tString infoDep = o.getElementsByTagName(\"description\").item(0).\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tgetTextContent();\n\t\t\t\tString[] d = infoDep.split(\" \");\n\t\t\t\tString departure = d[d.length-1];\n\t\t\t\t\n\t\t\t\tOffer offer = new Offer(title, departure, date, destination, \n\t\t\t\t\t\t\"\", room, price, hotel, \"\", \"\", \"\", link, length);\n\t\t\t\t\n\t\t\t\toffers.add(offer);\n\t\t\t} catch (NumberFormatException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t} catch (DOMException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "1538adbd3d0cd599aa0a489bb60578f3", "score": "0.42918754", "text": "private Builder(org.abondar.experimental.document.sender.writer.avro.Document other) {\n super(SCHEMA$);\n if (isValidValue(fields()[0], other.mediaType)) {\n this.mediaType = data().deepCopy(fields()[0].schema(), other.mediaType);\n fieldSetFlags()[0] = true;\n }\n if (isValidValue(fields()[1], other.content)) {\n this.content = data().deepCopy(fields()[1].schema(), other.content);\n fieldSetFlags()[1] = true;\n }\n if (isValidValue(fields()[2], other.metadata)) {\n this.metadata = data().deepCopy(fields()[2].schema(), other.metadata);\n fieldSetFlags()[2] = true;\n }\n }", "title": "" }, { "docid": "5e9080555e2ad90df3c8a1b48bf247fc", "score": "0.4290811", "text": "@Override\n public AbstractPhoneBill parse() throws ParserException {\n\n this.phoneBill = new PhoneBill();\n try{\n while(this.in.ready()) {\n String line = this.in.readLine();\n // Ignore empty lines\n if (line == null) {\n break;\n } else if (line.equals(\"\")) {\n continue;\n }\n debug(\"Read line: \\\"\" + line + \"\\\"\");\n\n String type = null;\n\n StringTokenizer st = new StringTokenizer(line,\":\");\n\n if(st.hasMoreTokens()) {\n type = st.nextToken();\n }\n\n if (st.hasMoreTokens()) {\n StringBuilder sb= new StringBuilder();\n while (st.hasMoreTokens()) {\n sb.append(st.nextToken() + \" \");}\n if(type.equals(\"Customer\")){ phoneBill.setCustomerName(sb.toString().trim());}\n }\n\n if (type.equals(\"Customer\")) {\n this.parsePhoneCall();\n }\n\n }\n } catch (IOException e){System.err.println(\"some io err..\");}\n\n return this.phoneBill;\n }", "title": "" }, { "docid": "e6db50e66ad40483c3dbe562a385fb51", "score": "0.42872372", "text": "protected void process(Document document) throws Exception {\r\n\t\tSystem.out.println(\"about to output: \" + document);\r\n\t\t// output the document to a buffer\r\n\t\tStringWriter out = new StringWriter();\r\n\t\tXMLWriter writer = new XMLWriter(out);\r\n\t\twriter.write(document);\r\n\t\twriter.close();\r\n\r\n\t\t// parse back again\r\n\t\tStringReader in = new StringReader(out.toString());\r\n\t\tSAXReader reader = new SAXReader();\r\n\t\tDocument doc2 = reader.read(in);\r\n\r\n\t\tSystem.out.println(\"parsed back again: \" + doc2);\r\n\r\n\t\t// now lets output it again\r\n\t\twriter.setOutputStream(System.out);\r\n\t\twriter.write(doc2);\r\n\t}", "title": "" }, { "docid": "e3362d3ecd48950fff799c92849b7c77", "score": "0.42858738", "text": "public XMLEmailBuilder parseEmail() throws AWException {\n // Collect variables from email and queries\n collectVariables();\n\n // Parse message subject\n parseSubject(this.email.getSubjectList());\n\n // Parse message body\n parseBody(this.email.getBodyList());\n\n // Configure user elements\n parseFrom();\n parseTo();\n parseCC();\n parseCCo();\n\n // Append attachments\n parseAttachments();\n\n return this;\n }", "title": "" }, { "docid": "7301476dfb38a5d1ab39adfe6af631bc", "score": "0.4285136", "text": "@Override\n public void mapRecord(CSVRecord record) {\n\n setTitle(record.get(BooksHeader.TITLE));\n setISBN(record.get(BooksHeader.ISBN));\n setAuthors(Arrays.asList(record.get(BooksHeader.AUTHORS).split(\",\")));\n setDescription(record.get(BooksHeader.DESCRIPTION));\n }", "title": "" }, { "docid": "6f4eeabdff64f341890384239ae311f3", "score": "0.4284971", "text": "public interface Document {\n\n /**\n * Returns an integer representing the number of times the document has been saved.\n * This value is used for optimistic lock checking\n */\n int instanceVersion();\n\n /**\n * Returns the document's serialized as a byte array\n */\n byte[] serialized();\n\n /**\n * Returns a String containing the canonical name of the class\n * This method is used in deserialization\n */\n String getDocumentClass();\n\n /**\n * Returns the version number of the Json schema used when the object was last serialized\n */\n int schemaVersion();\n\n /**\n * Sets the instance version, which should be updated whenever a new version of the document is saved\n *\n * @param instanceVersion The new instance version. It should always be > the current version\n */\n void setInstanceVersion(int instanceVersion);\n\n /**\n * Sets the document's key, which is essentially the primary key for the object, and is used to retrieve it from\n * the database\n *\n * @param key A globally unique byte[]\n */\n void setKey(byte[] key);\n\n /**\n * Sets a name, analogous to a database table name for this kind of document\n *\n * @param documentType This should generally not be changed after the document is persisted\n */\n void setDocumentType(String documentType);\n\n /**\n * Returns the canonical class name for the document serialized.\n * <p/>\n * NOTE: This class name can never change without manually migrating the database\n *\n * @param documentClass A canonical class name\n */\n void setDocumentClass(String documentClass);\n\n /**\n * Sets the global json schema version that was in effect (and thus used to serialize the object) when this\n * document was saved\n *\n * @param schemaVersion A number indicating what schema version was used to serialize the document\n */\n void setSchemaVersion(short schemaVersion);\n\n\n /**\n * Returns the key to be used as the primary database key for this object\n */\n byte[] getKey();\n\n /**\n * Returns a String naming the kind of document represented by the content\n * <p/>\n * This string will be used to query data, and is somewhat analogous to a \"table name\".\n * For example, if you have two kinds of invoices, implemented by different classes and want to query them together,\n * you could give them both the same contentType.\n */\n String getDocumentType();\n}", "title": "" }, { "docid": "451429f2c5cf1bc00f65c7a592389fe5", "score": "0.42832595", "text": "public abstract Model_Message parseMessage(Model_Message messages);", "title": "" }, { "docid": "522d9739f7e7f46c2c94160d0db0c1e7", "score": "0.428255", "text": "public void parse()\n throws IOException, XdmMarshalException\n {\n // TODO: this probably makes it impossible to read an external parsed entity (fragment).\n // that needs some consideration.\n boolean manualStart = false;\n try\n {\n if (reader.hasNext())\n {\n if (!reader.peek().isStartDocument())\n {\n storeEvent(new StoredStartDoc(docURI));\n manualStart = true;\n }\n }\n }\n catch (XMLStreamException xse)\n {\n throw new XdmMarshalException(xse);\n }\n boolean endedDocument = parseFragment();\n if (manualStart && !endedDocument)\n handler.endDocument();\n }", "title": "" }, { "docid": "438388b530998a8dc2303eaec7359351", "score": "0.42811632", "text": "public Object readUnknown(XmlPullParser parser, String typeNamespace, String typeName) throws IOException, XmlPullParserException {\n Object result;\n String text;\n String name = parser.getName();\n String namespace = parser.getNamespace();\n Vector attributeInfoVector = new Vector();\n for (int attributeCount = 0; attributeCount < parser.getAttributeCount(); attributeCount++) {\n AttributeInfo attributeInfo = new AttributeInfo();\n attributeInfo.setName(parser.getAttributeName(attributeCount));\n attributeInfo.setValue(parser.getAttributeValue(attributeCount));\n attributeInfo.setNamespace(parser.getAttributeNamespace(attributeCount));\n attributeInfo.setType(parser.getAttributeType(attributeCount));\n attributeInfoVector.addElement(attributeInfo);\n }\n parser.next();\n Object result2 = null;\n String text2 = null;\n if (parser.getEventType() == 4) {\n text2 = parser.getText();\n SoapPrimitive sp = new SoapPrimitive(typeNamespace, typeName, text2);\n result2 = sp;\n for (int i = 0; i < attributeInfoVector.size(); i++) {\n sp.addAttribute((AttributeInfo) attributeInfoVector.elementAt(i));\n }\n parser.next();\n } else if (parser.getEventType() == 3) {\n SoapObject so = new SoapObject(typeNamespace, typeName);\n for (int i2 = 0; i2 < attributeInfoVector.size(); i2++) {\n so.addAttribute((AttributeInfo) attributeInfoVector.elementAt(i2));\n }\n result = so;\n text = null;\n if (parser.getEventType() == 2) {\n if (text == null || text.trim().length() == 0) {\n SoapObject so2 = new SoapObject(typeNamespace, typeName);\n for (int i3 = 0; i3 < attributeInfoVector.size(); i3++) {\n so2.addAttribute((AttributeInfo) attributeInfoVector.elementAt(i3));\n }\n for (int i4 = 3; parser.getEventType() != i4; i4 = 3) {\n so2.addProperty(parser.getNamespace(), parser.getName(), read(parser, so2, so2.getPropertyCount(), null, null, PropertyInfo.OBJECT_TYPE));\n parser.nextTag();\n so2 = so2;\n }\n result = so2;\n } else {\n throw new RuntimeException(\"Malformed input: Mixed content\");\n }\n }\n parser.require(3, namespace, name);\n return result;\n }\n result = result2;\n text = text2;\n if (parser.getEventType() == 2) {\n }\n parser.require(3, namespace, name);\n return result;\n }", "title": "" }, { "docid": "adb7092903e900c327b2edb3f09e659b", "score": "0.4278932", "text": "@Override\n public void readFragmentFrom(MwsReader r) {\n contact = r.read(\"Contact\", Contact.class);\n boxCount = r.read(\"BoxCount\", long.class);\n sellerFreightClass = r.read(\"SellerFreightClass\", String.class);\n freightReadyDate = r.read(\"FreightReadyDate\", String.class);\n palletList = r.read(\"PalletList\", PalletList.class);\n totalWeight = r.read(\"TotalWeight\", Weight.class);\n sellerDeclaredValue = r.read(\"SellerDeclaredValue\", Amount.class);\n amazonCalculatedValue = r.read(\"AmazonCalculatedValue\", Amount.class);\n previewPickupDate = r.read(\"PreviewPickupDate\", String.class);\n previewDeliveryDate = r.read(\"PreviewDeliveryDate\", String.class);\n previewFreightClass = r.read(\"PreviewFreightClass\", String.class);\n amazonReferenceId = r.read(\"AmazonReferenceId\", String.class);\n isBillOfLadingAvailable = r.read(\"IsBillOfLadingAvailable\", boolean.class);\n partneredEstimate = r.read(\"PartneredEstimate\", PartneredEstimate.class);\n carrierName = r.read(\"CarrierName\", String.class);\n }", "title": "" }, { "docid": "8e399580f97223d4d96168fccf5dade1", "score": "0.4269726", "text": "Product parse();", "title": "" }, { "docid": "42aef0323a681f8e3b00831afacec991", "score": "0.42654335", "text": "<T extends Element> Document<T> getDocument(ParserOptions options) throws ParseException, IOException;", "title": "" }, { "docid": "870a69cd27a5a8433926788e2b6a611d", "score": "0.4263399", "text": "public interface DocumentSend {\n\n /**\n * Get the root element of the document send. As each document is supposed to use an object element as the root\n * element this method always returns an object element.\n *\n * @return the root element of the document send.\n */\n @NonNull ObjectElement rootElement();\n\n /**\n * Receives this document into the given document factory. In normal cases the given document factory should create a\n * new, empty document and import all supported key-value pairs that are supplied by this send into it.\n * <p>\n * The receiving process of a document send should <strong>never</strong> throw an exception unless the given document\n * send contains malformed or invalid data making it impossible to get imported.\n *\n * @param factory the document factory that is supposed to receive this document send.\n * @return a new, empty document containing all supported key-value pairs of the given document send.\n * @throws NullPointerException if the given factory is null.\n */\n @NonNull Document.Mutable into(@NonNull DocumentFactory factory);\n}", "title": "" }, { "docid": "1878ab80845403ff0d76727956a54cc7", "score": "0.42619818", "text": "public static ITKTransportProperties buildFromSoap(Document soapDocument) throws ITKMessagingException {\n\n\t\tif (soapDocument == null) {\n\t\t\tString eMsg = \"SOAP Document not provided\";\n\t\t\tlogger.error(eMsg);\n\t\t\tthrow new ITKMessagingException(null, ITKMessagingException.PROCESSING_ERROR_NOT_RETRYABLE_CODE, eMsg);\n\t\t}\n\t\t\n\t\t//Construct an empty itkTransportProperties\n\t\tITKTransportProperties itkTransportProperties = new ITKTransportPropertiesImpl();\n\t\t\n\t\ttry {\n\t\t\t//Extract some key properties from the SOAP envelope\n\n\t\t\tString transportMessageId = XPaths.WSA_MSGID_XPATH.evaluate(soapDocument);\n\t\t\tString transportAction = XPaths.WSA_ACTION_XPATH.evaluate(soapDocument);\n\t\t\t\n\t\t\tString transportTo = XPaths.WSA_TO_XPATH.evaluate(soapDocument);\n\t\t\tString transportFrom = XPaths.WSA_FROM_XPATH.evaluate(soapDocument);\n\n\t\t\tString transportReplyTo = XPaths.WSA_REPLY_TO_XPATH.evaluate(soapDocument);\n\t\t\tString transportFaultTo = XPaths.WSA_FAULT_TO_XPATH.evaluate(soapDocument);\n\n\t\t\tString transportRelatesTo = XPaths.WSA_RELATES_TO_XPATH.evaluate(soapDocument);\n\t\t\tString transportUsername = XPaths.WSA_SECURITY_USERNAME_XPATH.evaluate(soapDocument);\n\n\t\t\tString transportCreatedTime = XPaths.WSA_SECURITY_CREATED_XPATH.evaluate(soapDocument);\n\t\t\tString transportExpiresTime = XPaths.WSA_SECURITY_EXPIRES_XPATH.evaluate(soapDocument);\n\n\t\t\t/*\n\t\t\t * Set the WSA properties\n\t\t\t * (not part of interface specification but useful internally within reference implementation)\n\t\t\t */\n\t\t\titkTransportProperties.setTransportMessageId(transportMessageId);\n\t\t\titkTransportProperties.setTransportAction(transportAction);\n\n\t\t\titkTransportProperties.setTransportTo(transportTo);\n\t\t\titkTransportProperties.setTransportFrom(transportFrom);\n\n\t\t\titkTransportProperties.setTransportReplyTo(transportReplyTo);\n\t\t\titkTransportProperties.setTransportFaultTo(transportFaultTo);\n\n\t\t\titkTransportProperties.setTransportRelatesTo(transportRelatesTo);\n\t\t\t\n\t\t\titkTransportProperties.setTransportUsername(transportUsername);\n\t\t\titkTransportProperties.setTransportCreatedTime(transportCreatedTime);\n\t\t\titkTransportProperties.setTransportExpiresTime(transportExpiresTime);\n\t\t\t\n\t\t\treturn itkTransportProperties;\n\t\t\t\n\t\t} catch (XPathExpressionException e) {\n\t\t\tthrow new ITKMessagingException(ITKMessagingException.PROCESSING_ERROR_NOT_RETRYABLE_CODE, \"Could not extract values from request\", e);\n\t\t} \n\t}", "title": "" }, { "docid": "6ba8c7f6057fd67449d2625e75d74994", "score": "0.4259815", "text": "protected void setupObjectRelationship(List<PurchasingAccountsPayableDocument> purApDocs) {\r\n for (PurchasingAccountsPayableDocument purApDoc : purApDocs) {\r\n for (PurchasingAccountsPayableItemAsset item : purApDoc.getPurchasingAccountsPayableItemAssets()) {\r\n item.setPurchasingAccountsPayableDocument(purApDoc);\r\n for (PurchasingAccountsPayableLineAssetAccount account : item.getPurchasingAccountsPayableLineAssetAccounts()) {\r\n account.setPurchasingAccountsPayableItemAsset(item);\r\n }\r\n }\r\n }\r\n }", "title": "" }, { "docid": "8174d5cc62fd3b26f6aecab061f875f4", "score": "0.42575267", "text": "public static SetAssignmentGradeCommentforUserResponse parse(javax.xml.stream.XMLStreamReader reader) throws java.lang.Exception{\n SetAssignmentGradeCommentforUserResponse object =\n new SetAssignmentGradeCommentforUserResponse();\n\n int event;\n java.lang.String nillableValue = null;\n java.lang.String prefix =\"\";\n java.lang.String namespaceuri =\"\";\n try {\n \n while (!reader.isStartElement() && !reader.isEndElement())\n reader.next();\n\n \n if (reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\"type\")!=null){\n java.lang.String fullTypeName = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\n \"type\");\n if (fullTypeName!=null){\n java.lang.String nsPrefix = null;\n if (fullTypeName.indexOf(\":\") > -1){\n nsPrefix = fullTypeName.substring(0,fullTypeName.indexOf(\":\"));\n }\n nsPrefix = nsPrefix==null?\"\":nsPrefix;\n\n java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(\":\")+1);\n \n if (!\"setAssignmentGradeCommentforUserResponse\".equals(type)){\n //find namespace for the prefix\n java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix);\n return (SetAssignmentGradeCommentforUserResponse)ExtensionMapper.getTypeObject(\n nsUri,type,reader);\n }\n \n\n }\n \n\n }\n\n \n\n \n // Note all attributes that were handled. Used to differ normal attributes\n // from anyAttributes.\n java.util.Vector handledAttributes = new java.util.Vector();\n \n\n \n \n reader.next();\n \n \n while (!reader.isStartElement() && !reader.isEndElement()) reader.next();\n \n if (reader.isStartElement() && new javax.xml.namespace.QName(\"\",\"setAssignmentGradeCommentforUserReturn\").equals(reader.getName())){\n \n nillableValue = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\"nil\");\n if (!\"true\".equals(nillableValue) && !\"1\".equals(nillableValue)){\n \n\n java.lang.String content = reader.getElementText();\n \n object.setSetAssignmentGradeCommentforUserReturn(\n org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content));\n \n } else {\n \n \n reader.getElementText(); // throw away text nodes if any.\n }\n \n reader.next();\n \n } // End of if for expected property start element\n \n else{\n // A start element we are not expecting indicates an invalid parameter was passed\n throw new org.apache.axis2.databinding.ADBException(\"Unexpected subelement \" + reader.getName());\n }\n \n while (!reader.isStartElement() && !reader.isEndElement())\n reader.next();\n \n if (reader.isStartElement())\n // A start element we are not expecting indicates a trailing invalid property\n throw new org.apache.axis2.databinding.ADBException(\"Unexpected subelement \" + reader.getName());\n \n\n\n\n } catch (javax.xml.stream.XMLStreamException e) {\n throw new java.lang.Exception(e);\n }\n\n return object;\n }", "title": "" }, { "docid": "30f9dd48a13c84a79a0b9021589736d5", "score": "0.42504668", "text": "@SuppressWarnings({\"PMD.AvoidCatchingGenericException\", \"PMD.ExceptionAsFlowControl\"})\n private void parse(final ForeignTojo tojo) throws IOException {\n final Path source = tojo.source();\n final String name = tojo.identifier();\n Footprint footprint = new FtDefault(\n this.targetDir.toPath().resolve(ParseMojo.DIR)\n );\n if (tojo.hasHash()) {\n footprint = new FtCached(\n new CacheVersion(this.plugin.getVersion(), tojo.hash()),\n this.cache.resolve(ParseMojo.PARSED),\n footprint\n );\n }\n footprint.save(\n name,\n \"xmir\",\n () -> {\n final ByteArrayOutputStream baos = new ByteArrayOutputStream();\n new Syntax(\n name,\n new InputOf(source),\n new OutputTo(baos)\n ).parse();\n final String parsed = new XMLDocument(\n new Xembler(\n new Directives().xpath(\"/program\").attr(\n \"source\",\n source.toAbsolutePath()\n )\n ).applyQuietly(new XMLDocument(baos.toByteArray()).node())\n ).toString();\n Logger.debug(\n this,\n \"Parsed program %s:\\n %s\",\n name,\n parsed\n );\n return parsed;\n }\n );\n final XML xmir = new XMLDocument(footprint.load(name, \"xmir\"));\n final List<XML> errors = xmir.nodes(\"/program/errors/error\");\n if (errors.isEmpty()) {\n final Path target = new Place(name).make(\n this.targetDir.toPath().resolve(ParseMojo.DIR),\n TranspileMojo.EXT\n );\n tojo.withXmir(target.toAbsolutePath());\n Logger.debug(\n this, \"Parsed %s to %s\",\n new Rel(source), new Rel(target)\n );\n } else {\n for (final XML error : errors) {\n Logger.error(\n this,\n \"Failed to parse '%s:%s': %s (just logging, because of failOnError=false)\",\n source, error.xpath(\"@line\").get(0), error.xpath(\"text()\").get(0)\n );\n }\n if (this.failOnError) {\n throw new IllegalArgumentException(\n String.format(\n \"Failed to parse %s (%d parsing errors)\",\n source, errors.size()\n )\n );\n }\n }\n }", "title": "" }, { "docid": "705d9bbe56681e319351154b391ba739", "score": "0.4247384", "text": "private XMLComposer<T> parse(){\n\t\ttry {\n\t\t\tdocument = DocumentBuilderFactory.newInstance().newDocumentBuilder().parse(file);\n\t\t\tdocument.getDocumentElement().normalize();\n\t\t\tloadNodes();\n\t\t} catch (ParserConfigurationException | SAXException | IOException e) {\n\t\t\tSystem.out.println(\"Some parsing error occured while parsing the XML file '\" + file + \"'.\");\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn this;\n\t}", "title": "" }, { "docid": "9be6f3c83959a2cffee6d8e321b7edaf", "score": "0.42437336", "text": "public void processPropertyDocument(PropertyDocument propertyDocument) {\n }", "title": "" }, { "docid": "d4f7cb023b7d09781e1badb40bedace7", "score": "0.42359906", "text": "public Document(File file) throws Exception {\n initDataStructures();\n \n this.projectFile = file;\n \n textFilePath = null;\n BufferedReader reader = null;\n \n try {\n DocumentBuilderFactory dbFactory = DocumentBuilderFactory.newInstance();\n \n DocumentBuilder dBuilder = dbFactory.newDocumentBuilder();\n org.w3c.dom.Document xmlDoc = dBuilder.parse(file);\n xmlDoc.normalize();\n \n //READ THE LIST OF PERSONAGES\n NodeList characterNodes = xmlDoc.getElementsByTagName(CHARACTER_TAG);\n for (int i = 0; i < characterNodes.getLength(); i++) {\n Node characterNode = characterNodes.item(i);\n List<String> aliases = new ArrayList<String>();\n String name = null;\n NodeList children = characterNode.getChildNodes();\n \n for (int j = 0; j < children.getLength(); j++) {\n Node node = children.item(j);\n if (node.getNodeName().trim().equals(CHARACTER_NAME_TAG)) {\n name = node.getTextContent().trim();\n continue;\n }\n \n if (node.getNodeName().trim().equals(CHARACTER_ALIAS_TAG)) {\n aliases.add(node.getTextContent().trim());\n }\n }\n \n Personage pers = new Personage(name, aliases);\n personages.add(pers);\n personageNameMap.put(pers.getName(), pers);\n for (String alias : pers.getAliases()) {\n personageAliasMap.put(alias, pers);\n }\n }\n \n if (xmlDoc.getElementsByTagName(TEXT_FILE_TAG).getLength() == 1) {\n Node node = xmlDoc.getElementsByTagName(TEXT_FILE_TAG).item(0);\n textFilePath = node.getTextContent().trim();\n }\n \n //READ VOICES\n for (int i = 0; i < xmlDoc.getElementsByTagName(VOICE_TAG).getLength(); i++) {\n Node nodeI = xmlDoc.getElementsByTagName(VOICE_TAG).item(i);\n Color color = null;\n String name = null;\n List<Word> terms = new ArrayList<Word>();\n \n NodeList nodeIChildren = nodeI.getChildNodes();\n for (int j = 0; j < nodeIChildren.getLength(); j++) {\n Node nodeJ = nodeIChildren.item(j);\n if (nodeJ.getNodeName().equals(VOICE_NAME_TAG)) {\n name = nodeJ.getTextContent().trim();\n continue;\n }\n \n if (nodeJ.getNodeName().equals(VOICE_COLOR_TAG)) {\n color = new Color(Integer.parseInt(nodeJ.getTextContent().trim()));\n continue;\n }\n \n if (nodeJ.getNodeName().equals(VOICE_TERM_TAG)) {\n NodeList nodeJChildren = nodeJ.getChildNodes();\n String lemma = null;\n Word.POS pos = null;\n for (int k = 0; k < nodeJChildren.getLength(); k++) {\n Node nodeK = nodeJChildren.item(k);\n if (nodeK.getNodeName().equals(VOICE_TERM_LEMMA_TAG)) {\n lemma = nodeK.getTextContent().trim();\n continue;\n }\n if (nodeK.getNodeName().equals(VOICE_TERM_POS_TAG)) {\n pos = Word.POS.valueOf(nodeK.getTextContent().trim());\n }\n }\n terms.add(new Word(lemma, pos));\n }\n }\n \n Voice newVoice = new Voice(name, color);\n for (Word w : terms) {\n newVoice.addAssociatedTerm(w);\n }\n definedVoices.add(newVoice);\n }\n \n //READ UTTERANCES\n NodeList utteranceTags = xmlDoc.getElementsByTagName(UTTERANCE_TAG);\n for (int i = 0; i < utteranceTags.getLength(); i++) {\n Node node = utteranceTags.item(i);\n NamedNodeMap attrs = node.getAttributes();\n \n Personage emmiter;\n int beginOffset, endOffset;\n Utterance.UtteranceType type;\n String originalText, parsedText;\n \n beginOffset = Integer.parseInt(attrs.getNamedItem(UTTERANCE_BEGINOFFSET_ATTR).getTextContent());\n endOffset = Integer.parseInt(attrs.getNamedItem(UTTERANCE_ENDOFFSET_ATTR).getTextContent());\n type = Utterance.UtteranceType.valueOf(attrs.getNamedItem(UTTERANCE_TYPE_ATTR).getTextContent());\n \n Node emmiterAttr = attrs.getNamedItem(UTTERANCE_EMMITER_ATTR);\n if (emmiterAttr != null) {\n emmiter = personageNameMap.get(emmiterAttr.getTextContent().trim());\n } else {\n emmiter = null;\n }\n \n originalText = ((Element)node).getElementsByTagName(UTTERANCE_ORIGINALTEXT_TAG).item(0).getTextContent().trim();\n if (((Element)node).getElementsByTagName(UTTERANCE_PARSEDTEXT_TAG).getLength() != 0) {\n parsedText = ((Element)node).getElementsByTagName(UTTERANCE_PARSEDTEXT_TAG).item(0).getTextContent().trim();\n } else {\n parsedText = originalText;\n }\n \n Utterance newUtterance = new Utterance(i, beginOffset, endOffset, parsedText, originalText, type, emmiter);\n utterances.add(newUtterance);\n }\n \n //READ WORD LIST\n NodeList wordTags = xmlDoc.getElementsByTagName(WORD_TAG);\n for (int i = 0; i < wordTags.getLength(); i++) {\n Element wordNode = (Element) wordTags.item(i);\n Node lemmaNode, posNode, occsNode;\n \n lemmaNode = wordNode.getElementsByTagName(WORD_LEMMA_TAG).item(0);\n posNode = wordNode.getElementsByTagName(WORD_POS_TAG).item(0);\n occsNode = wordNode.getElementsByTagName(WORD_OCCURANCES_TAG).item(0);\n \n String lemma = lemmaNode.getTextContent().trim();\n Word.POS pos = Word.POS.valueOf(posNode.getTextContent().trim());\n int occurances = Integer.parseInt(occsNode.getTextContent().trim());\n \n Word word = new Word(lemma, pos, occurances);\n wordList.add(word);\n }\n \n reader = null;\n \n maxOccurs = 0;\n \n \n //READ TEXT FILE\n reader = new BufferedReader(new FileReader(textFilePath));\n String line;\n StringBuilder strBld = new StringBuilder();\n \n while ((line = reader.readLine()) != null) {\n strBld.append(line).append(\"\\n\");\n paragraphs.add(line);\n }\n \n reader.close();\n text = strBld.toString();\n } catch (FileNotFoundException ex) {\n throw new Exception();\n } finally {\n try {\n reader.close();\n } catch (Exception ex) {\n ;\n }\n }\n }", "title": "" }, { "docid": "333f60c52ebcb4bf09383e181ccf9e72", "score": "0.42355752", "text": "@Override\n public PropObject readPropObjectFromXML(XMLElement anElement)\n {\n // Preprocess XML\n if (ChartArchiverLegacy.isLegacyXML(anElement))\n ChartArchiverLegacy.processLegacyXML(anElement);\n\n // Do normal version\n return super.readPropObjectFromXML(anElement);\n }", "title": "" }, { "docid": "bf0772b15f4c17ac903f9f3e81f34b8e", "score": "0.4231445", "text": "public ClaimDocument() {\r\n\t\tsuper();\r\n\t}", "title": "" }, { "docid": "923ba4369382a0713d582e2996f67fd8", "score": "0.42299974", "text": "public void buildDocument() {\n/* 400 */ setDocument(getDocumentLoader().getDocument(getClass()), \"text/html\", \"ISO-8859-1\");\n/* */ \n/* 402 */ syncAccessMethods();\n/* */ }", "title": "" }, { "docid": "172d9f7c047fc3c84d971d11c225145f", "score": "0.42263496", "text": "public static Document parseDocument(String docString) {\n return parseDocument(docString, null);\n }", "title": "" } ]
25197b4cf814864ecd440f23b9149cb3
TODO Autogenerated method stub
[ { "docid": "193c90ddb7faa78892e5cf9c14f6dfde", "score": "0.0", "text": "public List<RealServer> getAllServers() {\n\t\treturn allServers;\r\n\t}", "title": "" } ]
[ { "docid": "d7194e467f51e022c107531d8614b6a3", "score": "0.6905833", "text": "@Override\r\n\tpublic void anular() {\n\t\t\r\n\t}", "title": "" }, { "docid": "941cb2826e3c700358fcaba402e6bb01", "score": "0.66775143", "text": "@Override\r\n\tpublic void hissetmek() {\n\r\n\t}", "title": "" }, { "docid": "63918b2e510c9040bbddcac00095b41a", "score": "0.6605982", "text": "private void recuperation() {\n\t\t\n\t}", "title": "" }, { "docid": "0b5b11f4251ace8b3d0f5ead186f7beb", "score": "0.65677965", "text": "@Override\n\tpublic void comer() {\n\t\t\n\t}", "title": "" }, { "docid": "6a98c5d2724fce37914819c5694da3c3", "score": "0.6509783", "text": "@Override\r\n\tpublic void anular() {\n\r\n\t}", "title": "" }, { "docid": "dae8b602ea36995333bfb23acf8fc88d", "score": "0.6496443", "text": "@Override\n\tpublic void respire() {\n\n\t}", "title": "" }, { "docid": "5f8d37aee09bc1e9959f768d6eb0183c", "score": "0.6481211", "text": "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "title": "" }, { "docid": "f099266a753a2faacd6b8dfa57904378", "score": "0.64321727", "text": "@Override\r\n\tpublic void courrir() {\n\t}", "title": "" }, { "docid": "69ade76a69c0f6c07e66b5d0e5136eb3", "score": "0.6425563", "text": "@Override\r\n\tpublic void grabar() {\n\t\t\r\n\t}", "title": "" }, { "docid": "c2f383f280f298416bf45e72c374ecfa", "score": "0.64127725", "text": "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "title": "" }, { "docid": "1068dc3e7725abba37b41c9a52dee06b", "score": "0.6386121", "text": "@Override\r\n\tpublic void tatmak() {\n\r\n\t}", "title": "" }, { "docid": "6141981a3ecff744fc5ac85a76ccce98", "score": "0.63590497", "text": "@Override\r\n\tpublic void avlan() {\n\t\t\r\n\t}", "title": "" }, { "docid": "98fb55d46118273a6e8a6d23841c620d", "score": "0.6327681", "text": "@Override\n\tpublic void eati() {\n\t\t\n\t}", "title": "" }, { "docid": "0792d032a803e20f3b87637fd91001d5", "score": "0.62811846", "text": "@Override\n\tpublic void getSugary() {\n\n\t}", "title": "" }, { "docid": "177192b7240b496ba5aefdfed60037c9", "score": "0.6276059", "text": "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "title": "" }, { "docid": "1f7c82e188acf30d59f88faf08cf24ac", "score": "0.623686", "text": "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "title": "" }, { "docid": "1f7c82e188acf30d59f88faf08cf24ac", "score": "0.623686", "text": "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "title": "" }, { "docid": "1f7c82e188acf30d59f88faf08cf24ac", "score": "0.623686", "text": "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "title": "" }, { "docid": "b7cead8eab6faf887c06d3b10c67267c", "score": "0.620242", "text": "@Override\n\t\t\tprotected void readyRun() {\n\t\t\t\t\n\t\t\t}", "title": "" }, { "docid": "b7cead8eab6faf887c06d3b10c67267c", "score": "0.620242", "text": "@Override\n\t\t\tprotected void readyRun() {\n\t\t\t\t\n\t\t\t}", "title": "" }, { "docid": "a8ee8a5581ce765ec4ab398c0459e014", "score": "0.61750215", "text": "@Override\r\n\tpublic void koklama() {\n\r\n\t}", "title": "" }, { "docid": "0e69410f7365f8e3379273ee4419fb49", "score": "0.6149904", "text": "@Override\r\n\tprotected void init() \r\n\t{\n\t\t\r\n\t}", "title": "" }, { "docid": "d65d6c17fb978c0d576ada2c03cd49fe", "score": "0.61387193", "text": "@Override\n\tpublic void apagar() {\n\t\t\n\t}", "title": "" }, { "docid": "8bae22ac805011d799a49bd7b5316540", "score": "0.612467", "text": "@Override\n public int describeContents() {\n // Auto-generated method stub\n return 0;\n }", "title": "" }, { "docid": "8c5b7f2508d01c106c784ecca7153f46", "score": "0.6119395", "text": "@Override\n\tvoid comer() {\n\t\t\n\t}", "title": "" }, { "docid": "7bc643d9ac7542f10430da7f200395d4", "score": "0.610188", "text": "@Override\n\tpublic void fiyat() {\n\t\t\n\t}", "title": "" }, { "docid": "7dadb1a7e45c020b2193294044375a9d", "score": "0.60646844", "text": "@Override\r\n \tpublic void init() {\n \t\t\r\n \t}", "title": "" }, { "docid": "04771723ee2c07e5fa5fe8c322190beb", "score": "0.60607964", "text": "@Override\n\tpublic void affichage() {\n\t\t\n\t}", "title": "" }, { "docid": "b7f027eb6ff62218a28c15c608504db7", "score": "0.6055265", "text": "@Override\n\tpublic void cafeteria() {\n\t\t\n\t}", "title": "" }, { "docid": "ae645a2585d37e320a8854cbd4c60db8", "score": "0.60353535", "text": "@Override\n\tpublic void afficher() {\n\n\t}", "title": "" }, { "docid": "9dd1bbd8c949b94d0e93b83bfc68c88a", "score": "0.6021345", "text": "@Override\n\tpublic void aeronoticalinfo() {\n\t\t\n\t}", "title": "" }, { "docid": "2762ca3c2d0df2e43c2974f74b6f5794", "score": "0.6013198", "text": "public void mo23507LF() {\n }", "title": "" }, { "docid": "a6c2db17f79f35f8fc3b8e99eee9ab48", "score": "0.60124713", "text": "@Override\r\n\tprotected void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "e8c159f9ce46ed87e18031b3ec3ef04c", "score": "0.5983872", "text": "@Override\n\t\t\tprotected void realiceElCaso() {\n\t\t\t\t\n\t\t\t}", "title": "" }, { "docid": "e8c159f9ce46ed87e18031b3ec3ef04c", "score": "0.5983872", "text": "@Override\n\t\t\tprotected void realiceElCaso() {\n\t\t\t\t\n\t\t\t}", "title": "" }, { "docid": "119b459aa82980ed18ed9f73e4c0c1f6", "score": "0.5970375", "text": "public void mo8248e() {\n }", "title": "" }, { "docid": "c7fe9cc2a6c42140d48d92c4796a998c", "score": "0.5924626", "text": "@Override\r\n\t\t\t\t\t\tpublic void visitEnd() {\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t}", "title": "" }, { "docid": "8b18fd12dbb5303a665e92c25393fb78", "score": "0.59239364", "text": "@Override\n\tprotected void initData() {\n\t\t\n\t}", "title": "" }, { "docid": "8b18fd12dbb5303a665e92c25393fb78", "score": "0.59239364", "text": "@Override\n\tprotected void initData() {\n\t\t\n\t}", "title": "" }, { "docid": "092f51e9c99cd4188e1aae23e1830dfd", "score": "0.58991617", "text": "protected void func_70626_be() {}", "title": "" }, { "docid": "ab499170bffb402933a50d63a97e69dd", "score": "0.5896488", "text": "@Override\r\n\tprotected void init() {\n\t}", "title": "" }, { "docid": "77d32d2a2070d9c3117ff146ac04f114", "score": "0.5891585", "text": "@Override\r\n\tpublic void climaChuvoso() {\n\r\n\t}", "title": "" }, { "docid": "4790ff4cb67532ccdfaae8968e73fbc3", "score": "0.58832747", "text": "@Override\n protected void initData() {\n\n\n }", "title": "" }, { "docid": "023182f0f855d46c66b41a6d83583efa", "score": "0.5871911", "text": "@Override\r\n\tpublic void singen() {\n\t\t\r\n\t}", "title": "" }, { "docid": "8d96d27dfdf5b1a8cc8b8a7627c83bc1", "score": "0.5869012", "text": "@Override\n public void afficher() {\n\n }", "title": "" }, { "docid": "298aa14afe5846b172f76bcf90564013", "score": "0.58663046", "text": "@Override\n\tprotected void initAfterData() {\n\t\t\n\t}", "title": "" }, { "docid": "e065a728f99482f0172c0250b07109a9", "score": "0.58587575", "text": "public void MIENTRAS() {\r\n\t}", "title": "" }, { "docid": "4967494f628119c8d3a4740e09278944", "score": "0.5857751", "text": "@Override\r\n\tprotected void initData() {\n\r\n\t}", "title": "" }, { "docid": "6c15d2233a095a738527f0099df0e328", "score": "0.58534765", "text": "@Override\n\tprotected void onLoadComplete() {\n\t\t\n\t}", "title": "" }, { "docid": "7da3b15ef60da758589933b21890a100", "score": "0.5835782", "text": "@Override\n\t\t\tpublic void buscar() {\n\n\t\t\t}", "title": "" }, { "docid": "d56c498b25d1ea77dc09f49efcf80f6c", "score": "0.58347356", "text": "@Override\r\n\tpublic void aumentaFatorAcidade() {\n\r\n\t}", "title": "" }, { "docid": "e57f005733f2eb8590150b3f4542b844", "score": "0.5810564", "text": "@Override\n\tprotected void getData() {\n\t\t\n\t}", "title": "" }, { "docid": "da813fa08844d9ea0dcf6109d766cb06", "score": "0.5810359", "text": "@Override\n public void geefOpleidingNiveau() {\n }", "title": "" }, { "docid": "d1236089c8974701d0acd37b2cad6d5b", "score": "0.5809914", "text": "@Override\n\tpublic void init(){\n\t\t\n\t}", "title": "" }, { "docid": "ac3fa8f374744c1d8419fb42b093eb87", "score": "0.58098364", "text": "@Override\n public void ATOM() {\n\n }", "title": "" }, { "docid": "9d2f44c3ebe1fb8de1ac4ae677e2d851", "score": "0.5806823", "text": "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "title": "" }, { "docid": "17bf5dfb3822657f7beb964bbcaf351d", "score": "0.58010787", "text": "private void getdata() {\n\t\t\r\n\t\t\r\n\t}", "title": "" }, { "docid": "c1cba83b623b4186565c3383ace251b9", "score": "0.5798524", "text": "@Override\n public void RES() {\n\n }", "title": "" }, { "docid": "5783648f118108797828ca2085091ef9", "score": "0.5793788", "text": "@Override\n protected void initialize() {\n \n }", "title": "" }, { "docid": "beee84210d56979d0068a8094fb2a5bd", "score": "0.5792378", "text": "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "title": "" }, { "docid": "04320a5131c4ec5a83b61f5170f3303b", "score": "0.578828", "text": "private void refreash() {\n\t\t\t\n\t\t}", "title": "" }, { "docid": "54b1134554bc066c34ed30a72adb660c", "score": "0.57844025", "text": "@Override\n\tprotected void initData() {\n\n\t}", "title": "" }, { "docid": "54b1134554bc066c34ed30a72adb660c", "score": "0.57844025", "text": "@Override\n\tprotected void initData() {\n\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5774479", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5774479", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5774479", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5774479", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5774479", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5774479", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5774479", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "96aa62cb7c02dc761fce03adeea3bae6", "score": "0.5768868", "text": "public void consumidor() {\n\t\t\n\t\t\n\t}", "title": "" }, { "docid": "518a761521ca9f5cb8a8055b32b72cda", "score": "0.57596046", "text": "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.575025", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.575025", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.575025", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.575025", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.575025", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.575025", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.575025", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.575025", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.575025", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "b143ffd983be4c8f41702b8f934b6f32", "score": "0.57337177", "text": "@Override\r\n\tpublic void init() {\n\r\n\t}", "title": "" }, { "docid": "b143ffd983be4c8f41702b8f934b6f32", "score": "0.57337177", "text": "@Override\r\n\tpublic void init() {\n\r\n\t}", "title": "" }, { "docid": "b143ffd983be4c8f41702b8f934b6f32", "score": "0.57337177", "text": "@Override\r\n\tpublic void init() {\n\r\n\t}", "title": "" }, { "docid": "b143ffd983be4c8f41702b8f934b6f32", "score": "0.57337177", "text": "@Override\r\n\tpublic void init() {\n\r\n\t}", "title": "" }, { "docid": "b143ffd983be4c8f41702b8f934b6f32", "score": "0.57337177", "text": "@Override\r\n\tpublic void init() {\n\r\n\t}", "title": "" }, { "docid": "f76cff0faf8f5cac2bb5c9fa073b3900", "score": "0.5732497", "text": "private static void ispisiRemi() {\n\t\t\n\t}", "title": "" }, { "docid": "0da844a8d21284fc890b9866b17625b3", "score": "0.5729389", "text": "public void auton() {\r\n\r\n\t\t}", "title": "" }, { "docid": "3b42107e523d1f2c0adecfee5c69fe91", "score": "0.5726736", "text": "@Override\r\n\t\t\tpublic String toString() {\n\t\t\t\treturn null;\r\n\t\t\t}", "title": "" }, { "docid": "3b42107e523d1f2c0adecfee5c69fe91", "score": "0.5726736", "text": "@Override\r\n\t\t\tpublic String toString() {\n\t\t\t\treturn null;\r\n\t\t\t}", "title": "" }, { "docid": "3b42107e523d1f2c0adecfee5c69fe91", "score": "0.5726736", "text": "@Override\r\n\t\t\tpublic String toString() {\n\t\t\t\treturn null;\r\n\t\t\t}", "title": "" }, { "docid": "e0989255fd1af22841693489e1afa33b", "score": "0.57214063", "text": "public void mo24349a() {\n }", "title": "" }, { "docid": "b860b78be8e10589ee5bd58e2ab7be8e", "score": "0.57196456", "text": "@Override\r\n\tpublic void autonomous() {\r\n\t\t\r\n\t}", "title": "" }, { "docid": "a937c607590931387a357d03c3b0eef4", "score": "0.5715831", "text": "@Override\n\tprotected void initialize() {\n\n\t}", "title": "" }, { "docid": "08ff281f85800b58e0eb77195be25bfc", "score": "0.5708199", "text": "public void finito() {\n\t\t\r\n\t}", "title": "" }, { "docid": "7aadbda143e84de0144f7a8dadde423d", "score": "0.5701067", "text": "@Override\n protected void initData() {\n\n }", "title": "" }, { "docid": "24b649f4fd4e2e8f4e195b19c09f4c8b", "score": "0.56936413", "text": "@Override\n public void FUNMAYORQ() {\n\n }", "title": "" }, { "docid": "b3c7aad07c4af0cfec14c4b0f0f289ef", "score": "0.5692504", "text": "@Override\n\tpublic void arb() {\n\n\t}", "title": "" }, { "docid": "8657ef720f12b2480d4363be4e46781e", "score": "0.5691313", "text": "protected boolean method_4310() {\r\n return true;\r\n }", "title": "" }, { "docid": "9f7ae565c79188ee275e5778abe03250", "score": "0.56881124", "text": "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "title": "" }, { "docid": "45fd99bd8793c6d67c4f276a27b4fdca", "score": "0.5685153", "text": "@Override public int getDefensa(){\n\n return 0;\n\n }", "title": "" } ]
1ecd41e7996ec5c26b6c7cff578b63f2
declares and allocates memory for array1
[ { "docid": "5cdf5f6c96deb7352389d5299ce7e600", "score": "0.6304615", "text": "public static void main(String[] args) {\n int[] array1 = new int[10];\n\n //declares, allocates and initializes memory for array2\n int[] array2 = new int[]{0, 1, 2, 3, 4, 5, 6, 7, 8, 9};\n int x = array2[2];\n\n //declares an array of integers\n int[] firstArray;\n\n //allocate memory for 5 integers\n firstArray = new int[5];\n\n //initialize first element\n firstArray[0] = 0;\n\n //initialize second element\n firstArray[1] = 1;\n firstArray[2] = 2;\n System.out.println(\"x is \" + x);\n System.out.println();\n System.out.println(\"Element at index 0: \"\n + firstArray[0]);\n System.out.println(\"Element at index 1: \"\n + firstArray[1]);\n }", "title": "" } ]
[ { "docid": "631bbfb651fc6140be7243ca12fe09af", "score": "0.61912227", "text": "protected abstract Object allocateArray(int paramInt);", "title": "" }, { "docid": "f15870ab24ff9bd1f4240dee7a09e669", "score": "0.6066795", "text": "protected UInt16Array2D(int size0, int size1)\n\t{\n\t\tsuper(size0, size1);\n\t}", "title": "" }, { "docid": "f87f66dbb5407032c122654a4f424392", "score": "0.60399306", "text": "array_1d()\n {\n size = 10;\n arr = (T[])new Comparable[size];\n ctr = 0;\n }", "title": "" }, { "docid": "85a5730dcde9f736d1397cb1de0c70df", "score": "0.6034925", "text": "public com.smartbear.ArrayOfInt addNewIntArray1()\n {\n synchronized (monitor())\n {\n check_orphaned();\n com.smartbear.ArrayOfInt target = null;\n target = (com.smartbear.ArrayOfInt)get_store().add_element_user(INTARRAY1$6);\n return target;\n }\n }", "title": "" }, { "docid": "e5bd4de7b5edc2d61e8833128fc32f16", "score": "0.59483045", "text": "static byte[] addArrays(byte[] array1, byte[] array2) {\n if (array1 == null) {\n return clone(array2);\n } else if (array2 == null) {\n return clone(array1);\n }\n byte[] joinedArray = new byte[array1.length + array2.length];\n System.arraycopy(array1, 0, joinedArray, 0, array1.length);\n System.arraycopy(array2, 0, joinedArray, array1.length, array2.length);\n return joinedArray;\n }", "title": "" }, { "docid": "c807b1fbd176540386aa76ae0f0cb90b", "score": "0.587674", "text": "private Object[] increaseArray() {\n return Arrays.copyOf(this.container, this.container.length * 2);\n }", "title": "" }, { "docid": "f22e2a0a17a8854bdbef296e300cc3df", "score": "0.5870341", "text": "protected UInt8Array3D(int size0, int size1, int size2)\n\t{\n\t\tsuper(size0, size1, size2);\n\t}", "title": "" }, { "docid": "2603ec22c59ea8e8b9dde999a2eb2854", "score": "0.58267516", "text": "public void update(List<MetricValue> array0, List<MetricValue> array1) {\n\t\tthis.array0.clear();\n\t\tthis.array1.clear();\n\t\t\n\t\tfor (MetricValue value : array0)\n\t\t\tthis.array0.add(new RealMetricValue(MetricValue.extractRealValue(value)));\n\t\t\n\t\tfor (MetricValue value : array1)\n\t\t\tthis.array1.add(new RealMetricValue(MetricValue.extractRealValue(value)));\n\t}", "title": "" }, { "docid": "7da89179937fb95b4a770a2a11900361", "score": "0.58159775", "text": "public void add(Job j1) {\n\t\t\tif (size==1) //if the array is empty, then we just put the element at the 1st index\r\n\t\t\t\tmyArray[1]= j1 ;\r\n\t\t\telse\r\n\t\t\t{\r\n\t\t\t\tdynamicResizing();\r\n\t\t\t\tmyArray[size]= j1;\r\n\t\t\t\tmyArray[size].setEntryTime(cycles);\r\n\t\t\t}\r\n\t\t\tsize++;\r\n\t\t\tcycles++;\r\n\t\t\t\r\n\r\n\t}", "title": "" }, { "docid": "4da14ab4357742ffad8e56c4ffe887f7", "score": "0.5802386", "text": "public static int[][] ConstructArray(String seq1, String seq2) {\n\t\t/*\t\t\n\t\t * \t\t\t0\tS\te\tq\t2\n\t\t * \t\t\t-\t-\t-\t-\t-\n\t\t * \t 0\t| \t0\t0\t0\t0\t0\n\t\t * \t S\t| \t0\tx\tx\tx\tx\n\t\t * \t e\t| \t0\tx\tx\tx\tx\n\t\t * \t q\t| \t0\tx\tx\tx\tx\n\t\t * \t 1\t| \t0\tx\tx\tx\tx\n\t\t * \n\t\t */\n\t\t\t\n\t\t\n\t\tsequence1 = seq1.toCharArray();\n\t\tsequence2 = seq2.toCharArray();\n\n\t\t// Check if array would exceed max array size\n\t\t// If it would\n\t\t// return emptyArray instead\n\t\ttry{\n\t\t\t//Math.multiplyExact(sequence1.length+1, sequence2.length+1);\n\t\t} catch (ArithmeticException e) {\n\t\t\t//System.out.println(\"Caught Exception e\");\n\t\t\tint [][] emptyArray = new int[0][0];\n\t\t\treturn emptyArray;\n\t\t}\n\t\t\t\t\n\t\t// Try to construct backtraceArray\n\t\t// If array use too much memory, as sequences are too long\n\t\t// return emptyArray instead\n\t\ttry {\n\t\t\t\n\t\t\tint [][] ourArray = new int[sequence1.length + 1][sequence2.length +1];\n\t\t\tint [][] backtraceArray = new int[sequence1.length + 1][sequence2.length +1];\n\t\t\t\n\t\t\tfor(int i=1; i < sequence1.length + 1; i++)\n\t\t\t{\n\t\t\t\tfor(int j=1; j < sequence2.length + 1; j++)\n\t\t\t\t{\n\t\t\t\t\tint matchMax = Math.max(Math.max(ourArray[i-1][j], ourArray[i][j-1]), 1+ ourArray[i-1][j-1]);\n\t\t\t\t\tint mismatchMax = Math.max(ourArray[i-1][j], ourArray[i][j-1]);\n\t\t\t\t\t// MATCH\n\t\t\t\t\tif(sequence1[i-1] == sequence2[j-1])\n\t\t\t\t\t{\n\t\t\t\t\t\tourArray[i][j] = matchMax;\n\t\t\t\t\t\t\n\t\t\t\t\t\t//BackTrace\n\t\t\t\t\t\tif (matchMax == 1+ ourArray[i-1][j-1])\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t// 3 = Trace from the diagonal\n\t\t\t\t\t\t\tbacktraceArray[i][j] = 3;\n\t\t\t\t\t\t} else if (matchMax == ourArray[i][j-1]) {\n\t\t\t\t\t\t\t// 2 = Trace from the left\n\t\t\t\t\t\t\t// AKA Gap in Seq2\n\t\t\t\t\t\t\tbacktraceArray[i][j] = 2;\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t// 1 = Trace from the top\n\t\t\t\t\t\t\t// AKA Gap in Seq1\n\t\t\t\t\t\t\tbacktraceArray[i][j] = 1;\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t// MISMATCH\n\t\t\t\t\t} else {\n\t\t\t\t\t\tourArray[i][j] = mismatchMax;\n\t\t\t\t\t\t\n\t\t\t\t\t\t//BackTrace\n\t\t\t\t\t\tif (matchMax == ourArray[i][j-1]) {\n\t\t\t\t\t\t\t// 2 = Trace from the left\n\t\t\t\t\t\t\t// AKA Gap in Seq2\n\t\t\t\t\t\t\tbacktraceArray[i][j] = 2;\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t// 1 = Trace from the top\n\t\t\t\t\t\t\t// AKA Gap in Seq1\n\t\t\t\t\t\t\tbacktraceArray[i][j] = 1;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\n\t\t\tourArray = null;\n\t\t\t\n\t\t\t\n\t\t\treturn backtraceArray;\n\t\t\t\n\t\t} catch (OutOfMemoryError m) {\n\t\t\tint [][] emptyArray = new int[0][0];\n\t\t\treturn emptyArray;\n\t\t}\n\t}", "title": "" }, { "docid": "ec7ffb2c9d510d10c73af7e96f831c52", "score": "0.5781534", "text": "array_1d(int n)\n {\n size = n;\n arr = (T[])new Comparable[size];\n ctr = 0;\n }", "title": "" }, { "docid": "f93e824d6e64770bf02942091017bc25", "score": "0.5736737", "text": "public void iastoreInstForArrayParam() {\n\t\tint bits = pdsInfo.getBits();\n\t\tString s0 = pdsInfo.stackIndex(0);\n\t\tString s0t=pdsInfo.generateTLabel(pdsInfo.stackIndex(0));\n\t\tString s1 = pdsInfo.stackIndex(1);\n\t\tString s1t=pdsInfo.generateTLabel(pdsInfo.stackIndex(1));\n\t\tString s2 = pdsInfo.stackIndex(2);\n\t\tString s2t=pdsInfo.generateTLabel(pdsInfo.stackIndex(2));\n\t\tString length;\n\t\tString length_pair;//suncong\n\t\t\n\t\tif (pdsInfo.getHeapOption() == HeapOption.SIMPLE) {\n\t\t\tif (pdsInfo.checkForIndexOutOfBounds()) {\n\t\t\t\tlength = pdsInfo.heapIndex(s2);\n\t\t\t\tlength_pair=pdsInfo.stringIndex(pdsInfo.generateTLabel(pdsInfo.getHeapName()),s2t);\n\t\t\t\tpdsStmt.addIf(ifStmt(s1 + \">=\" + length + \" || \"+s1t+\">=\"+length_pair, \n\t\t\t\t\t\t\t\tgetIOOBCode(false), \"\", \"\"));\n\t\t\t}\n\t\t\tif (pdsInfo.checkForNullPointerExceptions()) {\n\t\t\t\tpdsStmt.addIf(ifStmt(s2 + \"==0\"+\" || \"+s2t+\"==0\", getNPECode(false),\n\t\t\t\t\t\t\t\"\", \"\"));\n\t\t\t}\n\t\t\t\n\t\t\tString h = pdsInfo.heapIndex(s2 + \"+\" + s1 + \"+1\");\n\t\t\tString h_pair=pdsInfo.stringIndex(pdsInfo.generateTLabel(pdsInfo.getHeapName()),s2t+\"+\"+s1t+\"+1\");\n\t\t\tList<String> tmp=popPushStmt(h + \"=\" + s0, 3, 0);\n\t\t\ttmp.addAll(popPushStmt(h_pair+\"=\"+s0t,3,0));\n\t\t\tpdsStmt.addIf(elseStmt(tmp,new ArrayList<String>()));\n\t\t} else { // if (pdsInfo.getHeapOption() == HeapOption.TWODIMS)\n\t\t}\n\t}", "title": "" }, { "docid": "fc6596c573714f03e79b46691cdedc9d", "score": "0.5727354", "text": "private void expandArray() {\n T[] oldArray = array;\n //create \"new\" array with double the size\n array = (T[]) new Object[oldArray.length * 2];\n //copy value one by one from oldArray to array\n for (int i = 0; i < oldArray.length; i++) {\n array[i] = oldArray[i];\n }\n oldArray = null;\n }", "title": "" }, { "docid": "6acc0d33946b45eb02ede0afa8dba58d", "score": "0.57076555", "text": "public static void main(String[] args) {\n\t\tint [] arr1 = {2,5,8,9};\r\n\t\tint [] arr2 = {15, 3, 7, 12};\r\n\t\tint arr1Length = arr1.length;\r\n\t\tint arr2Length = arr2.length;\r\n\t\tint length = arr1Length + arr2Length;\r\n\t\tint[] arr3 = new int[length];\r\n\t\tint pos=0;\r\n\t\tfor(int element: arr1) {\r\n\t\t\tarr3[pos] = element; \r\n\t\t\tpos++;\r\n\t\t}\r\n\t\tfor(int element: arr2) {\r\n\t\t\tarr3[pos] = element;\r\n\t\t\tpos++;\r\n\t\t}\r\n\t\tSystem.out.println(\"New Array: \"+ Arrays.toString(arr3));\r\n\t\t\r\n\t}", "title": "" }, { "docid": "fe2cd66b0d0bcb2b0ac4a73771dc32e1", "score": "0.5706324", "text": "public void resize(){\n Object temp[][] = new Object[s1.length + 1][9];\n for (int i = 0; i < s1.length; i++){\n for (int j = 0; j < 9; j++){\n temp[i][j] = s1[i][j];\n }\n }\n this.s1 = temp;\n }", "title": "" }, { "docid": "376b58868f71929b934b990b1b18610a", "score": "0.56967825", "text": "@Test\n\tpublic void PartitionSizeOnexOne() {\n\t\t// DataUtilities.createNumberArray2D(double[][] data)\n\t\tNumber[][] result2 = DataUtilities.createNumberArray2D(dataArray2);\n\t\tAssert.assertArrayEquals(new Number[][] { { 1.0 } }, result2);\n\t}", "title": "" }, { "docid": "9ab37bcddac96b3f18cd8577d5ca5de9", "score": "0.56862843", "text": "public void unsetIntArray1()\n {\n synchronized (monitor())\n {\n check_orphaned();\n get_store().remove_element(INTARRAY1$6, 0);\n }\n }", "title": "" }, { "docid": "05bb016c3924f0aeae8d9f949e4cfaf7", "score": "0.5685552", "text": "public static String[] array1() {\n int a = 20;\n String[] array2 = new String[20];\n for (int i = 0; i < a; i++) {\n array2[i] = \"Exercitiul \" + (i + 1);\n }\n return array2;\n }", "title": "" }, { "docid": "7eee27dd5178a0004f0b431c782e6ced", "score": "0.56747603", "text": "public SimpleArray(int size){\r\n\t\tarray = new int [size];\t\r\n\t}", "title": "" }, { "docid": "81227b395bbcf61f5bd0547b44532a74", "score": "0.5668527", "text": "public DynamicArray() {\n\t\t// Here all the initialization stuff will go\n\t\tarray = new int[1];\n\t\tcount = 0; // This means no element in the array\n\t\tsize = 1; // This means only one element can be stored in the array without resizing\n\t}", "title": "" }, { "docid": "1d17ad0615f433d38a8037ac7d6f6c2a", "score": "0.56496143", "text": "public void setReservationData(Object[][] s1){\n this.s1 = s1;\n }", "title": "" }, { "docid": "e5c1263584f85497c3d479c16af648d2", "score": "0.56450844", "text": "private void arrayGrow()\r\n {\r\n \tif(size==aCurrent.length)\r\n \t{\r\n \t\taNew=(Type[])new Object[aCurrent.length*2]; //doubles the length of array\r\n \t\t\r\n \tfor(int j=0;j<aCurrent.length;j++)\r\n \t{\r\n \t\taNew[j]=aCurrent[j];\r\n \t}\r\n \taCurrent=aNew;\r\n } \t\r\n }", "title": "" }, { "docid": "f2c751b53ae7e3ae2a27d499b761e4d5", "score": "0.5634644", "text": "private void grow(){\n E[] temp = (E[])new Object[2 * array.length];\n for (int i =0; i < array.length; i++){\n temp[i] = array[i];\n }\n array = temp;\n }", "title": "" }, { "docid": "bef087be0296db1ec6a49457f0bbf468", "score": "0.561827", "text": "private Array get1DArray(DataType type, int len) {\n Array varArray = null;\n if (type == DataType.FLOAT) {\n varArray = new ArrayFloat.D1(len);\n } else if (type == DataType.DOUBLE) {\n varArray = new ArrayDouble.D1(len);\n } else if (type == DataType.INT) {\n varArray = new ArrayInt.D1(len, false);\n }\n return varArray;\n }", "title": "" }, { "docid": "4f68e9705d9c9d8dd3a755074251f6dd", "score": "0.56102717", "text": "private void increaseArray()\n {\n //Copy the contents of the original array and double its size.\n data = Arrays.copyOf(data, 2 *arraySize);\n }", "title": "" }, { "docid": "095a88af34c3ed5075720c0088699f5d", "score": "0.5600742", "text": "public static final UInt8Array3D create(int size0, int size1, int size2)\n\t{\n return wrap(UInt8Array.create(size0, size1, size2));\n\t}", "title": "" }, { "docid": "1e9d998a301ba6137cd5b61838f7348f", "score": "0.5567191", "text": "public void createArray(File f1) {\n try {\n Scanner scan = new Scanner(f1);\n while (scan.hasNext()) {\n int firstIndex = scan.nextInt();\n int secondIndex = scan.nextInt();\n String dept = scan.next();\n int number = scan.nextInt();\n int credit = scan.nextInt();\n String courseTitle = scan.nextLine();\n Course c1 = new Course(dept, number, courseTitle, credit, \"\");\n myCourse[firstIndex][secondIndex] = c1;\n }\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n }\n }", "title": "" }, { "docid": "cd95ea6acf65941c133eb478efcb8839", "score": "0.55588347", "text": "private void expandArray(){\n\t\t//Comparable[] newArray = (Comparable[]) new Object []\n\t\tComparable [] newArray = (Comparable[]) new Object[items.length * 2];\n\t\tSystem.arraycopy(items, 0, newArray, 0, items.length);\n\t\titems = newArray;\n\t}", "title": "" }, { "docid": "f6527e11fcecc1a350dec5dac059a0ca", "score": "0.55486125", "text": "public void createNewArray(boolean lightweight);", "title": "" }, { "docid": "dcaa6a5713fb689980fdeb401e0c44ca", "score": "0.55462885", "text": "@SuppressWarnings(\"unchecked\")\n private void allocateArray(int arraySize){\n this.array=new HashEntry[arraySize];\n }", "title": "" }, { "docid": "fd856f87c32223e22a0e0b662ce25e2b", "score": "0.55184495", "text": "public /* bridge */ /* synthetic */ java.lang.Object[] newArray(int r1) {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e9 in method: org.gsma.joyn.chat.ExtendMessage.1.newArray(int):java.lang.Object[], dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: org.gsma.joyn.chat.ExtendMessage.1.newArray(int):java.lang.Object[]\");\n }", "title": "" }, { "docid": "50c3579c49380c2d9d186301a815485d", "score": "0.5511835", "text": "public static void multianewarray2(int count1, int count2, Object[] arr) {\n if (debug) {\n System.out.printf(\"In multianewarray2%n\");\n }\n\n ThreadData td = thread_to_data.get(Thread.currentThread());\n assert td.tag_stack.peek() != method_marker;\n Object count2tag = td.tag_stack.pop();\n assert td.tag_stack.peek() != method_marker;\n Object count1tag = td.tag_stack.pop();\n\n TagEntry.union(count1tag, arr);\n\n for (Object subarr : arr) {\n TagEntry.union(count2tag, subarr);\n }\n if (debug_tag_frame) System.out.printf(\"tag stack size: %d%n\", td.tag_stack.size());\n }", "title": "" }, { "docid": "9ebaffd17ba68b04e76b9d8da755c537", "score": "0.550639", "text": "public SuperArray() {\n _data = new int[10];\n _lastPos = -1; //nothing has been changed yet'\n _size = 0;\n }", "title": "" }, { "docid": "da8b2fa5856859aee80ec8da85ec1c85", "score": "0.54959965", "text": "protected void setSizes(int[] param1ArrayOfint) {\n/* 1609 */ System.arraycopy(param1ArrayOfint, 0, this.sizes, 0, 3);\n/* */ }", "title": "" }, { "docid": "e778cbd0b6871ec59b3c75152874b08f", "score": "0.54958147", "text": "public void createEmptyArray();", "title": "" }, { "docid": "67161ec30f3e7e4efb5ba2dc71f10fe5", "score": "0.5482962", "text": "public void clear() {\n size = 0;\n // clear all but first l2 array\n Arrays.fill(l1Array, 1, l1Array.length, null); \n l1NumUsed = 1;\n L2Array l2Array = (L2Array) l1Array[0];\n // clear out l2array\n Arrays.fill(l2Array.items, 0, l2Array.numUsed, null); \n l2Array.numUsed = 0;\n }", "title": "" }, { "docid": "62cc145a20148dd000bdb3996465e6dc", "score": "0.5478769", "text": "public L2Array(int capacity) {\n // you can't create an array of a generic type\n items = (E[]) new Object[capacity]; \n numUsed = 0;\n }", "title": "" }, { "docid": "32660eb4964f09d768fcdc927ba02c30", "score": "0.5475077", "text": "private void anewarrayInst() throws InvalidByteCodeException{\n\t\t\n\t\tif (pdsInfo.getHeapOption() == HeapOption.SIMPLE) {\n\t\t\t\n\t\t\t/*commented by suncong, newarrayInst() is not enough,\n\t\t\tneed to add index to lowref, our implementation is an approximation!!!\n\t\t\tnewarrayInst();*/\n\t\t\tanewarrayInstForLRecord();\n\t\t\treturn;\n\t\t}\n\t\t\n\t\t// if (pdsInfo.getHeapOption() == HeapOption.TWODIMS)\n/*annotated by suncong, do not consider twodims now\n\t\tint intBits = pdsInfo.getBits();\n\t\tString s0 = pdsInfo.stackIndex(0);\n\t\tString heapPtr = pdsInfo.getHeapPtrName();\n\t\tString newHeapPtr = heapPtr + \"+\" + s0\t+ \"+1\";\n\t\t\n\t\tList<String> stmtList = new ArrayList<String>();\n\t\tstmtList.add(s0 + \"=\" + heapPtr);\n\t\tstmtList.addAll(storeHeap(pdsInfo.getHeapName(), s0, intBits + \"*\" + heapPtr, intBits));\n\t\tstmtList.add(heapPtr + \"=\" + newHeapPtr);\n\t\t\n\t\tif (pdsInfo.checkForHeapOverflow()) {\n\t\t\t\n\t\t\tString cond = newHeapPtr + \">\" + pdsInfo.getStoredHeapSize();\n\t\t\tpdsStmt.addIf(ifStmt(cond, getOverflowCode()));\n\t\t\tpdsStmt.addIf(elseStmt(stmtList));\n\t\t} else {\n\t\t\t\n\t\t\tpdsStmt.addNext(stmtList);\n\t\t}*/\n\t}", "title": "" }, { "docid": "e816509fb0d19768a03463103afaf95c", "score": "0.546699", "text": "private void expandArrays() {\n byte[] oldarr[] = arrays;\n arrays = new byte[oldarr.length + NUMARRAYS][];\n System.arraycopy(oldarr, 0, arrays, 0, oldarr.length);\n }", "title": "" }, { "docid": "3048d0d55f7e4f430c15805a93072e81", "score": "0.54579926", "text": "public ArrayST() {\n keys = (Key[]) new Object[2];\n values = (Value[]) new Object[2];\n }", "title": "" }, { "docid": "751c8d6b461230768f2450cc7b5acede", "score": "0.5455204", "text": "private void expendArray() {\n\t\t// Expand Array when the item list is full\n \t@SuppressWarnings(\"unchecked\")\n\t\tE[] newArray = (E[])(new Object[items.length * 2]); //larger array\n \t//copy every item from the old array to the new one\n\t\tfor (int i = 0; i < items.length; i++) {\n\t\t\tnewArray[i] = items[i];\n\t\t}\n\t\t//Substitute the old array with the new one\n\t\titems = newArray;\n\t}", "title": "" }, { "docid": "2478807709b241e316888607d07d3931", "score": "0.54091805", "text": "public static void initialize(int numberofvertices1)\n {\n numberofvertices = numberofvertices1;\n distances = new int[numberofvertices1 + 1][numberofvertices1 + 1];\n }", "title": "" }, { "docid": "fac3984adf8f89d9628f91a8c567c7bd", "score": "0.53985524", "text": "public RealTwoArrayMetricValue(List<Double> array0, List<Double> array1) {\n\t\tsuper();\n\t\tfor (Double value : array0)\n\t\t\tthis.array0.add(new RealMetricValue(value));\n\t\t\n\t\tfor (Double value : array1)\n\t\t\tthis.array1.add(new RealMetricValue(value));\n\t}", "title": "" }, { "docid": "70967225addb34e8cfb298dc57e5b880", "score": "0.5395054", "text": "public void createArray(){\n adjMatrix = new int[nodeList.size()][nodeList.size()];\n }", "title": "" }, { "docid": "3098290edd349bd149128176813b070b", "score": "0.5391819", "text": "private static native void nativeNewArray(Object thr, Object obj);", "title": "" }, { "docid": "f04831a30bfbc855e222598ac04f83a7", "score": "0.53914756", "text": "public Array createArrayOf(String arg0, Object[] arg1) throws SQLException {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "b7b759b9abf513ed444422f0930791b0", "score": "0.5391074", "text": "public List_inArraySlots() {\n intArr = new int[2];\n }", "title": "" }, { "docid": "7025a3d87f561cae31a61071a429458f", "score": "0.53901327", "text": "public void increaseSizeOfArray() {\r\n\t\tString[] arr_temp = new String[size * 2];\r\n\t\tfor(int i = 0 ; i < getCount() ; i++) {\r\n\t\t\tarr_temp[i] = this.arr[i];\r\n\t\t}\t\t\r\n\t\tarr = arr_temp;\r\n\t\tsize *= 2;\r\n\t\tcapacity*=2;\r\n\t}", "title": "" }, { "docid": "4d7e5f9e592396fa0a4fa705dc3275c4", "score": "0.53862983", "text": "private static void example_1() throws IOException, JZarrException {\n ZarrArray jZarray = ZarrArray.create(new ArrayParams()\n .shape(10000, 10000)\n .chunks(1000, 1000)\n .dataType(DataType.i4)\n );\n\n createOutput(out -> out.println(jZarray));\n }", "title": "" }, { "docid": "8b83d8259dc70281907f3e5ae458bc49", "score": "0.53858393", "text": "public void grow_array()\n\t{\n\t\tT[] newArr = (T[]) new Object[size*2];\n\t\tfor (int i = 0; i < size; i++)\n\t\t{\n\t\t\tnewArr[i] = arr[(head+i)%size];\n\t\t}\n\t\tarr = newArr;\n\t\thead = 0;\n\t\ttail = size;\n\t\tsize = size*2;\t\t\n\t\t\n\t}", "title": "" }, { "docid": "e99f77a8f3c71598b287263890328cbc", "score": "0.53708065", "text": "public ArrayBag1() {\n this(DEFAULT_CAPACITY);\n }", "title": "" }, { "docid": "b6cfd0e19d83994caf3204dafa3238e2", "score": "0.5349317", "text": "private void instantiateSpiralArray() {\n spiralArray = new int[arrayWidth][arrayHeight];\n setSpiralArraySlotsToAllEmpty();\n }", "title": "" }, { "docid": "a39e65019334cf1b3d1e7b0e3ef82782", "score": "0.533663", "text": "private static void demo2() {\n System.out.println(\"\\ndemo2...\");\n List<Integer> l1 = new ArrayList<>(INT_LIST);\n System.out.println(\"l1 = \" + l1);\n System.out.println(\"sorting l1...\");\n Collections.sort(l1);\n System.out.println(\"l1 = \" + l1);\n\n int[] a1 = Arrays.copyOf(INT_ARRAY, INT_ARRAY.length);\n System.out.println(\"---\\na1 = \" + Arrays.toString(a1));\n System.out.println(\"sorting a1...\");\n Arrays.sort(a1);\n System.out.println(\"a1 = \" + Arrays.toString(a1));\n }", "title": "" }, { "docid": "a86dceaff8b2df7b21b471533e82ab64", "score": "0.5330018", "text": "public BetterArray() {\n\t\t\t array = (E[]) new Object[DEFAULT_SIZE];\n\t\t\t }", "title": "" }, { "docid": "752f1305a3bf5c92c930f42d192a2c12", "score": "0.53290766", "text": "@SuppressWarnings(\"unchecked\")\r\n private void newArray() { cells = new Deque[width][height]; }", "title": "" }, { "docid": "b4a47233045c910832c3afadc706d724", "score": "0.53282094", "text": "private void expand() {\n int[] temp = new int[_data.length * 2];\n for (int i = 0 ; i < _data.length ; i++) {\n temp[i] = _data[i];\n } \n _data = temp;\n }", "title": "" }, { "docid": "bfd7b486d790a98a2147d4e34533f909", "score": "0.53274846", "text": "void example1() {\n\t\t\n\t\t// Let's say I have some 16-bit data that I will want to take the FFT of. Before I can run the\n\t\t// FFT algorithm I need to create a complex floating point data set. This can be done in a\n\t\t// pretty simple fashion.\n\t\t\n\t\t// here is my list of short data\n\t\t\n\t\tIndexedDataSource<SignedInt16Member> shortList = Storage.allocate(G.INT16.construct(), new short[] {1,2,3,4,5});\n\t\t\n\t\t// here is the target list of the same size\n\t\t\n\t\tIndexedDataSource<ComplexFloat64Member> complexList = Storage.allocate(new ComplexFloat64Member(), shortList.size());\n\t\t\n\t\t// convert the data\n\t\t\n\t\tDataConvert.compute(G.INT16, G.CDBL, shortList, complexList);\n\t\t\n\t\t// complexList now looks like this: {1.0, 0.0}, {2.0, 0.0}, {3.0, 0.0}, {4.0, 0.0}, {5.0, 0.0}\n\t}", "title": "" }, { "docid": "a0aab238a2dfc073655222db31fb152b", "score": "0.53266543", "text": "private void doubleArray(){\n\t \tObject[] newArray = new Object[array.length * 2];\n\t\tfor( int i = 0; i < array.length; i++ )\n\t\t newArray[i] = array[i];\n\t\tarray = newArray;\n \t}", "title": "" }, { "docid": "b5d07dfc6190e3b8b18979c0956786f0", "score": "0.53221613", "text": "public String[] toArray(int paramInt1, int paramInt2)\n/* */ {\n/* 201 */ return (String[])buildArray(String.class, paramInt1, paramInt2);\n/* */ }", "title": "" }, { "docid": "43ded3754b113d37353979c1223f2a0b", "score": "0.53136206", "text": "public ArrayBag1(int desiredCapacity) {\n // The cast is safe because the new array contains null entries.\n @SuppressWarnings(\"unchecked\")\n T[] tempBag = (T[])new Object[desiredCapacity]; // Unchecked cast\n bag = tempBag;\n numberOfEntries = 0;\n }", "title": "" }, { "docid": "2dc30eedf72a88bad6c8a4fd261e5b80", "score": "0.5313439", "text": "private void extendArray(){\n int newCapacity = inputStack.length * 2;\n inputStack = Arrays.copyOf(inputStack, newCapacity);\n }", "title": "" }, { "docid": "dfc7feece4bd2873fb7c396b21ea6565", "score": "0.5313014", "text": "public ArraySequence(int[] other) {\n\t\tthis.data = other.clone();\n\t\tthis.currentIndex = 0;\n\t}", "title": "" }, { "docid": "22fbb9dfd5a405e3598dcfd678de8b0e", "score": "0.5310563", "text": "@Override\r\n\tprotected Ext extNewArrayImpl() {\r\n//\t\treturn super.extNewArrayImpl();\r\n\t\treturn new EquGenNewArrayExt();\r\n\t}", "title": "" }, { "docid": "2945cf273035803c1b63ee632b805adf", "score": "0.5302327", "text": "public static void main(String[] args) {\n\t\tint[][] a1 = {\n\t\t\t\t\t\t{10,20,30,40,50}, //0\n\t\t\t\t\t\t{10,20,30}, //1\n\t\t\t\t\t\t{10,20,30,40}, //2\n\t\t\t\t\t\t{10,20}, //3\n\t\t\t\t\t\t{10} //4\n\t\t\t\t\t };\n\t\t\n\t\tSystem.out.println(\"a1 is: \"+a1); // Address\n\t\tSystem.out.println(\"a1 length is: \"+a1.length); //5 , a1 holds only 5 arrays\n\t\t\n\t\tSystem.out.println(\"a1[0] is: \"+a1[0]);\n\t\tSystem.out.println(\"a1[0] length is: \"+a1[0].length);\n\t\t\n\t\tSystem.out.println(\"a1[3] is: \"+a1[3]);\n\t\tSystem.out.println(\"a1[3] length is: \"+a1[3].length);\n\t\t\n\t\t// a1's 3rd indexed array's oth element\n\t\tSystem.out.println(\"a1[3][0]: \"+a1[3][0]);\n\t\tSystem.out.println(\"a1[2][2]: \"+a1[2][2]); // 30\n\t\t\n\t\t\n\t\tSystem.out.println(\"***********************\");\n\t\t\n\t\t// Read All Elements in Array\n\t\t// i Loop shall run 5 times !!\n\t\tfor(int i=0;i<a1.length;i++){\n\t\t\t\n\t\t\t// j loop which runs till the length of array contained in a1\n\t\t\tfor(int j=0;j<a1[i].length;j++){\n\t\t\t\tSystem.out.print(a1[i][j]+\" \"); // Prints ith array's jth index\t\n\t\t\t}\n\t\t\t\n\t\t\tSystem.out.println();\n\t\t}\n\t\t\n\t\t// Explore : Enhanced For Loop \n\t\t\n\t\tSystem.out.println(\"***********************\");\n\n\t\t// 3-Dim\n\t\t// Array of Array of Arrays\n\t\tint[][][] a2 = {\n\t\t\t\t\n\t\t\t\t\t\t\t {\n\t\t\t\t\t\t\t\t\t{10,20,30,40,50}, //0\n\t\t\t\t\t\t\t\t\t{10,20,30}, //1\n\t\t\t\t\t\t\t\t\t{10,20,30,40}, //2 \t\t\t// 0th\n\t\t\t\t\t\t\t\t\t{10,20}, //3\n\t\t\t\t\t\t\t\t\t{10} //4\n\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t{10,20,30,40,50}, //0 \t\t\t// 1th\n\t\t\t\t\t\t\t\t\t{10,20,30}, //1\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\n\t\t\t\t\t };\n\t\t\n\t\tSystem.out.println(\"a2 is: \"+a2); // address\n\t\tSystem.out.println(\"a2 length is: \"+a2.length); // ?\n\t\t\n\t\t// If we don't know the data before hand, and would like to substitute the data later\n\t\t// we need 3 1-D arrays, with each 1-D Array having 3 elements\n\t\t// not a matrix\n\t\tint[][] a3 = new int[3][3];\n\t\t\n\t\t// we need 5 1-D Arrays with size not specified\n\t\tint[][] a4 = new int[5][];\n\t\ta4[0] = new int[10]; // a4's 0th array can hold 10 elements\n\t\ta4[1] = new int[20]; // a4's 0th array can hold 20 elements\n\t\ta4[2] = new int[15]; // a4's 0th array can hold 15 elements\n\t\ta4[3] = new int[13]; // a4's 0th array can hold 13 elements\n\t\ta4[4] = new int[21]; // a4's 0th array can hold 21 elements\n\t\t\n\t}", "title": "" }, { "docid": "3969c606b8e7e1caa99f05ef4d524eaa", "score": "0.5301926", "text": "public static void main(String[] args) {\n int [] intArray = new int[10];\r\n char [] intArray2 = {'a','n'};// this kind of initialization can be done only during declaring an array.\r\n String[] stringArray = getStrings(0);\r\n System.out.println(intArray.length + \" \" + intArray2.length + \"\\n\" + stringArray.length);\r\n\r\n for(int i = 0; i < intArray.length; i++){\r\n intArray[i] = i * 9;\r\n }\r\n\r\n System.out.println(intArray.length);\r\n\r\n printArray(intArray);\r\n printArray(stringArray);\r\n\r\n }", "title": "" }, { "docid": "1f65fe5551cb70b69a34614b91326176", "score": "0.52978384", "text": "public static int[][] fusion2(int[][] tab1, int literal)\n\t\t{\n\t\t\tint newSize=tab1.length+1;\n\t\t\tint[][] newTab = new int[newSize][];\n\t\t\tfor(int i=0; i<tab1.length; i++)\n\t\t\t{\n\t\t\t\tnewTab[i]=new int[tab1[i].length];\n\t\t\t\tfor(int j=0; j<tab1[i].length;j++)\n\t\t\t\t{\n\t\t\t\t\tnewTab[i][j]=tab1[i][j];\n\t\t\t\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tnewTab[tab1.length]=new int[2];\n\t\t\tfor(int i=0; i<2; i++)\n\t\t\t{\n\t\t\t\tnewTab[tab1.length][0]=literal;\n\t\t\t\tnewTab[tab1.length][1]=0;\n\t\t\t}\n\t\t\treturn newTab;\n\t\t\t\n\t\t}", "title": "" }, { "docid": "819b7e6221cbe434b6cae493162e88a3", "score": "0.52932227", "text": "public Encoder addToSequence(byte[] asn1_data, int offset, int length) {\n\t\t// System.err.println(\"addASN1ToASN1Sequence_1: \"+bytes+\"+\"+length);\n\t\t// System.err.println(\"addASN1ToASN1Sequence_2:\n\t\t// \"+this+\"+\"+Util.byteToHex(asn1_data,\" \"));\n\t\tif (data.length == 0) {\n\t\t\tdata = new byte[length];\n\t\t\tcopyBytes(data, 0, asn1_data, length, offset);\n\t\t\tthis.incrementASN1Length(length);\n\t\t\tbytes += length;\n\t\t\t// System.err.println(\"addASN1ToASN1Sequence_r: \"+bytes+\"+\"+length);\n\t\t} else {\n\t\t\tEncoder e = new Encoder();\n\t\t\te.data = data;\n\t\t\te.prefix_data = prefix_data;\n\t\t\te.bytes = bytes - header_length.length - header_type.length;\n\t\t\tprefix_data = e;\n\t\t\tdata = new byte[0];\n\t\t\taddToSequence(asn1_data, offset, length);\n\t\t\t// System.err.println(\"addASN1ToASN1Sequence_r2:\n\t\t\t// \"+bytes+\"+\"+length);\n\t\t}\n\t\treturn this;\n\t}", "title": "" }, { "docid": "8b6074a1f7f9d9bd69ebf3cf3723865f", "score": "0.5292401", "text": "private void growVisitedArrays() {\n\n int oldLen = objects.length;\n int newLen = oldLen * 2;\n\n Object[] newObjects = new Object[newLen];\n int[] newOffsets = new int[newLen];\n\n System.arraycopy(objects, 0, newObjects, 0, oldLen);\n System.arraycopy(offsets, 0, newOffsets, 0, oldLen);\n\n objects = newObjects;\n offsets = newOffsets;\n }", "title": "" }, { "docid": "ec9d6bb3eed88339f413cf7cc5d8d46b", "score": "0.5291739", "text": "@Test\n public void readHeapArrayConst2PointersMultipleTypesRepeated()\n throws CPATransferException, InvalidConfigurationException {\n String arrayVariableName = \"arrayVariable\";\n String addressToAddressVariableName = \"addressToAddressVariableName\";\n\n // We want to test the arrays for all basic types\n for (CType currentArrayType : ARRAY_TEST_TYPES) {\n int sizeOfCurrentTypeInBits = MACHINE_MODEL.getSizeof(currentArrayType).intValue() * 8;\n // address to the heap where the array starts\n Value addressValue = SymbolicValueFactory.getInstance().newIdentifier(null);\n // Create the array on the heap; size is type size in bits * size of array\n addHeapVariableToMemoryModel(0, sizeOfCurrentTypeInBits * TEST_ARRAY_LENGTH, addressValue);\n // Stack variable holding the address (the pointer) to the array\n addStackVariableToMemoryModel(arrayVariableName, POINTER_SIZE_IN_BITS);\n writeToStackVariableInMemoryModel(arrayVariableName, 0, POINTER_SIZE_IN_BITS, addressValue);\n // Stack variable holding the address (the pointer) to the address of the array\n addStackVariableToMemoryModel(addressToAddressVariableName, POINTER_SIZE_IN_BITS);\n // We need a mapping from addressForAddressValue to a SMGValue that is mapped to a\n // SMGPointsToEdge (modeling the pointer)\n SMGObject objectForAddressValue =\n currentState.getMemoryModel().getStackFrames().peek().getVariable(arrayVariableName);\n Value addressForAddressValue = addPointerToMemory(objectForAddressValue, 0);\n\n writeToStackVariableInMemoryModel(\n addressToAddressVariableName, 0, POINTER_SIZE_IN_BITS, addressForAddressValue);\n\n // Now write some distinct values into the array, for signed we want to test negatives!\n for (int k = 0; k < TEST_ARRAY_LENGTH; k++) {\n // Create a Value that we want to be mapped to a SMGValue to write into the array depending\n // on the type\n Value arrayValue = transformInputIntoValue(currentArrayType, k);\n\n // Write to the heap array\n writeToHeapObjectByAddress(\n addressValue, sizeOfCurrentTypeInBits * k, sizeOfCurrentTypeInBits, arrayValue);\n }\n\n // Now we read the entire array twice.(twice because values may change when reading in SMGs,\n // and we don't want that)\n for (int j = 0; j < 2; j++) {\n for (int k = 0; k < TEST_ARRAY_LENGTH; k++) {\n CPointerExpression arrayPointerExpr =\n pointerOfPointerAccess(addressToAddressVariableName, currentArrayType, k);\n\n List<ValueAndSMGState> resultList = arrayPointerExpr.accept(visitor);\n\n // Assert the correct return values depending on type\n assertThat(resultList).hasSize(1);\n Value resultValue = resultList.get(0).getValue();\n checkValue(currentArrayType, k, resultValue);\n }\n }\n // Reset memory model\n resetSMGStateAndVisitor();\n }\n }", "title": "" }, { "docid": "72a646f458360ba90789d44476551a80", "score": "0.52871245", "text": "public UnionTest(int array1[], int array2[], int result[]) {\n\t\tthis.array1 = array1;\n\t\tthis.array2 = array2;\n\t\tthis.result = result;\n\t}", "title": "" }, { "docid": "b7b6671cb120cb8ea09d26ced0168e4c", "score": "0.5258742", "text": "public com.smartbear.ArrayOfInt getIntArray1()\n {\n synchronized (monitor())\n {\n check_orphaned();\n com.smartbear.ArrayOfInt target = null;\n target = (com.smartbear.ArrayOfInt)get_store().find_element_user(INTARRAY1$6, 0);\n if (target == null)\n {\n return null;\n }\n return target;\n }\n }", "title": "" }, { "docid": "a0830c013fe822f72592780fbe2bee43", "score": "0.5257518", "text": "private void initMemory(){\n\n }", "title": "" }, { "docid": "afe111476ebf2995222e80020f8e2f87", "score": "0.52549726", "text": "public /* bridge */ /* synthetic */ java.lang.Object[] newArray(int r1) {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e9 in method: com.android.ims.internal.uce.options.OptionsCmdId.1.newArray(int):java.lang.Object[], dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.android.ims.internal.uce.options.OptionsCmdId.1.newArray(int):java.lang.Object[]\");\n }", "title": "" }, { "docid": "74cb87de948ddae06612fe2a15370087", "score": "0.5251703", "text": "public IArray createArray(final Object javaArray);", "title": "" }, { "docid": "52b70e093c640c74ec4369db0cbc8a18", "score": "0.52424556", "text": "public void fillArray(int NumBuffers);", "title": "" }, { "docid": "e4656fba43216d0eee47d7c9c9560ab0", "score": "0.5242248", "text": "public static void main(String[] args) {\n int[] arr1 = new int[] {45, 32, 75};\r\n\r\n // printing the array\r\n System.out.println(\"Printing 1st array:\");\r\n for (int i = 0; i < arr1.length; i++)\r\n {\r\n System.out.println(arr1[i]); \r\n }\r\n\r\n // copying array arr1 to arr2 with newlength as 5\r\n int[] arr2 = Arrays.copyOf(arr1, 5);\r\n //arr2[3] = 11;\r\n //arr2[4] = 55; \r\n\r\n // printing the array arr2\r\n System.out.println(\"Printing new array:\");\r\n for (int i = 0; i < arr2.length; i++) \r\n {\r\n System.out.println(arr2[i]);\r\n }\r\n }", "title": "" }, { "docid": "43f9ab8eccfd7a0923af0f545b8a0a93", "score": "0.523595", "text": "public void createObjectArray(int elementCount);", "title": "" }, { "docid": "121a349f901577bed777e9c22ada581a", "score": "0.5230737", "text": "public void beginArray();", "title": "" }, { "docid": "3af145fc16273e96d549df8ae744c2f1", "score": "0.52252525", "text": "public /* bridge */ /* synthetic */ java.lang.Object[] newArray(int r1) {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e9 in method: android.media.tv.TvTrackInfo.1.newArray(int):java.lang.Object[], dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: android.media.tv.TvTrackInfo.1.newArray(int):java.lang.Object[]\");\n }", "title": "" }, { "docid": "d359ab3d33a81272cfd5a90af57892e7", "score": "0.52188635", "text": "ArrayInstantiationBySize createArrayInstantiationBySize();", "title": "" }, { "docid": "917370fd5ea73337b20a024050e7c312", "score": "0.5216674", "text": "StackType[] createArray(int length);", "title": "" }, { "docid": "a3b94d38f8773e70672bef9aad0baead", "score": "0.52140194", "text": "public static void main(String[] args) {\n\t int i ; \n\t i = 10 ; \n\t \n\t double[] prices1 ; \n\t prices1 = new double[4] ; \n\t \n\t prices1[0] = 1.5 ; \n\t prices1[3] = 2.12 ; \n\t prices1[2] = 23.99 ; \n\t prices1[1] = 12.32 ; \n\t \n\t System.out.println(prices1[2] );//23.99 printed\n\t \n\t //double prices2[] ; \n\t // Task 5 : \n\t /*\n\t * declare boolean array variable that point to array of size 5 \n\t * declare short variable \n\t * declare String array variable \n\t * declare Scanner array variable\n\t * */\n\t //// the number in [] is the capacity of array object\n\t \n\t boolean [] bul= new boolean [5];\n\t short [] sh= new short [5];\n\t String [] str= new String [5];\n\t Scanner [] scans=new Scanner [5];\n\t \n\t \n\t boolean[] onOffs = new boolean[5] ; \n\t short[] shortNum = new short[2]; \n\t String[] strs = new String[20]; \n\t Scanner[] manyScan = new Scanner[15]; \n\n\t\tboolean[] isTrue =new boolean [5];\n\t\t\n\t\tshort [] sh = new short [6];\n\t\tString [] str = new String [7];\n\t\t\n\t\tScanner [] scan= new Scanner [4];\n\t\t\n\t\tboolean [] dogruYanlis= new boolean[4];\n\t\tshort [] kisa= new short[9];\n\t\tint [ ] indi= new int[8];\n\t\tlong [ ] uzunSayi= new long [9];\n\t\tdouble [] cift= new double [8];\n\t\t\n\t\tString [] strems= new String [8];\n\t\tScanner [] yazici = new Scanner [3];\n\t\t\n\t\tSystem.out.println(yazici);\n\t\tSystem.out.println(strems);\n\t\t\n\t\t\n\t\n\t\t\n\t\t\n\t}", "title": "" }, { "docid": "14d1071c8359a16658a0d063268970be", "score": "0.52116877", "text": "@Test\n\tpublic void PartitionSizeNxOne() {\n\t\t// DataUtilities.createNumberArray2D(double[][] data)\n\t\tNumber[][] result4 = DataUtilities.createNumberArray2D(dataArray4);\n\t\tAssert.assertArrayEquals(new Number[][] { { 1.0 }, { 2.0 }, { 3.0 }, { 4.0 }, { 5.0 } }, result4);\n\t}", "title": "" }, { "docid": "982718a2ac7a84ecf2c051f3fc77a771", "score": "0.52070534", "text": "private void readNewArray(ClassField cf) {\n ClassDataDesc cdd;\n ClassDetails cd;\n byte b1, b2, b3, b4;\n int size;\n\n //TC_ARRAY\n b1 = this._data.pop();\n this.print(\"TC_ARRAY - 0x\" + this.byteToHex(b1));\n if (b1 != (byte) 0x75) {\n throw new RuntimeException(\"Error: Illegal value for TC_ARRAY (should be 0x75)\");\n }\n this.increaseIndent();\n\n //classDesc\n cdd = this.readClassDesc(); //Read the class data description to enable array elements to be read\n if (cdd.getClassCount() != 1) {\n throw new RuntimeException(\"Error: Array class description made up of more than one class.\");\n }\n cd = cdd.getClassDetails(0);\n if (cd.getClassName().charAt(0) != '[') {\n throw new RuntimeException(\"Error: Array class name does not begin with '['.\");\n }\n\n //newHandle\n this.newHandle();\n\n //Array size\n b1 = this._data.pop();\n b2 = this._data.pop();\n b3 = this._data.pop();\n b4 = this._data.pop();\n size = (int) (\n ((b1 << 24) & 0xff000000) +\n ((b2 << 16) & 0xff0000) +\n ((b3 << 8) & 0xff00) +\n ((b4) & 0xff)\n );\n this.print(\"Array size - \" + size + \" - 0x\" + this.byteToHex(b1) + \" \" + this.byteToHex(b2) + \" \" + this.byteToHex(b3) + \" \" + this.byteToHex(b4));\n\n //Array data\n this.print(\"Values\");\n this.increaseIndent();\n Object[] arrayValue = new Object[size];\n\n for (int i = 0; i < size; ++i) {\n //Print element index\n this.print(\"Index \" + i + \":\");\n this.increaseIndent();\n\n //Read the field values based on the classDesc read above\n ClassField tempClassField = new ClassField((byte) cd.getClassName().charAt(1));\n this.readFieldValue(tempClassField);\n arrayValue[i] = tempClassField.getValue();\n //Revert indent\n this.decreaseIndent();\n }\n this.decreaseIndent();\n\n// cf.setValue(String.format(\"=%s[%d]{%s}\", cd.getClassName(), size, Arrays.toString(arrayValue)));\n cf.setValue(arrayValue);\n //Revert indent\n this.decreaseIndent();\n }", "title": "" }, { "docid": "e40f7698e3896e5b0a04f8c88b1695c6", "score": "0.52062565", "text": "private void init(int[] array)\r\n/* */ {\r\n/* 112 */ this.N = array.length;\r\n/* 113 */ this.Value = array;\r\n/* 114 */ this.currentValueBackup = this.Value;\r\n/* 115 */ this.permutationCounter = 0L;\r\n/* */ }", "title": "" }, { "docid": "e825de454f830c17060f9467a8d05dc2", "score": "0.52061254", "text": "private void extend(){\n\n int currentSize = this.data.length;\n int newSize = currentSize * 2;\n Object[] newArray = new Object[newSize];\n\n for (int i = 0; i < currentSize; i++) {\n newArray[i] = this.data[i];\n }\n\n this.data = newArray;\n }", "title": "" }, { "docid": "a7a5aa9a5c6f06b050383f521f4031e5", "score": "0.52047724", "text": "private void increase()\r\n\t{\n\t\t_array = Arrays.copyOf(_array, _array.length*2);\r\n\t}", "title": "" }, { "docid": "341928fcf702abca7c424c2e9e42ac7a", "score": "0.5203282", "text": "public static void main( String[] args) {\n\t\tdouble[] array1= new double[5]; \n\n\t\tarray1[0]= 5.6;\n\t\tarray1[1]= 2.5;\n\t\tarray1[2]= 7.9;\n\t\tarray1[3]= 82.3;\n\t\tarray1[4]= 6.23; // last index is array1.length -1\n\n\n\t\tdouble[] array2= new double[array1.length];\n\n\n\t\t// array1= array2; => THIS IS NOT CORRECT WAY TO COPY VALUES OF ARRAYS\n\n\t\tfor (int i=0; i < array1.length; i++){\n\t\t\tarray2[i]= array1[i];\n\t\t}\n\n\t\t// Display all values of an array \n\t\t// must traverse through each index of array \n\n\n\t\tfor(int i=0; i < array1.length; i++) {\n\t\t\tSystem.out.println(i+ \" = \"+array2[i]);\n\t\t}\n\n\t}", "title": "" }, { "docid": "3438e88081472a13344a781378133b1c", "score": "0.5199713", "text": "public void setIntArray1(com.smartbear.ArrayOfInt intArray1)\n {\n generatedSetterHelperImpl(intArray1, INTARRAY1$6, 0, org.apache.xmlbeans.impl.values.XmlObjectBase.KIND_SETTERHELPER_SINGLETON);\n }", "title": "" }, { "docid": "5ab64b2586fecf03f136e89b802439db", "score": "0.5190152", "text": "public void initializeArray(){\n if(this.lastUsedIndex==0){\n for(int i=0;i<this.arr.length;i++){\n this.arr[i]=Integer.MIN_VALUE;\n }\n }\n }", "title": "" }, { "docid": "82ccf06a5afca4027804bfc160d9cfb5", "score": "0.5188433", "text": "private int[] increaseSize() {\n int[] out = new int[size * 2];\n for (int i = 0; i < size; i++) {\n out[i] = pointers[i];\n }\n return out;\n }", "title": "" }, { "docid": "3fba23dc80051aa121df00fcdd33fdf5", "score": "0.51882595", "text": "@Test\n public void readHeapArrayConstMultipleTypesRepeated()\n throws CPATransferException, InvalidConfigurationException {\n String arrayVariableName = \"arrayVariable\";\n\n // We want to test the arrays for all basic types\n for (CType currentArrayType : ARRAY_TEST_TYPES) {\n\n setupHeapArray(arrayVariableName, currentArrayType);\n\n // Now we read the entire array twice.(twice because values may change when reading in SMGs,\n // and we don't want that)\n for (int j = 0; j < 2; j++) {\n for (int k = 0; k < TEST_ARRAY_LENGTH; k++) {\n CPointerExpression arrayPointerExpr =\n arrayPointerAccess(arrayVariableName, currentArrayType, k);\n\n List<ValueAndSMGState> resultList = arrayPointerExpr.accept(visitor);\n\n // Assert the correct return values depending on type\n assertThat(resultList).hasSize(1);\n Value resultValue = resultList.get(0).getValue();\n checkValue(currentArrayType, k, resultValue);\n }\n }\n // Reset memory model\n resetSMGStateAndVisitor();\n }\n }", "title": "" }, { "docid": "0547cb25b372bd5b4c9fc2ce4e1c8394", "score": "0.51848763", "text": "@SuppressWarnings(\"unchecked\")\n\tprivate void initializeArrays() {\n\t\tzonesCenters = new float[zonesCount];\n\t\tzonesSpeeds = new float[zonesCount];\n\t\tcars = new LinkedList[zonesCount];\n\t\tfor (int zoneIndex = 0; zoneIndex < zonesCount; zoneIndex++) {\n\t\t\tzonesCenters[zoneIndex] = (float) Constants.dialog.DIALOG_WORLD_Y_OFFSET + zoneWidth / 2 + zoneWidth\n\t\t\t\t\t* zoneIndex;\n\t\t\tzonesSpeeds[zoneIndex] = speed - (MAX_SPEED_ADDITION - MIN_SPEED_ADDITION) * zoneIndex / zonesCount\n\t\t\t\t\t- MIN_SPEED_ADDITION;\n\t\t\tcars[zoneIndex] = new LinkedList<RaceMinigameCar>();\n\t\t}\n\n\t\t// Zones distances\n\t\tminDistances = new float[zonesCount];\n\t\tmaxDistances = new float[zonesCount];\n\t\tminDistances[zonesCount - 1] = MIN_CAR_DISTANCE;\n\t\tmaxDistances[zonesCount - 1] = MAX_CAR_DISTANCE;\n\t\tfor (int zoneIndex = zonesCount - 2; zoneIndex >= 0; zoneIndex--) {\n\t\t\tminDistances[zoneIndex] = minDistances[zoneIndex + 1] * DISTANCE_RAISER;\n\t\t\tmaxDistances[zoneIndex] = maxDistances[zoneIndex + 1] * DISTANCE_RAISER;\n\t\t}\n\n\t\t// Lines\n\t\tlineImages = new LinkedList[zonesCount - 1];\n\t\tfor (int zoneIndex = 0; zoneIndex < zonesCount - 1; zoneIndex++) {\n\t\t\tlineImages[zoneIndex] = new LinkedList<ScreenAdaptiveImage>();\n\t\t}\n\t}", "title": "" }, { "docid": "4b70dd776c2921657dfaab0ad3315bb5", "score": "0.5184476", "text": "public Vector toVector1() {\n\t\tVector v1 = new Vector(array1.size(), 0);\n\t\tfor (int i = 0; i < v1.dim(); i++) {\n\t\t\ttry {\n\t\t\t\tRealMetricValue value = (RealMetricValue) array1.get(i);\n\t\t\t\tv1.set(i, MetricValue.extractRealValue(value));\n\t\t\t}\n\t\t\tcatch (Exception e) {\n\t\t\t\tLogUtil.trace(e);\n\t\t\t}\n\t\t}\n\t\treturn v1;\n\t}", "title": "" }, { "docid": "89125d24954dce73d5fe66990026d213", "score": "0.5183982", "text": "@Test\n public void readNestedPointerHeapArrayLeadingToConstArrayMultipleTypesRepeated()\n throws CPATransferException, InvalidConfigurationException {\n String pointerArrayName = \"pointerArrayVariable\";\n\n // We want to test the arrays for all basic types\n for (CType currentValueArrayType : ARRAY_TEST_TYPES) {\n int sizeOfCurrentTypeInBits = MACHINE_MODEL.getSizeof(currentValueArrayType).intValue() * 8;\n // address to the heap where the array starts\n Value addressValueArray = SymbolicValueFactory.getInstance().newIdentifier(null);\n // Create the array on the heap; size is type size in bits * size of array\n addHeapVariableToMemoryModel(\n 0, sizeOfCurrentTypeInBits * TEST_ARRAY_LENGTH, addressValueArray);\n\n // Now write some distinct values into the array, for signed we want to test negatives!\n for (int k = 0; k < TEST_ARRAY_LENGTH; k++) {\n // Create a Value that we want to be mapped to a SMGValue to write into the array depending\n // on the type\n Value arrayValue = transformInputIntoValue(currentValueArrayType, k);\n\n // Write to the heap array\n writeToHeapObjectByAddress(\n addressValueArray, sizeOfCurrentTypeInBits * k, sizeOfCurrentTypeInBits, arrayValue);\n }\n // Now that we have a filled value array, we create another array whose pointer is in a stack\n // variable and that is filled with pointers. Each pointer simply corrosponds to the same\n // position in the value array. so pointerArray[0] -> valueArray[0]\n // Stack variable holding the address (the pointer)\n Value addressPointerArray = SymbolicValueFactory.getInstance().newIdentifier(null);\n addStackVariableToMemoryModel(pointerArrayName, POINTER_SIZE_IN_BITS);\n writeToStackVariableInMemoryModel(\n pointerArrayName, 0, POINTER_SIZE_IN_BITS, addressPointerArray);\n // Create the array on the heap; size is pointer size\n addHeapVariableToMemoryModel(\n 0, POINTER_SIZE_IN_BITS * TEST_ARRAY_LENGTH, addressPointerArray);\n // now fill the array with pointers\n // Note: we should reuse the pointer for index 0 from above, but I am lazy and it does not\n // matter in a test\n SMGObject objectForAddressValue =\n currentState.dereferencePointer(addressValueArray).get(0).getSMGObject();\n for (int j = 0; j < TEST_ARRAY_LENGTH; j++) {\n // We need a mapping from each value representing a address to a SMGValue that is mapped to\n // a SMGPointsToEdge (modeling the pointer). We simply use numeric values for this. We\n // remember the pointer values such that the index is the same as the location of the\n // pointer in the array.\n Value address = addPointerToMemory(objectForAddressValue, j * sizeOfCurrentTypeInBits);\n // Write the pointer to the heap array\n writeToHeapObjectByAddress(\n addressPointerArray, POINTER_SIZE_IN_BITS * j, POINTER_SIZE_IN_BITS, address);\n }\n\n // Now we read the entire pointer array twice and dereference the pointer (+- offset) within\n // to check the value of the value array. (twice because values may change when reading in\n // SMGs, and we don't want that)\n for (int read = 0; read < 2; read++) {\n for (int pointerArrayOffset = 0;\n pointerArrayOffset < TEST_ARRAY_LENGTH;\n pointerArrayOffset++) {\n // the real index will always be pointerArrayOffset + valueArrayOffset and that should\n // start with -1 and end with TEST_ARRAY_LENGTH to test out of bounds\n for (int valueArrayOffset = -pointerArrayOffset - 1;\n valueArrayOffset < TEST_ARRAY_LENGTH;\n valueArrayOffset++) {\n int realIndex = valueArrayOffset + pointerArrayOffset;\n CPointerExpression arrayPointerExpr =\n pointerWithBinaryAccessFromExpression(\n pointerArrayName, currentValueArrayType, pointerArrayOffset, valueArrayOffset);\n if (realIndex < 0 || realIndex >= TEST_ARRAY_LENGTH) {\n // Out of bounds\n List<ValueAndSMGState> visitedValuesAndStates = arrayPointerExpr.accept(visitor);\n assertThat(visitedValuesAndStates).hasSize(1);\n ValueAndSMGState visitedValueAndState = visitedValuesAndStates.get(0);\n // Error state + unknown value\n assertThat(visitedValueAndState.getValue())\n .isEqualTo(Value.UnknownValue.getInstance());\n // There are 2 errors. 1 read and 1 write error. The read error is first however and\n // its the one we are interested in.\n assertThat(visitedValueAndState.getState().getErrorInfo()).hasSize(1);\n SMGErrorInfo error = visitedValueAndState.getState().getErrorInfo().get(0);\n\n assertThat(error.isInvalidRead()).isTrue();\n } else {\n List<ValueAndSMGState> resultList = arrayPointerExpr.accept(visitor);\n\n // Assert the correct return values depending on type\n assertThat(resultList).hasSize(1);\n Value resultValue = resultList.get(0).getValue();\n checkValue(currentValueArrayType, realIndex, resultValue);\n }\n }\n }\n }\n // Reset memory model\n resetSMGStateAndVisitor();\n }\n }", "title": "" }, { "docid": "e735de18903af91f10f779626d5f719c", "score": "0.51816416", "text": "private void initArr() {\n\t\tfor (int i = 0; i < graphSize; i++) {\n\t\t\tfor (int j = 0; j < graphSize; j++) {\n\t\t\t\tarray[i][j] = 0;\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "fb4eb988a2e12f91831dd6bf937b08f4", "score": "0.5172892", "text": "public Array2D(int[][] a){\n\t\t\n\t}", "title": "" }, { "docid": "07a58cab91eb901df29d56e46396241d", "score": "0.5172724", "text": "@Test\n\tpublic void PartitionEmpty() {\n\t\t// DataUtilities.createNumberArray2D(double[][] data)\n\t\tNumber[][] result1 = DataUtilities.createNumberArray2D(dataArray1);\n\t\tAssert.assertArrayEquals(new Number[][] { {} }, result1);\n\t}", "title": "" }, { "docid": "c06ae2d3aada3aa4f5a41c45a7870d22", "score": "0.51697266", "text": "@SuppressWarnings(\"unchecked\")\n private void expandArray() {\n long headLockStamp = headLock.writeLock();\n\n try {\n int size = this.size.get();\n int newCapacity = data.length * 2;\n T[] newData = (T[]) new Object[newCapacity];\n\n\n int oldHeadIndex = headIndex.value;\n int lenHeadToEnd = Math.min(size, data.length - oldHeadIndex);\n\n System.arraycopy(data, oldHeadIndex, newData, 0, lenHeadToEnd);\n System.arraycopy(data, 0, newData, lenHeadToEnd, size - lenHeadToEnd);\n\n data = newData;\n headIndex.value = 0;\n tailIndex.value = size;\n } finally {\n headLock.unlockWrite(headLockStamp);\n }\n }", "title": "" }, { "docid": "e5d06af5c8d59a66acc04cee87ed7e42", "score": "0.51537013", "text": "public Array(int capacity){\n data =(Element[]) new Object[capacity];\n size = 0;\n }", "title": "" } ]
25197b4cf814864ecd440f23b9149cb3
TODO Autogenerated method stub
[ { "docid": "4f21333ce1c6fac029c8e35f140fce56", "score": "0.0", "text": "@Override\r\n\tpublic <S extends Event> List<S> findAll(Example<S> example, Sort sort) {\n\t\treturn null;\r\n\t}", "title": "" } ]
[ { "docid": "1acc57d42c31dee937ac33ea6f2a5b0b", "score": "0.68410474", "text": "@Override\r\n\tpublic void comer() {\n\t\t\r\n\t}", "title": "" }, { "docid": "0c69424878be03e50f19e2ca61ef640b", "score": "0.6801052", "text": "@Override\r\n\tpublic void leggi() {\n\t\t\r\n\t}", "title": "" }, { "docid": "8b6c961814c14fa02879570fd7e65ac5", "score": "0.67713475", "text": "@Override\r\n\tpublic void scarica() {\n\t\t\r\n\t}", "title": "" }, { "docid": "80d20df1cc75d8fa96c12c49a757fc43", "score": "0.6529823", "text": "@Override\n\tprotected void getExras() {\n\t\t\n\t}", "title": "" }, { "docid": "1e34493fdecb11f6bbc24ef12eea2281", "score": "0.6387532", "text": "public void mo27791d() {\n }", "title": "" }, { "docid": "051f88f1f94e36fab8ec66de1946f037", "score": "0.6288346", "text": "public void mo27794g() {\n }", "title": "" }, { "docid": "db4b95a4460fb609bcd3716b1a4b3e23", "score": "0.6284542", "text": "@Override\r\n\tpublic void compra() {\n\t\t\r\n\t}", "title": "" }, { "docid": "5eb303064635f4909e997c3effe2511d", "score": "0.62661296", "text": "public void mo27792e() {\n }", "title": "" }, { "docid": "fdf6bcd763ea5f5b221fd5a7669d1afb", "score": "0.62636364", "text": "public void mo28805a() {\n }", "title": "" }, { "docid": "381ca210fc42b87f9b8af474719578a0", "score": "0.6254719", "text": "public void mo41489c() {\n }", "title": "" }, { "docid": "203e120e0c17c7a390717d0ca9ff147a", "score": "0.62537456", "text": "public void mo11316JX() {\n }", "title": "" }, { "docid": "1f7c82e188acf30d59f88faf08cf24ac", "score": "0.6238919", "text": "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "title": "" }, { "docid": "0b319072f0ae7225e83791b70ea23079", "score": "0.620179", "text": "@Override\r\n\tpublic void ghhvhg() {\n\t\t\r\n\t}", "title": "" }, { "docid": "10ead2e988bf977cb8edb2bacf974891", "score": "0.6159608", "text": "@Override\n\tprotected void init() {\n\t\t\n\t}", "title": "" }, { "docid": "9cfdb7a953eedd93829d98c1649d8fa2", "score": "0.61492485", "text": "@Override\r\n\tprotected void rodape() {\n\t\t\r\n\t}", "title": "" }, { "docid": "a1d358ef8dde60480477b5c8b2359c6d", "score": "0.61126155", "text": "@Override\n\tpublic void compra() {\n\t\t\n\t}", "title": "" }, { "docid": "81e2e665536902ef3310e7a034f112ea", "score": "0.6106179", "text": "@Override\r\n\tpublic void apagar()\r\n\t{\n\r\n\t}", "title": "" }, { "docid": "e6068b0200c883e42ca4379e8b4390f4", "score": "0.6102853", "text": "@Override\n\tpublic void ihtiyacGidermek() {\n\t\t\n\t}", "title": "" }, { "docid": "222e7b9d44422cda9de5df0085949df1", "score": "0.60784143", "text": "public void mo27793f() {\n }", "title": "" }, { "docid": "7de2b9a1638739d8a552ea81162374f7", "score": "0.6026576", "text": "@Override\r\n\tpublic void trasation() {\n\t\t \r\n\t}", "title": "" }, { "docid": "6fc1bc8405449cd5caa1d0d4cc253eff", "score": "0.602517", "text": "public void mo27783b() {\n }", "title": "" }, { "docid": "770d423e40bf5782a700bc181e8b8a1e", "score": "0.6021083", "text": "@Override\n\tvoid init() {\n\t\t\n\t}", "title": "" }, { "docid": "b1cf16017c8057c0255a9ad368ecaee5", "score": "0.6018246", "text": "@Override\r\n\tprotected void init() {\n\r\n\t}", "title": "" }, { "docid": "39970aed3dc3a7bed24f03fb23731e78", "score": "0.6011754", "text": "@Override\r\n\tpublic void laufen() {\n\t\t\r\n\t}", "title": "" }, { "docid": "a46f6ccc5a2230632919d59213754a52", "score": "0.59986293", "text": "@Override\n\tpublic void grafikCizme() {\n\t\t\n\t}", "title": "" }, { "docid": "5a91ef0aa6990fc22e6e46d34355029e", "score": "0.59886986", "text": "@Override public void accionar() {\n\n }", "title": "" }, { "docid": "d673691f42a5a36d5d7e5d4f81aec55e", "score": "0.59581256", "text": "@Override\n\tpublic void reveiller() {\n\t\t\n\t}", "title": "" }, { "docid": "b048ca4f20a40ca0411a5330c06ce3d5", "score": "0.59525853", "text": "@Override\n\tpublic void infinteBatery() {\n\t\t\n\t}", "title": "" }, { "docid": "2bd910d11f3b18a5106b970f6e7e4c64", "score": "0.5943676", "text": "@Override\n\tpublic void Consulter() {\n\t\t\n\t}", "title": "" }, { "docid": "fa5eb14703b2a28ee4847f692d01e39d", "score": "0.5941638", "text": "@Override\r\n\tpublic void init() {\r\n\t\t\r\n\t\t\r\n\t}", "title": "" }, { "docid": "a94b5981fe7c5ead7e5156e8e7cb9cb5", "score": "0.59324914", "text": "@Override\r\n\tpublic void attribute() {\n\t\t\r\n\t}", "title": "" }, { "docid": "9fe10a8f8c056afc50123cc1485a6fdc", "score": "0.5927843", "text": "@Override\n\tvoid comision() {\n\t\t\n\t}", "title": "" }, { "docid": "dd66e8668788d27519d44caeb83b0c44", "score": "0.59275347", "text": "@Override\r\n\tpublic void operation() {\n\t\t\r\n\t}", "title": "" }, { "docid": "8b18fd12dbb5303a665e92c25393fb78", "score": "0.59218657", "text": "@Override\n\tprotected void initData() {\n\t\t\n\t}", "title": "" }, { "docid": "ddafdd56d6d4b904d170e3608181850c", "score": "0.5917271", "text": "private void getArtefactId() {\n\t\t\n\t}", "title": "" }, { "docid": "c9b74342d0ae0e22bc7119b60588c66a", "score": "0.59019154", "text": "@Override\n\t\t\tpublic int getType() {\n\t\t\t\treturn 0;\n\t\t\t}", "title": "" }, { "docid": "77f859c241fd5e1d997f67c3b890833e", "score": "0.5889384", "text": "@Override\n\tpublic void dormir() {\n\t\t\n\t}", "title": "" }, { "docid": "7f91c82c66ced12c5b193d3c89d68e4c", "score": "0.5887092", "text": "@Override\n\tprotected void init() {\n\t}", "title": "" }, { "docid": "53a77fe02ff8601b7f3a53009ccfd05c", "score": "0.5885864", "text": "public void designBasement() {\n\t\t\r\n\t}", "title": "" }, { "docid": "0449d2500abd0eb1624d7773d0cf88dd", "score": "0.5883079", "text": "@Override\n\tpublic void ponisti() {\n\n\t}", "title": "" }, { "docid": "a21e7f5bc4a152c3cd6818af1be8ca7f", "score": "0.58790004", "text": "@Override\n\tpublic void accionar() {\n\t\t\n\t}", "title": "" }, { "docid": "b623306824ebd023ab9bf4fc0a66aaf3", "score": "0.58778125", "text": "public void mo5928c() {\n }", "title": "" }, { "docid": "8dbedd9965a878a9a7db1c5deb6a28cd", "score": "0.58730364", "text": "@Override\n public String toString() {\n return null;\n }", "title": "" }, { "docid": "5aa237d31e744d1e0729621e464fcfb2", "score": "0.5854042", "text": "@Override\r\n\tprotected void DataInit() {\n\r\n\t}", "title": "" }, { "docid": "5f122c528716d4e28cd3a6695d27b80f", "score": "0.5840706", "text": "@Override\n\tpublic void morir() {\n\n\t}", "title": "" }, { "docid": "4cc23ec21a978357a8a06db5bbae181c", "score": "0.5835838", "text": "@Override\n\t\tpublic void beSporty() {\n\t\t\t\n\t\t}", "title": "" }, { "docid": "f02c338eb46eb5cdf9d19504df309595", "score": "0.582726", "text": "public void mo28814l() {\n }", "title": "" }, { "docid": "2be71c02c2e214eecbe2c8bd5dfe8cb0", "score": "0.58248127", "text": "@Override\n\tpublic void fortify() {\n\t\t\n\t}", "title": "" }, { "docid": "b7e98de900f4657495e91d5ff4bd6bd6", "score": "0.581473", "text": "@Override\r\n\tpublic void init(){\r\n\t}", "title": "" }, { "docid": "ecd084bf055d602fdedf08fab1e19a33", "score": "0.58061814", "text": "@Override\n\tvoid emi() {\n\t\t\n\t}", "title": "" }, { "docid": "e8b6a10ed01f50fbe15d66c44e6b001f", "score": "0.58049566", "text": "public void mo28809c() {\n }", "title": "" }, { "docid": "1a69d70e6e0ab03826da865edbaa2710", "score": "0.5803385", "text": "@Override\r\n public void init() {\n \r\n }", "title": "" }, { "docid": "89685a97be106c5e65406e42741d0ec3", "score": "0.57971346", "text": "public void mo1383a() {\n }", "title": "" }, { "docid": "de5480604ae54822ca3e3427911bb2b8", "score": "0.5794416", "text": "@Override\r\n public void muestra() {\r\n \r\n }", "title": "" }, { "docid": "5783648f118108797828ca2085091ef9", "score": "0.5793457", "text": "@Override\n protected void initialize() {\n \n }", "title": "" }, { "docid": "812af2363c26b56566247f6bee5688a9", "score": "0.57930875", "text": "@Override\r\n\tprotected void cabecalho() {\n\t\t\r\n\t}", "title": "" }, { "docid": "630b43215e2b87f8b2bd389cae71f8a6", "score": "0.57894593", "text": "@Override\n\tprotected void dataAcquisition() {\n\t}", "title": "" }, { "docid": "54b1134554bc066c34ed30a72adb660c", "score": "0.578839", "text": "@Override\n\tprotected void initData() {\n\n\t}", "title": "" }, { "docid": "849edaa5bbcc7511e16697ad05c01712", "score": "0.5774678", "text": "@Override\n\tpublic void avanzar() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.57739174", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.57739174", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.57739174", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.57739174", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.57739174", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "68ced9354b4e22b6351af0853a611a6c", "score": "0.5769584", "text": "@Override\n\tprotected void initDataReturn() {\n\n\t}", "title": "" }, { "docid": "5e6804b1ba880a8cc8a98006ca4ba35b", "score": "0.5764658", "text": "@Override\n public void init() {\n\n }", "title": "" }, { "docid": "5e6804b1ba880a8cc8a98006ca4ba35b", "score": "0.5764658", "text": "@Override\n public void init() {\n\n }", "title": "" }, { "docid": "4dad4a53c5b94a389679f4aa74f10e8b", "score": "0.5762417", "text": "@Override\r\n\tprotected void update() {\n\t\t\r\n\t}", "title": "" }, { "docid": "518a761521ca9f5cb8a8055b32b72cda", "score": "0.57589364", "text": "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "title": "" }, { "docid": "518a761521ca9f5cb8a8055b32b72cda", "score": "0.57589364", "text": "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "title": "" }, { "docid": "627bf6ef88b45b88b902a23fc9a6eb2b", "score": "0.5754165", "text": "@Override\r\n\tpublic void init()\r\n\t{\n\t\t\r\n\t}", "title": "" }, { "docid": "393237de9c40b0b47e9d2c845ed92ee5", "score": "0.5751856", "text": "public void mo45857a() {\n }", "title": "" }, { "docid": "ebfe1bb4dd1c0618c0fad36d9f7674b4", "score": "0.5751704", "text": "@Override\n protected void initialize() {\n\n }", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.57499367", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.57499367", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.57499367", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.57499367", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "791f5ad29d019a14317f5d7e2a069c65", "score": "0.5747206", "text": "@Override\n\tpublic void aprovar() {\n\n\t}", "title": "" }, { "docid": "60492bcc1b7f57299660c3da0f16ab25", "score": "0.57431567", "text": "@Override\n\tpublic void icmek() {\n\t\t\n\t}", "title": "" }, { "docid": "a2125c0cb9324db88e7561e4a64c5e39", "score": "0.5736852", "text": "@Override\n\tpublic void etiquetas() {\n\t\t\n\t}", "title": "" }, { "docid": "da5e9df869731b2ae1dfbbfdf12b8cd8", "score": "0.57354987", "text": "public void mo3351d() {\n }", "title": "" }, { "docid": "b143ffd983be4c8f41702b8f934b6f32", "score": "0.57349783", "text": "@Override\r\n\tpublic void init() {\n\r\n\t}", "title": "" }, { "docid": "24127c1aaba5ab942240f052757a1aae", "score": "0.572226", "text": "@Override\n \tpublic void getStatus() {\n \t}", "title": "" }, { "docid": "a937c607590931387a357d03c3b0eef4", "score": "0.5718698", "text": "@Override\n\tprotected void initialize() {\n\n\t}", "title": "" }, { "docid": "2097402406ed48de16ed7ccfe28a85b4", "score": "0.5714529", "text": "public void mo5927b() {\n }", "title": "" }, { "docid": "03143ee9b26aa8a7d43576d479e4400a", "score": "0.57105327", "text": "public final void mo55685Zy() {\n }", "title": "" }, { "docid": "2fbf66fc78447a45c3f7ecb3924ab4b4", "score": "0.57057965", "text": "@Override\n public void initValue() {\n \n }", "title": "" }, { "docid": "7aadbda143e84de0144f7a8dadde423d", "score": "0.5702263", "text": "@Override\n protected void initData() {\n\n }", "title": "" }, { "docid": "e1834e089677c260b4af3324391b3b67", "score": "0.5699933", "text": "public final void mo62463l() {\n }", "title": "" }, { "docid": "b42b054dfaac7d94036bce6ecf272a0e", "score": "0.5699834", "text": "private void pepe() {\n\t\t\n\t}", "title": "" }, { "docid": "09b27558b293ecd91a8d2d3a705d8a37", "score": "0.56775796", "text": "@Override\n\t\t\tpublic void c() {\n\t\t\t\t\n\t\t\t}", "title": "" }, { "docid": "86084419dce04a98c3acda092fe2ae36", "score": "0.5675834", "text": "@Override\r\n\t\t\tpublic void refresh() {\n\t\t\t\t\r\n\t\t\t}", "title": "" }, { "docid": "a0b89d2fbd83aefeb636ae04ad1fcd91", "score": "0.56656086", "text": "public void init(){\n\t //TODO Auto-generated method stub\n\t}", "title": "" }, { "docid": "aabd8322198752312581d89a3059f204", "score": "0.5663168", "text": "@Override\n \tpublic void create() {\n\n \t}", "title": "" }, { "docid": "9d94df716ebd35f7ec07df01763ae94c", "score": "0.56569463", "text": "@Override\n\tpublic void init() {\n\n\t}", "title": "" }, { "docid": "ce71f38a65a1456052420d8bdcb81b78", "score": "0.564934", "text": "@Override\r\n\tprotected void reset()\r\n\t{\r\n\t\t// TODO Auto-generated method stub\r\n\r\n\t}", "title": "" }, { "docid": "29f3cdbb287e40f98a8d2f36bba2f27b", "score": "0.56490993", "text": "@Override\n\tpublic int eixos() {\n\t\treturn 1;\n\t}", "title": "" }, { "docid": "70d974abd496677a87c8807bf56e0a5b", "score": "0.56439584", "text": "@Override\n public void desenhar() {\n \n }", "title": "" }, { "docid": "acbb02f47467f45f5ab2c3b2e5f7545d", "score": "0.5641649", "text": "public final void mo62452a() {\n }", "title": "" }, { "docid": "1f81bdf0bcfef346d61145fbc2986fa6", "score": "0.56414884", "text": "@Override\r\n public String getName() {\n return null;\r\n }", "title": "" }, { "docid": "dbdc1deb5da4aee65d17f30f15f26778", "score": "0.56398916", "text": "private void getParentArtefactId() {\n\t\t\n\t}", "title": "" } ]
8211b2ac8391ce7b0607985725eb5899
Returns a Set of Clients sorted by name
[ { "docid": "0dbece125508e8b8b366be444b18706a", "score": "0.8152585", "text": "public Set<Client> sortByName () throws ValidatorException {\n\n Iterable<Client> clients = repo.findAll();\n return StreamSupport.stream(clients.spliterator(), false).sorted().collect(Collectors.toSet());\n }", "title": "" } ]
[ { "docid": "58234e56103309d58bf10caeb54a16ba", "score": "0.7160946", "text": "public Set<String> getRegisteredClients() {\n return new LinkedHashSet<>(registeredClients);\n }", "title": "" }, { "docid": "ec4e78a117e5816d3e7aa209081a89a2", "score": "0.7050529", "text": "String[] GetClientsList();", "title": "" }, { "docid": "27b1492ea3612cc87adba62fe25f9c5e", "score": "0.69751596", "text": "public Set<Client> getAllClients () throws ValidatorException {\n Iterable<Client> clients = repo.findAll();\n return StreamSupport.stream(clients.spliterator(), false).collect(Collectors.toSet());\n\n }", "title": "" }, { "docid": "a0f752b0b40c07eacd09cac831d15df9", "score": "0.6928002", "text": "@Override\n\tpublic List<Client> getClients() {\n\t\tSession session = entityManager.unwrap(Session.class);\n\n\t\treturn session.createQuery(\"from Client order by id\", Client.class).getResultList();\n\n\t}", "title": "" }, { "docid": "f09c5b10943d7698effe2b4e9feb6693", "score": "0.6870505", "text": "private synchronized TreeSet<ClientHandle> allClients(){\n\t\tTreeSet<ClientHandle> result=new TreeSet<ClientHandle>(ObjectComparator.get());\n\t\tresult.addAll(idleHandles);\n\t\tresult.addAll(workingClients);\n\t\treturn result;\n\t}", "title": "" }, { "docid": "49390c39ab49a06c3c5f87347d235bfd", "score": "0.6847831", "text": "public static ArrayList<Client> getClients() {\r\n\t\treturn new ArrayList<Client>(clients.values());\r\n\t}", "title": "" }, { "docid": "fec70a5d4d8b040930a3b7b94d71ac83", "score": "0.68446916", "text": "public TreeSet<Cliente> getClientes() {\n return clientes;\n }", "title": "" }, { "docid": "13fe322339192f2e89ad5297ffa32d2b", "score": "0.6755366", "text": "@Override\n\tpublic List<String> getDistinctClient() {\n\t\treturn documentRepository.getDistinctClient();\n\t}", "title": "" }, { "docid": "bb401bfdd4fbf0a1e15adc7468439bf5", "score": "0.6720498", "text": "public List<Client> getAllClient();", "title": "" }, { "docid": "d4a578c59d4c51ccc0018a6f3d2b605e", "score": "0.67175895", "text": "public ArrayList<Client> allClients(){\n ArrayList<Client> clients = new ArrayList<>();\n clients = newClient.getClientsList();\n if (clients == null)\n System.out.println(\"ERROR - making the clients list\");\n return clients;\n }", "title": "" }, { "docid": "4fc9ac55a55e90c2ce582c87644db543", "score": "0.6643339", "text": "public List<Client> getClients() {\n List<Client> clients = new ArrayList<>();\n try {\n Statement stmt = getConnection().createStatement();\n ResultSet rs = stmt.executeQuery(\"SELECT * FROM client;\");\n\n while (rs.next()) {\n int id = rs.getInt(\"client_id\");\n String name = rs.getString(\"name\");\n Client client = new Client(id, name);\n clients.add(client);\n }\n rs.close();\n return clients;\n } catch (Exception e) {\n System.err.println(\"getClients ERROR: \" + e.getClass().getName() + \": \" + e.getMessage());\n }\n return null;\n }", "title": "" }, { "docid": "3560a87705c6c491c9cb5facda062791", "score": "0.66384465", "text": "public List<Client> getClientList() {\n\t\treturn clientJpaRepository.getClients();\n\t}", "title": "" }, { "docid": "9b723fc4db27665c16dbbcc9ae34804c", "score": "0.66334", "text": "@Test\r\n\tpublic void clientsStartingBy () {\n\t\tClients clients = new Clients();\r\n\t\tTreeSet<String> names = clients.getClients();\r\n\t\tnames.add(\"Tim\");\r\n\t\tnames.add(\"Tom\");\r\n\t\tnames.add(\"Bill\");\r\n\t\tnames.add(\"Wim\"); //potevamo anche scrivere -> names.addAll(Arrays.asList(\"Tom\",\"Tim\",\"Bill\",\"Wim\")\r\n\t\r\n\t\tArrayList<String> tClients = clients.clientsStartingBy('T');\r\n\t\tassertThat(tClients.size(), is(2));\r\n\t\tassertTrue(tClients.contains(\"Tim\"));\r\n\t\tassertTrue(tClients.contains(\"Tom\"));\r\n\t\r\n\t\r\n\t\r\n\t}", "title": "" }, { "docid": "ef52f3a5634faab12461000e00018517", "score": "0.66074115", "text": "public List<Client> getClients() {\n try(Connection con = DB.sql2o.open()) {\n String sql = \"SELECT * FROM clients where stylistId=:id\";\n return con.createQuery(sql)\n .addParameter(\"id\", this.id)\n .executeAndFetch(Client.class);\n }\n }", "title": "" }, { "docid": "ba4299d97b1cd85481be5f636e307120", "score": "0.6580488", "text": "public static ObservableList<Client> getClients() throws SQLException, ClassNotFoundException {\n String sqlQuery = \"SELECT * FROM \" + ClientContract.TABLE_NAME + \" ORDER BY \" + ClientContract.COLUMN_NAME_ID + \" DESC\";\n return getClientList(DbHelper.executeQuery(sqlQuery));\n }", "title": "" }, { "docid": "a5cdc0b2083e8586ec6d1c9946bdedc4", "score": "0.65060854", "text": "ObservableList<Client> getFilteredClientList();", "title": "" }, { "docid": "fff8b2687bdd026f85915126cdd3f500", "score": "0.65045726", "text": "public List<ClientEntity> getClients() {\n if (this.allClientsList == null) {\n this.allClientsList = clientService.findAllClientEntities();\n }\n return this.allClientsList;\n }", "title": "" }, { "docid": "1fc8b31f936c29ab817cc45131438f85", "score": "0.64422375", "text": "SortedSet<Customer> getCustomers();", "title": "" }, { "docid": "7046e3a0b71944bde84fa1bee8dcd241", "score": "0.64288235", "text": "public Client[] getClients() {\r\n\r\n return clients.toArray(new Client[clients.size()]);\r\n\r\n }", "title": "" }, { "docid": "0021500518aabf3fb22f6ccecee556ba", "score": "0.6369112", "text": "@GET\n\t@Produces(MediaType.APPLICATION_JSON)\n\tpublic List<Client> getClients(){\t\t\n\t\treturn cs.getAllClients();\n\t}", "title": "" }, { "docid": "9de9d655786d702b311c16dbdfd13645", "score": "0.6339373", "text": "public List<ClientDTO> findAllClients() {\n log.debug(\"Reading all clients\");\n List<Client> clients = clientDAO.getAll();\n List<ClientDTO> clientDTOs = new ArrayList<ClientDTO>(0);\n for (Client client : clients) {\n// clientDTOs.add(EntityToDTOConverter.clientToDTO(client));\n clientDTOs.add(client.toDTO());\n }\n return clientDTOs;\n }", "title": "" }, { "docid": "b694d4b0ac86ec4082a790b4dc9e13da", "score": "0.6241697", "text": "public List<Client> getALL(){\n return clientRepository.getALL();\n }", "title": "" }, { "docid": "716892293062c4268dc3b99b1b6f9316", "score": "0.61766315", "text": "public ListModelList getClientsList() {\n\t\tclientsList = null;\n\t\ttry {\n\t\t\tClientService clientService = ServiceLocator.getClientService();\n\t\t\tClient[] results = clientService.getClientsList();\n\t\t\tclientsList = new ListModelList(results);\n\t\t} catch (Exception e) {\n\t\t\tmessageLabel.setValue(\"Error al consultar los clientes\");\n\t\t}\n\t\treturn clientsList;\n\t}", "title": "" }, { "docid": "d3db1802f4d9d2107cb67c14c614d5d3", "score": "0.6174209", "text": "@Override\n\tpublic List<Client> listClients() throws SQLException {\n\t\tList<Client> list = new ArrayList() ;\n\t\tthis.statement = this.connection.createStatement();\n\t\t\n\t\tString sql = \"Select * from client\";\n\t\t\n\t\tthis.resultSet = this.statement.executeQuery(sql);\n\t\t\n\t\twhile(this.resultSet.next()) {\n\t\t\t\n\t\t\tlist.add(new Client(this.resultSet.getInt(1), this.resultSet.getString(2)));\n\t\t\t\n\t\t}\n\t\t\n\t\treturn list;\n\t}", "title": "" }, { "docid": "96138819263df7180932c192efe9964c", "score": "0.61432546", "text": "@Override\r\n\t@Transactional\r\n\tpublic List<Client> consulterClients() {\n\t\treturn clientdao.findAll();\r\n\t}", "title": "" }, { "docid": "207a7c84b7e5b8ec05a62aa9ee58f4f7", "score": "0.61175954", "text": "public ArrayList<Client> clients() {\n\t\treturn clients;\n\t}", "title": "" }, { "docid": "0a836e1cdf4fb917c8b9eed1b608f396", "score": "0.6097204", "text": "@Override\r\n\tpublic Collection<Client> listerClient() {\n\r\n\t\tCollection<Client> cl = new ArrayList<>();\r\n\t\ttry {\r\n\t\t\t// 1 - charger pilote\r\n\t\t\tClass.forName(\"com.mysql.jdbc.Driver\");\r\n\t\t\t// 2 - créer connexion\r\n\t\t\tConnection con = DriverManager.getConnection(\"jdbc:mysql://localhost:3306/bddclients\", \"root\", \"\");\r\n\t\t\t// 3 - créer requête\r\n\t\t\tPreparedStatement ps = con.prepareStatement(\"SELECT * FROM Client ORDER BY id\");\r\n\t\t\t// 4 - executer requête\r\n\t\t\tResultSet rs = ps.executeQuery();\r\n\t\t\t// 5 - présenter résultats\r\n\t\t\t// rs contient le tableau renvoyé par select (résultat de la requête)\r\n\t\t\twhile (rs.next()) {\r\n\t\t\t\tClient c = new Client();\r\n\t\t\t\tc.setId(rs.getInt(\"id\"));\r\n\t\t\t\tc.setNom(rs.getString(\"nom\"));\r\n\t\t\t\tc.setPrenom(rs.getString(\"prenom\"));\r\n\t\t\t\tc.setyeux(rs.getString(\"yeux\"));\r\n\t\t\t\tcl.add(c);\r\n\t\t\t}\r\n\t\t\t// 6 - fermer la connexion (peut se faire dans finally, optionnel\r\n\t\t\t// depuis dernière version de connection\r\n\t\t\tcon.close();\r\n\r\n\t\t} catch (ClassNotFoundException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t} catch (SQLException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t} finally {\r\n\t\t\t// fonction finally permet de faire ce qu'il y a entre ses accolades\r\n\t\t\t// quelque soit le résultat du try catch\r\n\t\t}\r\n\t\treturn cl;\r\n\t}", "title": "" }, { "docid": "4b84251f7e2cccb6e9f59209b3b72cae", "score": "0.60892963", "text": "public static SortedSet<Employee> getCustomersSorted(Bank bank) {\n\n return bank.getClients().stream().flatMap(client -> client.getEmployees().stream())\n .collect(Collectors.toCollection(() -> new TreeSet<>(Comparator.comparing(Employee::getName))));\n }", "title": "" }, { "docid": "9394ca6d3ea4bca2e279304a9339ae70", "score": "0.60749304", "text": "public List<CountClient> getTopClients(){\n List<CountClient> clientList = new ArrayList<>();\n List<Object[]> report = repositorioReservacion.countTotalReservationByClient();\n for(int i=0; i<report.size(); i++){\n clientList.add(new CountClient((Long)report.get(i)[1], (Client)report.get(i)[0]));\n }\n return clientList;\n }", "title": "" }, { "docid": "bef7247a6f4933d989a2076643912390", "score": "0.6010285", "text": "public List<Customer> getAllSellersSortedByName(){\r\n ArrayList<Customer> allSellers = new ArrayList<Customer>();\r\n for (Customer s : this.sellers.values()) {\r\n allSellers.add(s);\r\n }\r\n Collections.sort(allSellers);\r\n return allSellers;\r\n\r\n\t}", "title": "" }, { "docid": "a1e820d12a1a81ca8f16e9dec30ef53d", "score": "0.59912086", "text": "public List<Client> listAllClients() throws SQLException {\r\n List<Client> listClient = new ArrayList<>();\r\n\r\n //declare for later use\r\n int id;\r\n int agentId;\r\n String firstName, lastName, streetNumber, streetName, city, province, postalCode, telOffice, telCell, email, company, companyType;\r\n\r\n //our select query\r\n String sql = \"SELECT * from clients\";\r\n\r\n connect();\r\n Statement stmt = jdbcConnection.createStatement();\r\n ResultSet resultSet = stmt.executeQuery(sql);\r\n\r\n //this where the reading and setting part happens\r\n while (resultSet.next()) {\r\n id = resultSet.getInt(\"id\");\r\n agentId = resultSet.getInt(\"agentId\");\r\n firstName = resultSet.getString(\"firstName\");\r\n lastName = resultSet.getString(\"lastName\");\r\n streetNumber = resultSet.getString(\"streetNumber\");\r\n streetName = resultSet.getString(\"streetName\");\r\n city = resultSet.getString(\"city\");\r\n province = resultSet.getString(\"province\");\r\n postalCode = resultSet.getString(\"postalCode\");\r\n telOffice = resultSet.getString(\"telOffice\");\r\n telCell = resultSet.getString(\"telCell\");\r\n email = resultSet.getString(\"email\");\r\n company = resultSet.getString(\"company\");\r\n companyType = resultSet.getString(\"companyType\");\r\n Client clientObj = new Client(id, agentId, firstName, lastName, streetNumber, streetName, city, province, postalCode, telOffice, telCell, email, company, companyType);\r\n listClient.add(clientObj);\r\n }\r\n\r\n resultSet.close();\r\n stmt.close();\r\n disconnect();\r\n\r\n //return the list\r\n return listClient;\r\n }", "title": "" }, { "docid": "71705e65326073b396a8e234b9ac347b", "score": "0.5984905", "text": "public Cliente[] listClientes(){\n\t\tCliente[] ar = new Cliente[clientes.size()];\n\t\tint i = 0;\n\t\tfor(Cliente c: clientes){\n\t\t\tar[i] = c;\n\t\t\ti++;\n\t\t}\t\n\t\treturn ar;\n\t}", "title": "" }, { "docid": "9864e27b417678bc9e633cedfc4c946c", "score": "0.5981175", "text": "private String getConnectedClients() {\n StringBuilder sb = new StringBuilder(name);\n\n for (Client client : clients) {\n sb.append(LIMITER).append(client.getName());\n }\n return sb.toString();\n }", "title": "" }, { "docid": "61ba186cd9d5b8b2e868af22e942a3ba", "score": "0.5966177", "text": "@Override\n\tpublic List<ClientResponse> findAll() {\n\t\treturn clientRepository.findAll();\n\t}", "title": "" }, { "docid": "fd82e86e58431cc2140cf556683e6830", "score": "0.59544504", "text": "public static void Sort() {\r\n\r\n Client[] clientsToSort = clients.toArray(new Client[clients.size()]);\r\n\r\n DPQuickSort(clientsToSort, clientsToSort, 0, clientsToSort.length - 1);\r\n\r\n clients = new ArrayList<>(Arrays.asList(clientsToSort));\r\n\r\n }", "title": "" }, { "docid": "7fdab66f68277bf356beddc910c33313", "score": "0.59481674", "text": "public CatalogoClientes(){\n clientes= new TreeSet<Cliente>();\n }", "title": "" }, { "docid": "e6239946420d81c00edcaee510249469", "score": "0.5940311", "text": "@Override\n @Transactional\n public List<TXLClient> listClients() {\n return clientDao.listClients();\n }", "title": "" }, { "docid": "131c2a3e219d5ec75e3b38256fceb146", "score": "0.5849939", "text": "public List<String> getListOfClientsWhoMostBought() {\n TreeSet<ITuple<String, Double>> tmp = new TreeSet<>(((o1, o2) -> o2.getSecondElem().compareTo(o1.getSecondElem())));\n for (Map.Entry<String, List<List<ISale>>> lista : this.filialData.entrySet()) {\n double fact = 0.0;\n for (int i = 0; i < 12; i++) {\n for (ISale sale : lista.getValue().get(i)) {\n fact += sale.totalPrice();\n }\n }\n tmp.add(new Tuple<>(lista.getKey(), fact));\n }\n List<String> res = new ArrayList<>(3);\n for (int i = 0; i < 3; i++) {\n ITuple<String, Double> tuple = tmp.pollFirst();\n if (tuple != null) res.add(tuple.getFirstElem());\n }\n return res;\n }", "title": "" }, { "docid": "8290036a4652fee369767331db9fc233", "score": "0.5845693", "text": "String[] getRegisteredClients() throws SampException;", "title": "" }, { "docid": "0dae058da611b77c69317e941107aa4c", "score": "0.58456844", "text": "public List<Client> GetClients(SQLConnection conn)\n throws SQLException, ClassNotFoundException{\n try{\n List<Client> allClients = new ArrayList<Client>();\n Statement stmt = conn.getConn().createStatement();\n ResultSet rset = stmt.executeQuery(\"SELECT * FROM Client;\");\n if (rset.wasNull() == true) {\n System.out.print(\"Tabela encontra-se vazia\");\n }\n else{\n while (rset.next() == true) {\n Client cliente = new Client(rset.getString(\"name\"),\n rset.getString(\"address\"), \n rset.getString(\"postalCode\"),\n rset.getString(\"mail\"),\n rset.getString(\"contact\"),\n rset.getString(\"doctype\"),\n rset.getString(\"docNr\"),\n rset.getDate(\"birthDate\"),\n rset.getString(\"sex\"),\n rset.getString(\"NIF\"));\n allClients.add(cliente);\n }\n }\n rset.close();\n stmt.close();\n return allClients;\n }\n catch (SQLException e){\n System.out.print(\"Erro de transmissão da base de dados: \" + e);\n return null;\n }\n }", "title": "" }, { "docid": "ebbc177dcafb8b33866452a0ab793061", "score": "0.58316255", "text": "@Test // per aggiungere cliente\r\n\tpublic void addClients() {\r\n\r\n\t\tClients clients = new Clients(); // quello che fa un cliente qualsiasi\r\n\t\tclients.add(\"Tom\");\r\n\r\n\t\tTreeSet<String> names = clients.getClients(); // in questo modo verifico se effettivamente è stato messo il\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t// nuovo\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t// cliente\r\n\t\tassertThat(names.size(), is(1));\r\n\t\tassertTrue(names.contains(\"Tom\"));\r\n\r\n\t}", "title": "" }, { "docid": "29b96f30107681ab3115d109d60640a5", "score": "0.5822363", "text": "@Transactional(readOnly = true)\n\tpublic List<Client> findAll() {\n\t\tlogger.info(\"trying to find all clients...\");\n\t\treturn entityManager.createNamedQuery(\"findAllClients\").getResultList();\n\t}", "title": "" }, { "docid": "c0689ceed68e7eff5be8e3461cb5dc98", "score": "0.5805851", "text": "protected ArrayList<String> getClientUsernames() {\n return this.clientUsernames;\n }", "title": "" }, { "docid": "d610b13d709fb6ff163325a6a17af82d", "score": "0.57892996", "text": "java.util.List<sawtooth.sdk.protobuf.ClientSortControls> \n getSortingList();", "title": "" }, { "docid": "4a2e84bb396c19ee0f97e8ce84894701", "score": "0.5745229", "text": "private static ObservableList<Client> getClientList(ResultSet resultSet) throws SQLException {\n ObservableList<Client> clientList = FXCollections.observableArrayList();\n\n while (resultSet.next()) {\n Client client = new Client();\n client.setId(resultSet.getInt(ClientContract.COLUMN_NAME_ID));\n client.setName(resultSet.getString(ClientContract.COLUMN_NAME_NAME));\n client.setSurname(resultSet.getString(ClientContract.COLUMN_NAME_SURNAME));\n client.setEmail(resultSet.getString(ClientContract.COLUMN_NAME_EMAIL));\n client.setTelephoneNumber(resultSet.getString(ClientContract.COLUMN_NAME_TELEPHONE_NUMBER));\n\n clientList.add(client);\n }\n\n return clientList;\n }", "title": "" }, { "docid": "9e3050bd2edf85ba5eb762bb3bda1877", "score": "0.57387334", "text": "public ArrayList<String> GetOderByDate(String clientname) {\r\n\t\tArrayList<String> OrderList = new ArrayList<>();\r\n\t\tString SQL_SELECT = \"SELECT DISTINCT Date FROM orders WHERE ClientName=? AND status=1\";\r\n\r\n\t\ttry {\r\n\r\n\t\t\tPreparedStatement preparedStatement = this.connection.prepareStatement(SQL_SELECT);\r\n\t\t\tpreparedStatement.setString(1, clientname);\r\n\t\t\tResultSet rs = preparedStatement.executeQuery();\r\n\r\n\t\t\twhile (rs.next()) {\r\n\t\t\t\tOrderList.add(rs.getString(\"Date\"));\r\n\r\n\t\t\t}\r\n\r\n\t\t} catch (SQLException e) {\r\n\t\t\te.printStackTrace();\r\n\r\n\t\t}\r\n\r\n\t\treturn OrderList;\r\n\t}", "title": "" }, { "docid": "11cbeee6369f7acfbab9bda2148a23b4", "score": "0.57351685", "text": "@Override\n\tpublic Set<String> selectNames() {\n\t\t\n\t\tSet<String> communityNames = new HashSet<>();\n\t\t\n\t\topenConnection();\n\t\ttry {\n\t\t\tResultSet communityNameSet = statement.executeQuery(\"SELECT community_name_sn FROM community;\");\n\t\t\twhile(communityNameSet.next()) {\n\t\t\t\tcommunityNames.add(communityNameSet.getString(\"community_name_sn\"));\n\t\t\t}\n\t\t} catch (SQLException e) { e.printStackTrace(); }\n\t\tcloseConnection();\n\t\t\n\t\treturn communityNames;\n\t}", "title": "" }, { "docid": "c5667eb9f02fd880cbf45a204d99faab", "score": "0.57226974", "text": "@RequestMapping(path = \"/clientList\", method = RequestMethod.POST, produces = \"application/json\")\n public List<Client> findAll() {\n return this.clientService.findAll();\n }", "title": "" }, { "docid": "a7a1b3683594cc4be0b9935924d4d9b4", "score": "0.56918246", "text": "public HashMap<String,String> getAllUsers() { return allClients; }", "title": "" }, { "docid": "f224404780d944b33a1e3c79d2db4626", "score": "0.5682848", "text": "Collection<String> getAllNames();", "title": "" }, { "docid": "3cc03c6549e75723551ab5aa10b235b0", "score": "0.56761503", "text": "@Override\r\n\tpublic List<Client> retrieveAll() {\n\t\treturn null;\r\n\t}", "title": "" }, { "docid": "f1a30e10716b69120ff3f56e74d70f25", "score": "0.5670558", "text": "@GetMapping(value = \"/list\")\n\tpublic ClientList list() {\n\n\t\treturn new ClientList(clientService.findAll());\n\n\t}", "title": "" }, { "docid": "1e9a16344a1b4f10254aff3d0380ddab", "score": "0.5670263", "text": "public List<ClienteVO> getClientesVOs() {\r\n\t\treturn clientesVOs;\r\n\t}", "title": "" }, { "docid": "9b6048fb42a5c544047cb73818fbc5c7", "score": "0.56631124", "text": "public Set<String> getFacilityNames(){\n return new TreeSet<String>(facilityHashMap.keySet());\n }", "title": "" }, { "docid": "00e6ab766e37c43aebfda7d45dbd63a5", "score": "0.56590956", "text": "@Override\n\tpublic Set<RPubClientId> getShards() {\n\t\tSet<RPubClientId> shards = new HashSet<RPubClientId>();\n\t\tshards.addAll(subscriptions.keySet());\n\t\tshards.addAll(unsubscriptions.keySet());\n\t\treturn shards;\n\t}", "title": "" }, { "docid": "acfd8544ca12cec4088ecdf9223194a2", "score": "0.5632035", "text": "public Set<String> getAllVertices() {\n\t\t\n\t\tSet<String> nameSet = new HashSet<>(); //set of names of all \n\t\t \t\t\t\t\t\t\t\t\t\t//vertices in the graph\n\t\tfor(int i = 0; i < names.size(); i++) {\n\t\t\tnameSet.add(names.get(i));\n\t\t}\n\t\t\n\t\treturn nameSet;\n\t}", "title": "" }, { "docid": "2397f50544db9f35ea40e435944e59ea", "score": "0.562271", "text": "public List<DatabaseClient> getDatabaseClients() {\n\t\tCClientDBList countList = new CClientDBList(0, 1, true);\n\t\tif (query.doCommand(countList)) {\n\t\t\tint count = StringUtil.getInt(countList.getFirstResponse().get(\n\t\t\t\t\t\"count\"));\n\t\t\tint i = 0;\n\t\t\tList<DatabaseClient> clients = new ArrayList<>();\n\t\t\twhile (i < count) {\n\t\t\t\tCClientDBList list = new CClientDBList(i, 200, false);\n\t\t\t\tif (query.doCommand(list)) {\n\t\t\t\t\tfor (HashMap<String, String> map : list.getResponse()) {\n\t\t\t\t\t\tclients.add(new DatabaseClient(map));\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\ti += 200;\n\t\t\t}\n\t\t\treturn clients;\n\t\t}\n\t\treturn null;\n\t}", "title": "" }, { "docid": "d7851994f20500b6aa6c6cd9d73d93f8", "score": "0.562229", "text": "public Set<Container> filterClient(Client client) {\r\n\t\tSet<Container> filtered = this.stream()\r\n\t\t\t\t.filter(container -> container.getOwner().equals(client))\r\n\t\t\t\t.collect(Collectors.toSet());\r\n\t\treturn filtered;\t\r\n\t}", "title": "" }, { "docid": "b9e166c089b12394e591e2bb88eb4b97", "score": "0.56038606", "text": "public Set<T> vertices_list() {\n return vertices_list.stream().map(Vertex::getName).collect(Collectors.toSet());\n }", "title": "" }, { "docid": "f8cd42c9b34d5cea490bb8b2e02a8f4f", "score": "0.5599032", "text": "private ImmutableSet<String> findAllowedZooKeeperClients() {\n // Environment has precedence. Note that \n // - if this is set to \"\", client restriction is disabled\n // - this environment variable is a public API - do not change\n String environmentAllowedZooKeeperClients = System.getenv(\"vespa_zkfacade__restrict\");\n if (environmentAllowedZooKeeperClients != null) \n return ImmutableSet.copyOf(toHostnameSet(environmentAllowedZooKeeperClients));\n else\n return ImmutableSet.of();\n }", "title": "" }, { "docid": "3058895ebe6ff0226ac42e49c74c72c2", "score": "0.5586967", "text": "public Collection<String> getServicesNames();", "title": "" }, { "docid": "d18a350ccccd586376f9a7c174863595", "score": "0.55784214", "text": "public List<Client> getClientByNomOrId(Client cl);", "title": "" }, { "docid": "86fc4ccb39c8aa0dcdeb02506ec359d1", "score": "0.55735207", "text": "public List<Cliente> getListaClientes() {\r\n\t\treturn listaClientes;\r\n\t}", "title": "" }, { "docid": "14f1f68e0b15fca2eb616ce75e52c5aa", "score": "0.5567859", "text": "@Override\r\n\tpublic List<Client> findByname(String nom) {\n\t\treturn null;\r\n\t}", "title": "" }, { "docid": "d7c4e3a3a8200163df87ed7e8b1ec19c", "score": "0.554662", "text": "@Override\n\tpublic List<ClientIndividual> getList() {\n\t\treturn clientIndividualDao.getList();\n\t}", "title": "" }, { "docid": "561996b358bb367f2e24400c236070b1", "score": "0.55308735", "text": "public Set<Cliente> top10(){\n return listCli.values().stream()\n .sorted(new ComparatorKm())\n .limit(10)\n .collect(Collectors.toSet());\n }", "title": "" }, { "docid": "12c91577d8bc7ca63e0cc177235011a5", "score": "0.55258423", "text": "public List<Cliente> consultarClientes();", "title": "" }, { "docid": "71c33314683a0b1b9a1734111301d6fe", "score": "0.55126905", "text": "public ArrayList<Client> search() {\r\n ArrayList<Client> arrayList = new ArrayList<Client>();\r\n dbHelper.getConnection();\r\n String query = \"SELECT * FROM client\";\r\n ResultSet resultSet;\r\n try {\r\n resultSet = dbHelper.stmt.executeQuery(query);\r\n while (resultSet.next()) {\r\n Client cliente = new Client();\r\n cliente.setId(resultSet.getInt(1));\r\n cliente.setName(resultSet.getString(2));\r\n cliente.setAddress(resultSet.getString(3));\r\n cliente.setCpf(resultSet.getString(4));\r\n cliente.setRg(resultSet.getString(5));\r\n cliente.setPhone(resultSet.getString(6));\r\n cliente.setSex(resultSet.getString(7));\r\n arrayList.add(cliente);\r\n }\r\n resultSet.close();\r\n } catch (SQLException ex) {\r\n }\r\n dbHelper.desconnect();\r\n return arrayList;\r\n }", "title": "" }, { "docid": "1b1ced1686a423da9ee40326a29e689a", "score": "0.5509505", "text": "public Collection<ClientDescriptor> listConnectedClients() {\n if (!initialized) {\n LOG.error(\"Moquette is not started, MQTT clients listing unavailable\");\n throw new IllegalStateException(\"Can't get clients list from a Server that is not yet started\");\n }\n return sessions.listConnectedClients();\n }", "title": "" }, { "docid": "f704598893a626ecdd91367cb514ae72", "score": "0.55056554", "text": "public ArrayList<Cliente> findAll() {\n\t\tlog.info(\"Início da busca de todos os clientes no FireBase\");\n\t\t\n\t\tclientes = new ArrayList<>();\n\t\tfinal FirebaseDatabase database = FirebaseDatabase.getInstance();\n\t\tDatabaseReference ref = database.getReference(\"srm-asset/database\");\n\n\t\tref.addValueEventListener(new ValueEventListener() {\n\t\t\tpublic void onDataChange(DataSnapshot dataSnapshot) {\n\n\t\t\t\tGenericTypeIndicator<List<Cliente>> t = new GenericTypeIndicator<List<Cliente>>() {\n\t\t\t\t};\n\t\t\t\tList<Cliente> messages = dataSnapshot.getValue(t);\n\t\t\t\tif (messages != null) {\n\t\t\t\t\tclientes.addAll(messages);\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tpublic void onCancelled(DatabaseError databaseError) {\n\t\t\t\tlog.error(\"Falha na busca de todos os clientes no FireBase - error: {}\", databaseError.getCode());\n\t\t\t}\n\n\t\t});\n\n\t\t/*\n\t\t * Enfrentei problemas de performance no Firebase e adicionando um sleep ele\n\t\t * funcionou... Utilizando o wait ref.setValueAsync(this.clientes).wait(); -\n\t\t * Apresentou outros problemas... que ficou muito em cima pra acertar\n\t\t */\n\t\ttry {\n\t\t\tThread.sleep(4000);\n\t\t} catch (InterruptedException e) {\n\t\t\tlog.error(\"Falha ao atualizar cliente no FireBase - error: {}\", e);\n\t\t}\n\t\t\n\t\tlog.info(\"Fim da busca de todos os clientes no FireBase\");\n\t\t\n\t\treturn clientes;\n\t}", "title": "" }, { "docid": "6326b5c8b325d4839a90954e49e5f00f", "score": "0.55021936", "text": "@GetMapping(produces = MediaType.APPLICATION_JSON_VALUE)\r\n\t@Timed\r\n\t@ApiOperation(value = \"Retrieve the list of all clients of the insurance company.\", response = List.class)\r\n\t@ApiResponses(value = { @ApiResponse(code = 200, message = \"Clients list found succesfully\") })\r\n\tpublic ResponseEntity<List<ClientRSDTO>> getAllClients() {\r\n\r\n\t\treturn clientService.getAllClients();\r\n\r\n\t}", "title": "" }, { "docid": "69fe58daa7590f25106b068ce79ea57e", "score": "0.55004823", "text": "public List<Client> testAllClientsBankService() {\n return bankRepository.testAllClientsBankRepository();\n }", "title": "" }, { "docid": "27381ca02a03c16dfad6688b9d1a932c", "score": "0.5476864", "text": "public List<Flight> obtenerClientes() {\n List<Flight> listaClientes = new ArrayList<>();\n Query q = entity.createQuery(\"SELECT f FROM Flight f\");\n listaClientes = q.getResultList();\n// JPAUtil.shutdown();\n return listaClientes;\n }", "title": "" }, { "docid": "1528dd66cf2d3574320218e0bdf898e1", "score": "0.5473421", "text": "public List<Clients> selectAllClientsInVille(Villes v);", "title": "" }, { "docid": "617afd284e40930f45fe1cda9ca62eee", "score": "0.5453555", "text": "public Set<Cliente> top102(){\n return listCli.values().stream()\n .sorted(new ComparatorAluguer())\n .limit(10)\n .collect(Collectors.toSet());\n }", "title": "" }, { "docid": "e12b44007926ab4255decbacf76e33ea", "score": "0.54518944", "text": "List getNames();", "title": "" }, { "docid": "412e95d84bf85e6f2c49ca8b0c62f01b", "score": "0.5450362", "text": "private static Set<AttributeKey> buildClientView() {\n Set<AttributeKey> view = new HashSet<>(alwaysInclude);\n view.add(SemanticAttributes.NET_PEER_NAME);\n view.add(SemanticAttributes.NET_PEER_PORT);\n view.add(SemanticAttributes.NET_TRANSPORT);\n return view;\n }", "title": "" }, { "docid": "44d53c1047a769d69c98bcd0a81bb92e", "score": "0.54379153", "text": "@Override\n\tpublic List<Client> selectAll() {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "d10f78095e5ad7d87af5371ed17ccc07", "score": "0.54296136", "text": "@RequestMapping(method = RequestMethod.GET)\n public List<Client> findAll(){\n return clientService.findAll();\n }", "title": "" }, { "docid": "b3704f71033b699a723c8e19e32f3483", "score": "0.54270446", "text": "List<Searcher> findAllOrderByName();", "title": "" }, { "docid": "b29526336e7b7058f8018fbc33edc7cf", "score": "0.5426344", "text": "@RequestMapping(value = \"/vcContract/getVendorNamesFilter\", method = RequestMethod.GET)\n\t\tpublic @ResponseBody Set<?> getVendorNamesFilter()\n\t\t{ \n\t\t Set<String> result = new HashSet<String>();\n\t\t\tfor (VendorContracts vc : vendorContractsService.findAll())\n\t\t\t{\t\n\t\t\t result.add(vc.getVendors().getPerson().getFirstName()+\" \"+vc.getVendors().getPerson().getLastName());\t\t \t\n\t\t\t}\n\t\t return result;\n\t\t}", "title": "" }, { "docid": "0a5a0b509d609a2cac7477cd917b2007", "score": "0.54242367", "text": "@Override\n\tpublic List<Customer> getCustomers() {\n\n\t\tSession mySession = sessionFactory.getCurrentSession();\n\t\tQuery<Customer> myQuery = mySession.createQuery(\"FROM Customer ORDER BY lastName\", Customer.class);\n\t\tList<Customer> customers = myQuery.getResultList();\n\n\t\treturn customers;\n\t}", "title": "" }, { "docid": "cbf7b7d699482634e9dfbd42ef2ad3f3", "score": "0.5416992", "text": "@Override\n @Transactional\n public List<TXLClient> listClients(int start, int maxResult) {\n return clientDao.listClients(start,maxResult);\n }", "title": "" }, { "docid": "0f18cb41b2823082e1d90b6fcefe6d68", "score": "0.54052716", "text": "public void listarClientes() {\r\n\t\tlistaClientes.clear();\r\n\t\tlistaClientes = serCliente.listarPorRazaoSocialOuUnidade(razaoSocial, unidade);\r\n\t}", "title": "" }, { "docid": "d0dd8ee53b7356d582240cf683a2cfb0", "score": "0.5398838", "text": "public java.util.Set<String> getNames() {\n PlatformSet<String> set = new PlatformSet<String>();\n\n for (int i = 0; i < _entries.size(); i++)\n set.add(_entries.get(i).getKey());\n\n return set;\n }", "title": "" }, { "docid": "92dd72d6f0c957ad76417c0dbb683f7c", "score": "0.539603", "text": "@Override\n\tpublic List<Client> findList(Map<String, Object> params) {\n\t\treturn sysClientDao.findList(params);\n\t}", "title": "" }, { "docid": "cf4989c75624de0ba589be5d4668f116", "score": "0.53941935", "text": "List<Clientes> findAll() throws ClassNotFoundException, SQLException;", "title": "" }, { "docid": "bea4579d697693419bb39dc216e1e889", "score": "0.5391733", "text": "public Set<String> registryNames() {\n Set<String> set = new HashSet<>();\n set.addAll(registries.keySet());\n set.addAll(SharedMetricRegistries.names());\n return set;\n }", "title": "" }, { "docid": "dd8f88722b8a170ffd5fe451b0d6dd77", "score": "0.5379965", "text": "List<Cliente> listarClientes() throws FacadeException;", "title": "" }, { "docid": "75dbd85709b7a70f586ec28f32e1a77c", "score": "0.53765035", "text": "public List<Customer> getCustomers() {\r\n\t\t \r\n\t\t//get a Hibernate session\r\n\t\tSession session = sessionFactory.getCurrentSession();\r\n\t\t\r\n\t\t//create a query and order by Java property name\r\n\t\tQuery<Customer> theQuery = \r\n\t\t\tsession.createQuery(\"FROM Customer ORDER BY lastName\", Customer.class);\r\n\t\t\r\n\t\t//execute query and get result list\r\n\t\tList<Customer> customers = theQuery.getResultList();\r\n\t\t\r\n\t\t//return the customers that you retrieve\r\n\t\treturn customers;\r\n\t}", "title": "" }, { "docid": "02095003736c21e46a50f591787daab4", "score": "0.53701985", "text": "public ArrayList<Cliente> getClientes() {\n\t\tArrayList<Cliente> fnCliente = new ArrayList<Cliente>();\n\t\tCSVParser parser;\n\t\ttry {\n\t\t\tparser = CSVFormat.DEFAULT.withHeader().parse(new FileReader(\"clientes.csv\"));\n\t\t\tfor (CSVRecord row : parser) {\n\t\t\t\tString nombre = row.get(\"nombre\");\n\t\t\t\tString mail = row.get(\"email\");\n\t\t\t\tCliente temp = new Cliente(nombre, mail);\n\t\t\t\tfnCliente.add(temp);\n\t\t\t}\n\t\t\treturn fnCliente;\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t\treturn null;\n\t\t}\n\t}", "title": "" }, { "docid": "1feaa308e8574cea33f044eaf678bf5a", "score": "0.53686154", "text": "public List<Cliente> findAllClientes() throws Exception;", "title": "" }, { "docid": "df21e9c4e60b0329fa48ffa03b58f9ce", "score": "0.53593636", "text": "public List<Client> getClients(Nutritionist nutritionist) throws SQLException {\n\t\tList<Client> all_clients = new ArrayList<Client>();\r\n\t\tfinal String query = \"SELECT clt.* FROM tbl_client_nutritionist_association asso INNER JOIN tbl_client clt ON asso.client_id = clt.id WHERE asso.nutritionist_id = ?\";\r\n\t\tPreparedStatement stmt = conn.prepareStatement(query);\r\n\t\tstmt.setInt(1, Integer.parseInt(nutritionist.getId()));\r\n\t\tResultSet result = stmt.executeQuery();\r\n\t\t\r\n\t\twhile(result.next()) {\r\n\t\t\tClient client = new Client();\r\n\t\t\tclient.setId(String.valueOf(result.getInt(\"id\")));\r\n\t\t\tclient.setName(result.getString(\"name\"));\r\n\t\t\tclient.setAge(result.getString(\"age\"));\r\n\t\t\tclient.setBloodgroup(result.getString(\"bloodgroup\"));\r\n\t\t\tclient.setBmi(result.getString(\"bmi\"));\r\n\t\t\tclient.setEmail(result.getString(\"email\"));\r\n\t\t\tclient.setGender(result.getString(\"gender\"));\r\n\t\t\tclient.setHeight(result.getString(\"height\"));\r\n\t\t\tclient.setWeight(result.getString(\"weight\"));\r\n\t\t\tclient.setProfilepic(result.getString(\"profilepic\"));\r\n\t\t\tclient.setPassword(\"\");\r\n\t\t\tall_clients.add(client);\r\n\t\t}\r\n\t\tresult.close();\r\n\t\treturn all_clients;\r\n\t}", "title": "" }, { "docid": "f3e2ca53f3e508854afa64e8b1ae69c1", "score": "0.5356972", "text": "public ImmutableSortedSet<String> loadNameserverFullyQualifiedHostNames() {\n return ofy()\n .load()\n .keys(getNameservers())\n .values()\n .stream()\n .map(HostResource::getFullyQualifiedHostName)\n .collect(toImmutableSortedSet(Ordering.natural()));\n }", "title": "" }, { "docid": "24ee31bae0a1859037a3cfedbc86c71c", "score": "0.53504175", "text": "public Client getClientByNom(Client cl);", "title": "" }, { "docid": "640f9af019c220fd56c1107bd58621d5", "score": "0.5343415", "text": "@Override\n\tpublic Client searchClientByName(String name) throws RemoteException {\n\t\treturn dao.searchClientByName(name);\n\t}", "title": "" }, { "docid": "7cfab2125bae37691fb6346a0ec0375f", "score": "0.5335637", "text": "@Override\r\n\tpublic List<Client> findBylogin(String nom) {\n\t\treturn null;\r\n\t}", "title": "" }, { "docid": "bf8c0b9698badd4c18f6429a5f048d03", "score": "0.5317983", "text": "public Map<ClientInterface, ArrayList<Resource>> getClientsMap() throws RemoteException;", "title": "" }, { "docid": "f770e0eeb169ab00892f6b8ed13ca180", "score": "0.5317597", "text": "@Override\n\tpublic List<Customer> getCustomers() {\n\t\tSession session = sessionFactory.getCurrentSession();\n\t\t//create query\n\t\tQuery<Customer> query = session.createQuery(\"from Customer order by lastName\", Customer.class);\n\t\t//execute query and get result list\n\t\tList<Customer> customers = query.getResultList();\n\t\t// return result\n\t\treturn customers;\n\t}", "title": "" }, { "docid": "d371010949e07218b933bb9622077f6c", "score": "0.53146446", "text": "List<Catalog> getNameServers();", "title": "" } ]
e3cf6efa59e48b543164735b04f94e7b
metodo get de la instancia de la clase Producto
[ { "docid": "dbd72e7be42952230db745b3500c30e0", "score": "0.73098105", "text": "public Producto getProducto() {\n\t\treturn producto;\n\t}", "title": "" } ]
[ { "docid": "bed8b1fb0696cb40ff50c9df58141cbc", "score": "0.79142654", "text": "Object getProduct();", "title": "" }, { "docid": "81e0c5c5b6fcb3ec64c36f0ab49b3057", "score": "0.77923584", "text": "public Producto (){\n\n }", "title": "" }, { "docid": "a078a5c1d6b4be64562580cd17ea3e2d", "score": "0.76432544", "text": "public Producto() {\r\n }", "title": "" }, { "docid": "b7929ce9fbb5132b81e2675d15a39b01", "score": "0.7561011", "text": "public Productos() {\n super();\n // TODO Auto-generated constructor stub\n }", "title": "" }, { "docid": "231c09bba0b0f1e5c219016ad2bd71cf", "score": "0.74378854", "text": "@Override\n public Productor getProductor() {\n return new ProductorImp1();\n }", "title": "" }, { "docid": "fb437b04eb634d108c25d41fa01cd89f", "score": "0.74139386", "text": "public BaseDatosProductos iniciarProductos() {\n\t\tBaseDatosProductos baseDatosProductos = new BaseDatosProductos();\n\t\t// construcion datos iniciales \n\t\tProductos Manzanas = new Productos(1, \"Manzanas\", 8000.0, 65);\n\t\tProductos Limones = new Productos(2, \"Limones\", 2300.0, 15);\n\t\tProductos Granadilla = new Productos(3, \"Granadilla\", 2500.0, 38);\n\t\tProductos Arandanos = new Productos(4, \"Arandanos\", 9300.0, 55);\n\t\tProductos Tomates = new Productos(5, \"Tomates\", 2100.0, 42);\n\t\tProductos Fresas = new Productos(6, \"Fresas\", 4100.0, 3);\n\t\tProductos Helado = new Productos(7, \"Helado\", 4500.0, 41);\n\t\tProductos Galletas = new Productos(8, \"Galletas\", 500.0, 8);\n\t\tProductos Chocolates = new Productos(9, \"Chocolates\", 3500.0, 806);\n\t\tProductos Jamon = new Productos(10, \"Jamon\", 15000.0, 10);\n\n\t\t\n\n\t\tbaseDatosProductos.agregar(Manzanas);\n\t\tbaseDatosProductos.agregar(Limones);\n\t\tbaseDatosProductos.agregar(Granadilla);\n\t\tbaseDatosProductos.agregar(Arandanos);\n\t\tbaseDatosProductos.agregar(Tomates);\n\t\tbaseDatosProductos.agregar(Fresas);\n\t\tbaseDatosProductos.agregar(Helado);\n\t\tbaseDatosProductos.agregar(Galletas);\n\t\tbaseDatosProductos.agregar(Chocolates);\n\t\tbaseDatosProductos.agregar(Jamon);\n\t\treturn baseDatosProductos;\n\t\t\n\t}", "title": "" }, { "docid": "8cda1309f8561f104ee798f74cc1f8b3", "score": "0.7340151", "text": "public GetProductoSrv() {\n\t\tsuper();\n\t\tinitializer();\n\t}", "title": "" }, { "docid": "f250030ba29774facf2503fb5300a122", "score": "0.7240979", "text": "public Producto() {\r\n\t\tsuper();\r\n\t\tID = getIDnuevoProducto();\r\n\t\tnombre = \"\";\r\n\t\tvendedor = \"\";\r\n\t\tprecio = 0;\r\n\t\tcantidad = 0;\r\n\t\tenVenta = false;\r\n\t\tdescripcion = \"\";\r\n\t\tcategorias = new Categoria();\r\n\t\tcaracteristicas = null;//TODO CORREGIR\r\n\t}", "title": "" }, { "docid": "06faf1affb6b08f376da8c00ed95210d", "score": "0.72221684", "text": "public T getProduct() {\n return this.product;\n }", "title": "" }, { "docid": "83058abde75223f5aac526fd0bab37fa", "score": "0.71901226", "text": "Product getPProducts();", "title": "" }, { "docid": "f7ce314eb4c18b692caa5df4d1e919eb", "score": "0.7158714", "text": "public Product Product() {\n return null;\n }", "title": "" }, { "docid": "b5c01dfcee0df34ef2a430569f6ba612", "score": "0.7085779", "text": "public Product() {}", "title": "" }, { "docid": "38c534da0ba9bd5496a225b36f17b3a3", "score": "0.70832324", "text": "public IProduto getCodProd();", "title": "" }, { "docid": "e9a3f6bb286c1bf69c60f01e22d977e2", "score": "0.7030309", "text": "public com.monitor.webService.VoProducto getProducto() {\r\n return producto;\r\n }", "title": "" }, { "docid": "e2aeabbfd5bfcb0b838a8f0787cbba7f", "score": "0.6985456", "text": "Product getProductByID(Long id);", "title": "" }, { "docid": "58ddeaef1965ac9c61e8bf2cf053f910", "score": "0.69779253", "text": "@Bean(name = \"product\")\n\tpublic Product getProduct() {\n\t\treturn new Product(\"C0001\", \"테스트\", 1000); // Constructor Injection\n\t}", "title": "" }, { "docid": "54f574fd3a2fb18bde0c31b03dca0720", "score": "0.6948616", "text": "public Product() { }", "title": "" }, { "docid": "54f574fd3a2fb18bde0c31b03dca0720", "score": "0.6948616", "text": "public Product() { }", "title": "" }, { "docid": "21e5cc0aaed77ef6b320dcdc0bdbd075", "score": "0.6918352", "text": "public Product() {\n }", "title": "" }, { "docid": "21e5cc0aaed77ef6b320dcdc0bdbd075", "score": "0.6918352", "text": "public Product() {\n }", "title": "" }, { "docid": "03845956c7377bb6022a60734b69ea3f", "score": "0.69039464", "text": "@Override\n\tpublic DAOProducto crearDAOProductoAlmacen() {\n\t\treturn new DAOProducto();\n\t}", "title": "" }, { "docid": "45807d5905d81a253491c8d6d6cdf4ff", "score": "0.6899075", "text": "public Producto BuscarProducto(int id) {\n Producto nuevo = new Producto();\n try {\n conectar();\n ResultSet result = state.executeQuery(\"select * from producto where idproducto=\"+id+\";\");\n while(result.next()) {\n \n nuevo.setIdProducto((int)result.getObject(1));\n nuevo.setNombreProducto((String)result.getObject(2));\n nuevo.setFabricante((String)result.getObject(3));\n nuevo.setCantidad((int)result.getObject(4));\n nuevo.setPrecio((int)result.getObject(5));\n nuevo.setDescripcion((String)result.getObject(6));\n nuevo.setSucursal((int)result.getObject(7));\n }\n con.close();\n } catch (Exception ex) {\n ex.printStackTrace();\n }\n return nuevo;\n }", "title": "" }, { "docid": "b16e7df033464191875ec32d180cc906", "score": "0.6889448", "text": "public ProductType getProduct() {\n return product;\n }", "title": "" }, { "docid": "2b5d9c6c87c9a09a7a9c7c55cb77ccf8", "score": "0.68584776", "text": "@Override\n\tpublic DAOProducto_Lab crearDAOProducto() {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "b98d0d5c52222657102dfcd8711f1e56", "score": "0.6838228", "text": "private Product getProduct(ProductVO product) {\n return Product.builder()\n .id(product.getId())\n .description(product.getDescription())\n .name(product.getName())\n .price(product.getPrice())\n .stock(product.getStock())\n .build();\n }", "title": "" }, { "docid": "7949c68ba0ec8257d85d20ecc6b288bf", "score": "0.68175757", "text": "public Product() {\n\t}", "title": "" }, { "docid": "5d3835735b8cffec05c7d908f03254fc", "score": "0.6813839", "text": "Product getProductById(Integer productId);", "title": "" }, { "docid": "5d3835735b8cffec05c7d908f03254fc", "score": "0.6813839", "text": "Product getProductById(Integer productId);", "title": "" }, { "docid": "7fe3f9c574e7908acd0f3b2490a9b51f", "score": "0.6813796", "text": "Product getProductById(Integer productID);", "title": "" }, { "docid": "d32c40e7da175af3d752e8b74d0cc5c8", "score": "0.6809365", "text": "@Override\r\n\tpublic Optional<Producto> getOne(Producto entity) throws Exception {\n\t\treturn null;\r\n\t}", "title": "" }, { "docid": "3cb563c4f12386c3b6bad6f1b5ad239d", "score": "0.68006074", "text": "public ProductosBean() {\r\n }", "title": "" }, { "docid": "61e2acdb9783c12eeaca56a947037d41", "score": "0.6800322", "text": "Product getProductById(Serializable productId);", "title": "" }, { "docid": "0ecb01446240fc7fab64df97449a613c", "score": "0.676815", "text": "protected Product() {\n\t\t\n\t}", "title": "" }, { "docid": "4386b4439a48fdf080e6492a9aedc480", "score": "0.67664355", "text": "@Override\n\tpublic Product getProduct() {\n\t\treturn product;\n\t}", "title": "" }, { "docid": "ef707e73fe6e2195d0f750f72413592b", "score": "0.6731847", "text": "public ArrayList<Producto> getProductos() {\r\n return productos;\r\n }", "title": "" }, { "docid": "a2595a28734bb9316674460f81d28235", "score": "0.6719768", "text": "public ProductoRepository() {}", "title": "" }, { "docid": "052811cf86cf2b4ab1b3bf3bbbfe1422", "score": "0.67165315", "text": "@Override\n\tpublic Product getProduct() {\n\t\treturn productDao.getProduct();\n\t}", "title": "" }, { "docid": "e7192e0a78e44e73d29e94b0eb0b20c5", "score": "0.6706392", "text": "public Producto findProductoById(Long id) {\n\t\treturn findById(Producto.class, id);\n\t}", "title": "" }, { "docid": "721f0075f5c179c16307a79d15022ce7", "score": "0.66964585", "text": "public String getProduct()\n {\n return product;\n }", "title": "" }, { "docid": "c4cac5b45170fdb5f452c34a4bc7cba7", "score": "0.66640365", "text": "public ProductoCreable newInstance(int codigo, String nombre){\r\n \r\n }", "title": "" }, { "docid": "c1f1575e782d493509806c0bc3681d5b", "score": "0.6646635", "text": "public ProductoNoElaborado() {\n\t\t// TODO Auto-generated constructor stub\n\t}", "title": "" }, { "docid": "9b721a2587ca799c5e6fab58e1487f3a", "score": "0.66427785", "text": "@Override\n\tpublic Product getProduct() {\n\t\tSystem.out.println(\"B生产成功\");\n\t\treturn product;\n\t}", "title": "" }, { "docid": "f454037fa08c223d0ba754e842813985", "score": "0.66405684", "text": "public int getIdProducto() {\n return idProducto;\n }", "title": "" }, { "docid": "eec83f5dd81e77121390f6554eb723a8", "score": "0.6640217", "text": "public Product getProduct() {\n\t\treturn product;\n\t}", "title": "" }, { "docid": "e4ee1592fa9d288753aebc324186e19f", "score": "0.66361886", "text": "public Producto buscarProducto(int id) throws Exception {\n ProductoLogica pL = new ProductoLogica();\n Producto producto = pL.buscarProductoID(id);\n return producto;\n }", "title": "" }, { "docid": "f5fc0dacd3257abbec75b0fd3374e804", "score": "0.66253984", "text": "public ProductModel getProduct()\n\t{\n\t\treturn product;\n\t}", "title": "" }, { "docid": "67c2106f3d74be3e64fb79bddf4e6595", "score": "0.66202915", "text": "public ProductoDTO(){\r\n\t\t\r\n\t}", "title": "" }, { "docid": "bf0075895317893216027faceabfabe2", "score": "0.6614504", "text": "@Override\r\n public void getProduct() {\r\n\r\n InventoryList.add(new Product(\"Prod1\", \"Shirt\", \"Each\", 10.0, LocalDate.of(2021,03,19)));\r\n InventoryList.add(new Product(\"Prod1\", \"Trousers\", \"Each\", 20.0, LocalDate.of(2021,03,21)));\r\n InventoryList.add(new Product(\"Prod1\", \"Trousers\", \"Each\", 20.0, LocalDate.of(2021,03,29)));\r\n }", "title": "" }, { "docid": "cf43df01e1ba6923e144a9c875a0ebb1", "score": "0.6604461", "text": "public Product ProductDetail(int id){\n Product p = new Product();\n connect();\n ResultSet result = null;\n String sql = \"SELECT * FROM productos WHERE id_producto = ?\";\n \n try{\n PreparedStatement ps = connect.prepareStatement(sql);\n ps.setInt(1, id);\n result = ps.executeQuery();\n if(result != null){\n p.setProductId(\"\"+result.getInt(\"id_producto\"));\n p.setProductDescription(result.getString(\"descripcion\"));\n p.setProductPresentation(result.getString(\"presentacion\"));\n p.setProductCuantity(result.getInt(\"cantidad\"));\n p.setProductPrice(result.getFloat(\"precio\"));\n p.setProductProvider(result.getInt(\"proveedor\"));\n }\n connect.close();\n return p;\n }catch(SQLException ex){\n ex.printStackTrace();\n } \n return p;\n }", "title": "" }, { "docid": "610f8c59e3ce3a47e54c94c678affa32", "score": "0.6603763", "text": "private ServicioProductoSingleton() {\n this.listaProductos = new ArrayList<>();\n }", "title": "" }, { "docid": "46d19218b84f66029b3ac122ef67ec63", "score": "0.65954185", "text": "public ArrayList<Producto> ListaProductos() {\n ArrayList<Producto> list = new ArrayList<Producto>();\n \n try {\n conectar();\n ResultSet result = state.executeQuery(\"select * from producto;\");\n while(result.next()) {\n Producto nuevo = new Producto();\n nuevo.setIdProducto((int)result.getObject(1));\n nuevo.setNombreProducto((String)result.getObject(2));\n nuevo.setFabricante((String)result.getObject(3));\n nuevo.setCantidad((int)result.getObject(4));\n nuevo.setPrecio((int)result.getObject(5));\n nuevo.setDescripcion((String)result.getObject(6));\n nuevo.setSucursal((int)result.getObject(7));\n list.add(nuevo);\n }\n con.close();\n } catch (Exception ex) {\n ex.printStackTrace();\n }\n return list;\n }", "title": "" }, { "docid": "c1234277d91fd5265c10221f70ce76d7", "score": "0.6588113", "text": "public Product get(String id);", "title": "" }, { "docid": "a2ae301b4bff51f83d87be95da8c8f1f", "score": "0.65828985", "text": "Product findProductById(Long id);", "title": "" }, { "docid": "6d11134fcf88005edf75a70802a2f778", "score": "0.65547955", "text": "public InstanciaProductoExample() {\n oredCriteria = new ArrayList<Criteria>();\n }", "title": "" }, { "docid": "37b01362539ae03ad8ba55fd2cabaa5d", "score": "0.6554393", "text": "public Product(){\n // Default constructor required for calls to DataSnapshot.getValue(Product.class)\n }", "title": "" }, { "docid": "223ccac1e1b9d638511ab5169c2d24cc", "score": "0.6551103", "text": "public String getProduct() {\n return product;\n }", "title": "" }, { "docid": "223ccac1e1b9d638511ab5169c2d24cc", "score": "0.6551103", "text": "public String getProduct() {\n return product;\n }", "title": "" }, { "docid": "4c97a0f1e19309a20c079334a18cc5e0", "score": "0.6544602", "text": "public DAOTablaMenuProductos() {\r\n\t\trecursos = new ArrayList<Object>();\r\n\t}", "title": "" }, { "docid": "cc363d61af71fcad2b9951ae4735df38", "score": "0.6541679", "text": "public void listarProducto() {\n }", "title": "" }, { "docid": "60013c739c34ab144129cd6205df147a", "score": "0.6531665", "text": "public Product getProduct(long id, HttpServletRequest request) {\n RestTemplate restTemplate = new RestTemplate();\n Product product = new Product();\n String requestUrl = String.format(\"%s://%s:%d/products/\" + id, request.getScheme(), request.getServerName(), request.getServerPort());\n try {\n product = restTemplate.getForObject(requestUrl, Product.class);\n return product;\n } catch (Exception e) {\n return product;\n }\n }", "title": "" }, { "docid": "d51d22959a59b188c1f3d8d73e88117d", "score": "0.65300417", "text": "@Override\n\tpublic <T extends Product> T createProduct(Class<T> clazz) {\n\t\tT product = null;\n\t\t\n\t\ttry {\n\t\t\tproduct = clazz.newInstance();\n\t\t} catch (InstantiationException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} catch (IllegalAccessException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t\treturn (T) product;\n\t}", "title": "" }, { "docid": "844395a9171d7fd50bcbbbe58be83593", "score": "0.65220046", "text": "public TelaProduto() {\n initComponents();\n \n carregaProdutos();\n }", "title": "" }, { "docid": "2924bee7f3feb6927f19fdc97b2ca765", "score": "0.6516925", "text": "String getProduct();", "title": "" }, { "docid": "119087f32db8cf1a956d2598344dd7cc", "score": "0.65006864", "text": "CafeProduct getProductById(final Integer productId);", "title": "" }, { "docid": "a07f9991a3d228e41447dc194d473e46", "score": "0.6496293", "text": "public void Addproduct(Product objproduct) {\n\t\t\n\t}", "title": "" }, { "docid": "fb633509404b8607fc3eb994a591e70d", "score": "0.6491383", "text": "public Product build() {\n Product product = new Product();\n product.product_id = this.product_id;\n product.product_name = this.product_name;\n product.price = this.price;\n product.in_stock = this.in_stock;\n product.amount = this.amount;\n product.ordered_amount = this.ordered_amount;\n product.order_price = this.order_price;\n\n return product;\n }", "title": "" }, { "docid": "8cbef5a65da4b91badc7da45d1418c38", "score": "0.6478265", "text": "public Product createProduct() {\n\t\tProduct prod = new Product();\n\t\tprod.setProdId(this.getProdId());\n\t\tprod.setProductName(this.getProductName());\n\t\tprod.setPrice(this.getPrice());\n\t\tprod.setStock(this.getStock());\n\t\tprod.setDescription(this.getDescription());\n\t\tprod.setImage(this.getImage());\n\t\tprod.setSellerId(this.getSellerId());\n\t\tprod.setCategory(this.getCategory());\n\t\tprod.setSubcategory(this.getSubcategory());\n\t\tprod.setProductrating(this.getProductrating());\n\t\treturn prod;\n\t}", "title": "" }, { "docid": "9e6f6898b94d3bb134697166cdab52ac", "score": "0.64754736", "text": "public Producto(Producto p) {\r\n\t\tsuper();\r\n\t\tID = getIDnuevoProducto();\r\n\t\tsetNombre(p.getNombre());\r\n\t\tsetCantidad(p.getCantidad());\r\n\t\tsetEnVenta(p.isEnVenta());\r\n\t\tsetCaracteristicas(p.getCaracteristicas());\r\n\t\tsetCategoria(p.getCategoria());\r\n\t\tsetDescripcion(p.getDescripcion());\r\n\t\tsetPrecio(p.getPrecio());\r\n\t\tsetVendedor(p.getVendedor());\r\n\t}", "title": "" }, { "docid": "5baa2ed998c25d6ce092de73f404f52c", "score": "0.6471922", "text": "@Override\n protected ProdutoServicoImpl getservice() {\n return produtoService;\n }", "title": "" }, { "docid": "2fa40493476f763e95bac7a6ba3f4319", "score": "0.64659494", "text": "public String getProduct() {\r\n return this.product;\r\n }", "title": "" }, { "docid": "e414d12f5b17d81c3982702a8a26f8f5", "score": "0.6463426", "text": "public Prototipo encontrarPrototipoPorIdProducto(Producto id) {\r\n Prototipo pro;\r\n try {\r\n EntityManager em = getEntityManager();\r\n Query q = em.createNamedQuery(\"Prototipo.findByIdProducto\", Prototipo.class).setParameter(\"idProducto\", id);\r\n pro = (Prototipo) q.getSingleResult();\r\n } catch (Exception e) {\r\n pro = null;\r\n }\r\n return pro;\r\n }", "title": "" }, { "docid": "4080613504f84a64a44e7baeefe92131", "score": "0.64606786", "text": "public ProductoListarBean() {\r\n }", "title": "" }, { "docid": "37071bb4c96877cf40d3d1635342e244", "score": "0.6459636", "text": "ProductoO getIzq();", "title": "" }, { "docid": "2f0e2466541d8370604c5571235bde46", "score": "0.6457961", "text": "public String getProduct() {\n return this.product;\n }", "title": "" }, { "docid": "ea5f1dcc536a4eb01066d9c041c0b781", "score": "0.64579535", "text": "public ProductContainer getProductContainer(Product p);", "title": "" }, { "docid": "ae573deb0645506bf34934e85eceb5d0", "score": "0.64313143", "text": "public List<Product> getProducts();", "title": "" }, { "docid": "ae573deb0645506bf34934e85eceb5d0", "score": "0.64313143", "text": "public List<Product> getProducts();", "title": "" }, { "docid": "8e7688b6cf014784338f6f598966ef67", "score": "0.641947", "text": "@Override\r\n\tpublic Product get(int id) {\n\t\treturn null;\r\n\t}", "title": "" }, { "docid": "d0c5a850e1052b3ec698b1ff6a2d9779", "score": "0.641918", "text": "protected Product()\n\t{\n\t}", "title": "" }, { "docid": "1376c77e2d65458be17b7812328b3b9a", "score": "0.6412779", "text": "public CartProduct() {\n }", "title": "" }, { "docid": "053e17ba10d9cc95e72c1e761a61340f", "score": "0.64100415", "text": "public Product GetProductbyid(int Id) {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "7ece47ca47d676311f335f8b8e952fca", "score": "0.63991416", "text": "@Override\r\n\tpublic Product getProduct(String id) {\n\t\treturn null;\r\n\t}", "title": "" }, { "docid": "2c297aaead7cebe485b6e8a0a376aea8", "score": "0.63951194", "text": "public Product getByID(int id) {\n if (!isValidID(id)) {\n System.out.println(\"Ese item no existe\");\n return null;\n }\n\n Product r = null;\n try {\n r = products[id].clone();\n } catch (CloneNotSupportedException e) {\n e.printStackTrace();\n }\n return r;\n }", "title": "" }, { "docid": "33f4ef5f94122211a5b1f364dc09d8a8", "score": "0.6391977", "text": "public JavaproductModel getproduct(JavaproductModel oJavaproductModel){\n\n \t/* Create a new hibernate session and begin the transaction*/\n Session hibernateSession = HibernateUtil.getSessionFactory().openSession();\n Transaction hibernateTransaction = hibernateSession.beginTransaction();\n\n /* Retrieve the existing product from the database*/\n oJavaproductModel = (JavaproductModel) hibernateSession.get(JavaproductModel.class, oJavaproductModel.getproductId());\n\n /* Commit and terminate the session*/\n hibernateTransaction.commit();\n hibernateSession.close();\n return oJavaproductModel;\n }", "title": "" }, { "docid": "56557069cd8cc483700e2f0007b4c0f6", "score": "0.63850605", "text": "Product findById(long id);", "title": "" }, { "docid": "d79d83a167463a623353a9d1a9e955bf", "score": "0.63675016", "text": "public Funcionalidad() {\n Cajero cajero1 = new Cajero(\"Pepe\", 2);\n empleados.put(cajero1.getID(), cajero1);\n Reponedor reponedor1 = new Reponedor(\"Juan\", 3);\n empleados.put(reponedor1.getID(), reponedor1);\n Producto producto1 = new Producto(\"Platano\", 10, 8);\n productos.add(producto1);\n Perecedero perecedero1 = new Perecedero(LocalDateTime.now(), \"Yogurt\", 10, 8);\n }", "title": "" }, { "docid": "017e0b4ac1fb4fc5401e66b4af93d7c2", "score": "0.63672984", "text": "public ProductBeans() {\n \n services = BeanHelper.getService();\n list = services.listOfProducts();\n\n }", "title": "" }, { "docid": "f3adb9fe5c2aa1344ba2653ecec586cf", "score": "0.6365525", "text": "public Product getProductByID(String id) {\n String query = \"select * from Trungnxhe141261_Product\\n \"\r\n + \"where id=?\";\r\n try {\r\n conn = new DBContext().getConnection();//mo ket noi voi sql\r\n ps = conn.prepareStatement(query);\r\n ps.setString(1, id);\r\n rs = ps.executeQuery();\r\n while (rs.next()) {\r\n return new Product(rs.getInt(1),\r\n rs.getString(2),\r\n rs.getString(3),\r\n rs.getDouble(4),\r\n rs.getString(5),\r\n rs.getString(6));\r\n }\r\n } catch (Exception e) {\r\n }\r\n return null;\r\n }", "title": "" }, { "docid": "5137bb33bb4c524611a9d1dee9c52473", "score": "0.63546336", "text": "@Override\r\n\tpublic ProductVO getProduct(ProductVO vo) {\n\t\treturn dao.getProduct(vo);\r\n\t}", "title": "" }, { "docid": "02568475fabe685163541051993fab74", "score": "0.6353766", "text": "private void loadProducts() {\n\t\tproduct1 = new Product();\n\t\tproduct1.setId(1L);\n\t\tproduct1.setName(HP);\n\t\tproduct1.setDescription(HP);\n\t\tproduct1.setPrice(BigDecimal.TEN);\n\n\t\tproduct2 = new Product();\n\t\tproduct2.setId(2L);\n\t\tproduct2.setName(LENOVO);\n\t\tproduct2.setDescription(LENOVO);\n\t\tproduct2.setPrice(new BigDecimal(20));\n\n\t}", "title": "" }, { "docid": "c4a9f9cab3f0d41c1a3cf1dde2a4b290", "score": "0.6332643", "text": "String getNombreProducto();", "title": "" }, { "docid": "81dd24d260073dc031b376d3bb4698fc", "score": "0.63281786", "text": "@Override\n @Transactional\n public Producto findById(long id) {\n return productoDao.findById(id);\n }", "title": "" }, { "docid": "3d27e3f93cae408a679208c57cbae6d9", "score": "0.63256234", "text": "public List<Produto> buscarProdutos(){\n return new ArrayList<>();\n }", "title": "" }, { "docid": "025675c4f8820a7b39f00c76d71cfdaf", "score": "0.6316723", "text": "public Product findProductById(Integer id) {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "6f63bf9da9304bde1a072ff95060f65e", "score": "0.6315063", "text": "List<Product> getProductsList();", "title": "" }, { "docid": "99333d040b12074495a08141b2b5baa0", "score": "0.6308543", "text": "public final Class getProductClass() {\n\treturn productClass;\n }", "title": "" }, { "docid": "eed131736cd97523ee0ed1ab7e74a533", "score": "0.62930477", "text": "public ObservableList<Product> getProduct(){\n ObservableList<Product> products = FXCollections.observableArrayList();\n products.add(new Product(\"Laptop\", 859.00, 20));\n products.add(new Product(\"Bouncy Ball\", 2.49, 198));\n products.add(new Product(\"Toilet\", 99.00, 74));\n products.add(new Product(\"The Notebook DVD\", 19.99, 12));\n products.add(new Product(\"Corn\", 1.49, 856));\n return products;\n }", "title": "" }, { "docid": "1c8c0a03de62efa7a3c2d1be22b299dd", "score": "0.62774676", "text": "Product getProductByProductName(String productName);", "title": "" }, { "docid": "1447e9a7655eda895e7943a764299976", "score": "0.6276609", "text": "public ProductDAO() {\n }", "title": "" }, { "docid": "91ed51e15b1ff192a521a4146939bd0a", "score": "0.627278", "text": "public List<Producto> getProductos(Producto producto) throws Exception {\n\t\treturn null;\n\t}", "title": "" } ]
25197b4cf814864ecd440f23b9149cb3
TODO Autogenerated method stub
[ { "docid": "33ecccb533aae3a49f36fb54fae7d134", "score": "0.0", "text": "@Override\r\n\tpublic void save(TClColor color) {\n\r\n\t}", "title": "" } ]
[ { "docid": "ffe5fe3cec40acf4b0b07ea257dfa06a", "score": "0.6831473", "text": "private void apparence()\r\n\t\t{\r\n\r\n\t\t}", "title": "" }, { "docid": "838a915c9ea69d56cc37df198cff9cb2", "score": "0.67589027", "text": "@Override\n\t\t\t\tpublic void pintar() {\n\t\t\t\t\t\n\t\t\t\t}", "title": "" }, { "docid": "479340d7603590876396cc58262a3776", "score": "0.6593355", "text": "@Override\r\n\tpublic int attaquer() {\r\n\t\t// TODO Auto-generated method stub\r\n\t\treturn 0;\r\n\t}", "title": "" }, { "docid": "ff9130d3531037a891a2580fd00e89e9", "score": "0.649512", "text": "@Override\r\n\tpublic void refuel() {\n\r\n\t}", "title": "" }, { "docid": "4faa810505ebcb260aff0793654a731e", "score": "0.64787245", "text": "@Override\n\tpublic void refuel() {\n\t\t\n\t}", "title": "" }, { "docid": "440ce72c689aef1dd3c429cf5498732b", "score": "0.6443756", "text": "@Override\n\tpublic void pohyb() {\n\n\t}", "title": "" }, { "docid": "c2f383f280f298416bf45e72c374ecfa", "score": "0.64127725", "text": "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "title": "" }, { "docid": "592b765f0188dd7fa8d3f1f3683fa9d7", "score": "0.62889814", "text": "@Override\n\tprotected void generateData() {\n\t\t\n\t}", "title": "" }, { "docid": "4bc8e88e84699c223ea476caacb4d454", "score": "0.6277223", "text": "@Override\r\n\tpublic void sauter() {\n\t\t\r\n\t}", "title": "" }, { "docid": "db6adf52deb87c2723f80c6df873c47d", "score": "0.6273419", "text": "public void mo4741aD() {\n }", "title": "" }, { "docid": "80d10ea62cee927f9ad0a7965909eaba", "score": "0.6230557", "text": "@Override\n\tprotected void remplit() {\n\t\t\n\t}", "title": "" }, { "docid": "95ffa256b098e9b494cb96d4874e063f", "score": "0.6218078", "text": "@Override\n\tvoid refuel() {\n\n\t}", "title": "" }, { "docid": "03d7171196199db238d56b8aeab47987", "score": "0.61277896", "text": "private void welcom() {\n\n\t}", "title": "" }, { "docid": "093a096d6e96e05b160fe2406b1e8a2d", "score": "0.61053663", "text": "@Override\n\tpublic void parir() {\n\t\t\n\t}", "title": "" }, { "docid": "ce165aec4a92510d2d7f78a45c6a1f81", "score": "0.60921794", "text": "@Override\r\n\tpublic void retirer() {\n\t\t\r\n\t}", "title": "" }, { "docid": "23f3a7415a3f7463e8a1124d06cf4cf2", "score": "0.609125", "text": "@Override\n\tpublic void valide() {\n\t\t\n\t}", "title": "" }, { "docid": "e2c0ee2f563aa58a1d1fbb6ed1a49084", "score": "0.60562134", "text": "public void namam() {\n\t\t\r\n\t}", "title": "" }, { "docid": "e2c0ee2f563aa58a1d1fbb6ed1a49084", "score": "0.60562134", "text": "public void namam() {\n\t\t\r\n\t}", "title": "" }, { "docid": "453637afdcc490de35afa10f347a4092", "score": "0.6052283", "text": "protected void mo4927v() {\n }", "title": "" }, { "docid": "081ae6b4d91b610b8046f5ebfe7ba326", "score": "0.60330045", "text": "@Override\r\n\tpublic void fertilizar() {\n\t\t\r\n\t}", "title": "" }, { "docid": "4c9e25ea6f293e2f67da562cd4a0b657", "score": "0.60203654", "text": "public final void mo8553EA() {\n }", "title": "" }, { "docid": "5fda61f75e47491fe0badbfe139070a9", "score": "0.6020252", "text": "@Override\n\tprotected void initdata() {\n\n\t}", "title": "" }, { "docid": "b1cf16017c8057c0255a9ad368ecaee5", "score": "0.60185045", "text": "@Override\r\n\tprotected void init() {\n\r\n\t}", "title": "" }, { "docid": "4c957ed6879296e2489fa4cc534c9d68", "score": "0.60134614", "text": "@Override\r\n\tpublic void geefMeerprijs() {\n\t\t\r\n\t}", "title": "" }, { "docid": "fa1a013b1df2f5f1062e1cc971135645", "score": "0.5987973", "text": "@Override\n\tpublic void mamar() {\n\t\t\n\t}", "title": "" }, { "docid": "e1a5212784625cf033b8b0d71916d9a8", "score": "0.59843665", "text": "@Override\r\n\tpublic void se_baisser() {\n\t\t\r\n\t}", "title": "" }, { "docid": "ab92fd509dcf9edd6498a0302e1555e9", "score": "0.598327", "text": "@Override\n\tpublic void withdrawl() {\n\t\t\n\t}", "title": "" }, { "docid": "8a997a9a187c71891dd8b44afdbaa2a2", "score": "0.59794915", "text": "private void noOtomatis(){\n\n \n \n \n\n }", "title": "" }, { "docid": "0056b38abf02cf94e7a1afab1755d909", "score": "0.59666646", "text": "@Override\r\n\tpublic void defendre() {\n\t\t\r\n\t}", "title": "" }, { "docid": "05b92fe6834e71a629bc6b218827d95f", "score": "0.596291", "text": "Intervencion() {\n\t}", "title": "" }, { "docid": "acc39f55f5b37ab7050a241c64f9a4f9", "score": "0.59580564", "text": "@Override\n\tpublic void actualize() {\n\t\t\n\t}", "title": "" }, { "docid": "9a1a66628f4518af9fa213c400d9592e", "score": "0.5951102", "text": "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t}", "title": "" }, { "docid": "16a4669a2213802ac94829fc8d9946ff", "score": "0.5935938", "text": "@Override\n\t\tpublic void init() {\n\t\t\t\n\t\t}", "title": "" }, { "docid": "8b18fd12dbb5303a665e92c25393fb78", "score": "0.59239364", "text": "@Override\n\tprotected void initData() {\n\t\t\n\t}", "title": "" }, { "docid": "b4f806add60ad7a84ab034d616e626e7", "score": "0.59232795", "text": "@Override\n public void Ramasser() {\n }", "title": "" }, { "docid": "fb8e5a5b14d5c382d38f4afcb6d4f55d", "score": "0.59119946", "text": "@Override\r\n\tpublic void reculer() {\n\t\t\r\n\t}", "title": "" }, { "docid": "c9b74342d0ae0e22bc7119b60588c66a", "score": "0.5897873", "text": "@Override\n\t\t\tpublic int getType() {\n\t\t\t\treturn 0;\n\t\t\t}", "title": "" }, { "docid": "835a3677095e4c9f21649ab17f1ba40b", "score": "0.58930063", "text": "private static void diwalioffer() {\n\t\t\r\n\t}", "title": "" }, { "docid": "4967494f628119c8d3a4740e09278944", "score": "0.5857751", "text": "@Override\r\n\tprotected void initData() {\n\r\n\t}", "title": "" }, { "docid": "4967494f628119c8d3a4740e09278944", "score": "0.5857751", "text": "@Override\r\n\tprotected void initData() {\n\r\n\t}", "title": "" }, { "docid": "47bef3d0c0ee761e936de1dada2442ec", "score": "0.5845612", "text": "private void Partida() {\r\n\t}", "title": "" }, { "docid": "c34617230b51592fc8652a6c8fc39d7b", "score": "0.5841976", "text": "@Override\n\t\t public int describeContents() { \n\t\t return 0;\n\t\t }", "title": "" }, { "docid": "39c15addb7f9cae9284ae4af01c5a911", "score": "0.58368444", "text": "@Override\r\n\tpublic void cortar() {\n\t\t\r\n\t}", "title": "" }, { "docid": "74acf90efa52ac7bee2d28c6dee180bf", "score": "0.5808944", "text": "public void mo25302P() {\n }", "title": "" }, { "docid": "9d2f44c3ebe1fb8de1ac4ae677e2d851", "score": "0.5806823", "text": "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "title": "" }, { "docid": "b14d9313b224be37257260448fc816d3", "score": "0.5805753", "text": "@Override\n\tpublic void breathes()\n\t{\n\n\t}", "title": "" }, { "docid": "4958a5331fdb65d09e333f006441f701", "score": "0.57990485", "text": "@Override\n public int size() {\n // TODO Auto-generated method stub\n return 0;\n }", "title": "" }, { "docid": "ce91051d32625345f2bf3562abbb93de", "score": "0.5794177", "text": "@Override\n\tprotected void inicializar() {\n\t}", "title": "" }, { "docid": "2a790ebdc342a2b85b21b58d99e8bb02", "score": "0.57934815", "text": "@Override\n\tpublic void landen()\n\t{\n\t\t\n\t}", "title": "" }, { "docid": "beee84210d56979d0068a8094fb2a5bd", "score": "0.5792378", "text": "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "title": "" }, { "docid": "b17089ec7f3b873adc1ebff906be9241", "score": "0.5790544", "text": "@Override\r\n\tpublic void carregar() {\n\t\t\r\n\t}", "title": "" }, { "docid": "925ab02db0448f51f913efd603e7b5b4", "score": "0.57877386", "text": "@Override\n\tpublic void breathe() {\n\n\t\t\n\t}", "title": "" }, { "docid": "3f682cd35cc51a176e84d31bb70401ec", "score": "0.5786728", "text": "@Override\n\t\t\tpublic int Order() {\n\t\t\t\treturn 1;\n\t\t\t}", "title": "" }, { "docid": "3f682cd35cc51a176e84d31bb70401ec", "score": "0.5786728", "text": "@Override\n\t\t\tpublic int Order() {\n\t\t\t\treturn 1;\n\t\t\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5774479", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5774479", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5774479", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5774479", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5774479", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5774479", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5774479", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5774479", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5774479", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5774479", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5774479", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5774479", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "b0f36892991e52a8359bd9bea7916606", "score": "0.5773981", "text": "@Override\r\n\tpublic void Value() {\n\t\t\r\n\t}", "title": "" }, { "docid": "b0f36892991e52a8359bd9bea7916606", "score": "0.5773981", "text": "@Override\r\n\tpublic void Value() {\n\t\t\r\n\t}", "title": "" }, { "docid": "e7dbef6468de164eadd6d220b4ed2936", "score": "0.57625693", "text": "@Override\n\tpublic void vegetais() {\n\t\t\n\t}", "title": "" }, { "docid": "518a761521ca9f5cb8a8055b32b72cda", "score": "0.57596046", "text": "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "title": "" }, { "docid": "627bf6ef88b45b88b902a23fc9a6eb2b", "score": "0.5754491", "text": "@Override\r\n\tpublic void init()\r\n\t{\n\t\t\r\n\t}", "title": "" }, { "docid": "1985dddb6264adc2fb069a687b25f36b", "score": "0.57541007", "text": "@Override\n\tpublic void groom() {\n\t\t\n\t}", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.575025", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.575025", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.575025", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.575025", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.575025", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.575025", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "dfa3deb699f1baaf610b77ae9370559a", "score": "0.57471", "text": "@Override\n\tpublic void gravar() {\n\n\t}", "title": "" }, { "docid": "bf96ef68c4dc727efe52fcae4e20a6c6", "score": "0.5736261", "text": "@Override\r\n public int getType() {\n return 1;\r\n }", "title": "" }, { "docid": "b143ffd983be4c8f41702b8f934b6f32", "score": "0.57337177", "text": "@Override\r\n\tpublic void init() {\n\r\n\t}", "title": "" }, { "docid": "b143ffd983be4c8f41702b8f934b6f32", "score": "0.57337177", "text": "@Override\r\n\tpublic void init() {\n\r\n\t}", "title": "" }, { "docid": "a7ae27b45bb1a02a96ba4232264be825", "score": "0.57315516", "text": "@Override\n\tpublic void embarcar() {\n\t\t\n\t}", "title": "" }, { "docid": "8b16d59a149827c698e510477f7a4e9d", "score": "0.57292205", "text": "public void mo9585b() {\n }", "title": "" }, { "docid": "0ce436410fb4ad1af4e012ab5253a43a", "score": "0.57232136", "text": "@Override\n\tpublic void maas() {\n\t\t\n\t}", "title": "" }, { "docid": "a937c607590931387a357d03c3b0eef4", "score": "0.5715831", "text": "@Override\n\tprotected void initialize() {\n\n\t}", "title": "" }, { "docid": "10daa0b69fc83ea1f81c27147cd56557", "score": "0.5712038", "text": "@Override\n\tpublic void Ordenar() {\n\t\t\n\t}", "title": "" }, { "docid": "78a0d7cad7b423dba2c6000b1302b9a0", "score": "0.5705727", "text": "@Override\n\tprotected void ganharExp() {\n\t\t\n\t}", "title": "" }, { "docid": "162a468b891a508701c52265588e91b6", "score": "0.5699155", "text": "@Override\r\n public void init() {\n\r\n }", "title": "" }, { "docid": "39132efb6b42f8ec625d96ff6226d80b", "score": "0.56991017", "text": "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "title": "" }, { "docid": "6fba68e503150b58bb627390fe723ce3", "score": "0.56942755", "text": "@Override\r\n\tpublic void servir() {\n\t\t\r\n\t}", "title": "" }, { "docid": "9e8299e02e2afca4b347ab5022949b84", "score": "0.56936175", "text": "@Override\n public void rest() {\n \n }", "title": "" }, { "docid": "ddd8d8a26991b887b8f19171d700e1d3", "score": "0.56922704", "text": "@Override\n\tpublic void proveerdatos() {\n\t\t\n\t}", "title": "" }, { "docid": "e21063ae833db842230f1d37006a0359", "score": "0.56854326", "text": "@Override public int getAtaque(){\n\n return 0;\n\n }", "title": "" }, { "docid": "b6c641fa6ba40a5b14cc33cb07aa0671", "score": "0.5669649", "text": "@Override\n\tprotected void initData() {\n\t}", "title": "" }, { "docid": "a0b89d2fbd83aefeb636ae04ad1fcd91", "score": "0.56631064", "text": "public void init(){\n\t //TODO Auto-generated method stub\n\t}", "title": "" }, { "docid": "2aed4e4b25907c376dc30c486b4f975f", "score": "0.5657416", "text": "public final void mo73469b() {\n }", "title": "" }, { "docid": "9d94df716ebd35f7ec07df01763ae94c", "score": "0.5655942", "text": "@Override\n\tpublic void init() {\n\n\t}", "title": "" }, { "docid": "9d94df716ebd35f7ec07df01763ae94c", "score": "0.5655942", "text": "@Override\n\tpublic void init() {\n\n\t}", "title": "" }, { "docid": "9d94df716ebd35f7ec07df01763ae94c", "score": "0.5655942", "text": "@Override\n\tpublic void init() {\n\n\t}", "title": "" }, { "docid": "9d94df716ebd35f7ec07df01763ae94c", "score": "0.5655942", "text": "@Override\n\tpublic void init() {\n\n\t}", "title": "" } ]
b0458fbd9facc2358b6e6a63f8702153
/ JADX WARNING: Code restructure failed: missing block: B:47:0x007f, code lost: if (((r6 >= 65382 && r6 = 65441 && r6 <= 65500)) != false) goto L_0x0081; / JADX WARNING: Code restructure failed: missing block: B:66:0x00c4, code lost: if (r4 == false) goto L_0x00d3; / JADX WARNING: Code restructure failed: missing block: B:69:0x00d1, code lost: if (r4 == false) goto L_0x00d3; / JADX WARNING: Removed duplicated region for block: B:51:0x0086 / JADX WARNING: Removed duplicated region for block: B:55:0x009c
[ { "docid": "3ab13af8ce6f32f379bc668d9013a8c0", "score": "0.0", "text": "public static String[] zzb(String str, boolean z) {\n boolean z2;\n String str2;\n if (str == null) {\n return null;\n }\n ArrayList arrayList = new ArrayList();\n char[] charArray = str.toCharArray();\n int length = str.length();\n int i = 0;\n boolean z3 = false;\n int i2 = 0;\n while (i < length) {\n int codePointAt = Character.codePointAt(charArray, i);\n int charCount = Character.charCount(codePointAt);\n if (Character.isLetter(codePointAt)) {\n Character.UnicodeBlock of = Character.UnicodeBlock.of(codePointAt);\n if (!(of == Character.UnicodeBlock.BOPOMOFO || of == Character.UnicodeBlock.BOPOMOFO_EXTENDED || of == Character.UnicodeBlock.CJK_COMPATIBILITY || of == Character.UnicodeBlock.CJK_COMPATIBILITY_IDEOGRAPHS || of == Character.UnicodeBlock.CJK_COMPATIBILITY_IDEOGRAPHS_SUPPLEMENT || of == Character.UnicodeBlock.CJK_UNIFIED_IDEOGRAPHS || of == Character.UnicodeBlock.CJK_UNIFIED_IDEOGRAPHS_EXTENSION_A || of == Character.UnicodeBlock.CJK_UNIFIED_IDEOGRAPHS_EXTENSION_B || of == Character.UnicodeBlock.ENCLOSED_CJK_LETTERS_AND_MONTHS || of == Character.UnicodeBlock.HANGUL_JAMO || of == Character.UnicodeBlock.HANGUL_SYLLABLES || of == Character.UnicodeBlock.HIRAGANA || of == Character.UnicodeBlock.KATAKANA || of == Character.UnicodeBlock.KATAKANA_PHONETIC_EXTENSIONS)) {\n }\n z2 = true;\n if (!z2) {\n if (z3) {\n arrayList.add(new String(charArray, i2, i - i2));\n }\n str2 = new String(charArray, i, charCount);\n } else {\n if (!Character.isLetterOrDigit(codePointAt) && Character.getType(codePointAt) != 6 && Character.getType(codePointAt) != 8) {\n if (!z || Character.charCount(codePointAt) != 1 || Character.toChars(codePointAt)[0] != '\\'') {\n if (z3) {\n str2 = new String(charArray, i2, i - i2);\n } else {\n i += charCount;\n }\n }\n }\n i2 = i;\n z3 = true;\n i += charCount;\n }\n arrayList.add(str2);\n z3 = false;\n i += charCount;\n }\n z2 = false;\n if (!z2) {\n }\n arrayList.add(str2);\n z3 = false;\n i += charCount;\n }\n if (z3) {\n arrayList.add(new String(charArray, i2, i - i2));\n }\n return (String[]) arrayList.toArray(new String[arrayList.size()]);\n }", "title": "" } ]
[ { "docid": "dde7e07ba571d3e996c1091eec96f8fc", "score": "0.6713213", "text": "public final int m13141a(com.facebook.flatbuffers.FlatBufferBuilder r5) {\n /* JADX: method processing error */\n/*\nError: jadx.core.utils.exceptions.JadxRuntimeException: SSA rename variables already executed\n\tat jadx.core.dex.visitors.ssa.SSATransform.renameVariables(SSATransform.java:120)\n\tat jadx.core.dex.visitors.ssa.SSATransform.process(SSATransform.java:52)\n\tat jadx.core.dex.visitors.ssa.SSATransform.visit(SSATransform.java:42)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:31)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:17)\n\tat jadx.core.ProcessClass.process(ProcessClass.java:37)\n\tat jadx.core.ProcessClass.processDependencies(ProcessClass.java:59)\n\tat jadx.core.ProcessClass.process(ProcessClass.java:42)\n\tat jadx.api.JadxDecompiler.processClass(JadxDecompiler.java:306)\n\tat jadx.api.JavaClass.decompile(JavaClass.java:62)\n\tat jadx.api.JadxDecompiler$1.run(JadxDecompiler.java:199)\n*/\n /*\n r4 = this;\n r4.h();\n r0 = r4.m13139k();\n r0 = com.facebook.graphql.modelutil.ModelHelper.a(r5, r0);\n r1 = r4.m13140l();\n r1 = r5.b(r1);\n r2 = r4.m13146j();\n r2 = com.facebook.graphql.modelutil.ModelHelper.a(r5, r2);\n r3 = 3;\n r5.c(r3);\n r3 = null;\n r5.b(r3, r0);\n r0 = 1;\n r5.b(r0, r1);\n r0 = 2;\n r5.b(r0, r2);\n r4.i();\n r0 = r5.d();\n return r0;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.facebook.socialgood.guestlist.FundraiserGuestListModels.FundraiserNonDonorsConnectionQueryModel.a(com.facebook.flatbuffers.FlatBufferBuilder):int\");\n }", "title": "" }, { "docid": "aee5340f42508e0be6434c030df464f4", "score": "0.66778296", "text": "private void m3306a(java.lang.String[] r5) throws java.io.IOException {\n /* JADX: method processing error */\n/*\nError: java.lang.NullPointerException\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.searchTryCatchDominators(ProcessTryCatchRegions.java:75)\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.process(ProcessTryCatchRegions.java:45)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.postProcessRegions(RegionMakerVisitor.java:63)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.visit(RegionMakerVisitor.java:58)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:31)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:17)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:14)\n\tat jadx.core.ProcessClass.process(ProcessClass.java:34)\n\tat jadx.api.JadxDecompiler.processClass(JadxDecompiler.java:282)\n\tat jadx.api.JavaClass.decompile(JavaClass.java:62)\n\tat jadx.api.JadxDecompiler.lambda$appendSourcesSave$0(JadxDecompiler.java:200)\n\tat jadx.api.JadxDecompiler$$Lambda$8/79094208.run(Unknown Source)\n*/\n /*\n r4 = this;\n r0 = r5.length;\n r1 = r4.f2578c;\n r1 = r1.f2596h;\n if (r0 == r1) goto L_0x000e;\n L_0x0009:\n r5 = r4.m3308b(r5);\n throw r5;\n L_0x000e:\n r0 = 0;\n L_0x000f:\n r1 = r5.length;\t Catch:{ NumberFormatException -> 0x0020 }\n if (r0 >= r1) goto L_0x001f;\t Catch:{ NumberFormatException -> 0x0020 }\n L_0x0012:\n r1 = r4.f2580e;\t Catch:{ NumberFormatException -> 0x0020 }\n r2 = r5[r0];\t Catch:{ NumberFormatException -> 0x0020 }\n r2 = java.lang.Long.parseLong(r2);\t Catch:{ NumberFormatException -> 0x0020 }\n r1[r0] = r2;\t Catch:{ NumberFormatException -> 0x0020 }\n r0 = r0 + 1;\n goto L_0x000f;\n L_0x001f:\n return;\n L_0x0020:\n r5 = r4.m3308b(r5);\n throw r5;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.bumptech.glide.a.a.b.a(java.lang.String[]):void\");\n }", "title": "" }, { "docid": "d059333a7e81f95777fcb53b7a12c152", "score": "0.66268736", "text": "private void m3325b() throws java.io.IOException {\n /* JADX: method processing error */\n/*\nError: java.lang.NullPointerException\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.searchTryCatchDominators(ProcessTryCatchRegions.java:75)\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.process(ProcessTryCatchRegions.java:45)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.postProcessRegions(RegionMakerVisitor.java:63)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.visit(RegionMakerVisitor.java:58)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:31)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:17)\n\tat jadx.core.ProcessClass.process(ProcessClass.java:34)\n\tat jadx.api.JadxDecompiler.processClass(JadxDecompiler.java:282)\n\tat jadx.api.JavaClass.decompile(JavaClass.java:62)\n\tat jadx.api.JadxDecompiler.lambda$appendSourcesSave$0(JadxDecompiler.java:200)\n\tat jadx.api.JadxDecompiler$$Lambda$8/79094208.run(Unknown Source)\n*/\n /*\n r8 = this;\n r0 = new com.bumptech.glide.a.b;\n r1 = new java.io.FileInputStream;\n r2 = r8.f2591c;\n r1.<init>(r2);\n r2 = com.bumptech.glide.p023a.C0974c.f2609a;\n r0.<init>(r1, r2);\n r1 = r0.m3343a();\t Catch:{ all -> 0x00bf }\n r2 = r0.m3343a();\t Catch:{ all -> 0x00bf }\n r3 = r0.m3343a();\t Catch:{ all -> 0x00bf }\n r4 = r0.m3343a();\t Catch:{ all -> 0x00bf }\n r5 = r0.m3343a();\t Catch:{ all -> 0x00bf }\n r6 = \"libcore.io.DiskLruCache\";\t Catch:{ all -> 0x00bf }\n r6 = r6.equals(r1);\t Catch:{ all -> 0x00bf }\n if (r6 == 0) goto L_0x008b;\t Catch:{ all -> 0x00bf }\n L_0x002a:\n r6 = \"1\";\t Catch:{ all -> 0x00bf }\n r6 = r6.equals(r2);\t Catch:{ all -> 0x00bf }\n if (r6 == 0) goto L_0x008b;\t Catch:{ all -> 0x00bf }\n L_0x0032:\n r6 = r8.f2594f;\t Catch:{ all -> 0x00bf }\n r6 = java.lang.Integer.toString(r6);\t Catch:{ all -> 0x00bf }\n r3 = r6.equals(r3);\t Catch:{ all -> 0x00bf }\n if (r3 == 0) goto L_0x008b;\t Catch:{ all -> 0x00bf }\n L_0x003e:\n r3 = r8.f2596h;\t Catch:{ all -> 0x00bf }\n r3 = java.lang.Integer.toString(r3);\t Catch:{ all -> 0x00bf }\n r3 = r3.equals(r4);\t Catch:{ all -> 0x00bf }\n if (r3 == 0) goto L_0x008b;\t Catch:{ all -> 0x00bf }\n L_0x004a:\n r3 = \"\";\t Catch:{ all -> 0x00bf }\n r3 = r3.equals(r5);\t Catch:{ all -> 0x00bf }\n if (r3 != 0) goto L_0x0053;\n L_0x0052:\n goto L_0x008b;\n L_0x0053:\n r1 = 0;\n L_0x0054:\n r2 = r0.m3343a();\t Catch:{ EOFException -> 0x005e }\n r8.m3331d(r2);\t Catch:{ EOFException -> 0x005e }\n r1 = r1 + 1;\n goto L_0x0054;\n L_0x005e:\n r2 = r8.f2599k;\t Catch:{ all -> 0x00bf }\n r2 = r2.size();\t Catch:{ all -> 0x00bf }\n r1 = r1 - r2;\t Catch:{ all -> 0x00bf }\n r8.f2600l = r1;\t Catch:{ all -> 0x00bf }\n r1 = r0.m3344b();\t Catch:{ all -> 0x00bf }\n if (r1 == 0) goto L_0x0071;\t Catch:{ all -> 0x00bf }\n L_0x006d:\n r8.m3329d();\t Catch:{ all -> 0x00bf }\n goto L_0x0087;\t Catch:{ all -> 0x00bf }\n L_0x0071:\n r1 = new java.io.BufferedWriter;\t Catch:{ all -> 0x00bf }\n r2 = new java.io.OutputStreamWriter;\t Catch:{ all -> 0x00bf }\n r3 = new java.io.FileOutputStream;\t Catch:{ all -> 0x00bf }\n r4 = r8.f2591c;\t Catch:{ all -> 0x00bf }\n r5 = 1;\t Catch:{ all -> 0x00bf }\n r3.<init>(r4, r5);\t Catch:{ all -> 0x00bf }\n r4 = com.bumptech.glide.p023a.C0974c.f2609a;\t Catch:{ all -> 0x00bf }\n r2.<init>(r3, r4);\t Catch:{ all -> 0x00bf }\n r1.<init>(r2);\t Catch:{ all -> 0x00bf }\n r8.f2598j = r1;\t Catch:{ all -> 0x00bf }\n L_0x0087:\n com.bumptech.glide.p023a.C0974c.m3345a(r0);\n return;\n L_0x008b:\n r3 = new java.io.IOException;\t Catch:{ all -> 0x00bf }\n r6 = new java.lang.StringBuilder;\t Catch:{ all -> 0x00bf }\n r6.<init>();\t Catch:{ all -> 0x00bf }\n r7 = \"unexpected journal header: [\";\t Catch:{ all -> 0x00bf }\n r6.append(r7);\t Catch:{ all -> 0x00bf }\n r6.append(r1);\t Catch:{ all -> 0x00bf }\n r1 = \", \";\t Catch:{ all -> 0x00bf }\n r6.append(r1);\t Catch:{ all -> 0x00bf }\n r6.append(r2);\t Catch:{ all -> 0x00bf }\n r1 = \", \";\t Catch:{ all -> 0x00bf }\n r6.append(r1);\t Catch:{ all -> 0x00bf }\n r6.append(r4);\t Catch:{ all -> 0x00bf }\n r1 = \", \";\t Catch:{ all -> 0x00bf }\n r6.append(r1);\t Catch:{ all -> 0x00bf }\n r6.append(r5);\t Catch:{ all -> 0x00bf }\n r1 = \"]\";\t Catch:{ all -> 0x00bf }\n r6.append(r1);\t Catch:{ all -> 0x00bf }\n r1 = r6.toString();\t Catch:{ all -> 0x00bf }\n r3.<init>(r1);\t Catch:{ all -> 0x00bf }\n throw r3;\t Catch:{ all -> 0x00bf }\n L_0x00bf:\n r1 = move-exception;\n com.bumptech.glide.p023a.C0974c.m3345a(r0);\n throw r1;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.bumptech.glide.a.a.b():void\");\n }", "title": "" }, { "docid": "5cc9592fc21158064bc7e72ff5976de5", "score": "0.66168773", "text": "static int m1289a(com.onesignal.C0588G r4) {\n /* JADX: method processing error */\n/*\nError: java.lang.NullPointerException\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.searchTryCatchDominators(ProcessTryCatchRegions.java:75)\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.process(ProcessTryCatchRegions.java:45)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.postProcessRegions(RegionMakerVisitor.java:63)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.visit(RegionMakerVisitor.java:58)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:31)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:17)\n\tat jadx.core.ProcessClass.process(ProcessClass.java:34)\n\tat jadx.core.ProcessClass.processDependencies(ProcessClass.java:56)\n\tat jadx.core.ProcessClass.process(ProcessClass.java:39)\n\tat jadx.api.JadxDecompiler.processClass(JadxDecompiler.java:282)\n\tat jadx.api.JavaClass.decompile(JavaClass.java:62)\n\tat jadx.api.JadxDecompiler.lambda$appendSourcesSave$0(JadxDecompiler.java:200)\n\tat jadx.api.JadxDecompiler$$Lambda$8/318857719.run(Unknown Source)\n*/\n /*\n r0 = com.onesignal.sa.m1737t();\n r1 = 1;\n r2 = 0;\n if (r0 == 0) goto L_0x0010;\n L_0x0008:\n r0 = com.onesignal.sa.m1619D();\n if (r0 == 0) goto L_0x0010;\n L_0x000e:\n r0 = 1;\n goto L_0x0011;\n L_0x0010:\n r0 = 0;\n L_0x0011:\n r4.f1122d = r0;\n com.onesignal.C0585D.m1304b(r4);\n r0 = r4.m1319e();\n if (r0 != 0) goto L_0x002d;\n L_0x001c:\n r0 = r4.f1120b;\n r3 = \"alert\";\n r0 = r0.optString(r3);\n r0 = com.onesignal.C0585D.m1301a(r0);\n if (r0 == 0) goto L_0x002b;\n L_0x002a:\n goto L_0x002d;\n L_0x002b:\n r0 = 0;\n goto L_0x002e;\n L_0x002d:\n r0 = 1;\n L_0x002e:\n if (r0 == 0) goto L_0x0033;\n L_0x0030:\n com.onesignal.C0641s.m1580a(r4);\n L_0x0033:\n r0 = r4.f1121c;\n if (r0 != 0) goto L_0x0057;\n L_0x0037:\n com.onesignal.C0585D.m1296a(r4, r2);\n r0 = new org.json.JSONObject;\t Catch:{ Throwable -> 0x0057 }\n r2 = r4.f1120b;\t Catch:{ Throwable -> 0x0057 }\n r2 = r2.toString();\t Catch:{ Throwable -> 0x0057 }\n r0.<init>(r2);\t Catch:{ Throwable -> 0x0057 }\n r2 = \"notificationId\";\t Catch:{ Throwable -> 0x0057 }\n r3 = r4.m1314a();\t Catch:{ Throwable -> 0x0057 }\n r0.put(r2, r3);\t Catch:{ Throwable -> 0x0057 }\n r0 = com.onesignal.C0585D.m1302b(r0);\t Catch:{ Throwable -> 0x0057 }\n r2 = r4.f1122d;\t Catch:{ Throwable -> 0x0057 }\n com.onesignal.sa.m1666a(r0, r1, r2);\t Catch:{ Throwable -> 0x0057 }\n L_0x0057:\n r4 = r4.m1314a();\n r4 = r4.intValue();\n return r4;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.onesignal.D.a(com.onesignal.G):int\");\n }", "title": "" }, { "docid": "dbb64867fec140bd37687b3996354a3a", "score": "0.66012967", "text": "public final int m25306a(com.facebook.flatbuffers.FlatBufferBuilder r4) {\n /* JADX: method processing error */\n/*\nError: jadx.core.utils.exceptions.JadxRuntimeException: SSA rename variables already executed\n\tat jadx.core.dex.visitors.ssa.SSATransform.renameVariables(SSATransform.java:120)\n\tat jadx.core.dex.visitors.ssa.SSATransform.process(SSATransform.java:52)\n\tat jadx.core.dex.visitors.ssa.SSATransform.visit(SSATransform.java:42)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:31)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:17)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:14)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:14)\n\tat jadx.core.ProcessClass.process(ProcessClass.java:37)\n\tat jadx.core.ProcessClass.processDependencies(ProcessClass.java:59)\n\tat jadx.core.ProcessClass.process(ProcessClass.java:42)\n\tat jadx.api.JadxDecompiler.processClass(JadxDecompiler.java:306)\n\tat jadx.api.JavaClass.decompile(JavaClass.java:62)\n\tat jadx.api.JadxDecompiler$1.run(JadxDecompiler.java:199)\n*/\n /*\n r3 = this;\n r3.h();\n r0 = r3.m25308a();\n r0 = com.facebook.graphql.modelutil.ModelHelper.a(r4, r0);\n r1 = r3.m25309j();\n r1 = com.facebook.graphql.modelutil.ModelHelper.a(r4, r1);\n r2 = 2;\n r4.c(r2);\n r2 = 0;\n r4.b(r2, r0);\n r0 = 1;\n r4.b(r0, r1);\n r3.i();\n r0 = r4.d();\n return r0;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.facebook.tagging.graphql.protocol.FetchGroupMembersToMentionQueryModels.FetchGroupMembersToMentionQueryModel.GroupMentionsModel.a(com.facebook.flatbuffers.FlatBufferBuilder):int\");\n }", "title": "" }, { "docid": "ba692337febc44cd3fc125058eea2c13", "score": "0.6537217", "text": "private final p529d.p530a.p531a.p532a.p533a.p534a.bi m37178b(com.google.protobuf.nano.C7213a r8) {\n /*\n r7 = this;\n r1 = 0;\n L_0x0001:\n r0 = r8.m33550a();\n switch(r0) {\n case 0: goto L_0x000e;\n case 10: goto L_0x000f;\n case 16: goto L_0x004e;\n default: goto L_0x0008;\n };\n L_0x0008:\n r0 = super.a(r8, r0);\n if (r0 != 0) goto L_0x0001;\n L_0x000e:\n return r7;\n L_0x000f:\n r0 = 10;\n r2 = com.google.protobuf.nano.C7222l.m33624a(r8, r0);\n r0 = r7.f39976b;\n if (r0 != 0) goto L_0x003b;\n L_0x0019:\n r0 = r1;\n L_0x001a:\n r2 = r2 + r0;\n r2 = new p529d.p530a.p531a.p532a.p533a.p534a.bh[r2];\n if (r0 == 0) goto L_0x0024;\n L_0x001f:\n r3 = r7.f39976b;\n java.lang.System.arraycopy(r3, r1, r2, r1, r0);\n L_0x0024:\n r3 = r2.length;\n r3 = r3 + -1;\n if (r0 >= r3) goto L_0x003f;\n L_0x0029:\n r3 = new d.a.a.a.a.a.bh;\n r3.<init>();\n r2[r0] = r3;\n r3 = r2[r0];\n r8.m33552a(r3);\n r8.m33550a();\n r0 = r0 + 1;\n goto L_0x0024;\n L_0x003b:\n r0 = r7.f39976b;\n r0 = r0.length;\n goto L_0x001a;\n L_0x003f:\n r3 = new d.a.a.a.a.a.bh;\n r3.<init>();\n r2[r0] = r3;\n r0 = r2[r0];\n r8.m33552a(r0);\n r7.f39976b = r2;\n goto L_0x0001;\n L_0x004e:\n r2 = r8.m33573o();\n r3 = r8.m33567i();\t Catch:{ IllegalArgumentException -> 0x0074 }\n switch(r3) {\n case 0: goto L_0x007c;\n case 1: goto L_0x007c;\n default: goto L_0x0059;\n };\t Catch:{ IllegalArgumentException -> 0x0074 }\n L_0x0059:\n r4 = new java.lang.IllegalArgumentException;\t Catch:{ IllegalArgumentException -> 0x0074 }\n r5 = 45;\n r6 = new java.lang.StringBuilder;\t Catch:{ IllegalArgumentException -> 0x0074 }\n r6.<init>(r5);\t Catch:{ IllegalArgumentException -> 0x0074 }\n r3 = r6.append(r3);\t Catch:{ IllegalArgumentException -> 0x0074 }\n r5 = \" is not a valid enum ResizedByType\";\n r3 = r3.append(r5);\t Catch:{ IllegalArgumentException -> 0x0074 }\n r3 = r3.toString();\t Catch:{ IllegalArgumentException -> 0x0074 }\n r4.<init>(r3);\t Catch:{ IllegalArgumentException -> 0x0074 }\n throw r4;\t Catch:{ IllegalArgumentException -> 0x0074 }\n L_0x0074:\n r3 = move-exception;\n r8.m33562e(r2);\n r7.a(r8, r0);\n goto L_0x0001;\n L_0x007c:\n r7.f39977c = r3;\t Catch:{ IllegalArgumentException -> 0x0074 }\n goto L_0x0001;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: d.a.a.a.a.a.bi.b(com.google.protobuf.nano.a):d.a.a.a.a.a.bi\");\n }", "title": "" }, { "docid": "07af5842763df365e9e14d60ac30a5c0", "score": "0.6527968", "text": "private void m28808e() {\n /* JADX: method processing error */\n/*\nError: java.lang.NullPointerException\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.searchTryCatchDominators(ProcessTryCatchRegions.java:75)\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.process(ProcessTryCatchRegions.java:45)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.postProcessRegions(RegionMakerVisitor.java:63)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.visit(RegionMakerVisitor.java:58)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:31)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:17)\n\tat jadx.core.ProcessClass.process(ProcessClass.java:34)\n\tat jadx.core.ProcessClass.processDependencies(ProcessClass.java:56)\n\tat jadx.core.ProcessClass.process(ProcessClass.java:39)\n\tat jadx.api.JadxDecompiler.processClass(JadxDecompiler.java:282)\n\tat jadx.api.JavaClass.decompile(JavaClass.java:62)\n\tat jadx.api.JadxDecompiler.lambda$appendSourcesSave$0(JadxDecompiler.java:200)\n\tat jadx.api.JadxDecompiler$$Lambda$8/79094208.run(Unknown Source)\n*/\n /*\n r1 = this;\n monitor-enter(r1);\t Catch:{ InterruptedException -> 0x000e }\n L_0x0001:\n r0 = r1.f24254g;\t Catch:{ all -> 0x000b }\n if (r0 != 0) goto L_0x0009;\t Catch:{ all -> 0x000b }\n L_0x0005:\n r1.wait();\t Catch:{ all -> 0x000b }\n goto L_0x0001;\t Catch:{ all -> 0x000b }\n L_0x0009:\n monitor-exit(r1);\t Catch:{ all -> 0x000b }\n goto L_0x0015;\t Catch:{ all -> 0x000b }\n L_0x000b:\n r0 = move-exception;\t Catch:{ all -> 0x000b }\n monitor-exit(r1);\t Catch:{ all -> 0x000b }\n throw r0;\t Catch:{ InterruptedException -> 0x000e }\n L_0x000e:\n r0 = java.lang.Thread.currentThread();\n r0.interrupt();\n L_0x0015:\n return;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.android.m4b.maps.bq.d.e():void\");\n }", "title": "" }, { "docid": "fe6e0adaa2d8c3367acb29a4b2d83859", "score": "0.6497482", "text": "public final void m28813b() {\n /* JADX: method processing error */\n/*\nError: java.lang.NullPointerException\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.searchTryCatchDominators(ProcessTryCatchRegions.java:75)\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.process(ProcessTryCatchRegions.java:45)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.postProcessRegions(RegionMakerVisitor.java:63)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.visit(RegionMakerVisitor.java:58)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:31)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:17)\n\tat jadx.core.ProcessClass.process(ProcessClass.java:34)\n\tat jadx.core.ProcessClass.processDependencies(ProcessClass.java:56)\n\tat jadx.core.ProcessClass.process(ProcessClass.java:39)\n\tat jadx.api.JadxDecompiler.processClass(JadxDecompiler.java:282)\n\tat jadx.api.JavaClass.decompile(JavaClass.java:62)\n\tat jadx.api.JadxDecompiler.lambda$appendSourcesSave$0(JadxDecompiler.java:200)\n\tat jadx.api.JadxDecompiler$$Lambda$8/79094208.run(Unknown Source)\n*/\n /*\n r1 = this;\n r1.start();\n monitor-enter(r1);\t Catch:{ InterruptedException -> 0x0011 }\n L_0x0004:\n r0 = r1.f24255h;\t Catch:{ all -> 0x000e }\n if (r0 != 0) goto L_0x000c;\t Catch:{ all -> 0x000e }\n L_0x0008:\n r1.wait();\t Catch:{ all -> 0x000e }\n goto L_0x0004;\t Catch:{ all -> 0x000e }\n L_0x000c:\n monitor-exit(r1);\t Catch:{ all -> 0x000e }\n goto L_0x0018;\t Catch:{ all -> 0x000e }\n L_0x000e:\n r0 = move-exception;\t Catch:{ all -> 0x000e }\n monitor-exit(r1);\t Catch:{ all -> 0x000e }\n throw r0;\t Catch:{ InterruptedException -> 0x0011 }\n L_0x0011:\n r0 = java.lang.Thread.currentThread();\n r0.interrupt();\n L_0x0018:\n r0 = r1.f24251d;\n r0.mo4892a(r1);\n return;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.android.m4b.maps.bq.d.b():void\");\n }", "title": "" }, { "docid": "8247bad1ccce5e561c8f50607f09d59b", "score": "0.6459503", "text": "public void m3301c() {\n /* JADX: method processing error */\n/*\nError: java.lang.NullPointerException\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.searchTryCatchDominators(ProcessTryCatchRegions.java:75)\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.process(ProcessTryCatchRegions.java:45)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.postProcessRegions(RegionMakerVisitor.java:63)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.visit(RegionMakerVisitor.java:58)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:31)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:17)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:14)\n\tat jadx.core.ProcessClass.process(ProcessClass.java:34)\n\tat jadx.api.JadxDecompiler.processClass(JadxDecompiler.java:282)\n\tat jadx.api.JavaClass.decompile(JavaClass.java:62)\n\tat jadx.api.JadxDecompiler.lambda$appendSourcesSave$0(JadxDecompiler.java:200)\n\tat jadx.api.JadxDecompiler$$Lambda$8/79094208.run(Unknown Source)\n*/\n /*\n r1 = this;\n r0 = r1.f2575d;\n if (r0 != 0) goto L_0x0007;\n L_0x0004:\n r1.m3300b();\t Catch:{ IOException -> 0x0007 }\n L_0x0007:\n return;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.bumptech.glide.a.a.a.c():void\");\n }", "title": "" }, { "docid": "32dfe56ce7a8c4de45dfa112f5c8822e", "score": "0.64323324", "text": "public final int m25291a(com.facebook.flatbuffers.FlatBufferBuilder r6) {\n /* JADX: method processing error */\n/*\nError: jadx.core.utils.exceptions.JadxRuntimeException: SSA rename variables already executed\n\tat jadx.core.dex.visitors.ssa.SSATransform.renameVariables(SSATransform.java:120)\n\tat jadx.core.dex.visitors.ssa.SSATransform.process(SSATransform.java:52)\n\tat jadx.core.dex.visitors.ssa.SSATransform.visit(SSATransform.java:42)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:31)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:17)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:14)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:14)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:14)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:14)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:14)\n\tat jadx.core.ProcessClass.process(ProcessClass.java:37)\n\tat jadx.core.ProcessClass.processDependencies(ProcessClass.java:59)\n\tat jadx.core.ProcessClass.process(ProcessClass.java:42)\n\tat jadx.api.JadxDecompiler.processClass(JadxDecompiler.java:306)\n\tat jadx.api.JavaClass.decompile(JavaClass.java:62)\n\tat jadx.api.JadxDecompiler$1.run(JadxDecompiler.java:199)\n*/\n /*\n r5 = this;\n r5.h();\n r0 = r5.m25290m();\n r0 = com.facebook.graphql.modelutil.ModelHelper.a(r6, r0);\n r1 = r5.m25294j();\n r1 = r6.b(r1);\n r2 = r5.m25295k();\n r2 = r6.b(r2);\n r3 = r5.m25296l();\n r3 = com.facebook.graphql.modelutil.ModelHelper.a(r6, r3);\n r4 = 4;\n r6.c(r4);\n r4 = 0;\n r6.b(r4, r0);\n r0 = 1;\n r6.b(r0, r1);\n r0 = 2;\n r6.b(r0, r2);\n r0 = 3;\n r6.b(r0, r3);\n r5.i();\n r0 = r6.d();\n return r0;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.facebook.tagging.graphql.protocol.FetchGroupMembersToMentionQueryModels.FetchGroupMembersToMentionQueryModel.GroupMentionsModel.NonMemberSectionModel.EdgesModel.NodeModel.a(com.facebook.flatbuffers.FlatBufferBuilder):int\");\n }", "title": "" }, { "docid": "1362a7a54b4c7fdb72cd372fb2627efd", "score": "0.6317685", "text": "private int j() {\n block8: {\n block5: {\n block6: {\n block7: {\n var1_1 = this.x;\n var2_2 = var1_1.hashCode();\n var3_3 = 1731;\n var4_4 = 2;\n var5_5 = 1;\n if (var2_2 == var3_3) break block5;\n var3_3 = 48665;\n if (var2_2 == var3_3) break block6;\n var3_3 = 48820;\n if (var2_2 == var3_3) break block7;\n var3_3 = 50587;\n if (var2_2 != var3_3 || (var7_10 = (int)var1_1.equals(var6_6 = \"30X\")) == 0) ** GOTO lbl-1000\n var7_10 = var4_4;\n break block8;\n }\n var6_7 = \"15X\";\n var7_10 = (int)var1_1.equals(var6_7);\n if (var7_10 == 0) ** GOTO lbl-1000\n var7_10 = var5_5;\n break block8;\n }\n var6_8 = \"10X\";\n var7_10 = (int)var1_1.equals(var6_8);\n if (var7_10 == 0) ** GOTO lbl-1000\n var7_10 = 0;\n var1_1 = null;\n break block8;\n }\n var6_9 = \"5X\";\n var7_10 = var1_1.equals(var6_9);\n if (var7_10 != 0) {\n var7_10 = 3;\n } else lbl-1000:\n // 4 sources\n\n {\n var7_10 = -1;\n }\n }\n if (var7_10 != 0) {\n if (var7_10 != var5_5) {\n if (var7_10 != var4_4) {\n return 2131231517;\n }\n return 2131231515;\n }\n return 2131231511;\n }\n return 2131231509;\n }", "title": "" }, { "docid": "e0f93966660857805640054786ee19d1", "score": "0.6309003", "text": "public void mo1952a(CF r5, int r6) {\n /*\n r4 = this;\n T8<java.lang.String, T8<java.lang.String, zF>> r0 = f861p // Catch:{ all -> 0x00aa }\n monitor-enter(r0) // Catch:{ all -> 0x00aa }\n T8<java.lang.String, T8<java.lang.String, zF>> r1 = f861p // Catch:{ all -> 0x00a7 }\n java.lang.String r2 = r5.b // Catch:{ all -> 0x00a7 }\n java.lang.Object r1 = r1.get(r2) // Catch:{ all -> 0x00a7 }\n T8 r1 = (T8) r1 // Catch:{ all -> 0x00a7 }\n if (r1 != 0) goto L_0x0025\n monitor-exit(r0) // Catch:{ all -> 0x00a7 }\n T8<java.lang.String, T8<java.lang.String, zF>> r5 = f861p\n monitor-enter(r5)\n T8<java.lang.String, T8<java.lang.String, zF>> r6 = f861p // Catch:{ all -> 0x0022 }\n boolean r6 = r6.isEmpty() // Catch:{ all -> 0x0022 }\n if (r6 == 0) goto L_0x0020\n int r6 = r4.f867k // Catch:{ all -> 0x0022 }\n r4.stopSelf(r6) // Catch:{ all -> 0x0022 }\n L_0x0020:\n monitor-exit(r5) // Catch:{ all -> 0x0022 }\n return\n L_0x0022:\n r6 = move-exception\n monitor-exit(r5) // Catch:{ all -> 0x0022 }\n throw r6\n L_0x0025:\n java.lang.String r2 = r5.a // Catch:{ all -> 0x00a7 }\n java.lang.Object r2 = r1.remove(r2) // Catch:{ all -> 0x00a7 }\n zF r2 = (zF) r2 // Catch:{ all -> 0x00a7 }\n if (r2 != 0) goto L_0x0045\n monitor-exit(r0) // Catch:{ all -> 0x00a7 }\n T8<java.lang.String, T8<java.lang.String, zF>> r5 = f861p\n monitor-enter(r5)\n T8<java.lang.String, T8<java.lang.String, zF>> r6 = f861p // Catch:{ all -> 0x0042 }\n boolean r6 = r6.isEmpty() // Catch:{ all -> 0x0042 }\n if (r6 == 0) goto L_0x0040\n int r6 = r4.f867k // Catch:{ all -> 0x0042 }\n r4.stopSelf(r6) // Catch:{ all -> 0x0042 }\n L_0x0040:\n monitor-exit(r5) // Catch:{ all -> 0x0042 }\n return\n L_0x0042:\n r6 = move-exception\n monitor-exit(r5) // Catch:{ all -> 0x0042 }\n throw r6\n L_0x0045:\n boolean r1 = r1.isEmpty() // Catch:{ all -> 0x00a7 }\n if (r1 == 0) goto L_0x0052\n T8<java.lang.String, T8<java.lang.String, zF>> r1 = f861p // Catch:{ all -> 0x00a7 }\n java.lang.String r3 = r5.b // Catch:{ all -> 0x00a7 }\n r1.remove(r3) // Catch:{ all -> 0x00a7 }\n L_0x0052:\n monitor-exit(r0) // Catch:{ all -> 0x00a7 }\n boolean r0 = r5.f() // Catch:{ all -> 0x00aa }\n r1 = 1\n if (r0 == 0) goto L_0x0065\n FF r0 = r5.a() // Catch:{ all -> 0x00aa }\n boolean r0 = r0 instanceof FF.a // Catch:{ all -> 0x00aa }\n if (r0 == 0) goto L_0x0065\n if (r6 == r1) goto L_0x0065\n goto L_0x0066\n L_0x0065:\n r1 = 0\n L_0x0066:\n if (r1 == 0) goto L_0x006c\n r4.mo1951a((CF) r5) // Catch:{ all -> 0x00aa }\n goto L_0x0092\n L_0x006c:\n java.lang.String r0 = \"FJD.GooglePlayReceiver\"\n r1 = 2\n boolean r0 = android.util.Log.isLoggable(r0, r1) // Catch:{ all -> 0x00aa }\n if (r0 == 0) goto L_0x008f\n java.lang.StringBuilder r0 = new java.lang.StringBuilder // Catch:{ all -> 0x00aa }\n r0.<init>() // Catch:{ all -> 0x00aa }\n java.lang.String r1 = \"sending jobFinished for \"\n r0.append(r1) // Catch:{ all -> 0x00aa }\n java.lang.String r5 = r5.a // Catch:{ all -> 0x00aa }\n r0.append(r5) // Catch:{ all -> 0x00aa }\n java.lang.String r5 = \" = \"\n r0.append(r5) // Catch:{ all -> 0x00aa }\n r0.append(r6) // Catch:{ all -> 0x00aa }\n r0.toString() // Catch:{ all -> 0x00aa }\n L_0x008f:\n m760a((zF) r2, (int) r6) // Catch:{ all -> 0x00aa }\n L_0x0092:\n T8<java.lang.String, T8<java.lang.String, zF>> r5 = f861p\n monitor-enter(r5)\n T8<java.lang.String, T8<java.lang.String, zF>> r6 = f861p // Catch:{ all -> 0x00a4 }\n boolean r6 = r6.isEmpty() // Catch:{ all -> 0x00a4 }\n if (r6 == 0) goto L_0x00a2\n int r6 = r4.f867k // Catch:{ all -> 0x00a4 }\n r4.stopSelf(r6) // Catch:{ all -> 0x00a4 }\n L_0x00a2:\n monitor-exit(r5) // Catch:{ all -> 0x00a4 }\n return\n L_0x00a4:\n r6 = move-exception\n monitor-exit(r5) // Catch:{ all -> 0x00a4 }\n throw r6\n L_0x00a7:\n r5 = move-exception\n monitor-exit(r0) // Catch:{ all -> 0x00a7 }\n throw r5 // Catch:{ all -> 0x00aa }\n L_0x00aa:\n r5 = move-exception\n T8<java.lang.String, T8<java.lang.String, zF>> r6 = f861p\n monitor-enter(r6)\n T8<java.lang.String, T8<java.lang.String, zF>> r0 = f861p // Catch:{ all -> 0x00bd }\n boolean r0 = r0.isEmpty() // Catch:{ all -> 0x00bd }\n if (r0 == 0) goto L_0x00bb\n int r0 = r4.f867k // Catch:{ all -> 0x00bd }\n r4.stopSelf(r0) // Catch:{ all -> 0x00bd }\n L_0x00bb:\n monitor-exit(r6) // Catch:{ all -> 0x00bd }\n throw r5\n L_0x00bd:\n r5 = move-exception\n monitor-exit(r6) // Catch:{ all -> 0x00bd }\n throw r5\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.firebase.jobdispatcher.GooglePlayReceiver.mo1952a(CF, int):void\");\n }", "title": "" }, { "docid": "ea502ae6aed7abd8477391e6e91bea92", "score": "0.62849593", "text": "void m70975c() {\n /*\n r20 = this;\n r8 = r20;\n monitor-enter(r20);\n r1 = r8.f61653f;\t Catch:{ all -> 0x00d2 }\n r2 = 1;\n if (r1 == 0) goto L_0x000c;\n L_0x0008:\n r8.f61654g = r2;\t Catch:{ all -> 0x00d2 }\n monitor-exit(r20);\t Catch:{ all -> 0x00d2 }\n return;\n L_0x000c:\n r8.f61653f = r2;\t Catch:{ all -> 0x00d2 }\n r1 = r8.f61659l;\t Catch:{ all -> 0x00d2 }\n r2 = r8.f61655h;\t Catch:{ all -> 0x00d2 }\n r4 = r8.f61658k;\t Catch:{ all -> 0x00d2 }\n if (r4 == 0) goto L_0x0022;\n L_0x0016:\n r5 = f61647m;\t Catch:{ all -> 0x00d2 }\n if (r4 == r5) goto L_0x0022;\n L_0x001a:\n r5 = r8.f61650c;\t Catch:{ all -> 0x00d2 }\n if (r5 != 0) goto L_0x0022;\n L_0x001e:\n r5 = f61647m;\t Catch:{ all -> 0x00d2 }\n r8.f61658k = r5;\t Catch:{ all -> 0x00d2 }\n L_0x0022:\n monitor-exit(r20);\t Catch:{ all -> 0x00d2 }\n r9 = r8.f61652e;\n r10 = r8.f61651d;\n r11 = r8.f61648a;\n r5 = r8.f61657j;\n r14 = r1;\n r12 = r2;\n r15 = r4;\n r16 = r5;\n L_0x0030:\n r1 = 0;\n r17 = r1;\n L_0x0034:\n r1 = (r17 > r12 ? 1 : (r17 == r12 ? 0 : -1));\n if (r1 == 0) goto L_0x007a;\n L_0x0038:\n r1 = r11.isUnsubscribed();\n if (r1 == 0) goto L_0x003f;\n L_0x003e:\n return;\n L_0x003f:\n r19 = r9.isEmpty();\n r1 = r8;\n r2 = r16;\n r3 = r14;\n r4 = r15;\n r5 = r9;\n r6 = r11;\n r7 = r19;\n r1 = r1.m70971a(r2, r3, r4, r5, r6, r7);\n if (r1 == 0) goto L_0x0053;\n L_0x0052:\n return;\n L_0x0053:\n if (r19 == 0) goto L_0x0056;\n L_0x0055:\n goto L_0x007a;\n L_0x0056:\n r1 = r9.poll();\n r1 = (rx.internal.operators.aw.C19706c) r1;\n r2 = r9.poll();\n r2 = rx.internal.operators.NotificationLite.m69891e(r2);\n r3 = r10.get();\n r5 = r1.f61645a;\n r1 = (r3 > r5 ? 1 : (r3 == r5 ? 0 : -1));\n if (r1 != 0) goto L_0x0034;\n L_0x0070:\n r11.onNext(r2);\n r1 = 1;\n r3 = r17 + r1;\n r17 = r3;\n goto L_0x0034;\n L_0x007a:\n r1 = (r17 > r12 ? 1 : (r17 == r12 ? 0 : -1));\n if (r1 != 0) goto L_0x0097;\n L_0x007e:\n r1 = r11.isUnsubscribed();\n if (r1 == 0) goto L_0x0085;\n L_0x0084:\n return;\n L_0x0085:\n r2 = r8.f61657j;\n r7 = r9.isEmpty();\n r1 = r8;\n r3 = r14;\n r4 = r15;\n r5 = r9;\n r6 = r11;\n r1 = r1.m70971a(r2, r3, r4, r5, r6, r7);\n if (r1 == 0) goto L_0x0097;\n L_0x0096:\n return;\n L_0x0097:\n monitor-enter(r20);\n r1 = r8.f61655h;\t Catch:{ all -> 0x00ce }\n r3 = 9223372036854775807; // 0x7fffffffffffffff float:NaN double:NaN;\n r5 = (r1 > r3 ? 1 : (r1 == r3 ? 0 : -1));\n if (r5 == 0) goto L_0x00a9;\n L_0x00a3:\n r3 = r1 - r17;\n r8.f61655h = r3;\t Catch:{ all -> 0x00ce }\n r12 = r3;\n goto L_0x00aa;\n L_0x00a9:\n r12 = r1;\n L_0x00aa:\n r1 = r8.f61654g;\t Catch:{ all -> 0x00ce }\n r2 = 0;\n if (r1 != 0) goto L_0x00b3;\n L_0x00af:\n r8.f61653f = r2;\t Catch:{ all -> 0x00ce }\n monitor-exit(r20);\t Catch:{ all -> 0x00ce }\n return;\n L_0x00b3:\n r8.f61654g = r2;\t Catch:{ all -> 0x00ce }\n r1 = r8.f61657j;\t Catch:{ all -> 0x00ce }\n r14 = r8.f61659l;\t Catch:{ all -> 0x00ce }\n r15 = r8.f61658k;\t Catch:{ all -> 0x00ce }\n if (r15 == 0) goto L_0x00c9;\n L_0x00bd:\n r2 = f61647m;\t Catch:{ all -> 0x00ce }\n if (r15 == r2) goto L_0x00c9;\n L_0x00c1:\n r2 = r8.f61650c;\t Catch:{ all -> 0x00ce }\n if (r2 != 0) goto L_0x00c9;\n L_0x00c5:\n r2 = f61647m;\t Catch:{ all -> 0x00ce }\n r8.f61658k = r2;\t Catch:{ all -> 0x00ce }\n L_0x00c9:\n monitor-exit(r20);\t Catch:{ all -> 0x00ce }\n r16 = r1;\n goto L_0x0030;\n L_0x00ce:\n r0 = move-exception;\n r1 = r0;\n monitor-exit(r20);\t Catch:{ all -> 0x00ce }\n throw r1;\n L_0x00d2:\n r0 = move-exception;\n r1 = r0;\n monitor-exit(r20);\t Catch:{ all -> 0x00d2 }\n throw r1;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: rx.internal.operators.aw.d.c():void\");\n }", "title": "" }, { "docid": "6bf3caedebe7af6615ea9c9414ee7882", "score": "0.62343377", "text": "private void m24507m() {\n /*\n r9 = this;\n java.lang.String r0 = r9.f20070l\n java.lang.StringBuilder r1 = new java.lang.StringBuilder\n r1.<init>()\n int r2 = r9.f20060b\n r1.append(r2)\n java.lang.String r2 = \"\"\n r1.append(r2)\n java.lang.String r1 = r1.toString()\n boolean r0 = r0.equals(r1)\n r1 = 1\n r2 = 0\n if (r0 != 0) goto L_0x006e\n mega.boicot.config r0 = r9.f20079u\n java.lang.String r0 = r0.f18010cu\n java.lang.String r3 = \"\"\n boolean r0 = r0.equals(r3)\n if (r0 != 0) goto L_0x0037\n mega.boicot.config r0 = r9.f20079u\n int r0 = r0.f17990cS\n if (r0 == 0) goto L_0x0037\n mega.boicot.config r0 = r9.f20079u\n int r0 = r0.f17991cT\n if (r0 == 0) goto L_0x0037\n r0 = r1\n goto L_0x0038\n L_0x0037:\n r0 = r2\n L_0x0038:\n mega.boicot.config r3 = r9.f20079u\n java.lang.String r3 = r3.f17978cG\n java.lang.String r4 = \"\"\n boolean r3 = r3.equals(r4)\n if (r3 != 0) goto L_0x0056\n mega.boicot.config r3 = r9.f20079u\n java.util.ArrayList<com.appnext.nativeads.NativeAd> r3 = r3.f18072eq\n if (r3 == 0) goto L_0x0056\n mega.boicot.config r3 = r9.f20079u\n java.util.ArrayList<com.appnext.nativeads.NativeAd> r3 = r3.f18072eq\n int r3 = r3.size()\n if (r3 <= 0) goto L_0x0056\n r3 = r1\n goto L_0x0057\n L_0x0056:\n r3 = r2\n L_0x0057:\n mega.boicot.config r4 = r9.f20079u\n java.lang.String r4 = r4.f17981cJ\n java.lang.String r5 = \"\"\n boolean r4 = r4.equals(r5)\n r4 = r4 ^ r1\n mega.boicot.config r5 = r9.f20079u\n java.lang.String r5 = r5.f17983cL\n java.lang.String r6 = \"\"\n boolean r5 = r5.equals(r6)\n r5 = r5 ^ r1\n goto L_0x0072\n L_0x006e:\n r0 = r2\n r3 = r0\n r4 = r3\n r5 = r4\n L_0x0072:\n java.util.ArrayList r6 = new java.util.ArrayList\n r6.<init>()\n if (r0 == 0) goto L_0x0080\n java.lang.Integer r0 = java.lang.Integer.valueOf(r1)\n r6.add(r0)\n L_0x0080:\n r0 = 2\n if (r3 == 0) goto L_0x008a\n java.lang.Integer r3 = java.lang.Integer.valueOf(r0)\n r6.add(r3)\n L_0x008a:\n r3 = 3\n if (r4 == 0) goto L_0x0094\n java.lang.Integer r4 = java.lang.Integer.valueOf(r3)\n r6.add(r4)\n L_0x0094:\n r4 = 4\n if (r5 == 0) goto L_0x009e\n java.lang.Integer r5 = java.lang.Integer.valueOf(r4)\n r6.add(r5)\n L_0x009e:\n boolean r5 = r6.isEmpty()\n if (r5 != 0) goto L_0x00c0\n java.util.Random r5 = new java.util.Random\n r5.<init>()\n int r7 = r6.size()\n int r7 = r7 - r1\n int r7 = r7 - r2\n int r7 = r7 + r1\n int r5 = r5.nextInt(r7)\n int r5 = r5 + r2\n java.lang.Object r5 = r6.get(r5)\n java.lang.Integer r5 = (java.lang.Integer) r5\n int r5 = r5.intValue()\n goto L_0x00c1\n L_0x00c0:\n r5 = r2\n L_0x00c1:\n if (r5 != r1) goto L_0x00c7\n r0 = r2\n r3 = r0\n L_0x00c5:\n r4 = r3\n goto L_0x00de\n L_0x00c7:\n if (r5 != r0) goto L_0x00cd\n r0 = r1\n r1 = r2\n L_0x00cb:\n r3 = r1\n goto L_0x00c5\n L_0x00cd:\n if (r5 != r3) goto L_0x00d4\n r3 = r1\n r0 = r2\n r1 = r0\n r4 = r1\n goto L_0x00de\n L_0x00d4:\n if (r5 != r4) goto L_0x00db\n r4 = r1\n r0 = r2\n r1 = r0\n r3 = r1\n goto L_0x00de\n L_0x00db:\n r0 = r2\n r1 = r0\n goto L_0x00cb\n L_0x00de:\n r5 = 2131231215(0x7f0801ef, float:1.8078505E38)\n r6 = 8\n r7 = 2131231216(0x7f0801f0, float:1.8078507E38)\n r8 = 2131231517(0x7f08031d, float:1.8079117E38)\n if (r1 == 0) goto L_0x012c\n com.google.android.gms.ads.AdView r0 = new com.google.android.gms.ads.AdView\n r0.<init>(r9)\n com.google.android.gms.ads.d r1 = com.google.android.gms.ads.C2973d.f8693c\n r0.setAdSize(r1)\n mega.boicot.config r1 = r9.f20079u\n java.lang.String r1 = r1.f18010cu\n r0.setAdUnitId(r1)\n android.view.View r1 = r9.findViewById(r8)\n r1.setVisibility(r6)\n android.view.View r1 = r9.findViewById(r5)\n android.widget.LinearLayout r1 = (android.widget.LinearLayout) r1\n r1.setVisibility(r2)\n android.view.View r1 = r9.findViewById(r7)\n android.widget.LinearLayout r1 = (android.widget.LinearLayout) r1\n r1.removeAllViews()\n android.view.View r1 = r9.findViewById(r7)\n android.widget.LinearLayout r1 = (android.widget.LinearLayout) r1\n r1.addView(r0)\n com.google.android.gms.ads.c$a r1 = new com.google.android.gms.ads.c$a\n r1.<init>()\n com.google.android.gms.ads.c r1 = r1.mo12209a()\n r0.mo12166a(r1)\n goto L_0x01c9\n L_0x012c:\n if (r0 == 0) goto L_0x015d\n java.lang.StringBuilder r0 = new java.lang.StringBuilder\n r0.<init>()\n java.lang.String r1 = \"#\"\n r0.append(r1)\n java.lang.String r1 = r9.f20075q\n r0.append(r1)\n java.lang.String r0 = r0.toString()\n boolean r0 = mega.boicot.config.m23844a(r0)\n if (r0 == 0) goto L_0x0152\n android.view.View r0 = r9.findViewById(r8)\n android.widget.TextView r0 = (android.widget.TextView) r0\n int r1 = mega.boicot.config.f17813a\n r0.setTextColor(r1)\n L_0x0152:\n mega.boicot.config r2 = r9.f20079u\n r4 = 1\n r5 = 2\n r6 = -1\n r7 = 0\n r3 = r9\n r2.mo20765a(r3, r4, r5, r6, r7)\n goto L_0x01c9\n L_0x015d:\n if (r3 == 0) goto L_0x017b\n com.facebook.ads.NativeBannerAd r0 = new com.facebook.ads.NativeBannerAd\n mega.boicot.config r1 = r9.f20079u\n java.lang.String r1 = r1.f17981cJ\n r0.<init>(r9, r1)\n mega.boicot.profile$16 r1 = new mega.boicot.profile$16\n r1.<init>(r0)\n r0.setAdListener(r1)\n android.view.View r1 = r9.findViewById(r8)\n r1.setVisibility(r6)\n r0.loadAd()\n goto L_0x01c9\n L_0x017b:\n if (r4 == 0) goto L_0x01c1\n com.startapp.android.publish.ads.banner.Banner r0 = new com.startapp.android.publish.ads.banner.Banner\n r0.<init>(r9)\n java.lang.String r1 = \"BANNER PROFILE\"\n r0.setAdTag(r1)\n android.widget.RelativeLayout$LayoutParams r1 = new android.widget.RelativeLayout$LayoutParams\n r3 = -2\n r1.<init>(r3, r3)\n int r3 = android.os.Build.VERSION.SDK_INT\n r4 = 17\n if (r3 < r4) goto L_0x0199\n r3 = 20\n r1.addRule(r3)\n goto L_0x019e\n L_0x0199:\n r3 = 9\n r1.addRule(r3)\n L_0x019e:\n android.view.View r3 = r9.findViewById(r8)\n r3.setVisibility(r6)\n android.view.View r3 = r9.findViewById(r5)\n android.widget.LinearLayout r3 = (android.widget.LinearLayout) r3\n r3.setVisibility(r2)\n android.view.View r2 = r9.findViewById(r7)\n android.widget.LinearLayout r2 = (android.widget.LinearLayout) r2\n r2.removeAllViews()\n android.view.View r2 = r9.findViewById(r7)\n android.widget.LinearLayout r2 = (android.widget.LinearLayout) r2\n r2.addView(r0, r1)\n goto L_0x01c9\n L_0x01c1:\n mega.boicot.config r0 = r9.f20079u\n mega.boicot.c r0 = r0.mo20760a(r9, r2)\n r9.f20048ao = r0\n L_0x01c9:\n return\n */\n throw new UnsupportedOperationException(\"Method not decompiled: mega.boicot.profile.m24507m():void\");\n }", "title": "" }, { "docid": "158a3e771f9c4d4e310a2a10ee0b3bc1", "score": "0.6227021", "text": "public boolean c() {\n /*\n r6 = this;\n r0 = r6.p;\n if (r0 != 0) goto L_0x00b0;\n L_0x0004:\n r1 = new java.lang.StringBuilder;\n r1.<init>();\n r0 = z;\t Catch:{ IllegalArgumentException -> 0x00a5 }\n r2 = 38;\n r0 = r0[r2];\t Catch:{ IllegalArgumentException -> 0x00a5 }\n r0 = r1.append(r0);\t Catch:{ IllegalArgumentException -> 0x00a5 }\n r2 = r6.t;\t Catch:{ IllegalArgumentException -> 0x00a5 }\n r0.append(r2);\t Catch:{ IllegalArgumentException -> 0x00a5 }\n r0 = z;\t Catch:{ IllegalArgumentException -> 0x00a5 }\n r2 = 45;\n r0 = r0[r2];\t Catch:{ IllegalArgumentException -> 0x00a5 }\n r2 = r1.append(r0);\t Catch:{ IllegalArgumentException -> 0x00a5 }\n r0 = r6.p;\t Catch:{ IllegalArgumentException -> 0x00a5 }\n if (r0 != 0) goto L_0x00a7;\n L_0x0026:\n r0 = z;\t Catch:{ IllegalArgumentException -> 0x00a5 }\n r3 = 39;\n r0 = r0[r3];\t Catch:{ IllegalArgumentException -> 0x00a5 }\n L_0x002c:\n r2.append(r0);\t Catch:{ IllegalArgumentException -> 0x00aa }\n r0 = z;\t Catch:{ IllegalArgumentException -> 0x00aa }\n r2 = 42;\n r0 = r0[r2];\t Catch:{ IllegalArgumentException -> 0x00aa }\n r1.append(r0);\t Catch:{ IllegalArgumentException -> 0x00aa }\n r0 = r6.l;\t Catch:{ IllegalArgumentException -> 0x00aa }\n if (r0 != 0) goto L_0x0049;\n L_0x003c:\n r0 = z;\t Catch:{ IllegalArgumentException -> 0x00ac }\n r2 = 40;\n r0 = r0[r2];\t Catch:{ IllegalArgumentException -> 0x00ac }\n r1.append(r0);\t Catch:{ IllegalArgumentException -> 0x00ac }\n r0 = s;\t Catch:{ IllegalArgumentException -> 0x00ac }\n if (r0 == 0) goto L_0x005f;\n L_0x0049:\n r0 = r6.l;\t Catch:{ IllegalArgumentException -> 0x00ac }\n r2 = r0.a;\t Catch:{ IllegalArgumentException -> 0x00ac }\n r0 = r1.append(r2);\t Catch:{ IllegalArgumentException -> 0x00ac }\n r2 = \"-\";\n r0 = r0.append(r2);\t Catch:{ IllegalArgumentException -> 0x00ac }\n r2 = r6.l;\t Catch:{ IllegalArgumentException -> 0x00ac }\n r2 = r2.b;\t Catch:{ IllegalArgumentException -> 0x00ac }\n r0.append(r2);\t Catch:{ IllegalArgumentException -> 0x00ac }\n L_0x005f:\n r0 = z;\t Catch:{ IllegalArgumentException -> 0x00ae }\n r2 = 44;\n r0 = r0[r2];\t Catch:{ IllegalArgumentException -> 0x00ae }\n r0 = r1.append(r0);\t Catch:{ IllegalArgumentException -> 0x00ae }\n r2 = r6.u;\t Catch:{ IllegalArgumentException -> 0x00ae }\n r0.append(r2);\t Catch:{ IllegalArgumentException -> 0x00ae }\n r0 = z;\t Catch:{ IllegalArgumentException -> 0x00ae }\n r2 = 41;\n r0 = r0[r2];\t Catch:{ IllegalArgumentException -> 0x00ae }\n r0 = r1.append(r0);\t Catch:{ IllegalArgumentException -> 0x00ae }\n r2 = r6.m;\t Catch:{ IllegalArgumentException -> 0x00ae }\n r0.append(r2);\t Catch:{ IllegalArgumentException -> 0x00ae }\n r2 = r6.t;\t Catch:{ IllegalArgumentException -> 0x00ae }\n r4 = -1;\n r0 = (r2 > r4 ? 1 : (r2 == r4 ? 0 : -1));\n if (r0 == 0) goto L_0x00a3;\n L_0x0085:\n r0 = new java.lang.StringBuilder;\t Catch:{ IllegalArgumentException -> 0x00ae }\n r0.<init>();\t Catch:{ IllegalArgumentException -> 0x00ae }\n r2 = z;\t Catch:{ IllegalArgumentException -> 0x00ae }\n r3 = 43;\n r2 = r2[r3];\t Catch:{ IllegalArgumentException -> 0x00ae }\n r0 = r0.append(r2);\t Catch:{ IllegalArgumentException -> 0x00ae }\n r1 = r1.toString();\t Catch:{ IllegalArgumentException -> 0x00ae }\n r0 = r0.append(r1);\t Catch:{ IllegalArgumentException -> 0x00ae }\n r0 = r0.toString();\t Catch:{ IllegalArgumentException -> 0x00ae }\n com.whatsapp.util.Log.e(r0);\t Catch:{ IllegalArgumentException -> 0x00ae }\n L_0x00a3:\n r0 = 0;\n L_0x00a4:\n return r0;\n L_0x00a5:\n r0 = move-exception;\n throw r0;\n L_0x00a7:\n r0 = r6.p;\n goto L_0x002c;\n L_0x00aa:\n r0 = move-exception;\n throw r0;\t Catch:{ IllegalArgumentException -> 0x00ac }\n L_0x00ac:\n r0 = move-exception;\n throw r0;\n L_0x00ae:\n r0 = move-exception;\n throw r0;\n L_0x00b0:\n r0 = r6.p;\n r0 = com.whatsapp.qm.i(r0);\n goto L_0x00a4;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.whatsapp.l5.c():boolean\");\n }", "title": "" }, { "docid": "e1e5cba54eedf6b9622484688dbdee69", "score": "0.62265784", "text": "public final void a(defpackage.bgy r11) {\n /*\n r10 = this;\n r6 = r10.b;\n r1 = r11.a;\n r5 = r11.c;\n r4 = r11.e;\n r7 = r11.f;\n if (r4 == 0) goto L_0x0012;\n L_0x000c:\n r0 = r4.size();\n if (r0 != 0) goto L_0x0014;\n L_0x0012:\n if (r7 == 0) goto L_0x005b;\n L_0x0014:\n if (r4 == 0) goto L_0x006a;\n L_0x0016:\n r2 = r4.size();\n r0 = 1;\n if (r2 <= r0) goto L_0x005c;\n L_0x001d:\n r3 = new java.lang.StringBuilder;\n r3.<init>();\n r8 = r4.iterator();\n L_0x0026:\n r0 = r8.hasNext();\n if (r0 == 0) goto L_0x003f;\n L_0x002c:\n r0 = r8.next();\n r0 = (java.lang.String) r0;\n r3.append(r0);\n r0 = r2 + -1;\n if (r0 <= 0) goto L_0x0026;\n L_0x0039:\n r0 = \";\";\n r3.append(r0);\n goto L_0x0026;\n L_0x003f:\n r0 = r3.toString();\n L_0x0043:\n r3 = r0.trim();\n L_0x0047:\n r0 = \"VERSION\";\n r0 = r1.equals(r0);\n if (r0 != 0) goto L_0x005b;\n L_0x004f:\n r0 = \"FN\";\n r0 = r1.equals(r0);\n if (r0 == 0) goto L_0x006c;\n L_0x0057:\n r0 = r6.b;\n r0.f = r3;\n L_0x005b:\n return;\n L_0x005c:\n r0 = 1;\n if (r2 != r0) goto L_0x0067;\n L_0x005f:\n r0 = 0;\n r0 = r4.get(r0);\n r0 = (java.lang.String) r0;\n goto L_0x0043;\n L_0x0067:\n r0 = \"\";\n goto L_0x0043;\n L_0x006a:\n r3 = 0;\n goto L_0x0047;\n L_0x006c:\n r0 = \"NAME\";\n r0 = r1.equals(r0);\n if (r0 == 0) goto L_0x0083;\n L_0x0074:\n r0 = r6.b;\n r0 = r0.f;\n r0 = android.text.TextUtils.isEmpty(r0);\n if (r0 == 0) goto L_0x005b;\n L_0x007e:\n r0 = r6.b;\n r0.f = r3;\n goto L_0x005b;\n L_0x0083:\n r0 = \"N\";\n r0 = r1.equals(r0);\n if (r0 == 0) goto L_0x0172;\n L_0x008b:\n r0 = r6.n;\n r0 = defpackage.bfr.b(r0);\n if (r0 == 0) goto L_0x00cc;\n L_0x0093:\n r0 = r6.b;\n r0 = r0.g;\n r0 = android.text.TextUtils.isEmpty(r0);\n if (r0 == 0) goto L_0x00b1;\n L_0x009d:\n r0 = r6.b;\n r0 = r0.i;\n r0 = android.text.TextUtils.isEmpty(r0);\n if (r0 == 0) goto L_0x00b1;\n L_0x00a7:\n r0 = r6.b;\n r0 = r0.h;\n r0 = android.text.TextUtils.isEmpty(r0);\n if (r0 != 0) goto L_0x00cc;\n L_0x00b1:\n if (r4 == 0) goto L_0x005b;\n L_0x00b3:\n r0 = r4.size();\n if (r0 <= 0) goto L_0x005b;\n L_0x00b9:\n r1 = 5;\n if (r0 <= r1) goto L_0x00bd;\n L_0x00bc:\n r0 = 5;\n L_0x00bd:\n switch(r0) {\n case 2: goto L_0x0165;\n case 3: goto L_0x015a;\n case 4: goto L_0x014f;\n case 5: goto L_0x0144;\n default: goto L_0x00c0;\n };\n L_0x00c0:\n r1 = r6.b;\n r0 = 0;\n r0 = r4.get(r0);\n r0 = (java.lang.String) r0;\n r1.a = r0;\n goto L_0x005b;\n L_0x00cc:\n r0 = \"SORT-AS\";\n r0 = r5.get(r0);\n r0 = (java.util.Collection) r0;\n if (r0 == 0) goto L_0x00b1;\n L_0x00d6:\n r1 = r0.size();\n if (r1 == 0) goto L_0x00b1;\n L_0x00dc:\n r1 = r0.size();\n r2 = 1;\n if (r1 <= r2) goto L_0x0100;\n L_0x00e3:\n r2 = \"vCard\";\n r3 = \"Incorrect multiple SORT_AS parameters detected: \";\n r1 = r0.toArray();\n r1 = java.util.Arrays.toString(r1);\n r1 = java.lang.String.valueOf(r1);\n r5 = r1.length();\n if (r5 == 0) goto L_0x0127;\n L_0x00f9:\n r1 = r3.concat(r1);\n L_0x00fd:\n android.util.Log.w(r2, r1);\n L_0x0100:\n r0 = r0.iterator();\n r0 = r0.next();\n r0 = (java.lang.String) r0;\n r1 = r6.n;\n r1 = defpackage.bha.a(r0, r1);\n r0 = r1.size();\n r2 = 3;\n if (r0 <= r2) goto L_0x0118;\n L_0x0117:\n r0 = 3;\n L_0x0118:\n switch(r0) {\n case 2: goto L_0x0138;\n case 3: goto L_0x012d;\n default: goto L_0x011b;\n };\n L_0x011b:\n r2 = r6.b;\n r0 = 0;\n r0 = r1.get(r0);\n r0 = (java.lang.String) r0;\n r2.g = r0;\n goto L_0x00b1;\n L_0x0127:\n r1 = new java.lang.String;\n r1.<init>(r3);\n goto L_0x00fd;\n L_0x012d:\n r2 = r6.b;\n r0 = 2;\n r0 = r1.get(r0);\n r0 = (java.lang.String) r0;\n r2.i = r0;\n L_0x0138:\n r2 = r6.b;\n r0 = 1;\n r0 = r1.get(r0);\n r0 = (java.lang.String) r0;\n r2.h = r0;\n goto L_0x011b;\n L_0x0144:\n r1 = r6.b;\n r0 = 4;\n r0 = r4.get(r0);\n r0 = (java.lang.String) r0;\n r1.e = r0;\n L_0x014f:\n r1 = r6.b;\n r0 = 3;\n r0 = r4.get(r0);\n r0 = (java.lang.String) r0;\n r1.d = r0;\n L_0x015a:\n r1 = r6.b;\n r0 = 2;\n r0 = r4.get(r0);\n r0 = (java.lang.String) r0;\n r1.c = r0;\n L_0x0165:\n r1 = r6.b;\n r0 = 1;\n r0 = r4.get(r0);\n r0 = (java.lang.String) r0;\n r1.b = r0;\n goto L_0x00c0;\n L_0x0172:\n r0 = \"SORT-STRING\";\n r0 = r1.equals(r0);\n if (r0 == 0) goto L_0x0180;\n L_0x017a:\n r0 = r6.b;\n r0.j = r3;\n goto L_0x005b;\n L_0x0180:\n r0 = \"NICKNAME\";\n r0 = r1.equals(r0);\n if (r0 != 0) goto L_0x0190;\n L_0x0188:\n r0 = \"X-NICKNAME\";\n r0 = r1.equals(r0);\n if (r0 == 0) goto L_0x01a7;\n L_0x0190:\n r0 = r6.h;\n if (r0 != 0) goto L_0x019b;\n L_0x0194:\n r0 = new java.util.ArrayList;\n r0.<init>();\n r6.h = r0;\n L_0x019b:\n r0 = r6.h;\n r1 = new bge;\n r1.<init>(r3);\n r0.add(r1);\n goto L_0x005b;\n L_0x01a7:\n r0 = \"SOUND\";\n r0 = r1.equals(r0);\n if (r0 == 0) goto L_0x01cc;\n L_0x01af:\n r0 = \"TYPE\";\n r0 = r5.get(r0);\n r0 = (java.util.Collection) r0;\n if (r0 == 0) goto L_0x005b;\n L_0x01b9:\n r1 = \"X-IRMC-N\";\n r0 = r0.contains(r1);\n if (r0 == 0) goto L_0x005b;\n L_0x01c1:\n r0 = r6.n;\n r0 = defpackage.bha.a(r3, r0);\n r6.a(r0);\n goto L_0x005b;\n L_0x01cc:\n r0 = \"ADR\";\n r0 = r1.equals(r0);\n if (r0 == 0) goto L_0x0289;\n L_0x01d4:\n r1 = 1;\n r2 = r4.iterator();\n L_0x01d9:\n r0 = r2.hasNext();\n if (r0 == 0) goto L_0x061f;\n L_0x01df:\n r0 = r2.next();\n r0 = (java.lang.String) r0;\n r0 = android.text.TextUtils.isEmpty(r0);\n if (r0 != 0) goto L_0x01d9;\n L_0x01eb:\n r0 = 0;\n L_0x01ec:\n if (r0 != 0) goto L_0x005b;\n L_0x01ee:\n r3 = -1;\n r2 = 0;\n r1 = 0;\n r0 = \"TYPE\";\n r0 = r5.get(r0);\n r0 = (java.util.Collection) r0;\n if (r0 == 0) goto L_0x026c;\n L_0x01fb:\n r5 = r0.iterator();\n L_0x01ff:\n r0 = r5.hasNext();\n if (r0 == 0) goto L_0x026c;\n L_0x0205:\n r0 = r5.next();\n r0 = (java.lang.String) r0;\n r7 = r0.toUpperCase();\n r8 = \"PREF\";\n r8 = r7.equals(r8);\n if (r8 == 0) goto L_0x021a;\n L_0x0217:\n r0 = 1;\n r1 = r0;\n goto L_0x01ff;\n L_0x021a:\n r8 = \"HOME\";\n r8 = r7.equals(r8);\n if (r8 == 0) goto L_0x0227;\n L_0x0222:\n r2 = 1;\n r0 = 0;\n r3 = r2;\n r2 = r0;\n goto L_0x01ff;\n L_0x0227:\n r8 = \"WORK\";\n r8 = r7.equals(r8);\n if (r8 != 0) goto L_0x0237;\n L_0x022f:\n r8 = \"COMPANY\";\n r8 = r7.equalsIgnoreCase(r8);\n if (r8 == 0) goto L_0x023c;\n L_0x0237:\n r2 = 2;\n r0 = 0;\n r3 = r2;\n r2 = r0;\n goto L_0x01ff;\n L_0x023c:\n r8 = \"PARCEL\";\n r8 = r7.equals(r8);\n if (r8 != 0) goto L_0x0267;\n L_0x0244:\n r8 = \"DOM\";\n r8 = r7.equals(r8);\n if (r8 != 0) goto L_0x0267;\n L_0x024c:\n r8 = \"INTL\";\n r8 = r7.equals(r8);\n if (r8 != 0) goto L_0x0267;\n L_0x0254:\n if (r3 >= 0) goto L_0x0267;\n L_0x0256:\n r2 = 0;\n r3 = \"X-\";\n r3 = r7.startsWith(r3);\n if (r3 == 0) goto L_0x0269;\n L_0x025f:\n r3 = 2;\n r0 = r0.substring(r3);\n r3 = r2;\n r2 = r0;\n goto L_0x01ff;\n L_0x0267:\n r0 = r2;\n r2 = r3;\n L_0x0269:\n r3 = r2;\n r2 = r0;\n goto L_0x01ff;\n L_0x026c:\n r0 = r3;\n if (r0 >= 0) goto L_0x0270;\n L_0x026f:\n r0 = 1;\n L_0x0270:\n r3 = r6.d;\n if (r3 != 0) goto L_0x027c;\n L_0x0274:\n r3 = new java.util.ArrayList;\n r5 = 0;\n r3.<init>(r5);\n r6.d = r3;\n L_0x027c:\n r3 = r6.d;\n r5 = r6.n;\n r0 = defpackage.bgj.a(r4, r0, r2, r1, r5);\n r3.add(r0);\n goto L_0x005b;\n L_0x0289:\n r0 = \"EMAIL\";\n r0 = r1.equals(r0);\n if (r0 == 0) goto L_0x030d;\n L_0x0291:\n r4 = -1;\n r2 = 0;\n r1 = 0;\n r0 = \"TYPE\";\n r0 = r5.get(r0);\n r0 = (java.util.Collection) r0;\n if (r0 == 0) goto L_0x061a;\n L_0x029e:\n r5 = r0.iterator();\n r9 = r1;\n r1 = r2;\n r2 = r4;\n r4 = r9;\n L_0x02a6:\n r0 = r5.hasNext();\n if (r0 == 0) goto L_0x02f2;\n L_0x02ac:\n r0 = r5.next();\n r0 = (java.lang.String) r0;\n r7 = r0.toUpperCase();\n r8 = \"PREF\";\n r8 = r7.equals(r8);\n if (r8 == 0) goto L_0x02c1;\n L_0x02be:\n r0 = 1;\n r4 = r0;\n goto L_0x02a6;\n L_0x02c1:\n r8 = \"HOME\";\n r8 = r7.equals(r8);\n if (r8 == 0) goto L_0x02cb;\n L_0x02c9:\n r2 = 1;\n goto L_0x02a6;\n L_0x02cb:\n r8 = \"WORK\";\n r8 = r7.equals(r8);\n if (r8 == 0) goto L_0x02d5;\n L_0x02d3:\n r2 = 2;\n goto L_0x02a6;\n L_0x02d5:\n r8 = \"CELL\";\n r8 = r7.equals(r8);\n if (r8 == 0) goto L_0x02df;\n L_0x02dd:\n r2 = 4;\n goto L_0x02a6;\n L_0x02df:\n if (r2 >= 0) goto L_0x0616;\n L_0x02e1:\n r1 = \"X-\";\n r1 = r7.startsWith(r1);\n if (r1 == 0) goto L_0x02ee;\n L_0x02e9:\n r1 = 2;\n r0 = r0.substring(r1);\n L_0x02ee:\n r1 = 0;\n L_0x02ef:\n r2 = r1;\n r1 = r0;\n goto L_0x02a6;\n L_0x02f2:\n r0 = r2;\n L_0x02f3:\n if (r0 >= 0) goto L_0x02f6;\n L_0x02f5:\n r0 = 3;\n L_0x02f6:\n r2 = r6.c;\n if (r2 != 0) goto L_0x0301;\n L_0x02fa:\n r2 = new java.util.ArrayList;\n r2.<init>();\n r6.c = r2;\n L_0x0301:\n r2 = r6.c;\n r5 = new bfw;\n r5.<init>(r3, r0, r1, r4);\n r2.add(r5);\n goto L_0x005b;\n L_0x030d:\n r0 = \"ORG\";\n r0 = r1.equals(r0);\n if (r0 == 0) goto L_0x0341;\n L_0x0315:\n r1 = 0;\n r0 = \"TYPE\";\n r0 = r5.get(r0);\n r0 = (java.util.Collection) r0;\n if (r0 == 0) goto L_0x033b;\n L_0x0320:\n r2 = r0.iterator();\n L_0x0324:\n r0 = r2.hasNext();\n if (r0 == 0) goto L_0x033b;\n L_0x032a:\n r0 = r2.next();\n r0 = (java.lang.String) r0;\n r3 = \"PREF\";\n r0 = r0.equals(r3);\n if (r0 == 0) goto L_0x0613;\n L_0x0338:\n r0 = 1;\n L_0x0339:\n r1 = r0;\n goto L_0x0324;\n L_0x033b:\n r0 = 1;\n r6.a(r0, r4, r5, r1);\n goto L_0x005b;\n L_0x0341:\n r0 = \"TITLE\";\n r0 = r1.equals(r0);\n if (r0 == 0) goto L_0x034e;\n L_0x0349:\n r6.a(r3);\n goto L_0x005b;\n L_0x034e:\n r0 = \"ROLE\";\n r0 = r1.equals(r0);\n if (r0 != 0) goto L_0x005b;\n L_0x0356:\n r0 = \"PHOTO\";\n r0 = r1.equals(r0);\n if (r0 != 0) goto L_0x0366;\n L_0x035e:\n r0 = \"LOGO\";\n r0 = r1.equals(r0);\n if (r0 == 0) goto L_0x03c1;\n L_0x0366:\n r0 = \"VALUE\";\n r0 = r5.get(r0);\n r0 = (java.util.Collection) r0;\n if (r0 == 0) goto L_0x0378;\n L_0x0370:\n r1 = \"URL\";\n r0 = r0.contains(r1);\n if (r0 != 0) goto L_0x005b;\n L_0x0378:\n r0 = \"TYPE\";\n r0 = r5.get(r0);\n r0 = (java.util.Collection) r0;\n r2 = 0;\n r1 = 0;\n if (r0 == 0) goto L_0x03a6;\n L_0x0384:\n r3 = r0.iterator();\n r9 = r1;\n r1 = r2;\n r2 = r9;\n L_0x038b:\n r0 = r3.hasNext();\n if (r0 == 0) goto L_0x03a9;\n L_0x0391:\n r0 = r3.next();\n r0 = (java.lang.String) r0;\n r4 = \"PREF\";\n r4 = r4.equals(r0);\n if (r4 == 0) goto L_0x03a2;\n L_0x039f:\n r0 = 1;\n r2 = r0;\n goto L_0x038b;\n L_0x03a2:\n if (r1 != 0) goto L_0x0610;\n L_0x03a4:\n r1 = r0;\n goto L_0x038b;\n L_0x03a6:\n r9 = r1;\n r1 = r2;\n r2 = r9;\n L_0x03a9:\n r0 = r6.f;\n if (r0 != 0) goto L_0x03b5;\n L_0x03ad:\n r0 = new java.util.ArrayList;\n r3 = 1;\n r0.<init>(r3);\n r6.f = r0;\n L_0x03b5:\n r0 = new bgi;\n r0.<init>(r1, r7, r2);\n r1 = r6.f;\n r1.add(r0);\n goto L_0x005b;\n L_0x03c1:\n r0 = \"TEL\";\n r0 = r1.equals(r0);\n if (r0 == 0) goto L_0x0434;\n L_0x03c9:\n r1 = 0;\n r0 = 0;\n r2 = r6.n;\n r2 = defpackage.bfr.c(r2);\n if (r2 == 0) goto L_0x03fd;\n L_0x03d3:\n r2 = \"sip:\";\n r2 = r3.startsWith(r2);\n if (r2 == 0) goto L_0x03ec;\n L_0x03db:\n r0 = 1;\n r4 = r1;\n L_0x03dd:\n if (r0 == 0) goto L_0x03ff;\n L_0x03df:\n r0 = \"TYPE\";\n r0 = r5.get(r0);\n r0 = (java.util.Collection) r0;\n r6.a(r3, r0);\n goto L_0x005b;\n L_0x03ec:\n r1 = \"tel:\";\n r1 = r3.startsWith(r1);\n if (r1 == 0) goto L_0x03fb;\n L_0x03f4:\n r1 = 4;\n r1 = r3.substring(r1);\n r4 = r1;\n goto L_0x03dd;\n L_0x03fb:\n r4 = r3;\n goto L_0x03dd;\n L_0x03fd:\n r4 = r3;\n goto L_0x03dd;\n L_0x03ff:\n r0 = r3.length();\n if (r0 == 0) goto L_0x005b;\n L_0x0405:\n r0 = \"TYPE\";\n r0 = r5.get(r0);\n r0 = (java.util.Collection) r0;\n r1 = defpackage.bha.a(r0, r4);\n r2 = r1 instanceof java.lang.Integer;\n if (r2 == 0) goto L_0x042c;\n L_0x0415:\n r1 = (java.lang.Integer) r1;\n r2 = r1.intValue();\n r1 = 0;\n L_0x041c:\n if (r0 == 0) goto L_0x0432;\n L_0x041e:\n r3 = \"PREF\";\n r0 = r0.contains(r3);\n if (r0 == 0) goto L_0x0432;\n L_0x0426:\n r0 = 1;\n L_0x0427:\n r6.a(r2, r4, r1, r0);\n goto L_0x005b;\n L_0x042c:\n r2 = 0;\n r1 = r1.toString();\n goto L_0x041c;\n L_0x0432:\n r0 = 0;\n goto L_0x0427;\n L_0x0434:\n r0 = \"X-SKYPE-PSTNNUMBER\";\n r0 = r1.equals(r0);\n if (r0 == 0) goto L_0x0458;\n L_0x043c:\n r0 = \"TYPE\";\n r0 = r5.get(r0);\n r0 = (java.util.Collection) r0;\n if (r0 == 0) goto L_0x0456;\n L_0x0446:\n r1 = \"PREF\";\n r0 = r0.contains(r1);\n if (r0 == 0) goto L_0x0456;\n L_0x044e:\n r0 = 1;\n L_0x044f:\n r1 = 7;\n r2 = 0;\n r6.a(r1, r3, r2, r0);\n goto L_0x005b;\n L_0x0456:\n r0 = 0;\n goto L_0x044f;\n L_0x0458:\n r0 = defpackage.bfs.a;\n r0 = r0.containsKey(r1);\n if (r0 == 0) goto L_0x04c9;\n L_0x0460:\n r0 = defpackage.bfs.a;\n r0 = r0.get(r1);\n r0 = (java.lang.Integer) r0;\n r1 = r0.intValue();\n r4 = 0;\n r2 = -1;\n r0 = \"TYPE\";\n r0 = r5.get(r0);\n r0 = (java.util.Collection) r0;\n if (r0 == 0) goto L_0x04ac;\n L_0x0478:\n r5 = r0.iterator();\n L_0x047c:\n r0 = r5.hasNext();\n if (r0 == 0) goto L_0x04ac;\n L_0x0482:\n r0 = r5.next();\n r0 = (java.lang.String) r0;\n r7 = \"PREF\";\n r7 = r0.equals(r7);\n if (r7 == 0) goto L_0x0493;\n L_0x0490:\n r0 = 1;\n r4 = r0;\n goto L_0x047c;\n L_0x0493:\n if (r2 >= 0) goto L_0x060d;\n L_0x0495:\n r7 = \"HOME\";\n r7 = r0.equalsIgnoreCase(r7);\n if (r7 == 0) goto L_0x04a0;\n L_0x049d:\n r0 = 1;\n r2 = r0;\n goto L_0x047c;\n L_0x04a0:\n r7 = \"WORK\";\n r0 = r0.equalsIgnoreCase(r7);\n if (r0 == 0) goto L_0x060d;\n L_0x04a8:\n r2 = 2;\n r0 = r2;\n L_0x04aa:\n r2 = r0;\n goto L_0x047c;\n L_0x04ac:\n r5 = r4;\n r4 = r2;\n if (r4 >= 0) goto L_0x04b1;\n L_0x04b0:\n r4 = 1;\n L_0x04b1:\n r0 = r6.e;\n if (r0 != 0) goto L_0x04bc;\n L_0x04b5:\n r0 = new java.util.ArrayList;\n r0.<init>();\n r6.e = r0;\n L_0x04bc:\n r6 = r6.e;\n r0 = new bga;\n r2 = 0;\n r0.<init>(r1, r2, r3, r4, r5);\n r6.add(r0);\n goto L_0x005b;\n L_0x04c9:\n r0 = \"NOTE\";\n r0 = r1.equals(r0);\n if (r0 == 0) goto L_0x04e9;\n L_0x04d1:\n r0 = r6.i;\n if (r0 != 0) goto L_0x04dd;\n L_0x04d5:\n r0 = new java.util.ArrayList;\n r1 = 1;\n r0.<init>(r1);\n r6.i = r0;\n L_0x04dd:\n r0 = r6.i;\n r1 = new bgf;\n r1.<init>(r3);\n r0.add(r1);\n goto L_0x005b;\n L_0x04e9:\n r0 = \"URL\";\n r0 = r1.equals(r0);\n if (r0 == 0) goto L_0x0509;\n L_0x04f1:\n r0 = r6.g;\n if (r0 != 0) goto L_0x04fd;\n L_0x04f5:\n r0 = new java.util.ArrayList;\n r1 = 1;\n r0.<init>(r1);\n r6.g = r0;\n L_0x04fd:\n r0 = r6.g;\n r1 = new bgm;\n r1.<init>(r3);\n r0.add(r1);\n goto L_0x005b;\n L_0x0509:\n r0 = \"BDAY\";\n r0 = r1.equals(r0);\n if (r0 == 0) goto L_0x051a;\n L_0x0511:\n r0 = new bfv;\n r0.<init>(r3);\n r6.k = r0;\n goto L_0x005b;\n L_0x051a:\n r0 = \"ANNIVERSARY\";\n r0 = r1.equals(r0);\n if (r0 == 0) goto L_0x052b;\n L_0x0522:\n r0 = new bfu;\n r0.<init>(r3);\n r6.l = r0;\n goto L_0x005b;\n L_0x052b:\n r0 = \"X-PHONETIC-FIRST-NAME\";\n r0 = r1.equals(r0);\n if (r0 == 0) goto L_0x0539;\n L_0x0533:\n r0 = r6.b;\n r0.h = r3;\n goto L_0x005b;\n L_0x0539:\n r0 = \"X-PHONETIC-MIDDLE-NAME\";\n r0 = r1.equals(r0);\n if (r0 == 0) goto L_0x0547;\n L_0x0541:\n r0 = r6.b;\n r0.i = r3;\n goto L_0x005b;\n L_0x0547:\n r0 = \"X-PHONETIC-LAST-NAME\";\n r0 = r1.equals(r0);\n if (r0 == 0) goto L_0x0555;\n L_0x054f:\n r0 = r6.b;\n r0.g = r3;\n goto L_0x005b;\n L_0x0555:\n r0 = \"IMPP\";\n r0 = r1.equals(r0);\n if (r0 == 0) goto L_0x0572;\n L_0x055d:\n r0 = \"sip:\";\n r0 = r3.startsWith(r0);\n if (r0 == 0) goto L_0x005b;\n L_0x0565:\n r0 = \"TYPE\";\n r0 = r5.get(r0);\n r0 = (java.util.Collection) r0;\n r6.a(r3, r0);\n goto L_0x005b;\n L_0x0572:\n r0 = \"X-SIP\";\n r0 = r1.equals(r0);\n if (r0 == 0) goto L_0x058d;\n L_0x057a:\n r0 = android.text.TextUtils.isEmpty(r3);\n if (r0 != 0) goto L_0x005b;\n L_0x0580:\n r0 = \"TYPE\";\n r0 = r5.get(r0);\n r0 = (java.util.Collection) r0;\n r6.a(r3, r0);\n goto L_0x005b;\n L_0x058d:\n r0 = \"X-ANDROID-CUSTOM\";\n r0 = r1.equals(r0);\n if (r0 == 0) goto L_0x05ea;\n L_0x0595:\n r0 = r6.n;\n r2 = defpackage.bha.a(r3, r0);\n r0 = r6.j;\n if (r0 != 0) goto L_0x05a6;\n L_0x059f:\n r0 = new java.util.ArrayList;\n r0.<init>();\n r6.j = r0;\n L_0x05a6:\n r3 = r6.j;\n if (r2 != 0) goto L_0x05b6;\n L_0x05aa:\n r1 = 0;\n r0 = 0;\n L_0x05ac:\n r2 = new bft;\n r2.<init>(r1, r0);\n r3.add(r2);\n goto L_0x005b;\n L_0x05b6:\n r0 = r2.size();\n r1 = 2;\n if (r0 >= r1) goto L_0x05c9;\n L_0x05bd:\n r0 = 0;\n r0 = r2.get(r0);\n r0 = (java.lang.String) r0;\n r1 = 0;\n r9 = r1;\n r1 = r0;\n r0 = r9;\n goto L_0x05ac;\n L_0x05c9:\n r0 = r2.size();\n r1 = 16;\n if (r0 >= r1) goto L_0x05e6;\n L_0x05d1:\n r0 = r2.size();\n r1 = r0;\n L_0x05d6:\n r0 = 0;\n r0 = r2.get(r0);\n r0 = (java.lang.String) r0;\n r4 = 1;\n r1 = r2.subList(r4, r1);\n r9 = r1;\n r1 = r0;\n r0 = r9;\n goto L_0x05ac;\n L_0x05e6:\n r0 = 16;\n r1 = r0;\n goto L_0x05d6;\n L_0x05ea:\n r0 = r1.toUpperCase();\n r2 = \"X-\";\n r0 = r0.startsWith(r2);\n if (r0 == 0) goto L_0x005b;\n L_0x05f6:\n r0 = r6.m;\n if (r0 != 0) goto L_0x0601;\n L_0x05fa:\n r0 = new java.util.ArrayList;\n r0.<init>();\n r6.m = r0;\n L_0x0601:\n r0 = r6.m;\n r2 = new android.util.Pair;\n r2.<init>(r1, r3);\n r0.add(r2);\n goto L_0x005b;\n L_0x060d:\n r0 = r2;\n goto L_0x04aa;\n L_0x0610:\n r0 = r1;\n goto L_0x03a4;\n L_0x0613:\n r0 = r1;\n goto L_0x0339;\n L_0x0616:\n r0 = r1;\n r1 = r2;\n goto L_0x02ef;\n L_0x061a:\n r0 = r4;\n r4 = r1;\n r1 = r2;\n goto L_0x02f3;\n L_0x061f:\n r0 = r1;\n goto L_0x01ec;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: bgo.a(bgy):void\");\n }", "title": "" }, { "docid": "0211985760a40047a3329c05e6957dfa", "score": "0.62250936", "text": "private int k() {\n block8: {\n block5: {\n block6: {\n block7: {\n var1_1 = this.x;\n var2_2 = var1_1.hashCode();\n var3_3 = 1731;\n var4_4 = 2;\n var5_5 = 1;\n if (var2_2 == var3_3) break block5;\n var3_3 = 48665;\n if (var2_2 == var3_3) break block6;\n var3_3 = 48820;\n if (var2_2 == var3_3) break block7;\n var3_3 = 50587;\n if (var2_2 != var3_3 || (var7_10 = (int)var1_1.equals(var6_6 = \"30X\")) == 0) ** GOTO lbl-1000\n var7_10 = var4_4;\n break block8;\n }\n var6_7 = \"15X\";\n var7_10 = (int)var1_1.equals(var6_7);\n if (var7_10 == 0) ** GOTO lbl-1000\n var7_10 = var5_5;\n break block8;\n }\n var6_8 = \"10X\";\n var7_10 = (int)var1_1.equals(var6_8);\n if (var7_10 == 0) ** GOTO lbl-1000\n var7_10 = 0;\n var1_1 = null;\n break block8;\n }\n var6_9 = \"5X\";\n var7_10 = var1_1.equals(var6_9);\n if (var7_10 != 0) {\n var7_10 = 3;\n } else lbl-1000:\n // 4 sources\n\n {\n var7_10 = -1;\n }\n }\n if (var7_10 != 0) {\n if (var7_10 != var5_5) {\n if (var7_10 != var4_4) {\n return 2131231529;\n }\n return 2131231527;\n }\n return 2131231523;\n }\n return 2131231521;\n }", "title": "" }, { "docid": "21557b5476312726aba9d65a03c7e183", "score": "0.6217602", "text": "public long m6213a(int r13) {\n /* JADX: method processing error */\n/*\nError: java.lang.NullPointerException\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.searchTryCatchDominators(ProcessTryCatchRegions.java:75)\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.process(ProcessTryCatchRegions.java:45)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.postProcessRegions(RegionMakerVisitor.java:63)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.visit(RegionMakerVisitor.java:58)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:31)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:17)\n\tat jadx.core.ProcessClass.process(ProcessClass.java:34)\n\tat jadx.api.JadxDecompiler.processClass(JadxDecompiler.java:282)\n\tat jadx.api.JavaClass.decompile(JavaClass.java:62)\n\tat jadx.api.JadxDecompiler.lambda$appendSourcesSave$0(JadxDecompiler.java:200)\n\tat jadx.api.JadxDecompiler$$Lambda$8/79094208.run(Unknown Source)\n*/\n /*\n r12 = this;\n r0 = android.os.StrictMode.allowThreadDiskReads();\n r1 = 0;\n r3 = -1;\n r5 = new java.io.FileInputStream;\t Catch:{ IOException -> 0x00c0 }\n r6 = r12.f4932f;\t Catch:{ IOException -> 0x00c0 }\n r5.<init>(r6);\t Catch:{ IOException -> 0x00c0 }\n r6 = f4930d;\t Catch:{ IOException -> 0x00c0 }\n r6.m6210a(r5);\t Catch:{ IOException -> 0x00c0 }\n r6 = f4928b;\t Catch:{ IOException -> 0x00c0 }\n r6 = r6.get();\t Catch:{ IOException -> 0x00c0 }\n r6 = (byte[]) r6;\t Catch:{ IOException -> 0x00c0 }\n r7 = f4930d;\t Catch:{ all -> 0x00b9 }\n r7.m6209a();\t Catch:{ all -> 0x00b9 }\n r7 = 2;\t Catch:{ all -> 0x00b9 }\n L_0x0022:\n r8 = f4930d;\t Catch:{ all -> 0x00b9 }\n r8 = r8.m6208a(r6);\t Catch:{ all -> 0x00b9 }\n r9 = -1;\n if (r8 == r9) goto L_0x009f;\n L_0x002b:\n r9 = f4931e;\t Catch:{ NumberFormatException -> 0x0083, NoSuchElementException -> 0x0067 }\n r9.m6195a(r6, r8);\t Catch:{ NumberFormatException -> 0x0083, NoSuchElementException -> 0x0067 }\n r8 = f4931e;\t Catch:{ NumberFormatException -> 0x0083, NoSuchElementException -> 0x0067 }\n r9 = 32;\t Catch:{ NumberFormatException -> 0x0083, NoSuchElementException -> 0x0067 }\n r8.m6194a(r9);\t Catch:{ NumberFormatException -> 0x0083, NoSuchElementException -> 0x0067 }\n r8 = f4931e;\t Catch:{ NumberFormatException -> 0x0083, NoSuchElementException -> 0x0067 }\n r8.m6197b();\t Catch:{ NumberFormatException -> 0x0083, NoSuchElementException -> 0x0067 }\n r8 = f4931e;\t Catch:{ NumberFormatException -> 0x0083, NoSuchElementException -> 0x0067 }\n r9 = \"lo\";\t Catch:{ NumberFormatException -> 0x0083, NoSuchElementException -> 0x0067 }\n r8 = r8.m6196a(r9);\t Catch:{ NumberFormatException -> 0x0083, NoSuchElementException -> 0x0067 }\n if (r8 == 0) goto L_0x0047;\t Catch:{ NumberFormatException -> 0x0083, NoSuchElementException -> 0x0067 }\n L_0x0046:\n goto L_0x0022;\t Catch:{ NumberFormatException -> 0x0083, NoSuchElementException -> 0x0067 }\n L_0x0047:\n r8 = f4931e;\t Catch:{ NumberFormatException -> 0x0083, NoSuchElementException -> 0x0067 }\n r8.m6197b();\t Catch:{ NumberFormatException -> 0x0083, NoSuchElementException -> 0x0067 }\n r8 = f4931e;\t Catch:{ NumberFormatException -> 0x0083, NoSuchElementException -> 0x0067 }\n r8 = r8.m6193a();\t Catch:{ NumberFormatException -> 0x0083, NoSuchElementException -> 0x0067 }\n if (r8 == r13) goto L_0x0055;\t Catch:{ NumberFormatException -> 0x0083, NoSuchElementException -> 0x0067 }\n L_0x0054:\n goto L_0x0022;\t Catch:{ NumberFormatException -> 0x0083, NoSuchElementException -> 0x0067 }\n L_0x0055:\n r8 = f4931e;\t Catch:{ NumberFormatException -> 0x0083, NoSuchElementException -> 0x0067 }\n r8.m6197b();\t Catch:{ NumberFormatException -> 0x0083, NoSuchElementException -> 0x0067 }\n r8 = f4931e;\t Catch:{ NumberFormatException -> 0x0083, NoSuchElementException -> 0x0067 }\n r8 = r8.m6193a();\t Catch:{ NumberFormatException -> 0x0083, NoSuchElementException -> 0x0067 }\n r8 = (long) r8;\n r10 = r1 + r8;\n r7 = r7 + 1;\n r1 = r10;\n goto L_0x0022;\n L_0x0067:\n r8 = \"QTagParser\";\t Catch:{ all -> 0x00b9 }\n r9 = new java.lang.StringBuilder;\t Catch:{ all -> 0x00b9 }\n r9.<init>();\t Catch:{ all -> 0x00b9 }\n r10 = \"Invalid number of tokens on line \";\t Catch:{ all -> 0x00b9 }\n r9.append(r10);\t Catch:{ all -> 0x00b9 }\n r9.append(r7);\t Catch:{ all -> 0x00b9 }\n r10 = \".\";\t Catch:{ all -> 0x00b9 }\n r9.append(r10);\t Catch:{ all -> 0x00b9 }\n r9 = r9.toString();\t Catch:{ all -> 0x00b9 }\n android.util.Log.e(r8, r9);\t Catch:{ all -> 0x00b9 }\n goto L_0x0022;\t Catch:{ all -> 0x00b9 }\n L_0x0083:\n r8 = \"QTagParser\";\t Catch:{ all -> 0x00b9 }\n r9 = new java.lang.StringBuilder;\t Catch:{ all -> 0x00b9 }\n r9.<init>();\t Catch:{ all -> 0x00b9 }\n r10 = \"Cannot parse byte count at line\";\t Catch:{ all -> 0x00b9 }\n r9.append(r10);\t Catch:{ all -> 0x00b9 }\n r9.append(r7);\t Catch:{ all -> 0x00b9 }\n r10 = \".\";\t Catch:{ all -> 0x00b9 }\n r9.append(r10);\t Catch:{ all -> 0x00b9 }\n r9 = r9.toString();\t Catch:{ all -> 0x00b9 }\n android.util.Log.e(r8, r9);\t Catch:{ all -> 0x00b9 }\n goto L_0x0022;\n L_0x009f:\n r5.close();\t Catch:{ IOException -> 0x00c0 }\n r5 = f4929c;\t Catch:{ IOException -> 0x00c0 }\n r13 = (r5 > r3 ? 1 : (r5 == r3 ? 0 : -1));\t Catch:{ IOException -> 0x00c0 }\n if (r13 != 0) goto L_0x00ae;\t Catch:{ IOException -> 0x00c0 }\n L_0x00a8:\n f4929c = r1;\t Catch:{ IOException -> 0x00c0 }\n android.os.StrictMode.setThreadPolicy(r0);\n return r3;\n L_0x00ae:\n r5 = f4929c;\t Catch:{ IOException -> 0x00c0 }\n r13 = 0;\t Catch:{ IOException -> 0x00c0 }\n r7 = r1 - r5;\t Catch:{ IOException -> 0x00c0 }\n f4929c = r1;\t Catch:{ IOException -> 0x00c0 }\n android.os.StrictMode.setThreadPolicy(r0);\n return r7;\n L_0x00b9:\n r13 = move-exception;\n r5.close();\t Catch:{ IOException -> 0x00c0 }\n throw r13;\t Catch:{ IOException -> 0x00c0 }\n L_0x00be:\n r13 = move-exception;\n goto L_0x00cb;\n L_0x00c0:\n r13 = \"QTagParser\";\t Catch:{ all -> 0x00be }\n r1 = \"Error reading from /proc/net/xt_qtaguid/stats. Please check if this file exists.\";\t Catch:{ all -> 0x00be }\n android.util.Log.e(r13, r1);\t Catch:{ all -> 0x00be }\n android.os.StrictMode.setThreadPolicy(r0);\n return r3;\n L_0x00cb:\n android.os.StrictMode.setThreadPolicy(r0);\n throw r13;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.facebook.network.connectionclass.e.a(int):long\");\n }", "title": "" }, { "docid": "805a5b39b9831302644c0904902aa87e", "score": "0.6178766", "text": "private boolean m2933b(java.util.ArrayList<androidx.fragment.app.C0527a> r5, java.util.ArrayList<java.lang.Boolean> r6) {\n /*\n r4 = this;\n monitor-enter(r4)\n java.util.ArrayList<androidx.fragment.app.j$k> r0 = r4.f2349V // Catch:{ all -> 0x003c }\n r1 = 0\n if (r0 == 0) goto L_0x003a\n java.util.ArrayList<androidx.fragment.app.j$k> r0 = r4.f2349V // Catch:{ all -> 0x003c }\n int r0 = r0.size() // Catch:{ all -> 0x003c }\n if (r0 != 0) goto L_0x000f\n goto L_0x003a\n L_0x000f:\n java.util.ArrayList<androidx.fragment.app.j$k> r0 = r4.f2349V // Catch:{ all -> 0x003c }\n int r0 = r0.size() // Catch:{ all -> 0x003c }\n r2 = 0\n L_0x0016:\n if (r1 >= r0) goto L_0x0028\n java.util.ArrayList<androidx.fragment.app.j$k> r3 = r4.f2349V // Catch:{ all -> 0x003c }\n java.lang.Object r3 = r3.get(r1) // Catch:{ all -> 0x003c }\n androidx.fragment.app.j$k r3 = (androidx.fragment.app.C0542j.C0554k) r3 // Catch:{ all -> 0x003c }\n boolean r3 = r3.mo3039a(r5, r6) // Catch:{ all -> 0x003c }\n r2 = r2 | r3\n int r1 = r1 + 1\n goto L_0x0016\n L_0x0028:\n java.util.ArrayList<androidx.fragment.app.j$k> r5 = r4.f2349V // Catch:{ all -> 0x003c }\n r5.clear() // Catch:{ all -> 0x003c }\n androidx.fragment.app.h r5 = r4.f2363j0 // Catch:{ all -> 0x003c }\n android.os.Handler r5 = r5.mo3144d() // Catch:{ all -> 0x003c }\n java.lang.Runnable r6 = r4.f2379z0 // Catch:{ all -> 0x003c }\n r5.removeCallbacks(r6) // Catch:{ all -> 0x003c }\n monitor-exit(r4) // Catch:{ all -> 0x003c }\n return r2\n L_0x003a:\n monitor-exit(r4) // Catch:{ all -> 0x003c }\n return r1\n L_0x003c:\n r5 = move-exception\n monitor-exit(r4) // Catch:{ all -> 0x003c }\n throw r5\n */\n throw new UnsupportedOperationException(\"Method not decompiled: androidx.fragment.app.C0542j.m2933b(java.util.ArrayList, java.util.ArrayList):boolean\");\n }", "title": "" }, { "docid": "30368217241828aae85ba1e93f0dfa19", "score": "0.6146511", "text": "private boolean m2321c() {\n /*\n r5 = this;\n r0 = 1;\n r1 = 0;\n r2 = r5.f1222i;\n if (r2 != 0) goto L_0x0007;\n L_0x0006:\n return r1;\n L_0x0007:\n r2 = 0;\n r3 = r5.f1222i;\t Catch:{ IOException -> 0x001f, all -> 0x0029 }\n r4 = \"soft_errors_pref\";\n r2 = r3.openFileInput(r4);\t Catch:{ IOException -> 0x001f, all -> 0x0029 }\n r3 = r2.read();\t Catch:{ IOException -> 0x0034, all -> 0x0029 }\n if (r3 != r0) goto L_0x001d;\n L_0x0016:\n if (r2 == 0) goto L_0x001b;\n L_0x0018:\n r2.close();\t Catch:{ IOException -> 0x0030 }\n L_0x001b:\n r1 = r0;\n goto L_0x0006;\n L_0x001d:\n r0 = r1;\n goto L_0x0016;\n L_0x001f:\n r0 = move-exception;\n r0 = r2;\n L_0x0021:\n if (r0 == 0) goto L_0x0006;\n L_0x0023:\n r0.close();\t Catch:{ IOException -> 0x0027 }\n goto L_0x0006;\n L_0x0027:\n r0 = move-exception;\n goto L_0x0006;\n L_0x0029:\n r0 = move-exception;\n if (r2 == 0) goto L_0x002f;\n L_0x002c:\n r2.close();\t Catch:{ IOException -> 0x0032 }\n L_0x002f:\n throw r0;\n L_0x0030:\n r1 = move-exception;\n goto L_0x001b;\n L_0x0032:\n r1 = move-exception;\n goto L_0x002f;\n L_0x0034:\n r0 = move-exception;\n r0 = r2;\n goto L_0x0021;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.facebook.common.errorreporting.FbErrorReporterImpl.c():boolean\");\n }", "title": "" }, { "docid": "05cbda41c52eef33a921660db872c786", "score": "0.614278", "text": "private static void m6693a(java.io.Closeable r0) {\n /* JADX: method processing error */\n/*\nError: java.lang.NullPointerException\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.searchTryCatchDominators(ProcessTryCatchRegions.java:75)\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.process(ProcessTryCatchRegions.java:45)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.postProcessRegions(RegionMakerVisitor.java:63)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.visit(RegionMakerVisitor.java:58)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:31)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:17)\n\tat jadx.core.ProcessClass.process(ProcessClass.java:34)\n\tat jadx.api.JadxDecompiler.processClass(JadxDecompiler.java:282)\n\tat jadx.api.JavaClass.decompile(JavaClass.java:62)\n\tat jadx.api.JadxDecompiler.lambda$appendSourcesSave$0(JadxDecompiler.java:200)\n\tat jadx.api.JadxDecompiler$$Lambda$8/509891820.run(Unknown Source)\n*/\n /*\n if (r0 != 0) goto L_0x0003;\n L_0x0002:\n return;\n L_0x0003:\n r0.close();\t Catch:{ IOException -> 0x0006 }\n L_0x0006:\n return;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.facebook.ads.internal.d.c.a(java.io.Closeable):void\");\n }", "title": "" }, { "docid": "f098bf4da0d124b14b000e0bc5d3f912", "score": "0.61330277", "text": "public void mo42894a(int r4, T r5) {\n /*\n r3 = this;\n monitor-enter(r3)\n java.lang.Object[] r0 = r3.f38855O // Catch:{ all -> 0x0029 }\n if (r0 != 0) goto L_0x0007\n monitor-exit(r3) // Catch:{ all -> 0x0029 }\n return\n L_0x0007:\n r1 = r0[r4] // Catch:{ all -> 0x0029 }\n int r2 = r3.f38861U // Catch:{ all -> 0x0029 }\n if (r1 != 0) goto L_0x0011\n int r2 = r2 + 1\n r3.f38861U = r2 // Catch:{ all -> 0x0029 }\n L_0x0011:\n r0[r4] = r5 // Catch:{ all -> 0x0029 }\n int r4 = r0.length // Catch:{ all -> 0x0029 }\n if (r2 != r4) goto L_0x0021\n e.a.x0.f.c<java.lang.Object[]> r4 = r3.f38856P // Catch:{ all -> 0x0029 }\n java.lang.Object r5 = r0.clone() // Catch:{ all -> 0x0029 }\n r4.offer(r5) // Catch:{ all -> 0x0029 }\n r4 = 1\n goto L_0x0022\n L_0x0021:\n r4 = 0\n L_0x0022:\n monitor-exit(r3) // Catch:{ all -> 0x0029 }\n if (r4 == 0) goto L_0x0028\n r3.mo42898e()\n L_0x0028:\n return\n L_0x0029:\n r4 = move-exception\n monitor-exit(r3) // Catch:{ all -> 0x0029 }\n throw r4\n */\n throw new UnsupportedOperationException(\"Method not decompiled: p195e.p196a.p199x0.p454e.p459e.C13429u.C13431b.mo42894a(int, java.lang.Object):void\");\n }", "title": "" }, { "docid": "2edb0228735e6af6387d6bd354b1d290", "score": "0.6120842", "text": "private synchronized void m3321a(com.bumptech.glide.p023a.C0971a.C0968a r12, boolean r13) throws java.io.IOException {\n /*\n r11 = this;\n monitor-enter(r11);\n r0 = r12.f2573b;\t Catch:{ all -> 0x0112 }\n r1 = r0.f2582g;\t Catch:{ all -> 0x0112 }\n if (r1 == r12) goto L_0x0011;\n L_0x000b:\n r12 = new java.lang.IllegalStateException;\t Catch:{ all -> 0x0112 }\n r12.<init>();\t Catch:{ all -> 0x0112 }\n throw r12;\t Catch:{ all -> 0x0112 }\n L_0x0011:\n r1 = 0;\n if (r13 == 0) goto L_0x0053;\n L_0x0014:\n r2 = r0.f2581f;\t Catch:{ all -> 0x0112 }\n if (r2 != 0) goto L_0x0053;\n L_0x001a:\n r2 = 0;\n L_0x001b:\n r3 = r11.f2596h;\t Catch:{ all -> 0x0112 }\n if (r2 >= r3) goto L_0x0053;\n L_0x001f:\n r3 = r12.f2574c;\t Catch:{ all -> 0x0112 }\n r3 = r3[r2];\t Catch:{ all -> 0x0112 }\n if (r3 != 0) goto L_0x0041;\n L_0x0027:\n r12.m3300b();\t Catch:{ all -> 0x0112 }\n r12 = new java.lang.IllegalStateException;\t Catch:{ all -> 0x0112 }\n r13 = new java.lang.StringBuilder;\t Catch:{ all -> 0x0112 }\n r13.<init>();\t Catch:{ all -> 0x0112 }\n r0 = \"Newly created entry didn't create value for index \";\n r13.append(r0);\t Catch:{ all -> 0x0112 }\n r13.append(r2);\t Catch:{ all -> 0x0112 }\n r13 = r13.toString();\t Catch:{ all -> 0x0112 }\n r12.<init>(r13);\t Catch:{ all -> 0x0112 }\n throw r12;\t Catch:{ all -> 0x0112 }\n L_0x0041:\n r3 = r0.m3315b(r2);\t Catch:{ all -> 0x0112 }\n r3 = r3.exists();\t Catch:{ all -> 0x0112 }\n if (r3 != 0) goto L_0x0050;\n L_0x004b:\n r12.m3300b();\t Catch:{ all -> 0x0112 }\n monitor-exit(r11);\n return;\n L_0x0050:\n r2 = r2 + 1;\n goto L_0x001b;\n L_0x0053:\n r12 = r11.f2596h;\t Catch:{ all -> 0x0112 }\n if (r1 >= r12) goto L_0x008a;\n L_0x0057:\n r12 = r0.m3315b(r1);\t Catch:{ all -> 0x0112 }\n if (r13 == 0) goto L_0x0084;\n L_0x005d:\n r2 = r12.exists();\t Catch:{ all -> 0x0112 }\n if (r2 == 0) goto L_0x0087;\n L_0x0063:\n r2 = r0.m3313a(r1);\t Catch:{ all -> 0x0112 }\n r12.renameTo(r2);\t Catch:{ all -> 0x0112 }\n r12 = r0.f2580e;\t Catch:{ all -> 0x0112 }\n r3 = r12[r1];\t Catch:{ all -> 0x0112 }\n r5 = r2.length();\t Catch:{ all -> 0x0112 }\n r12 = r0.f2580e;\t Catch:{ all -> 0x0112 }\n r12[r1] = r5;\t Catch:{ all -> 0x0112 }\n r7 = r11.f2597i;\t Catch:{ all -> 0x0112 }\n r12 = 0;\n r9 = r7 - r3;\n r2 = r9 + r5;\n r11.f2597i = r2;\t Catch:{ all -> 0x0112 }\n goto L_0x0087;\n L_0x0084:\n com.bumptech.glide.p023a.C0971a.m3323a(r12);\t Catch:{ all -> 0x0112 }\n L_0x0087:\n r1 = r1 + 1;\n goto L_0x0053;\n L_0x008a:\n r12 = r11.f2600l;\t Catch:{ all -> 0x0112 }\n r1 = 1;\n r12 = r12 + r1;\n r11.f2600l = r12;\t Catch:{ all -> 0x0112 }\n r12 = 0;\n r0.f2582g = r12;\t Catch:{ all -> 0x0112 }\n r12 = r0.f2581f;\t Catch:{ all -> 0x0112 }\n r12 = r12 | r13;\n r2 = 10;\n r3 = 32;\n if (r12 == 0) goto L_0x00d3;\n L_0x009f:\n r0.f2581f = r1;\t Catch:{ all -> 0x0112 }\n r12 = r11.f2598j;\t Catch:{ all -> 0x0112 }\n r1 = \"CLEAN\";\n r12.append(r1);\t Catch:{ all -> 0x0112 }\n r12 = r11.f2598j;\t Catch:{ all -> 0x0112 }\n r12.append(r3);\t Catch:{ all -> 0x0112 }\n r12 = r11.f2598j;\t Catch:{ all -> 0x0112 }\n r1 = r0.f2579d;\t Catch:{ all -> 0x0112 }\n r12.append(r1);\t Catch:{ all -> 0x0112 }\n r12 = r11.f2598j;\t Catch:{ all -> 0x0112 }\n r1 = r0.m3314a();\t Catch:{ all -> 0x0112 }\n r12.append(r1);\t Catch:{ all -> 0x0112 }\n r12 = r11.f2598j;\t Catch:{ all -> 0x0112 }\n r12.append(r2);\t Catch:{ all -> 0x0112 }\n if (r13 == 0) goto L_0x00f6;\n L_0x00c7:\n r12 = r11.f2601m;\t Catch:{ all -> 0x0112 }\n r1 = 1;\n r3 = r12 + r1;\n r11.f2601m = r3;\t Catch:{ all -> 0x0112 }\n r0.f2583h = r12;\t Catch:{ all -> 0x0112 }\n goto L_0x00f6;\n L_0x00d3:\n r12 = r11.f2599k;\t Catch:{ all -> 0x0112 }\n r13 = r0.f2579d;\t Catch:{ all -> 0x0112 }\n r12.remove(r13);\t Catch:{ all -> 0x0112 }\n r12 = r11.f2598j;\t Catch:{ all -> 0x0112 }\n r13 = \"REMOVE\";\n r12.append(r13);\t Catch:{ all -> 0x0112 }\n r12 = r11.f2598j;\t Catch:{ all -> 0x0112 }\n r12.append(r3);\t Catch:{ all -> 0x0112 }\n r12 = r11.f2598j;\t Catch:{ all -> 0x0112 }\n r13 = r0.f2579d;\t Catch:{ all -> 0x0112 }\n r12.append(r13);\t Catch:{ all -> 0x0112 }\n r12 = r11.f2598j;\t Catch:{ all -> 0x0112 }\n r12.append(r2);\t Catch:{ all -> 0x0112 }\n L_0x00f6:\n r12 = r11.f2598j;\t Catch:{ all -> 0x0112 }\n r12.flush();\t Catch:{ all -> 0x0112 }\n r12 = r11.f2597i;\t Catch:{ all -> 0x0112 }\n r0 = r11.f2595g;\t Catch:{ all -> 0x0112 }\n r2 = (r12 > r0 ? 1 : (r12 == r0 ? 0 : -1));\n if (r2 > 0) goto L_0x0109;\n L_0x0103:\n r12 = r11.m3333e();\t Catch:{ all -> 0x0112 }\n if (r12 == 0) goto L_0x0110;\n L_0x0109:\n r12 = r11.f2589a;\t Catch:{ all -> 0x0112 }\n r13 = r11.f2602n;\t Catch:{ all -> 0x0112 }\n r12.submit(r13);\t Catch:{ all -> 0x0112 }\n L_0x0110:\n monitor-exit(r11);\n return;\n L_0x0112:\n r12 = move-exception;\n monitor-exit(r11);\n throw r12;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.bumptech.glide.a.a.a(com.bumptech.glide.a.a$a, boolean):void\");\n }", "title": "" }, { "docid": "b36bb9da7b157e359e14c564f6858a20", "score": "0.6081898", "text": "public synchronized boolean m3340c(java.lang.String r10) throws java.io.IOException {\n /*\n r9 = this;\n monitor-enter(r9);\n r9.m3335f();\t Catch:{ all -> 0x0090 }\n r0 = r9.f2599k;\t Catch:{ all -> 0x0090 }\n r0 = r0.get(r10);\t Catch:{ all -> 0x0090 }\n r0 = (com.bumptech.glide.p023a.C0971a.C0969b) r0;\t Catch:{ all -> 0x0090 }\n r1 = 0;\n if (r0 == 0) goto L_0x008e;\n L_0x000f:\n r2 = r0.f2582g;\t Catch:{ all -> 0x0090 }\n if (r2 == 0) goto L_0x0017;\n L_0x0015:\n goto L_0x008e;\n L_0x0017:\n r2 = r9.f2596h;\t Catch:{ all -> 0x0090 }\n if (r1 >= r2) goto L_0x005a;\n L_0x001b:\n r2 = r0.m3313a(r1);\t Catch:{ all -> 0x0090 }\n r3 = r2.exists();\t Catch:{ all -> 0x0090 }\n if (r3 == 0) goto L_0x0042;\n L_0x0025:\n r3 = r2.delete();\t Catch:{ all -> 0x0090 }\n if (r3 != 0) goto L_0x0042;\n L_0x002b:\n r10 = new java.io.IOException;\t Catch:{ all -> 0x0090 }\n r0 = new java.lang.StringBuilder;\t Catch:{ all -> 0x0090 }\n r0.<init>();\t Catch:{ all -> 0x0090 }\n r1 = \"failed to delete \";\n r0.append(r1);\t Catch:{ all -> 0x0090 }\n r0.append(r2);\t Catch:{ all -> 0x0090 }\n r0 = r0.toString();\t Catch:{ all -> 0x0090 }\n r10.<init>(r0);\t Catch:{ all -> 0x0090 }\n throw r10;\t Catch:{ all -> 0x0090 }\n L_0x0042:\n r2 = r9.f2597i;\t Catch:{ all -> 0x0090 }\n r4 = r0.f2580e;\t Catch:{ all -> 0x0090 }\n r5 = r4[r1];\t Catch:{ all -> 0x0090 }\n r4 = 0;\n r7 = r2 - r5;\n r9.f2597i = r7;\t Catch:{ all -> 0x0090 }\n r2 = r0.f2580e;\t Catch:{ all -> 0x0090 }\n r3 = 0;\n r2[r1] = r3;\t Catch:{ all -> 0x0090 }\n r1 = r1 + 1;\n goto L_0x0017;\n L_0x005a:\n r0 = r9.f2600l;\t Catch:{ all -> 0x0090 }\n r1 = 1;\n r0 = r0 + r1;\n r9.f2600l = r0;\t Catch:{ all -> 0x0090 }\n r0 = r9.f2598j;\t Catch:{ all -> 0x0090 }\n r2 = \"REMOVE\";\n r0.append(r2);\t Catch:{ all -> 0x0090 }\n r0 = r9.f2598j;\t Catch:{ all -> 0x0090 }\n r2 = 32;\n r0.append(r2);\t Catch:{ all -> 0x0090 }\n r0 = r9.f2598j;\t Catch:{ all -> 0x0090 }\n r0.append(r10);\t Catch:{ all -> 0x0090 }\n r0 = r9.f2598j;\t Catch:{ all -> 0x0090 }\n r2 = 10;\n r0.append(r2);\t Catch:{ all -> 0x0090 }\n r0 = r9.f2599k;\t Catch:{ all -> 0x0090 }\n r0.remove(r10);\t Catch:{ all -> 0x0090 }\n r10 = r9.m3333e();\t Catch:{ all -> 0x0090 }\n if (r10 == 0) goto L_0x008c;\n L_0x0085:\n r10 = r9.f2589a;\t Catch:{ all -> 0x0090 }\n r0 = r9.f2602n;\t Catch:{ all -> 0x0090 }\n r10.submit(r0);\t Catch:{ all -> 0x0090 }\n L_0x008c:\n monitor-exit(r9);\n return r1;\n L_0x008e:\n monitor-exit(r9);\n return r1;\n L_0x0090:\n r10 = move-exception;\n monitor-exit(r9);\n throw r10;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.bumptech.glide.a.a.c(java.lang.String):boolean\");\n }", "title": "" }, { "docid": "3845cd6acd3fdf00d97779a6e83180da", "score": "0.6070304", "text": "@ObfuscatedName(value=\"gq\")\n @ObfuscatedSignature(descriptor=\"(Lax;II)I\")\n static final int method855(Widget var0, int var1_2, int var2_3) {\n block35: {\n if (var0.cs1Instructions == null) return -2;\n var2_3 = var0.cs1Instructions.length;\n if (var1_2 >= var2_3) {\n return -2;\n }\n try {\n var0 = var0.cs1Instructions[var1_2];\n var1_2 = 0;\n var2_3 = 0;\n var6_4 /* !! */ = 0;\n break block35;\nlbl11:\n // 1 sources\n\n while (true) {\n block36: {\n block38: {\n block39: {\n block37: {\n if (var8_9 == true) {\n var4_6 /* !! */ = Client.field4878[var0[var3_5 /* !! */ ]];\n var1_2 = var3_5 /* !! */ + 1;\n } else {\n var4_6 /* !! */ = 0;\n var1_2 = var3_5 /* !! */ ;\n }\n var3_5 /* !! */ = var1_2;\n if (var8_9 == 2) {\n var4_6 /* !! */ = Client.field4875[var0[var1_2]];\n var3_5 /* !! */ = var1_2 + 1;\n }\n var5_7 /* !! */ = var3_5 /* !! */ ;\n var1_2 = var4_6 /* !! */ ;\n if (var8_9 == 3) {\n var1_2 = Client.field4862[var0[var3_5 /* !! */ ]];\n var5_7 /* !! */ = var3_5 /* !! */ + 1;\n }\n if (var8_9 != 4) break block37;\n var3_5 /* !! */ = var5_7 /* !! */ + 1;\n var5_7 /* !! */ = (int)var0[var5_7 /* !! */ ];\n var4_6 /* !! */ = var3_5 /* !! */ + 1;\n var10_11 /* !! */ = (int[])Client.getWidgetChild((int)(var0[var3_5 /* !! */ ] + (var5_7 /* !! */ << 16)), 1695700067);\n var5_7 /* !! */ = var4_6 /* !! */ + 1;\n var7_8 /* !! */ = var0[var4_6 /* !! */ ];\n var3_5 /* !! */ = var1_2;\n var4_6 /* !! */ = var5_7 /* !! */ ;\n if (var7_8 /* !! */ == -1) break block38;\n if (!class324.ItemDefinition_get((int)var7_8 /* !! */ ).isMembersOnly) break block39;\n var3_5 /* !! */ = var1_2;\n var4_6 /* !! */ = var5_7 /* !! */ ;\n if (!Client.field4738) break block38;\n break block39;\n }\n var4_6 /* !! */ = var5_7 /* !! */ ;\n var3_5 /* !! */ = var1_2;\n break block38;\n }\n for (var3_5 /* !! */ = 0; var3_5 /* !! */ < var10_11 /* !! */ .field4603.length; ++var3_5 /* !! */ ) {\n var4_6 /* !! */ = var1_2;\n if (var7_8 /* !! */ + true == var10_11 /* !! */ .field4603[var3_5 /* !! */ ]) {\n var4_6 /* !! */ = var10_11 /* !! */ .field4600[var3_5 /* !! */ ] + var1_2;\n }\n var1_2 = var4_6 /* !! */ ;\n }\n var3_5 /* !! */ = var1_2;\n var4_6 /* !! */ = var5_7 /* !! */ ;\n }\n if (var8_9 == 5) {\n var10_11 /* !! */ = Varps.Varps_main;\n var1_2 = var4_6 /* !! */ + 1;\n var3_5 /* !! */ = var10_11 /* !! */ [var0[var4_6 /* !! */ ]];\n } else {\n var1_2 = var4_6 /* !! */ ;\n }\n var4_6 /* !! */ = var1_2;\n var5_7 /* !! */ = var3_5 /* !! */ ;\n if (var8_9 == 6) {\n var5_7 /* !! */ = Skills.Skills_experienceTable[Client.field4875[var0[var1_2]] - 1];\n var4_6 /* !! */ = var1_2 + 1;\n }\n var3_5 /* !! */ = var4_6 /* !! */ ;\n var1_2 = var5_7 /* !! */ ;\n if (var8_9 == 7) {\n var1_2 = Varps.Varps_main[var0[var4_6 /* !! */ ]] * 100 / 46875;\n var3_5 /* !! */ = var4_6 /* !! */ + 1;\n }\n if (var8_9 == 8) {\n var1_2 = WorldMapScaleHandler.localPlayer.field7850;\n }\n var4_6 /* !! */ = var1_2;\n if (var8_9 == 9) {\n for (var4_6 /* !! */ = 0; var4_6 /* !! */ < 25; ++var4_6 /* !! */ ) {\n var5_7 /* !! */ = var1_2;\n if (Skills.Skills_enabled[var4_6 /* !! */ ]) {\n var5_7 /* !! */ = Client.field4875[var4_6 /* !! */ ] + var1_2;\n }\n var1_2 = var5_7 /* !! */ ;\n }\n var4_6 /* !! */ = var1_2;\n }\n if (var8_9 != 10) ** GOTO lbl101\n var1_2 = var3_5 /* !! */ + 1;\n var5_7 /* !! */ = (int)var0[var3_5 /* !! */ ];\n var3_5 /* !! */ = var1_2 + 1;\n var10_11 /* !! */ = (int[])Client.getWidgetChild((int)(var0[var1_2] + (var5_7 /* !! */ << 16)), -1835553149);\n var7_8 /* !! */ = var3_5 /* !! */ + 1;\n var9_10 = var0[var3_5 /* !! */ ];\n var1_2 = var4_6 /* !! */ ;\n var3_5 /* !! */ = (int)var7_8 /* !! */ ;\n cfr_temp_0 = true;\n while (true) {\n block42: {\n block40: {\n block41: {\n if (cfr_temp_0 != true || (cfr_temp_0 = false)) continue;\n if (var9_10 == -1) break block40;\n if (!class324.ItemDefinition_get((int)var9_10).isMembersOnly) break block41;\n var1_2 = var4_6 /* !! */ ;\n var3_5 /* !! */ = (int)var7_8 /* !! */ ;\n if (!Client.field4738) break block40;\n break block41;\nlbl101:\n // 1 sources\n\n var1_2 = var4_6 /* !! */ ;\n break block40;\n }\n var5_7 /* !! */ = 0;\n var1_2 = var4_6 /* !! */ ;\n var3_5 /* !! */ = (int)var7_8 /* !! */ ;\n if (var5_7 /* !! */ >= var10_11 /* !! */ .field4603.length) break block40;\n if (var9_10 + true != var10_11 /* !! */ .field4603[var5_7 /* !! */ ]) break block42;\n var1_2 = 999999999;\n var3_5 /* !! */ = (int)var7_8 /* !! */ ;\n }\n if (var8_9 == 11) {\n var1_2 = Client.field4892;\n }\n if (var8_9 == 12) {\n var1_2 = Client.field4897;\n }\n var4_6 /* !! */ = var3_5 /* !! */ ;\n if (var8_9 == 13) {\n var10_11 /* !! */ = Varps.Varps_main;\n var1_2 = var3_5 /* !! */ + 1;\n var3_5 /* !! */ = var10_11 /* !! */ [var0[var3_5 /* !! */ ]];\n var4_6 /* !! */ = var1_2 + 1;\n var1_2 = (var3_5 /* !! */ & 1 << var0[var1_2]) != 0 ? 1 : 0;\n }\n if (var8_9 != 14) break;\n var1_2 = var4_6 /* !! */ + 1;\n var4_6 /* !! */ = class285.method10473((int)var0[var4_6 /* !! */ ], -1842570597);\n break block36;\n }\n ++var5_7 /* !! */ ;\n }\n var3_5 /* !! */ = var4_6 /* !! */ ;\n var4_6 /* !! */ = var1_2;\n var1_2 = var3_5 /* !! */ ;\n }\n var3_5 /* !! */ = var8_9 == 15 ? 1 : 0;\n if (var8_9 == 16) {\n var3_5 /* !! */ = 2;\n }\n if (var8_9 == 17) {\n var3_5 /* !! */ = 3;\n }\n if (var8_9 == 18) {\n var4_6 /* !! */ = class302.field6082 * -640592827;\n var4_6 /* !! */ = var4_6 /* !! */ * -1895129459 + (WorldMapScaleHandler.localPlayer.x >> 7);\n }\n if (var8_9 == 19) {\n var4_6 /* !! */ = WorldMapScaleHandler.localPlayer.field7523;\n var4_6 /* !! */ = (var4_6 /* !! */ * -144332757 >> 7) + class237.field4107;\n }\n if (var8_9 == 20) {\n var4_6 /* !! */ = (int)var0[var1_2];\n ++var1_2;\n }\n if (var3_5 /* !! */ == 0) {\n var3_5 /* !! */ = var2_3;\n if (var6_4 /* !! */ == 0) {\n var3_5 /* !! */ = var4_6 /* !! */ + var2_3;\n }\n var2_3 = var3_5 /* !! */ ;\n if (var6_4 /* !! */ == 1) {\n var2_3 = var3_5 /* !! */ - var4_6 /* !! */ ;\n }\n var3_5 /* !! */ = var2_3;\n if (var6_4 /* !! */ == 2) {\n var3_5 /* !! */ = var2_3;\n if (var4_6 /* !! */ != 0) {\n var3_5 /* !! */ = var2_3 / var4_6 /* !! */ ;\n }\n }\n var2_3 = var3_5 /* !! */ ;\n if (var6_4 /* !! */ == 3) {\n var2_3 = var3_5 /* !! */ * var4_6 /* !! */ ;\n }\n var3_5 /* !! */ = 0;\n }\n var6_4 /* !! */ = var3_5 /* !! */ ;\n break;\n }\n }\n catch (Exception var0_1) {\n return -1;\n }\n }\n var3_5 /* !! */ = var1_2 + 1;\n ** while ((var8_9 = var0[var1_2]) != false)\nlbl172:\n // 1 sources\n\n return var2_3;\n }", "title": "" }, { "docid": "d0612e0d9f81be323d553fb3f24e3106", "score": "0.6055488", "text": "public void mo42895a(int r3, java.lang.Throwable r4) {\n /*\n r2 = this;\n e.a.x0.j.c r0 = r2.f38860T\n boolean r0 = r0.mo43142a(r4)\n if (r0 == 0) goto L_0x0036\n boolean r4 = r2.f38857Q\n r0 = 1\n if (r4 == 0) goto L_0x002c\n monitor-enter(r2)\n java.lang.Object[] r4 = r2.f38855O // Catch:{ all -> 0x0029 }\n if (r4 != 0) goto L_0x0014\n monitor-exit(r2) // Catch:{ all -> 0x0029 }\n return\n L_0x0014:\n r3 = r4[r3] // Catch:{ all -> 0x0029 }\n if (r3 != 0) goto L_0x001a\n r3 = 1\n goto L_0x001b\n L_0x001a:\n r3 = 0\n L_0x001b:\n if (r3 != 0) goto L_0x0025\n int r1 = r2.f38862V // Catch:{ all -> 0x0029 }\n int r1 = r1 + r0\n r2.f38862V = r1 // Catch:{ all -> 0x0029 }\n int r4 = r4.length // Catch:{ all -> 0x0029 }\n if (r1 != r4) goto L_0x0027\n L_0x0025:\n r2.f38859S = r0 // Catch:{ all -> 0x0029 }\n L_0x0027:\n monitor-exit(r2) // Catch:{ all -> 0x0029 }\n goto L_0x002d\n L_0x0029:\n r3 = move-exception\n monitor-exit(r2) // Catch:{ all -> 0x0029 }\n throw r3\n L_0x002c:\n r3 = 1\n L_0x002d:\n if (r3 == 0) goto L_0x0032\n r2.mo42892a()\n L_0x0032:\n r2.mo42898e()\n goto L_0x0039\n L_0x0036:\n p195e.p196a.p439b1.C12205a.m54894b(r4)\n L_0x0039:\n return\n */\n throw new UnsupportedOperationException(\"Method not decompiled: p195e.p196a.p199x0.p454e.p459e.C13429u.C13431b.mo42895a(int, java.lang.Throwable):void\");\n }", "title": "" }, { "docid": "31710cdc8655f79157e76e8b9c50ae18", "score": "0.6047265", "text": "public synchronized void m43084l() {\n /*\n r20 = this;\n r1 = r20\n monitor-enter(r20)\n boolean r0 = r1.f40270j // Catch:{ all -> 0x00f6 }\n if (r0 != 0) goto L_0x00f4\n boolean r0 = r1.f40269i // Catch:{ all -> 0x00f6 }\n if (r0 == 0) goto L_0x000d\n goto L_0x00f4\n L_0x000d:\n android.content.Context r0 = r1.f40262b // Catch:{ all -> 0x00f6 }\n boolean r0 = p019d.p314k.p315a.C13178t.m43096a(r0) // Catch:{ all -> 0x00f6 }\n r2 = r0\n android.content.Context r0 = r1.f40262b // Catch:{ all -> 0x00f6 }\n boolean r0 = p019d.p314k.p315a.C13178t.m43101b(r0) // Catch:{ all -> 0x00f6 }\n r3 = r0\n r4 = 0\n r0 = 1\n if (r2 == 0) goto L_0x0027\n int r5 = r1.f40274n // Catch:{ all -> 0x00f6 }\n r6 = 201(0xc9, float:2.82E-43)\n if (r5 != r6) goto L_0x0038\n if (r3 != 0) goto L_0x0038\n L_0x0027:\n java.util.concurrent.ConcurrentHashMap<java.lang.Long, d.k.a.i> r5 = r1.f40268h // Catch:{ all -> 0x00f6 }\n int r5 = r5.size() // Catch:{ all -> 0x00f6 }\n if (r5 <= 0) goto L_0x0038\n r1.f40269i = r0 // Catch:{ all -> 0x00f6 }\n r20.m43066f() // Catch:{ all -> 0x00f6 }\n r1.f40269i = r4 // Catch:{ all -> 0x00f6 }\n goto L_0x00f2\n L_0x0038:\n if (r2 == 0) goto L_0x00d9\n boolean r5 = r1.f40269i // Catch:{ all -> 0x00f6 }\n if (r5 != 0) goto L_0x00d9\n java.util.concurrent.ConcurrentHashMap<java.lang.Long, d.k.a.i> r5 = r1.f40268h // Catch:{ all -> 0x00f6 }\n int r5 = r5.size() // Catch:{ all -> 0x00f6 }\n int r6 = r1.f40271k // Catch:{ all -> 0x00f6 }\n if (r5 >= r6) goto L_0x00d9\n d.k.a.a r5 = r1.f40263c // Catch:{ all -> 0x00f6 }\n boolean r5 = r5.mo42188g() // Catch:{ all -> 0x00f6 }\n if (r5 == 0) goto L_0x00d9\n r1.f40269i = r0 // Catch:{ all -> 0x00f6 }\n d.k.a.a r5 = r1.f40263c // Catch:{ Exception -> 0x00b8 }\n android.database.Cursor r5 = r5.mo42187f() // Catch:{ Exception -> 0x00b8 }\n if (r5 == 0) goto L_0x00b5\n boolean r6 = r5.isClosed() // Catch:{ Exception -> 0x00b8 }\n if (r6 != 0) goto L_0x00b5\n int r6 = r5.getCount() // Catch:{ Exception -> 0x00b8 }\n if (r6 <= 0) goto L_0x00b5\n boolean r6 = r1.f40272l // Catch:{ Exception -> 0x00b8 }\n d.k.a.b.c r0 = p019d.p314k.p315a.C13178t.m43098b(r5, r0, r6) // Catch:{ Exception -> 0x00b8 }\n d.k.a.i r18 = new d.k.a.i // Catch:{ Exception -> 0x00b8 }\n android.content.Context r7 = r1.f40262b // Catch:{ Exception -> 0x00b8 }\n long r8 = r0.mo42205f() // Catch:{ Exception -> 0x00b8 }\n java.lang.String r10 = r0.mo42208i() // Catch:{ Exception -> 0x00b8 }\n java.lang.String r11 = r0.mo42202c() // Catch:{ Exception -> 0x00b8 }\n java.util.List r12 = r0.mo42204e() // Catch:{ Exception -> 0x00b8 }\n long r13 = r0.mo42203d() // Catch:{ Exception -> 0x00b8 }\n boolean r15 = r1.f40272l // Catch:{ Exception -> 0x00b8 }\n r19 = r5\n long r4 = r1.f40273m // Catch:{ Exception -> 0x00b8 }\n r6 = r18\n r16 = r4\n r6.<init>(r7, r8, r10, r11, r12, r13, r15, r16) // Catch:{ Exception -> 0x00b8 }\n r4 = r18\n d.k.a.a r5 = r1.f40263c // Catch:{ Exception -> 0x00b8 }\n long r6 = r0.mo42205f() // Catch:{ Exception -> 0x00b8 }\n r8 = 901(0x385, float:1.263E-42)\n r9 = -1\n r5.mo42174a(r6, r8, r9) // Catch:{ Exception -> 0x00b8 }\n java.util.concurrent.ConcurrentHashMap<java.lang.Long, d.k.a.i> r5 = r1.f40268h // Catch:{ Exception -> 0x00b8 }\n long r6 = r4.mo42226b() // Catch:{ Exception -> 0x00b8 }\n java.lang.Long r6 = java.lang.Long.valueOf(r6) // Catch:{ Exception -> 0x00b8 }\n r5.put(r6, r4) // Catch:{ Exception -> 0x00b8 }\n java.lang.Thread r5 = new java.lang.Thread // Catch:{ Exception -> 0x00b8 }\n r5.<init>(r4) // Catch:{ Exception -> 0x00b8 }\n r5.start() // Catch:{ Exception -> 0x00b8 }\n goto L_0x00b7\n L_0x00b5:\n r19 = r5\n L_0x00b7:\n goto L_0x00c0\n L_0x00b8:\n r0 = move-exception\n boolean r4 = r1.f40272l // Catch:{ all -> 0x00f6 }\n if (r4 == 0) goto L_0x00c0\n r0.printStackTrace() // Catch:{ all -> 0x00f6 }\n L_0x00c0:\n r4 = 0\n r1.f40269i = r4 // Catch:{ all -> 0x00f6 }\n java.util.concurrent.ConcurrentHashMap<java.lang.Long, d.k.a.i> r0 = r1.f40268h // Catch:{ all -> 0x00f6 }\n int r0 = r0.size() // Catch:{ all -> 0x00f6 }\n int r4 = r1.f40271k // Catch:{ all -> 0x00f6 }\n if (r0 >= r4) goto L_0x00f2\n d.k.a.a r0 = r1.f40263c // Catch:{ all -> 0x00f6 }\n boolean r0 = r0.mo42188g() // Catch:{ all -> 0x00f6 }\n if (r0 == 0) goto L_0x00f2\n r20.m43084l() // Catch:{ all -> 0x00f6 }\n goto L_0x00f2\n L_0x00d9:\n boolean r4 = r1.f40269i // Catch:{ all -> 0x00f6 }\n if (r4 != 0) goto L_0x00f2\n java.util.concurrent.ConcurrentHashMap<java.lang.Long, d.k.a.i> r4 = r1.f40268h // Catch:{ all -> 0x00f6 }\n int r4 = r4.size() // Catch:{ all -> 0x00f6 }\n if (r4 != 0) goto L_0x00f2\n d.k.a.a r4 = r1.f40263c // Catch:{ all -> 0x00f6 }\n boolean r4 = r4.mo42188g() // Catch:{ all -> 0x00f6 }\n if (r4 != 0) goto L_0x00f2\n r1.f40270j = r0 // Catch:{ all -> 0x00f6 }\n r20.mo42239b() // Catch:{ all -> 0x00f6 }\n L_0x00f2:\n monitor-exit(r20)\n return\n L_0x00f4:\n monitor-exit(r20)\n return\n L_0x00f6:\n r0 = move-exception\n monitor-exit(r20)\n throw r0\n */\n throw new UnsupportedOperationException(\"Method not decompiled: p019d.p314k.p315a.C13177s.m43084l():void\");\n }", "title": "" }, { "docid": "b16d1599c2ba94944d4f19e0dae347ab", "score": "0.6042838", "text": "public final void m13138a(java.lang.Object r10, com.fasterxml.jackson.core.JsonGenerator r11, com.fasterxml.jackson.databind.SerializerProvider r12) {\n /* JADX: method processing error */\n/*\nError: jadx.core.utils.exceptions.JadxRuntimeException: SSA rename variables already executed\n\tat jadx.core.dex.visitors.ssa.SSATransform.renameVariables(SSATransform.java:120)\n\tat jadx.core.dex.visitors.ssa.SSATransform.process(SSATransform.java:52)\n\tat jadx.core.dex.visitors.ssa.SSATransform.visit(SSATransform.java:42)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:31)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:17)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:14)\n\tat jadx.core.ProcessClass.process(ProcessClass.java:37)\n\tat jadx.core.ProcessClass.processDependencies(ProcessClass.java:59)\n\tat jadx.core.ProcessClass.process(ProcessClass.java:42)\n\tat jadx.api.JadxDecompiler.processClass(JadxDecompiler.java:306)\n\tat jadx.api.JavaClass.decompile(JavaClass.java:62)\n\tat jadx.api.JadxDecompiler$1.run(JadxDecompiler.java:199)\n*/\n /*\n r9 = this;\n r10 = (com.facebook.socialgood.guestlist.FundraiserGuestListModels.FundraiserNonDonorsConnectionQueryModel) r10;\n r2 = null;\n r0 = r10.w_();\n if (r0 != null) goto L_0x0035;\n L_0x0009:\n r0 = new com.facebook.flatbuffers.FlatBufferBuilder;\n r1 = 128;\n r0.<init>(r1);\n r1 = r10.m13141a(r0);\n r0.d(r1);\n r0 = r0.e();\n r1 = java.nio.ByteBuffer.wrap(r0);\n r0 = null;\n r1.position(r0);\n r0 = new com.facebook.flatbuffers.MutableFlatBuffer;\n r4 = 1;\n r3 = r2;\n r5 = r2;\n r0.<init>(r1, r2, r3, r4, r5);\n r6 = r0.a;\n r1 = r6;\n r1 = com.facebook.flatbuffers.FlatBuffer.a(r1);\n r10.a(r0, r1);\n L_0x0035:\n r0 = r10.w_();\n r1 = r10.u_();\n r8 = 1;\n r7 = null;\n r11.f();\n r6 = r0.g(r1, r7);\n if (r6 == null) goto L_0x0050;\n L_0x0048:\n r6 = \"__type__\";\n r11.a(r6);\n com.facebook.graphql.modelutil.SerializerHelpers.b(r0, r1, r7, r11);\n L_0x0050:\n r6 = r0.g(r1, r8);\n if (r6 == null) goto L_0x0062;\n L_0x0056:\n r6 = \"id\";\n r11.a(r6);\n r6 = r0.c(r1, r8);\n r11.b(r6);\n L_0x0062:\n r6 = 2;\n r6 = r0.g(r1, r6);\n if (r6 == null) goto L_0x0071;\n L_0x0069:\n r7 = \"invited_users\";\n r11.a(r7);\n com.facebook.socialgood.guestlist.FundraiserGuestListParsers.FundraiserNonDonorsConnectionQueryParser.InvitedUsersParser.m13184a(r0, r6, r11, r12);\n L_0x0071:\n r11.g();\n return;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.facebook.socialgood.guestlist.FundraiserGuestListModels.FundraiserNonDonorsConnectionQueryModel.Serializer.a(java.lang.Object, com.fasterxml.jackson.core.JsonGenerator, com.fasterxml.jackson.databind.SerializerProvider):void\");\n }", "title": "" }, { "docid": "d14121d02c6fe5770369cbff87409467", "score": "0.6040771", "text": "public void mo42893a(int r4) {\n /*\n r3 = this;\n monitor-enter(r3)\n java.lang.Object[] r0 = r3.f38855O // Catch:{ all -> 0x0025 }\n if (r0 != 0) goto L_0x0007\n monitor-exit(r3) // Catch:{ all -> 0x0025 }\n return\n L_0x0007:\n r4 = r0[r4] // Catch:{ all -> 0x0025 }\n r1 = 1\n if (r4 != 0) goto L_0x000e\n r4 = 1\n goto L_0x000f\n L_0x000e:\n r4 = 0\n L_0x000f:\n if (r4 != 0) goto L_0x0019\n int r2 = r3.f38862V // Catch:{ all -> 0x0025 }\n int r2 = r2 + r1\n r3.f38862V = r2 // Catch:{ all -> 0x0025 }\n int r0 = r0.length // Catch:{ all -> 0x0025 }\n if (r2 != r0) goto L_0x001b\n L_0x0019:\n r3.f38859S = r1 // Catch:{ all -> 0x0025 }\n L_0x001b:\n monitor-exit(r3) // Catch:{ all -> 0x0025 }\n if (r4 == 0) goto L_0x0021\n r3.mo42892a()\n L_0x0021:\n r3.mo42898e()\n return\n L_0x0025:\n r4 = move-exception\n monitor-exit(r3) // Catch:{ all -> 0x0025 }\n throw r4\n */\n throw new UnsupportedOperationException(\"Method not decompiled: p195e.p196a.p199x0.p454e.p459e.C13429u.C13431b.mo42893a(int):void\");\n }", "title": "" }, { "docid": "7523aa10f15b036e82296374d572f727", "score": "0.60358", "text": "private java.lang.String m7368b(java.lang.String r3) {\n /* JADX: method processing error */\n/*\nError: java.lang.NullPointerException\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.searchTryCatchDominators(ProcessTryCatchRegions.java:75)\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.process(ProcessTryCatchRegions.java:45)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.postProcessRegions(RegionMakerVisitor.java:63)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.visit(RegionMakerVisitor.java:58)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:31)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:17)\n\tat jadx.core.ProcessClass.process(ProcessClass.java:34)\n\tat jadx.api.JadxDecompiler.processClass(JadxDecompiler.java:282)\n\tat jadx.api.JavaClass.decompile(JavaClass.java:62)\n\tat jadx.api.JadxDecompiler.lambda$appendSourcesSave$0(JadxDecompiler.java:200)\n\tat jadx.api.JadxDecompiler$$Lambda$8/509891820.run(Unknown Source)\n*/\n /*\n r2 = this;\n r0 = com.facebook.ads.internal.p088g.C1799a.m6761a();\t Catch:{ Exception -> 0x000f }\n r1 = \"analog\";\t Catch:{ Exception -> 0x000f }\n r0 = com.facebook.ads.internal.p101q.p102a.C1921k.m7293a(r0);\t Catch:{ Exception -> 0x000f }\n r0 = r2.m7366a(r3, r1, r0);\t Catch:{ Exception -> 0x000f }\n return r0;\n L_0x000f:\n return r3;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.facebook.ads.internal.q.c.e.b(java.lang.String):java.lang.String\");\n }", "title": "" }, { "docid": "79ce35406ba1245da6832af9f65f9524", "score": "0.5920445", "text": "protected java.lang.String[] m1036a(java.lang.Void... r10) {\n /* JADX: method processing error */\n/*\nError: java.lang.NullPointerException\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.searchTryCatchDominators(ProcessTryCatchRegions.java:75)\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.process(ProcessTryCatchRegions.java:45)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.postProcessRegions(RegionMakerVisitor.java:63)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.visit(RegionMakerVisitor.java:58)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:31)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:17)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:14)\n\tat jadx.core.ProcessClass.process(ProcessClass.java:34)\n\tat jadx.core.ProcessClass.processDependencies(ProcessClass.java:56)\n\tat jadx.core.ProcessClass.process(ProcessClass.java:39)\n\tat jadx.api.JadxDecompiler.processClass(JadxDecompiler.java:282)\n\tat jadx.api.JavaClass.decompile(JavaClass.java:62)\n\tat jadx.api.JadxDecompiler.lambda$appendSourcesSave$0(JadxDecompiler.java:200)\n\tat jadx.api.JadxDecompiler$$Lambda$8/318857719.run(Unknown Source)\n*/\n /*\n r9 = this;\n r10 = r9.f863b;\n r0 = \"media\";\n r10 = r10.getStringArray(r0);\n r0 = r10.length;\n r0 = new java.lang.String[r0];\n r1 = r10.length;\n r1 = new java.lang.Exception[r1];\n r9.f864c = r1;\n r1 = new java.util.concurrent.CountDownLatch;\n r2 = r10.length;\n r1.<init>(r2);\n r2 = new java.util.concurrent.ConcurrentLinkedQueue;\n r2.<init>();\n r3 = com.facebook.AccessToken.m446c();\n r4 = 0;\n L_0x0020:\n r5 = 0;\n r6 = 1;\n r7 = r10.length;\t Catch:{ Exception -> 0x006d }\n if (r4 >= r7) goto L_0x0069;\t Catch:{ Exception -> 0x006d }\n L_0x0025:\n r7 = r9.isCancelled();\t Catch:{ Exception -> 0x006d }\n if (r7 == 0) goto L_0x0040;\t Catch:{ Exception -> 0x006d }\n L_0x002b:\n r10 = r2.iterator();\t Catch:{ Exception -> 0x006d }\n L_0x002f:\n r0 = r10.hasNext();\t Catch:{ Exception -> 0x006d }\n if (r0 == 0) goto L_0x003f;\t Catch:{ Exception -> 0x006d }\n L_0x0035:\n r0 = r10.next();\t Catch:{ Exception -> 0x006d }\n r0 = (android.os.AsyncTask) r0;\t Catch:{ Exception -> 0x006d }\n r0.cancel(r6);\t Catch:{ Exception -> 0x006d }\n goto L_0x002f;\t Catch:{ Exception -> 0x006d }\n L_0x003f:\n return r5;\t Catch:{ Exception -> 0x006d }\n L_0x0040:\n r7 = r10[r4];\t Catch:{ Exception -> 0x006d }\n r7 = android.net.Uri.parse(r7);\t Catch:{ Exception -> 0x006d }\n r8 = com.facebook.internal.C0475Q.m1006d(r7);\t Catch:{ Exception -> 0x006d }\n if (r8 == 0) goto L_0x0056;\t Catch:{ Exception -> 0x006d }\n L_0x004c:\n r7 = r7.toString();\t Catch:{ Exception -> 0x006d }\n r0[r4] = r7;\t Catch:{ Exception -> 0x006d }\n r1.countDown();\t Catch:{ Exception -> 0x006d }\n goto L_0x0066;\t Catch:{ Exception -> 0x006d }\n L_0x0056:\n r8 = new com.facebook.internal.Y;\t Catch:{ Exception -> 0x006d }\n r8.<init>(r9, r0, r4, r1);\t Catch:{ Exception -> 0x006d }\n r7 = com.facebook.share.internal.C0551g.m1232a(r3, r7, r8);\t Catch:{ Exception -> 0x006d }\n r7 = r7.m556c();\t Catch:{ Exception -> 0x006d }\n r2.add(r7);\t Catch:{ Exception -> 0x006d }\n L_0x0066:\n r4 = r4 + 1;\t Catch:{ Exception -> 0x006d }\n goto L_0x0020;\t Catch:{ Exception -> 0x006d }\n L_0x0069:\n r1.await();\t Catch:{ Exception -> 0x006d }\n return r0;\n L_0x006d:\n r10 = r2.iterator();\n L_0x0071:\n r0 = r10.hasNext();\n if (r0 == 0) goto L_0x0081;\n L_0x0077:\n r0 = r10.next();\n r0 = (android.os.AsyncTask) r0;\n r0.cancel(r6);\n goto L_0x0071;\n L_0x0081:\n return r5;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.facebook.internal.X.d.a(java.lang.Void[]):java.lang.String[]\");\n }", "title": "" }, { "docid": "9079cf85faf3022187de4b5f819c23c1", "score": "0.59044766", "text": "public void u() {\n /*\n r5 = this;\n r0 = s;\n r1 = r5.x();\n r2 = r1.exists();\t Catch:{ IllegalArgumentException -> 0x0071 }\n if (r2 == 0) goto L_0x0011;\n L_0x000c:\n r1.delete();\t Catch:{ IllegalArgumentException -> 0x0073 }\n if (r0 == 0) goto L_0x0039;\n L_0x0011:\n r2 = new java.lang.StringBuilder;\t Catch:{ IllegalArgumentException -> 0x0073 }\n r2.<init>();\t Catch:{ IllegalArgumentException -> 0x0073 }\n r3 = z;\t Catch:{ IllegalArgumentException -> 0x0073 }\n r4 = 34;\n r3 = r3[r4];\t Catch:{ IllegalArgumentException -> 0x0073 }\n r2 = r2.append(r3);\t Catch:{ IllegalArgumentException -> 0x0073 }\n r1 = r1.getAbsolutePath();\t Catch:{ IllegalArgumentException -> 0x0073 }\n r1 = r2.append(r1);\t Catch:{ IllegalArgumentException -> 0x0073 }\n r2 = z;\t Catch:{ IllegalArgumentException -> 0x0073 }\n r3 = 35;\n r2 = r2[r3];\t Catch:{ IllegalArgumentException -> 0x0073 }\n r1 = r1.append(r2);\t Catch:{ IllegalArgumentException -> 0x0073 }\n r1 = r1.toString();\t Catch:{ IllegalArgumentException -> 0x0073 }\n com.whatsapp.util.Log.i(r1);\t Catch:{ IllegalArgumentException -> 0x0073 }\n L_0x0039:\n r1 = r5.r();\n r2 = r1.exists();\t Catch:{ IllegalArgumentException -> 0x0075 }\n if (r2 == 0) goto L_0x0048;\n L_0x0043:\n r1.delete();\t Catch:{ IllegalArgumentException -> 0x0077 }\n if (r0 == 0) goto L_0x0070;\n L_0x0048:\n r0 = new java.lang.StringBuilder;\t Catch:{ IllegalArgumentException -> 0x0077 }\n r0.<init>();\t Catch:{ IllegalArgumentException -> 0x0077 }\n r2 = z;\t Catch:{ IllegalArgumentException -> 0x0077 }\n r3 = 33;\n r2 = r2[r3];\t Catch:{ IllegalArgumentException -> 0x0077 }\n r0 = r0.append(r2);\t Catch:{ IllegalArgumentException -> 0x0077 }\n r1 = r1.getAbsolutePath();\t Catch:{ IllegalArgumentException -> 0x0077 }\n r0 = r0.append(r1);\t Catch:{ IllegalArgumentException -> 0x0077 }\n r1 = z;\t Catch:{ IllegalArgumentException -> 0x0077 }\n r2 = 36;\n r1 = r1[r2];\t Catch:{ IllegalArgumentException -> 0x0077 }\n r0 = r0.append(r1);\t Catch:{ IllegalArgumentException -> 0x0077 }\n r0 = r0.toString();\t Catch:{ IllegalArgumentException -> 0x0077 }\n com.whatsapp.util.Log.i(r0);\t Catch:{ IllegalArgumentException -> 0x0077 }\n L_0x0070:\n return;\n L_0x0071:\n r0 = move-exception;\n throw r0;\t Catch:{ IllegalArgumentException -> 0x0073 }\n L_0x0073:\n r0 = move-exception;\n throw r0;\n L_0x0075:\n r0 = move-exception;\n throw r0;\t Catch:{ IllegalArgumentException -> 0x0077 }\n L_0x0077:\n r0 = move-exception;\n throw r0;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.whatsapp.l5.u():void\");\n }", "title": "" }, { "docid": "c8908090eed319dfaa0514243be9f0d4", "score": "0.590425", "text": "private String g(String var1_1) {\n block20 : {\n block16 : {\n block17 : {\n block18 : {\n block19 : {\n var2_2 = var1_1.hashCode();\n if (var2_2 == 67) break block16;\n if (var2_2 == 72) break block17;\n if (var2_2 == 80) break block18;\n if (var2_2 == 87) break block19;\n switch (var2_2) {\n default: {\n ** GOTO lbl-1000\n }\n case 85: {\n if (var1_1.equals((Object)\"U\")) {\n var3_3 = 4;\n ** break;\n }\n ** GOTO lbl-1000\n }\n case 84: {\n if (var1_1.equals((Object)\"T\")) {\n var3_3 = 3;\n ** break;\n }\n ** GOTO lbl-1000\nlbl19: // 2 sources:\n break;\n }\n }\n break block20;\n }\n if (!var1_1.equals((Object)\"W\")) ** GOTO lbl-1000\n var3_3 = 0;\n break block20;\n }\n if (!var1_1.equals((Object)\"P\")) ** GOTO lbl-1000\n var3_3 = 5;\n break block20;\n }\n if (!var1_1.equals((Object)\"H\")) ** GOTO lbl-1000\n var3_3 = 2;\n break block20;\n }\n if (var1_1.equals((Object)\"C\")) {\n var3_3 = 1;\n } else lbl-1000: // 7 sources:\n {\n var3_3 = -1;\n }\n }\n switch (var3_3) {\n default: {\n return null;\n }\n case 5: {\n return \"PUNE CHAT\";\n }\n case 4: {\n return com.mobond.mindicator.ui.multicity.a.a[4];\n }\n case 3: {\n return com.mobond.mindicator.ui.multicity.a.a[3];\n }\n case 2: {\n return com.mobond.mindicator.ui.multicity.a.a[2];\n }\n case 1: {\n return com.mobond.mindicator.ui.multicity.a.a[1];\n }\n case 0: \n }\n return com.mobond.mindicator.ui.multicity.a.a[0];\n }", "title": "" }, { "docid": "f0e3a564f7120ae482f7454701ea1139", "score": "0.5896717", "text": "public final void m25318a(java.lang.Object r10, com.fasterxml.jackson.core.JsonGenerator r11, com.fasterxml.jackson.databind.SerializerProvider r12) {\n /* JADX: method processing error */\n/*\nError: jadx.core.utils.exceptions.JadxRuntimeException: SSA rename variables already executed\n\tat jadx.core.dex.visitors.ssa.SSATransform.renameVariables(SSATransform.java:120)\n\tat jadx.core.dex.visitors.ssa.SSATransform.process(SSATransform.java:52)\n\tat jadx.core.dex.visitors.ssa.SSATransform.visit(SSATransform.java:42)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:31)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:17)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:14)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:14)\n\tat jadx.core.ProcessClass.process(ProcessClass.java:37)\n\tat jadx.core.ProcessClass.processDependencies(ProcessClass.java:59)\n\tat jadx.core.ProcessClass.process(ProcessClass.java:42)\n\tat jadx.api.JadxDecompiler.processClass(JadxDecompiler.java:306)\n\tat jadx.api.JavaClass.decompile(JavaClass.java:62)\n\tat jadx.api.JadxDecompiler$1.run(JadxDecompiler.java:199)\n*/\n /*\n r9 = this;\n r10 = (com.facebook.tagging.graphql.protocol.FetchGroupMembersToMentionQueryModels.FetchGroupMembersToMentionQueryModel) r10;\n r2 = null;\n r0 = r10.w_();\n if (r0 != null) goto L_0x0035;\n L_0x0009:\n r0 = new com.facebook.flatbuffers.FlatBufferBuilder;\n r1 = 128;\n r0.<init>(r1);\n r1 = r10.m25320a(r0);\n r0.d(r1);\n r0 = r0.e();\n r1 = java.nio.ByteBuffer.wrap(r0);\n r0 = null;\n r1.position(r0);\n r0 = new com.facebook.flatbuffers.MutableFlatBuffer;\n r4 = 1;\n r3 = r2;\n r5 = r2;\n r0.<init>(r1, r2, r3, r4, r5);\n r6 = r0.a;\n r1 = r6;\n r1 = com.facebook.flatbuffers.FlatBuffer.a(r1);\n r10.a(r0, r1);\n L_0x0035:\n r0 = r10.w_();\n r1 = r10.u_();\n r8 = 2;\n r11.f();\n r6 = null;\n r6 = r0.g(r1, r6);\n if (r6 == null) goto L_0x0050;\n L_0x0048:\n r7 = \"group_mentions\";\n r11.a(r7);\n com.facebook.tagging.graphql.protocol.FetchGroupMembersToMentionQueryParsers.FetchGroupMembersToMentionQueryParser.GroupMentionsParser.m25340a(r0, r6, r11, r12);\n L_0x0050:\n r6 = 1;\n r6 = r0.g(r1, r6);\n if (r6 == null) goto L_0x005f;\n L_0x0057:\n r7 = \"parent_group\";\n r11.a(r7);\n com.facebook.tagging.graphql.protocol.FetchGroupMembersToMentionQueryParsers.FetchGroupMembersToMentionQueryParser.ParentGroupParser.m25342a(r0, r6, r11);\n L_0x005f:\n r6 = r0.g(r1, r8);\n if (r6 == null) goto L_0x0071;\n L_0x0065:\n r6 = \"visibility\";\n r11.a(r6);\n r6 = r0.b(r1, r8);\n r11.b(r6);\n L_0x0071:\n r11.g();\n return;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.facebook.tagging.graphql.protocol.FetchGroupMembersToMentionQueryModels.FetchGroupMembersToMentionQueryModel.Serializer.a(java.lang.Object, com.fasterxml.jackson.core.JsonGenerator, com.fasterxml.jackson.databind.SerializerProvider):void\");\n }", "title": "" }, { "docid": "8ff204f854cd3fc3db34a2ea017b4edc", "score": "0.5883646", "text": "public void a(ji var1_1) {\n var1_1.a();\n while (true) {\n block6: {\n block7: {\n block8: {\n var2_2 /* !! */ = var1_1.a();\n var3_3 = var2_2 /* !! */ .a;\n if (var3_3 == 0) {\n var1_1.f();\n var4_10 = this.a();\n if (var4_10) {\n this.a();\n return;\n }\n var2_2 /* !! */ = new StringBuilder();\n var2_2 /* !! */ .append(\"Required field 'version' was not found in serialized data! Struct: \");\n var5_4 = this.toString();\n var2_2 /* !! */ .append((String)var5_4);\n var2_2 /* !! */ = var2_2 /* !! */ .toString();\n var1_1 = new jj((String)var2_2 /* !! */ );\n throw var1_1;\n }\n var6_5 = var2_2 /* !! */ .a;\n var7_6 = 8;\n var8_7 = 1;\n if (var6_5 == var8_7) break block7;\n var8_7 = 2;\n if (var6_5 == var8_7) break block8;\n var8_7 = 3;\n if (var6_5 != var8_7) lbl-1000:\n // 4 sources\n\n {\n while (true) {\n jl.a((ji)var1_1, (byte)var3_3);\n break block6;\n break;\n }\n }\n if (var3_3 != var7_6) ** GOTO lbl-1000\n var6_5 = var1_1.a();\n var2_2 /* !! */ = hs.a(var6_5);\n this.a = var2_2 /* !! */ ;\n break block6;\n }\n var6_5 = 15;\n if (var3_3 != var6_5) ** GOTO lbl-1000\n var2_2 /* !! */ = var1_1.a();\n var7_6 = var2_2 /* !! */ .a;\n this.a = var5_4 = new ArrayList<E>(var7_6);\n var5_4 = null;\n for (var3_3 = 0; var3_3 < (var7_6 = var2_2 /* !! */ .a); ++var3_3) {\n var9_8 = new hx();\n var9_8.a((ji)var1_1);\n var10_9 = this.a;\n var10_9.add(var9_8);\n }\n var1_1.i();\n break block6;\n }\n if (var3_3 == var7_6) ** break;\n ** continue;\n this.a = var6_5 = var1_1.a();\n this.a((boolean)var8_7);\n }\n var1_1.g();\n }\n }", "title": "" }, { "docid": "a8c66e75f9178f88f785cd54776683dc", "score": "0.58800304", "text": "public synchronized boolean m847a(byte[] r12, int r13, int r14, int r15) {\n /*\n r11 = this;\n r3 = 0;\n r1 = 1;\n r4 = 0;\n r0 = 0;\n monitor-enter(r11);\n if (r12 != 0) goto L_0x000a;\n L_0x0008:\n monitor-exit(r11);\n return r0;\n L_0x000a:\n r6 = r12.length;\t Catch:{ all -> 0x00a2 }\n if (r6 <= 0) goto L_0x0008;\n L_0x000d:\n r2 = 0;\n r9 = r11.m843a(r13, r14, r15, r2);\t Catch:{ all -> 0x00a2 }\n if (r9 == 0) goto L_0x0008;\n L_0x0014:\n r2 = r9.length;\t Catch:{ all -> 0x00a2 }\n r7 = 2;\n if (r2 != r7) goto L_0x0008;\n L_0x0018:\n r2 = 0;\n r2 = r9[r2];\t Catch:{ all -> 0x00a2 }\n r7 = \"\";\n r2 = r2.equals(r7);\t Catch:{ all -> 0x00a2 }\n if (r2 != 0) goto L_0x0008;\n L_0x0023:\n r2 = \"\";\n r2 = r9.equals(r2);\t Catch:{ all -> 0x00a2 }\n if (r2 != 0) goto L_0x0008;\n L_0x002b:\n r7 = new java.io.File;\t Catch:{ all -> 0x00a2 }\n r2 = 1;\n r2 = r9[r2];\t Catch:{ all -> 0x00a2 }\n r7.<init>(r2);\t Catch:{ all -> 0x00a2 }\n r2 = r7.exists();\t Catch:{ all -> 0x00a2 }\n if (r2 != 0) goto L_0x003f;\n L_0x0039:\n r2 = r7.createNewFile();\t Catch:{ IOException -> 0x00a5 }\n L_0x003d:\n if (r2 == 0) goto L_0x0008;\n L_0x003f:\n r2 = new java.io.RandomAccessFile;\t Catch:{ FileNotFoundException -> 0x00ab }\n r8 = \"rws\";\n r2.<init>(r7, r8);\t Catch:{ FileNotFoundException -> 0x00ab }\n L_0x0046:\n if (r2 == 0) goto L_0x0008;\n L_0x0048:\n r10 = r11.m842a(r6);\t Catch:{ all -> 0x00a2 }\n r11.m841a(r10);\t Catch:{ all -> 0x00a2 }\n r6 = r2.length();\t Catch:{ IOException -> 0x00b1 }\n r7 = r6;\n L_0x0054:\n r2.seek(r7);\t Catch:{ IOException -> 0x00b7 }\n L_0x0057:\n r2.write(r10);\t Catch:{ IOException -> 0x00bc }\n L_0x005a:\n r2.write(r12);\t Catch:{ IOException -> 0x00c1 }\n L_0x005d:\n r2.close();\t Catch:{ IOException -> 0x00c6 }\n L_0x0060:\n r6 = new java.io.File;\t Catch:{ all -> 0x00a2 }\n r2 = 0;\n r2 = r9[r2];\t Catch:{ all -> 0x00a2 }\n r6.<init>(r2);\t Catch:{ all -> 0x00a2 }\n r2 = r6.exists();\t Catch:{ all -> 0x00a2 }\n if (r2 != 0) goto L_0x0074;\n L_0x006e:\n r2 = r6.createNewFile();\t Catch:{ IOException -> 0x00cb }\n L_0x0072:\n if (r2 == 0) goto L_0x0008;\n L_0x0074:\n r2 = new java.io.RandomAccessFile;\t Catch:{ FileNotFoundException -> 0x00d1 }\n r9 = \"rws\";\n r2.<init>(r6, r9);\t Catch:{ FileNotFoundException -> 0x00d1 }\n r6 = r2;\n L_0x007c:\n if (r6 == 0) goto L_0x0008;\n L_0x007e:\n r2 = r6.length();\t Catch:{ IOException -> 0x00d7 }\n L_0x0082:\n r2 = (r2 > r4 ? 1 : (r2 == r4 ? 0 : -1));\n if (r2 != 0) goto L_0x0091;\n L_0x0086:\n r2 = 65536; // 0x10000 float:9.18355E-41 double:3.2379E-319;\n r2 = new byte[r2];\t Catch:{ all -> 0x00a2 }\n r3 = -1;\n java.util.Arrays.fill(r2, r3);\t Catch:{ all -> 0x00a2 }\n r6.write(r2);\t Catch:{ IOException -> 0x00dd }\n L_0x0091:\n r2 = r11.m840a(r13, r14);\t Catch:{ all -> 0x00a2 }\n if (r2 >= 0) goto L_0x00e2;\n L_0x0097:\n r6.close();\t Catch:{ IOException -> 0x009c }\n goto L_0x0008;\n L_0x009c:\n r1 = move-exception;\n r1.printStackTrace();\t Catch:{ all -> 0x00a2 }\n goto L_0x0008;\n L_0x00a2:\n r0 = move-exception;\n monitor-exit(r11);\n throw r0;\n L_0x00a5:\n r2 = move-exception;\n r2.printStackTrace();\t Catch:{ all -> 0x00a2 }\n r2 = r0;\n goto L_0x003d;\n L_0x00ab:\n r2 = move-exception;\n r2.printStackTrace();\t Catch:{ all -> 0x00a2 }\n r2 = r3;\n goto L_0x0046;\n L_0x00b1:\n r6 = move-exception;\n r6.printStackTrace();\t Catch:{ all -> 0x00a2 }\n r7 = r4;\n goto L_0x0054;\n L_0x00b7:\n r6 = move-exception;\n r6.printStackTrace();\t Catch:{ all -> 0x00a2 }\n goto L_0x0057;\n L_0x00bc:\n r6 = move-exception;\n r6.printStackTrace();\t Catch:{ all -> 0x00a2 }\n goto L_0x005a;\n L_0x00c1:\n r6 = move-exception;\n r6.printStackTrace();\t Catch:{ all -> 0x00a2 }\n goto L_0x005d;\n L_0x00c6:\n r2 = move-exception;\n r2.printStackTrace();\t Catch:{ all -> 0x00a2 }\n goto L_0x0060;\n L_0x00cb:\n r2 = move-exception;\n r2.printStackTrace();\t Catch:{ all -> 0x00a2 }\n r2 = r0;\n goto L_0x0072;\n L_0x00d1:\n r2 = move-exception;\n r2.printStackTrace();\t Catch:{ all -> 0x00a2 }\n r6 = r3;\n goto L_0x007c;\n L_0x00d7:\n r2 = move-exception;\n r2.printStackTrace();\t Catch:{ all -> 0x00a2 }\n r2 = r4;\n goto L_0x0082;\n L_0x00dd:\n r2 = move-exception;\n r2.printStackTrace();\t Catch:{ all -> 0x00a2 }\n goto L_0x0091;\n L_0x00e2:\n r0 = r2 * 4;\n r2 = (long) r0;\n r6.seek(r2);\t Catch:{ IOException -> 0x00f9 }\n L_0x00e8:\n r0 = (int) r7;\n r0 = r11.m842a(r0);\t Catch:{ all -> 0x00a2 }\n r11.m841a(r0);\t Catch:{ all -> 0x00a2 }\n r6.write(r0);\t Catch:{ IOException -> 0x00fe }\n L_0x00f3:\n r6.close();\t Catch:{ IOException -> 0x0103 }\n L_0x00f6:\n r0 = r1;\n goto L_0x0008;\n L_0x00f9:\n r0 = move-exception;\n r0.printStackTrace();\t Catch:{ all -> 0x00a2 }\n goto L_0x00e8;\n L_0x00fe:\n r0 = move-exception;\n r0.printStackTrace();\t Catch:{ all -> 0x00a2 }\n goto L_0x00f3;\n L_0x0103:\n r0 = move-exception;\n r0.printStackTrace();\t Catch:{ all -> 0x00a2 }\n goto L_0x00f6;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.amap.mapapi.map.k.a(byte[], int, int, int):boolean\");\n }", "title": "" }, { "docid": "aef8354b34b7c3fa97b155abb7ad1d97", "score": "0.5869672", "text": "private static com.p280ss.android.ugc.aweme.account.p978m.p979a.C22182a.C22183a m73615a(com.p280ss.android.ugc.aweme.account.p978m.p979a.C22182a.C22183a r2, com.p280ss.android.ugc.aweme.account.p978m.p979a.C22182a.C22184b r3) {\n /*\n java.lang.Integer r0 = r2.f59253a\n r1 = 1\n if (r0 == 0) goto L_0x001b\n java.lang.Integer r0 = r2.f59253a\n if (r0 != 0) goto L_0x000a\n goto L_0x0010\n L_0x000a:\n int r0 = r0.intValue()\n if (r0 == r1) goto L_0x001b\n L_0x0010:\n java.lang.Integer r0 = r2.f59253a\n if (r0 != 0) goto L_0x0015\n goto L_0x0035\n L_0x0015:\n int r0 = r0.intValue()\n if (r0 != 0) goto L_0x0035\n L_0x001b:\n java.lang.Integer r0 = r2.f59254b\n if (r0 == 0) goto L_0x0044\n java.lang.Integer r0 = r2.f59254b\n if (r0 != 0) goto L_0x0024\n goto L_0x002a\n L_0x0024:\n int r0 = r0.intValue()\n if (r0 == r1) goto L_0x0044\n L_0x002a:\n java.lang.Integer r0 = r2.f59254b\n if (r0 != 0) goto L_0x002f\n goto L_0x0035\n L_0x002f:\n int r0 = r0.intValue()\n if (r0 == 0) goto L_0x0044\n L_0x0035:\n r0 = 0\n java.lang.Integer r1 = java.lang.Integer.valueOf(r0)\n r2.f59253a = r1\n java.lang.Integer r1 = java.lang.Integer.valueOf(r0)\n r2.f59254b = r1\n r3.f59258c = r0\n L_0x0044:\n return r2\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.p280ss.android.ugc.aweme.account.p978m.p979a.C22182a.m73615a(com.ss.android.ugc.aweme.account.m.a.a$a, com.ss.android.ugc.aweme.account.m.a.a$b):com.ss.android.ugc.aweme.account.m.a.a$a\");\n }", "title": "" }, { "docid": "adf385bce252fd3374d810002193aadd", "score": "0.5868605", "text": "public void processRemaining(java.nio.ByteBuffer r14) {\n /*\n r13 = this;\n int r0 = r13.c\n int r1 = r14.remaining()\n int r0 = r0 + r1\n r13.c = r0\n int r0 = r14.remaining()\n r1 = 16\n r2 = 24\n r3 = 32\n r4 = 40\n r5 = 48\n r6 = 0\n r8 = 8\n switch(r0) {\n case 1: goto L_0x00fe;\n case 2: goto L_0x00ef;\n case 3: goto L_0x00df;\n case 4: goto L_0x00cf;\n case 5: goto L_0x00bf;\n case 6: goto L_0x00af;\n case 7: goto L_0x00a1;\n case 8: goto L_0x0096;\n case 9: goto L_0x0089;\n case 10: goto L_0x0079;\n case 11: goto L_0x0068;\n case 12: goto L_0x0057;\n case 13: goto L_0x0046;\n case 14: goto L_0x0035;\n case 15: goto L_0x0026;\n default: goto L_0x001e;\n }\n L_0x001e:\n java.lang.AssertionError r14 = new java.lang.AssertionError\n java.lang.String r0 = \"Should never get here.\"\n r14.<init>(r0)\n throw r14\n L_0x0026:\n r0 = 14\n byte r0 = r14.get(r0)\n int r0 = com.google.common.primitives.UnsignedBytes.toInt(r0)\n long r9 = (long) r0\n long r9 = r9 << r5\n long r11 = r9 ^ r6\n goto L_0x0036\n L_0x0035:\n r11 = r6\n L_0x0036:\n r0 = 13\n byte r0 = r14.get(r0)\n int r0 = com.google.common.primitives.UnsignedBytes.toInt(r0)\n long r9 = (long) r0\n long r4 = r9 << r4\n long r9 = r11 ^ r4\n goto L_0x0047\n L_0x0046:\n r9 = r6\n L_0x0047:\n r0 = 12\n byte r0 = r14.get(r0)\n int r0 = com.google.common.primitives.UnsignedBytes.toInt(r0)\n long r4 = (long) r0\n long r3 = r4 << r3\n long r11 = r9 ^ r3\n goto L_0x0058\n L_0x0057:\n r11 = r6\n L_0x0058:\n r0 = 11\n byte r0 = r14.get(r0)\n int r0 = com.google.common.primitives.UnsignedBytes.toInt(r0)\n long r3 = (long) r0\n long r2 = r3 << r2\n long r4 = r11 ^ r2\n goto L_0x0069\n L_0x0068:\n r4 = r6\n L_0x0069:\n r0 = 10\n byte r0 = r14.get(r0)\n int r0 = com.google.common.primitives.UnsignedBytes.toInt(r0)\n long r2 = (long) r0\n long r0 = r2 << r1\n long r2 = r4 ^ r0\n goto L_0x007a\n L_0x0079:\n r2 = r6\n L_0x007a:\n r0 = 9\n byte r0 = r14.get(r0)\n int r0 = com.google.common.primitives.UnsignedBytes.toInt(r0)\n long r0 = (long) r0\n long r0 = r0 << r8\n long r4 = r2 ^ r0\n goto L_0x008a\n L_0x0089:\n r4 = r6\n L_0x008a:\n byte r0 = r14.get(r8)\n int r0 = com.google.common.primitives.UnsignedBytes.toInt(r0)\n long r0 = (long) r0\n long r2 = r4 ^ r0\n goto L_0x0097\n L_0x0096:\n r2 = r6\n L_0x0097:\n long r0 = r14.getLong()\n long r4 = r6 ^ r0\n r6 = r2\n r2 = r4\n goto L_0x010b\n L_0x00a1:\n r0 = 6\n byte r0 = r14.get(r0)\n int r0 = com.google.common.primitives.UnsignedBytes.toInt(r0)\n long r9 = (long) r0\n long r9 = r9 << r5\n long r11 = r9 ^ r6\n goto L_0x00b0\n L_0x00af:\n r11 = r6\n L_0x00b0:\n r0 = 5\n byte r0 = r14.get(r0)\n int r0 = com.google.common.primitives.UnsignedBytes.toInt(r0)\n long r9 = (long) r0\n long r4 = r9 << r4\n long r9 = r11 ^ r4\n goto L_0x00c0\n L_0x00bf:\n r9 = r6\n L_0x00c0:\n r0 = 4\n byte r0 = r14.get(r0)\n int r0 = com.google.common.primitives.UnsignedBytes.toInt(r0)\n long r4 = (long) r0\n long r3 = r4 << r3\n long r11 = r9 ^ r3\n goto L_0x00d0\n L_0x00cf:\n r11 = r6\n L_0x00d0:\n r0 = 3\n byte r0 = r14.get(r0)\n int r0 = com.google.common.primitives.UnsignedBytes.toInt(r0)\n long r3 = (long) r0\n long r2 = r3 << r2\n long r4 = r11 ^ r2\n goto L_0x00e0\n L_0x00df:\n r4 = r6\n L_0x00e0:\n r0 = 2\n byte r0 = r14.get(r0)\n int r0 = com.google.common.primitives.UnsignedBytes.toInt(r0)\n long r2 = (long) r0\n long r0 = r2 << r1\n long r2 = r4 ^ r0\n goto L_0x00f0\n L_0x00ef:\n r2 = r6\n L_0x00f0:\n r0 = 1\n byte r0 = r14.get(r0)\n int r0 = com.google.common.primitives.UnsignedBytes.toInt(r0)\n long r0 = (long) r0\n long r0 = r0 << r8\n long r4 = r2 ^ r0\n goto L_0x00ff\n L_0x00fe:\n r4 = r6\n L_0x00ff:\n r0 = 0\n byte r14 = r14.get(r0)\n int r14 = com.google.common.primitives.UnsignedBytes.toInt(r14)\n long r0 = (long) r14\n long r2 = r4 ^ r0\n L_0x010b:\n long r0 = r13.a\n long r2 = b(r2)\n long r4 = r0 ^ r2\n r13.a = r4\n long r0 = r13.b\n long r2 = c(r6)\n long r4 = r0 ^ r2\n r13.b = r4\n return\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.common.hash.Murmur3_128HashFunction.Murmur3_128Hasher.processRemaining(java.nio.ByteBuffer):void\");\n }", "title": "" }, { "docid": "89c59cd01b7f933396de57a0ca77bc85", "score": "0.5863978", "text": "public final void XX(boolean r12) {\n /*\n r11 = this;\n r4 = 0;\n r0 = r11.VH;\n r6 = r0.DW();\n r0 = 159; // 0x9f float:2.23E-43 double:7.86E-322;\n r1 = 0;\n r2 = 0;\n r3 = 1;\n r3 = r11.DW(r3);\n switch(r3) {\n case 46: goto L_0x002a;\n case 47: goto L_0x0013;\n case 48: goto L_0x010f;\n case 49: goto L_0x010f;\n case 50: goto L_0x010f;\n case 51: goto L_0x010f;\n case 52: goto L_0x010f;\n case 53: goto L_0x010f;\n case 54: goto L_0x010f;\n case 55: goto L_0x010f;\n case 56: goto L_0x010f;\n case 57: goto L_0x010f;\n default: goto L_0x0013;\n };\n L_0x0013:\n r0 = new groovyjarjarantlr.NoViableAltForCharException;\n r1 = 1;\n r1 = r11.DW(r1);\n r2 = r11.v5();\n r3 = r11.Zo();\n r4 = r11.Hw();\n r0.<init>(r1, r2, r3, r4);\n throw r0;\n L_0x002a:\n r1 = 46;\n r11.DW(r1);\n r1 = r11.QX;\n r1 = r1.VH;\n if (r1 != 0) goto L_0x0037;\n L_0x0035:\n r0 = 68;\n L_0x0037:\n r1 = 1;\n r1 = r11.DW(r1);\n switch(r1) {\n case 46: goto L_0x00ff;\n case 47: goto L_0x003f;\n case 48: goto L_0x0062;\n case 49: goto L_0x0062;\n case 50: goto L_0x0062;\n case 51: goto L_0x0062;\n case 52: goto L_0x0062;\n case 53: goto L_0x0062;\n case 54: goto L_0x0062;\n case 55: goto L_0x0062;\n case 56: goto L_0x0062;\n case 57: goto L_0x0062;\n default: goto L_0x003f;\n };\n L_0x003f:\n if (r12 == 0) goto L_0x0454;\n L_0x0041:\n if (r4 != 0) goto L_0x0454;\n L_0x0043:\n r1 = -1;\n if (r0 == r1) goto L_0x0454;\n L_0x0046:\n r0 = r11.FH(r0);\n r1 = new java.lang.String;\n r2 = r11.VH;\n r2 = r2.j6();\n r3 = r11.VH;\n r3 = r3.DW();\n r3 = r3 - r6;\n r1.<init>(r2, r6, r3);\n r0.j6(r1);\n L_0x005f:\n r11.J8 = r0;\n return;\n L_0x0062:\n r1 = 0;\n L_0x0063:\n r3 = 1;\n r3 = r11.DW(r3);\n r5 = 48;\n if (r3 < r5) goto L_0x007f;\n L_0x006c:\n r3 = 1;\n r3 = r11.DW(r3);\n r5 = 57;\n if (r3 > r5) goto L_0x007f;\n L_0x0075:\n r3 = 48;\n r5 = 57;\n r11.j6(r3, r5);\n r1 = r1 + 1;\n goto L_0x0063;\n L_0x007f:\n r3 = 1;\n if (r1 < r3) goto L_0x00e4;\n L_0x0082:\n r1 = 1;\n r1 = r11.DW(r1);\n r3 = 69;\n if (r1 == r3) goto L_0x0094;\n L_0x008b:\n r1 = 1;\n r1 = r11.DW(r1);\n r3 = 101; // 0x65 float:1.42E-43 double:5.0E-322;\n if (r1 != r3) goto L_0x0098;\n L_0x0094:\n r1 = 0;\n r11.kQ(r1);\n L_0x0098:\n r1 = 1;\n r1 = r11.DW(r1);\n r3 = 68;\n if (r1 == r3) goto L_0x00bc;\n L_0x00a1:\n r1 = 1;\n r1 = r11.DW(r1);\n r3 = 70;\n if (r1 == r3) goto L_0x00bc;\n L_0x00aa:\n r1 = 1;\n r1 = r11.DW(r1);\n r3 = 100;\n if (r1 == r3) goto L_0x00bc;\n L_0x00b3:\n r1 = 1;\n r1 = r11.DW(r1);\n r3 = 102; // 0x66 float:1.43E-43 double:5.04E-322;\n if (r1 != r3) goto L_0x0457;\n L_0x00bc:\n r1 = 1;\n r11.yO(r1);\n r1 = r11.J8;\n r3 = r11.QX;\n r3 = r3.VH;\n if (r3 != 0) goto L_0x0457;\n L_0x00c8:\n r2 = r11.QX;\n r2 = r2.VH;\n if (r2 != 0) goto L_0x003f;\n L_0x00ce:\n if (r1 == 0) goto L_0x00fb;\n L_0x00d0:\n r0 = r1.FH();\n r0 = r0.toUpperCase();\n r1 = 70;\n r0 = r0.indexOf(r1);\n if (r0 < 0) goto L_0x00fb;\n L_0x00e0:\n r0 = 162; // 0xa2 float:2.27E-43 double:8.0E-322;\n goto L_0x003f;\n L_0x00e4:\n r0 = new groovyjarjarantlr.NoViableAltForCharException;\n r1 = 1;\n r1 = r11.DW(r1);\n r2 = r11.v5();\n r3 = r11.Zo();\n r4 = r11.Hw();\n r0.<init>(r1, r2, r3, r4);\n throw r0;\n L_0x00fb:\n r0 = 164; // 0xa4 float:2.3E-43 double:8.1E-322;\n goto L_0x003f;\n L_0x00ff:\n r1 = \"..\";\n r11.j6(r1);\n r1 = r11.QX;\n r1 = r1.VH;\n if (r1 != 0) goto L_0x003f;\n L_0x010b:\n r0 = 109; // 0x6d float:1.53E-43 double:5.4E-322;\n goto L_0x003f;\n L_0x010f:\n r3 = 1;\n r3 = r11.DW(r3);\n switch(r3) {\n case 48: goto L_0x012e;\n case 49: goto L_0x02eb;\n case 50: goto L_0x02eb;\n case 51: goto L_0x02eb;\n case 52: goto L_0x02eb;\n case 53: goto L_0x02eb;\n case 54: goto L_0x02eb;\n case 55: goto L_0x02eb;\n case 56: goto L_0x02eb;\n case 57: goto L_0x02eb;\n default: goto L_0x0117;\n };\n L_0x0117:\n r0 = new groovyjarjarantlr.NoViableAltForCharException;\n r1 = 1;\n r1 = r11.DW(r1);\n r2 = r11.v5();\n r3 = r11.Zo();\n r4 = r11.Hw();\n r0.<init>(r1, r2, r3, r4);\n throw r0;\n L_0x012e:\n r3 = 48;\n r11.DW(r3);\n r3 = r11.QX;\n r3 = r3.VH;\n if (r3 != 0) goto L_0x013a;\n L_0x0139:\n r1 = 1;\n L_0x013a:\n r3 = 1;\n r3 = r11.DW(r3);\n r5 = 88;\n if (r3 == r5) goto L_0x014c;\n L_0x0143:\n r3 = 1;\n r3 = r11.DW(r3);\n r5 = 120; // 0x78 float:1.68E-43 double:5.93E-322;\n if (r3 != r5) goto L_0x01d6;\n L_0x014c:\n r3 = 1;\n r3 = r11.DW(r3);\n switch(r3) {\n case 88: goto L_0x0185;\n case 120: goto L_0x016b;\n default: goto L_0x0154;\n };\n L_0x0154:\n r0 = new groovyjarjarantlr.NoViableAltForCharException;\n r1 = 1;\n r1 = r11.DW(r1);\n r2 = r11.v5();\n r3 = r11.Zo();\n r4 = r11.Hw();\n r0.<init>(r1, r2, r3, r4);\n throw r0;\n L_0x016b:\n r3 = 120; // 0x78 float:1.68E-43 double:5.93E-322;\n r11.DW(r3);\n L_0x0170:\n r3 = 0;\n L_0x0171:\n r5 = Mr;\n r7 = 1;\n r7 = r11.DW(r7);\n r5 = r5.Hw(r7);\n if (r5 == 0) goto L_0x018b;\n L_0x017e:\n r5 = 0;\n r11.OW(r5);\n r3 = r3 + 1;\n goto L_0x0171;\n L_0x0185:\n r3 = 88;\n r11.DW(r3);\n goto L_0x0170;\n L_0x018b:\n r5 = 1;\n if (r3 < r5) goto L_0x01bf;\n L_0x018e:\n r3 = 1;\n r3 = r11.DW(r3);\n r5 = 76;\n if (r3 == r5) goto L_0x01a0;\n L_0x0197:\n r3 = 1;\n r3 = r11.DW(r3);\n r5 = 108; // 0x6c float:1.51E-43 double:5.34E-322;\n if (r3 != r5) goto L_0x032a;\n L_0x01a0:\n r1 = 1;\n r1 = r11.DW(r1);\n switch(r1) {\n case 76: goto L_0x0324;\n case 108: goto L_0x0315;\n default: goto L_0x01a8;\n };\n L_0x01a8:\n r0 = new groovyjarjarantlr.NoViableAltForCharException;\n r1 = 1;\n r1 = r11.DW(r1);\n r2 = r11.v5();\n r3 = r11.Zo();\n r4 = r11.Hw();\n r0.<init>(r1, r2, r3, r4);\n throw r0;\n L_0x01bf:\n r0 = new groovyjarjarantlr.NoViableAltForCharException;\n r1 = 1;\n r1 = r11.DW(r1);\n r2 = r11.v5();\n r3 = r11.Zo();\n r4 = r11.Hw();\n r0.<init>(r1, r2, r3, r4);\n throw r0;\n L_0x01d6:\n r3 = 0;\n r5 = 1;\n r5 = r11.DW(r5);\n r7 = 48;\n if (r5 < r7) goto L_0x0242;\n L_0x01e0:\n r5 = 1;\n r5 = r11.DW(r5);\n r7 = 57;\n if (r5 > r7) goto L_0x0242;\n L_0x01e9:\n r7 = r11.gn();\n r3 = 1;\n r5 = r11.QX;\n r8 = r5.VH;\n r8 = r8 + 1;\n r5.VH = r8;\n r5 = 0;\n L_0x01f7:\n r8 = 1;\n r8 = r11.DW(r8);\t Catch:{ RecognitionException -> 0x0235 }\n r9 = 48;\n if (r8 < r9) goto L_0x0213;\n L_0x0200:\n r8 = 1;\n r8 = r11.DW(r8);\t Catch:{ RecognitionException -> 0x0235 }\n r9 = 57;\n if (r8 > r9) goto L_0x0213;\n L_0x0209:\n r8 = 48;\n r9 = 57;\n r11.j6(r8, r9);\t Catch:{ RecognitionException -> 0x0235 }\n r5 = r5 + 1;\n goto L_0x01f7;\n L_0x0213:\n r8 = 1;\n if (r5 < r8) goto L_0x0261;\n L_0x0216:\n r5 = 1;\n r5 = r11.DW(r5);\t Catch:{ RecognitionException -> 0x0235 }\n switch(r5) {\n case 46: goto L_0x0278;\n case 68: goto L_0x0283;\n case 69: goto L_0x027e;\n case 70: goto L_0x0283;\n case 100: goto L_0x0283;\n case 101: goto L_0x027e;\n case 102: goto L_0x0283;\n default: goto L_0x021e;\n };\t Catch:{ RecognitionException -> 0x0235 }\n L_0x021e:\n r3 = new groovyjarjarantlr.NoViableAltForCharException;\t Catch:{ RecognitionException -> 0x0235 }\n r5 = 1;\n r5 = r11.DW(r5);\t Catch:{ RecognitionException -> 0x0235 }\n r8 = r11.v5();\t Catch:{ RecognitionException -> 0x0235 }\n r9 = r11.Zo();\t Catch:{ RecognitionException -> 0x0235 }\n r10 = r11.Hw();\t Catch:{ RecognitionException -> 0x0235 }\n r3.<init>(r5, r8, r9, r10);\t Catch:{ RecognitionException -> 0x0235 }\n throw r3;\t Catch:{ RecognitionException -> 0x0235 }\n L_0x0235:\n r3 = move-exception;\n r3 = 0;\n L_0x0237:\n r11.v5(r7);\n r5 = r11.QX;\n r7 = r5.VH;\n r7 = r7 + -1;\n r5.VH = r7;\n L_0x0242:\n if (r3 == 0) goto L_0x02a2;\n L_0x0244:\n r3 = 0;\n L_0x0245:\n r5 = 1;\n r5 = r11.DW(r5);\n r7 = 48;\n if (r5 < r7) goto L_0x0288;\n L_0x024e:\n r5 = 1;\n r5 = r11.DW(r5);\n r7 = 57;\n if (r5 > r7) goto L_0x0288;\n L_0x0257:\n r5 = 48;\n r7 = 57;\n r11.j6(r5, r7);\n r3 = r3 + 1;\n goto L_0x0245;\n L_0x0261:\n r3 = new groovyjarjarantlr.NoViableAltForCharException;\t Catch:{ RecognitionException -> 0x0235 }\n r5 = 1;\n r5 = r11.DW(r5);\t Catch:{ RecognitionException -> 0x0235 }\n r8 = r11.v5();\t Catch:{ RecognitionException -> 0x0235 }\n r9 = r11.Zo();\t Catch:{ RecognitionException -> 0x0235 }\n r10 = r11.Hw();\t Catch:{ RecognitionException -> 0x0235 }\n r3.<init>(r5, r8, r9, r10);\t Catch:{ RecognitionException -> 0x0235 }\n throw r3;\t Catch:{ RecognitionException -> 0x0235 }\n L_0x0278:\n r5 = 46;\n r11.DW(r5);\t Catch:{ RecognitionException -> 0x0235 }\n goto L_0x0237;\n L_0x027e:\n r5 = 0;\n r11.kQ(r5);\t Catch:{ RecognitionException -> 0x0235 }\n goto L_0x0237;\n L_0x0283:\n r5 = 0;\n r11.yO(r5);\t Catch:{ RecognitionException -> 0x0235 }\n goto L_0x0237;\n L_0x0288:\n r5 = 1;\n if (r3 >= r5) goto L_0x018e;\n L_0x028b:\n r0 = new groovyjarjarantlr.NoViableAltForCharException;\n r1 = 1;\n r1 = r11.DW(r1);\n r2 = r11.v5();\n r3 = r11.Zo();\n r4 = r11.Hw();\n r0.<init>(r1, r2, r3, r4);\n throw r0;\n L_0x02a2:\n r3 = 1;\n r3 = r11.DW(r3);\n r5 = 48;\n if (r3 < r5) goto L_0x018e;\n L_0x02ab:\n r3 = 1;\n r3 = r11.DW(r3);\n r5 = 55;\n if (r3 > r5) goto L_0x018e;\n L_0x02b4:\n r3 = 0;\n L_0x02b5:\n r5 = 1;\n r5 = r11.DW(r5);\n r7 = 48;\n if (r5 < r7) goto L_0x02d1;\n L_0x02be:\n r5 = 1;\n r5 = r11.DW(r5);\n r7 = 55;\n if (r5 > r7) goto L_0x02d1;\n L_0x02c7:\n r5 = 48;\n r7 = 55;\n r11.j6(r5, r7);\n r3 = r3 + 1;\n goto L_0x02b5;\n L_0x02d1:\n r5 = 1;\n if (r3 >= r5) goto L_0x018e;\n L_0x02d4:\n r0 = new groovyjarjarantlr.NoViableAltForCharException;\n r1 = 1;\n r1 = r11.DW(r1);\n r2 = r11.v5();\n r3 = r11.Zo();\n r4 = r11.Hw();\n r0.<init>(r1, r2, r3, r4);\n throw r0;\n L_0x02eb:\n r3 = 49;\n r5 = 57;\n r11.j6(r3, r5);\n L_0x02f2:\n r3 = 1;\n r3 = r11.DW(r3);\n r5 = 48;\n if (r3 < r5) goto L_0x030c;\n L_0x02fb:\n r3 = 1;\n r3 = r11.DW(r3);\n r5 = 57;\n if (r3 > r5) goto L_0x030c;\n L_0x0304:\n r3 = 48;\n r5 = 57;\n r11.j6(r3, r5);\n goto L_0x02f2;\n L_0x030c:\n r3 = r11.QX;\n r3 = r3.VH;\n if (r3 != 0) goto L_0x018e;\n L_0x0312:\n r1 = 1;\n goto L_0x018e;\n L_0x0315:\n r1 = 108; // 0x6c float:1.51E-43 double:5.34E-322;\n r11.DW(r1);\n L_0x031a:\n r1 = r11.QX;\n r1 = r1.VH;\n if (r1 != 0) goto L_0x003f;\n L_0x0320:\n r0 = 163; // 0xa3 float:2.28E-43 double:8.05E-322;\n goto L_0x003f;\n L_0x0324:\n r1 = 76;\n r11.DW(r1);\n goto L_0x031a;\n L_0x032a:\n r3 = 1;\n r3 = r11.DW(r3);\n r5 = 46;\n if (r3 == r5) goto L_0x0369;\n L_0x0333:\n r3 = 1;\n r3 = r11.DW(r3);\n r5 = 68;\n if (r3 == r5) goto L_0x0369;\n L_0x033c:\n r3 = 1;\n r3 = r11.DW(r3);\n r5 = 69;\n if (r3 == r5) goto L_0x0369;\n L_0x0345:\n r3 = 1;\n r3 = r11.DW(r3);\n r5 = 70;\n if (r3 == r5) goto L_0x0369;\n L_0x034e:\n r3 = 1;\n r3 = r11.DW(r3);\n r5 = 100;\n if (r3 == r5) goto L_0x0369;\n L_0x0357:\n r3 = 1;\n r3 = r11.DW(r3);\n r5 = 101; // 0x65 float:1.42E-43 double:5.0E-322;\n if (r3 == r5) goto L_0x0369;\n L_0x0360:\n r3 = 1;\n r3 = r11.DW(r3);\n r5 = 102; // 0x66 float:1.43E-43 double:5.04E-322;\n if (r3 != r5) goto L_0x003f;\n L_0x0369:\n if (r1 == 0) goto L_0x003f;\n L_0x036b:\n r1 = 1;\n r1 = r11.DW(r1);\n switch(r1) {\n case 46: goto L_0x038a;\n case 68: goto L_0x0442;\n case 69: goto L_0x040c;\n case 70: goto L_0x0442;\n case 100: goto L_0x0442;\n case 101: goto L_0x040c;\n case 102: goto L_0x0442;\n default: goto L_0x0373;\n };\n L_0x0373:\n r0 = new groovyjarjarantlr.NoViableAltForCharException;\n r1 = 1;\n r1 = r11.DW(r1);\n r2 = r11.v5();\n r3 = r11.Zo();\n r4 = r11.Hw();\n r0.<init>(r1, r2, r3, r4);\n throw r0;\n L_0x038a:\n r1 = 46;\n r11.DW(r1);\n L_0x038f:\n r1 = 1;\n r1 = r11.DW(r1);\n r3 = 48;\n if (r1 < r3) goto L_0x03a9;\n L_0x0398:\n r1 = 1;\n r1 = r11.DW(r1);\n r3 = 57;\n if (r1 > r3) goto L_0x03a9;\n L_0x03a1:\n r1 = 48;\n r3 = 57;\n r11.j6(r1, r3);\n goto L_0x038f;\n L_0x03a9:\n r1 = 1;\n r1 = r11.DW(r1);\n r3 = 69;\n if (r1 == r3) goto L_0x03bb;\n L_0x03b2:\n r1 = 1;\n r1 = r11.DW(r1);\n r3 = 101; // 0x65 float:1.42E-43 double:5.0E-322;\n if (r1 != r3) goto L_0x03bf;\n L_0x03bb:\n r1 = 0;\n r11.kQ(r1);\n L_0x03bf:\n r1 = 1;\n r1 = r11.DW(r1);\n r3 = 68;\n if (r1 == r3) goto L_0x03e3;\n L_0x03c8:\n r1 = 1;\n r1 = r11.DW(r1);\n r3 = 70;\n if (r1 == r3) goto L_0x03e3;\n L_0x03d1:\n r1 = 1;\n r1 = r11.DW(r1);\n r3 = 100;\n if (r1 == r3) goto L_0x03e3;\n L_0x03da:\n r1 = 1;\n r1 = r11.DW(r1);\n r3 = 102; // 0x66 float:1.43E-43 double:5.04E-322;\n if (r1 != r3) goto L_0x03f0;\n L_0x03e3:\n r1 = 1;\n r11.yO(r1);\n r1 = r11.J8;\n r3 = r11.QX;\n r3 = r3.VH;\n if (r3 != 0) goto L_0x03f0;\n L_0x03ef:\n r2 = r1;\n L_0x03f0:\n r1 = r11.QX;\n r1 = r1.VH;\n if (r1 != 0) goto L_0x003f;\n L_0x03f6:\n if (r2 == 0) goto L_0x0450;\n L_0x03f8:\n r0 = r2.FH();\n r0 = r0.toUpperCase();\n r1 = 70;\n r0 = r0.indexOf(r1);\n if (r0 < 0) goto L_0x0450;\n L_0x0408:\n r0 = 162; // 0xa2 float:2.27E-43 double:8.0E-322;\n goto L_0x003f;\n L_0x040c:\n r1 = 0;\n r11.kQ(r1);\n r1 = 1;\n r1 = r11.DW(r1);\n r3 = 68;\n if (r1 == r3) goto L_0x0434;\n L_0x0419:\n r1 = 1;\n r1 = r11.DW(r1);\n r3 = 70;\n if (r1 == r3) goto L_0x0434;\n L_0x0422:\n r1 = 1;\n r1 = r11.DW(r1);\n r3 = 100;\n if (r1 == r3) goto L_0x0434;\n L_0x042b:\n r1 = 1;\n r1 = r11.DW(r1);\n r3 = 102; // 0x66 float:1.43E-43 double:5.04E-322;\n if (r1 != r3) goto L_0x03f0;\n L_0x0434:\n r1 = 1;\n r11.yO(r1);\n r1 = r11.J8;\n r3 = r11.QX;\n r3 = r3.VH;\n if (r3 != 0) goto L_0x03f0;\n L_0x0440:\n r2 = r1;\n goto L_0x03f0;\n L_0x0442:\n r1 = 1;\n r11.yO(r1);\n r1 = r11.J8;\n r3 = r11.QX;\n r3 = r3.VH;\n if (r3 != 0) goto L_0x03f0;\n L_0x044e:\n r2 = r1;\n goto L_0x03f0;\n L_0x0450:\n r0 = 164; // 0xa4 float:2.3E-43 double:8.1E-322;\n goto L_0x003f;\n L_0x0454:\n r0 = r4;\n goto L_0x005f;\n L_0x0457:\n r1 = r2;\n goto L_0x00c8;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: org.codehaus.groovy.antlr.java.JavaLexer.XX(boolean):void\");\n }", "title": "" }, { "docid": "cf53527afa32cefc465b70f06dde4466", "score": "0.5857643", "text": "public java.lang.Void m3295a() throws java.lang.Exception {\n /*\n r4 = this;\n r0 = r4.f2571a;\n monitor-enter(r0);\n r1 = r4.f2571a;\t Catch:{ all -> 0x0028 }\n r1 = r1.f2598j;\t Catch:{ all -> 0x0028 }\n r2 = 0;\n if (r1 != 0) goto L_0x000e;\n L_0x000c:\n monitor-exit(r0);\t Catch:{ all -> 0x0028 }\n return r2;\n L_0x000e:\n r1 = r4.f2571a;\t Catch:{ all -> 0x0028 }\n r1.m3336g();\t Catch:{ all -> 0x0028 }\n r1 = r4.f2571a;\t Catch:{ all -> 0x0028 }\n r1 = r1.m3333e();\t Catch:{ all -> 0x0028 }\n if (r1 == 0) goto L_0x0026;\n L_0x001b:\n r1 = r4.f2571a;\t Catch:{ all -> 0x0028 }\n r1.m3329d();\t Catch:{ all -> 0x0028 }\n r1 = r4.f2571a;\t Catch:{ all -> 0x0028 }\n r3 = 0;\n r1.f2600l = r3;\t Catch:{ all -> 0x0028 }\n L_0x0026:\n monitor-exit(r0);\t Catch:{ all -> 0x0028 }\n return r2;\n L_0x0028:\n r1 = move-exception;\n monitor-exit(r0);\t Catch:{ all -> 0x0028 }\n throw r1;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.bumptech.glide.a.a.1.a():java.lang.Void\");\n }", "title": "" }, { "docid": "36672c660b99d4f8266ac27321b1aa29", "score": "0.5855667", "text": "public static /* synthetic */ void main(String[] a) {\n block5: {\n System.out.println(MapleCoolDownValueHolder.ALLATORIxDEMO(\")x\\u0000x\\u0000x\\u0000x\\u0000x\\u0000x\\u0000x\\u0000x\\u0000x\\u0000x\\u0000x\\u0000x\\u0000x\\u0000x\\u0000x\\u0000x\\u0000x\\u0000x\\u0000x\\u0000x\\u0000x\\u0000x\\u0000x\\u0000x\\u0000Q\\u0000{\\u0003{\\u0003{\\u0003{\\u0003{\\u0003{\\u0003{\\u0003{\\u0003{\\u0003{\\u0003{\\u0003{\\u0003{\\u0003{\\u0003{\\u0003{\\u0003{\\u0003{\\u0003{\\u0003{\\u0003{\\u0003{\\u0003{\\u0003x)x\\u0003{\\u0003{\\u0003{\\u0003{\\u0000x\\u0003x\\u0003{\\u0003x\\u0003{\\u0003{\\u0000x\\u0003x\\u0000x\\u0003x\\u0000x\\u0003x\\u0000{\\u0003x\\u0000x\\u0003{\\u0003{\\u0003{\\u0003{\\u0000Q\\u0000{\\u0003{\\u0003{\\u0003{\\u0000{\\u0000{\\u0000{\\u0003{\\u0000{\\u0003{\\u0000{\\u0000{\\u0003x\\u0003{\\u0000{\\u0000{\\u0000{\\u0000{\\u0003x\\u0003{\\u0003{\\u0003{\\u0003{\\u0003x)x\\u0003{\\u0003{\\u0003{\\u0003x\\u0000x\\u0003x\\u0003{\\u0003x\\u0003{\\u0003x\\u0000x\\u0003{\\u0000{\\u0003x\\u0003x\\u0003x\\u0000{\\u0003{\\u0000{\\u0003{\\u0003{\\u0003{\\u0003{\\u0000Q\\u0000{\\u0003{\\u0003{\\u0003{\\u0000{\\u0000{\\u0000x\\u0000{\\u0000x\\u0000{\\u0000{\\u0000{\\u0003x\\u0003{\\u0000x\\u0000{\\u0000{\\u0000{\\u0000x\\u0000{\\u0003{\\u0003{\\u0003{\\u0003x)x\\u0003{\\u0003{\\u0003{\\u0003{\\u0003{\\u0003{\\u0003{\\u0003{\\u0003{\\u0003{\\u0003{\\u0003{\\u0003{\\u0003{\\u0003{\\u0003{\\u0003{\\u0003{\\u0003{\\u0003{\\u0003{\\u0003{\\u0003{\\u0000Q\\u0000{l9E.P8B/J4M{A\\\"\\u0003\\u001aO7B/L)J{l9E.P8B/L)\\u0003-\\u0014u\\u0010{g\\u001en\\u0014\\u0003x)x\\u0003{\\u0003{\\u0003{\\u0003{\\u0003{\\u0003{\\u0003{\\u0003{\\u0003{\\u0003{\\u0003{\\u0003{\\u0003{\\u0003{\\u0003{\\u0003{\\u0003{\\u0003{\\u0003{\\u0003{\\u0003{\\u0003{\\u0003{\\u0000Q\\u0000{\\u0003{\\u0003{\\u0003{\\u0003{\\u0003{K/W+\\u0019t\\f,T,\\r:O7B/L)Ju@4N{\\u0003{\\u0003{\\u0003{\\u0003{\\u0003{\\u0003x)x\\u0003{\\u0003{\\u0003{\\u0003{\\u0003{\\u0003{\\u0003{\\u0003{\\u0003{\\u0003{\\u0003{\\u0003{\\u0003{\\u0003{\\u0003{\\u0003{\\u0003{\\u0003{\\u0003{\\u0003{\\u0003{\\u0003{\\u0003{\\u0000Q\\u0000x\\u0000x\\u0000x\\u0000x\\u0000x\\u0000x\\u0000x\\u0000x\\u0000x\\u0000x\\u0000x\\u0000x\\u0000x\\u0000x\\u0000x\\u0000x\\u0000x\\u0000x\\u0000x\\u0000x\\u0000x\\u0000x\\u0000x\\u0000x)\"));\n try {\n var1_1 = UIManager.getInstalledLookAndFeels();\n var2_3 = var1_1.length;\n var3_4 = 0;\nlbl6:\n // 2 sources\n\n while (var3_4 < var2_3) {\n var4_5 = var1_1[var3_4];\n if (GZIPCompression.ALLATORIxDEMO(\"|e_nG\\u007f\").equals(var4_5.getName())) {\n UIManager.setLookAndFeel(var4_5.getClassName());\n }\n ** GOTO lbl-1000\n }\n break block5;\n }\n catch (ClassNotFoundException | IllegalAccessException | InstantiationException | UnsupportedLookAndFeelException var1_2) {\n Logger.getLogger(DropTool.class.getName()).log(Level.SEVERE, null, var1_2);\n }\n break block5;\nlbl-1000:\n // 1 sources\n\n {\n ++var3_4;\n ** GOTO lbl6\n }\n }\n EventQueue.invokeLater(new Runnable(){\n\n @Override\n public /* synthetic */ void run() {\n new DropTool().setVisible(true);\n }\n {\n 5 a2;\n }\n });\n }\n}", "title": "" }, { "docid": "d37e7cd238f6c0d1efa66b9725615ec9", "score": "0.584398", "text": "public byte[] a(int r5, byte[] r6) {\n /*\n r4 = this;\n r3 = 0;\n if (r5 < 0) goto L_0x0009;\n L_0x0003:\n r0 = r4.b();\t Catch:{ IllegalArgumentException -> 0x0025 }\n if (r5 < r0) goto L_0x0027;\n L_0x0009:\n r0 = new java.lang.IllegalArgumentException;\t Catch:{ IllegalArgumentException -> 0x0025 }\n r1 = new java.lang.StringBuilder;\t Catch:{ IllegalArgumentException -> 0x0025 }\n r1.<init>();\t Catch:{ IllegalArgumentException -> 0x0025 }\n r2 = z;\t Catch:{ IllegalArgumentException -> 0x0025 }\n r3 = 0;\n r2 = r2[r3];\t Catch:{ IllegalArgumentException -> 0x0025 }\n r1 = r1.append(r2);\t Catch:{ IllegalArgumentException -> 0x0025 }\n r1 = r1.append(r5);\t Catch:{ IllegalArgumentException -> 0x0025 }\n r1 = r1.toString();\t Catch:{ IllegalArgumentException -> 0x0025 }\n r0.<init>(r1);\t Catch:{ IllegalArgumentException -> 0x0025 }\n throw r0;\t Catch:{ IllegalArgumentException -> 0x0025 }\n L_0x0025:\n r0 = move-exception;\n throw r0;\n L_0x0027:\n r0 = r4.d();\n if (r6 == 0) goto L_0x0030;\n L_0x002d:\n r1 = r6.length;\t Catch:{ IllegalArgumentException -> 0x0041 }\n if (r1 >= r0) goto L_0x0032;\n L_0x0030:\n r6 = new byte[r0];\n L_0x0032:\n r1 = r4.d;\n r1 = r1 + r5;\n r2 = r4.f;\n r1 = r1 * r2;\n r2 = r4.g;\n r1 = r1 + r2;\n r2 = r4.c;\n java.lang.System.arraycopy(r2, r1, r6, r3, r0);\n return r6;\n L_0x0041:\n r0 = move-exception;\n throw r0;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.e.a(int, byte[]):byte[]\");\n }", "title": "" }, { "docid": "024f8f93eaade6f76f56616111685765", "score": "0.5800377", "text": "void macrocall() {int r;\n\t\tint p;\n\t\tint q;\n\t\tint s;\n\t\tint t;\n\t\tint u, v;\n\t\tint rbraceptr;\n\t\tint n;\n\t\tint unbalance;\n\t\tint m;\n\t\tint refcount;\n\t\tint savescannerstatus;\n\t\tint savewarningindex;\n\t\tint matchchr;\n\t\tsavescannerstatus = scannerstatus;\n\t\tsavewarningindex = warningindex;\n\t\tp = 0;\n\t\tm = 0;\n\t\trbraceptr = 0;\n\t\tmatchchr = 0;\n\t\twarningindex = curcs;\n\t\trefcount = curchr;\n\t\tr = mem[refcount].getrh();\n\t\tn = 0;\n\t\tif (eqtb[9593].getInt() > 0) {\n\t\t\tbegindiagnostic();\n\t\t\tprintln();\n\t\t\tprintcs(warningindex);\n\t\t\ttokenshow(refcount);\n\t\t\tenddiagnostic(false);\n\t\t}\n\t\tif (mem[r].getlh() != 3584) {\n\t\t\tscannerstatus = 3;\n\t\t\tunbalance = 0;\n\t\t\tlongstate = eqtb[curcs].getb0();\n\t\t\tif (longstate >= 113) {\n\t\t\t\tlongstate = longstate - 2;\n\t\t\t}\n\t\t\tdo {\n\t\t\t\tmem[memtop - 3].setrh(0);\n\t\t\t\tif ((mem[r].getlh() > 3583) || (mem[r].getlh() < 3328)) {\n\t\t\t\t\ts = 0;\n\t\t\t\t} else {\n\t\t\t\t\tmatchchr = mem[r].getlh() - 3328;\n\t\t\t\t\ts = mem[r].getrh();\n\t\t\t\t\tr = s;\n\t\t\t\t\tp = memtop - 3;\n\t\t\t\t\tm = 0;\n\t\t\t\t}\n\t\t\t\tlab22: while (true) {\n\t\t\t\t\tgettoken();\n\t\t\t\t\tlab40: while (true) {\n\t\t\t\t\t\tif (curtok == mem[r].getlh()) {\n\t\t\t\t\t\t\tr = mem[r].getrh();\n\t\t\t\t\t\t\tif ((mem[r].getlh() >= 3328) && (mem[r].getlh() <= 3584)) {\n\t\t\t\t\t\t\t\tif (curtok < 512) {\n\t\t\t\t\t\t\t\t\talignstate = alignstate - 1;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tbreak lab40;\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tcontinue lab22;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif (s != r) {\n\t\t\t\t\t\t\tif (s == 0) {\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\tprintnl(262);\n\t\t\t\t\t\t\t\t\tprint(650);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tsprintcs(warningindex);\n\t\t\t\t\t\t\t\tprint(651);\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\thelpptr = 4;\n\t\t\t\t\t\t\t\t\thelpline[3] = 652;\n\t\t\t\t\t\t\t\t\thelpline[2] = 653;\n\t\t\t\t\t\t\t\t\thelpline[1] = 654;\n\t\t\t\t\t\t\t\t\thelpline[0] = 655;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\terrorLogic.error();\n\t\t\t\t\t\t\t\treturn /* lab10 */;\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tt = s;\n\t\t\t\t\t\t\t\tdo {\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\tq = allocateMemoryWord();\n\t\t\t\t\t\t\t\t\t\tmem[p].setrh(q);\n\t\t\t\t\t\t\t\t\t\tmem[q].setlh(mem[t].getlh());\n\t\t\t\t\t\t\t\t\t\tp = q;\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\tm = m + 1;\n\t\t\t\t\t\t\t\t\tu = mem[t].getrh();\n\t\t\t\t\t\t\t\t\tv = s;\n\t\t\t\t\t\t\t\t\twhile (true) {\n\t\t\t\t\t\t\t\t\t\tif (u == r) {\n\t\t\t\t\t\t\t\t\t\t\tif (curtok != mem[v].getlh()) {\n\t\t\t\t\t\t\t\t\t\t\t\tbreak /* lab30 */;\n\t\t\t\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\t\t\t\tr = mem[v].getrh();\n\t\t\t\t\t\t\t\t\t\t\t\tcontinue lab22;\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\tif (mem[u].getlh() != mem[v].getlh()) {\n\t\t\t\t\t\t\t\t\t\t\tbreak /* lab30 */;\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\tu = mem[u].getrh();\n\t\t\t\t\t\t\t\t\t\tv = mem[v].getrh();\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t/* lab30: */t = mem[t].getrh();\n\t\t\t\t\t\t\t\t} while (!(t == r));\n\t\t\t\t\t\t\t\tr = s;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif (curtok == partoken) {\n\t\t\t\t\t\t\tif (longstate != 112) {\n\t\t\t\t\t\t\t\tif (longstate == 111) {\n\t\t\t\t\t\t\t\t\tthrow new RuntimeException(\"Paragraph ended before control sequence was complete. I suspect you've forgotten a `}', causing me to apply this control sequence to too much text.\");\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tpstack[n] = mem[memtop - 3].getrh();\n\t\t\t\t\t\t\t\talignstate = alignstate - unbalance;\n\t\t\t\t\t\t\t\tfor (m = 0; m <= n; m++) {\n\t\t\t\t\t\t\t\t\tflushlist(pstack[m]);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\treturn /* lab10 */;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif (curtok < 768) {\n\t\t\t\t\t\t\tif (curtok < 512) {\n\t\t\t\t\t\t\t\tunbalance = 1;\n\t\t\t\t\t\t\t\twhile (true) {\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\tq = avail;\n\t\t\t\t\t\t\t\t\t\t\tif (q == 0) {\n\t\t\t\t\t\t\t\t\t\t\t\tq = allocateMemoryWord();\n\t\t\t\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\t\t\t\tavail = mem[q].getrh();\n\t\t\t\t\t\t\t\t\t\t\t\tmem[q].setrh(0);\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\tmem[p].setrh(q);\n\t\t\t\t\t\t\t\t\t\tmem[q].setlh(curtok);\n\t\t\t\t\t\t\t\t\t\tp = q;\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\tgettoken();\n\t\t\t\t\t\t\t\t\tif (curtok == partoken) {\n\t\t\t\t\t\t\t\t\t\tif (longstate != 112) {\n\t\t\t\t\t\t\t\t\t\t\tif (longstate == 111) {\n\t\t\t\t\t\t\t\t\t\t\t\tthrow new RuntimeException(\"Paragraph ended before control sequence was complete. I suspect you've forgotten a `}', causing me to apply this control sequence to too much text.\");\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\tpstack[n] = mem[memtop - 3].getrh();\n\t\t\t\t\t\t\t\t\t\t\talignstate = alignstate - unbalance;\n\t\t\t\t\t\t\t\t\t\t\tfor (m = 0; m <= n; m++) {\n\t\t\t\t\t\t\t\t\t\t\t\tflushlist(pstack[m]);\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\treturn /* lab10 */;\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\tif (curtok < 768) {\n\t\t\t\t\t\t\t\t\t\tif (curtok < 512) {\n\t\t\t\t\t\t\t\t\t\t\tunbalance = unbalance + 1;\n\t\t\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\t\t\tunbalance = unbalance - 1;\n\t\t\t\t\t\t\t\t\t\t\tif (unbalance == 0) {\n\t\t\t\t\t\t\t\t\t\t\t\tbreak /* lab31 */;\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t/* lab31: */rbraceptr = p;\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\tq = allocateMemoryWord();\n\t\t\t\t\t\t\t\t\tmem[p].setrh(q);\n\t\t\t\t\t\t\t\t\tmem[q].setlh(curtok);\n\t\t\t\t\t\t\t\t\tp = q;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tunreadToken();\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\tprintnl(262);\n\t\t\t\t\t\t\t\t\tprint(637);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tsprintcs(warningindex);\n\t\t\t\t\t\t\t\tprint(638);\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\thelpptr = 6;\n\t\t\t\t\t\t\t\t\thelpline[5] = 639;\n\t\t\t\t\t\t\t\t\thelpline[4] = 640;\n\t\t\t\t\t\t\t\t\thelpline[3] = 641;\n\t\t\t\t\t\t\t\t\thelpline[2] = 642;\n\t\t\t\t\t\t\t\t\thelpline[1] = 643;\n\t\t\t\t\t\t\t\t\thelpline[0] = 644;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\talignstate = alignstate + 1;\n\t\t\t\t\t\t\t\tlongstate = 111;\n\t\t\t\t\t\t\t\tinsertToken(partoken);\n\t\t\t\t\t\t\t\terrorLogic.error();\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tif (curtok == 2592) {\n\t\t\t\t\t\t\t\tif (mem[r].getlh() <= 3584) {\n\t\t\t\t\t\t\t\t\tif (mem[r].getlh() >= 3328) {\n\t\t\t\t\t\t\t\t\t\tcontinue lab22;\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tq = allocateMemoryWord();\n\t\t\t\t\t\t\t\tmem[p].setrh(q);\n\t\t\t\t\t\t\t\tmem[q].setlh(curtok);\n\t\t\t\t\t\t\t\tp = q;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\tm = m + 1;\n\t\t\t\t\t\tif (mem[r].getlh() > 3584) {\n\t\t\t\t\t\t\tcontinue lab22;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif (mem[r].getlh() < 3328) {\n\t\t\t\t\t\t\tcontinue lab22;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\t/* lab40: */if (s != 0) {\n\t\t\t\t\tif ((m == 1) && (mem[p].getlh() < 768) && (p != memtop - 3)) {\n\t\t\t\t\t\tmem[rbraceptr].setrh(0);\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tmem[p].setrh(avail);\n\t\t\t\t\t\t\tavail = p;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tp = mem[memtop - 3].getrh();\n\t\t\t\t\t\tpstack[n] = mem[p].getrh();\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tmem[p].setrh(avail);\n\t\t\t\t\t\t\tavail = p;\n\t\t\t\t\t\t}\n\t\t\t\t\t} else {\n\t\t\t\t\t\tpstack[n] = mem[memtop - 3].getrh();\n\t\t\t\t\t}\n\t\t\t\t\tn = n + 1;\n\t\t\t\t\tif (eqtb[9593].getInt() > 0) {\n\t\t\t\t\t\tbegindiagnostic();\n\t\t\t\t\t\tprintnl(matchchr);\n\t\t\t\t\t\tprintInt(n);\n\t\t\t\t\t\tprint(656);\n\t\t\t\t\t\tshowtokenlist(pstack[n - 1], 0, 1000);\n\t\t\t\t\t\tenddiagnostic(false);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} while (!(mem[r].getlh() == 3584));\n\t\t}\n\t\tinputStack.popFinishedTokenLists();\n\t\tbegintokenlist(refcount, 5);\n\t\tcurinput.setName(warningindex);\n\t\tcurinput.setLoc(mem[r].getrh());\n\t\tif (n > 0) {\n\t\t\tif (paramptr + n > maxparamstack) {\n\t\t\t\tmaxparamstack = paramptr + n;\n\t\t\t\tif (maxparamstack > paramsize) {\n\t\t\t\t\tthrow new TexResourceOverflowException();\n\t\t\t\t}\n\t\t\t}\n\t\t\tfor (m = 0; m <= n - 1; m++) {\n\t\t\t\tparamstack[paramptr + m] = pstack[m];\n\t\t\t}\n\t\t\tparamptr = paramptr + n;\n\t\t}\n\t\tscannerstatus = savescannerstatus;\n\t\twarningindex = savewarningindex;\n\t}", "title": "" }, { "docid": "432e848198a6ae5db8d4d3ef02c6de93", "score": "0.5800089", "text": "private di(com.google.I r6, com.google.aC r7) {\n /*\n r5_this = this;\n r1 = 1;\n r0 = -1;\n r2 = com.google.dy.b;\n r5.<init>();\n r5.m = r0;\n r5.h = r0;\n r5.e();\n r3 = com.google.eS.b();\n r0 = 0;\n L_0x0013:\n if (r0 != 0) goto L_0x0041;\n L_0x0015:\n r4 = r6.o();\t Catch:{ gc -> 0x0051, IOException -> 0x0066 }\n switch(r4) {\n case 0: goto L_0x004b;\n case 8: goto L_0x0025;\n case 16: goto L_0x0033;\n default: goto L_0x001c;\n };\n L_0x001c:\n r4 = r5.a(r6, r3, r7, r4);\t Catch:{ gc -> 0x004f, IOException -> 0x0066 }\n if (r4 != 0) goto L_0x003f;\n L_0x0022:\n if (r2 == 0) goto L_0x0075;\n L_0x0024:\n r0 = r1;\n L_0x0025:\n r4 = r5.i;\t Catch:{ gc -> 0x0062, IOException -> 0x0066 }\n r4 = r4 | 1;\n r5.i = r4;\t Catch:{ gc -> 0x0062, IOException -> 0x0066 }\n r4 = r6.r();\t Catch:{ gc -> 0x0062, IOException -> 0x0066 }\n r5.n = r4;\t Catch:{ gc -> 0x0062, IOException -> 0x0066 }\n if (r2 == 0) goto L_0x003f;\n L_0x0033:\n r4 = r5.i;\t Catch:{ gc -> 0x0064, IOException -> 0x0066 }\n r4 = r4 | 2;\n r5.i = r4;\t Catch:{ gc -> 0x0064, IOException -> 0x0066 }\n r4 = r6.r();\t Catch:{ gc -> 0x0064, IOException -> 0x0066 }\n r5.k = r4;\t Catch:{ gc -> 0x0064, IOException -> 0x0066 }\n L_0x003f:\n if (r2 == 0) goto L_0x0013;\n L_0x0041:\n r0 = r3.c();\n r5.e = r0;\n r5.c();\n return;\n L_0x004b:\n if (r2 == 0) goto L_0x0075;\n L_0x004d:\n r0 = r1;\n goto L_0x001c;\n L_0x004f:\n r0 = move-exception;\n throw r0;\t Catch:{ gc -> 0x0051, IOException -> 0x0066 }\n L_0x0051:\n r0 = move-exception;\n r0 = r0.a(r5);\t Catch:{ all -> 0x0057 }\n throw r0;\t Catch:{ all -> 0x0057 }\n L_0x0057:\n r0 = move-exception;\n r1 = r3.c();\n r5.e = r1;\n r5.c();\n throw r0;\n L_0x0062:\n r0 = move-exception;\n throw r0;\t Catch:{ gc -> 0x0064, IOException -> 0x0066 }\n L_0x0064:\n r0 = move-exception;\n throw r0;\t Catch:{ gc -> 0x0051, IOException -> 0x0066 }\n L_0x0066:\n r0 = move-exception;\n r1 = new com.google.gc;\t Catch:{ all -> 0x0057 }\n r0 = r0.getMessage();\t Catch:{ all -> 0x0057 }\n r1.<init>(r0);\t Catch:{ all -> 0x0057 }\n r0 = r1.a(r5);\t Catch:{ all -> 0x0057 }\n throw r0;\t Catch:{ all -> 0x0057 }\n L_0x0075:\n r0 = r1;\n goto L_0x003f;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.di.<init>(com.google.I, com.google.aC):void\");\n }", "title": "" }, { "docid": "8c4d71fce540590b0f010b1ecc71d101", "score": "0.57889396", "text": "private synchronized com.bumptech.glide.p023a.C0971a.C0968a m3318a(java.lang.String r6, long r7) throws java.io.IOException {\n /*\n r5 = this;\n monitor-enter(r5);\n r5.m3335f();\t Catch:{ all -> 0x005d }\n r0 = r5.f2599k;\t Catch:{ all -> 0x005d }\n r0 = r0.get(r6);\t Catch:{ all -> 0x005d }\n r0 = (com.bumptech.glide.p023a.C0971a.C0969b) r0;\t Catch:{ all -> 0x005d }\n r1 = -1;\n r3 = (r7 > r1 ? 1 : (r7 == r1 ? 0 : -1));\n r1 = 0;\n if (r3 == 0) goto L_0x001f;\n L_0x0013:\n if (r0 == 0) goto L_0x001d;\n L_0x0015:\n r2 = r0.f2583h;\t Catch:{ all -> 0x005d }\n r4 = (r2 > r7 ? 1 : (r2 == r7 ? 0 : -1));\n if (r4 == 0) goto L_0x001f;\n L_0x001d:\n monitor-exit(r5);\n return r1;\n L_0x001f:\n if (r0 != 0) goto L_0x002c;\n L_0x0021:\n r0 = new com.bumptech.glide.a.a$b;\t Catch:{ all -> 0x005d }\n r0.<init>(r6);\t Catch:{ all -> 0x005d }\n r7 = r5.f2599k;\t Catch:{ all -> 0x005d }\n r7.put(r6, r0);\t Catch:{ all -> 0x005d }\n goto L_0x0034;\n L_0x002c:\n r7 = r0.f2582g;\t Catch:{ all -> 0x005d }\n if (r7 == 0) goto L_0x0034;\n L_0x0032:\n monitor-exit(r5);\n return r1;\n L_0x0034:\n r7 = new com.bumptech.glide.a.a$a;\t Catch:{ all -> 0x005d }\n r7.<init>(r0);\t Catch:{ all -> 0x005d }\n r0.f2582g = r7;\t Catch:{ all -> 0x005d }\n r8 = r5.f2598j;\t Catch:{ all -> 0x005d }\n r0 = \"DIRTY\";\n r8.append(r0);\t Catch:{ all -> 0x005d }\n r8 = r5.f2598j;\t Catch:{ all -> 0x005d }\n r0 = 32;\n r8.append(r0);\t Catch:{ all -> 0x005d }\n r8 = r5.f2598j;\t Catch:{ all -> 0x005d }\n r8.append(r6);\t Catch:{ all -> 0x005d }\n r6 = r5.f2598j;\t Catch:{ all -> 0x005d }\n r8 = 10;\n r6.append(r8);\t Catch:{ all -> 0x005d }\n r6 = r5.f2598j;\t Catch:{ all -> 0x005d }\n r6.flush();\t Catch:{ all -> 0x005d }\n monitor-exit(r5);\n return r7;\n L_0x005d:\n r6 = move-exception;\n monitor-exit(r5);\n throw r6;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.bumptech.glide.a.a.a(java.lang.String, long):com.bumptech.glide.a.a$a\");\n }", "title": "" }, { "docid": "db03803527f72e42d3efa46b1cec16c3", "score": "0.5785072", "text": "static void method_4744() {\r\n String[] var6 = new String[3];\r\n int var4 = 0;\r\n String var3 = \"\u0001­¸ÙÈ#ØsÑÔÜ.6„Ÿa1΂‡Œzœ;ΐ€Œ{0ΐ€Œ{0¾Ž‡Žf„,„•ˆšl‘‰Ž!6„Ÿa1΂‡Œzœ;ΐ€Œ{0ΐ€Œ{0ϗ‡Ÿ\";\r\n int var5 = \"\u0001­¸ÙÈ#ØsÑÔÜ.6„Ÿa1΂‡Œzœ;ΐ€Œ{0ΐ€Œ{0¾Ž‡Žf„,„•ˆšl‘‰Ž!6„Ÿa1΂‡Œzœ;ΐ€Œ{0ΐ€Œ{0ϗ‡Ÿ\".length();\r\n char var2 = 11;\r\n int var1 = -1;\r\n\r\n while(true) {\r\n ++var1;\r\n String var10002 = var3.substring(var1, var1 + var2);\r\n boolean var10000 = true;\r\n char[] var10003 = var10002.toCharArray();\r\n Object var10004 = var10003.length;\r\n Object var11 = true;\r\n char[] var10 = var10003;\r\n char[] var10001 = (char[])var10004;\r\n int var7 = 0;\r\n\r\n while(true) {\r\n var10003 = var10;\r\n var10 = var10001;\r\n var10001 = var10003;\r\n char[] var12 = var10;\r\n var10 = var10003;\r\n if(var10003 <= var7) {\r\n var6[var4++] = (new String((char[])var11)).intern();\r\n if((var1 += var2) >= var5) {\r\n field_3827 = \"CL_00001035\";\r\n bqx var9 = new bqx;\r\n var9.method_8227(\"textures/entity/wither/wither_invulnerable.png\");\r\n field_3824 = var9;\r\n var9 = new bqx;\r\n var9.method_8227(\"textures/entity/wither/wither.png\");\r\n field_3825 = var9;\r\n return;\r\n }\r\n\r\n var2 = var3.charAt(var1);\r\n break;\r\n }\r\n\r\n char var10007 = (char)((Object[])var11)[var7];\r\n short var10009;\r\n switch(var7 % 7) {\r\n case 0:\r\n var10009 = 68;\r\n break;\r\n case 1:\r\n var10009 = 231;\r\n break;\r\n case 2:\r\n var10009 = 225;\r\n break;\r\n case 3:\r\n var10009 = 239;\r\n break;\r\n case 4:\r\n var10009 = 254;\r\n break;\r\n case 5:\r\n var10009 = 21;\r\n break;\r\n default:\r\n var10009 = 238;\r\n }\r\n\r\n ((Object[])var11)[var7] = (char)(var10007 ^ var12 ^ var10009);\r\n ++var7;\r\n }\r\n }\r\n }", "title": "" }, { "docid": "5c16f3a7e258efa176f4ad42bbf8f236", "score": "0.5757558", "text": "public java.lang.Void m287a() {\n /*\n r4 = this;\n r3 = 0;\n r1 = r4.bfN;\n monitor-enter(r1);\n r0 = r4.bfN;\t Catch:{ all -> 0x0029 }\n r0 = r0.blJ;\t Catch:{ all -> 0x0029 }\n if (r0 == 0) goto L_0x001b;\n L_0x000c:\n r0 = r4.bfN;\t Catch:{ all -> 0x0029 }\n r0.m457j();\t Catch:{ all -> 0x0029 }\n r0 = r4.bfN;\t Catch:{ all -> 0x0029 }\n r0 = r0.m455h();\t Catch:{ all -> 0x0029 }\n if (r0 != 0) goto L_0x001d;\n L_0x0019:\n monitor-exit(r1);\t Catch:{ all -> 0x0029 }\n return r3;\n L_0x001b:\n monitor-exit(r1);\t Catch:{ all -> 0x0029 }\n return r3;\n L_0x001d:\n r0 = r4.bfN;\t Catch:{ all -> 0x0029 }\n r0.m454g();\t Catch:{ all -> 0x0029 }\n r0 = r4.bfN;\t Catch:{ all -> 0x0029 }\n r2 = 0;\n r0.blL = r2;\t Catch:{ all -> 0x0029 }\n goto L_0x0019;\n L_0x0029:\n r0 = move-exception;\n monitor-exit(r1);\t Catch:{ all -> 0x0029 }\n throw r0;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.loc.ax.a():java.lang.Void\");\n }", "title": "" }, { "docid": "3fcba195a14740ea47fb25d1610d985e", "score": "0.5753923", "text": "public int mo3574b() {\n /*\n r6 = this;\n int r0 = r6.f2143d\n r6.f2144e = r0\n r0 = 0\n r1 = 0\n r2 = 0\n L_0x0007:\n int r3 = r6.f2144e\n if (r3 <= 0) goto L_0x0037\n byte r3 = r6.mo3576d()\n r4 = 9\n if (r3 == r4) goto L_0x0007\n r4 = 1\n r5 = -1\n switch(r3) {\n case 0: goto L_0x0030;\n case 1: goto L_0x002a;\n case 2: goto L_0x002a;\n default: goto L_0x0018;\n }\n L_0x0018:\n switch(r3) {\n case 14: goto L_0x0024;\n case 15: goto L_0x0024;\n case 16: goto L_0x0021;\n case 17: goto L_0x0021;\n case 18: goto L_0x001e;\n default: goto L_0x001b;\n }\n L_0x001b:\n if (r1 != 0) goto L_0x0007\n goto L_0x0035\n L_0x001e:\n int r2 = r2 + 1\n goto L_0x0007\n L_0x0021:\n if (r1 != r2) goto L_0x0027\n return r4\n L_0x0024:\n if (r1 != r2) goto L_0x0027\n return r5\n L_0x0027:\n int r2 = r2 + -1\n goto L_0x0007\n L_0x002a:\n if (r2 != 0) goto L_0x002d\n return r4\n L_0x002d:\n if (r1 != 0) goto L_0x0007\n goto L_0x0035\n L_0x0030:\n if (r2 != 0) goto L_0x0033\n return r5\n L_0x0033:\n if (r1 != 0) goto L_0x0007\n L_0x0035:\n r1 = r2\n goto L_0x0007\n L_0x0037:\n return r0\n */\n throw new UnsupportedOperationException(\"Method not decompiled: androidx.core.p028f.C0564a.C0566b.mo3574b():int\");\n }", "title": "" }, { "docid": "79a983533a1ac27ed1c0f3322d245308", "score": "0.57534635", "text": "private static int g(java.lang.CharSequence r16, int r17, int r18, java.lang.StringBuilder r19, int r20) {\n /*\n r0 = r16\n r1 = r18\n r2 = r19\n java.lang.StringBuilder r3 = new java.lang.StringBuilder\n r3.<init>(r1)\n r4 = 2\n r5 = 0\n r6 = 1\n r7 = r20\n r8 = 0\n L_0x0011:\n int r9 = r17 + r8\n char r10 = r0.charAt(r9)\n r11 = 26\n r12 = 32\n r13 = 28\n r14 = 27\n r15 = 29\n if (r7 == 0) goto L_0x00bc\n if (r7 == r6) goto L_0x0083\n if (r7 == r4) goto L_0x003c\n boolean r9 = m(r10)\n if (r9 == 0) goto L_0x0037\n byte[] r9 = f12600d\n byte r9 = r9[r10]\n char r9 = (char) r9\n r3.append(r9)\n goto L_0x00f2\n L_0x0037:\n r3.append(r15)\n L_0x003a:\n r7 = 0\n goto L_0x0011\n L_0x003c:\n boolean r11 = l(r10)\n if (r11 == 0) goto L_0x004c\n byte[] r9 = f12599c\n byte r9 = r9[r10]\n char r9 = (char) r9\n r3.append(r9)\n goto L_0x00f2\n L_0x004c:\n boolean r11 = j(r10)\n if (r11 == 0) goto L_0x0056\n r3.append(r13)\n goto L_0x003a\n L_0x0056:\n boolean r11 = i(r10)\n if (r11 == 0) goto L_0x0061\n r3.append(r14)\n goto L_0x00d8\n L_0x0061:\n int r9 = r9 + 1\n if (r9 >= r1) goto L_0x0076\n char r9 = r0.charAt(r9)\n boolean r9 = m(r9)\n if (r9 == 0) goto L_0x0076\n r7 = 3\n r9 = 25\n r3.append(r9)\n goto L_0x0011\n L_0x0076:\n r3.append(r15)\n byte[] r9 = f12600d\n byte r9 = r9[r10]\n char r9 = (char) r9\n r3.append(r9)\n goto L_0x00f2\n L_0x0083:\n boolean r9 = i(r10)\n if (r9 == 0) goto L_0x0096\n if (r10 != r12) goto L_0x008f\n r3.append(r11)\n goto L_0x00f2\n L_0x008f:\n int r10 = r10 + -97\n char r9 = (char) r10\n r3.append(r9)\n goto L_0x00f2\n L_0x0096:\n boolean r9 = j(r10)\n if (r9 == 0) goto L_0x00a6\n r3.append(r14)\n int r10 = r10 + -65\n char r9 = (char) r10\n r3.append(r9)\n goto L_0x00f2\n L_0x00a6:\n boolean r9 = l(r10)\n if (r9 == 0) goto L_0x00b0\n r3.append(r13)\n goto L_0x00e4\n L_0x00b0:\n r3.append(r15)\n byte[] r9 = f12600d\n byte r9 = r9[r10]\n char r9 = (char) r9\n r3.append(r9)\n goto L_0x00f2\n L_0x00bc:\n boolean r9 = j(r10)\n if (r9 == 0) goto L_0x00cf\n if (r10 != r12) goto L_0x00c8\n r3.append(r11)\n goto L_0x00f2\n L_0x00c8:\n int r10 = r10 + -65\n char r9 = (char) r10\n r3.append(r9)\n goto L_0x00f2\n L_0x00cf:\n boolean r9 = i(r10)\n if (r9 == 0) goto L_0x00db\n r3.append(r14)\n L_0x00d8:\n r7 = 1\n goto L_0x0011\n L_0x00db:\n boolean r9 = l(r10)\n if (r9 == 0) goto L_0x00e7\n r3.append(r13)\n L_0x00e4:\n r7 = 2\n goto L_0x0011\n L_0x00e7:\n r3.append(r15)\n byte[] r9 = f12600d\n byte r9 = r9[r10]\n char r9 = (char) r9\n r3.append(r9)\n L_0x00f2:\n int r8 = r8 + 1\n if (r8 < r1) goto L_0x0011\n int r0 = r3.length()\n r1 = 0\n r8 = 0\n L_0x00fc:\n if (r1 >= r0) goto L_0x011a\n int r9 = r1 % 2\n if (r9 == 0) goto L_0x0104\n r9 = 1\n goto L_0x0105\n L_0x0104:\n r9 = 0\n L_0x0105:\n if (r9 == 0) goto L_0x0113\n int r8 = r8 * 30\n char r9 = r3.charAt(r1)\n int r8 = r8 + r9\n char r8 = (char) r8\n r2.append(r8)\n goto L_0x0117\n L_0x0113:\n char r8 = r3.charAt(r1)\n L_0x0117:\n int r1 = r1 + 1\n goto L_0x00fc\n L_0x011a:\n int r0 = r0 % r4\n if (r0 == 0) goto L_0x0124\n int r8 = r8 * 30\n int r8 = r8 + r15\n char r0 = (char) r8\n r2.append(r0)\n L_0x0124:\n return r7\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.zxing.x.g.g.g(java.lang.CharSequence, int, int, java.lang.StringBuilder, int):int\");\n }", "title": "" }, { "docid": "c10c97e0c5b4f1012f9b0a976df4935b", "score": "0.57394814", "text": "public static java.lang.String m2175d() {\n /*\n r0 = 1\n java.lang.String[] r0 = new java.lang.String[r0]\n java.lang.String r1 = \"\"\n r2 = 0\n r0[r2] = r1\n r1 = 0\n java.io.BufferedReader r3 = new java.io.BufferedReader // Catch:{ all -> 0x0033 }\n java.io.InputStreamReader r4 = new java.io.InputStreamReader // Catch:{ all -> 0x0033 }\n java.io.FileInputStream r5 = new java.io.FileInputStream // Catch:{ all -> 0x0033 }\n java.lang.String r6 = \"xNnxmnRYtygV7vmTvKcfmg==\"\n java.lang.String r6 = com.megvii.apo.util.C1493c.m2253a(r6) // Catch:{ all -> 0x0033 }\n r5.<init>(r6) // Catch:{ all -> 0x0033 }\n r4.<init>(r5) // Catch:{ all -> 0x0033 }\n r3.<init>(r4) // Catch:{ all -> 0x0033 }\n java.lang.String r1 = r3.readLine() // Catch:{ all -> 0x0031 }\n java.lang.String r4 = \" \"\n java.lang.String[] r0 = r1.split(r4) // Catch:{ all -> 0x0031 }\n r3.close() // Catch:{ all -> 0x002c }\n goto L_0x003f\n L_0x002c:\n r1 = move-exception\n com.megvii.apo.util.C1495e.m2258a(r1)\n goto L_0x003f\n L_0x0031:\n r1 = move-exception\n goto L_0x0037\n L_0x0033:\n r3 = move-exception\n r7 = r3\n r3 = r1\n r1 = r7\n L_0x0037:\n com.megvii.apo.util.C1495e.m2258a(r1) // Catch:{ all -> 0x0042 }\n if (r3 == 0) goto L_0x003f\n r3.close()\n L_0x003f:\n r0 = r0[r2]\n return r0\n L_0x0042:\n r0 = move-exception\n if (r3 == 0) goto L_0x004d\n r3.close() // Catch:{ all -> 0x0049 }\n goto L_0x004d\n L_0x0049:\n r1 = move-exception\n com.megvii.apo.util.C1495e.m2258a(r1)\n L_0x004d:\n throw r0\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.megvii.apo.C1465a.m2175d():java.lang.String\");\n }", "title": "" }, { "docid": "f885eada23ad3668f8b35a7045fbe659", "score": "0.57355547", "text": "public final boolean m2330a(boolean r7) {\n /*\n r6 = this;\n r1 = 1;\n r0 = 0;\n r2 = r6.f1222i;\n if (r2 != 0) goto L_0x0007;\n L_0x0006:\n return r0;\n L_0x0007:\n r2 = 0;\n r3 = r6.f1222i;\t Catch:{ IOException -> 0x0020, all -> 0x002a }\n r4 = \"soft_errors_pref\";\n r5 = 0;\n r2 = r3.openFileOutput(r4, r5);\t Catch:{ IOException -> 0x0020, all -> 0x002a }\n if (r7 == 0) goto L_0x001e;\n L_0x0013:\n r3 = r1;\n L_0x0014:\n r2.write(r3);\t Catch:{ IOException -> 0x0035, all -> 0x002a }\n if (r2 == 0) goto L_0x001c;\n L_0x0019:\n r2.close();\t Catch:{ IOException -> 0x0031 }\n L_0x001c:\n r0 = r1;\n goto L_0x0006;\n L_0x001e:\n r3 = r0;\n goto L_0x0014;\n L_0x0020:\n r1 = move-exception;\n r1 = r2;\n L_0x0022:\n if (r1 == 0) goto L_0x0006;\n L_0x0024:\n r1.close();\t Catch:{ IOException -> 0x0028 }\n goto L_0x0006;\n L_0x0028:\n r1 = move-exception;\n goto L_0x0006;\n L_0x002a:\n r0 = move-exception;\n if (r2 == 0) goto L_0x0030;\n L_0x002d:\n r2.close();\t Catch:{ IOException -> 0x0033 }\n L_0x0030:\n throw r0;\n L_0x0031:\n r0 = move-exception;\n goto L_0x001c;\n L_0x0033:\n r1 = move-exception;\n goto L_0x0030;\n L_0x0035:\n r1 = move-exception;\n r1 = r2;\n goto L_0x0022;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.facebook.common.errorreporting.FbErrorReporterImpl.a(boolean):boolean\");\n }", "title": "" }, { "docid": "8fbd31c8575013313b70a59e7cc03a92", "score": "0.57333124", "text": "public void testIfNestingRecovery4b() {\n\t\tString inf = \"PRJ_EXTENSIONS\\r\\n\" + \r\n\t\t\t\t\"start\t\textension\t\tbase/genexec\\r\\n\" + \r\n\t\t\t\t\"\\r\\n\" + \r\n\t\t\t\t\"option\t\tEXTRA_SRC_PATH\t\t$(EXTENSION_ROOT)/kernel\\r\\n\" + \r\n\t\t\t\t\"\\r\\n\" + \r\n\t\t\t\t\"end\\r\\n\" +\r\n\t\t\t\t\"\\r\\n\"+\r\n\t\t\t\t\"PRJ_MMPFILES\\r\\n\" + \r\n\t\t\t\t\"\\r\\n\"+\r\n\t\t\t\t\"#if defined(GENERIC_MARM) || defined(WINS) || defined(GENERIC_X86)\\r\\n\" + \r\n\t\t\t\t\"\\r\\n\" + \r\n\t\t\t\t\"#if defined(GENERIC_MARM) && !defined(ARMCC)\\r\\n\" + \r\n\t\t\t\t\"euser/epoc/egcc\\r\\n\" + \r\n\t\t\t\t\"#endif\\r\\n\" + \r\n\t\t\t\t\"\\r\\n\" + \r\n\t\t\t\t\"euser/epoc/edllstub\\r\\n\" + \r\n\t\t\t\t\"euser/edll\\r\\n\" + \r\n\t\t\t\t\"euser/eexe\\r\\n\" +\r\n\t\t\t\t\"#endif\\n\";\r\n\t\tmakeModel(inf);\r\n\t\tIBldInfView view = model.createView(allConfig);\r\n\t\ttestSourceRegions(view, true);\r\n\r\n\t\tcheckNoProblems(view);\r\n\t\tassertEquals(4, view.getMakMakeReferences().size());\r\n\t\tcommitTest(view, inf);\r\n\r\n\t}", "title": "" }, { "docid": "cce3070fe99c48254cc8091d55dd8569", "score": "0.573143", "text": "private int g(String var1_1) {\n block6: {\n block4: {\n block5: {\n var2_2 = var1_1.hashCode();\n var3_3 = 1602;\n var4_4 = 1;\n if (var2_2 == var3_3) break block4;\n var3_3 = 1629;\n if (var2_2 == var3_3) break block5;\n var3_3 = 1722;\n if (var2_2 != var3_3 || (var6_8 = (int)var1_1.equals(var5_5 = \"60\")) == 0) ** GOTO lbl-1000\n var6_8 = var4_4;\n break block6;\n }\n var5_6 = \"30\";\n var6_8 = (int)var1_1.equals(var5_6);\n if (var6_8 == 0) ** GOTO lbl-1000\n var6_8 = 0;\n var1_1 = null;\n break block6;\n }\n var5_7 = \"24\";\n var6_8 = var1_1.equals(var5_7);\n if (var6_8 != 0) {\n var6_8 = 2;\n } else lbl-1000:\n // 3 sources\n\n {\n var6_8 = -1;\n }\n }\n if (var6_8 != 0) {\n if (var6_8 != var4_4) {\n return 2131231434;\n }\n return 2131231438;\n }\n return 2131231436;\n }", "title": "" }, { "docid": "ac3fb3eb9130938fc8405e4a6fe8c635", "score": "0.5731206", "text": "public final void m25297a(java.lang.Object r8, com.fasterxml.jackson.core.JsonGenerator r9, com.fasterxml.jackson.databind.SerializerProvider r10) {\n /* JADX: method processing error */\n/*\nError: jadx.core.utils.exceptions.JadxRuntimeException: SSA rename variables already executed\n\tat jadx.core.dex.visitors.ssa.SSATransform.renameVariables(SSATransform.java:120)\n\tat jadx.core.dex.visitors.ssa.SSATransform.process(SSATransform.java:52)\n\tat jadx.core.dex.visitors.ssa.SSATransform.visit(SSATransform.java:42)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:31)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:17)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:14)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:14)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:14)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:14)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:14)\n\tat jadx.core.ProcessClass.process(ProcessClass.java:37)\n\tat jadx.core.ProcessClass.processDependencies(ProcessClass.java:59)\n\tat jadx.core.ProcessClass.process(ProcessClass.java:42)\n\tat jadx.api.JadxDecompiler.processClass(JadxDecompiler.java:306)\n\tat jadx.api.JavaClass.decompile(JavaClass.java:62)\n\tat jadx.api.JadxDecompiler$1.run(JadxDecompiler.java:199)\n*/\n /*\n r7 = this;\n r8 = (com.facebook.tagging.graphql.protocol.FetchGroupMembersToMentionQueryModels.FetchGroupMembersToMentionQueryModel.GroupMentionsModel.NonMemberSectionModel.EdgesModel) r8;\n r2 = 0;\n r0 = r8.w_();\n if (r0 != 0) goto L_0x0035;\n L_0x0009:\n r0 = new com.facebook.flatbuffers.FlatBufferBuilder;\n r1 = 128; // 0x80 float:1.794E-43 double:6.32E-322;\n r0.<init>(r1);\n r1 = r8.m25298a(r0);\n r0.d(r1);\n r0 = r0.e();\n r1 = java.nio.ByteBuffer.wrap(r0);\n r0 = 0;\n r1.position(r0);\n r0 = new com.facebook.flatbuffers.MutableFlatBuffer;\n r4 = 1;\n r3 = r2;\n r5 = r2;\n r0.<init>(r1, r2, r3, r4, r5);\n r6 = r0.a;\n r1 = r6;\n r1 = com.facebook.flatbuffers.FlatBuffer.a(r1);\n r8.a(r0, r1);\n L_0x0035:\n r0 = r8.w_();\n r1 = r8.u_();\n com.facebook.tagging.graphql.protocol.FetchGroupMembersToMentionQueryParsers.FetchGroupMembersToMentionQueryParser.GroupMentionsParser.NonMemberSectionParser.EdgesParser.m25336b(r0, r1, r9, r10);\n return;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.facebook.tagging.graphql.protocol.FetchGroupMembersToMentionQueryModels.FetchGroupMembersToMentionQueryModel.GroupMentionsModel.NonMemberSectionModel.EdgesModel.Serializer.a(java.lang.Object, com.fasterxml.jackson.core.JsonGenerator, com.fasterxml.jackson.databind.SerializerProvider):void\");\n }", "title": "" }, { "docid": "bf120779fd0059acafae50bad28263e5", "score": "0.5723262", "text": "public java.lang.Object m25267a(com.fasterxml.jackson.core.JsonParser r11, com.fasterxml.jackson.databind.DeserializationContext r12) {\n /* JADX: method processing error */\n/*\nError: jadx.core.utils.exceptions.JadxRuntimeException: SSA rename variables already executed\n\tat jadx.core.dex.visitors.ssa.SSATransform.renameVariables(SSATransform.java:120)\n\tat jadx.core.dex.visitors.ssa.SSATransform.process(SSATransform.java:52)\n\tat jadx.core.dex.visitors.ssa.SSATransform.visit(SSATransform.java:42)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:31)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:17)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:14)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:14)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:14)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:14)\n\tat jadx.core.ProcessClass.process(ProcessClass.java:37)\n\tat jadx.core.ProcessClass.processDependencies(ProcessClass.java:59)\n\tat jadx.core.ProcessClass.process(ProcessClass.java:42)\n\tat jadx.api.JadxDecompiler.processClass(JadxDecompiler.java:306)\n\tat jadx.api.JavaClass.decompile(JavaClass.java:62)\n\tat jadx.api.JadxDecompiler$1.run(JadxDecompiler.java:199)\n*/\n /*\n r10 = this;\n r8 = 1;\n r6 = null;\n r4 = new com.facebook.flatbuffers.FlatBufferBuilder;\n r5 = 128;\n r4.<init>(r5);\n r5 = com.facebook.tagging.graphql.protocol.FetchGroupMembersToMentionQueryParsers.FetchGroupMembersToMentionQueryParser.GroupMentionsParser.MemberSectionParser.m25331a(r11, r4);\n r4.d(r5);\n r4 = r4.e();\n r5 = java.nio.ByteBuffer.wrap(r4);\n r4 = null;\n r5.position(r4);\n r4 = new com.facebook.flatbuffers.MutableFlatBuffer;\n r7 = r6;\n r9 = r6;\n r4.<init>(r5, r6, r7, r8, r9);\n r5 = 4;\n r6 = java.lang.Boolean.valueOf(r8);\n r4.a(r5, r6);\n r2 = r4;\n r1 = new com.facebook.tagging.graphql.protocol.FetchGroupMembersToMentionQueryModels$FetchGroupMembersToMentionQueryModel$GroupMentionsModel$MemberSectionModel;\n r1.<init>();\n r4 = r2.a;\n r0 = r4;\n r3 = com.facebook.flatbuffers.FlatBuffer.a(r0);\n r0 = r1;\n r0 = (com.facebook.graphql.modelutil.BaseModel) r0;\n r0.a(r2, r3, r11);\n r0 = r1 instanceof com.facebook.common.json.Postprocessable;\n if (r0 == null) goto L_0x0048;\n L_0x0042:\n r1 = (com.facebook.common.json.Postprocessable) r1;\n r1 = r1.a();\n L_0x0048:\n return r1;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.facebook.tagging.graphql.protocol.FetchGroupMembersToMentionQueryModels.FetchGroupMembersToMentionQueryModel.GroupMentionsModel.MemberSectionModel.Deserializer.a(com.fasterxml.jackson.core.JsonParser, com.fasterxml.jackson.databind.DeserializationContext):java.lang.Object\");\n }", "title": "" }, { "docid": "0d5fb12e2986faa26ec3acfeb8ee5bd4", "score": "0.5714212", "text": "public static boolean a(java.lang.String r2, int r3, java.lang.Object r4) {\n /*\n r0 = 0;\n if (r2 == 0) goto L_0x0063;\n L_0x0003:\n r1 = r2.length();\n if (r1 != 0) goto L_0x000a;\n L_0x0009:\n goto L_0x0063;\n L_0x000a:\n if (r4 != 0) goto L_0x000d;\n L_0x000c:\n return r0;\n L_0x000d:\n r1 = 1001; // 0x3e9 float:1.403E-42 double:4.946E-321;\n if (r3 == r1) goto L_0x0053;\n L_0x0011:\n switch(r3) {\n case 2001: goto L_0x0044;\n case 2002: goto L_0x0044;\n case 2003: goto L_0x0044;\n case 2004: goto L_0x0044;\n case 2005: goto L_0x0044;\n case 2006: goto L_0x0044;\n case 2007: goto L_0x0044;\n case 2008: goto L_0x0044;\n default: goto L_0x0014;\n };\n L_0x0014:\n switch(r3) {\n case 2010: goto L_0x0044;\n case 2011: goto L_0x0044;\n case 2012: goto L_0x0044;\n case 2013: goto L_0x0044;\n case 2014: goto L_0x0044;\n case 2015: goto L_0x0044;\n default: goto L_0x0017;\n };\n L_0x0017:\n switch(r3) {\n case 3001: goto L_0x0039;\n case 3002: goto L_0x0044;\n case 3003: goto L_0x0053;\n default: goto L_0x001a;\n };\n L_0x001a:\n switch(r3) {\n case 4001: goto L_0x0053;\n case 4002: goto L_0x0044;\n case 4003: goto L_0x0044;\n case 4004: goto L_0x0044;\n default: goto L_0x001d;\n };\n L_0x001d:\n switch(r3) {\n case 5001: goto L_0x0053;\n case 5002: goto L_0x0044;\n default: goto L_0x0020;\n };\n L_0x0020:\n switch(r3) {\n case 6001: goto L_0x0044;\n case 6002: goto L_0x0053;\n case 6003: goto L_0x0044;\n case 6004: goto L_0x0044;\n case 6005: goto L_0x0044;\n case 6006: goto L_0x0044;\n case 6007: goto L_0x0044;\n case 6008: goto L_0x0044;\n case 6009: goto L_0x0044;\n default: goto L_0x0023;\n };\n L_0x0023:\n switch(r3) {\n case 7001: goto L_0x002a;\n case 7002: goto L_0x002a;\n case 7003: goto L_0x002a;\n case 7004: goto L_0x002a;\n case 7005: goto L_0x002a;\n case 7006: goto L_0x002a;\n case 7007: goto L_0x002a;\n case 7008: goto L_0x002a;\n case 7009: goto L_0x002a;\n case 7010: goto L_0x002a;\n case 7011: goto L_0x002a;\n case 7012: goto L_0x0039;\n case 7013: goto L_0x002a;\n case 7014: goto L_0x0039;\n case 7015: goto L_0x0039;\n case 7016: goto L_0x002a;\n case 7017: goto L_0x002a;\n case 7018: goto L_0x002a;\n case 7019: goto L_0x0039;\n case 7020: goto L_0x002a;\n default: goto L_0x0026;\n };\n L_0x0026:\n switch(r3) {\n case 7101: goto L_0x002a;\n case 7102: goto L_0x002a;\n case 7103: goto L_0x002a;\n case 7104: goto L_0x002a;\n case 7105: goto L_0x002a;\n case 7106: goto L_0x0039;\n case 7107: goto L_0x002a;\n case 7108: goto L_0x002a;\n case 7109: goto L_0x002a;\n case 7110: goto L_0x0039;\n case 7111: goto L_0x002a;\n case 7112: goto L_0x0044;\n case 7113: goto L_0x0039;\n case 7114: goto L_0x0039;\n case 7115: goto L_0x0039;\n case 7116: goto L_0x002a;\n case 7117: goto L_0x002a;\n case 7118: goto L_0x002a;\n case 7119: goto L_0x0039;\n default: goto L_0x0029;\n };\n L_0x0029:\n goto L_0x0062;\n L_0x002a:\n r1 = r4 instanceof java.lang.Long;\n if (r1 == 0) goto L_0x0062;\n L_0x002e:\n r4 = (java.lang.Long) r4;\n r0 = r4.longValue();\n r2 = nativeStatusSetIntValue(r2, r3, r0);\n return r2;\n L_0x0039:\n r1 = r4 instanceof java.lang.String;\n if (r1 == 0) goto L_0x0062;\n L_0x003d:\n r4 = (java.lang.String) r4;\n r2 = nativeStatusSetStrValue(r2, r3, r4);\n return r2;\n L_0x0044:\n r1 = r4 instanceof java.lang.Long;\n if (r1 == 0) goto L_0x0062;\n L_0x0048:\n r4 = (java.lang.Long) r4;\n r0 = r4.longValue();\n r2 = nativeStatusSetIntValue(r2, r3, r0);\n return r2;\n L_0x0053:\n r1 = r4 instanceof java.lang.Double;\n if (r1 == 0) goto L_0x0062;\n L_0x0057:\n r4 = (java.lang.Double) r4;\n r0 = r4.doubleValue();\n r2 = nativeStatusSetDoubleValue(r2, r3, r0);\n return r2;\n L_0x0062:\n return r0;\n L_0x0063:\n return r0;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.tencent.liteav.basic.module.TXCStatus.a(java.lang.String, int, java.lang.Object):boolean\");\n }", "title": "" }, { "docid": "e4a1ac68823ba9e5e95857a0496f5c0a", "score": "0.5714023", "text": "private int f(String var1_1) {\n block6: {\n block4: {\n block5: {\n var2_2 = var1_1.hashCode();\n var3_3 = 1602;\n var4_4 = 1;\n if (var2_2 == var3_3) break block4;\n var3_3 = 1629;\n if (var2_2 == var3_3) break block5;\n var3_3 = 1722;\n if (var2_2 != var3_3 || (var6_8 = (int)var1_1.equals(var5_5 = \"60\")) == 0) ** GOTO lbl-1000\n var6_8 = var4_4;\n break block6;\n }\n var5_6 = \"30\";\n var6_8 = (int)var1_1.equals(var5_6);\n if (var6_8 == 0) ** GOTO lbl-1000\n var6_8 = 0;\n var1_1 = null;\n break block6;\n }\n var5_7 = \"24\";\n var6_8 = var1_1.equals(var5_7);\n if (var6_8 != 0) {\n var6_8 = 2;\n } else lbl-1000:\n // 3 sources\n\n {\n var6_8 = -1;\n }\n }\n if (var6_8 != 0) {\n if (var6_8 != var4_4) {\n return 2131231427;\n }\n return 2131231432;\n }\n return 2131231429;\n }", "title": "" }, { "docid": "deebc5206243d2017a34e2b39f980344", "score": "0.5711706", "text": "private synchronized void m51822a(@androidx.annotation.C0193h0 android.content.Context r4) {\n /*\n r3 = this;\n monitor-enter(r3)\n android.content.res.AssetManager r4 = r4.getAssets() // Catch:{ IOException -> 0x0025, IllegalStateException -> 0x0023 }\n java.lang.String r0 = \"contents.json\"\n java.io.InputStream r4 = r4.open(r0) // Catch:{ IOException -> 0x0025, IllegalStateException -> 0x0023 }\n java.util.List r0 = com.mrsool.stickers.C11496j.m51871a(r4) // Catch:{ all -> 0x0018 }\n r3.f32394a = r0 // Catch:{ all -> 0x0018 }\n if (r4 == 0) goto L_0x0016\n r4.close() // Catch:{ IOException -> 0x0025, IllegalStateException -> 0x0023 }\n L_0x0016:\n monitor-exit(r3)\n return\n L_0x0018:\n r0 = move-exception\n throw r0 // Catch:{ all -> 0x001a }\n L_0x001a:\n r0 = move-exception\n if (r4 == 0) goto L_0x0020\n r4.close() // Catch:{ all -> 0x0020 }\n L_0x0020:\n throw r0 // Catch:{ IOException -> 0x0025, IllegalStateException -> 0x0023 }\n L_0x0021:\n r4 = move-exception\n goto L_0x0041\n L_0x0023:\n r4 = move-exception\n goto L_0x0026\n L_0x0025:\n r4 = move-exception\n L_0x0026:\n java.lang.RuntimeException r0 = new java.lang.RuntimeException // Catch:{ all -> 0x0021 }\n java.lang.StringBuilder r1 = new java.lang.StringBuilder // Catch:{ all -> 0x0021 }\n r1.<init>() // Catch:{ all -> 0x0021 }\n java.lang.String r2 = \"contents.json file has some issues: \"\n r1.append(r2) // Catch:{ all -> 0x0021 }\n java.lang.String r2 = r4.getMessage() // Catch:{ all -> 0x0021 }\n r1.append(r2) // Catch:{ all -> 0x0021 }\n java.lang.String r1 = r1.toString() // Catch:{ all -> 0x0021 }\n r0.<init>(r1, r4) // Catch:{ all -> 0x0021 }\n throw r0 // Catch:{ all -> 0x0021 }\n L_0x0041:\n monitor-exit(r3)\n throw r4\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.mrsool.stickers.StickerContentProvider.m51822a(android.content.Context):void\");\n }", "title": "" }, { "docid": "724175fde76314d76bb1f1b1b4713cfc", "score": "0.5709855", "text": "private android.graphics.Bitmap m6697c(java.lang.String r5, int r6, int r7) {\n /* JADX: method processing error */\n/*\nError: java.lang.NullPointerException\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.searchTryCatchDominators(ProcessTryCatchRegions.java:75)\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.process(ProcessTryCatchRegions.java:45)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.postProcessRegions(RegionMakerVisitor.java:63)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.visit(RegionMakerVisitor.java:58)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:31)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:17)\n\tat jadx.core.ProcessClass.process(ProcessClass.java:34)\n\tat jadx.api.JadxDecompiler.processClass(JadxDecompiler.java:282)\n\tat jadx.api.JavaClass.decompile(JavaClass.java:62)\n\tat jadx.api.JadxDecompiler.lambda$appendSourcesSave$0(JadxDecompiler.java:200)\n\tat jadx.api.JadxDecompiler$$Lambda$8/509891820.run(Unknown Source)\n*/\n /*\n r4 = this;\n r0 = \"asset:///\";\n r0 = r5.startsWith(r0);\n if (r0 == 0) goto L_0x0045;\n L_0x0008:\n r0 = 0;\n r1 = r4.f5371c;\t Catch:{ IOException -> 0x003e, all -> 0x0037 }\n r1 = r1.getAssets();\t Catch:{ IOException -> 0x003e, all -> 0x0037 }\n r2 = 9;\t Catch:{ IOException -> 0x003e, all -> 0x0037 }\n r3 = r5.length();\t Catch:{ IOException -> 0x003e, all -> 0x0037 }\n r2 = r5.substring(r2, r3);\t Catch:{ IOException -> 0x003e, all -> 0x0037 }\n r1 = r1.open(r2);\t Catch:{ IOException -> 0x003e, all -> 0x0037 }\n r2 = r4.m6695a(r6, r7);\t Catch:{ IOException -> 0x0035, all -> 0x0032 }\n if (r2 == 0) goto L_0x0028;\t Catch:{ IOException -> 0x0035, all -> 0x0032 }\n L_0x0023:\n r6 = com.facebook.ads.internal.p101q.p103b.C1941c.m7341a(r1, r6, r7);\t Catch:{ IOException -> 0x0035, all -> 0x0032 }\n goto L_0x002c;\t Catch:{ IOException -> 0x0035, all -> 0x0032 }\n L_0x0028:\n r6 = android.graphics.BitmapFactory.decodeStream(r1);\t Catch:{ IOException -> 0x0035, all -> 0x0032 }\n L_0x002c:\n if (r1 == 0) goto L_0x0054;\n L_0x002e:\n com.facebook.ads.internal.p085d.C1780c.m6693a(r1);\n goto L_0x0054;\n L_0x0032:\n r5 = move-exception;\n r0 = r1;\n goto L_0x0038;\n goto L_0x003f;\n L_0x0037:\n r5 = move-exception;\n L_0x0038:\n if (r0 == 0) goto L_0x003d;\n L_0x003a:\n com.facebook.ads.internal.p085d.C1780c.m6693a(r0);\n L_0x003d:\n throw r5;\n L_0x003e:\n r1 = r0;\n L_0x003f:\n if (r1 == 0) goto L_0x0044;\n L_0x0041:\n com.facebook.ads.internal.p085d.C1780c.m6693a(r1);\n L_0x0044:\n return r0;\n L_0x0045:\n r0 = r4.m6695a(r6, r7);\n if (r0 == 0) goto L_0x0050;\n L_0x004b:\n r6 = r4.m6698d(r5, r6, r7);\t Catch:{ IOException -> 0x0050 }\n goto L_0x0054;\n L_0x0050:\n r6 = r4.m6691a(r5);\n L_0x0054:\n r4.m6694a(r5, r6);\n return r6;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.facebook.ads.internal.d.c.c(java.lang.String, int, int):android.graphics.Bitmap\");\n }", "title": "" }, { "docid": "299fd6dc72c0ae4b4f70c9a83f8f9d22", "score": "0.57052785", "text": "public void b() {\n /*\n r13 = this;\n int r0 = r13.getAndIncrement()\n if (r0 == 0) goto L_0x0007\n return\n L_0x0007:\n d.a.s<? super R> r0 = r13.f13880b\n java.util.concurrent.atomic.AtomicReference<d.a.a0.e.d.n3$a<T, R>> r1 = r13.j\n boolean r2 = r13.f13883e\n r3 = 1\n r4 = 1\n L_0x000f:\n boolean r5 = r13.h\n if (r5 == 0) goto L_0x0014\n return\n L_0x0014:\n boolean r5 = r13.g\n r6 = 0\n if (r5 == 0) goto L_0x0052\n java.lang.Object r5 = r1.get()\n if (r5 != 0) goto L_0x0021\n r5 = 1\n goto L_0x0022\n L_0x0021:\n r5 = 0\n L_0x0022:\n if (r2 == 0) goto L_0x0038\n if (r5 == 0) goto L_0x0052\n d.a.a0.j.c r1 = r13.f13884f\n java.lang.Object r1 = r1.get()\n java.lang.Throwable r1 = (java.lang.Throwable) r1\n if (r1 == 0) goto L_0x0034\n r0.onError(r1)\n goto L_0x0037\n L_0x0034:\n r0.onComplete()\n L_0x0037:\n return\n L_0x0038:\n d.a.a0.j.c r7 = r13.f13884f\n java.lang.Object r7 = r7.get()\n java.lang.Throwable r7 = (java.lang.Throwable) r7\n if (r7 == 0) goto L_0x004c\n d.a.a0.j.c r1 = r13.f13884f\n java.lang.Throwable r1 = r1.b()\n r0.onError(r1)\n return\n L_0x004c:\n if (r5 == 0) goto L_0x0052\n r0.onComplete()\n return\n L_0x0052:\n java.lang.Object r5 = r1.get()\n d.a.a0.e.d.n3$a r5 = (d.a.a0.e.d.n3.a) r5\n if (r5 == 0) goto L_0x00e9\n d.a.a0.c.f<R> r7 = r5.f13878e\n if (r7 == 0) goto L_0x00e9\n boolean r8 = r5.f13879f\n r9 = 0\n if (r8 == 0) goto L_0x0089\n boolean r8 = r7.isEmpty()\n if (r2 == 0) goto L_0x006f\n if (r8 == 0) goto L_0x0089\n r1.compareAndSet(r5, r9)\n goto L_0x000f\n L_0x006f:\n d.a.a0.j.c r10 = r13.f13884f\n java.lang.Object r10 = r10.get()\n java.lang.Throwable r10 = (java.lang.Throwable) r10\n if (r10 == 0) goto L_0x0083\n d.a.a0.j.c r1 = r13.f13884f\n java.lang.Throwable r1 = r1.b()\n r0.onError(r1)\n return\n L_0x0083:\n if (r8 == 0) goto L_0x0089\n r1.compareAndSet(r5, r9)\n goto L_0x000f\n L_0x0089:\n r8 = 0\n L_0x008a:\n boolean r10 = r13.h\n if (r10 == 0) goto L_0x008f\n return\n L_0x008f:\n java.lang.Object r10 = r1.get()\n if (r5 == r10) goto L_0x0097\n L_0x0095:\n r8 = 1\n goto L_0x00e1\n L_0x0097:\n if (r2 != 0) goto L_0x00ad\n d.a.a0.j.c r10 = r13.f13884f\n java.lang.Object r10 = r10.get()\n java.lang.Throwable r10 = (java.lang.Throwable) r10\n if (r10 == 0) goto L_0x00ad\n d.a.a0.j.c r1 = r13.f13884f\n java.lang.Throwable r1 = r1.b()\n r0.onError(r1)\n return\n L_0x00ad:\n boolean r10 = r5.f13879f\n java.lang.Object r11 = r7.poll() // Catch:{ all -> 0x00b4 }\n goto L_0x00d2\n L_0x00b4:\n r8 = move-exception\n io.reactivex.exceptions.a.b(r8)\n d.a.a0.j.c r11 = r13.f13884f\n r11.a(r8)\n r1.compareAndSet(r5, r9)\n if (r2 != 0) goto L_0x00cd\n r13.a()\n d.a.y.b r8 = r13.i\n r8.dispose()\n r13.g = r3\n goto L_0x00d0\n L_0x00cd:\n r5.a()\n L_0x00d0:\n r11 = r9\n r8 = 1\n L_0x00d2:\n if (r11 != 0) goto L_0x00d6\n r12 = 1\n goto L_0x00d7\n L_0x00d6:\n r12 = 0\n L_0x00d7:\n if (r10 == 0) goto L_0x00df\n if (r12 == 0) goto L_0x00df\n r1.compareAndSet(r5, r9)\n goto L_0x0095\n L_0x00df:\n if (r12 == 0) goto L_0x00e5\n L_0x00e1:\n if (r8 == 0) goto L_0x00e9\n goto L_0x000f\n L_0x00e5:\n r0.onNext(r11)\n goto L_0x008a\n L_0x00e9:\n int r4 = -r4\n int r4 = r13.addAndGet(r4)\n if (r4 != 0) goto L_0x000f\n return\n */\n throw new UnsupportedOperationException(\"Method not decompiled: d.a.a0.e.d.n3.b.b():void\");\n }", "title": "" }, { "docid": "bd328b0d28114e29337723121f48fe87", "score": "0.5697133", "text": "private static com.google.android.m4b.maps.bk.C4805k m21248a(com.google.android.m4b.maps.bk.C6467j r32, java.util.List<java.lang.Object> r33) {\n /*\n r0 = r32;\n r1 = new com.google.android.m4b.maps.bk.b;\n r1.<init>(r0);\n r2 = 0;\n r3 = 0;\n r0 = com.google.android.m4b.maps.bk.C4800e.m21246a(r0, r1, r3, r2, r2);\n r1 = com.google.android.m4b.maps.bk.C4800e.C47951.f17497b;\n r4 = r0.f17503a;\n r4 = r4.ordinal();\n r1 = r1[r4];\n switch(r1) {\n case 1: goto L_0x040b;\n case 2: goto L_0x03fd;\n case 3: goto L_0x0022;\n default: goto L_0x001a;\n };\n L_0x001a:\n r0 = new com.google.android.m4b.maps.bk.e$a;\n r1 = \"Unknown subdivide result in tessellation\";\n r0.<init>(r1);\n throw r0;\n L_0x0022:\n r1 = r0.f17504b;\n r4 = r0.f17505c;\n r5 = r0.f17506d;\n r6 = r0.f17507e;\n r7 = r0.f17508f;\n r0 = r0.f17509g;\n r8 = com.google.android.m4b.maps.bk.C4805k.m21269a(r1);\n r9 = new java.util.LinkedList;\n r9.<init>();\n r10 = 1;\n r12 = r2;\n r13 = r12;\n r14 = r13;\n r11 = r7;\n r15 = 0;\n r7 = r4;\n r4 = r1;\n r1 = r0;\n r0 = 0;\n L_0x0041:\n if (r0 != 0) goto L_0x03fb;\n L_0x0043:\n if (r1 == 0) goto L_0x0067;\n L_0x0045:\n r2 = 4;\n r2 = new double[r2];\n r16 = r4.m21289b(r5);\n r2[r3] = r16;\n r16 = r4.m21293c(r5);\n r2[r10] = r16;\n r16 = 2;\n r17 = r4.m21289b(r6);\n r2[r16] = r17;\n r16 = 3;\n r17 = r4.m21293c(r6);\n r2[r16] = r17;\n r1.add(r2);\n L_0x0067:\n if (r5 <= r6) goto L_0x006b;\n L_0x0069:\n r2 = r6;\n goto L_0x006c;\n L_0x006b:\n r2 = r5;\n L_0x006c:\n if (r5 <= r6) goto L_0x0070;\n L_0x006e:\n r10 = r5;\n goto L_0x0071;\n L_0x0070:\n r10 = r6;\n L_0x0071:\n r16 = r4.m21305g(r2, r10);\n if (r16 != 0) goto L_0x0090;\n L_0x0077:\n r16 = r4.m21297d(r10);\n r17 = r4.m21299e(r10);\n r19 = r0;\n r0 = r2;\n r20 = r9;\n r22 = r14;\n r21 = r15;\n r9 = r16;\n r15 = r17;\n r3 = 1;\n r14 = r0;\n goto L_0x010b;\n L_0x0090:\n r3 = r4.m21297d(r10);\n r3 = r4.m21305g(r2, r3);\n if (r3 != 0) goto L_0x00ad;\n L_0x009a:\n r3 = r4.m21297d(r10);\n r19 = r0;\n r0 = r2;\n r20 = r9;\n r22 = r14;\n r21 = r15;\n r14 = r0;\n r9 = r3;\n r15 = r10;\n L_0x00aa:\n r3 = 1;\n goto L_0x010b;\n L_0x00ad:\n r3 = r4.m21299e(r10);\n r3 = r4.m21305g(r2, r3);\n if (r3 != 0) goto L_0x00c8;\n L_0x00b7:\n r3 = r4.m21299e(r10);\n r19 = r0;\n r0 = r2;\n r20 = r9;\n r9 = r10;\n r22 = r14;\n r21 = r15;\n r14 = r0;\n r15 = r3;\n goto L_0x00aa;\n L_0x00c8:\n r3 = r4.m21297d(r2);\n r3 = r4.m21305g(r3, r10);\n if (r3 != 0) goto L_0x00e3;\n L_0x00d2:\n r3 = r4.m21297d(r2);\n r19 = r0;\n r0 = r2;\n r20 = r9;\n r9 = r10;\n r22 = r14;\n r21 = r15;\n r14 = r3;\n r15 = r9;\n goto L_0x00aa;\n L_0x00e3:\n r3 = r4.m21299e(r2);\n r3 = r4.m21305g(r3, r10);\n if (r3 != 0) goto L_0x00fe;\n L_0x00ed:\n r3 = r4.m21299e(r2);\n r19 = r0;\n r0 = r3;\n r20 = r9;\n r9 = r10;\n r22 = r14;\n r21 = r15;\n r3 = 1;\n r14 = r2;\n goto L_0x010a;\n L_0x00fe:\n r19 = r0;\n r0 = r2;\n r20 = r9;\n r9 = r10;\n r22 = r14;\n r21 = r15;\n r3 = 0;\n r14 = r0;\n L_0x010a:\n r15 = r9;\n L_0x010b:\n if (r3 == 0) goto L_0x0135;\n L_0x010d:\n r2 = r4.m28369d(r0, r9);\n r3 = r4.m28369d(r15, r14);\n r9 = new com.google.android.m4b.maps.bk.b;\n r9.<init>(r2);\n r10 = new com.google.android.m4b.maps.bk.b;\n r10.<init>(r3);\n r8.m21275b();\n r26 = r0;\n r0 = r1;\n r23 = r8;\n r8 = r12;\n r27 = r13;\n r25 = r14;\n r24 = r15;\n r1 = 0;\n r15 = r3;\n r14 = r10;\n r3 = r2;\n r2 = 0;\n goto L_0x02cf;\n L_0x0135:\n r3 = r4.m28369d(r2, r10);\n r9 = r7.m21229a(r3, r2, r10);\n r23 = r8;\n r8 = r5 - r2;\n r24 = r15;\n r15 = 0;\n r16 = r3.m21307h(r8, r15);\n r15 = r4.m28369d(r10, r2);\n r25 = r14;\n r14 = r7.m21229a(r15, r10, r2);\n r17 = r10 - r2;\n r18 = 1;\n r17 = r17 + -1;\n if (r6 > r2) goto L_0x015e;\n L_0x015a:\n r26 = r0;\n r0 = r6;\n goto L_0x0164;\n L_0x015e:\n r18 = r6 - r17;\n r26 = r0;\n r0 = r18;\n L_0x0164:\n if (r5 > r2) goto L_0x016d;\n L_0x0166:\n r28 = r1;\n r27 = r13;\n r1 = 0;\n r13 = r5;\n goto L_0x0176;\n L_0x016d:\n r18 = r5 - r17;\n r28 = r1;\n r27 = r13;\n r13 = r18;\n r1 = 0;\n L_0x0176:\n r18 = r15.m21307h(r13, r1);\n r1 = r4.m21297d(r5);\n r29 = r12;\n r12 = r4.m21299e(r5);\n r30 = com.google.android.m4b.maps.bk.C4800e.C47951.f17496a;\n r31 = r11.ordinal();\n r30 = r30[r31];\n switch(r30) {\n case 1: goto L_0x0293;\n case 2: goto L_0x0265;\n case 3: goto L_0x025c;\n case 4: goto L_0x01ec;\n case 5: goto L_0x01e4;\n case 6: goto L_0x0191;\n default: goto L_0x018f;\n };\n L_0x018f:\n goto L_0x02c7;\n L_0x0191:\n r0 = -1;\n if (r12 < r2) goto L_0x01b5;\n L_0x0194:\n if (r12 > r10) goto L_0x01b5;\n L_0x0196:\n r12 = r12 - r2;\n r1 = r9.m21236c(r12, r8);\n if (r1 == 0) goto L_0x01ad;\n L_0x019d:\n r1 = com.google.android.m4b.maps.bk.C4791a.C4790b.END_VERTEX;\n r1 = r9.m21233b(r12, r8, r1);\n if (r1 == r0) goto L_0x01d6;\n L_0x01a5:\n r0 = new java.lang.NullPointerException;\n r1 = \"Impossible case in cutAndTessellate.\";\n r0.<init>(r1);\n throw r0;\n L_0x01ad:\n r0 = new java.lang.NullPointerException;\n r1 = \"Impossible case in cutAndTessellate.\";\n r0.<init>(r1);\n throw r0;\n L_0x01b5:\n if (r12 > r2) goto L_0x01b9;\n L_0x01b7:\n r1 = r12;\n goto L_0x01bb;\n L_0x01b9:\n r1 = r12 - r17;\n L_0x01bb:\n r1 = r14.m21236c(r1, r13);\n if (r1 == 0) goto L_0x01dc;\n L_0x01c1:\n if (r12 > r2) goto L_0x01c4;\n L_0x01c3:\n goto L_0x01c6;\n L_0x01c4:\n r12 = r12 - r17;\n L_0x01c6:\n r1 = com.google.android.m4b.maps.bk.C4791a.C4790b.END_VERTEX;\n r1 = r14.m21233b(r12, r13, r1);\n if (r1 == r0) goto L_0x01d6;\n L_0x01ce:\n r0 = new java.lang.NullPointerException;\n r1 = \"Impossible case in cutAndTessellate.\";\n r0.<init>(r1);\n throw r0;\n L_0x01d6:\n r0 = r16 + 1;\n r1 = r18 + 1;\n goto L_0x02c0;\n L_0x01dc:\n r0 = new java.lang.NullPointerException;\n r1 = \"Impossible case in cutAndTessellate.\";\n r0.<init>(r1);\n throw r0;\n L_0x01e4:\n r0 = new java.lang.NullPointerException;\n r1 = \"Impossible case in cutAndTessellate.\";\n r0.<init>(r1);\n throw r0;\n L_0x01ec:\n if (r1 < r2) goto L_0x0228;\n L_0x01ee:\n if (r1 > r10) goto L_0x0228;\n L_0x01f0:\n r0 = r7.m21236c(r1, r5);\n if (r0 == 0) goto L_0x0212;\n L_0x01f6:\n r0 = r6 - r2;\n r9.m21237d(r0, r8);\n r0 = r15.m21302f(r13);\n r1 = com.google.android.m4b.maps.bk.C4791a.C4790b.END_VERTEX;\n if (r0 == r1) goto L_0x020b;\n L_0x0203:\n r0 = new java.lang.NullPointerException;\n r1 = \"Impossible case in cutAndTessellate.\";\n r0.<init>(r1);\n throw r0;\n L_0x020b:\n r0 = r18 + 1;\n r2 = r0;\n r1 = r16;\n goto L_0x02cb;\n L_0x0212:\n r0 = r3.m21302f(r8);\n r1 = com.google.android.m4b.maps.bk.C4791a.C4790b.END_VERTEX;\n if (r0 == r1) goto L_0x0222;\n L_0x021a:\n r0 = new java.lang.NullPointerException;\n r1 = \"Impossible case in cutAndTessellate.\";\n r0.<init>(r1);\n throw r0;\n L_0x0222:\n r0 = r16 + 1;\n r1 = r18 + 1;\n goto L_0x02c0;\n L_0x0228:\n r1 = r7.m21236c(r1, r5);\n if (r1 == 0) goto L_0x0245;\n L_0x022e:\n r1 = r3.m21302f(r8);\n r2 = com.google.android.m4b.maps.bk.C4791a.C4790b.END_VERTEX;\n if (r1 == r2) goto L_0x023e;\n L_0x0236:\n r0 = new java.lang.NullPointerException;\n r1 = \"Impossible case in cutAndTessellate.\";\n r0.<init>(r1);\n throw r0;\n L_0x023e:\n r1 = r16 + 1;\n r14.m21237d(r0, r13);\n goto L_0x02c9;\n L_0x0245:\n r0 = r15.m21302f(r13);\n r1 = com.google.android.m4b.maps.bk.C4791a.C4790b.END_VERTEX;\n if (r0 == r1) goto L_0x0255;\n L_0x024d:\n r0 = new java.lang.NullPointerException;\n r1 = \"Impossible case in cutAndTessellate.\";\n r0.<init>(r1);\n throw r0;\n L_0x0255:\n r0 = r18 + 1;\n r1 = r16 + 1;\n r2 = r0;\n goto L_0x02cb;\n L_0x025c:\n r1 = r6 - r2;\n r9.m21237d(r1, r8);\n r14.m21237d(r0, r13);\n goto L_0x02c7;\n L_0x0265:\n if (r1 < r2) goto L_0x027e;\n L_0x0267:\n if (r1 > r10) goto L_0x027e;\n L_0x0269:\n r0 = r3.m21302f(r8);\n r1 = com.google.android.m4b.maps.bk.C4791a.C4790b.END_VERTEX;\n if (r0 == r1) goto L_0x0279;\n L_0x0271:\n r0 = new java.lang.NullPointerException;\n r1 = \"Impossible case in cutAndTessellate.\";\n r0.<init>(r1);\n throw r0;\n L_0x0279:\n r0 = r16 + 1;\n r1 = r18 + 1;\n goto L_0x02c0;\n L_0x027e:\n r0 = r16 + 1;\n r1 = r15.m21302f(r13);\n r2 = com.google.android.m4b.maps.bk.C4791a.C4790b.END_VERTEX;\n if (r1 == r2) goto L_0x0290;\n L_0x0288:\n r0 = new java.lang.NullPointerException;\n r1 = \"Impossible case in cutAndTessellate.\";\n r0.<init>(r1);\n throw r0;\n L_0x0290:\n r1 = r18 + 1;\n goto L_0x02c0;\n L_0x0293:\n if (r1 < r2) goto L_0x02ac;\n L_0x0295:\n if (r1 > r10) goto L_0x02ac;\n L_0x0297:\n r0 = r16 + 1;\n r1 = r15.m21302f(r13);\n r2 = com.google.android.m4b.maps.bk.C4791a.C4790b.END_VERTEX;\n if (r1 == r2) goto L_0x02a9;\n L_0x02a1:\n r0 = new java.lang.NullPointerException;\n r1 = \"Impossible case in cutAndTessellate.\";\n r0.<init>(r1);\n throw r0;\n L_0x02a9:\n r1 = r18 + 1;\n goto L_0x02c0;\n L_0x02ac:\n r0 = r3.m21302f(r8);\n r1 = com.google.android.m4b.maps.bk.C4791a.C4790b.END_VERTEX;\n if (r0 == r1) goto L_0x02bc;\n L_0x02b4:\n r0 = new java.lang.NullPointerException;\n r1 = \"Impossible case in cutAndTessellate.\";\n r0.<init>(r1);\n throw r0;\n L_0x02bc:\n r0 = r16 + 1;\n r1 = r18 + 1;\n L_0x02c0:\n r2 = r1;\n r8 = r29;\n r1 = r0;\n r0 = r28;\n goto L_0x02cf;\n L_0x02c7:\n r1 = r16;\n L_0x02c9:\n r2 = r18;\n L_0x02cb:\n r0 = r28;\n r8 = r29;\n L_0x02cf:\n r1 = com.google.android.m4b.maps.bk.C4800e.m21246a(r3, r9, r1, r0, r8);\n r8 = r27;\n r2 = com.google.android.m4b.maps.bk.C4800e.m21246a(r15, r14, r2, r0, r8);\n if (r22 == 0) goto L_0x02fa;\n L_0x02db:\n r3 = r3.m21298e();\n r8 = r1.f17510h;\n if (r8 == 0) goto L_0x02e8;\n L_0x02e3:\n r8 = r1.f17510h;\n r8 = r8.length;\n if (r8 >= r3) goto L_0x02ec;\n L_0x02e8:\n r8 = new int[r3];\n r1.f17510h = r8;\n L_0x02ec:\n r8 = 0;\n L_0x02ed:\n if (r8 >= r3) goto L_0x0301;\n L_0x02ef:\n r9 = r1.f17510h;\n r10 = r26 + r8;\n r10 = r22[r10];\n r9[r8] = r10;\n r8 = r8 + 1;\n goto L_0x02ed;\n L_0x02fa:\n r3 = 0;\n r1.f17510h = r3;\n r3 = r21 + r26;\n r1.f17511i = r3;\n L_0x0301:\n r3 = r15.m21298e();\n r8 = r2.f17510h;\n if (r8 == 0) goto L_0x030e;\n L_0x0309:\n r8 = r2.f17510h;\n r8 = r8.length;\n if (r8 >= r3) goto L_0x0312;\n L_0x030e:\n r8 = new int[r3];\n r2.f17510h = r8;\n L_0x0312:\n if (r22 == 0) goto L_0x032e;\n L_0x0314:\n r8 = r2.f17510h;\n r14 = r25 + 1;\n r9 = r22;\n r10 = 0;\n java.lang.System.arraycopy(r9, r10, r8, r10, r14);\n r8 = r9.length;\n r10 = r24;\n if (r10 >= r8) goto L_0x032c;\n L_0x0323:\n r8 = r2.f17510h;\n r3 = r3 - r25;\n r12 = 1;\n r3 = r3 - r12;\n java.lang.System.arraycopy(r9, r10, r8, r14, r3);\n L_0x032c:\n r8 = 1;\n goto L_0x0351;\n L_0x032e:\n r9 = r22;\n r10 = r24;\n r8 = 0;\n L_0x0333:\n r14 = r25 + 1;\n if (r8 >= r14) goto L_0x0340;\n L_0x0337:\n r12 = r2.f17510h;\n r15 = r8 + r21;\n r12[r8] = r15;\n r8 = r8 + 1;\n goto L_0x0333;\n L_0x0340:\n r15 = r10 - r25;\n r8 = 1;\n r15 = r15 - r8;\n r15 = r15 + r21;\n L_0x0346:\n if (r14 >= r3) goto L_0x0351;\n L_0x0348:\n r10 = r2.f17510h;\n r12 = r14 + r15;\n r10[r14] = r12;\n r14 = r14 + 1;\n goto L_0x0346;\n L_0x0351:\n r3 = r1.f17503a;\n r10 = com.google.android.m4b.maps.bk.C4800e.C4798c.C4797a.CUT_AND_TESSELLATE;\n if (r3 != r10) goto L_0x0360;\n L_0x0357:\n r3 = r2.f17503a;\n r10 = com.google.android.m4b.maps.bk.C4800e.C4798c.C4797a.CUT_AND_TESSELLATE;\n if (r3 == r10) goto L_0x0360;\n L_0x035d:\n r13 = r1;\n r1 = r2;\n goto L_0x0361;\n L_0x0360:\n r13 = r2;\n L_0x0361:\n r2 = com.google.android.m4b.maps.bk.C4800e.C47951.f17497b;\n r3 = r1.f17503a;\n r3 = r3.ordinal();\n r2 = r2[r3];\n switch(r2) {\n case 1: goto L_0x038d;\n case 2: goto L_0x037f;\n case 3: goto L_0x0376;\n default: goto L_0x036e;\n };\n L_0x036e:\n r0 = new com.google.android.m4b.maps.bk.e$a;\n r1 = \"Unknown subdivide result in tessellation\";\n r0.<init>(r1);\n throw r0;\n L_0x0376:\n r2 = r20;\n r2.add(r1);\n r14 = r23;\n r12 = 0;\n goto L_0x0392;\n L_0x037f:\n r2 = r20;\n r3 = r1.f17504b;\n r10 = r1.f17510h;\n r12 = r1.f17511i;\n r14 = r23;\n com.google.android.m4b.maps.bk.C4800e.m21249a(r3, r14, r10, r12);\n goto L_0x0391;\n L_0x038d:\n r2 = r20;\n r14 = r23;\n L_0x0391:\n r12 = r1;\n L_0x0392:\n r1 = com.google.android.m4b.maps.bk.C4800e.C47951.f17497b;\n r3 = r13.f17503a;\n r3 = r3.ordinal();\n r1 = r1[r3];\n switch(r1) {\n case 1: goto L_0x03c9;\n case 2: goto L_0x03c1;\n case 3: goto L_0x03a7;\n default: goto L_0x039f;\n };\n L_0x039f:\n r0 = new com.google.android.m4b.maps.bk.e$a;\n r1 = \"Unknown subdivide result in tessellation\";\n r0.<init>(r1);\n throw r0;\n L_0x03a7:\n r4 = r13.f17504b;\n r7 = r13.f17505c;\n r5 = r13.f17506d;\n r6 = r13.f17507e;\n r11 = r13.f17508f;\n r1 = r13.f17509g;\n r0 = r13.f17510h;\n r15 = r13.f17511i;\n r9 = r2;\n r8 = r14;\n r2 = 0;\n r3 = 0;\n r10 = 1;\n r14 = r0;\n r0 = r19;\n goto L_0x0041;\n L_0x03c1:\n r1 = r13.f17504b;\n r3 = r13.f17510h;\n r10 = 0;\n com.google.android.m4b.maps.bk.C4800e.m21249a(r1, r14, r3, r10);\n L_0x03c9:\n r1 = r2.isEmpty();\n if (r1 != 0) goto L_0x03ef;\n L_0x03cf:\n r0 = r2.poll();\n r0 = (com.google.android.m4b.maps.bk.C4800e.C4798c) r0;\n r4 = r0.f17504b;\n r7 = r0.f17505c;\n r5 = r0.f17506d;\n r6 = r0.f17507e;\n r11 = r0.f17508f;\n r1 = r0.f17509g;\n r3 = r0.f17510h;\n r15 = r0.f17511i;\n r9 = r2;\n r8 = r14;\n r0 = r19;\n r2 = 0;\n r10 = 1;\n r14 = r3;\n r3 = 0;\n goto L_0x0041;\n L_0x03ef:\n r1 = r0;\n r8 = r14;\n r15 = r21;\n r0 = 1;\n r3 = 0;\n r10 = 1;\n r14 = r9;\n r9 = r2;\n r2 = 0;\n goto L_0x0041;\n L_0x03fb:\n r14 = r8;\n goto L_0x040f;\n L_0x03fd:\n r1 = r0.f17504b;\n r8 = com.google.android.m4b.maps.bk.C4805k.m21269a(r1);\n r0 = r0.f17504b;\n r1 = 0;\n r2 = 0;\n com.google.android.m4b.maps.bk.C4800e.m21249a(r0, r8, r2, r1);\n goto L_0x040f;\n L_0x040b:\n r8 = com.google.android.m4b.maps.bk.C4805k.m21268a();\n L_0x040f:\n return r8;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.android.m4b.maps.bk.e.a(com.google.android.m4b.maps.bk.j, java.util.List):com.google.android.m4b.maps.bk.k\");\n }", "title": "" }, { "docid": "aac769e7426912c2615891b604cc0f13", "score": "0.5688777", "text": "public void a(org.apache.thrift.protocol.e r7) {\n /*\n r6 = this;\n r7.g();\n L_0x0003:\n r0 = r7.i();\n r1 = r0.b;\n if (r1 == 0) goto L_0x00c7;\n L_0x000b:\n r1 = r0.c;\n r2 = 10;\n r3 = 2;\n r4 = 1;\n r5 = 11;\n switch(r1) {\n case 1: goto L_0x00b8;\n case 2: goto L_0x00ad;\n case 3: goto L_0x00a2;\n case 4: goto L_0x0094;\n case 5: goto L_0x0086;\n case 6: goto L_0x0078;\n case 7: goto L_0x006d;\n case 8: goto L_0x0062;\n case 9: goto L_0x0057;\n case 10: goto L_0x0029;\n case 11: goto L_0x001d;\n default: goto L_0x0016;\n };\n L_0x0016:\n r0 = r0.b;\n org.apache.thrift.protocol.h.a(r7, r0);\n goto L_0x00c2;\n L_0x001d:\n r1 = r0.b;\n if (r1 != r5) goto L_0x0016;\n L_0x0021:\n r0 = r7.w();\n r6.k = r0;\n goto L_0x00c2;\n L_0x0029:\n r1 = r0.b;\n r2 = 13;\n if (r1 != r2) goto L_0x0016;\n L_0x002f:\n r0 = r7.k();\n r1 = new java.util.HashMap;\n r2 = r0.c;\n r3 = r3 * r2;\n r1.<init>(r3);\n r6.j = r1;\n r1 = 0;\n L_0x003e:\n r2 = r0.c;\n if (r1 >= r2) goto L_0x0052;\n L_0x0042:\n r2 = r7.w();\n r3 = r7.w();\n r4 = r6.j;\n r4.put(r2, r3);\n r1 = r1 + 1;\n goto L_0x003e;\n L_0x0052:\n r7.l();\n goto L_0x00c2;\n L_0x0057:\n r1 = r0.b;\n if (r1 != r5) goto L_0x0016;\n L_0x005b:\n r0 = r7.w();\n r6.i = r0;\n goto L_0x00c2;\n L_0x0062:\n r1 = r0.b;\n if (r1 != r5) goto L_0x0016;\n L_0x0066:\n r0 = r7.w();\n r6.h = r0;\n goto L_0x00c2;\n L_0x006d:\n r1 = r0.b;\n if (r1 != r5) goto L_0x0016;\n L_0x0071:\n r0 = r7.w();\n r6.g = r0;\n goto L_0x00c2;\n L_0x0078:\n r1 = r0.b;\n if (r1 != r3) goto L_0x0016;\n L_0x007c:\n r0 = r7.q();\n r6.f = r0;\n r6.d(r4);\n goto L_0x00c2;\n L_0x0086:\n r1 = r0.b;\n if (r1 != r2) goto L_0x0016;\n L_0x008a:\n r0 = r7.u();\n r6.e = r0;\n r6.b(r4);\n goto L_0x00c2;\n L_0x0094:\n r1 = r0.b;\n if (r1 != r2) goto L_0x0016;\n L_0x0098:\n r0 = r7.u();\n r6.d = r0;\n r6.a(r4);\n goto L_0x00c2;\n L_0x00a2:\n r1 = r0.b;\n if (r1 != r5) goto L_0x0016;\n L_0x00a6:\n r0 = r7.w();\n r6.c = r0;\n goto L_0x00c2;\n L_0x00ad:\n r1 = r0.b;\n if (r1 != r5) goto L_0x0016;\n L_0x00b1:\n r0 = r7.w();\n r6.b = r0;\n goto L_0x00c2;\n L_0x00b8:\n r1 = r0.b;\n if (r1 != r5) goto L_0x0016;\n L_0x00bc:\n r0 = r7.w();\n r6.a = r0;\n L_0x00c2:\n r7.j();\n goto L_0x0003;\n L_0x00c7:\n r7.h();\n r6.r();\n return;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.xiaomi.xmpush.thrift.f.a(org.apache.thrift.protocol.e):void\");\n }", "title": "" }, { "docid": "506fd070cb4402224c7f232ab9ef94b7", "score": "0.56849873", "text": "private final void m243B() {\n /*\n r10 = this;\n r0 = r10.f527u;\n if (r0 != 0) goto L_0x000c;\n L_0x0004:\n r0 = \"RecyclerView\";\n r1 = \"No adapter attached; skipping layout\";\n android.util.Log.e(r0, r1);\n L_0x000b:\n return;\n L_0x000c:\n r0 = r10.f528v;\n if (r0 != 0) goto L_0x0018;\n L_0x0010:\n r0 = \"RecyclerView\";\n r1 = \"No layout manager attached; skipping layout\";\n android.util.Log.e(r0, r1);\n goto L_0x000b;\n L_0x0018:\n r0 = r10.ao;\n r0 = r0.f3468e;\n r1 = 1;\n if (r0 != r1) goto L_0x00ee;\n L_0x001f:\n r10.m246E();\n r0 = r10.f528v;\n r0.m3038c(r10);\n r10.m247F();\n L_0x002a:\n r0 = r10.ao;\n r1 = 4;\n r0.m3706a(r1);\n r10.m298e();\n r10.m311k();\n r0 = r10.ao;\n r1 = 1;\n r0.f3468e = r1;\n r0 = r10.ao;\n r0 = r0.f3473j;\n if (r0 == 0) goto L_0x01b9;\n L_0x0041:\n r0 = r10.f520n;\n r0 = r0.m3326a();\n r0 = r0 + -1;\n r2 = r0;\n L_0x004a:\n if (r2 < 0) goto L_0x01b2;\n L_0x004c:\n r0 = r10.f520n;\n r0 = r0.m3332b(r2);\n r3 = m261c(r0);\n r0 = r3.m3265b();\n if (r0 != 0) goto L_0x017b;\n L_0x005c:\n r4 = r10.m263d(r3);\n r0 = r10.f512T;\n r1 = r10.ao;\n r1 = r0.recordPostLayoutInformation(r1, r3);\n r0 = r10.f521o;\n r0 = r0.f3618b;\n r0 = r0.m1684a(r4);\n r0 = (android.support.v7.widget.fr) r0;\n if (r0 == 0) goto L_0x01ac;\n L_0x0074:\n r6 = r0.m3265b();\n if (r6 != 0) goto L_0x01ac;\n L_0x007a:\n r6 = r10.f521o;\n r6 = r6.m3860a(r0);\n r7 = r10.f521o;\n r7 = r7.m3860a(r3);\n if (r6 == 0) goto L_0x008a;\n L_0x0088:\n if (r0 == r3) goto L_0x01ac;\n L_0x008a:\n r8 = r10.f521o;\n r9 = 4;\n r8 = r8.m3855a(r0, r9);\n r9 = r10.f521o;\n r9.m3862b(r3, r1);\n r1 = r10.f521o;\n r9 = 8;\n r1 = r1.m3855a(r3, r9);\n if (r8 != 0) goto L_0x0180;\n L_0x00a0:\n r1 = r10.f520n;\n r6 = r1.m3326a();\n r1 = 0;\n L_0x00a7:\n if (r1 >= r6) goto L_0x0155;\n L_0x00a9:\n r7 = r10.f520n;\n r7 = r7.m3332b(r1);\n r7 = m261c(r7);\n if (r7 == r3) goto L_0x0151;\n L_0x00b5:\n r8 = r10.m263d(r7);\n r8 = (r8 > r4 ? 1 : (r8 == r4 ? 0 : -1));\n if (r8 != 0) goto L_0x0151;\n L_0x00bd:\n r0 = r10.f527u;\n if (r0 == 0) goto L_0x012a;\n L_0x00c1:\n r0 = r10.f527u;\n r0 = r0.f3434b;\n if (r0 == 0) goto L_0x012a;\n L_0x00c7:\n r0 = new java.lang.IllegalStateException;\n r1 = new java.lang.StringBuilder;\n r2 = \"Two different ViewHolders have the same stable ID. Stable IDs in your adapter MUST BE unique and SHOULD NOT change.\\n ViewHolder 1:\";\n r1.<init>(r2);\n r1 = r1.append(r7);\n r2 = \" \\n View Holder 2:\";\n r1 = r1.append(r2);\n r1 = r1.append(r3);\n r2 = r10.m276a();\n r1 = r1.append(r2);\n r1 = r1.toString();\n r0.<init>(r1);\n throw r0;\n L_0x00ee:\n r0 = r10.f519m;\n r1 = r0.f3661c;\n r1 = r1.isEmpty();\n if (r1 != 0) goto L_0x0121;\n L_0x00f8:\n r0 = r0.f3660b;\n r0 = r0.isEmpty();\n if (r0 != 0) goto L_0x0121;\n L_0x0100:\n r0 = 1;\n L_0x0101:\n if (r0 != 0) goto L_0x0117;\n L_0x0103:\n r0 = r10.f528v;\n r0 = r0.f2957M;\n r1 = r10.getWidth();\n if (r0 != r1) goto L_0x0117;\n L_0x010d:\n r0 = r10.f528v;\n r0 = r0.f2958N;\n r1 = r10.getHeight();\n if (r0 == r1) goto L_0x0123;\n L_0x0117:\n r0 = r10.f528v;\n r0.m3038c(r10);\n r10.m247F();\n goto L_0x002a;\n L_0x0121:\n r0 = 0;\n goto L_0x0101;\n L_0x0123:\n r0 = r10.f528v;\n r0.m3038c(r10);\n goto L_0x002a;\n L_0x012a:\n r0 = new java.lang.IllegalStateException;\n r1 = new java.lang.StringBuilder;\n r2 = \"Two different ViewHolders have the same change ID. This might happen due to inconsistent Adapter update events or if the LayoutManager lays out the same View multiple times.\\n ViewHolder 1:\";\n r1.<init>(r2);\n r1 = r1.append(r7);\n r2 = \" \\n View Holder 2:\";\n r1 = r1.append(r2);\n r1 = r1.append(r3);\n r2 = r10.m276a();\n r1 = r1.append(r2);\n r1 = r1.toString();\n r0.<init>(r1);\n throw r0;\n L_0x0151:\n r1 = r1 + 1;\n goto L_0x00a7;\n L_0x0155:\n r1 = \"RecyclerView\";\n r4 = new java.lang.StringBuilder;\n r5 = \"Problem while matching changed view holders with the newones. The pre-layout information for the change holder \";\n r4.<init>(r5);\n r0 = r4.append(r0);\n r4 = \" cannot be found but it is necessary for \";\n r0 = r0.append(r4);\n r0 = r0.append(r3);\n r3 = r10.m276a();\n r0 = r0.append(r3);\n r0 = r0.toString();\n android.util.Log.e(r1, r0);\n L_0x017b:\n r0 = r2 + -1;\n r2 = r0;\n goto L_0x004a;\n L_0x0180:\n r4 = 0;\n r0.m3262a(r4);\n if (r6 == 0) goto L_0x0189;\n L_0x0186:\n r10.m280a(r0);\n L_0x0189:\n if (r0 == r3) goto L_0x01a0;\n L_0x018b:\n if (r7 == 0) goto L_0x0190;\n L_0x018d:\n r10.m280a(r3);\n L_0x0190:\n r0.f3218h = r3;\n r10.m280a(r0);\n r4 = r10.f517k;\n r4.m3690b(r0);\n r4 = 0;\n r3.m3262a(r4);\n r3.f3219i = r0;\n L_0x01a0:\n r4 = r10.f512T;\n r0 = r4.animateChange(r0, r3, r8, r1);\n if (r0 == 0) goto L_0x017b;\n L_0x01a8:\n r10.m313m();\n goto L_0x017b;\n L_0x01ac:\n r0 = r10.f521o;\n r0.m3862b(r3, r1);\n goto L_0x017b;\n L_0x01b2:\n r0 = r10.f521o;\n r1 = r10.aF;\n r0.m3859a(r1);\n L_0x01b9:\n r0 = r10.f528v;\n r1 = r10.f517k;\n r0.m3033b(r1);\n r0 = r10.ao;\n r1 = r10.ao;\n r1 = r1.f3469f;\n r0.f3466c = r1;\n r0 = 0;\n r10.f505M = r0;\n r0 = r10.ao;\n r1 = 0;\n r0.f3473j = r1;\n r0 = r10.ao;\n r1 = 0;\n r0.f3474k = r1;\n r0 = r10.f528v;\n r1 = 0;\n r0.f2949E = r1;\n r0 = r10.f517k;\n r0 = r0.f3448b;\n if (r0 == 0) goto L_0x01e7;\n L_0x01e0:\n r0 = r10.f517k;\n r0 = r0.f3448b;\n r0.clear();\n L_0x01e7:\n r0 = r10.f528v;\n r0 = r0.f2954J;\n if (r0 == 0) goto L_0x01fc;\n L_0x01ed:\n r0 = r10.f528v;\n r1 = 0;\n r0.f2953I = r1;\n r0 = r10.f528v;\n r1 = 0;\n r0.f2954J = r1;\n r0 = r10.f517k;\n r0.m3688b();\n L_0x01fc:\n r0 = r10.f528v;\n r1 = r10.ao;\n r0.mo731a(r1);\n r0 = 1;\n r10.m289b(r0);\n r0 = 0;\n r10.m283a(r0);\n r0 = r10.f521o;\n r0.m3856a();\n r0 = r10.ax;\n r1 = 0;\n r0 = r0[r1];\n r1 = r10.ax;\n r2 = 1;\n r1 = r1[r2];\n r2 = r10.ax;\n r10.m256a(r2);\n r2 = r10.ax;\n r3 = 0;\n r2 = r2[r3];\n if (r2 != r0) goto L_0x022d;\n L_0x0226:\n r0 = r10.ax;\n r2 = 1;\n r0 = r0[r2];\n if (r0 == r1) goto L_0x025e;\n L_0x022d:\n r0 = 1;\n L_0x022e:\n if (r0 == 0) goto L_0x0235;\n L_0x0230:\n r0 = 0;\n r1 = 0;\n r10.m304f(r0, r1);\n L_0x0235:\n r0 = r10.ak;\n if (r0 == 0) goto L_0x0259;\n L_0x0239:\n r0 = r10.f527u;\n if (r0 == 0) goto L_0x0259;\n L_0x023d:\n r0 = r10.hasFocus();\n if (r0 == 0) goto L_0x0259;\n L_0x0243:\n r0 = r10.getDescendantFocusability();\n r1 = 393216; // 0x60000 float:5.51013E-40 double:1.942745E-318;\n if (r0 == r1) goto L_0x0259;\n L_0x024b:\n r0 = r10.getDescendantFocusability();\n r1 = 131072; // 0x20000 float:1.83671E-40 double:6.47582E-319;\n if (r0 != r1) goto L_0x0260;\n L_0x0253:\n r0 = r10.isFocused();\n if (r0 == 0) goto L_0x0260;\n L_0x0259:\n r10.m244C();\n goto L_0x000b;\n L_0x025e:\n r0 = 0;\n goto L_0x022e;\n L_0x0260:\n r0 = r10.isFocused();\n if (r0 != 0) goto L_0x028e;\n L_0x0266:\n r0 = r10.getFocusedChild();\n r1 = f491h;\n if (r1 == 0) goto L_0x0286;\n L_0x026e:\n r1 = r0.getParent();\n if (r1 == 0) goto L_0x027a;\n L_0x0274:\n r1 = r0.hasFocus();\n if (r1 != 0) goto L_0x0286;\n L_0x027a:\n r0 = r10.f520n;\n r0 = r0.m3326a();\n if (r0 != 0) goto L_0x028e;\n L_0x0282:\n r10.requestFocus();\n goto L_0x0259;\n L_0x0286:\n r1 = r10.f520n;\n r0 = r1.m3337d(r0);\n if (r0 == 0) goto L_0x0259;\n L_0x028e:\n r0 = 0;\n r1 = r10.ao;\n r2 = r1.f3476m;\n r4 = -1;\n r1 = (r2 > r4 ? 1 : (r2 == r4 ? 0 : -1));\n if (r1 == 0) goto L_0x02a7;\n L_0x0299:\n r1 = r10.f527u;\n r1 = r1.f3434b;\n if (r1 == 0) goto L_0x02a7;\n L_0x029f:\n r0 = r10.ao;\n r0 = r0.f3476m;\n r0 = r10.m249a(r0);\n L_0x02a7:\n r1 = 0;\n if (r0 == 0) goto L_0x02bc;\n L_0x02aa:\n r2 = r10.f520n;\n r3 = r0.f3211a;\n r2 = r2.m3337d(r3);\n if (r2 != 0) goto L_0x02bc;\n L_0x02b4:\n r2 = r0.f3211a;\n r2 = r2.hasFocusable();\n if (r2 != 0) goto L_0x02ea;\n L_0x02bc:\n r0 = r10.f520n;\n r0 = r0.m3326a();\n if (r0 <= 0) goto L_0x02c8;\n L_0x02c4:\n r1 = r10.m245D();\n L_0x02c8:\n if (r1 == 0) goto L_0x0259;\n L_0x02ca:\n r0 = r10.ao;\n r0 = r0.f3477n;\n r2 = (long) r0;\n r4 = -1;\n r0 = (r2 > r4 ? 1 : (r2 == r4 ? 0 : -1));\n if (r0 == 0) goto L_0x02ed;\n L_0x02d5:\n r0 = r10.ao;\n r0 = r0.f3477n;\n r0 = r1.findViewById(r0);\n if (r0 == 0) goto L_0x02ed;\n L_0x02df:\n r2 = r0.isFocusable();\n if (r2 == 0) goto L_0x02ed;\n L_0x02e5:\n r0.requestFocus();\n goto L_0x0259;\n L_0x02ea:\n r1 = r0.f3211a;\n goto L_0x02c8;\n L_0x02ed:\n r0 = r1;\n goto L_0x02e5;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: android.support.v7.widget.RecyclerView.B():void\");\n }", "title": "" }, { "docid": "36b86d91ad99433081302c5a1bb85c05", "score": "0.5673157", "text": "protected static void m1043a(android.content.Context r2) {\n /* JADX: method processing error */\n/*\nError: java.lang.NullPointerException\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.searchTryCatchDominators(ProcessTryCatchRegions.java:75)\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.process(ProcessTryCatchRegions.java:45)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.postProcessRegions(RegionMakerVisitor.java:63)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.visit(RegionMakerVisitor.java:58)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:31)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:17)\n\tat jadx.core.ProcessClass.process(ProcessClass.java:34)\n\tat jadx.core.ProcessClass.processDependencies(ProcessClass.java:56)\n\tat jadx.core.ProcessClass.process(ProcessClass.java:39)\n\tat jadx.api.JadxDecompiler.processClass(JadxDecompiler.java:282)\n\tat jadx.api.JavaClass.decompile(JavaClass.java:62)\n\tat jadx.api.JadxDecompiler.lambda$appendSourcesSave$0(JadxDecompiler.java:200)\n\tat jadx.api.JadxDecompiler$$Lambda$8/318857719.run(Unknown Source)\n*/\n /*\n if (r2 != 0) goto L_0x0003;\n L_0x0002:\n return;\n L_0x0003:\n r0 = r2.getPackageManager();\t Catch:{ NameNotFoundException -> 0x0027 }\n r2 = r2.getPackageName();\t Catch:{ NameNotFoundException -> 0x0027 }\n r1 = 128; // 0x80 float:1.794E-43 double:6.32E-322;\t Catch:{ NameNotFoundException -> 0x0027 }\n r2 = r0.getApplicationInfo(r2, r1);\t Catch:{ NameNotFoundException -> 0x0027 }\n if (r2 == 0) goto L_0x0027;\n L_0x0013:\n r0 = r2.metaData;\n if (r0 != 0) goto L_0x0018;\n L_0x0017:\n goto L_0x0027;\n L_0x0018:\n r0 = f867b;\n if (r0 != 0) goto L_0x0027;\n L_0x001c:\n r2 = r2.metaData;\n r0 = \"com.facebook.sdk.WebDialogTheme\";\n r2 = r2.getInt(r0);\n com.facebook.internal.C0485X.m1042a(r2);\n L_0x0027:\n return;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.facebook.internal.X.a(android.content.Context):void\");\n }", "title": "" }, { "docid": "69d59f451c32b2543380d8661f870dbd", "score": "0.5666474", "text": "private boolean p(final int r12, int r13, java.lang.String r14) {\n /*\n r11 = this;\n r5 = 2;\n r10 = 1;\n r0 = 4;\n if (r12 != r0) goto L_0x0008;\n L_0x0005:\n switch(r13) {\n case -311: goto L_0x00a2;\n case -310: goto L_0x00a2;\n case -205: goto L_0x0155;\n case -140: goto L_0x019d;\n case -100: goto L_0x0127;\n case -75: goto L_0x007b;\n case -72: goto L_0x0072;\n case -33: goto L_0x0093;\n case -32: goto L_0x0080;\n case -9: goto L_0x0069;\n case -6: goto L_0x00a2;\n case -4: goto L_0x001b;\n case -3: goto L_0x001b;\n case -1: goto L_0x0055;\n default: goto L_0x0008;\n };\n L_0x0008:\n r0 = com.tencent.mm.plugin.c.a.imw;\n r0 = r0.a(r11, r12, r13, r14);\n if (r0 == 0) goto L_0x01ad;\n L_0x0010:\n r0 = r11.uUx;\n if (r0 == 0) goto L_0x0019;\n L_0x0014:\n r0 = r11.uUx;\n r0.dismiss();\n L_0x0019:\n r0 = r10;\n L_0x001a:\n return r0;\n L_0x001b:\n r0 = r11.uYD;\n if (r0 > 0) goto L_0x002e;\n L_0x001f:\n r0 = com.tencent.mm.R.l.efc;\n r1 = com.tencent.mm.R.l.ewN;\n com.tencent.mm.ui.base.g.h(r11, r0, r1);\n r0 = r11.uYD;\n r0 = r0 + 1;\n r11.uYD = r0;\n L_0x002c:\n r0 = r10;\n goto L_0x001a;\n L_0x002e:\n r0 = com.tencent.mm.R.l.efd;\n r1 = r11.getString(r0);\n r0 = com.tencent.mm.R.l.ewN;\n r2 = r11.getString(r0);\n r0 = com.tencent.mm.R.l.efe;\n r3 = r11.getString(r0);\n r0 = com.tencent.mm.R.l.dGs;\n r4 = r11.getString(r0);\n r5 = new com.tencent.mm.ui.account.LoginHistoryUI$7;\n r5.<init>(r11);\n r6 = new com.tencent.mm.ui.account.LoginHistoryUI$8;\n r6.<init>(r11);\n r0 = r11;\n com.tencent.mm.ui.base.g.a(r0, r1, r2, r3, r4, r5, r6);\n goto L_0x002c;\n L_0x0055:\n r0 = com.tencent.mm.u.ap.vd();\n r0 = r0.BR();\n r1 = 5;\n if (r0 != r1) goto L_0x0069;\n L_0x0060:\n r0 = com.tencent.mm.R.l.eDp;\n r1 = com.tencent.mm.R.l.eDo;\n com.tencent.mm.ui.base.g.h(r11, r0, r1);\n r0 = r10;\n goto L_0x001a;\n L_0x0069:\n r0 = com.tencent.mm.R.l.ewM;\n r1 = com.tencent.mm.R.l.ewN;\n com.tencent.mm.ui.base.g.h(r11, r0, r1);\n r0 = r10;\n goto L_0x001a;\n L_0x0072:\n r0 = com.tencent.mm.R.l.eJZ;\n r1 = com.tencent.mm.R.l.dIO;\n com.tencent.mm.ui.base.g.h(r11, r0, r1);\n r0 = r10;\n goto L_0x001a;\n L_0x007b:\n com.tencent.mm.platformtools.m.bo(r11);\n r0 = r10;\n goto L_0x001a;\n L_0x0080:\n r0 = com.tencent.mm.R.l.dOh;\n r0 = r11.getString(r0);\n r1 = \"\";\n r2 = new com.tencent.mm.ui.account.LoginHistoryUI$9;\n r2.<init>(r11);\n com.tencent.mm.ui.base.g.a(r11, r0, r1, r2);\n r0 = r10;\n goto L_0x001a;\n L_0x0093:\n r0 = com.tencent.mm.R.l.dOf;\n r1 = com.tencent.mm.R.l.btr;\n r2 = new com.tencent.mm.ui.account.LoginHistoryUI$10;\n r2.<init>(r11);\n com.tencent.mm.ui.base.g.a(r11, r0, r1, r2);\n r0 = r10;\n goto L_0x001a;\n L_0x00a2:\n r0 = com.tencent.mm.u.ap.vd();\n r1 = 701; // 0x2bd float:9.82E-43 double:3.463E-321;\n r0.a(r1, r11);\n r0 = r11.uUx;\n if (r0 != 0) goto L_0x00d8;\n L_0x00af:\n r1 = com.tencent.mm.R.l.eKg;\n r0 = r11.uYk;\n r2 = r0.uYX;\n r0 = r11.uYk;\n r3 = r0.uYW;\n r0 = r11.uYk;\n r4 = r0.uYU;\n r0 = r11.uYk;\n r5 = r0.uYV;\n r6 = new com.tencent.mm.ui.account.LoginHistoryUI$11;\n r6.<init>(r11, r12);\n r7 = 0;\n r8 = new com.tencent.mm.ui.account.LoginHistoryUI$12;\n r8.<init>(r11);\n r9 = r11.uYk;\n r0 = r11;\n r0 = com.tencent.mm.ui.applet.SecurityImage.a.a(r0, r1, r2, r3, r4, r5, r6, r7, r8, r9);\n r11.uUx = r0;\n L_0x00d5:\n r0 = r10;\n goto L_0x001a;\n L_0x00d8:\n r0 = \"MicroMsg.LoginHistoryUI\";\n r1 = new java.lang.StringBuilder;\n r2 = \"imgSid:\";\n r1.<init>(r2);\n r2 = r11.uYk;\n r2 = r2.uYU;\n r1 = r1.append(r2);\n r2 = \" img len\";\n r1 = r1.append(r2);\n r2 = r11.uYk;\n r2 = r2.uYW;\n r2 = r2.length;\n r1 = r1.append(r2);\n r2 = \" \";\n r1 = r1.append(r2);\n r2 = com.tencent.mm.compatible.util.g.sd();\n r1 = r1.append(r2);\n r1 = r1.toString();\n com.tencent.mm.sdk.platformtools.w.d(r0, r1);\n r0 = r11.uUx;\n r1 = r11.uYk;\n r1 = r1.uYX;\n r2 = r11.uYk;\n r2 = r2.uYW;\n r3 = r11.uYk;\n r3 = r3.uYU;\n r4 = r11.uYk;\n r4 = r4.uYV;\n r0.a(r1, r2, r3, r4);\n goto L_0x00d5;\n L_0x0127:\n com.tencent.mm.u.ap.hold();\n r0 = com.tencent.mm.u.ap.uI();\n r0 = android.text.TextUtils.isEmpty(r0);\n if (r0 == 0) goto L_0x0150;\n L_0x0134:\n r0 = com.tencent.mm.R.l.ezi;\n r0 = com.tencent.mm.bg.a.V(r11, r0);\n L_0x013a:\n r1 = com.tencent.mm.R.l.dIO;\n r1 = r11.getString(r1);\n r2 = new com.tencent.mm.ui.account.LoginHistoryUI$13;\n r2.<init>(r11);\n r3 = new com.tencent.mm.ui.account.LoginHistoryUI$14;\n r3.<init>(r11);\n com.tencent.mm.ui.base.g.a(r11, r0, r1, r2, r3);\n r0 = r10;\n goto L_0x001a;\n L_0x0150:\n r0 = com.tencent.mm.u.ap.uI();\n goto L_0x013a;\n L_0x0155:\n r0 = \"MicroMsg.LoginHistoryUI\";\n r1 = \"summerphone MM_ERR_QQ_OK_NEED_MOBILE authTicket[%s], closeShowStyle[%s]\";\n r2 = new java.lang.Object[r5];\n r3 = 0;\n r4 = r11.oVg;\n r4 = com.tencent.mm.sdk.platformtools.bg.Qj(r4);\n r2[r3] = r4;\n r3 = r11.uYn;\n r2[r10] = r3;\n com.tencent.mm.sdk.platformtools.w.i(r0, r1, r2);\n r0 = r11.uYk;\n com.tencent.mm.ui.account.f.a(r0);\n r0 = new android.content.Intent;\n r0.<init>();\n r1 = \"auth_ticket\";\n r2 = r11.oVg;\n r0.putExtra(r1, r2);\n r1 = \"binded_mobile\";\n r2 = r11.uYm;\n r0.putExtra(r1, r2);\n r1 = \"close_safe_device_style\";\n r2 = r11.uYn;\n r0.putExtra(r1, r2);\n r1 = \"from_source\";\n r0.putExtra(r1, r5);\n r1 = com.tencent.mm.plugin.c.a.imv;\n r1.f(r11, r0);\n r0 = r10;\n goto L_0x001a;\n L_0x019d:\n r0 = r11.fWY;\n r0 = com.tencent.mm.sdk.platformtools.bg.mA(r0);\n if (r0 != 0) goto L_0x01aa;\n L_0x01a5:\n r0 = r11.fWY;\n com.tencent.mm.platformtools.m.j(r11, r14, r0);\n L_0x01aa:\n r0 = r10;\n goto L_0x001a;\n L_0x01ad:\n r0 = new com.tencent.mm.pluginsdk.j.p;\n r0.<init>(r12, r13, r14);\n r1 = r11.uYs;\n r0 = r1.a(r11, r0);\n goto L_0x001a;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.tencent.mm.ui.account.LoginHistoryUI.p(int, int, java.lang.String):boolean\");\n }", "title": "" }, { "docid": "09f8d6744ef3fb7b1451b9e43b3a89a0", "score": "0.566461", "text": "private void wholestagecodegen_init_4() {\n/* 1310 */ this.project_rowWriter1 = new org.apache.spark.sql.catalyst.expressions.codegen.UnsafeRowWriter(project_holder1, 2);\n/* 1311 */ this.bhj_broadcast3 = (org.apache.spark.broadcast.TorrentBroadcast) references[13];\n/* 1312 */\n/* 1313 */ bhj_relation3 = ((org.apache.spark.sql.execution.joins.LongHashedRelation) bhj_broadcast3.value()).asReadOnlyCopy();\n/* 1314 */ incPeakExecutionMemory(bhj_relation3.estimatedSize());\n/* 1315 */\n/* 1316 */ this.bhj_numOutputRows3 = (org.apache.spark.sql.execution.metric.SQLMetric) references[14];\n/* 1317 */ bhj_result3 = new UnsafeRow(4);\n/* 1318 */ this.bhj_holder3 = new org.apache.spark.sql.catalyst.expressions.codegen.BufferHolder(bhj_result3, 32);\n/* 1319 */ this.bhj_rowWriter3 = new org.apache.spark.sql.catalyst.expressions.codegen.UnsafeRowWriter(bhj_holder3, 4);\n/* 1320 */ project_result2 = new UnsafeRow(2);\n/* 1321 */ this.project_holder2 = new org.apache.spark.sql.catalyst.expressions.codegen.BufferHolder(project_result2, 32);\n/* 1322 */ this.project_rowWriter2 = new org.apache.spark.sql.catalyst.expressions.codegen.UnsafeRowWriter(project_holder2, 2);\n/* 1323 */ this.bhj_broadcast4 = (org.apache.spark.broadcast.TorrentBroadcast) references[15];\n/* 1324 */\n/* 1325 */ }", "title": "" }, { "docid": "15dd6d39486ac26bdef051f17ed033c8", "score": "0.5664551", "text": "public interface l {\n\n /* compiled from: KotlinClassFinder.kt */\n public static abstract class a {\n\n /* compiled from: KotlinClassFinder.kt */\n public static final class a extends a {\n private final byte[] content;\n\n /* JADX WARNING: Missing block: B:4:0x0010, code skipped:\n if (kotlin.jvm.internal.i.y(r1.content, ((kotlin.reflect.jvm.internal.impl.load.kotlin.l.a.a) r2).content) != false) goto L_0x0015;\n */\n public boolean equals(java.lang.Object r2) {\n /*\n r1 = this;\n if (r1 == r2) goto L_0x0015;\n L_0x0002:\n r0 = r2 instanceof kotlin.reflect.jvm.internal.impl.load.kotlin.l.a.a;\n if (r0 == 0) goto L_0x0013;\n L_0x0006:\n r2 = (kotlin.reflect.jvm.internal.impl.load.kotlin.l.a.a) r2;\n r0 = r1.content;\n r2 = r2.content;\n r2 = kotlin.jvm.internal.i.y(r0, r2);\n if (r2 == 0) goto L_0x0013;\n L_0x0012:\n goto L_0x0015;\n L_0x0013:\n r2 = 0;\n return r2;\n L_0x0015:\n r2 = 1;\n return r2;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: kotlin.reflect.jvm.internal.impl.load.kotlin.l$a$a.equals(java.lang.Object):boolean\");\n }\n\n public int hashCode() {\n byte[] bArr = this.content;\n return bArr != null ? Arrays.hashCode(bArr) : 0;\n }\n\n public String toString() {\n StringBuilder stringBuilder = new StringBuilder();\n stringBuilder.append(\"ClassFileContent(content=\");\n stringBuilder.append(Arrays.toString(this.content));\n stringBuilder.append(\")\");\n return stringBuilder.toString();\n }\n\n public final byte[] byJ() {\n return this.content;\n }\n }\n\n /* compiled from: KotlinClassFinder.kt */\n public static final class b extends a {\n private final n fmc;\n\n /* JADX WARNING: Missing block: B:4:0x0010, code skipped:\n if (kotlin.jvm.internal.i.y(r1.fmc, ((kotlin.reflect.jvm.internal.impl.load.kotlin.l.a.b) r2).fmc) != false) goto L_0x0015;\n */\n public boolean equals(java.lang.Object r2) {\n /*\n r1 = this;\n if (r1 == r2) goto L_0x0015;\n L_0x0002:\n r0 = r2 instanceof kotlin.reflect.jvm.internal.impl.load.kotlin.l.a.b;\n if (r0 == 0) goto L_0x0013;\n L_0x0006:\n r2 = (kotlin.reflect.jvm.internal.impl.load.kotlin.l.a.b) r2;\n r0 = r1.fmc;\n r2 = r2.fmc;\n r2 = kotlin.jvm.internal.i.y(r0, r2);\n if (r2 == 0) goto L_0x0013;\n L_0x0012:\n goto L_0x0015;\n L_0x0013:\n r2 = 0;\n return r2;\n L_0x0015:\n r2 = 1;\n return r2;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: kotlin.reflect.jvm.internal.impl.load.kotlin.l$a$b.equals(java.lang.Object):boolean\");\n }\n\n public int hashCode() {\n n nVar = this.fmc;\n return nVar != null ? nVar.hashCode() : 0;\n }\n\n public String toString() {\n StringBuilder stringBuilder = new StringBuilder();\n stringBuilder.append(\"KotlinClass(kotlinJvmBinaryClass=\");\n stringBuilder.append(this.fmc);\n stringBuilder.append(\")\");\n return stringBuilder.toString();\n }\n\n public b(n nVar) {\n i.f(nVar, \"kotlinJvmBinaryClass\");\n super();\n this.fmc = nVar;\n }\n\n public final n byK() {\n return this.fmc;\n }\n }\n\n private a() {\n }\n\n public /* synthetic */ a(f fVar) {\n this();\n }\n\n public final n byI() {\n b bVar = (b) (!(this instanceof b) ? null : this);\n return bVar != null ? bVar.byK() : null;\n }\n }\n\n a a(g gVar);\n\n a a(kotlin.reflect.jvm.internal.impl.name.a aVar);\n}", "title": "" }, { "docid": "67e97f4d21962a90ad7c8ff306ccc07d", "score": "0.5658743", "text": "private static int m4833b(java.lang.String r3, int r4, int r5) {\n /*\n r0 = r4;\n L_0x0001:\n if (r0 >= r5) goto L_0x001a;\n L_0x0003:\n r1 = r3.charAt(r0);\n switch(r1) {\n case 58: goto L_0x001b;\n case 91: goto L_0x000d;\n default: goto L_0x000a;\n };\n L_0x000a:\n r0 = r0 + 1;\n goto L_0x0001;\n L_0x000d:\n r0 = r0 + 1;\n if (r0 >= r5) goto L_0x000a;\n L_0x0011:\n r1 = r3.charAt(r0);\n r2 = 93;\n if (r1 != r2) goto L_0x000d;\n L_0x0019:\n goto L_0x000a;\n L_0x001a:\n r0 = r5;\n L_0x001b:\n return r0;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: okhttp3.HttpUrl.Builder.b(java.lang.String, int, int):int\");\n }", "title": "" }, { "docid": "9a5615a6e3aa14f5014827a45729ce18", "score": "0.5657657", "text": "@Test(timeout = 4000)\n public void test081() throws Throwable {\n ClassWriter classWriter0 = new ClassWriter(233);\n String[] stringArray0 = new String[3];\n classWriter0.visitOuterClass(\"X@z}6;);l.\", \"y9vk1XS\", \"y9vk1XS\");\n stringArray0[0] = \"H1|&_0.X\";\n int int0 = MethodWriter.CHOP_FRAME;\n stringArray0[1] = \"[$|CNil )josn+M*Z;-\";\n classWriter0.newFieldItem(\"t|s@*?S&r:\", \"_y+b\", \"yBv(vfp;MG\");\n stringArray0[2] = \"X@z}6;);l.\";\n MethodWriter methodWriter0 = new MethodWriter(classWriter0, (-5), \"H1|&_0.X\", \"yBv(vfp;MG\", \"X@z}6;);l.\", stringArray0, false, false);\n classWriter0.lastMethod = methodWriter0;\n classWriter0.newMethodItem(\"{Nt\", \"r* u\", \"H1|&_0.X\", false);\n ByteVector byteVector0 = classWriter0.pool;\n classWriter0.lastMethod.visitMethodInsn(1, \"[$|CNil )josn+M*Z;-\", \"RPChEON\", \"X@z}6;);l.\");\n methodWriter0.visitAnnotationDefault();\n Label label0 = new Label();\n Label label1 = label0.next;\n classWriter0.lastMethod.visitTryCatchBlock((Label) null, (Label) null, label0, \"EFFFFFFFFGGFFFGGFFFEEFGFGFEEEEEEEEEEEEEEEEEEEEDEDEDDDDDCDCDEEEEEEEEEEEEEEEEEEEEBABABBBBDCFFFGGGEDCDCDCDCDCDCDCDCDCDCEEEEDDDDDDDCDCDCEFEFDDEEFFDEDEEEBDDBBDDDDDDCCCCCCCCEFEDDDCDCDEEEEEEEEEEFEEEEEEDDEEDDEE\");\n stringArray0[2] = \"rc\";\n methodWriter0.visitMethodInsn((-5), \"H1|&_0.X\", \"wf>\", \"l_L\");\n // Undeclared exception!\n try { \n methodWriter0.put(byteVector0);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"org.objectweb.asm.jip.MethodWriter\", e);\n }\n }", "title": "" }, { "docid": "fd0a92a4ca3ece314703a46dbd1a1c6d", "score": "0.56553817", "text": "public final void m25301a(java.lang.Object r8, com.fasterxml.jackson.core.JsonGenerator r9, com.fasterxml.jackson.databind.SerializerProvider r10) {\n /* JADX: method processing error */\n/*\nError: jadx.core.utils.exceptions.JadxRuntimeException: SSA rename variables already executed\n\tat jadx.core.dex.visitors.ssa.SSATransform.renameVariables(SSATransform.java:120)\n\tat jadx.core.dex.visitors.ssa.SSATransform.process(SSATransform.java:52)\n\tat jadx.core.dex.visitors.ssa.SSATransform.visit(SSATransform.java:42)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:31)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:17)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:14)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:14)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:14)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:14)\n\tat jadx.core.ProcessClass.process(ProcessClass.java:37)\n\tat jadx.core.ProcessClass.processDependencies(ProcessClass.java:59)\n\tat jadx.core.ProcessClass.process(ProcessClass.java:42)\n\tat jadx.api.JadxDecompiler.processClass(JadxDecompiler.java:306)\n\tat jadx.api.JavaClass.decompile(JavaClass.java:62)\n\tat jadx.api.JadxDecompiler$1.run(JadxDecompiler.java:199)\n*/\n /*\n r7 = this;\n r8 = (com.facebook.tagging.graphql.protocol.FetchGroupMembersToMentionQueryModels.FetchGroupMembersToMentionQueryModel.GroupMentionsModel.NonMemberSectionModel) r8;\n r2 = 0;\n r0 = r8.w_();\n if (r0 != 0) goto L_0x0035;\n L_0x0009:\n r0 = new com.facebook.flatbuffers.FlatBufferBuilder;\n r1 = 128; // 0x80 float:1.794E-43 double:6.32E-322;\n r0.<init>(r1);\n r1 = r8.m25302a(r0);\n r0.d(r1);\n r0 = r0.e();\n r1 = java.nio.ByteBuffer.wrap(r0);\n r0 = 0;\n r1.position(r0);\n r0 = new com.facebook.flatbuffers.MutableFlatBuffer;\n r4 = 1;\n r3 = r2;\n r5 = r2;\n r0.<init>(r1, r2, r3, r4, r5);\n r6 = r0.a;\n r1 = r6;\n r1 = com.facebook.flatbuffers.FlatBuffer.a(r1);\n r8.a(r0, r1);\n L_0x0035:\n r0 = r8.w_();\n r1 = r8.u_();\n com.facebook.tagging.graphql.protocol.FetchGroupMembersToMentionQueryParsers.FetchGroupMembersToMentionQueryParser.GroupMentionsParser.NonMemberSectionParser.m25338a(r0, r1, r9, r10);\n return;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.facebook.tagging.graphql.protocol.FetchGroupMembersToMentionQueryModels.FetchGroupMembersToMentionQueryModel.GroupMentionsModel.NonMemberSectionModel.Serializer.a(java.lang.Object, com.fasterxml.jackson.core.JsonGenerator, com.fasterxml.jackson.databind.SerializerProvider):void\");\n }", "title": "" }, { "docid": "6a533be6c2a0e47783305c2aa7739482", "score": "0.5651779", "text": "@Test(timeout = 4000)\n public void test104() throws Throwable {\n ClassWriter classWriter0 = new ClassWriter(251);\n classWriter0.addType(\"W\");\n String[] stringArray0 = new String[3];\n stringArray0[0] = \"/7|z!G?OZKgA/VO|=Qo\";\n stringArray0[1] = \"/7|z!G?OZKgA/VO|=Qo\";\n Item[] itemArray0 = new Item[4];\n Item item0 = classWriter0.key3;\n itemArray0[0] = item0;\n Item item1 = classWriter0.newInteger(20);\n itemArray0[1] = item1;\n Integer integer0 = new Integer(20);\n Item item2 = classWriter0.newConstItem(integer0);\n itemArray0[2] = item2;\n Item item3 = classWriter0.key3;\n itemArray0[3] = item3;\n classWriter0.typeTable = itemArray0;\n stringArray0[2] = \"X@z}6;);l.\";\n MethodWriter methodWriter0 = new MethodWriter(classWriter0, 1, \"W\", \"X@z}6;);l.\", \"X@z}6;);l.\", stringArray0, true, false);\n Label label0 = new Label();\n Label label1 = new Label();\n methodWriter0.visitTryCatchBlock(label1, label0, label1, \"(DKM6 ;1vnYW5~0U\");\n methodWriter0.visitLocalVariable(\"6Imqei/_ybv+t-\", \"6Imqei/_ybv+t-\", \"*[/-ijWy:GbCwi\", label0, label0, 1);\n methodWriter0.visitLdcInsn(\"W\");\n ByteVector byteVector0 = classWriter0.pool;\n methodWriter0.put(byteVector0);\n Object object0 = new Object();\n // Undeclared exception!\n try { \n methodWriter0.visitLdcInsn(byteVector0);\n fail(\"Expecting exception: IllegalArgumentException\");\n \n } catch(IllegalArgumentException e) {\n //\n // value org.objectweb.asm.jip.ByteVector@1\n //\n verifyException(\"org.objectweb.asm.jip.ClassWriter\", e);\n }\n }", "title": "" }, { "docid": "6d81994d857eb49bae1bc4a5bf94c001", "score": "0.56503075", "text": "public boolean a(com.xiaomi.xmpush.thrift.f r7) {\n /*\n r6 = this;\n r0 = 0;\n if (r7 != 0) goto L_0x0004;\n L_0x0003:\n return r0;\n L_0x0004:\n r1 = r6.b();\n r2 = r7.b();\n if (r1 != 0) goto L_0x0010;\n L_0x000e:\n if (r2 == 0) goto L_0x0020;\n L_0x0010:\n if (r1 == 0) goto L_0x0132;\n L_0x0012:\n if (r2 != 0) goto L_0x0015;\n L_0x0014:\n return r0;\n L_0x0015:\n r1 = r6.a;\n r2 = r7.a;\n r1 = r1.equals(r2);\n if (r1 != 0) goto L_0x0020;\n L_0x001f:\n return r0;\n L_0x0020:\n r1 = r6.c();\n r2 = r7.c();\n if (r1 != 0) goto L_0x002c;\n L_0x002a:\n if (r2 == 0) goto L_0x003c;\n L_0x002c:\n if (r1 == 0) goto L_0x0132;\n L_0x002e:\n if (r2 != 0) goto L_0x0031;\n L_0x0030:\n return r0;\n L_0x0031:\n r1 = r6.b;\n r2 = r7.b;\n r1 = r1.equals(r2);\n if (r1 != 0) goto L_0x003c;\n L_0x003b:\n return r0;\n L_0x003c:\n r1 = r6.e();\n r2 = r7.e();\n if (r1 != 0) goto L_0x0048;\n L_0x0046:\n if (r2 == 0) goto L_0x0058;\n L_0x0048:\n if (r1 == 0) goto L_0x0132;\n L_0x004a:\n if (r2 != 0) goto L_0x004d;\n L_0x004c:\n return r0;\n L_0x004d:\n r1 = r6.c;\n r2 = r7.c;\n r1 = r1.equals(r2);\n if (r1 != 0) goto L_0x0058;\n L_0x0057:\n return r0;\n L_0x0058:\n r1 = r6.f();\n r2 = r7.f();\n if (r1 != 0) goto L_0x0064;\n L_0x0062:\n if (r2 == 0) goto L_0x0072;\n L_0x0064:\n if (r1 == 0) goto L_0x0132;\n L_0x0066:\n if (r2 != 0) goto L_0x0069;\n L_0x0068:\n return r0;\n L_0x0069:\n r1 = r6.d;\n r3 = r7.d;\n r5 = (r1 > r3 ? 1 : (r1 == r3 ? 0 : -1));\n if (r5 == 0) goto L_0x0072;\n L_0x0071:\n return r0;\n L_0x0072:\n r1 = r6.h();\n r2 = r7.h();\n if (r1 != 0) goto L_0x007e;\n L_0x007c:\n if (r2 == 0) goto L_0x008c;\n L_0x007e:\n if (r1 == 0) goto L_0x0132;\n L_0x0080:\n if (r2 != 0) goto L_0x0083;\n L_0x0082:\n return r0;\n L_0x0083:\n r1 = r6.e;\n r3 = r7.e;\n r5 = (r1 > r3 ? 1 : (r1 == r3 ? 0 : -1));\n if (r5 == 0) goto L_0x008c;\n L_0x008b:\n return r0;\n L_0x008c:\n r1 = r6.i();\n r2 = r7.i();\n if (r1 != 0) goto L_0x0098;\n L_0x0096:\n if (r2 == 0) goto L_0x00a4;\n L_0x0098:\n if (r1 == 0) goto L_0x0132;\n L_0x009a:\n if (r2 != 0) goto L_0x009d;\n L_0x009c:\n return r0;\n L_0x009d:\n r1 = r6.f;\n r2 = r7.f;\n if (r1 == r2) goto L_0x00a4;\n L_0x00a3:\n return r0;\n L_0x00a4:\n r1 = r6.j();\n r2 = r7.j();\n if (r1 != 0) goto L_0x00b0;\n L_0x00ae:\n if (r2 == 0) goto L_0x00c0;\n L_0x00b0:\n if (r1 == 0) goto L_0x0132;\n L_0x00b2:\n if (r2 != 0) goto L_0x00b5;\n L_0x00b4:\n return r0;\n L_0x00b5:\n r1 = r6.g;\n r2 = r7.g;\n r1 = r1.equals(r2);\n if (r1 != 0) goto L_0x00c0;\n L_0x00bf:\n return r0;\n L_0x00c0:\n r1 = r6.l();\n r2 = r7.l();\n if (r1 != 0) goto L_0x00cc;\n L_0x00ca:\n if (r2 == 0) goto L_0x00dc;\n L_0x00cc:\n if (r1 == 0) goto L_0x0132;\n L_0x00ce:\n if (r2 != 0) goto L_0x00d1;\n L_0x00d0:\n return r0;\n L_0x00d1:\n r1 = r6.h;\n r2 = r7.h;\n r1 = r1.equals(r2);\n if (r1 != 0) goto L_0x00dc;\n L_0x00db:\n return r0;\n L_0x00dc:\n r1 = r6.n();\n r2 = r7.n();\n if (r1 != 0) goto L_0x00e8;\n L_0x00e6:\n if (r2 == 0) goto L_0x00f8;\n L_0x00e8:\n if (r1 == 0) goto L_0x0132;\n L_0x00ea:\n if (r2 != 0) goto L_0x00ed;\n L_0x00ec:\n return r0;\n L_0x00ed:\n r1 = r6.i;\n r2 = r7.i;\n r1 = r1.equals(r2);\n if (r1 != 0) goto L_0x00f8;\n L_0x00f7:\n return r0;\n L_0x00f8:\n r1 = r6.o();\n r2 = r7.o();\n if (r1 != 0) goto L_0x0104;\n L_0x0102:\n if (r2 == 0) goto L_0x0114;\n L_0x0104:\n if (r1 == 0) goto L_0x0132;\n L_0x0106:\n if (r2 != 0) goto L_0x0109;\n L_0x0108:\n return r0;\n L_0x0109:\n r1 = r6.j;\n r2 = r7.j;\n r1 = r1.equals(r2);\n if (r1 != 0) goto L_0x0114;\n L_0x0113:\n return r0;\n L_0x0114:\n r1 = r6.q();\n r2 = r7.q();\n if (r1 != 0) goto L_0x0120;\n L_0x011e:\n if (r2 == 0) goto L_0x0130;\n L_0x0120:\n if (r1 == 0) goto L_0x0132;\n L_0x0122:\n if (r2 != 0) goto L_0x0125;\n L_0x0124:\n return r0;\n L_0x0125:\n r1 = r6.k;\n r7 = r7.k;\n r7 = r1.equals(r7);\n if (r7 != 0) goto L_0x0130;\n L_0x012f:\n return r0;\n L_0x0130:\n r7 = 1;\n return r7;\n L_0x0132:\n return r0;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.xiaomi.xmpush.thrift.f.a(com.xiaomi.xmpush.thrift.f):boolean\");\n }", "title": "" }, { "docid": "42820d8dc34cd10ae04303a0d54cfed2", "score": "0.56194246", "text": "@Test(timeout = 4000)\n public void test31() throws Throwable {\n ClassWriter classWriter0 = new ClassWriter(65535);\n String[] stringArray0 = new String[3];\n stringArray0[0] = \"SNh/u\";\n stringArray0[1] = \"SNh/u\";\n stringArray0[2] = \"SNh/u\";\n MethodWriter methodWriter0 = new MethodWriter(classWriter0, 66, \"SNh/u\", \"SNh/u\", \"SNh/u\", stringArray0, false, false);\n methodWriter0.classReaderLength = 65535;\n methodWriter0.visitCode();\n methodWriter0.visitVarInsn(1411, 1);\n Object[] objectArray0 = new Object[5];\n Object object0 = new Object();\n Object object1 = new Object();\n methodWriter0.visitFrame(66, 1, stringArray0, 1411, objectArray0);\n Label label0 = new Label();\n Label label1 = label0.getFirst();\n methodWriter0.visitTryCatchBlock(label1, label0, label0, \"org.objectweb.asm.jip.ClassAdapter\");\n methodWriter0.visitTryCatchBlock(label0, label1, label0, \"Code\");\n assertSame(label1, label0);\n }", "title": "" }, { "docid": "b365eead85a727060cfe14955a29fa19", "score": "0.56180847", "text": "private int i(String var1_1) {\n block6: {\n block4: {\n block5: {\n var2_2 = var1_1.hashCode();\n var3_3 = 1602;\n var4_4 = 1;\n if (var2_2 == var3_3) break block4;\n var3_3 = 1629;\n if (var2_2 == var3_3) break block5;\n var3_3 = 1722;\n if (var2_2 != var3_3 || (var6_8 = (int)var1_1.equals(var5_5 = \"60\")) == 0) ** GOTO lbl-1000\n var6_8 = var4_4;\n break block6;\n }\n var5_6 = \"30\";\n var6_8 = (int)var1_1.equals(var5_6);\n if (var6_8 == 0) ** GOTO lbl-1000\n var6_8 = 0;\n var1_1 = null;\n break block6;\n }\n var5_7 = \"24\";\n var6_8 = var1_1.equals(var5_7);\n if (var6_8 != 0) {\n var6_8 = 2;\n } else lbl-1000:\n // 3 sources\n\n {\n var6_8 = -1;\n }\n }\n if (var6_8 != 0) {\n if (var6_8 != var4_4) {\n return 2131231440;\n }\n return 2131231445;\n }\n return 2131231442;\n }", "title": "" }, { "docid": "a01b3b70c4f5cab04b72fbfb9f9adf54", "score": "0.56133664", "text": "@javax.annotation.Nullable\n private com.facebook.graphql.enums.GraphQLObjectType m13139k() {\n /* JADX: method processing error */\n/*\nError: jadx.core.utils.exceptions.JadxRuntimeException: SSA rename variables already executed\n\tat jadx.core.dex.visitors.ssa.SSATransform.renameVariables(SSATransform.java:120)\n\tat jadx.core.dex.visitors.ssa.SSATransform.process(SSATransform.java:52)\n\tat jadx.core.dex.visitors.ssa.SSATransform.visit(SSATransform.java:42)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:31)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:17)\n\tat jadx.core.ProcessClass.process(ProcessClass.java:37)\n\tat jadx.core.ProcessClass.processDependencies(ProcessClass.java:59)\n\tat jadx.core.ProcessClass.process(ProcessClass.java:42)\n\tat jadx.api.JadxDecompiler.processClass(JadxDecompiler.java:306)\n\tat jadx.api.JavaClass.decompile(JavaClass.java:62)\n\tat jadx.api.JadxDecompiler$1.run(JadxDecompiler.java:199)\n*/\n /*\n r4 = this;\n r0 = r4.b;\n if (r0 == null) goto L_0x0017;\n L_0x0004:\n r0 = r4.f12668d;\n if (r0 != null) goto L_0x0017;\n L_0x0008:\n r0 = r4.b;\n r1 = r4.c;\n r2 = null;\n r3 = com.facebook.graphql.enums.GraphQLObjectType.class;\n r0 = r0.d(r1, r2, r3);\n r0 = (com.facebook.graphql.enums.GraphQLObjectType) r0;\n r4.f12668d = r0;\n L_0x0017:\n r0 = r4.f12668d;\n return r0;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.facebook.socialgood.guestlist.FundraiserGuestListModels.FundraiserNonDonorsConnectionQueryModel.k():com.facebook.graphql.enums.GraphQLObjectType\");\n }", "title": "" }, { "docid": "067944eb863ee65c6b3db6ef2dac9c8d", "score": "0.5612997", "text": "private void m99103b(boolean r9, boolean r10, boolean r11) {\n /*\n r8 = this;\n r0 = 0\n r1 = 1065353216(0x3f800000, float:1.0)\n r2 = 1\n r3 = 3\n r4 = 0\n r5 = 2\n r6 = -1\n if (r9 == 0) goto L_0x00e7\n java.lang.String r9 = r8.getTabType()\n java.lang.String r7 = \"PUBLISH\"\n boolean r9 = r9.equals(r7)\n if (r9 != 0) goto L_0x00e7\n r8.mo79870o()\n java.lang.String r9 = r8.getTabType()\n int r10 = r9.hashCode()\n r7 = -1382453013(0xffffffffad9970eb, float:-1.7444232E-11)\n if (r10 == r7) goto L_0x0053\n r5 = 2223327(0x21ecdf, float:3.115545E-39)\n if (r10 == r5) goto L_0x0049\n r4 = 2614219(0x27e3cb, float:3.663301E-39)\n if (r10 == r4) goto L_0x003f\n r3 = 1055811561(0x3eee67e9, float:0.46563652)\n if (r10 == r3) goto L_0x0036\n goto L_0x005d\n L_0x0036:\n java.lang.String r10 = \"DISCOVER\"\n boolean r9 = r9.equals(r10)\n if (r9 == 0) goto L_0x005d\n goto L_0x005e\n L_0x003f:\n java.lang.String r10 = \"USER\"\n boolean r9 = r9.equals(r10)\n if (r9 == 0) goto L_0x005d\n r2 = 3\n goto L_0x005e\n L_0x0049:\n java.lang.String r10 = \"HOME\"\n boolean r9 = r9.equals(r10)\n if (r9 == 0) goto L_0x005d\n r2 = 0\n goto L_0x005e\n L_0x0053:\n java.lang.String r10 = \"NOTIFICATION\"\n boolean r9 = r9.equals(r10)\n if (r9 == 0) goto L_0x005d\n r2 = 2\n goto L_0x005e\n L_0x005d:\n r2 = -1\n L_0x005e:\n switch(r2) {\n case 0: goto L_0x00b4;\n case 1: goto L_0x0088;\n case 2: goto L_0x0075;\n case 3: goto L_0x0062;\n default: goto L_0x0061;\n }\n L_0x0061:\n goto L_0x00c6\n L_0x0062:\n android.widget.ImageView r9 = r8.f79713a\n com.ss.android.ugc.aweme.homepage.ui.inflate.PreDrawableInflate r10 = r8.f79719i\n r2 = 2131232485(0x7f0806e5, float:1.808108E38)\n android.content.Context r3 = r8.getContext()\n android.graphics.drawable.Drawable r10 = r10.getDrawable(r2, r3)\n r9.setImageDrawable(r10)\n goto L_0x00c6\n L_0x0075:\n android.widget.ImageView r9 = r8.f79713a\n com.ss.android.ugc.aweme.homepage.ui.inflate.PreDrawableInflate r10 = r8.f79719i\n r2 = 2131232479(0x7f0806df, float:1.8081068E38)\n android.content.Context r3 = r8.getContext()\n android.graphics.drawable.Drawable r10 = r10.getDrawable(r2, r3)\n r9.setImageDrawable(r10)\n goto L_0x00c6\n L_0x0088:\n boolean r9 = com.p280ss.android.ugc.aweme.main.experiment.C33003b.m106651a()\n if (r9 == 0) goto L_0x00a1\n android.widget.ImageView r9 = r8.f79713a\n com.ss.android.ugc.aweme.homepage.ui.inflate.PreDrawableInflate r10 = r8.f79719i\n r2 = 2131232679(0x7f0807a7, float:1.8081474E38)\n android.content.Context r3 = r8.getContext()\n android.graphics.drawable.Drawable r10 = r10.getDrawable(r2, r3)\n r9.setImageDrawable(r10)\n goto L_0x00c6\n L_0x00a1:\n android.widget.ImageView r9 = r8.f79713a\n com.ss.android.ugc.aweme.homepage.ui.inflate.PreDrawableInflate r10 = r8.f79719i\n r2 = 2131232800(0x7f080820, float:1.808172E38)\n android.content.Context r3 = r8.getContext()\n android.graphics.drawable.Drawable r10 = r10.getDrawable(r2, r3)\n r9.setImageDrawable(r10)\n goto L_0x00c6\n L_0x00b4:\n android.widget.ImageView r9 = r8.f79713a\n com.ss.android.ugc.aweme.homepage.ui.inflate.PreDrawableInflate r10 = r8.f79719i\n r2 = 2131232473(0x7f0806d9, float:1.8081056E38)\n android.content.Context r3 = r8.getContext()\n android.graphics.drawable.Drawable r10 = r10.getDrawable(r2, r3)\n r9.setImageDrawable(r10)\n L_0x00c6:\n if (r11 == 0) goto L_0x020d\n android.widget.ImageView r9 = r8.f79713a\n r9.setAlpha(r1)\n android.widget.ImageView r9 = r8.f79714b\n if (r9 == 0) goto L_0x00d6\n android.widget.ImageView r9 = r8.f79714b\n r9.setAlpha(r0)\n L_0x00d6:\n android.view.View r9 = r8.f79715c\n if (r9 == 0) goto L_0x020d\n android.view.View r9 = r8.f79715c\n r10 = 0\n int r10 = com.p280ss.android.ugc.aweme.base.utils.C23486n.m77122a(r10)\n float r10 = (float) r10\n r9.setTranslationY(r10)\n return\n L_0x00e7:\n r8.mo79867l()\n java.lang.String r9 = r8.getTabType()\n int r7 = r9.hashCode()\n switch(r7) {\n case -1382453013: goto L_0x011d;\n case 2223327: goto L_0x0113;\n case 2614219: goto L_0x0109;\n case 482617583: goto L_0x00ff;\n case 1055811561: goto L_0x00f6;\n default: goto L_0x00f5;\n }\n L_0x00f5:\n goto L_0x0127\n L_0x00f6:\n java.lang.String r3 = \"DISCOVER\"\n boolean r9 = r9.equals(r3)\n if (r9 == 0) goto L_0x0127\n goto L_0x0128\n L_0x00ff:\n java.lang.String r2 = \"PUBLISH\"\n boolean r9 = r9.equals(r2)\n if (r9 == 0) goto L_0x0127\n r2 = 4\n goto L_0x0128\n L_0x0109:\n java.lang.String r2 = \"USER\"\n boolean r9 = r9.equals(r2)\n if (r9 == 0) goto L_0x0127\n r2 = 3\n goto L_0x0128\n L_0x0113:\n java.lang.String r2 = \"HOME\"\n boolean r9 = r9.equals(r2)\n if (r9 == 0) goto L_0x0127\n r2 = 0\n goto L_0x0128\n L_0x011d:\n java.lang.String r2 = \"NOTIFICATION\"\n boolean r9 = r9.equals(r2)\n if (r9 == 0) goto L_0x0127\n r2 = 2\n goto L_0x0128\n L_0x0127:\n r2 = -1\n L_0x0128:\n switch(r2) {\n case 0: goto L_0x01db;\n case 1: goto L_0x0185;\n case 2: goto L_0x015c;\n case 3: goto L_0x0132;\n case 4: goto L_0x012d;\n default: goto L_0x012b;\n }\n L_0x012b:\n goto L_0x01ed\n L_0x012d:\n r8.mo79865j()\n goto L_0x01ed\n L_0x0132:\n if (r10 == 0) goto L_0x0148\n android.widget.ImageView r9 = r8.f79714b\n com.ss.android.ugc.aweme.homepage.ui.inflate.PreDrawableInflate r10 = r8.f79719i\n r2 = 2131232487(0x7f0806e7, float:1.8081085E38)\n android.content.Context r3 = r8.getContext()\n android.graphics.drawable.Drawable r10 = r10.getDrawable(r2, r3)\n r9.setImageDrawable(r10)\n goto L_0x01ed\n L_0x0148:\n android.widget.ImageView r9 = r8.f79714b\n com.ss.android.ugc.aweme.homepage.ui.inflate.PreDrawableInflate r10 = r8.f79719i\n r2 = 2131232489(0x7f0806e9, float:1.8081089E38)\n android.content.Context r3 = r8.getContext()\n android.graphics.drawable.Drawable r10 = r10.getDrawable(r2, r3)\n r9.setImageDrawable(r10)\n goto L_0x01ed\n L_0x015c:\n if (r10 == 0) goto L_0x0172\n android.widget.ImageView r9 = r8.f79714b\n com.ss.android.ugc.aweme.homepage.ui.inflate.PreDrawableInflate r10 = r8.f79719i\n r2 = 2131232481(0x7f0806e1, float:1.8081072E38)\n android.content.Context r3 = r8.getContext()\n android.graphics.drawable.Drawable r10 = r10.getDrawable(r2, r3)\n r9.setImageDrawable(r10)\n goto L_0x01ed\n L_0x0172:\n android.widget.ImageView r9 = r8.f79714b\n com.ss.android.ugc.aweme.homepage.ui.inflate.PreDrawableInflate r10 = r8.f79719i\n r2 = 2131232483(0x7f0806e3, float:1.8081077E38)\n android.content.Context r3 = r8.getContext()\n android.graphics.drawable.Drawable r10 = r10.getDrawable(r2, r3)\n r9.setImageDrawable(r10)\n goto L_0x01ed\n L_0x0185:\n boolean r9 = com.p280ss.android.ugc.aweme.main.experiment.C33003b.m106651a()\n if (r9 == 0) goto L_0x01b3\n if (r10 == 0) goto L_0x01a0\n android.widget.ImageView r9 = r8.f79714b\n com.ss.android.ugc.aweme.homepage.ui.inflate.PreDrawableInflate r10 = r8.f79719i\n r2 = 2131232681(0x7f0807a9, float:1.8081478E38)\n android.content.Context r3 = r8.getContext()\n android.graphics.drawable.Drawable r10 = r10.getDrawable(r2, r3)\n r9.setImageDrawable(r10)\n goto L_0x01ed\n L_0x01a0:\n android.widget.ImageView r9 = r8.f79714b\n com.ss.android.ugc.aweme.homepage.ui.inflate.PreDrawableInflate r10 = r8.f79719i\n r2 = 2131232683(0x7f0807ab, float:1.8081482E38)\n android.content.Context r3 = r8.getContext()\n android.graphics.drawable.Drawable r10 = r10.getDrawable(r2, r3)\n r9.setImageDrawable(r10)\n goto L_0x01ed\n L_0x01b3:\n if (r10 == 0) goto L_0x01c8\n android.widget.ImageView r9 = r8.f79714b\n com.ss.android.ugc.aweme.homepage.ui.inflate.PreDrawableInflate r10 = r8.f79719i\n r2 = 2131232491(0x7f0806eb, float:1.8081093E38)\n android.content.Context r3 = r8.getContext()\n android.graphics.drawable.Drawable r10 = r10.getDrawable(r2, r3)\n r9.setImageDrawable(r10)\n goto L_0x01ed\n L_0x01c8:\n android.widget.ImageView r9 = r8.f79714b\n com.ss.android.ugc.aweme.homepage.ui.inflate.PreDrawableInflate r10 = r8.f79719i\n r2 = 2131232493(0x7f0806ed, float:1.8081097E38)\n android.content.Context r3 = r8.getContext()\n android.graphics.drawable.Drawable r10 = r10.getDrawable(r2, r3)\n r9.setImageDrawable(r10)\n goto L_0x01ed\n L_0x01db:\n android.widget.ImageView r9 = r8.f79714b\n com.ss.android.ugc.aweme.homepage.ui.inflate.PreDrawableInflate r10 = r8.f79719i\n r2 = 2131232475(0x7f0806db, float:1.808106E38)\n android.content.Context r3 = r8.getContext()\n android.graphics.drawable.Drawable r10 = r10.getDrawable(r2, r3)\n r9.setImageDrawable(r10)\n L_0x01ed:\n if (r11 == 0) goto L_0x020d\n android.widget.ImageView r9 = r8.f79714b\n r9.setAlpha(r1)\n android.widget.ImageView r9 = r8.f79713a\n if (r9 == 0) goto L_0x01fd\n android.widget.ImageView r9 = r8.f79713a\n r9.setAlpha(r0)\n L_0x01fd:\n android.view.View r9 = r8.f79715c\n if (r9 == 0) goto L_0x020d\n android.view.View r9 = r8.f79715c\n r10 = 4611686018427387904(0x4000000000000000, double:2.0)\n int r10 = com.p280ss.android.ugc.aweme.base.utils.C23486n.m77122a(r10)\n float r10 = (float) r10\n r9.setTranslationY(r10)\n L_0x020d:\n return\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.p280ss.android.ugc.aweme.homepage.p1291ui.view.C30318b.m99103b(boolean, boolean, boolean):void\");\n }", "title": "" }, { "docid": "a80c2b879f316ce38f73faae96e6afff", "score": "0.5609722", "text": "public final boolean mo105312a(java.lang.String r5) {\n /*\n r4 = this;\n android.graphics.Bitmap r0 = r4.f112416a\n r1 = 0\n if (r0 != 0) goto L_0x000b\n java.lang.String r5 = \"mBitmap is null\"\n com.p280ss.android.ugc.aweme.shortvideo.util.C41530am.m132283b(r5)\n return r1\n L_0x000b:\n r0 = 0\n java.io.FileOutputStream r2 = new java.io.FileOutputStream // Catch:{ FileNotFoundException -> 0x002b, all -> 0x0023 }\n r2.<init>(r5) // Catch:{ FileNotFoundException -> 0x002b, all -> 0x0023 }\n android.graphics.Bitmap r5 = r4.f112416a // Catch:{ FileNotFoundException -> 0x0021, all -> 0x001f }\n android.graphics.Bitmap$CompressFormat r0 = android.graphics.Bitmap.CompressFormat.PNG // Catch:{ FileNotFoundException -> 0x0021, all -> 0x001f }\n r3 = 100\n r5.compress(r0, r3, r2) // Catch:{ FileNotFoundException -> 0x0021, all -> 0x001f }\n r2.close() // Catch:{ IOException -> 0x001d }\n L_0x001d:\n r5 = 1\n return r5\n L_0x001f:\n r5 = move-exception\n goto L_0x0025\n L_0x0021:\n r0 = r2\n goto L_0x002b\n L_0x0023:\n r5 = move-exception\n r2 = r0\n L_0x0025:\n if (r2 == 0) goto L_0x002a\n r2.close() // Catch:{ IOException -> 0x002a }\n L_0x002a:\n throw r5\n L_0x002b:\n if (r0 == 0) goto L_0x0030\n r0.close() // Catch:{ IOException -> 0x0030 }\n L_0x0030:\n return r1\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.p280ss.android.ugc.aweme.watermark.C43403c.mo105312a(java.lang.String):boolean\");\n }", "title": "" }, { "docid": "b1acc57a8054118cf20fe50c1fe2b68f", "score": "0.56081057", "text": "public java.lang.Object m25286a(com.fasterxml.jackson.core.JsonParser r11, com.fasterxml.jackson.databind.DeserializationContext r12) {\n /* JADX: method processing error */\n/*\nError: jadx.core.utils.exceptions.JadxRuntimeException: SSA rename variables already executed\n\tat jadx.core.dex.visitors.ssa.SSATransform.renameVariables(SSATransform.java:120)\n\tat jadx.core.dex.visitors.ssa.SSATransform.process(SSATransform.java:52)\n\tat jadx.core.dex.visitors.ssa.SSATransform.visit(SSATransform.java:42)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:31)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:17)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:14)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:14)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:14)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:14)\n\tat jadx.core.ProcessClass.process(ProcessClass.java:37)\n\tat jadx.core.ProcessClass.processDependencies(ProcessClass.java:59)\n\tat jadx.core.ProcessClass.process(ProcessClass.java:42)\n\tat jadx.api.JadxDecompiler.processClass(JadxDecompiler.java:306)\n\tat jadx.api.JavaClass.decompile(JavaClass.java:62)\n\tat jadx.api.JadxDecompiler$1.run(JadxDecompiler.java:199)\n*/\n /*\n r10 = this;\n r8 = 1;\n r6 = 0;\n r4 = new com.facebook.flatbuffers.FlatBufferBuilder;\n r5 = 128; // 0x80 float:1.794E-43 double:6.32E-322;\n r4.<init>(r5);\n r5 = com.facebook.tagging.graphql.protocol.FetchGroupMembersToMentionQueryParsers.FetchGroupMembersToMentionQueryParser.GroupMentionsParser.NonMemberSectionParser.m25337a(r11, r4);\n r4.d(r5);\n r4 = r4.e();\n r5 = java.nio.ByteBuffer.wrap(r4);\n r4 = 0;\n r5.position(r4);\n r4 = new com.facebook.flatbuffers.MutableFlatBuffer;\n r7 = r6;\n r9 = r6;\n r4.<init>(r5, r6, r7, r8, r9);\n r5 = 4;\n r6 = java.lang.Boolean.valueOf(r8);\n r4.a(r5, r6);\n r2 = r4;\n r1 = new com.facebook.tagging.graphql.protocol.FetchGroupMembersToMentionQueryModels$FetchGroupMembersToMentionQueryModel$GroupMentionsModel$NonMemberSectionModel;\n r1.<init>();\n r4 = r2.a;\n r0 = r4;\n r3 = com.facebook.flatbuffers.FlatBuffer.a(r0);\n r0 = r1;\n r0 = (com.facebook.graphql.modelutil.BaseModel) r0;\n r0.a(r2, r3, r11);\n r0 = r1 instanceof com.facebook.common.json.Postprocessable;\n if (r0 == 0) goto L_0x0048;\n L_0x0042:\n r1 = (com.facebook.common.json.Postprocessable) r1;\n r1 = r1.a();\n L_0x0048:\n return r1;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.facebook.tagging.graphql.protocol.FetchGroupMembersToMentionQueryModels.FetchGroupMembersToMentionQueryModel.GroupMentionsModel.NonMemberSectionModel.Deserializer.a(com.fasterxml.jackson.core.JsonParser, com.fasterxml.jackson.databind.DeserializationContext):java.lang.Object\");\n }", "title": "" }, { "docid": "788bb262d214c1295fdda451a89e7ad4", "score": "0.5599843", "text": "private void m6751a() {\n /*\n r8 = this;\n java.lang.String r0 = \".\"\n java.lang.String r1 = \"/\"\n at.nineyards.anyline.modules.ocr.AnylineOcrConfig r2 = r8.f5749b\n if (r2 != 0) goto L_0x0009\n return\n L_0x0009:\n java.lang.String[] r2 = r2.getLanguages()\n int r3 = r2.length\n r4 = 0\n r5 = 0\n L_0x0010:\n if (r5 >= r3) goto L_0x001d\n r6 = r2[r5]\n if (r6 == 0) goto L_0x001a\n r7 = 0\n r8.copyTrainedData(r6, r7)\n L_0x001a:\n int r5 = r5 + 1\n goto L_0x0010\n L_0x001d:\n at.nineyards.anyline.modules.ocr.AnylineOcrConfig r2 = r8.f5749b\n java.lang.String r2 = r2.getCustomScript()\n java.lang.String r3 = \"anyline/module_anyline_ocr\"\n if (r2 == 0) goto L_0x0033\n at.nineyards.anyline.AnylineController r0 = r8.anylineController\n at.nineyards.anyline.modules.ocr.AnylineOcrConfig r1 = r8.f5749b\n java.lang.String r1 = r1.getCustomScript()\n r0.loadScript(r1, r3)\n return\n L_0x0033:\n at.nineyards.anyline.modules.ocr.AnylineOcrConfig r2 = r8.f5749b\n java.lang.String r2 = r2.getCustomCmdFile()\n r5 = 1\n if (r2 == 0) goto L_0x0079\n at.nineyards.anyline.modules.ocr.AnylineOcrConfig r2 = r8.f5749b // Catch:{ IOException -> 0x0072 }\n java.lang.String r2 = r2.getCustomCmdFile() // Catch:{ IOException -> 0x0072 }\n int r6 = r2.lastIndexOf(r1) // Catch:{ IOException -> 0x0072 }\n r7 = -1\n if (r6 == r7) goto L_0x0052\n int r1 = r2.lastIndexOf(r1) // Catch:{ IOException -> 0x0072 }\n int r1 = r1 + r5\n java.lang.String r2 = r2.substring(r1) // Catch:{ IOException -> 0x0072 }\n L_0x0052:\n int r1 = r2.lastIndexOf(r0) // Catch:{ IOException -> 0x0072 }\n if (r1 == r7) goto L_0x0060\n int r0 = r2.lastIndexOf(r0) // Catch:{ IOException -> 0x0072 }\n java.lang.String r2 = r2.substring(r4, r0) // Catch:{ IOException -> 0x0072 }\n L_0x0060:\n at.nineyards.anyline.AnylineController r0 = r8.anylineController // Catch:{ IOException -> 0x0072 }\n android.content.Context r1 = r8.context // Catch:{ IOException -> 0x0072 }\n at.nineyards.anyline.modules.ocr.AnylineOcrConfig r4 = r8.f5749b // Catch:{ IOException -> 0x0072 }\n java.lang.String r4 = r4.getCustomCmdFile() // Catch:{ IOException -> 0x0072 }\n java.lang.String r1 = p007at.nineyards.anyline.util.AssetUtil.readFile(r1, r4) // Catch:{ IOException -> 0x0072 }\n r0.loadScript(r2, r1, r3) // Catch:{ IOException -> 0x0072 }\n return\n L_0x0072:\n r0 = move-exception\n java.lang.RuntimeException r1 = new java.lang.RuntimeException\n r1.<init>(r0)\n throw r1\n L_0x0079:\n at.nineyards.anyline.modules.ocr.AnylineOcrConfig r0 = r8.f5749b\n at.nineyards.anyline.modules.ocr.AnylineOcrConfig$ScanMode r0 = r0.getScanMode()\n at.nineyards.anyline.modules.ocr.AnylineOcrConfig$ScanMode r1 = p007at.nineyards.anyline.modules.ocr.AnylineOcrConfig.ScanMode.LINE\n java.lang.String r2 = \"$isAllowLowercase\"\n if (r0 != r1) goto L_0x00ba\n at.nineyards.anyline.AnylineController r0 = r8.anylineController\n java.lang.String r1 = \"anyline_ocr_line\"\n r0.loadCmdFile(r1, r3)\n at.nineyards.anyline.AnylineController r0 = r8.anylineController\n at.nineyards.anyline.modules.ocr.AnylineOcrConfig r1 = r8.f5749b\n boolean r1 = r1.isRemoveSmallContours()\n java.lang.Integer r1 = java.lang.Integer.valueOf(r1)\n java.lang.String r2 = \"$removeSmallContours\"\n r0.setStartVariable(r2, r1)\n at.nineyards.anyline.AnylineController r0 = r8.anylineController\n at.nineyards.anyline.modules.ocr.AnylineOcrConfig r1 = r8.f5749b\n boolean r1 = r1.isRemoveWhitespaces()\n java.lang.Integer r1 = java.lang.Integer.valueOf(r1)\n java.lang.String r2 = \"$removeWhitespaces\"\n r0.setStartVariable(r2, r1)\n at.nineyards.anyline.AnylineController r0 = r8.anylineController\n at.nineyards.anyline.modules.ocr.AnylineOcrConfig r1 = r8.f5749b\n int r1 = r1.getMinSharpness()\n java.lang.String r2 = \"$minSharpness\"\n goto L_0x015b\n L_0x00ba:\n at.nineyards.anyline.modules.ocr.AnylineOcrConfig r0 = r8.f5749b\n at.nineyards.anyline.modules.ocr.AnylineOcrConfig$ScanMode r0 = r0.getScanMode()\n at.nineyards.anyline.modules.ocr.AnylineOcrConfig$ScanMode r1 = p007at.nineyards.anyline.modules.ocr.AnylineOcrConfig.ScanMode.GRID\n if (r0 != r1) goto L_0x0121\n at.nineyards.anyline.AnylineController r0 = r8.anylineController\n java.lang.String r1 = \"anyline_ocr_grid\"\n r0.loadCmdFile(r1, r3)\n at.nineyards.anyline.AnylineController r0 = r8.anylineController\n at.nineyards.anyline.modules.ocr.AnylineOcrConfig r1 = r8.f5749b\n int r1 = r1.getCharCountX()\n java.lang.Integer r1 = java.lang.Integer.valueOf(r1)\n java.lang.String r2 = \"$elementCountX\"\n r0.setStartVariable(r2, r1)\n at.nineyards.anyline.AnylineController r0 = r8.anylineController\n at.nineyards.anyline.modules.ocr.AnylineOcrConfig r1 = r8.f5749b\n int r1 = r1.getCharCountY()\n java.lang.Integer r1 = java.lang.Integer.valueOf(r1)\n java.lang.String r2 = \"$elementCountY\"\n r0.setStartVariable(r2, r1)\n at.nineyards.anyline.AnylineController r0 = r8.anylineController\n at.nineyards.anyline.modules.ocr.AnylineOcrConfig r1 = r8.f5749b\n double r1 = r1.getCharPaddingXFactor()\n java.lang.Double r1 = java.lang.Double.valueOf(r1)\n java.lang.String r2 = \"$paddingFactorX\"\n r0.setStartVariable(r2, r1)\n at.nineyards.anyline.AnylineController r0 = r8.anylineController\n at.nineyards.anyline.modules.ocr.AnylineOcrConfig r1 = r8.f5749b\n double r1 = r1.getCharPaddingYFactor()\n java.lang.Double r1 = java.lang.Double.valueOf(r1)\n java.lang.String r2 = \"$paddingFactorY\"\n r0.setStartVariable(r2, r1)\n at.nineyards.anyline.AnylineController r0 = r8.anylineController\n at.nineyards.anyline.modules.ocr.AnylineOcrConfig r1 = r8.f5749b\n boolean r1 = r1.isBrightTextOnDark()\n java.lang.Integer r1 = java.lang.Integer.valueOf(r1)\n java.lang.String r2 = \"$isBrightTextOnDark\"\n r0.setStartVariable(r2, r1)\n goto L_0x0162\n L_0x0121:\n at.nineyards.anyline.modules.ocr.AnylineOcrConfig r0 = r8.f5749b\n at.nineyards.anyline.modules.ocr.AnylineOcrConfig$ScanMode r0 = r0.getScanMode()\n at.nineyards.anyline.modules.ocr.AnylineOcrConfig$ScanMode r1 = p007at.nineyards.anyline.modules.ocr.AnylineOcrConfig.ScanMode.AUTO\n if (r0 != r1) goto L_0x0162\n java.lang.StringBuilder r0 = new java.lang.StringBuilder\n r0.<init>()\n java.lang.String r1 = \"anyline_ocr_auto\"\n r0.append(r1)\n at.nineyards.anyline.modules.ocr.AnylineOcrConfig r1 = r8.f5749b\n boolean r1 = r1.areAllLanguagesAnyFiles()\n if (r1 == 0) goto L_0x0140\n java.lang.String r1 = \"_any\"\n goto L_0x0142\n L_0x0140:\n java.lang.String r1 = \"\"\n L_0x0142:\n r0.append(r1)\n java.lang.String r0 = r0.toString()\n at.nineyards.anyline.AnylineController r1 = r8.anylineController\n r1.loadCmdFile(r0, r3)\n at.nineyards.anyline.AnylineController r0 = r8.anylineController\n at.nineyards.anyline.modules.ocr.AnylineOcrConfig r1 = r8.f5749b\n boolean r1 = r1.isAllowLowercase()\n if (r1 == 0) goto L_0x015a\n r1 = 1\n goto L_0x015b\n L_0x015a:\n r1 = 0\n L_0x015b:\n java.lang.Integer r1 = java.lang.Integer.valueOf(r1)\n r0.setStartVariable(r2, r1)\n L_0x0162:\n at.nineyards.anyline.modules.ocr.AnylineOcrConfig r0 = r8.f5749b\n int r0 = r0.getMinConfidence()\n if (r0 < 0) goto L_0x017b\n at.nineyards.anyline.AnylineController r0 = r8.anylineController\n at.nineyards.anyline.modules.ocr.AnylineOcrConfig r1 = r8.f5749b\n int r1 = r1.getMinConfidence()\n java.lang.Integer r1 = java.lang.Integer.valueOf(r1)\n java.lang.String r2 = \"$minConfidence\"\n r0.setStartVariable(r2, r1)\n L_0x017b:\n at.nineyards.anyline.modules.ocr.AnylineOcrConfig r0 = r8.f5749b\n boolean r0 = r0.areAllLanguagesAnyFiles()\n if (r0 == 0) goto L_0x0196\n at.nineyards.anyline.modules.ocr.AnylineOcrConfig r0 = r8.f5749b\n java.lang.String[] r0 = r0.getLanguageFilenames()\n int r1 = r0.length\n if (r1 != r5) goto L_0x01b0\n at.nineyards.anyline.AnylineController r1 = r8.anylineController\n r0 = r0[r4]\n java.lang.String r2 = \"$anyLanguages\"\n r1.setStartVariable(r2, r0)\n goto L_0x01b0\n L_0x0196:\n at.nineyards.anyline.AnylineController r0 = r8.anylineController\n at.nineyards.anyline.modules.ocr.AnylineOcrConfig r1 = r8.f5749b\n java.lang.String r1 = r1.getTesseractLanguagesAsJsonString()\n java.lang.String r2 = \"$tesseractLanguages\"\n r0.setStartVariable(r2, r1)\n at.nineyards.anyline.AnylineController r0 = r8.anylineController\n at.nineyards.anyline.modules.ocr.AnylineOcrConfig r1 = r8.f5749b\n java.lang.String r1 = r1.getTesseractParametersAsJsonString()\n java.lang.String r2 = \"$tesseractParameterDict\"\n r0.setStartVariable(r2, r1)\n L_0x01b0:\n at.nineyards.anyline.AnylineController r0 = r8.anylineController\n at.nineyards.anyline.modules.ocr.AnylineOcrConfig r1 = r8.f5749b\n java.lang.String r1 = r1.getValidationRegex()\n java.lang.String r2 = \"$validationRegexString\"\n r0.setStartVariable(r2, r1)\n at.nineyards.anyline.modules.ocr.AnylineOcrConfig r0 = r8.f5749b\n int r0 = r0.getMinCharHeight()\n if (r0 < 0) goto L_0x01d6\n at.nineyards.anyline.AnylineController r0 = r8.anylineController\n at.nineyards.anyline.modules.ocr.AnylineOcrConfig r1 = r8.f5749b\n int r1 = r1.getMinCharHeight()\n java.lang.Integer r1 = java.lang.Integer.valueOf(r1)\n java.lang.String r2 = \"$minCharHeight\"\n r0.setStartVariable(r2, r1)\n L_0x01d6:\n at.nineyards.anyline.modules.ocr.AnylineOcrConfig r0 = r8.f5749b\n int r0 = r0.getMaxCharHeight()\n if (r0 <= 0) goto L_0x01ef\n at.nineyards.anyline.AnylineController r0 = r8.anylineController\n at.nineyards.anyline.modules.ocr.AnylineOcrConfig r1 = r8.f5749b\n int r1 = r1.getMaxCharHeight()\n java.lang.Integer r1 = java.lang.Integer.valueOf(r1)\n java.lang.String r2 = \"$maxCharHeight\"\n r0.setStartVariable(r2, r1)\n L_0x01ef:\n return\n */\n throw new UnsupportedOperationException(\"Method not decompiled: p046io.anyline.plugin.ocr.OcrScanPlugin.m6751a():void\");\n }", "title": "" }, { "docid": "97ffed90657de5015ad01e16bd9df790", "score": "0.55912197", "text": "public void b()\r\n/* 37: */ {\r\n/* 38: 47 */ if (this.r.isEmpty())\r\n/* 39: */ {\r\n/* 40: 48 */ this.r.addAll(this.q.c(this.h.a().d(), (int)(this.l * 0.75F)));\r\n/* 41: 50 */ if (this.i != null)\r\n/* 42: */ {\r\n/* 43: 51 */ this.r.add(\"\");\r\n/* 44: 52 */ for (hz localhz : this.i) {\r\n/* 45: 53 */ this.r.add(localhz.e());\r\n/* 46: */ }\r\n/* 47: */ }\r\n/* 48: */ }\r\n/* 49: 58 */ if (this.h.b() != null)\r\n/* 50: */ {\r\n/* 51: 59 */ this.n.add(new bug(0, this.l / 2 - 155, this.m - 50, 150, 20, cwc.a(\"gui.cancel\", new Object[0])));\r\n/* 52: 60 */ this.n.add(new bug(1, this.l / 2 - 155 + 160, this.m - 50, 150, 20, cwc.a(this.h.b().d(), new Object[0])));\r\n/* 53: */ }\r\n/* 54: */ else\r\n/* 55: */ {\r\n/* 56: 62 */ this.n.add(new bug(0, this.l / 2 - 75, this.m - 50, 150, 20, cwc.a(\"gui.cancel\", new Object[0])));\r\n/* 57: */ }\r\n/* 58: */ }", "title": "" }, { "docid": "95b2cdc605c06f7f9ba0c72fde606f99", "score": "0.55649734", "text": "@javax.annotation.Nullable\n public final java.lang.String m25295k() {\n /* JADX: method processing error */\n/*\nError: jadx.core.utils.exceptions.JadxRuntimeException: SSA rename variables already executed\n\tat jadx.core.dex.visitors.ssa.SSATransform.renameVariables(SSATransform.java:120)\n\tat jadx.core.dex.visitors.ssa.SSATransform.process(SSATransform.java:52)\n\tat jadx.core.dex.visitors.ssa.SSATransform.visit(SSATransform.java:42)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:31)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:17)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:14)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:14)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:14)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:14)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:14)\n\tat jadx.core.ProcessClass.process(ProcessClass.java:37)\n\tat jadx.core.ProcessClass.processDependencies(ProcessClass.java:59)\n\tat jadx.core.ProcessClass.process(ProcessClass.java:42)\n\tat jadx.api.JadxDecompiler.processClass(JadxDecompiler.java:306)\n\tat jadx.api.JavaClass.decompile(JavaClass.java:62)\n\tat jadx.api.JadxDecompiler$1.run(JadxDecompiler.java:199)\n*/\n /*\n r2 = this;\n r0 = r2.f17472f;\n r1 = 2;\n r0 = super.a(r0, r1);\n r2.f17472f = r0;\n r0 = r2.f17472f;\n return r0;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.facebook.tagging.graphql.protocol.FetchGroupMembersToMentionQueryModels.FetchGroupMembersToMentionQueryModel.GroupMentionsModel.NonMemberSectionModel.EdgesModel.NodeModel.k():java.lang.String\");\n }", "title": "" }, { "docid": "c8ebc379ff7e4eed1ae856e94350e510", "score": "0.55449826", "text": "static /* synthetic */ void m671a(com.paypal.android.sdk.payments.aa r8) {\n /*\n r2 = 0;\n L_0x0001:\n r1 = r8.f746c;\n monitor-enter(r1);\n r0 = r8.f748e;\t Catch:{ all -> 0x003f }\n r0 = r0.size();\t Catch:{ all -> 0x003f }\n if (r0 > 0) goto L_0x000e;\n L_0x000c:\n monitor-exit(r1);\t Catch:{ all -> 0x003f }\n return;\n L_0x000e:\n r4 = new com.paypal.android.sdk.payments.ac[r0];\t Catch:{ all -> 0x003f }\n r0 = r8.f748e;\t Catch:{ all -> 0x003f }\n r0.toArray(r4);\t Catch:{ all -> 0x003f }\n r0 = r8.f748e;\t Catch:{ all -> 0x003f }\n r0.clear();\t Catch:{ all -> 0x003f }\n monitor-exit(r1);\t Catch:{ all -> 0x003f }\n r3 = r2;\n L_0x001c:\n r0 = r4.length;\n if (r3 >= r0) goto L_0x0001;\n L_0x001f:\n r5 = r4[r3];\n r1 = r2;\n L_0x0022:\n r0 = r5.f752b;\n r0 = r0.size();\n if (r1 >= r0) goto L_0x0042;\n L_0x002a:\n r0 = r5.f752b;\n r0 = r0.get(r1);\n r0 = (com.paypal.android.sdk.payments.ad) r0;\n r0 = r0.f754b;\n r6 = r8.f745b;\n r7 = r5.f751a;\n r0.onReceive(r6, r7);\n r0 = r1 + 1;\n r1 = r0;\n goto L_0x0022;\n L_0x003f:\n r0 = move-exception;\n monitor-exit(r1);\t Catch:{ all -> 0x003f }\n throw r0;\n L_0x0042:\n r0 = r3 + 1;\n r3 = r0;\n goto L_0x001c;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.paypal.android.sdk.payments.aa.a(com.paypal.android.sdk.payments.aa):void\");\n }", "title": "" }, { "docid": "11af916f60815dd64bd2e4bdf221627e", "score": "0.554261", "text": "public final void mo14844c(com.google.android.gms.internal.ads.zzjy r43, int r44) {\n /*\n r42 = this;\n r0 = r42\n java.lang.String r1 = r0.f11189a\n r1.hashCode()\n int r2 = r1.hashCode()\n r4 = 4\n r5 = 8\n r6 = 1\n r7 = 2\n r8 = 3\n r9 = 0\n switch(r2) {\n case -2095576542: goto L_0x017b;\n case -2095575984: goto L_0x016f;\n case -1985379776: goto L_0x0163;\n case -1784763192: goto L_0x0157;\n case -1730367663: goto L_0x014b;\n case -1482641358: goto L_0x013f;\n case -1482641357: goto L_0x0133;\n case -1373388978: goto L_0x0127;\n case -933872740: goto L_0x0119;\n case -538363189: goto L_0x010b;\n case -538363109: goto L_0x00fd;\n case -425012669: goto L_0x00ef;\n case -356037306: goto L_0x00e1;\n case 62923557: goto L_0x00d3;\n case 62923603: goto L_0x00c5;\n case 62927045: goto L_0x00b7;\n case 82338133: goto L_0x00a9;\n case 82338134: goto L_0x009b;\n case 99146302: goto L_0x008d;\n case 444813526: goto L_0x0080;\n case 542569478: goto L_0x0073;\n case 725957860: goto L_0x0066;\n case 855502857: goto L_0x0059;\n case 1422270023: goto L_0x004c;\n case 1809237540: goto L_0x003f;\n case 1950749482: goto L_0x0032;\n case 1950789798: goto L_0x0025;\n case 1951062397: goto L_0x0018;\n default: goto L_0x0015;\n }\n L_0x0015:\n r1 = -1\n goto L_0x0186\n L_0x0018:\n java.lang.String r2 = \"A_OPUS\"\n boolean r1 = r1.equals(r2)\n if (r1 != 0) goto L_0x0021\n goto L_0x0015\n L_0x0021:\n r1 = 27\n goto L_0x0186\n L_0x0025:\n java.lang.String r2 = \"A_FLAC\"\n boolean r1 = r1.equals(r2)\n if (r1 != 0) goto L_0x002e\n goto L_0x0015\n L_0x002e:\n r1 = 26\n goto L_0x0186\n L_0x0032:\n java.lang.String r2 = \"A_EAC3\"\n boolean r1 = r1.equals(r2)\n if (r1 != 0) goto L_0x003b\n goto L_0x0015\n L_0x003b:\n r1 = 25\n goto L_0x0186\n L_0x003f:\n java.lang.String r2 = \"V_MPEG2\"\n boolean r1 = r1.equals(r2)\n if (r1 != 0) goto L_0x0048\n goto L_0x0015\n L_0x0048:\n r1 = 24\n goto L_0x0186\n L_0x004c:\n java.lang.String r2 = \"S_TEXT/UTF8\"\n boolean r1 = r1.equals(r2)\n if (r1 != 0) goto L_0x0055\n goto L_0x0015\n L_0x0055:\n r1 = 23\n goto L_0x0186\n L_0x0059:\n java.lang.String r2 = \"V_MPEGH/ISO/HEVC\"\n boolean r1 = r1.equals(r2)\n if (r1 != 0) goto L_0x0062\n goto L_0x0015\n L_0x0062:\n r1 = 22\n goto L_0x0186\n L_0x0066:\n java.lang.String r2 = \"A_PCM/INT/LIT\"\n boolean r1 = r1.equals(r2)\n if (r1 != 0) goto L_0x006f\n goto L_0x0015\n L_0x006f:\n r1 = 21\n goto L_0x0186\n L_0x0073:\n java.lang.String r2 = \"A_DTS/EXPRESS\"\n boolean r1 = r1.equals(r2)\n if (r1 != 0) goto L_0x007c\n goto L_0x0015\n L_0x007c:\n r1 = 20\n goto L_0x0186\n L_0x0080:\n java.lang.String r2 = \"V_THEORA\"\n boolean r1 = r1.equals(r2)\n if (r1 != 0) goto L_0x0089\n goto L_0x0015\n L_0x0089:\n r1 = 19\n goto L_0x0186\n L_0x008d:\n java.lang.String r2 = \"S_HDMV/PGS\"\n boolean r1 = r1.equals(r2)\n if (r1 != 0) goto L_0x0097\n goto L_0x0015\n L_0x0097:\n r1 = 18\n goto L_0x0186\n L_0x009b:\n java.lang.String r2 = \"V_VP9\"\n boolean r1 = r1.equals(r2)\n if (r1 != 0) goto L_0x00a5\n goto L_0x0015\n L_0x00a5:\n r1 = 17\n goto L_0x0186\n L_0x00a9:\n java.lang.String r2 = \"V_VP8\"\n boolean r1 = r1.equals(r2)\n if (r1 != 0) goto L_0x00b3\n goto L_0x0015\n L_0x00b3:\n r1 = 16\n goto L_0x0186\n L_0x00b7:\n java.lang.String r2 = \"A_DTS\"\n boolean r1 = r1.equals(r2)\n if (r1 != 0) goto L_0x00c1\n goto L_0x0015\n L_0x00c1:\n r1 = 15\n goto L_0x0186\n L_0x00c5:\n java.lang.String r2 = \"A_AC3\"\n boolean r1 = r1.equals(r2)\n if (r1 != 0) goto L_0x00cf\n goto L_0x0015\n L_0x00cf:\n r1 = 14\n goto L_0x0186\n L_0x00d3:\n java.lang.String r2 = \"A_AAC\"\n boolean r1 = r1.equals(r2)\n if (r1 != 0) goto L_0x00dd\n goto L_0x0015\n L_0x00dd:\n r1 = 13\n goto L_0x0186\n L_0x00e1:\n java.lang.String r2 = \"A_DTS/LOSSLESS\"\n boolean r1 = r1.equals(r2)\n if (r1 != 0) goto L_0x00eb\n goto L_0x0015\n L_0x00eb:\n r1 = 12\n goto L_0x0186\n L_0x00ef:\n java.lang.String r2 = \"S_VOBSUB\"\n boolean r1 = r1.equals(r2)\n if (r1 != 0) goto L_0x00f9\n goto L_0x0015\n L_0x00f9:\n r1 = 11\n goto L_0x0186\n L_0x00fd:\n java.lang.String r2 = \"V_MPEG4/ISO/AVC\"\n boolean r1 = r1.equals(r2)\n if (r1 != 0) goto L_0x0107\n goto L_0x0015\n L_0x0107:\n r1 = 10\n goto L_0x0186\n L_0x010b:\n java.lang.String r2 = \"V_MPEG4/ISO/ASP\"\n boolean r1 = r1.equals(r2)\n if (r1 != 0) goto L_0x0115\n goto L_0x0015\n L_0x0115:\n r1 = 9\n goto L_0x0186\n L_0x0119:\n java.lang.String r2 = \"S_DVBSUB\"\n boolean r1 = r1.equals(r2)\n if (r1 != 0) goto L_0x0123\n goto L_0x0015\n L_0x0123:\n r1 = 8\n goto L_0x0186\n L_0x0127:\n java.lang.String r2 = \"V_MS/VFW/FOURCC\"\n boolean r1 = r1.equals(r2)\n if (r1 != 0) goto L_0x0131\n goto L_0x0015\n L_0x0131:\n r1 = 7\n goto L_0x0186\n L_0x0133:\n java.lang.String r2 = \"A_MPEG/L3\"\n boolean r1 = r1.equals(r2)\n if (r1 != 0) goto L_0x013d\n goto L_0x0015\n L_0x013d:\n r1 = 6\n goto L_0x0186\n L_0x013f:\n java.lang.String r2 = \"A_MPEG/L2\"\n boolean r1 = r1.equals(r2)\n if (r1 != 0) goto L_0x0149\n goto L_0x0015\n L_0x0149:\n r1 = 5\n goto L_0x0186\n L_0x014b:\n java.lang.String r2 = \"A_VORBIS\"\n boolean r1 = r1.equals(r2)\n if (r1 != 0) goto L_0x0155\n goto L_0x0015\n L_0x0155:\n r1 = 4\n goto L_0x0186\n L_0x0157:\n java.lang.String r2 = \"A_TRUEHD\"\n boolean r1 = r1.equals(r2)\n if (r1 != 0) goto L_0x0161\n goto L_0x0015\n L_0x0161:\n r1 = 3\n goto L_0x0186\n L_0x0163:\n java.lang.String r2 = \"A_MS/ACM\"\n boolean r1 = r1.equals(r2)\n if (r1 != 0) goto L_0x016d\n goto L_0x0015\n L_0x016d:\n r1 = 2\n goto L_0x0186\n L_0x016f:\n java.lang.String r2 = \"V_MPEG4/ISO/SP\"\n boolean r1 = r1.equals(r2)\n if (r1 != 0) goto L_0x0179\n goto L_0x0015\n L_0x0179:\n r1 = 1\n goto L_0x0186\n L_0x017b:\n java.lang.String r2 = \"V_MPEG4/ISO/AP\"\n boolean r1 = r1.equals(r2)\n if (r1 != 0) goto L_0x0185\n goto L_0x0015\n L_0x0185:\n r1 = 0\n L_0x0186:\n java.lang.String r2 = \"application/dvbsubs\"\n java.lang.String r11 = \"application/pgs\"\n java.lang.String r12 = \"application/vobsub\"\n java.lang.String r13 = \"application/x-subrip\"\n java.lang.String r14 = \"audio/raw\"\n java.lang.String r16 = \"video/x-unknown\"\n java.lang.String r15 = \"audio/x-unknown\"\n java.lang.String r3 = \"MatroskaExtractor\"\n r17 = 0\n switch(r1) {\n case 0: goto L_0x035f;\n case 1: goto L_0x035f;\n case 2: goto L_0x030a;\n case 3: goto L_0x0304;\n case 4: goto L_0x02f2;\n case 5: goto L_0x02e6;\n case 6: goto L_0x02e1;\n case 7: goto L_0x02c7;\n case 8: goto L_0x02ab;\n case 9: goto L_0x035f;\n case 10: goto L_0x0294;\n case 11: goto L_0x028a;\n case 12: goto L_0x0285;\n case 13: goto L_0x027a;\n case 14: goto L_0x0275;\n case 15: goto L_0x0270;\n case 16: goto L_0x0264;\n case 17: goto L_0x025f;\n case 18: goto L_0x0258;\n case 19: goto L_0x0253;\n case 20: goto L_0x0270;\n case 21: goto L_0x021e;\n case 22: goto L_0x0207;\n case 23: goto L_0x0203;\n case 24: goto L_0x01fd;\n case 25: goto L_0x01f7;\n case 26: goto L_0x01eb;\n case 27: goto L_0x01a3;\n default: goto L_0x019b;\n }\n L_0x019b:\n com.google.android.gms.internal.ads.zzhw r1 = new com.google.android.gms.internal.ads.zzhw\n java.lang.String r2 = \"Unrecognized codec identifier.\"\n r1.<init>(r2)\n throw r1\n L_0x01a3:\n r15 = 5760(0x1680, float:8.071E-42)\n java.util.ArrayList r1 = new java.util.ArrayList\n r1.<init>(r8)\n byte[] r3 = r0.f11196h\n r1.add(r3)\n java.nio.ByteBuffer r3 = java.nio.ByteBuffer.allocate(r5)\n java.nio.ByteOrder r4 = java.nio.ByteOrder.nativeOrder()\n java.nio.ByteBuffer r3 = r3.order(r4)\n r18 = r11\n long r10 = r0.f11182J\n java.nio.ByteBuffer r3 = r3.putLong(r10)\n byte[] r3 = r3.array()\n r1.add(r3)\n java.nio.ByteBuffer r3 = java.nio.ByteBuffer.allocate(r5)\n java.nio.ByteOrder r4 = java.nio.ByteOrder.nativeOrder()\n java.nio.ByteBuffer r3 = r3.order(r4)\n long r4 = r0.f11183K\n java.nio.ByteBuffer r3 = r3.putLong(r4)\n byte[] r3 = r3.array()\n r1.add(r3)\n java.lang.String r14 = \"audio/opus\"\n r26 = -1\n r31 = 5760(0x1680, float:8.071E-42)\n goto L_0x0370\n L_0x01eb:\n r18 = r11\n byte[] r1 = r0.f11196h\n java.util.List r1 = java.util.Collections.singletonList(r1)\n java.lang.String r14 = \"audio/x-flac\"\n goto L_0x026a\n L_0x01f7:\n r18 = r11\n java.lang.String r14 = \"audio/eac3\"\n goto L_0x0268\n L_0x01fd:\n r18 = r11\n java.lang.String r14 = \"video/mpeg2\"\n goto L_0x0268\n L_0x0203:\n r18 = r11\n r14 = r13\n goto L_0x0268\n L_0x0207:\n r18 = r11\n com.google.android.gms.internal.ads.zzpn r1 = new com.google.android.gms.internal.ads.zzpn\n byte[] r3 = r0.f11196h\n r1.<init>((byte[]) r3)\n com.google.android.gms.internal.ads.zzqb r1 = com.google.android.gms.internal.ads.zzqb.zzi(r1)\n java.util.List<byte[]> r3 = r1.zzahc\n int r1 = r1.zzasp\n r0.f11188P = r1\n java.lang.String r14 = \"video/hevc\"\n goto L_0x02a9\n L_0x021e:\n r18 = r11\n int r1 = r0.f11180H\n int r1 = com.google.android.gms.internal.ads.zzpt.zzbo(r1)\n if (r1 != 0) goto L_0x024e\n int r1 = r0.f11180H\n int r4 = r15.length()\n int r4 = r4 + 60\n java.lang.StringBuilder r5 = new java.lang.StringBuilder\n r5.<init>(r4)\n java.lang.String r4 = \"Unsupported PCM bit depth: \"\n r5.append(r4)\n r5.append(r1)\n java.lang.String r1 = \". Setting mimeType to \"\n r5.append(r1)\n r5.append(r15)\n java.lang.String r1 = r5.toString()\n android.util.Log.w(r3, r1)\n L_0x024c:\n r14 = r15\n goto L_0x0268\n L_0x024e:\n r26 = r1\n r1 = r17\n goto L_0x026c\n L_0x0253:\n r18 = r11\n r14 = r16\n goto L_0x0268\n L_0x0258:\n r18 = r11\n r1 = r17\n r14 = r18\n goto L_0x026a\n L_0x025f:\n r18 = r11\n java.lang.String r14 = \"video/x-vnd.on2.vp9\"\n goto L_0x0268\n L_0x0264:\n r18 = r11\n java.lang.String r14 = \"video/x-vnd.on2.vp8\"\n L_0x0268:\n r1 = r17\n L_0x026a:\n r26 = -1\n L_0x026c:\n r31 = -1\n goto L_0x0370\n L_0x0270:\n r18 = r11\n java.lang.String r14 = \"audio/vnd.dts\"\n goto L_0x0268\n L_0x0275:\n r18 = r11\n java.lang.String r14 = \"audio/ac3\"\n goto L_0x0268\n L_0x027a:\n r18 = r11\n byte[] r1 = r0.f11196h\n java.util.List r1 = java.util.Collections.singletonList(r1)\n java.lang.String r14 = \"audio/mp4a-latm\"\n goto L_0x026a\n L_0x0285:\n r18 = r11\n java.lang.String r14 = \"audio/vnd.dts.hd\"\n goto L_0x0268\n L_0x028a:\n r18 = r11\n byte[] r1 = r0.f11196h\n java.util.List r1 = java.util.Collections.singletonList(r1)\n r14 = r12\n goto L_0x026a\n L_0x0294:\n r18 = r11\n com.google.android.gms.internal.ads.zzpn r1 = new com.google.android.gms.internal.ads.zzpn\n byte[] r3 = r0.f11196h\n r1.<init>((byte[]) r3)\n com.google.android.gms.internal.ads.zzpv r1 = com.google.android.gms.internal.ads.zzpv.zzg(r1)\n java.util.List<byte[]> r3 = r1.zzahc\n int r1 = r1.zzasp\n r0.f11188P = r1\n java.lang.String r14 = \"video/avc\"\n L_0x02a9:\n r1 = r3\n goto L_0x026a\n L_0x02ab:\n r18 = r11\n byte[] r1 = new byte[r4]\n byte[] r3 = r0.f11196h\n byte r4 = r3[r9]\n r1[r9] = r4\n byte r4 = r3[r6]\n r1[r6] = r4\n byte r4 = r3[r7]\n r1[r7] = r4\n byte r3 = r3[r8]\n r1[r8] = r3\n java.util.List r1 = java.util.Collections.singletonList(r1)\n r14 = r2\n goto L_0x026a\n L_0x02c7:\n r18 = r11\n com.google.android.gms.internal.ads.zzpn r1 = new com.google.android.gms.internal.ads.zzpn\n byte[] r4 = r0.f11196h\n r1.<init>((byte[]) r4)\n java.util.List r1 = m7009b(r1)\n if (r1 == 0) goto L_0x02d9\n java.lang.String r14 = \"video/wvc1\"\n goto L_0x026a\n L_0x02d9:\n java.lang.String r4 = \"Unsupported FourCC. Setting mimeType to video/x-unknown\"\n android.util.Log.w(r3, r4)\n r14 = r16\n goto L_0x026a\n L_0x02e1:\n r18 = r11\n java.lang.String r14 = \"audio/mpeg\"\n goto L_0x02ea\n L_0x02e6:\n r18 = r11\n java.lang.String r14 = \"audio/mpeg-L2\"\n L_0x02ea:\n r1 = r17\n r26 = -1\n r31 = 4096(0x1000, float:5.74E-42)\n goto L_0x0370\n L_0x02f2:\n r18 = r11\n r15 = 8192(0x2000, float:1.14794E-41)\n byte[] r1 = r0.f11196h\n java.util.List r1 = m7011e(r1)\n java.lang.String r14 = \"audio/vorbis\"\n r26 = -1\n r31 = 8192(0x2000, float:1.14794E-41)\n goto L_0x0370\n L_0x0304:\n r18 = r11\n java.lang.String r14 = \"audio/true-hd\"\n goto L_0x0268\n L_0x030a:\n r18 = r11\n com.google.android.gms.internal.ads.zzpn r1 = new com.google.android.gms.internal.ads.zzpn\n byte[] r4 = r0.f11196h\n r1.<init>((byte[]) r4)\n boolean r1 = m7010d(r1)\n if (r1 == 0) goto L_0x0347\n int r1 = r0.f11180H\n int r1 = com.google.android.gms.internal.ads.zzpt.zzbo(r1)\n if (r1 != 0) goto L_0x024e\n int r1 = r0.f11180H\n int r4 = r15.length()\n int r4 = r4 + 60\n java.lang.StringBuilder r5 = new java.lang.StringBuilder\n r5.<init>(r4)\n java.lang.String r4 = \"Unsupported PCM bit depth: \"\n r5.append(r4)\n r5.append(r1)\n java.lang.String r1 = \". Setting mimeType to \"\n r5.append(r1)\n r5.append(r15)\n java.lang.String r1 = r5.toString()\n android.util.Log.w(r3, r1)\n goto L_0x024c\n L_0x0347:\n java.lang.String r1 = \"Non-PCM MS/ACM is unsupported. Setting mimeType to \"\n int r4 = r15.length()\n if (r4 == 0) goto L_0x0354\n java.lang.String r1 = r1.concat(r15)\n goto L_0x035a\n L_0x0354:\n java.lang.String r4 = new java.lang.String\n r4.<init>(r1)\n r1 = r4\n L_0x035a:\n android.util.Log.w(r3, r1)\n goto L_0x024c\n L_0x035f:\n r18 = r11\n byte[] r1 = r0.f11196h\n if (r1 != 0) goto L_0x0368\n r1 = r17\n goto L_0x036c\n L_0x0368:\n java.util.List r1 = java.util.Collections.singletonList(r1)\n L_0x036c:\n java.lang.String r14 = \"video/mp4v-es\"\n goto L_0x026a\n L_0x0370:\n boolean r3 = r0.f11185M\n r3 = r3 | r9\n boolean r4 = r0.f11184L\n if (r4 == 0) goto L_0x0379\n r4 = 2\n goto L_0x037a\n L_0x0379:\n r4 = 0\n L_0x037a:\n r3 = r3 | r4\n boolean r4 = com.google.android.gms.internal.ads.zzpj.zzbc(r14)\n if (r4 == 0) goto L_0x03a7\n java.lang.String r19 = java.lang.Integer.toString(r44)\n r21 = 0\n r22 = -1\n int r2 = r0.f11179G\n int r4 = r0.f11181I\n com.google.android.gms.internal.ads.zzjo r5 = r0.f11197i\n java.lang.String r7 = r0.f11186N\n r20 = r14\n r23 = r31\n r24 = r2\n r25 = r4\n r27 = r1\n r28 = r5\n r29 = r3\n r30 = r7\n com.google.android.gms.internal.ads.zzhp r1 = com.google.android.gms.internal.ads.zzhp.zza(r19, r20, r21, r22, r23, r24, r25, r26, r27, r28, r29, r30)\n goto L_0x052f\n L_0x03a7:\n boolean r4 = com.google.android.gms.internal.ads.zzpj.zzbd(r14)\n if (r4 == 0) goto L_0x04d9\n int r2 = r0.f11202n\n if (r2 != 0) goto L_0x03c3\n int r2 = r0.f11200l\n r3 = -1\n if (r2 != r3) goto L_0x03b8\n int r2 = r0.f11198j\n L_0x03b8:\n r0.f11200l = r2\n int r2 = r0.f11201m\n if (r2 != r3) goto L_0x03c0\n int r2 = r0.f11199k\n L_0x03c0:\n r0.f11201m = r2\n goto L_0x03c4\n L_0x03c3:\n r3 = -1\n L_0x03c4:\n int r2 = r0.f11200l\n r4 = -1082130432(0xffffffffbf800000, float:-1.0)\n if (r2 == r3) goto L_0x03dc\n int r5 = r0.f11201m\n if (r5 == r3) goto L_0x03dc\n int r3 = r0.f11199k\n int r3 = r3 * r2\n float r2 = (float) r3\n int r3 = r0.f11198j\n int r3 = r3 * r5\n float r3 = (float) r3\n float r2 = r2 / r3\n r37 = r2\n goto L_0x03de\n L_0x03dc:\n r37 = -1082130432(0xffffffffbf800000, float:-1.0)\n L_0x03de:\n boolean r2 = r0.f11205q\n if (r2 == 0) goto L_0x04ad\n float r2 = r0.f11211w\n int r2 = (r2 > r4 ? 1 : (r2 == r4 ? 0 : -1))\n if (r2 == 0) goto L_0x049d\n float r2 = r0.f11212x\n int r2 = (r2 > r4 ? 1 : (r2 == r4 ? 0 : -1))\n if (r2 == 0) goto L_0x049d\n float r2 = r0.f11213y\n int r2 = (r2 > r4 ? 1 : (r2 == r4 ? 0 : -1))\n if (r2 == 0) goto L_0x049d\n float r2 = r0.f11214z\n int r2 = (r2 > r4 ? 1 : (r2 == r4 ? 0 : -1))\n if (r2 == 0) goto L_0x049d\n float r2 = r0.f11173A\n int r2 = (r2 > r4 ? 1 : (r2 == r4 ? 0 : -1))\n if (r2 == 0) goto L_0x049d\n float r2 = r0.f11174B\n int r2 = (r2 > r4 ? 1 : (r2 == r4 ? 0 : -1))\n if (r2 == 0) goto L_0x049d\n float r2 = r0.f11175C\n int r2 = (r2 > r4 ? 1 : (r2 == r4 ? 0 : -1))\n if (r2 == 0) goto L_0x049d\n float r2 = r0.f11176D\n int r2 = (r2 > r4 ? 1 : (r2 == r4 ? 0 : -1))\n if (r2 == 0) goto L_0x049d\n float r2 = r0.f11177E\n int r2 = (r2 > r4 ? 1 : (r2 == r4 ? 0 : -1))\n if (r2 == 0) goto L_0x049d\n float r2 = r0.f11178F\n int r2 = (r2 > r4 ? 1 : (r2 == r4 ? 0 : -1))\n if (r2 != 0) goto L_0x0420\n goto L_0x049d\n L_0x0420:\n r2 = 25\n byte[] r2 = new byte[r2]\n java.nio.ByteBuffer r3 = java.nio.ByteBuffer.wrap(r2)\n r3.put(r9)\n float r4 = r0.f11211w\n r5 = 1195593728(0x47435000, float:50000.0)\n float r4 = r4 * r5\n r6 = 1056964608(0x3f000000, float:0.5)\n float r4 = r4 + r6\n int r4 = (int) r4\n short r4 = (short) r4\n r3.putShort(r4)\n float r4 = r0.f11212x\n float r4 = r4 * r5\n float r4 = r4 + r6\n int r4 = (int) r4\n short r4 = (short) r4\n r3.putShort(r4)\n float r4 = r0.f11213y\n float r4 = r4 * r5\n float r4 = r4 + r6\n int r4 = (int) r4\n short r4 = (short) r4\n r3.putShort(r4)\n float r4 = r0.f11214z\n float r4 = r4 * r5\n float r4 = r4 + r6\n int r4 = (int) r4\n short r4 = (short) r4\n r3.putShort(r4)\n float r4 = r0.f11173A\n float r4 = r4 * r5\n float r4 = r4 + r6\n int r4 = (int) r4\n short r4 = (short) r4\n r3.putShort(r4)\n float r4 = r0.f11174B\n float r4 = r4 * r5\n float r4 = r4 + r6\n int r4 = (int) r4\n short r4 = (short) r4\n r3.putShort(r4)\n float r4 = r0.f11175C\n float r4 = r4 * r5\n float r4 = r4 + r6\n int r4 = (int) r4\n short r4 = (short) r4\n r3.putShort(r4)\n float r4 = r0.f11176D\n float r4 = r4 * r5\n float r4 = r4 + r6\n int r4 = (int) r4\n short r4 = (short) r4\n r3.putShort(r4)\n float r4 = r0.f11177E\n float r4 = r4 + r6\n int r4 = (int) r4\n short r4 = (short) r4\n r3.putShort(r4)\n float r4 = r0.f11178F\n float r4 = r4 + r6\n int r4 = (int) r4\n short r4 = (short) r4\n r3.putShort(r4)\n int r4 = r0.f11209u\n short r4 = (short) r4\n r3.putShort(r4)\n int r4 = r0.f11210v\n short r4 = (short) r4\n r3.putShort(r4)\n goto L_0x049f\n L_0x049d:\n r2 = r17\n L_0x049f:\n com.google.android.gms.internal.ads.zzpu r3 = new com.google.android.gms.internal.ads.zzpu\n int r4 = r0.f11206r\n int r5 = r0.f11208t\n int r6 = r0.f11207s\n r3.<init>(r4, r5, r6, r2)\n r40 = r3\n goto L_0x04af\n L_0x04ad:\n r40 = r17\n L_0x04af:\n java.lang.String r27 = java.lang.Integer.toString(r44)\n r29 = 0\n r30 = -1\n int r2 = r0.f11198j\n int r3 = r0.f11199k\n r34 = -1082130432(0xffffffffbf800000, float:-1.0)\n r36 = -1\n byte[] r4 = r0.f11203o\n int r5 = r0.f11204p\n com.google.android.gms.internal.ads.zzjo r6 = r0.f11197i\n r28 = r14\n r32 = r2\n r33 = r3\n r35 = r1\n r38 = r4\n r39 = r5\n r41 = r6\n com.google.android.gms.internal.ads.zzhp r1 = com.google.android.gms.internal.ads.zzhp.zza(r27, r28, r29, r30, r31, r32, r33, r34, r35, r36, r37, r38, r39, r40, r41)\n r6 = 2\n goto L_0x052f\n L_0x04d9:\n boolean r4 = r13.equals(r14)\n if (r4 == 0) goto L_0x04f9\n java.lang.String r19 = java.lang.Integer.toString(r44)\n r21 = 0\n r22 = -1\n java.lang.String r1 = r0.f11186N\n com.google.android.gms.internal.ads.zzjo r2 = r0.f11197i\n r20 = r14\n r23 = r3\n r24 = r1\n r25 = r2\n com.google.android.gms.internal.ads.zzhp r1 = com.google.android.gms.internal.ads.zzhp.zza((java.lang.String) r19, (java.lang.String) r20, (java.lang.String) r21, (int) r22, (int) r23, (java.lang.String) r24, (com.google.android.gms.internal.ads.zzjo) r25)\n L_0x04f7:\n r6 = 3\n goto L_0x052f\n L_0x04f9:\n boolean r3 = r12.equals(r14)\n if (r3 != 0) goto L_0x0516\n r3 = r18\n boolean r3 = r3.equals(r14)\n if (r3 != 0) goto L_0x0516\n boolean r2 = r2.equals(r14)\n if (r2 == 0) goto L_0x050e\n goto L_0x0516\n L_0x050e:\n com.google.android.gms.internal.ads.zzhw r1 = new com.google.android.gms.internal.ads.zzhw\n java.lang.String r2 = \"Unexpected MIME type.\"\n r1.<init>(r2)\n throw r1\n L_0x0516:\n java.lang.String r19 = java.lang.Integer.toString(r44)\n r21 = 0\n r22 = -1\n java.lang.String r2 = r0.f11186N\n com.google.android.gms.internal.ads.zzjo r3 = r0.f11197i\n r20 = r14\n r23 = r1\n r24 = r2\n r25 = r3\n com.google.android.gms.internal.ads.zzhp r1 = com.google.android.gms.internal.ads.zzhp.zza((java.lang.String) r19, (java.lang.String) r20, (java.lang.String) r21, (int) r22, (java.util.List<byte[]>) r23, (java.lang.String) r24, (com.google.android.gms.internal.ads.zzjo) r25)\n goto L_0x04f7\n L_0x052f:\n int r2 = r0.f11190b\n r3 = r43\n com.google.android.gms.internal.ads.zzkh r2 = r3.zzc(r2, r6)\n r0.f11187O = r2\n r2.zze(r1)\n return\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.android.gms.internal.ads.te0.mo14844c(com.google.android.gms.internal.ads.zzjy, int):void\");\n }", "title": "" }, { "docid": "b4cd8eab07814ddc05128afc2b25ad6e", "score": "0.55389047", "text": "public void mo3349c() {\n /* JADX: method processing error */\n/*\nError: java.lang.NullPointerException\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.searchTryCatchDominators(ProcessTryCatchRegions.java:75)\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.process(ProcessTryCatchRegions.java:45)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.postProcessRegions(RegionMakerVisitor.java:63)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.visit(RegionMakerVisitor.java:58)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:31)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:17)\n\tat jadx.core.ProcessClass.process(ProcessClass.java:34)\n\tat jadx.core.ProcessClass.processDependencies(ProcessClass.java:56)\n\tat jadx.core.ProcessClass.process(ProcessClass.java:39)\n\tat jadx.api.JadxDecompiler.processClass(JadxDecompiler.java:282)\n\tat jadx.api.JavaClass.decompile(JavaClass.java:62)\n\tat jadx.api.JadxDecompiler.lambda$appendSourcesSave$0(JadxDecompiler.java:200)\n\tat jadx.api.JadxDecompiler$$Lambda$8/79094208.run(Unknown Source)\n*/\n /*\n r3 = this;\n r0 = r3.getContext();\n r1 = new android.content.Intent;\n r2 = com.facebook.ads.AudienceNetworkActivity.class;\n r1.<init>(r0, r2);\n r3.m16645a(r1);\n r2 = 0;\n r3.m13058a(r2);\t Catch:{ ActivityNotFoundException -> 0x0026 }\n r2 = 8;\t Catch:{ ActivityNotFoundException -> 0x0026 }\n r3.setVisibility(r2);\t Catch:{ ActivityNotFoundException -> 0x0026 }\n r0.startActivity(r1);\t Catch:{ ActivityNotFoundException -> 0x0026 }\n return;\n L_0x001b:\n r0 = move-exception;\n r1 = \"Error occurred while loading fullscreen video activity.\";\n r0 = com.facebook.ads.internal.p047k.C1481b.m5215a(r0, r1);\n com.facebook.ads.internal.p047k.C1482c.m5218a(r0);\n return;\n L_0x0026:\n r2 = com.facebook.ads.InterstitialAdActivity.class;\t Catch:{ Exception -> 0x001b }\n r1.setClass(r0, r2);\t Catch:{ Exception -> 0x001b }\n r0.startActivity(r1);\t Catch:{ Exception -> 0x001b }\n return;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.facebook.ads.internal.view.p.c():void\");\n }", "title": "" }, { "docid": "c42f87e0cc1ccfea663d48a2adedaf8b", "score": "0.55289847", "text": "public void mo1392a(java.lang.String r3, int r4) {\n /*\n r2 = this;\n r0 = 1;\n if (r4 >= r0) goto L_0x001a;\n L_0x0003:\n r1 = com.onesignal.Ha.m1343c();\n if (r1 != 0) goto L_0x0027;\n L_0x0009:\n r1 = com.onesignal.sa.f1385k;\n if (r1 == r0) goto L_0x0024;\n L_0x000f:\n r1 = com.onesignal.sa.f1385k;\n r1 = com.onesignal.sa.m1689c(r1);\n if (r1 == 0) goto L_0x0027;\n L_0x0019:\n goto L_0x0024;\n L_0x001a:\n r1 = com.onesignal.sa.f1385k;\n r1 = com.onesignal.sa.m1689c(r1);\n if (r1 == 0) goto L_0x0027;\n L_0x0024:\n com.onesignal.sa.f1385k = r4;\n L_0x0027:\n com.onesignal.sa.f1349A = r3;\n com.onesignal.sa.f1350B = r0;\n r4 = com.onesignal.sa.f1380f;\n r4 = com.onesignal.sa.m1719j(r4);\n r4.m1403a(r3);\n com.onesignal.sa.m1634S();\n return;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.onesignal.ma.a(java.lang.String, int):void\");\n }", "title": "" }, { "docid": "fc2d672c9bb14a174828bc424146ff33", "score": "0.55257374", "text": "public synchronized void m8193a(long r6, int r8, long r9, int r11, byte[] r12) {\n /*\n r5 = this;\n monitor-enter(r5);\n r0 = r5.f7017o;\t Catch:{ all -> 0x00ea }\n r1 = 0;\n if (r0 == 0) goto L_0x000e;\n L_0x0006:\n r0 = r8 & 1;\n if (r0 != 0) goto L_0x000c;\n L_0x000a:\n monitor-exit(r5);\n return;\n L_0x000c:\n r5.f7017o = r1;\t Catch:{ all -> 0x00ea }\n L_0x000e:\n r0 = r5.f7018p;\t Catch:{ all -> 0x00ea }\n r0 = r0 ^ 1;\n com.google.android.exoplayer2.p126c.C2163a.m7918b(r0);\t Catch:{ all -> 0x00ea }\n r5.m8192a(r6);\t Catch:{ all -> 0x00ea }\n r0 = r5.f7008f;\t Catch:{ all -> 0x00ea }\n r2 = r5.f7014l;\t Catch:{ all -> 0x00ea }\n r0[r2] = r6;\t Catch:{ all -> 0x00ea }\n r6 = r5.f7005c;\t Catch:{ all -> 0x00ea }\n r7 = r5.f7014l;\t Catch:{ all -> 0x00ea }\n r6[r7] = r9;\t Catch:{ all -> 0x00ea }\n r6 = r5.f7006d;\t Catch:{ all -> 0x00ea }\n r7 = r5.f7014l;\t Catch:{ all -> 0x00ea }\n r6[r7] = r11;\t Catch:{ all -> 0x00ea }\n r6 = r5.f7007e;\t Catch:{ all -> 0x00ea }\n r7 = r5.f7014l;\t Catch:{ all -> 0x00ea }\n r6[r7] = r8;\t Catch:{ all -> 0x00ea }\n r6 = r5.f7009g;\t Catch:{ all -> 0x00ea }\n r7 = r5.f7014l;\t Catch:{ all -> 0x00ea }\n r6[r7] = r12;\t Catch:{ all -> 0x00ea }\n r6 = r5.f7010h;\t Catch:{ all -> 0x00ea }\n r7 = r5.f7014l;\t Catch:{ all -> 0x00ea }\n r8 = r5.f7019q;\t Catch:{ all -> 0x00ea }\n r6[r7] = r8;\t Catch:{ all -> 0x00ea }\n r6 = r5.f7004b;\t Catch:{ all -> 0x00ea }\n r7 = r5.f7014l;\t Catch:{ all -> 0x00ea }\n r8 = r5.f7020r;\t Catch:{ all -> 0x00ea }\n r6[r7] = r8;\t Catch:{ all -> 0x00ea }\n r6 = r5.f7011i;\t Catch:{ all -> 0x00ea }\n r6 = r6 + 1;\n r5.f7011i = r6;\t Catch:{ all -> 0x00ea }\n r6 = r5.f7011i;\t Catch:{ all -> 0x00ea }\n r7 = r5.f7003a;\t Catch:{ all -> 0x00ea }\n if (r6 != r7) goto L_0x00da;\n L_0x0052:\n r6 = r5.f7003a;\t Catch:{ all -> 0x00ea }\n r6 = r6 + 1000;\n r7 = new int[r6];\t Catch:{ all -> 0x00ea }\n r8 = new long[r6];\t Catch:{ all -> 0x00ea }\n r9 = new long[r6];\t Catch:{ all -> 0x00ea }\n r10 = new int[r6];\t Catch:{ all -> 0x00ea }\n r11 = new int[r6];\t Catch:{ all -> 0x00ea }\n r12 = new byte[r6][];\t Catch:{ all -> 0x00ea }\n r0 = new com.google.android.exoplayer2.Format[r6];\t Catch:{ all -> 0x00ea }\n r2 = r5.f7003a;\t Catch:{ all -> 0x00ea }\n r3 = r5.f7013k;\t Catch:{ all -> 0x00ea }\n r2 = r2 - r3;\n r3 = r5.f7005c;\t Catch:{ all -> 0x00ea }\n r4 = r5.f7013k;\t Catch:{ all -> 0x00ea }\n java.lang.System.arraycopy(r3, r4, r8, r1, r2);\t Catch:{ all -> 0x00ea }\n r3 = r5.f7008f;\t Catch:{ all -> 0x00ea }\n r4 = r5.f7013k;\t Catch:{ all -> 0x00ea }\n java.lang.System.arraycopy(r3, r4, r9, r1, r2);\t Catch:{ all -> 0x00ea }\n r3 = r5.f7007e;\t Catch:{ all -> 0x00ea }\n r4 = r5.f7013k;\t Catch:{ all -> 0x00ea }\n java.lang.System.arraycopy(r3, r4, r10, r1, r2);\t Catch:{ all -> 0x00ea }\n r3 = r5.f7006d;\t Catch:{ all -> 0x00ea }\n r4 = r5.f7013k;\t Catch:{ all -> 0x00ea }\n java.lang.System.arraycopy(r3, r4, r11, r1, r2);\t Catch:{ all -> 0x00ea }\n r3 = r5.f7009g;\t Catch:{ all -> 0x00ea }\n r4 = r5.f7013k;\t Catch:{ all -> 0x00ea }\n java.lang.System.arraycopy(r3, r4, r12, r1, r2);\t Catch:{ all -> 0x00ea }\n r3 = r5.f7010h;\t Catch:{ all -> 0x00ea }\n r4 = r5.f7013k;\t Catch:{ all -> 0x00ea }\n java.lang.System.arraycopy(r3, r4, r0, r1, r2);\t Catch:{ all -> 0x00ea }\n r3 = r5.f7004b;\t Catch:{ all -> 0x00ea }\n r4 = r5.f7013k;\t Catch:{ all -> 0x00ea }\n java.lang.System.arraycopy(r3, r4, r7, r1, r2);\t Catch:{ all -> 0x00ea }\n r3 = r5.f7013k;\t Catch:{ all -> 0x00ea }\n r4 = r5.f7005c;\t Catch:{ all -> 0x00ea }\n java.lang.System.arraycopy(r4, r1, r8, r2, r3);\t Catch:{ all -> 0x00ea }\n r4 = r5.f7008f;\t Catch:{ all -> 0x00ea }\n java.lang.System.arraycopy(r4, r1, r9, r2, r3);\t Catch:{ all -> 0x00ea }\n r4 = r5.f7007e;\t Catch:{ all -> 0x00ea }\n java.lang.System.arraycopy(r4, r1, r10, r2, r3);\t Catch:{ all -> 0x00ea }\n r4 = r5.f7006d;\t Catch:{ all -> 0x00ea }\n java.lang.System.arraycopy(r4, r1, r11, r2, r3);\t Catch:{ all -> 0x00ea }\n r4 = r5.f7009g;\t Catch:{ all -> 0x00ea }\n java.lang.System.arraycopy(r4, r1, r12, r2, r3);\t Catch:{ all -> 0x00ea }\n r4 = r5.f7010h;\t Catch:{ all -> 0x00ea }\n java.lang.System.arraycopy(r4, r1, r0, r2, r3);\t Catch:{ all -> 0x00ea }\n r4 = r5.f7004b;\t Catch:{ all -> 0x00ea }\n java.lang.System.arraycopy(r4, r1, r7, r2, r3);\t Catch:{ all -> 0x00ea }\n r5.f7005c = r8;\t Catch:{ all -> 0x00ea }\n r5.f7008f = r9;\t Catch:{ all -> 0x00ea }\n r5.f7007e = r10;\t Catch:{ all -> 0x00ea }\n r5.f7006d = r11;\t Catch:{ all -> 0x00ea }\n r5.f7009g = r12;\t Catch:{ all -> 0x00ea }\n r5.f7010h = r0;\t Catch:{ all -> 0x00ea }\n r5.f7004b = r7;\t Catch:{ all -> 0x00ea }\n r5.f7013k = r1;\t Catch:{ all -> 0x00ea }\n r7 = r5.f7003a;\t Catch:{ all -> 0x00ea }\n r5.f7014l = r7;\t Catch:{ all -> 0x00ea }\n r7 = r5.f7003a;\t Catch:{ all -> 0x00ea }\n r5.f7011i = r7;\t Catch:{ all -> 0x00ea }\n r5.f7003a = r6;\t Catch:{ all -> 0x00ea }\n goto L_0x00e8;\n L_0x00da:\n r6 = r5.f7014l;\t Catch:{ all -> 0x00ea }\n r6 = r6 + 1;\n r5.f7014l = r6;\t Catch:{ all -> 0x00ea }\n r6 = r5.f7014l;\t Catch:{ all -> 0x00ea }\n r7 = r5.f7003a;\t Catch:{ all -> 0x00ea }\n if (r6 != r7) goto L_0x00e8;\n L_0x00e6:\n r5.f7014l = r1;\t Catch:{ all -> 0x00ea }\n L_0x00e8:\n monitor-exit(r5);\n return;\n L_0x00ea:\n r6 = move-exception;\n monitor-exit(r5);\n throw r6;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.android.exoplayer2.extractor.d.b.a(long, int, long, int, byte[]):void\");\n }", "title": "" }, { "docid": "9848e8421ede648281863e38b8f5faa0", "score": "0.5525478", "text": "public HegnaNRK$PBLK21$sikker_inint STM$() {\n TRACE_BEGIN_STM$(\"sikker_inint\",1006);\n // JavaLine 32 ==> SourceLine 1007\n ok=false;\n // JavaLine 34 ==> SourceLine 1008\n while((!(ok))) {\n // JavaLine 36 ==> SourceLine 1010\n {\n TRACE_BEGIN_STM$(\"CompoundStatement1010\",1010);\n temp=blanks(((HegnaNRK$PBLK21)(CUR$.SL$)).navne_lengde);\n // JavaLine 40 ==> SourceLine 1011\n i=0;\n // JavaLine 42 ==> SourceLine 1012\n c=sysin().inchar();\n // JavaLine 44 ==> SourceLine 1013\n while((c==(((char)32)))) {\n c=sysin().inchar();\n }\n // JavaLine 48 ==> SourceLine 1014\n tegn=true;\n // JavaLine 50 ==> SourceLine 1015\n while(((c==('+'))|((c==('-'))))) {\n // JavaLine 52 ==> SourceLine 1017\n {\n TRACE_BEGIN_STM$(\"CompoundStatement1017\",1017);\n if((c==('-'))) {\n tegn=(!(tegn));\n }\n // JavaLine 58 ==> SourceLine 1018\n c=sysin().inchar();\n TRACE_END_STM$(\"CompoundStatement1017\",1018);\n }\n }\n // JavaLine 63 ==> SourceLine 1020\n if((!(tegn))) {\n // JavaLine 65 ==> SourceLine 1022\n {\n TRACE_BEGIN_STM$(\"CompoundStatement1022\",1022);\n TXT$.putchar(temp,'-');\n // JavaLine 69 ==> SourceLine 1023\n i=(i+(1));\n TRACE_END_STM$(\"CompoundStatement1022\",1023);\n }\n }\n // JavaLine 74 ==> SourceLine 1025\n while(new HegnaNRK$PBLK21$number(((HegnaNRK$PBLK21)(CUR$.SL$)),c).RESULT$) {\n // JavaLine 76 ==> SourceLine 1027\n {\n TRACE_BEGIN_STM$(\"CompoundStatement1027\",1027);\n if((i<(((HegnaNRK$PBLK21)(CUR$.SL$)).navne_lengde))) {\n TXT$.putchar(temp,c);\n }\n // JavaLine 82 ==> SourceLine 1028\n i=(i+(1));\n // JavaLine 84 ==> SourceLine 1029\n c=sysin().inchar();\n TRACE_END_STM$(\"CompoundStatement1027\",1029);\n }\n }\n // JavaLine 89 ==> SourceLine 1031\n ok=((c==(((char)32)))&((((i<(6))&(tegn))|(((i<(7))&((!(tegn))))))));\n // JavaLine 91 ==> SourceLine 1032\n if((!(ok))) {\n new HegnaNRK$PBLK21$feil(((HegnaNRK$PBLK21)(CUR$.SL$)),20);\n }\n TRACE_END_STM$(\"CompoundStatement1010\",1032);\n }\n }\n // JavaLine 98 ==> SourceLine 1034\n RESULT$=TXT$.getint(temp);\n TRACE_END_STM$(\"sikker_inint\",1034);\n EBLK();\n return(this);\n }", "title": "" }, { "docid": "461616b319656fc0d0a4306c3ee12993", "score": "0.5519003", "text": "final void b() {\n /*\n r6 = this;\n r0 = 0;\n r2 = r6.c;\n monitor-enter(r2);\n r1 = r6.g;\t Catch:{ all -> 0x0018 }\n r1 = r1.isEmpty();\t Catch:{ all -> 0x0018 }\n if (r1 != 0) goto L_0x000e;\n L_0x000c:\n monitor-exit(r2);\t Catch:{ all -> 0x0018 }\n L_0x000d:\n return;\n L_0x000e:\n r1 = r6.b;\t Catch:{ all -> 0x0018 }\n r1 = r1.isEmpty();\t Catch:{ all -> 0x0018 }\n if (r1 == 0) goto L_0x001b;\n L_0x0016:\n monitor-exit(r2);\t Catch:{ all -> 0x0018 }\n goto L_0x000d;\n L_0x0018:\n r0 = move-exception;\n monitor-exit(r2);\t Catch:{ all -> 0x0018 }\n throw r0;\n L_0x001b:\n r1 = c();\t Catch:{ all -> 0x0018 }\n if (r1 != 0) goto L_0x0039;\n L_0x0021:\n r1 = r6.b;\t Catch:{ all -> 0x0018 }\n r3 = r6.g;\t Catch:{ all -> 0x0018 }\n r1.drainTo(r3);\t Catch:{ all -> 0x0018 }\n L_0x0028:\n monitor-exit(r2);\t Catch:{ all -> 0x0018 }\n r1 = r6.f;\n r2 = r6.f;\n r3 = 2;\n r4 = r6.g;\n r2 = r2.obtainMessage(r3, r4);\n r4 = (long) r0;\n r1.sendMessageDelayed(r2, r4);\n goto L_0x000d;\n L_0x0039:\n r1 = d;\t Catch:{ all -> 0x0018 }\n r3 = r6.b;\t Catch:{ all -> 0x0018 }\n r3 = r3.size();\t Catch:{ all -> 0x0018 }\n r4 = e;\t Catch:{ all -> 0x0018 }\n r3 = java.lang.Math.min(r3, r4);\t Catch:{ all -> 0x0018 }\n L_0x0047:\n if (r0 >= r3) goto L_0x0057;\n L_0x0049:\n r4 = r6.g;\t Catch:{ all -> 0x0018 }\n r5 = r6.b;\t Catch:{ all -> 0x0018 }\n r5 = r5.remove();\t Catch:{ all -> 0x0018 }\n r4.add(r5);\t Catch:{ all -> 0x0018 }\n r0 = r0 + 1;\n goto L_0x0047;\n L_0x0057:\n r0 = r1;\n goto L_0x0028;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.uc.quark.filedownloader.ao.b():void\");\n }", "title": "" }, { "docid": "cec2c112cb9ada12ea5bd03dccd99577", "score": "0.5514278", "text": "public final boolean mo16796e(@androidx.annotation.NonNull p005b.p273o.p274w4.C5011a r8, @androidx.annotation.NonNull p005b.p273o.p274w4.p275f.C5019c r9, @androidx.annotation.Nullable java.lang.String r10, @androidx.annotation.Nullable org.json.JSONArray r11) {\n /*\n r7 = this;\n b.o.w4.f.c r0 = r8.f9684c\n boolean r0 = r9.equals(r0)\n r1 = 1\n r2 = 0\n if (r0 != 0) goto L_0x000c\n goto L_0x0079\n L_0x000c:\n b.o.w4.f.c r0 = r8.f9684c\n boolean r3 = r0.mo16777i()\n if (r3 == 0) goto L_0x001f\n java.lang.String r3 = r8.f9686e\n if (r3 == 0) goto L_0x001f\n boolean r3 = r3.equals(r10)\n if (r3 != 0) goto L_0x001f\n goto L_0x0079\n L_0x001f:\n boolean r0 = r0.mo16778k()\n if (r0 == 0) goto L_0x007b\n org.json.JSONArray r0 = r8.f9685d\n if (r0 == 0) goto L_0x007b\n int r0 = r0.length()\n if (r0 <= 0) goto L_0x007b\n org.json.JSONArray r0 = r8.f9685d\n if (r0 != 0) goto L_0x0036\n if (r11 != 0) goto L_0x0036\n goto L_0x0070\n L_0x0036:\n if (r0 == 0) goto L_0x0076\n if (r11 != 0) goto L_0x003b\n goto L_0x0076\n L_0x003b:\n int r3 = r0.length()\n int r4 = r11.length()\n if (r3 == r4) goto L_0x0046\n goto L_0x0076\n L_0x0046:\n r3 = r2\n L_0x0047:\n int r4 = r0.length() // Catch:{ JSONException -> 0x0072 }\n if (r3 >= r4) goto L_0x0070\n r4 = r2\n L_0x004e:\n int r5 = r11.length() // Catch:{ JSONException -> 0x0072 }\n if (r4 >= r5) goto L_0x0076\n java.lang.Object r5 = r0.get(r3) // Catch:{ JSONException -> 0x0072 }\n java.lang.Object r5 = p005b.p096l.p097a.p113c.p119b.p126p.C1960d.m2870y0(r5) // Catch:{ JSONException -> 0x0072 }\n java.lang.Object r6 = r11.get(r4) // Catch:{ JSONException -> 0x0072 }\n java.lang.Object r6 = p005b.p096l.p097a.p113c.p119b.p126p.C1960d.m2870y0(r6) // Catch:{ JSONException -> 0x0072 }\n boolean r5 = r5.equals(r6) // Catch:{ JSONException -> 0x0072 }\n if (r5 == 0) goto L_0x006d\n int r3 = r3 + 1\n goto L_0x0047\n L_0x006d:\n int r4 = r4 + 1\n goto L_0x004e\n L_0x0070:\n r0 = r1\n goto L_0x0077\n L_0x0072:\n r0 = move-exception\n r0.printStackTrace()\n L_0x0076:\n r0 = r2\n L_0x0077:\n if (r0 != 0) goto L_0x007b\n L_0x0079:\n r0 = r1\n goto L_0x007c\n L_0x007b:\n r0 = r2\n L_0x007c:\n if (r0 != 0) goto L_0x007f\n return r2\n L_0x007f:\n b.o.i2$k r0 = p005b.p273o.C4857i2.C4868k.DEBUG\n java.lang.String r2 = \"OSChannelTracker changed: \"\n java.lang.StringBuilder r2 = p005b.p035e.p036a.p037a.C0843a.m460u(r2)\n java.lang.String r3 = r8.mo16755f()\n r2.append(r3)\n java.lang.String r3 = \"\\nfrom:\\ninfluenceType: \"\n r2.append(r3)\n b.o.w4.f.c r3 = r8.f9684c\n r2.append(r3)\n java.lang.String r3 = \", directNotificationId: \"\n r2.append(r3)\n java.lang.String r4 = r8.f9686e\n r2.append(r4)\n java.lang.String r4 = \", indirectNotificationIds: \"\n r2.append(r4)\n org.json.JSONArray r5 = r8.f9685d\n r2.append(r5)\n java.lang.String r5 = \"\\nto:\\ninfluenceType: \"\n r2.append(r5)\n r2.append(r9)\n r2.append(r3)\n r2.append(r10)\n r2.append(r4)\n r2.append(r11)\n java.lang.String r2 = r2.toString()\n r3 = 0\n p005b.p273o.C4857i2.m8933a(r0, r2, r3)\n r8.f9684c = r9\n r8.f9686e = r10\n r8.f9685d = r11\n r8.mo16750b()\n java.lang.StringBuilder r8 = new java.lang.StringBuilder\n r8.<init>()\n java.lang.String r9 = \"Trackers changed to: \"\n r8.append(r9)\n b.o.w4.e r9 = r7.f9744a\n java.util.List r9 = r9.mo16766a()\n java.lang.String r9 = r9.toString()\n r8.append(r9)\n java.lang.String r8 = r8.toString()\n p005b.p273o.C4857i2.m8933a(r0, r8, r3)\n return r1\n */\n throw new UnsupportedOperationException(\"Method not decompiled: p005b.p273o.C5041y1.mo16796e(b.o.w4.a, b.o.w4.f.c, java.lang.String, org.json.JSONArray):boolean\");\n }", "title": "" }, { "docid": "ec98fd5a2654fe54d0eaed28f218de2b", "score": "0.55049336", "text": "@Test(timeout = 4000)\n public void test29() throws Throwable {\n ClassWriter classWriter0 = new ClassWriter(78);\n String[] stringArray0 = new String[0];\n MethodWriter methodWriter0 = new MethodWriter(classWriter0, 2, \"Deprecated\", \"R*(*)[\", \"AAAAAAAAAAAAAAAABCKLLDDDDDEEEEEEEEEEEEEEEEEEEEAAAAAAAADDDDDEEEEEEEEEEEEEEEEEEEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAMAAAAAAAAAAAAAAAAAAAAIIIIIIIIIIIIIIIDNOAAAAAAGGGGGGGHHFBFAAFFAAQPIIJJIIIIIIIIIIIIIIIIII\", stringArray0, true, true);\n methodWriter0.visitFieldInsn(1, \"Deprecated\", \".s.IFJDCS\", \"^B,<X`QG%\");\n int int0 = (-1603);\n int[] intArray0 = new int[0];\n methodWriter0.exceptions = intArray0;\n String[] stringArray1 = new String[4];\n methodWriter0.visitMultiANewArrayInsn(\"AAAAAAAAAAAAAAAABCKLLDDDDDEEEEEEEEEEEEEEEEEEEEAAAAAAAADDDDDEEEEEEEEEEEEEEEEEEEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAMAAAAAAAAAAAAAAAAAAAAIIIIIIIIIIIIIIIDNOAAAAAAGGGGGGGHHFBFAAFFAAQPIIJJIIIIIIIIIIIIIIIIII\", 78);\n stringArray1[0] = \"\";\n stringArray1[1] = \"AAAAAAAAAAAAAAAABCKLLDDDDDEEEEEEEEEEEEEEEEEEEEAAAAAAAADDDDDEEEEEEEEEEEEEEEEEEEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAMAAAAAAAAAAAAAAAAAAAAIIIIIIIIIIIIIIIDNOAAAAAAGGGGGGGHHFBFAAFFAAQPIIJJIIIIIIIIIIIIIIIIII\";\n stringArray1[2] = \".s.IFJDCS\";\n stringArray1[3] = \"AAAAAAAAAAAAAAAABCKLLDDDDDEEEEEEEEEEEEEEEEEEEEAAAAAAAADDDDDEEEEEEEEEEEEEEEEEEEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAMAAAAAAAAAAAAAAAAAAAAIIIIIIIIIIIIIIIDNOAAAAAAGGGGGGGHHFBFAAFFAAQPIIJJIIIIIIIIIIIIIIIIII\";\n MethodWriter methodWriter1 = null;\n try {\n methodWriter1 = new MethodWriter(classWriter0, (-1603), \".s.IFJDCS\", \"^B,<X`QG%\", \"Deprecated\", stringArray1, false, true);\n fail(\"Expecting exception: StringIndexOutOfBoundsException\");\n \n } catch(StringIndexOutOfBoundsException e) {\n }\n }", "title": "" }, { "docid": "19e6446e2472b378397ac864be2e07eb", "score": "0.54998493", "text": "@org.jetbrains.annotations.Nullable\n /* Code decompiled incorrectly, please refer to instructions dump. */\n public java.lang.Object emit(java.lang.Object r9, @org.jetbrains.annotations.NotNull kotlin.coroutines.Continuation r10) {\n /*\n r8 = this;\n boolean r0 = r10 instanceof kotlinx.coroutines.flow.FlowKt__TransformKt$scan$$inlined$unsafeFlow$1$lambda$1.C47521\n if (r0 == 0) goto L_0x0014\n r0 = r10\n kotlinx.coroutines.flow.FlowKt__TransformKt$scan$$inlined$unsafeFlow$1$lambda$1$1 r0 = (kotlinx.coroutines.flow.FlowKt__TransformKt$scan$$inlined$unsafeFlow$1$lambda$1.C47521) r0\n int r1 = r0.label\n r2 = -2147483648(0xffffffff80000000, float:-0.0)\n r1 = r1 & r2\n if (r1 == 0) goto L_0x0014\n int r10 = r0.label\n int r10 = r10 - r2\n r0.label = r10\n goto L_0x0019\n L_0x0014:\n kotlinx.coroutines.flow.FlowKt__TransformKt$scan$$inlined$unsafeFlow$1$lambda$1$1 r0 = new kotlinx.coroutines.flow.FlowKt__TransformKt$scan$$inlined$unsafeFlow$1$lambda$1$1\n r0.<init>(r8, r10)\n L_0x0019:\n java.lang.Object r10 = r0.result\n java.lang.Object r1 = kotlin.coroutines.intrinsics.IntrinsicsKt.getCOROUTINE_SUSPENDED()\n int r2 = r0.label\n r3 = 2\n r4 = 1\n if (r2 == 0) goto L_0x0055\n if (r2 == r4) goto L_0x0041\n if (r2 != r3) goto L_0x0039\n java.lang.Object r9 = r0.L$3\n java.lang.Object r9 = r0.L$2\n kotlin.coroutines.Continuation r9 = (kotlin.coroutines.Continuation) r9\n java.lang.Object r9 = r0.L$1\n java.lang.Object r9 = r0.L$0\n kotlinx.coroutines.flow.FlowKt__TransformKt$scan$$inlined$unsafeFlow$1$lambda$1 r9 = (kotlinx.coroutines.flow.FlowKt__TransformKt$scan$$inlined$unsafeFlow$1$lambda$1) r9\n kotlin.ResultKt.throwOnFailure(r10)\n goto L_0x0098\n L_0x0039:\n java.lang.IllegalStateException r9 = new java.lang.IllegalStateException\n java.lang.String r10 = \"call to 'resume' before 'invoke' with coroutine\"\n r9.<init>(r10)\n throw r9\n L_0x0041:\n java.lang.Object r9 = r0.L$4\n kotlin.jvm.internal.Ref$ObjectRef r9 = (kotlin.jvm.internal.Ref.ObjectRef) r9\n java.lang.Object r2 = r0.L$3\n java.lang.Object r4 = r0.L$2\n kotlin.coroutines.Continuation r4 = (kotlin.coroutines.Continuation) r4\n java.lang.Object r5 = r0.L$1\n java.lang.Object r6 = r0.L$0\n kotlinx.coroutines.flow.FlowKt__TransformKt$scan$$inlined$unsafeFlow$1$lambda$1 r6 = (kotlinx.coroutines.flow.FlowKt__TransformKt$scan$$inlined$unsafeFlow$1$lambda$1) r6\n kotlin.ResultKt.throwOnFailure(r10)\n goto L_0x007f\n L_0x0055:\n kotlin.ResultKt.throwOnFailure(r10)\n r10 = r0\n kotlin.coroutines.Continuation r10 = (kotlin.coroutines.Continuation) r10\n kotlin.jvm.internal.Ref$ObjectRef r2 = r8.$accumulator$inlined\n kotlinx.coroutines.flow.FlowKt__TransformKt$scan$$inlined$unsafeFlow$1 r5 = r8.this$0\n kotlin.jvm.functions.Function3 r5 = r5.$operation$inlined\n kotlin.jvm.internal.Ref$ObjectRef r6 = r8.$accumulator$inlined\n T r6 = r6.element\n r0.L$0 = r8\n r0.L$1 = r9\n r0.L$2 = r10\n r0.L$3 = r9\n r0.L$4 = r2\n r0.label = r4\n java.lang.Object r4 = r5.invoke(r6, r9, r0)\n if (r4 != r1) goto L_0x0078\n return r1\n L_0x0078:\n r6 = r8\n r5 = r9\n r9 = r2\n r2 = r5\n r7 = r4\n r4 = r10\n r10 = r7\n L_0x007f:\n r9.element = r10\n kotlinx.coroutines.flow.FlowCollector r9 = r6.$this_unsafeFlow$inlined\n kotlin.jvm.internal.Ref$ObjectRef r10 = r6.$accumulator$inlined\n T r10 = r10.element\n r0.L$0 = r6\n r0.L$1 = r5\n r0.L$2 = r4\n r0.L$3 = r2\n r0.label = r3\n java.lang.Object r9 = r9.emit(r10, r0)\n if (r9 != r1) goto L_0x0098\n return r1\n L_0x0098:\n kotlin.Unit r9 = kotlin.Unit.INSTANCE\n return r9\n */\n throw new UnsupportedOperationException(\"Method not decompiled: kotlinx.coroutines.flow.FlowKt__TransformKt$scan$$inlined$unsafeFlow$1$lambda$1.emit(java.lang.Object, kotlin.coroutines.Continuation):java.lang.Object\");\n }", "title": "" }, { "docid": "c3a77625a38c348cfc18794e9d32339d", "score": "0.5496566", "text": "private void b() {\n /*\n r11 = this;\n com.jumio.nv.utils.NetverifyLogUtils.init();\n r0 = r11.c;\n r0 = r0 instanceof com.jumio.nv.models.NetverifyOfflineCredentialsModel;\n if (r0 != 0) goto L_0x000d;\n L_0x0009:\n com.jumio.analytics.JumioAnalytics.start();\n goto L_0x0010;\n L_0x000d:\n com.jumio.analytics.JumioAnalytics.disable();\n L_0x0010:\n r0 = com.jumio.analytics.JumioAnalytics.getSessionId();\n r1 = com.jumio.analytics.DismissType.INSTANCE_CREATED;\n r2 = 0;\n r0 = com.jumio.analytics.MobileEvents.sdkLifecycle(r0, r1, r2);\n com.jumio.analytics.JumioAnalytics.add(r0);\n r0 = r11.h;\n if (r0 != 0) goto L_0x0029;\n L_0x0022:\n r0 = new java.util.ArrayList;\n r0.<init>();\n r11.h = r0;\n L_0x0029:\n r0 = r11.h;\n r0 = r0.size();\n if (r0 != 0) goto L_0x004d;\n L_0x0031:\n r0 = r11.h;\n r1 = com.jumio.nv.data.document.NVDocumentType.PASSPORT;\n r0.add(r1);\n r0 = r11.h;\n r1 = com.jumio.nv.data.document.NVDocumentType.VISA;\n r0.add(r1);\n r0 = r11.h;\n r1 = com.jumio.nv.data.document.NVDocumentType.IDENTITY_CARD;\n r0.add(r1);\n r0 = r11.h;\n r1 = com.jumio.nv.data.document.NVDocumentType.DRIVER_LICENSE;\n r0.add(r1);\n L_0x004d:\n r0 = r11.d;\n r1 = com.jumio.nv.models.MerchantSettingsModel.class;\n r0 = com.jumio.persistence.DataAccess.load(r0, r1);\n r0 = (com.jumio.nv.models.MerchantSettingsModel) r0;\n r1 = 1;\n r3 = 0;\n if (r0 == 0) goto L_0x009b;\n L_0x005b:\n r4 = r0.getSupportedDocumentTypes();\n if (r4 == 0) goto L_0x009b;\n L_0x0061:\n r4 = r11.h;\n r4 = r4.size();\n r5 = r0.getSupportedDocumentTypes();\n r5 = r5.size();\n if (r4 != r5) goto L_0x0073;\n L_0x0071:\n r4 = 1;\n goto L_0x0074;\n L_0x0073:\n r4 = 0;\n L_0x0074:\n r5 = r11.h;\n r5 = r5.iterator();\n L_0x007a:\n r6 = r5.hasNext();\n if (r6 == 0) goto L_0x0091;\n L_0x0080:\n r6 = r5.next();\n r6 = (com.jumio.nv.data.document.NVDocumentType) r6;\n r7 = r0.getSupportedDocumentTypes();\n r6 = r7.contains(r6);\n if (r6 != 0) goto L_0x007a;\n L_0x0090:\n r4 = 0;\n L_0x0091:\n if (r4 != 0) goto L_0x00a2;\n L_0x0093:\n r0 = r11.d;\n r4 = com.jumio.nv.models.ServerSettingsModel.class;\n com.jumio.persistence.DataAccess.delete(r0, r4);\n goto L_0x00a2;\n L_0x009b:\n r0 = r11.d;\n r4 = com.jumio.nv.models.ServerSettingsModel.class;\n com.jumio.persistence.DataAccess.delete(r0, r4);\n L_0x00a2:\n r0 = r11.d;\n r4 = com.jumio.nv.models.MerchantSettingsModel.class;\n com.jumio.persistence.DataAccess.delete(r0, r4);\n r0 = r11.d;\n r4 = com.jumio.nv.models.SelectionModel.class;\n com.jumio.persistence.DataAccess.delete(r0, r4);\n r0 = r11.d;\n r4 = com.jumio.nv.liveness.extraction.LivenessDataModel.class;\n com.jumio.persistence.DataAccess.delete(r0, r4);\n r0 = r11.d;\n r4 = com.jumio.nv.models.InitiateModel.class;\n com.jumio.persistence.DataAccess.delete(r0, r4);\n r0 = r11.d;\n r4 = com.jumio.nv.benchmark.BenchmarkAlgorithm.DeviceCategory.class;\n com.jumio.persistence.DataAccess.delete(r0, r4);\n r0 = r11.d;\n r4 = com.jumio.nv.models.NVScanPartModel.class;\n com.jumio.persistence.DataAccess.delete(r0, r4);\n r0 = r11.d;\n r4 = \"fallbackScanPartModel\";\n com.jumio.persistence.DataAccess.delete(r0, r4);\n r0 = r11.d;\n r4 = com.jumio.commons.camera.PreviewProperties.class;\n com.jumio.persistence.DataAccess.delete(r0, r4);\n r0 = r11.d;\n r4 = com.jumio.nv.models.BackendModel.class;\n com.jumio.persistence.DataAccess.delete(r0, r4);\n r0 = r11.d;\n r4 = com.jumio.nv.models.DocumentDataModel.class;\n com.jumio.persistence.DataAccess.delete(r0, r4);\n r0 = r11.d;\n r4 = com.jumio.nv.models.OfflineDataModel.class;\n com.jumio.persistence.DataAccess.delete(r0, r4);\n r0 = r11.b;\n r4 = r11.g;\n r0.setCountryIsoCode(r4);\n r0 = r11.b;\n r4 = r11.g;\n r4 = r4.length();\n if (r4 == 0) goto L_0x0102;\n L_0x0100:\n r4 = 1;\n goto L_0x0103;\n L_0x0102:\n r4 = 0;\n L_0x0103:\n r0.setCountryPreSelected(r4);\n r0 = r11.h;\n r0 = r0.size();\n if (r0 != r1) goto L_0x011b;\n L_0x010e:\n r0 = r11.b;\n r4 = r11.h;\n r4 = r4.get(r3);\n r4 = (com.jumio.nv.data.document.NVDocumentType) r4;\n r0.setPreSelectedDocumentType(r4);\n L_0x011b:\n r0 = r11.b;\n r4 = r11.h;\n r0.setSupportedDocumentTypes(r4);\n r0 = r11.b;\n r4 = r11.i;\n r0.setDocumentVariant(r4);\n r0 = r11.b;\n r4 = r11.i;\n if (r4 == 0) goto L_0x0131;\n L_0x012f:\n r4 = 1;\n goto L_0x0132;\n L_0x0131:\n r4 = 0;\n L_0x0132:\n r0.setDocumentVariantPreSelected(r4);\n r0 = r11.b;\n r4 = r11.k;\n if (r4 == 0) goto L_0x0145;\n L_0x013b:\n r4 = r11.d;\n r4 = com.jumio.commons.camera.JumioCameraManager.hasFrontFacingCamera(r4);\n if (r4 == 0) goto L_0x0145;\n L_0x0143:\n r4 = 1;\n goto L_0x0146;\n L_0x0145:\n r4 = 0;\n L_0x0146:\n r0.setFaceMatchEnabled(r4);\n r0 = r11.b;\n r4 = r11.l;\n if (r4 != 0) goto L_0x015a;\n L_0x014f:\n r4 = r11.d;\n r4 = com.jumio.commons.camera.JumioCameraManager.hasFrontFacingCamera(r4);\n if (r4 != 0) goto L_0x0158;\n L_0x0157:\n goto L_0x015a;\n L_0x0158:\n r4 = 0;\n goto L_0x015b;\n L_0x015a:\n r4 = 1;\n L_0x015b:\n r0.setFaceMatchSet(r4);\n r0 = r11.b;\n r4 = r11.j;\n r0.setMerchantScanReference(r4);\n r0 = r11.b;\n r4 = r11.e;\n r0.setMerchantReportingCriteria(r4);\n r0 = r11.b;\n r4 = r11.f;\n r0.setCustomerId(r4);\n r0 = r11.b;\n r4 = r11.m;\n r0.setRequireVerification(r4);\n r0 = r11.b;\n r4 = r11.n;\n r0.setCameraFacingFront(r4);\n r0 = r11.b;\n r4 = r11.p;\n r0.setCallbackUrl(r4);\n r0 = r11.b;\n r4 = r11.o;\n r0.setDataExtractionOnMobileOnly(r4);\n r0 = r11.b;\n r4 = r11.q;\n r0.setEnableEMRTD(r4);\n r0 = r11.b;\n r4 = r11.r;\n r0.setSendDebugInfo(r4);\n r0 = r11.b;\n r4 = r11.s;\n r0.setOutputDirectory(r4);\n r0 = r11.b;\n r4 = r11.t;\n r0.setOutputFormat(r4);\n r0 = r11.b;\n r4 = r11.u;\n r0.setOutputLevel(r4);\n r0 = r11.c;\n r0 = r0 instanceof com.jumio.nv.models.NetverifyOfflineCredentialsModel;\n if (r0 == 0) goto L_0x01c2;\n L_0x01b8:\n r0 = r11.b;\n r0.setRequireVerification(r3);\n r0 = r11.b;\n r0.setDataExtractionOnMobileOnly(r1);\n L_0x01c2:\n r0 = r11.c;\n r4 = r0 instanceof com.jumio.nv.models.NetverifyCredentialsModel;\n if (r4 == 0) goto L_0x01cd;\n L_0x01c8:\n r0 = (com.jumio.nv.models.NetverifyCredentialsModel) r0;\n r0.setOfflineSwitch(r3);\n L_0x01cd:\n r0 = 303; // 0x12f float:4.25E-43 double:1.497E-321;\n r4 = r11.r;\n com.jumio.analytics.JumioAnalytics.allowEvent(r0, r4);\n r0 = r11.d;\n r0 = r0.getPackageManager();\n r4 = \"android.hardware.nfc\";\n r8 = r0.hasSystemFeature(r4);\n r0 = r11.d;\n r0 = android.nfc.NfcAdapter.getDefaultAdapter(r0);\n if (r0 == 0) goto L_0x01f0;\n L_0x01e8:\n r0 = r0.isEnabled();\n if (r0 == 0) goto L_0x01f0;\n L_0x01ee:\n r9 = 1;\n goto L_0x01f1;\n L_0x01f0:\n r9 = 0;\n L_0x01f1:\n r0 = r11.d;\t Catch:{ Exception -> 0x0228 }\n r1 = \"connectivity\";\n r0 = r0.getSystemService(r1);\t Catch:{ Exception -> 0x0228 }\n r0 = (android.net.ConnectivityManager) r0;\t Catch:{ Exception -> 0x0228 }\n r0 = r0.getActiveNetworkInfo();\t Catch:{ Exception -> 0x0228 }\n r1 = \"CELLULAR\";\n if (r0 == 0) goto L_0x0214;\n L_0x0203:\n r4 = r0.isConnected();\t Catch:{ Exception -> 0x0228 }\n if (r4 == 0) goto L_0x0214;\n L_0x0209:\n r0 = r0.getType();\t Catch:{ Exception -> 0x0228 }\n if (r0 != 0) goto L_0x0210;\n L_0x020f:\n goto L_0x0212;\n L_0x0210:\n r1 = \"WIFI\";\n L_0x0212:\n r2 = r1;\n goto L_0x0228;\n L_0x0214:\n r0 = r11.d;\t Catch:{ Exception -> 0x0228 }\n r4 = \"phone\";\n r0 = r0.getSystemService(r4);\t Catch:{ Exception -> 0x0228 }\n r0 = (android.telephony.TelephonyManager) r0;\t Catch:{ Exception -> 0x0228 }\n r0 = r0.getDataState();\t Catch:{ Exception -> 0x0228 }\n r4 = 2;\n if (r0 != r4) goto L_0x0226;\n L_0x0225:\n goto L_0x0212;\n L_0x0226:\n r1 = r2;\n goto L_0x0212;\n L_0x0228:\n r7 = r2;\n r0 = \"2.14.0 (69)\";\n r1 = \" (\";\n r1 = r0.indexOf(r1);\n r6 = r0.substring(r3, r1);\n r5 = com.jumio.analytics.JumioAnalytics.getSessionId();\n r0 = r11.d;\n r10 = com.jumio.commons.utils.DeviceRotationManager.isTabletDevice(r0);\n r0 = com.jumio.analytics.MobileEvents.mobileDeviceInformation(r5, r6, r7, r8, r9, r10);\n com.jumio.analytics.JumioAnalytics.add(r0);\n r0 = com.jumio.core.plugins.PluginRegistry.PluginMode.NFC;\n r0 = com.jumio.core.plugins.PluginRegistry.getPlugin(r0);\n if (r0 != 0) goto L_0x0253;\n L_0x024e:\n r0 = r11.b;\n r0.setEnableEMRTD(r3);\n L_0x0253:\n r0 = \"org.jmrtd\";\n r0 = java.util.logging.Logger.getLogger(r0);\n r1 = java.util.logging.Level.OFF;\n r0.setLevel(r1);\n r0 = r11.d;\n r1 = com.jumio.nv.models.MerchantSettingsModel.class;\n r2 = r11.b;\n com.jumio.persistence.DataAccess.update(r0, r1, r2);\n return;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.jumio.nv.NetverifySDK.b():void\");\n }", "title": "" }, { "docid": "96884d76abd49d921e5fec37778eb801", "score": "0.54964095", "text": "@Test(timeout = 4000)\n public void test113() throws Throwable {\n ClassWriter classWriter0 = new ClassWriter(1139);\n MethodWriter methodWriter0 = new MethodWriter(classWriter0, 7, \"Synthetic\", \"Synthetic\", \"orf~OZ2F\", (String[]) null, false, false);\n methodWriter0.visitFrame(7, 3360, (Object[]) null, 2, (Object[]) null);\n Label[] labelArray0 = new Label[3];\n // Undeclared exception!\n try { \n methodWriter0.visitFrame(1, 1, labelArray0, 3360, (Object[]) null);\n fail(\"Expecting exception: IllegalStateException\");\n \n } catch(IllegalStateException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"org.objectweb.asm.jip.MethodWriter\", e);\n }\n }", "title": "" }, { "docid": "eae863e5d6939dee6c9d660007260b96", "score": "0.5476074", "text": "private void wholestagecodegen_init_1() {\n/* 1290 */ scan_colInstance13 = null;\n/* 1291 */ scan_colInstance14 = null;\n/* 1292 */ scan_colInstance15 = null;\n/* 1293 */ scan_colInstance16 = null;\n/* 1294 */ scan_colInstance17 = null;\n/* 1295 */ scan_result = new UnsafeRow(18);\n/* 1296 */ this.scan_holder = new org.apache.spark.sql.catalyst.expressions.codegen.BufferHolder(scan_result, 288);\n/* 1297 */ this.scan_rowWriter = new org.apache.spark.sql.catalyst.expressions.codegen.UnsafeRowWriter(scan_holder, 18);\n/* 1298 */ this.filter_numOutputRows = (org.apache.spark.sql.execution.metric.SQLMetric) references[5];\n/* 1299 */ filter_result = new UnsafeRow(18);\n/* 1300 */ this.filter_holder = new org.apache.spark.sql.catalyst.expressions.codegen.BufferHolder(filter_result, 288);\n/* 1301 */ this.filter_rowWriter = new org.apache.spark.sql.catalyst.expressions.codegen.UnsafeRowWriter(filter_holder, 18);\n/* 1302 */ project_result = new UnsafeRow(18);\n/* 1303 */ this.project_holder = new org.apache.spark.sql.catalyst.expressions.codegen.BufferHolder(project_result, 288);\n/* 1304 */ this.project_rowWriter = new org.apache.spark.sql.catalyst.expressions.codegen.UnsafeRowWriter(project_holder, 18);\n/* 1305 */ this.bhj_broadcast = (org.apache.spark.broadcast.TorrentBroadcast) references[6];\n/* 1306 */\n/* 1307 */ }", "title": "" }, { "docid": "85c4425cc467d3f4c3a9b331c9ad9f57", "score": "0.54725945", "text": "protected p000a.p001a.p002a.p003a.p013e.C0055b m2600d() {\n /* JADX: method processing error */\n/*\nError: java.lang.NullPointerException\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.searchTryCatchDominators(ProcessTryCatchRegions.java:75)\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.process(ProcessTryCatchRegions.java:45)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.postProcessRegions(RegionMakerVisitor.java:63)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.visit(RegionMakerVisitor.java:58)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:31)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:17)\n\tat jadx.core.ProcessClass.process(ProcessClass.java:34)\n\tat jadx.core.ProcessClass.processDependencies(ProcessClass.java:56)\n\tat jadx.core.ProcessClass.process(ProcessClass.java:39)\n\tat jadx.api.JadxDecompiler.processClass(JadxDecompiler.java:282)\n\tat jadx.api.JavaClass.decompile(JavaClass.java:62)\n\tat jadx.api.JadxDecompiler.lambda$appendSourcesSave$0(JadxDecompiler.java:200)\n\tat jadx.api.JadxDecompiler$$Lambda$8/293907205.run(Unknown Source)\n*/\n /*\n r4 = this;\n r0 = p000a.p001a.p002a.p003a.p022i.p025c.C0121p.m353a();\n r1 = r4.m2613q();\n r2 = \"http.connection-manager.factory-class-name\";\n r2 = r1.mo1602a(r2);\n r2 = (java.lang.String) r2;\n if (r2 == 0) goto L_0x004a;\n L_0x0012:\n r3 = java.lang.Class.forName(r2);\t Catch:{ ClassNotFoundException -> 0x0033, IllegalAccessException -> 0x0028, InstantiationException -> 0x001d }\n r3 = r3.newInstance();\t Catch:{ ClassNotFoundException -> 0x0033, IllegalAccessException -> 0x0028, InstantiationException -> 0x001d }\n r3 = (p000a.p001a.p002a.p003a.p013e.C0061c) r3;\t Catch:{ ClassNotFoundException -> 0x0033, IllegalAccessException -> 0x0028, InstantiationException -> 0x001d }\n goto L_0x004b;\n L_0x001d:\n r0 = move-exception;\n r1 = new java.lang.InstantiationError;\n r0 = r0.getMessage();\n r1.<init>(r0);\n throw r1;\n L_0x0028:\n r0 = move-exception;\n r1 = new java.lang.IllegalAccessError;\n r0 = r0.getMessage();\n r1.<init>(r0);\n throw r1;\n L_0x0033:\n r0 = new java.lang.IllegalStateException;\n r1 = new java.lang.StringBuilder;\n r1.<init>();\n r3 = \"Invalid class name: \";\n r1.append(r3);\n r1.append(r2);\n r1 = r1.toString();\n r0.<init>(r1);\n throw r0;\n L_0x004a:\n r3 = 0;\n L_0x004b:\n if (r3 == 0) goto L_0x0052;\n L_0x004d:\n r0 = r3.m180a(r1, r0);\n goto L_0x0058;\n L_0x0052:\n r1 = new a.a.a.a.i.c.d;\n r1.<init>(r0);\n r0 = r1;\n L_0x0058:\n return r0;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: a.a.a.a.i.b.a.d():a.a.a.a.e.b\");\n }", "title": "" }, { "docid": "29c14284b66375d69e509a93a1bae751", "score": "0.54637253", "text": "@Test(timeout = 4000)\n public void test084() throws Throwable {\n ClassWriter classWriter0 = new ClassWriter(28);\n classWriter0.newInteger(64);\n ClassWriter classWriter1 = new ClassWriter(28);\n String[] stringArray0 = new String[1];\n stringArray0[0] = \"~)3/2\";\n MethodWriter methodWriter0 = new MethodWriter(classWriter1, 28, \"@u3Ln{Lay?Yi\", \"~)3/2\", \"~)3/2\", stringArray0, true, false);\n classWriter0.firstMethod = methodWriter0;\n methodWriter0.visitLdcInsn(\"~)3/2\");\n Frame frame0 = new Frame();\n Label label0 = frame0.owner;\n classWriter0.firstMethod.visitTryCatchBlock((Label) null, (Label) null, (Label) null, \"~)3/2\");\n classWriter0.visitSource(\"m%%J\\\"C8QBsYM*t}9\", \"$`neN\");\n methodWriter0.visitMaxs((-1), 1957);\n }", "title": "" }, { "docid": "aa3d5f2a38eb133dbf3801ce82191f4c", "score": "0.5455426", "text": "static final void aa(he r8, int r9, int r10, int r11, int r12, int r13, int r14, int r15) {\n /*\n if (r10 < 0) goto L_0x0131;\n L_0x0002:\n r0 = 104; // 0x68 float:1.46E-43 double:5.14E-322;\n if (r10 >= r0) goto L_0x0131;\n L_0x0006:\n if (r11 < 0) goto L_0x0131;\n L_0x0008:\n r0 = 104; // 0x68 float:1.46E-43 double:5.14E-322;\n if (r11 >= r0) goto L_0x0131;\n L_0x000c:\n r0 = defpackage.fb.ac;\t Catch:{ RuntimeException -> 0x0096 }\n r0 = r0[r9];\t Catch:{ RuntimeException -> 0x0096 }\n r0 = r0[r10];\t Catch:{ RuntimeException -> 0x0096 }\n r1 = 0;\n r0[r11] = r1;\t Catch:{ RuntimeException -> 0x0096 }\n L_0x0015:\n r0 = -310118664; // 0xffffffffed83f6f8 float:-5.105138E27 double:NaN;\n r0 = r8.au(r0);\t Catch:{ RuntimeException -> 0x0096 }\n if (r0 != 0) goto L_0x0079;\n L_0x001e:\n if (r9 != 0) goto L_0x0111;\n L_0x0020:\n r0 = defpackage.fb.aj;\t Catch:{ RuntimeException -> 0x0096 }\n r1 = 0;\n r0 = r0[r1];\t Catch:{ RuntimeException -> 0x0096 }\n r1 = r0[r10];\t Catch:{ RuntimeException -> 0x0096 }\n r0 = 932731; // 0xe3b7b float:1.307035E-39 double:4.608303E-318;\n r0 = r0 + r10;\n r0 = r0 + r12;\n r2 = 556238; // 0x87cce float:7.79455E-40 double:2.74818E-318;\n r2 = r2 + r11;\n r2 = r2 + r13;\n r3 = 45365; // 0xb135 float:6.357E-41 double:2.24133E-319;\n r3 = r3 + r0;\n r4 = 91923; // 0x16713 float:1.28812E-40 double:4.5416E-319;\n r4 = r4 + r2;\n r5 = 4;\n r6 = -117465201; // 0xfffffffff8ff9f8f float:-4.1477248E34 double:NaN;\n r3 = defpackage.bl.aw(r3, r4, r5, r6);\t Catch:{ RuntimeException -> 0x0096 }\n r3 = r3 + -128;\n r4 = r0 + 10294;\n r5 = 37821; // 0x93bd float:5.2999E-41 double:1.8686E-319;\n r5 = r5 + r2;\n r6 = 2;\n r7 = -840997793; // 0xffffffffcddf645f float:-4.68487136E8 double:NaN;\n r4 = defpackage.bl.aw(r4, r5, r6, r7);\t Catch:{ RuntimeException -> 0x0096 }\n r4 = r4 + -128;\n r4 = r4 >> 1;\n r3 = r3 + r4;\n r4 = 1;\n r5 = -333967346; // 0xffffffffec18100e float:-7.3533016E26 double:NaN;\n r0 = defpackage.bl.aw(r0, r2, r4, r5);\t Catch:{ RuntimeException -> 0x0096 }\n r0 = r0 + -128;\n r0 = r0 >> 2;\n r0 = r0 + r3;\n r2 = 4599075939470750515; // 0x3fd3333333333333 float:4.172325E-8 double:0.3;\n r4 = (double) r0;\t Catch:{ RuntimeException -> 0x0096 }\n r2 = r2 * r4;\n r0 = (int) r2;\t Catch:{ RuntimeException -> 0x0096 }\n r0 = r0 + 35;\n r2 = 10;\n if (r0 >= r2) goto L_0x00b1;\n L_0x0071:\n r0 = 10;\n L_0x0073:\n r0 = -r0;\n r0 = r0 * 8;\n r1[r11] = r0;\t Catch:{ RuntimeException -> 0x0096 }\n L_0x0078:\n return;\n L_0x0079:\n r1 = 1;\n if (r0 != r1) goto L_0x00b8;\n L_0x007c:\n r0 = -310118664; // 0xffffffffed83f6f8 float:-5.105138E27 double:NaN;\n r0 = r8.au(r0);\t Catch:{ RuntimeException -> 0x0096 }\n r1 = 1;\n if (r0 != r1) goto L_0x0087;\n L_0x0086:\n r0 = 0;\n L_0x0087:\n if (r9 != 0) goto L_0x00e8;\n L_0x0089:\n r1 = defpackage.fb.aj;\t Catch:{ RuntimeException -> 0x0096 }\n r2 = 0;\n r1 = r1[r2];\t Catch:{ RuntimeException -> 0x0096 }\n r1 = r1[r10];\t Catch:{ RuntimeException -> 0x0096 }\n r0 = -r0;\n r0 = r0 * 8;\n r1[r11] = r0;\t Catch:{ RuntimeException -> 0x0096 }\n goto L_0x0078;\n L_0x0096:\n r0 = move-exception;\n r1 = new java.lang.StringBuilder;\n r1.<init>();\n r2 = \"lo.aa(\";\n r1 = r1.append(r2);\n r2 = 41;\n r1 = r1.append(r2);\n r1 = r1.toString();\n r0 = defpackage.ei.ac(r0, r1);\n throw r0;\n L_0x00b1:\n r2 = 60;\n if (r0 <= r2) goto L_0x0073;\n L_0x00b5:\n r0 = 60;\n goto L_0x0073;\n L_0x00b8:\n r1 = 49;\n if (r0 > r1) goto L_0x0100;\n L_0x00bc:\n r1 = defpackage.id.ao;\t Catch:{ RuntimeException -> 0x0096 }\n r1 = r1[r9];\t Catch:{ RuntimeException -> 0x0096 }\n r1 = r1[r10];\t Catch:{ RuntimeException -> 0x0096 }\n r2 = -232364108; // 0xfffffffff22667b4 float:-3.2959924E30 double:NaN;\n r2 = r8.av(r2);\t Catch:{ RuntimeException -> 0x0096 }\n r1[r11] = r2;\t Catch:{ RuntimeException -> 0x0096 }\n r1 = defpackage.eq.aa;\t Catch:{ RuntimeException -> 0x0096 }\n r1 = r1[r9];\t Catch:{ RuntimeException -> 0x0096 }\n r1 = r1[r10];\t Catch:{ RuntimeException -> 0x0096 }\n r2 = r0 + -2;\n r2 = r2 / 4;\n r2 = (byte) r2;\t Catch:{ RuntimeException -> 0x0096 }\n r1[r11] = r2;\t Catch:{ RuntimeException -> 0x0096 }\n r1 = defpackage.bp.ak;\t Catch:{ RuntimeException -> 0x0096 }\n r1 = r1[r9];\t Catch:{ RuntimeException -> 0x0096 }\n r1 = r1[r10];\t Catch:{ RuntimeException -> 0x0096 }\n r0 = r0 + -2;\n r0 = r0 + r14;\n r0 = r0 & 3;\n r0 = (byte) r0;\t Catch:{ RuntimeException -> 0x0096 }\n r1[r11] = r0;\t Catch:{ RuntimeException -> 0x0096 }\n goto L_0x0015;\n L_0x00e8:\n r1 = defpackage.fb.aj;\t Catch:{ RuntimeException -> 0x0096 }\n r1 = r1[r9];\t Catch:{ RuntimeException -> 0x0096 }\n r1 = r1[r10];\t Catch:{ RuntimeException -> 0x0096 }\n r2 = defpackage.fb.aj;\t Catch:{ RuntimeException -> 0x0096 }\n r3 = r9 + -1;\n r2 = r2[r3];\t Catch:{ RuntimeException -> 0x0096 }\n r2 = r2[r10];\t Catch:{ RuntimeException -> 0x0096 }\n r2 = r2[r11];\t Catch:{ RuntimeException -> 0x0096 }\n r0 = r0 * 8;\n r0 = r2 - r0;\n r1[r11] = r0;\t Catch:{ RuntimeException -> 0x0096 }\n goto L_0x0078;\n L_0x0100:\n r1 = 81;\n if (r0 > r1) goto L_0x0145;\n L_0x0104:\n r1 = defpackage.fb.ac;\t Catch:{ RuntimeException -> 0x0096 }\n r1 = r1[r9];\t Catch:{ RuntimeException -> 0x0096 }\n r1 = r1[r10];\t Catch:{ RuntimeException -> 0x0096 }\n r0 = r0 + -49;\n r0 = (byte) r0;\t Catch:{ RuntimeException -> 0x0096 }\n r1[r11] = r0;\t Catch:{ RuntimeException -> 0x0096 }\n goto L_0x0015;\n L_0x0111:\n r0 = defpackage.fb.aj;\t Catch:{ RuntimeException -> 0x0096 }\n r0 = r0[r9];\t Catch:{ RuntimeException -> 0x0096 }\n r0 = r0[r10];\t Catch:{ RuntimeException -> 0x0096 }\n r1 = defpackage.fb.aj;\t Catch:{ RuntimeException -> 0x0096 }\n r2 = r9 + -1;\n r1 = r1[r2];\t Catch:{ RuntimeException -> 0x0096 }\n r1 = r1[r10];\t Catch:{ RuntimeException -> 0x0096 }\n r1 = r1[r11];\t Catch:{ RuntimeException -> 0x0096 }\n r1 = r1 + -240;\n r0[r11] = r1;\t Catch:{ RuntimeException -> 0x0096 }\n goto L_0x0078;\n L_0x0127:\n r1 = 49;\n if (r0 > r1) goto L_0x0131;\n L_0x012b:\n r0 = -310118664; // 0xffffffffed83f6f8 float:-5.105138E27 double:NaN;\n r8.au(r0);\t Catch:{ RuntimeException -> 0x0096 }\n L_0x0131:\n r0 = -310118664; // 0xffffffffed83f6f8 float:-5.105138E27 double:NaN;\n r0 = r8.au(r0);\t Catch:{ RuntimeException -> 0x0096 }\n if (r0 == 0) goto L_0x0078;\n L_0x013a:\n r1 = 1;\n if (r0 != r1) goto L_0x0127;\n L_0x013d:\n r0 = -310118664; // 0xffffffffed83f6f8 float:-5.105138E27 double:NaN;\n r8.au(r0);\t Catch:{ RuntimeException -> 0x0096 }\n goto L_0x0078;\n L_0x0145:\n r1 = defpackage.gh.aq;\t Catch:{ RuntimeException -> 0x0096 }\n r1 = r1[r9];\t Catch:{ RuntimeException -> 0x0096 }\n r1 = r1[r10];\t Catch:{ RuntimeException -> 0x0096 }\n r0 = r0 + -81;\n r0 = (byte) r0;\t Catch:{ RuntimeException -> 0x0096 }\n r1[r11] = r0;\t Catch:{ RuntimeException -> 0x0096 }\n goto L_0x0015;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: lo.aa(he, int, int, int, int, int, int, int):void\");\n }", "title": "" }, { "docid": "827e81f3f0f6d3cd6897ff9493cc321f", "score": "0.54527545", "text": "public final int a(java.lang.String r11, java.util.HashMap<java.lang.String, java.lang.Integer> r12, com.tencent.mm.plugin.backup.bakoldlogic.bakoldmodel.c r13, java.util.HashSet<java.lang.String> r14) {\n /*\n r10 = this;\n r4 = java.lang.System.currentTimeMillis();\n r0 = 0;\n r1 = -1;\n r2 = com.tencent.mm.a.e.d(r11, r0, r1);\n r0 = new com.tencent.mm.protocal.c.ei;\t Catch:{ Exception -> 0x0054 }\n r0.<init>();\t Catch:{ Exception -> 0x0054 }\n r0 = r0.aD(r2);\t Catch:{ Exception -> 0x0054 }\n r0 = (com.tencent.mm.protocal.c.ei) r0;\t Catch:{ Exception -> 0x0054 }\n r1 = r0.jNe;\n r3 = r1.iterator();\n L_0x001b:\n r1 = r3.hasNext();\n if (r1 == 0) goto L_0x00c6;\n L_0x0021:\n r1 = r3.next();\n r1 = (com.tencent.mm.protocal.c.eh) r1;\n r2 = r10.lock;\n monitor-enter(r2);\n r6 = r10.htv;\t Catch:{ all -> 0x00b5 }\n if (r6 == 0) goto L_0x0076;\n L_0x002e:\n r0 = com.tencent.mm.plugin.report.service.g.oUh;\t Catch:{ all -> 0x00b5 }\n r1 = 11790; // 0x2e0e float:1.6521E-41 double:5.825E-320;\n r3 = 2;\n r3 = new java.lang.Object[r3];\t Catch:{ all -> 0x00b5 }\n r4 = 0;\n r5 = 0;\n r5 = java.lang.Integer.valueOf(r5);\t Catch:{ all -> 0x00b5 }\n r3[r4] = r5;\t Catch:{ all -> 0x00b5 }\n r4 = 1;\n r5 = 0;\n r5 = java.lang.Integer.valueOf(r5);\t Catch:{ all -> 0x00b5 }\n r3[r4] = r5;\t Catch:{ all -> 0x00b5 }\n r0.i(r1, r3);\t Catch:{ all -> 0x00b5 }\n r0 = \"MicroMsg.RecoverMerger\";\n r1 = \"backupImp canceled\";\n com.tencent.mm.sdk.platformtools.w.i(r0, r1);\t Catch:{ all -> 0x00b5 }\n r0 = -1;\n monitor-exit(r2);\t Catch:{ all -> 0x00b5 }\n L_0x0053:\n return r0;\n L_0x0054:\n r0 = move-exception;\n r1 = r0;\n r3 = \"MicroMsg.RecoverMerger\";\n r4 = \"read mmPath errr %s, %s, len:%d\";\n r0 = 3;\n r5 = new java.lang.Object[r0];\n r0 = 0;\n r5[r0] = r11;\n r0 = 1;\n r5[r0] = r1;\n r6 = 2;\n if (r2 != 0) goto L_0x0074;\n L_0x0068:\n r0 = 0;\n L_0x0069:\n r0 = java.lang.Integer.valueOf(r0);\n r5[r6] = r0;\n com.tencent.mm.sdk.platformtools.w.printErrStackTrace(r3, r1, r4, r5);\n r0 = 0;\n goto L_0x0053;\n L_0x0074:\n r0 = r2.length;\n goto L_0x0069;\n L_0x0076:\n r6 = r10.jCO;\t Catch:{ all -> 0x00b5 }\n r6 = com.tencent.mm.sdk.platformtools.bg.aA(r6);\t Catch:{ all -> 0x00b5 }\n r8 = 1800000; // 0x1b7740 float:2.522337E-39 double:8.89318E-318;\n r6 = (r6 > r8 ? 1 : (r6 == r8 ? 0 : -1));\n if (r6 <= 0) goto L_0x0095;\n L_0x0083:\n r6 = r10.jCQ;\t Catch:{ all -> 0x00b5 }\n r6 = r6.bCi();\t Catch:{ all -> 0x00b5 }\n r8 = 3600000; // 0x36ee80 float:5.044674E-39 double:1.7786363E-317;\n r6.O(r8);\t Catch:{ all -> 0x00b5 }\n r6 = com.tencent.mm.sdk.platformtools.bg.Nz();\t Catch:{ all -> 0x00b5 }\n r10.jCO = r6;\t Catch:{ all -> 0x00b5 }\n L_0x0095:\n monitor-exit(r2);\t Catch:{ all -> 0x00b5 }\n r2 = new java.util.HashMap;\t Catch:{ Exception -> 0x00b8 }\n r2.<init>();\t Catch:{ Exception -> 0x00b8 }\n com.tencent.mm.plugin.backup.e.a.b.a(r1, r12, r14, r2);\t Catch:{ Exception -> 0x00b8 }\n L_0x009e:\n r2 = r10.jKD;\n r2 = r2 + 1;\n r10.jKD = r2;\n r2 = r10.jKD;\n r6 = r10.jKA;\n r10.bF(r2, r6);\n r1 = r1.jOc;\n com.tencent.mm.plugin.backup.b.f.jh(r1);\n r13.abQ();\n goto L_0x001b;\n L_0x00b5:\n r0 = move-exception;\n monitor-exit(r2);\t Catch:{ all -> 0x00b5 }\n throw r0;\n L_0x00b8:\n r2 = move-exception;\n r6 = \"MicroMsg.RecoverMerger\";\n r7 = \"readFromSdcard err\";\n r8 = 0;\n r8 = new java.lang.Object[r8];\n com.tencent.mm.sdk.platformtools.w.printErrStackTrace(r6, r2, r7, r8);\n goto L_0x009e;\n L_0x00c6:\n com.tencent.mm.plugin.backup.b.f.aav();\n r1 = \"MicroMsg.RecoverMerger\";\n r2 = new java.lang.StringBuilder;\n r3 = \"read item time \";\n r2.<init>(r3);\n r6 = java.lang.System.currentTimeMillis();\n r4 = r6 - r4;\n r2 = r2.append(r4);\n r2 = r2.toString();\n com.tencent.mm.sdk.platformtools.w.d(r1, r2);\n r0 = r0.jNe;\n r0 = r0.size();\n goto L_0x0053;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.tencent.mm.plugin.backup.bakoldlogic.bakoldmovemodel.k.a(java.lang.String, java.util.HashMap, com.tencent.mm.plugin.backup.bakoldlogic.bakoldmodel.c, java.util.HashSet):int\");\n }", "title": "" }, { "docid": "b58232b90a1e3f26b5c73da6aaa8c3e1", "score": "0.5444996", "text": "public java.lang.Object m25310a(com.fasterxml.jackson.core.JsonParser r11, com.fasterxml.jackson.databind.DeserializationContext r12) {\n /* JADX: method processing error */\n/*\nError: jadx.core.utils.exceptions.JadxRuntimeException: SSA rename variables already executed\n\tat jadx.core.dex.visitors.ssa.SSATransform.renameVariables(SSATransform.java:120)\n\tat jadx.core.dex.visitors.ssa.SSATransform.process(SSATransform.java:52)\n\tat jadx.core.dex.visitors.ssa.SSATransform.visit(SSATransform.java:42)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:31)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:17)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:14)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:14)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:14)\n\tat jadx.core.ProcessClass.process(ProcessClass.java:37)\n\tat jadx.core.ProcessClass.processDependencies(ProcessClass.java:59)\n\tat jadx.core.ProcessClass.process(ProcessClass.java:42)\n\tat jadx.api.JadxDecompiler.processClass(JadxDecompiler.java:306)\n\tat jadx.api.JavaClass.decompile(JavaClass.java:62)\n\tat jadx.api.JadxDecompiler$1.run(JadxDecompiler.java:199)\n*/\n /*\n r10 = this;\n r8 = 1;\n r6 = null;\n r4 = new com.facebook.flatbuffers.FlatBufferBuilder;\n r5 = 128;\n r4.<init>(r5);\n r5 = com.facebook.tagging.graphql.protocol.FetchGroupMembersToMentionQueryParsers.FetchGroupMembersToMentionQueryParser.ParentGroupParser.m25341a(r11, r4);\n r4.d(r5);\n r4 = r4.e();\n r5 = java.nio.ByteBuffer.wrap(r4);\n r4 = null;\n r5.position(r4);\n r4 = new com.facebook.flatbuffers.MutableFlatBuffer;\n r7 = r6;\n r9 = r6;\n r4.<init>(r5, r6, r7, r8, r9);\n r5 = 4;\n r6 = java.lang.Boolean.valueOf(r8);\n r4.a(r5, r6);\n r2 = r4;\n r1 = new com.facebook.tagging.graphql.protocol.FetchGroupMembersToMentionQueryModels$FetchGroupMembersToMentionQueryModel$ParentGroupModel;\n r1.<init>();\n r4 = r2.a;\n r0 = r4;\n r3 = com.facebook.flatbuffers.FlatBuffer.a(r0);\n r0 = r1;\n r0 = (com.facebook.graphql.modelutil.BaseModel) r0;\n r0.a(r2, r3, r11);\n r0 = r1 instanceof com.facebook.common.json.Postprocessable;\n if (r0 == null) goto L_0x0048;\n L_0x0042:\n r1 = (com.facebook.common.json.Postprocessable) r1;\n r1 = r1.a();\n L_0x0048:\n return r1;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.facebook.tagging.graphql.protocol.FetchGroupMembersToMentionQueryModels.FetchGroupMembersToMentionQueryModel.ParentGroupModel.Deserializer.a(com.fasterxml.jackson.core.JsonParser, com.fasterxml.jackson.databind.DeserializationContext):java.lang.Object\");\n }", "title": "" }, { "docid": "0ff900b8fc8c85d297286e1a9f5bd088", "score": "0.5430672", "text": "public void a(com.xiaomi.push.kg r7) {\n /*\n r6 = this;\n r7.a()\n L_0x0003:\n com.xiaomi.push.kd r0 = r7.a()\n byte r1 = r0.f82422a\n if (r1 != 0) goto L_0x0012\n r7.f()\n r6.a()\n return\n L_0x0012:\n short r1 = r0.f871a\n r2 = 2\n r3 = 10\n r4 = 1\n r5 = 11\n switch(r1) {\n case 1: goto L_0x00c0;\n case 2: goto L_0x00b5;\n case 3: goto L_0x00aa;\n case 4: goto L_0x009c;\n case 5: goto L_0x008e;\n case 6: goto L_0x0080;\n case 7: goto L_0x0075;\n case 8: goto L_0x006a;\n case 9: goto L_0x005f;\n case 10: goto L_0x0030;\n case 11: goto L_0x0024;\n default: goto L_0x001d;\n }\n L_0x001d:\n byte r0 = r0.f82422a\n com.xiaomi.push.kj.a(r7, r0)\n goto L_0x00ca\n L_0x0024:\n byte r1 = r0.f82422a\n if (r1 != r5) goto L_0x001d\n java.lang.String r0 = r7.a()\n r6.f552g = r0\n goto L_0x00ca\n L_0x0030:\n byte r1 = r0.f82422a\n r3 = 13\n if (r1 != r3) goto L_0x001d\n com.xiaomi.push.kf r0 = r7.a()\n java.util.HashMap r1 = new java.util.HashMap\n int r3 = r0.f873a\n int r3 = r3 * 2\n r1.<init>(r3)\n r6.f544a = r1\n r1 = 0\n L_0x0046:\n int r2 = r0.f873a\n if (r1 >= r2) goto L_0x005a\n java.lang.String r2 = r7.a()\n java.lang.String r3 = r7.a()\n java.util.Map<java.lang.String, java.lang.String> r4 = r6.f544a\n r4.put(r2, r3)\n int r1 = r1 + 1\n goto L_0x0046\n L_0x005a:\n r7.h()\n goto L_0x00ca\n L_0x005f:\n byte r1 = r0.f82422a\n if (r1 != r5) goto L_0x001d\n java.lang.String r0 = r7.a()\n r6.f551f = r0\n goto L_0x00ca\n L_0x006a:\n byte r1 = r0.f82422a\n if (r1 != r5) goto L_0x001d\n java.lang.String r0 = r7.a()\n r6.f550e = r0\n goto L_0x00ca\n L_0x0075:\n byte r1 = r0.f82422a\n if (r1 != r5) goto L_0x001d\n java.lang.String r0 = r7.a()\n r6.f549d = r0\n goto L_0x00ca\n L_0x0080:\n byte r1 = r0.f82422a\n if (r1 != r2) goto L_0x001d\n boolean r0 = r7.a()\n r6.f545a = r0\n r6.c((boolean) r4)\n goto L_0x00ca\n L_0x008e:\n byte r1 = r0.f82422a\n if (r1 != r3) goto L_0x001d\n long r0 = r7.a()\n r6.f546b = r0\n r6.b((boolean) r4)\n goto L_0x00ca\n L_0x009c:\n byte r1 = r0.f82422a\n if (r1 != r3) goto L_0x001d\n long r0 = r7.a()\n r6.f541a = r0\n r6.a((boolean) r4)\n goto L_0x00ca\n L_0x00aa:\n byte r1 = r0.f82422a\n if (r1 != r5) goto L_0x001d\n java.lang.String r0 = r7.a()\n r6.f548c = r0\n goto L_0x00ca\n L_0x00b5:\n byte r1 = r0.f82422a\n if (r1 != r5) goto L_0x001d\n java.lang.String r0 = r7.a()\n r6.f547b = r0\n goto L_0x00ca\n L_0x00c0:\n byte r1 = r0.f82422a\n if (r1 != r5) goto L_0x001d\n java.lang.String r0 = r7.a()\n r6.f542a = r0\n L_0x00ca:\n r7.g()\n goto L_0x0003\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.xiaomi.push.io.a(com.xiaomi.push.kg):void\");\n }", "title": "" }, { "docid": "2279a2be33fb32595c5586468f498dd7", "score": "0.54238987", "text": "private int a(com.whatsapp.protocol.bh[] r9, int r10, com.whatsapp.protocol.bi r11) {\n /*\n r8_this = this;\n r1 = 0;\n r2 = com.whatsapp.protocol.b.n;\n r3 = r11.e;\n if (r3 != 0) goto L_0x0008;\n L_0x0007:\n return r1;\n L_0x0008:\n r0 = z;\n r4 = 11;\n r0 = r0[r4];\n r0 = com.whatsapp.protocol.bi.a(r11, r0);\n if (r0 == 0) goto L_0x0016;\n L_0x0014:\n if (r2 == 0) goto L_0x005f;\n L_0x0016:\n r0 = z;\n r4 = 12;\n r0 = r0[r4];\n r0 = com.whatsapp.protocol.bi.a(r11, r0);\n if (r0 == 0) goto L_0x0025;\n L_0x0022:\n r0 = 1;\n if (r2 == 0) goto L_0x002f;\n L_0x0025:\n r0 = z;\n r4 = 8;\n r0 = r0[r4];\n com.whatsapp.protocol.bi.b(r11, r0);\n r0 = 2;\n L_0x002f:\n r4 = r3.length;\n if (r1 >= r4) goto L_0x0007;\n L_0x0032:\n r4 = r3[r1];\n r5 = z;\n r6 = 9;\n r5 = r5[r6];\n com.whatsapp.protocol.bi.b(r4, r5);\n r5 = new com.whatsapp.protocol.bh;\n r5.<init>();\n r6 = z;\n r7 = 10;\n r6 = r6[r7];\n r6 = r4.b(r6);\n r5.a = r6;\n r4 = r4.a();\n r5.c = r4;\n r5.b = r0;\n r4 = r10 + r1;\n r9[r4] = r5;\n r1 = r1 + 1;\n if (r2 == 0) goto L_0x002f;\n L_0x005e:\n goto L_0x0007;\n L_0x005f:\n r0 = r1;\n goto L_0x002f;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.whatsapp.protocol.a1.a(com.whatsapp.protocol.bh[], int, com.whatsapp.protocol.bi):int\");\n }", "title": "" } ]
9b8e47269573dc04b00b6cca2643f6d3
Gets the normalized correlation ratio between a given preference and a user preference. Returns 0.0 if there is no correlation between the preferences.
[ { "docid": "5b5836625a039de8f51d2b16b3f21d71", "score": "0.8063816", "text": "private double getCorrelationRatio(Preference pref, Preference userPref) {\n PreferenceCorrelation correlation = userPref.findCorrelation(pref);\n return correlation != null ? correlation.getCorrelationRatio(userPref.getPopularity())\n : 0.0;\n }", "title": "" } ]
[ { "docid": "0b9337e691db4352f752cb984b91a776", "score": "0.5748836", "text": "public double computeRatio() {\n double cholesterolRatio = (double) this.cholesterolLDL / (double) this.cholesterolHDL; //(double) needed to allow the required decimal result with two ints passed in.\n return cholesterolRatio;\n }", "title": "" }, { "docid": "eec010dbe23fe9ab63f4bcc376b4fa2c", "score": "0.54222274", "text": "public float getCorrectionFactor() {\n if (expectedHaul == 0) {\n return 1f;\n }\n return Math.min(1.0f, (float) actualHaul / (float) expectedHaul);\n }", "title": "" }, { "docid": "c59f4101795e04a6ce42ed7f1ada048e", "score": "0.5419132", "text": "public float normalized() {\n return (float)(value - MIN_PITCHCLASS)/(float)(MAX_PITCHCLASS - MIN_PITCHCLASS);\n }", "title": "" }, { "docid": "4f0b0c12990e3e219ca2d82f13d8ba43", "score": "0.5392807", "text": "public double getCorrectPercentage() {\n\n double perc;\n if (getShowTimes() < 1) {\n perc = 0;\n }else{\n perc = (double) getNoCorrectAnswers()/ (double) getShowTimes();\n }\n perc = perc * 100;\n return perc;\n }", "title": "" }, { "docid": "7088ff902fe94e32573c5c0ebc569a08", "score": "0.5276418", "text": "@Query(\"select sqrt(sum(u.chirps.size * u.chirps.size) / count(u.chirps.size) - avg(u.chirps.size) * avg(u.chirps.size)) from User u\")\r\n\tDouble stdChirpsPerUser();", "title": "" }, { "docid": "bf6eeeba21a43e13d5075ab669b7b949", "score": "0.5267551", "text": "public double getReciprocalRank(){\n\n\n for(int i=0;i< getResultsSize();i++){\n if(results.get(i)==Relevancy.RELEVANT) {\n return 1.0/(i+1);\n }\n }\n return 0;\n }", "title": "" }, { "docid": "8ca4628e76665a4676e8a4bab4d7a030", "score": "0.5247371", "text": "private Float getPctLucro(){\n\t\tFloat valor = (getValorExtrinsico()/(valorAcao-valorOpcao)*100);\n\t\treturn valor;\n\t}", "title": "" }, { "docid": "ca9b27371ad924dd8cb29e253e9ad689", "score": "0.511661", "text": "public double majorityNonNilRecall() {\n int possibleHits = getNumPossible();\n if (possibleHits > 0) {\n // otherwise, all predictions will have to be non-nil and the best shot is the majority\n return ((double)majorityNonNilCorrectHits()) / possibleHits;\n } else {\n return 1.0;\n }\n }", "title": "" }, { "docid": "b96084fc7dd6fb760ea17953babb8184", "score": "0.5083029", "text": "public float getWinLossRatio() {\n if (this.results.size() == 0) {\n return 0;\n }\n\n return (float) this.wins.size() / this.results.size();\n }", "title": "" }, { "docid": "818fdf4c055aed649feb6bbc8d592ff5", "score": "0.507422", "text": "Double getProtectivePoreRatio();", "title": "" }, { "docid": "a78f1b96cb2161f5b272e4e08e87b762", "score": "0.50633293", "text": "public double get_rank_CORR()\n\t\t{\n\n\t\t\treturn rank_CORR;\n\t\t}", "title": "" }, { "docid": "fe539c70a057697cabbab49fbf82a107", "score": "0.5055412", "text": "double getRatioScore(double ratio)\n {\n return (Math.max(0, Math.min(100*(1-Math.abs(1-ratio)), 100)));\n }", "title": "" }, { "docid": "1d1afdd12d160bfa0c55db2a98d83c85", "score": "0.50253415", "text": "public double getCoopRatio() { return coop_ratio; }", "title": "" }, { "docid": "0d76300bfa6f5d409259c6cff1b4fb9a", "score": "0.50114393", "text": "float getRatio();", "title": "" }, { "docid": "2832b0bdd98e695be962ec32bd624de9", "score": "0.4989824", "text": "public double getCorrelationCoefficient() //correlation coefficient\n\t{\n\t\treturn r;\n\t}", "title": "" }, { "docid": "b3301ff0a66c315c2e92e6f6a5eae394", "score": "0.49757802", "text": "public static double correlation(HashMap<String,Float> x, HashMap<String,Float> y) {\n\n float result = 0;\n // find means\n float meanx = mean(x);\n float meany = mean(y);\n float deviation = deviation(x, y, meanx, meany);\n float sqdeviationX = sqDeviation(x, meanx);\n float sqdeviationY = sqDeviation(y, meany);\n return deviation / (Math.sqrt(sqdeviationX * sqdeviationY));\n }", "title": "" }, { "docid": "d06403d2f085ce37f09ff3994793dd4c", "score": "0.49117297", "text": "int ratio();", "title": "" }, { "docid": "a60e7942a7f8a3a04b6049eedc75555c", "score": "0.48774737", "text": "float getConfidence();", "title": "" }, { "docid": "9298b59645b1e0cdce728ebafa856e1d", "score": "0.48585775", "text": "public static double calcularCircunferencia(int radio){\n return (2*radio) * 3.1416;\n \n }", "title": "" }, { "docid": "e2e1ca6b806939b22a2a562a49816faf", "score": "0.4848501", "text": "public float getRatio() {\n return ratio_;\n }", "title": "" }, { "docid": "e7a11213fa23af57c60a82de2c452e57", "score": "0.48355293", "text": "float calculateCorrelation(float[] scores1, float[] scores2);", "title": "" }, { "docid": "a418aed5ee413e9e9b4d454109b2bb62", "score": "0.48245573", "text": "public double getNetworkSimilarityPercentage() {\n\t\tString netOut = getNetworkOutput();\n\t\tif (netOut.isEmpty())\n\t\t\treturn 0;\n\t\tdouble percentMatch = StringUtil.calculateStringSimilarityPercentage(\n\t\t\t\tnetOut, desiredOutput);\n\t\treturn percentMatch * 100;\n\t}", "title": "" }, { "docid": "5c17eb8dc174f2bbb5e6e73158a77f9a", "score": "0.48241696", "text": "@Override\n public Float getValue() {\n\tfloat inheritedRelationships = new CountSubClassOfAxiomsMetric(ontology)\n\t\t.getValue();\n\tfloat objectPropertyCount = ontology.getObjectPropertiesInSignature(true).size() - 1;\n\tfloat equivalentClasses = ontology.getAxiomCount(AxiomType.EQUIVALENT_CLASSES, true);\n\tfloat disjointClasses = ontology.getAxiomCount(AxiomType.DISJOINT_CLASSES, true);\n\tfloat classAssertion = ontology.getAxiomCount(AxiomType.CLASS_ASSERTION, true);\n\tfloat sameIndividual = ontology.getAxiomCount(AxiomType.SAME_INDIVIDUAL, true);\n\tfloat differentIndividual = ontology.getAxiomCount(AxiomType.DIFFERENT_INDIVIDUALS, true);\n\tfloat nonInheritedRelationships = objectPropertyCount + equivalentClasses + disjointClasses + classAssertion + sameIndividual + differentIndividual;\n\n\t// avoid a division by zero\n\tif (nonInheritedRelationships + inheritedRelationships == 0) {\n\t return 0f;\n\t} else {\n\t return nonInheritedRelationships / (nonInheritedRelationships + inheritedRelationships);\n\t}\n }", "title": "" }, { "docid": "b4d322fcf9585d86fbfed27fa03af3f1", "score": "0.48035586", "text": "public float getRatio() {\r\n return ratio;\r\n }", "title": "" }, { "docid": "8b70690ea61a456e9ce3f72417b82370", "score": "0.47874263", "text": "public float getRatio() {\n return ratio_;\n }", "title": "" }, { "docid": "96fc5e821a35fcfca0167d376a2f5739", "score": "0.47831523", "text": "public double get_det_CORR()\n\t\t{\n\n\t\t\treturn det_CORR;\n\t\t}", "title": "" }, { "docid": "c6ea0ca4ccb7f7cf7a09e02c99f6c7b6", "score": "0.472821", "text": "private static double normalise(double pounds) {\n return getNearestPence(pounds)/100.0;\n \n }", "title": "" }, { "docid": "8e4e417cee49c9bd902d23af4bd79450", "score": "0.47103614", "text": "@Query(\"select count(u1) * 1.0 / (select count(u3) * 1.0 from User u3) from User u1 where u1.chirps.size > (select avg(u2.chirps.size) * 1.75 from User u2)\")\r\n\tDouble ratioUsersAbove75AvgChirps();", "title": "" }, { "docid": "75753d8fc2546cd410bcc2ea00f628ae", "score": "0.4702509", "text": "public double computeRarity(double value)\r\n\t{\r\n\t\tif(distribution == null)\r\n\t\t\treturn Double.NaN;\r\n\t\t\r\n\t\tif(value < min || value > max)\r\n\t\t\treturn 1.0;\r\n\t\t\r\n\t\treturn 2*Math.abs(0.5 - distribution.getCDF(value));\r\n\t}", "title": "" }, { "docid": "279194a1916dd9d4daad624c7aa0e822", "score": "0.47003722", "text": "private double ratioContinent(int country){\n\t\t//stores the ratio owned by the bot currently by looping through the owned countries\n\t\tdouble Af=0, As=0, Eu=0, Na=0, Sa=0 ,Oc=0;\n\t\tfor(int i=0; i<GameData.NUM_CONTINENTS; i++) {\n\t\t\tfor(int j=0; j<GameData.CONTINENT_COUNTRIES[i].length; j++) {\n\t\t\t\tif(board.getOccupier(GameData.CONTINENT_COUNTRIES[i][j])==player.getId()){\n\t\t\t\t\tif(i==0) {\n\t\t\t\t\t\tNa += (double)1/9;\n\t\t\t\t\t}\n\t\t\t\t\telse if(i==1) {\n\t\t\t\t\t\tEu += (double)1/7;\n\t\t\t\t\t}\n\t\t\t\t\telse if(i==2) {\n\t\t\t\t\t\tAs += (double)1/13;\n\t\t\t\t\t}\n\t\t\t\t\telse if(i==3) {\n\t\t\t\t\t\tOc += (double)1/4;\n\t\t\t\t\t}\n\t\t\t\t\telse if(i==4) {\n\t\t\t\t\t\tSa += (double)1/4;\n\t\t\t\t\t}\n\t\t\t\t\telse if(i==5) {\n\t\t\t\t\t\tAf += (double)1/6;\n\t\t\t\t\t}\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//returns the ratio the bot would then get by attacking\n\t\tfor(int i=0; i<GameData.NUM_CONTINENTS; i++) {\n\t\t\tif(contains(GameData.CONTINENT_COUNTRIES[i],country)) {\n\t\t\t\tif(i==0) {\n\t\t\t\t\treturn Na + (double)1/9;\n\t\t\t\t}\n\t\t\t\tif(i==1) {\n\t\t\t\t\treturn Eu + (double)1/7;\n\t\t\t\t}\n\t\t\t\tif(i==2) {\n\t\t\t\t\treturn As + (double)1/13;\n\t\t\t\t}\n\t\t\t\tif(i==3) {\n\t\t\t\t\treturn Oc + (double)1/4;\n\t\t\t\t}\n\t\t\t\tif(i==4) {\n\t\t\t\t\treturn Sa + (double)1/4;\n\t\t\t\t}\n\t\t\t\tif(i==5) {\n\t\t\t\t\treturn Af + (double)1/6;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn 0;\n\t}", "title": "" }, { "docid": "2cc82a507a80f263422669c92ed62aa0", "score": "0.46992928", "text": "public double confidenceLo() {\n return mean() - getCalc();\n }", "title": "" }, { "docid": "0b8b61ff8622580597b510e2fa36b43e", "score": "0.46769717", "text": "public double mean(){\n \treturn StdStats.mean(ratio);\r\n }", "title": "" }, { "docid": "504429128da5d02170dfca7efe4fadb5", "score": "0.46664372", "text": "double getConfidence();", "title": "" }, { "docid": "e511f0fa4dc8a67387f631ba7c4ea962", "score": "0.46482325", "text": "public double getAvgResponsibilityCoupling() {\n\t\t\n\t\tdouble total = 0.0;\n\t\tfor (int i = 0; i <= indexPrimaryResponsibilities; i++) \n\t\t\ttotal = total + this.getResponsibilityCoupling(primaryResponsibilities[i]);\n\t\t\n\t\t//int n = moduleView.getCountAllocatedResponsibilities();\n\t\tint n = allResponsibilities.getResponsibilities().size(); \n\t\tif (n > 0)\n\t\t\ttotal = total / n;\n\t\t\n\t\treturn (total);\n\t}", "title": "" }, { "docid": "9189aee9be76d105304b938ac8c13f6e", "score": "0.46462172", "text": "public final int speex_resampler_get_ratio_num() {\r\n\t\treturn mNumeratorRate;\r\n\t}", "title": "" }, { "docid": "5cbbaa78188c9d9d554a85b438b0ce1d", "score": "0.46441537", "text": "public static double corrCoeff(int[][] freqMatrix){\n double element00 = (double)freqMatrix[0][0];\n double element01 = (double)freqMatrix[0][1];\n double element10 = (double)freqMatrix[1][0];\n double element11 = (double)freqMatrix[1][1];\n return ((element00*element11 - element01*element10))/Math.sqrt(((element00+element01)*(element10+element11)*(element00+element10)*(element01+element11)));\n }", "title": "" }, { "docid": "e77e65fcd8265e8a2e5570964ad8ccf0", "score": "0.46304712", "text": "public double confidenceLo() {\n return mean() - 1.96 * stddev() / Math.sqrt(_fractions.length);\n }", "title": "" }, { "docid": "73aa9cfe0ba0b458f6690d786ddee056", "score": "0.46235898", "text": "public static float calcRatio(float a, float b)\n {\n return a / b;\n }", "title": "" }, { "docid": "28090e4165903003402c12103e5043d3", "score": "0.46147326", "text": "public double get_cond_CORR()\n\t\t{\n\n\t\t\treturn cond_CORR;\n\t\t}", "title": "" }, { "docid": "3e1539d0e9cac98e784b3c6ee1bed1c8", "score": "0.46001", "text": "public static double PERatio(String ticker) {\n\treturn Double.parseDouble(findDataInXML(PE_RATIO, ticker));\n }", "title": "" }, { "docid": "70a2637b163d438fd4b8afff33865c27", "score": "0.45932123", "text": "public float getMajorAccRatio() {\n float x = 0, total = 0;\n for (int i = startTime; i < hitTime; i++) {\n x += Math.pow(acc_x.get(i), 2);\n total += Math.pow(acc_x.get(i), 2) + Math.pow(acc_y.get(i), 2) + Math.pow(acc_z.get(i), 2);\n }\n return Float.parseFloat(format.format(x / total));\n }", "title": "" }, { "docid": "42efd70312a2ab02aeac85af073cc3cb", "score": "0.45924205", "text": "boolean getRatioReciprocals() {\n return ratioReciprocals;\n }", "title": "" }, { "docid": "61c127af26c206ecd7c7b2a615cf4349", "score": "0.45880494", "text": "public com.raiyi.modelV2.Complaint getComplaintRatio() {\n return complaint_ratio;\n }", "title": "" }, { "docid": "87f9b588d87e2e7d9d9ff0c9b080758c", "score": "0.4587012", "text": "public float getmUserRating() {\n Cursor c = mSQLiteDatabase.query(USER_TABLE,\n new String[]{\"user_rating\"}, null, null, null, null, null);\n c.moveToFirst();\n\n return (float) c.getDouble(0);\n }", "title": "" }, { "docid": "0778f25e7daf5869bf748ad5cd9354bd", "score": "0.4563479", "text": "public double getRatioPrimaryResponsibilities() {\n\n\t\t//int n = moduleView.getCountAllocatedResponsibilities();\n\t\tdouble n = allResponsibilities.getResponsibilities().size(); \n\t\tif (n > 0)\n\t\t\treturn ( indexPrimaryResponsibilities+1 ) / n;\n\t\telse\n\t\t\treturn (0);\n\t\n\t}", "title": "" }, { "docid": "633937f663519d94c2c83238ed0ba9b0", "score": "0.45560867", "text": "public static float corrCoeff(float[] x, float[] y){\n int nData = x.length;\n if(y.length!=nData)throw new IllegalArgumentException(\"array lengths must be equal\");\n int n = x.length;\n double[] xx = new double[n];\n double[] yy = new double[n];\n for(int i=0; i<n; i++){\n xx[i] = (double)x[i];\n yy[i] = (double)y[i];\n }\n return (float)Stat.corrCoeff(xx, yy);\n }", "title": "" }, { "docid": "0d3e37da2787bf9630e0e5a4a0324aa0", "score": "0.45550376", "text": "public double calculateOverallRating() {\n \tif(ratings==null || ratings.size()==0) {\n \t\treturn 0;\n \t}\n \tdouble numRatings = ratings.size();\n \tdouble sumRatings = 0;\n \tfor(ResultRating r : ratings) {\n \t\tsumRatings += r.getRating();\n \t}\n \treturn (sumRatings/numRatings);\n }", "title": "" }, { "docid": "7f40508fe7d8020d5635eb74eb67c675", "score": "0.45517123", "text": "public int getRecruitingClassRat() {\n int classStrength = 0;\n int numFreshman = 0;\n int numRedshirt = 0;\n ArrayList<Player> allPlayers = getAllPlayers();\n for (Player p : allPlayers) {\n if (p.year == 1 && p.ratOvr > 65 && !p.isRedshirt) {\n // Is freshman\n classStrength += p.ratOvr - 30;\n numFreshman++;\n }\n if (p.year == 0 && p.ratOvr > 65) {\n classStrength += p.ratOvr - 35;\n numRedshirt++;\n }\n }\n\n if (numFreshman > 0 || numRedshirt > 0)\n return classStrength * (classStrength/(numFreshman + numRedshirt)) / 100;\n else return 0;\n }", "title": "" }, { "docid": "44ddbaecf8e96eac9c70f04bd86796cc", "score": "0.45386672", "text": "protected double calculateYawCorrection() {\r\n\t\tdouble reval = 0;\r\n\t\tdouble currentYawReading=0;\r\n\t\t/*\r\n\t\t * If Angle Error is Positive 0 to 180 we need to Turn Opposite\r\n\t\t * \r\n\t\t */\r\n\t\tcurrentYawReading = Robot.navigation.getYaw() ;\r\n\t\treval = \tcurrentYawReading\t / -180.0;\r\n\r\n\t\t/* Clamps */\r\n\t\tif (reval > 0.5)\t\t\treval = 0.5;\r\n\t\tif (reval < -0.5)\t\t\treval = -0.5;\r\n\r\n\t\treturn reval*4.0; /* The Multiplier is Aggressiveness for Correction*/\r\n\r\n\t}", "title": "" }, { "docid": "c2e103d627f79f981c7e5a88edfc7f95", "score": "0.4524839", "text": "public double getConfidence() { \n return _getDoubleValueNc(wrapGetIntCatchException(_FH_Confidence));\n }", "title": "" }, { "docid": "5ec3d29a528a6cc6a1af905a532828f9", "score": "0.45207006", "text": "public double CheckDirectionR() {\n double correctionR, angle, gain = 0.3;\n\n angle = getAngle();\n\n if (angle == 0)\n correctionR = 0; // no adjustment.\n else\n correctionR = angle; // reverse sign of angle for correction.\n\n correctionR = correctionR * gain;\n\n return correctionR;\n }", "title": "" }, { "docid": "268424ce0872fc9e69d041a50ccf63da", "score": "0.45186728", "text": "private double calculateCovariance() {\n ArrayList<Sample> testSetRef = getTestingSet();\n double total = 0;\n PatternMatcher patternMatcher = (PatternMatcher) this.patternMatcher;\n //allows me to handle the data if there's not enough for a full curve.\n for (int i = 0; i < patternMatcher.lengthOfTemplate; i++) {\n double normValue = (normalizeMean(patternMatcher.getRemovedValue(testSetRef.get(i + (start)))));\n total += (patternMatcher.samples[i] - patternMatcher.mean) * normValue;\n }\n //calculate R of the Cross CorrelationTester equation\n return total / patternMatcher.lengthOfTemplate;\n }", "title": "" }, { "docid": "167b225d72f1530eb32cee98e34c869d", "score": "0.44966364", "text": "public double getSimilarity(double addedValue) {\n this.addedValue = addedValue;\n updateValues();\n updateCalculations();\n if (canCount) {\n covariance = calculateCovariance();\n return calcuateCorrelation();\n } else {\n return 0;\n }\n }", "title": "" }, { "docid": "db9e0bb8fbf3bfad0e8952ebc8f58e71", "score": "0.4495176", "text": "protected static float similarity(Point p, Point centroid) {\n // System.out.println(SimilarityMeasures.sim(p.coordinates, centroid.coordinates)/p.coordinates.length);\n return SimilarityMeasures.sim(p.coordinates, centroid.coordinates)/p.coordinates.length;\n }", "title": "" }, { "docid": "58a3a16311a9c230c256fcb8da83fd47", "score": "0.44851357", "text": "public double getAdditionalCamerasSuggestedAspectRatioValue() {\n return mAdditionalCamerasSuggestedAspectRatioValue;\n }", "title": "" }, { "docid": "2c21290e105f38be01e32f506f2ac864", "score": "0.44822764", "text": "@Override\n\tpublic int getFUND_PERCENTAGE() {\n\t\treturn _policyPremPercentage.getFUND_PERCENTAGE();\n\t}", "title": "" }, { "docid": "29ba98573ce877a9ac68b9b3a218618a", "score": "0.44718838", "text": "private float percentage() {\r\n\t\treturn Math.max(0, Math.min(1, (getValue() / max)));\r\n\t}", "title": "" }, { "docid": "3f0b9117b8fc642fdd7f08662c842578", "score": "0.44597656", "text": "public BigDecimal getPorcAdValorem();", "title": "" }, { "docid": "422d33044bc47a4156f08b350b6cdee9", "score": "0.44536358", "text": "public double getProportionDetected()\n\t{\n\t\tdouble res = 0;\n\t\tif (_validDetections != null)\n\t\t{\n\t\t\tif (_numTargets > 0)\n\t\t\t{\n\t\t\t\tres = _validDetections.size() / (double) _numTargets;\n\t\t\t}\n\t\t}\n\t\treturn res;\n\t}", "title": "" }, { "docid": "fd2f66a79a0eb601c7bd04cd682ca54b", "score": "0.44509026", "text": "public double getConfidence() {\n\t\treturn m_confidence;\n\t}", "title": "" }, { "docid": "5681c3017165f6cc1e65dbf35c7c3e51", "score": "0.4418571", "text": "public double get_det_PCORR()\n\t\t{\n\n\t\t\treturn det_PCORR;\n\t\t}", "title": "" }, { "docid": "e56b23d1bbc402aa3c15a32a98bea884", "score": "0.4415526", "text": "public static OptionalDouble score(CrossoverOutcome crossover) {\n\n\t\t// Loop over homologous families\n\t\t// Instead of ancestor could also loop over union of homology ids on the parents or offspring\n\t\tint possiblePairs = 0;\n\t\tint homologouslyCrossedPairs = 0;\n\t\tfor (long family : crossover.ancestor.uniqueIds().toArray()) {\n\n\t\t\tlong numOfHomologsOnP1 = crossover.parentA.homologs(family).count();\n\t\t\tlong numOfHomologsOnP2 = crossover.parentB.homologs(family).count();\n\t\t\tlong numOfHomologsOnC1 = crossover.offspringA.homologs(family).count();\n\t\t\tlong numOfHomologsOnC2 = crossover.offspringB.homologs(family).count();\n\n\t\t\tpossiblePairs +=\n\t\t\t\t\tMath.min(numOfHomologsOnP1, numOfHomologsOnP2);\n\t\t\thomologouslyCrossedPairs +=\n\t\t\t\t\tMath.min(Math.min(numOfHomologsOnC1, numOfHomologsOnC2), possiblePairs);\n\t\t}\n\n\t\treturn possiblePairs == 0\n\t\t\t\t? OptionalDouble.empty()\n\t\t\t\t: OptionalDouble.of(((double)homologouslyCrossedPairs) / ((double)possiblePairs));\n\n\t}", "title": "" }, { "docid": "3c7877a74cceaa9536837b88b24a9ede", "score": "0.44047788", "text": "public double getValorPrimaPredio() {\r\n return valorPrimaPredio;\r\n }", "title": "" }, { "docid": "12938a6fda182c7fc32be0e33931e302", "score": "0.44038898", "text": "public float getSimilarity() {\n return similarity;\n }", "title": "" }, { "docid": "c1f00944ef54a6246f460f6f1395d391", "score": "0.43931514", "text": "public double precioRecomendacion() {\n\t\treturn p.getParamDouble(ParametrosPsicologicos.Parametro.PRECIO_RECOMENDACION);\n\t}", "title": "" }, { "docid": "b0133df7f190cbdbbc2a5e805f7080ca", "score": "0.43925497", "text": "@Query(\"select sum(c.volumeSubscriptions.size * 1.0)/sum(c.subscriptions.size * 1.0) from Customer c\")\r\n\tDouble ratioVolumeSubscriptionsVSNewspaperSubscriptions();", "title": "" }, { "docid": "5d703305ba54d88f066a9d9e36c57e1b", "score": "0.43912572", "text": "public double getValorAseguradoPredio() {\r\n return valorAseguradoPredio;\r\n }", "title": "" }, { "docid": "a3813bee1ab9e808b8402ca0e69eb9b5", "score": "0.4383776", "text": "default double getRelativeWidth() {\n return getRelativeWidth(getConfidenceLevel());\n }", "title": "" }, { "docid": "85498c5ac55b8d6d2d637c54bff7ccda", "score": "0.43829697", "text": "public double confidenceLo() {\n double s = stddev();\n double mean = mean();\n return mean - (1.96 * s) / Math.sqrt(probMeasurements.length);\n }", "title": "" }, { "docid": "abe3ba0742881f4f37b0273c25c77091", "score": "0.43790504", "text": "float getRURURB();", "title": "" }, { "docid": "dff7b8f67f0abdd89296831bcea6ad64", "score": "0.43775403", "text": "float getReferenceRatio() {\n return reference;\n }", "title": "" }, { "docid": "72f40db89f5cdb1e5c4052dabe2933cd", "score": "0.43758628", "text": "public Double getScore() {\n\n Double score = 0d;\n Double value = 0d;\n\n\n value = getHistDiffProcent(0, -1);\n //System.out.println(\"value=\" + value);\n if (value > 0) value = value * 6;\n else value = value * 18;\n score += value;\n\n value = getHistDiffProcent(1, 0);\n //System.out.println(\"value=\" + value);\n if (value > 0) value = value * 5;\n else value = value * 15;\n score += value;\n\n value = getHistDiffProcent(2, 1);\n if (value > 0) value = value * 4;\n else value = value * 12;\n score += value;\n\n value = getHistDiffProcent(3, 2);\n if (value > 0) value = value * 3;\n else value = value * 9;\n score += value;\n\n value = getHistDiffProcent(4, 3);\n if (value > 0) value = value * 2;\n else value = value * 6;\n score += value;\n\n value = getHistDiffProcent(5, 4);\n if (value > 0) value = value * 1;\n else value = value * 3;\n score += value;\n\n return score;\n }", "title": "" }, { "docid": "f0fa33155655ec735385211788c1c744", "score": "0.43748587", "text": "public com.raiyi.modelV2.RoamingFlow getRoamingFlowRatio() {\n return roaming_flow_ratio;\n }", "title": "" }, { "docid": "092e8462b4bf50cdac7c89e64f8a5865", "score": "0.4372815", "text": "public double calculateRate(int userId){\n if(!haveReview(userId)){\n return -1.0;\n }else{\n double sum = 0.0;\n int count = 0;\n for(Review review: listReview) {\n if (review.getReceiverId() == userId) {\n sum += review.getPoint();\n count += 1;\n } }\n return sum / count; }\n }", "title": "" }, { "docid": "af34740a842e13612602a05f71a7cffb", "score": "0.4372472", "text": "double getConfidenceLevel();", "title": "" }, { "docid": "501a967f059cb4eeec320f83a37f1076", "score": "0.43701142", "text": "public double confidenceLo() {\n return mean() - 1.96 * stddev() / Math.sqrt(thresholds.length);\n }", "title": "" }, { "docid": "56d7baf5f4dd73b5ea6b039a5ed86032", "score": "0.4360096", "text": "public float cgRatio(String string) {\n\t\t\n\t\t/* Track the length of the given string */\n\t\tint stringLength = string.length();\n\t\t\n\t\t/* Track the number of C's and G's in the string */\n\t\tint numberCG = 0;\n\t\t\n\t\t/* Converts all of the characters in the string to upper case */\n\t\tString dnaUpperCase = string.toUpperCase();\n\t\t\n\t\t/* Count the occurrences of 'C' and 'G' in the string */\n\t\tfor (int index = 0; index < stringLength; index++) {\n\t\t\tif (dnaUpperCase.charAt(index) == 'C' || dnaUpperCase.charAt(index) == 'G') {\n\t\t\t\tnumberCG += 1;\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn (float) numberCG / stringLength;\n\t}", "title": "" }, { "docid": "a82dd8ca2e0b43bef268b49ec92f241c", "score": "0.4359169", "text": "private double getReliabilityFactor() {\n if (jRadioButton_Yes.isSelected()) {\n return 20;\n }\n else if (jRadioButton_No.isSelected()) {\n for (Enumeration<AbstractButton> buttons = buttonGroup_timesRemoved.getElements(); buttons.hasMoreElements();) {\n AbstractButton button = buttons.nextElement();\n if (button.isSelected()) {\n return getSensorRemovedConfidence(button.getText());\n }\n }\n }\n return 0;\n //throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\n }", "title": "" }, { "docid": "bf290653ed908b567034099baa2e55b3", "score": "0.43569687", "text": "public double confidenceLo() {\n return mean() - 1.96 * stddev() / Math.sqrt(results.length);\n }", "title": "" }, { "docid": "ec2e59b74d81162d992612069be62a6f", "score": "0.43541405", "text": "public double confidenceLo() {\n double denom = Math.sqrt(results.length);\n double mean = mean();\n double stddev = stddev();\n return mean - 1.96 * stddev / denom;\n }", "title": "" }, { "docid": "a8e15322caacca440de6943f59db64b6", "score": "0.43540978", "text": "public double[] get_pca_mode_CORR_min()\n\t\t{\n\n\t\t\treturn pca_mode_CORR_min;\n\t\t}", "title": "" }, { "docid": "5862afd35ec7da3d8638b676597477e6", "score": "0.43533778", "text": "public double confidenceLo() {\n\t\tdouble d = mean - 1.96 * stddev / Math.sqrt(thresholds.length);\n\n\t\treturn d;\n\t}", "title": "" }, { "docid": "0dbc498db5de409ce40eed800edc9708", "score": "0.4342553", "text": "public int getRushProf() {\n int avgRBs = ( teamRBs.get(0).ratOvr + teamRBs.get(1).ratOvr )/2;\n return (getCompositeOLRush() + avgRBs )/2;\n }", "title": "" }, { "docid": "4c6babac762627462694d303ee81bde0", "score": "0.43407255", "text": "public double getFraction(ApplicationOnHost application) {\n Double answer = fraction.get(application);\n if (answer == null) {\n return 0;\n } else {\n return answer;\n }\n }", "title": "" }, { "docid": "74ed0ca3322d0ee3039d7202f649ea43", "score": "0.43396375", "text": "@Query(\"select count(a1)*1.0 / (select count(a2)*1.0 from Advertisement a2) from Advertisement a1 where a1.containsTaboo = true\")\r\n\tDouble ratioTabooAds();", "title": "" }, { "docid": "bc253d7e240b5ffa1f5fa04656b2d168", "score": "0.43393707", "text": "int getPredictionsPct();", "title": "" }, { "docid": "2821865b49c04f7ee45971d8b39b2535", "score": "0.43384504", "text": "public void reciprocal() {\r\n if (checkZero()) {\r\n display = (1 / Double.parseDouble(display)) + \"\";\r\n validateFormat();\r\n }\r\n }", "title": "" }, { "docid": "e3c1a039c22d8e74cc2a1d1af1c68076", "score": "0.43370882", "text": "public double getSimilarity() {\n\t\treturn 0;\n\t}", "title": "" }, { "docid": "29ecddbdb1feeb9b3e023d96d386c72a", "score": "0.43323806", "text": "public double getPointTriangulatorConfidence() {\n return mPointTriangulatorConfidence;\n }", "title": "" }, { "docid": "20c0a60d8e24960cdb55e12962859fc6", "score": "0.43317455", "text": "public static Float getRatingsForUser(Entity user){\r\n\t\tDatastoreService ds = DatastoreServiceFactory.getDatastoreService();\r\n\t\tQuery q = new Query(\"Rating\").setAncestor(user.getKey());\r\n\t\t\r\n\t\tIterable<Entity> userRatings = ds.prepare(q).asIterable();\r\n\t\t\r\n\t\tint numRatings = 0;\r\n\t\tint sumRatings = 0;\r\n\t\tfor(Entity rating : userRatings){\r\n\t\t\tsumRatings += (Long)rating.getProperty(\"value\");\r\n\t\t\tnumRatings++;\r\n\t\t}\r\n\t\t\r\n\t\treturn numRatings > 0 ? ((float)sumRatings/numRatings) : 0;\r\n\t}", "title": "" }, { "docid": "e0949fc6392cb0a537050287afcb9331", "score": "0.433162", "text": "float getRevenuePercentage();", "title": "" }, { "docid": "e0949fc6392cb0a537050287afcb9331", "score": "0.433162", "text": "float getRevenuePercentage();", "title": "" }, { "docid": "aa3e0bf3c834c6e96cef29e2d11faab5", "score": "0.4330523", "text": "public double confidenceLo() {\n return confLo;\n }", "title": "" }, { "docid": "2e5b18a47e462b191d62ed4bdf2162bc", "score": "0.43217134", "text": "public float similaridade(String user1, String user2, int tam){\r\n if(user1==null || user2==null){return 0;}\r\n List<Rating> listaA = dao.obtercalcMediaDiferencaClassificao(user1,tam);\r\n List<Rating> listaB = dao.obtercalcMediaDiferencaClassificao(user2,tam);\r\n normalizarLista(listaA, listaB);\r\n float result1 = dao.obtercalcRaizSomaQuadrado(listaA);\r\n float result2 = dao.obtercalcRaizSomaQuadrado(listaB);\r\n float resultado2 = result1*result2;\r\n float resultado1=0;\r\n for(Rating primeiro:listaA){ \r\n for(Rating segundo:listaB){\r\n if(primeiro.getMovieId().equals(segundo.getMovieId())){\r\n resultado1+=primeiro.getRatingMenosMedia()*segundo.getRatingMenosMedia();\r\n break;\r\n }\r\n }\r\n }\r\n float resultado3 = 0;\r\n \r\n if(resultado2==0){\r\n resultado2 = (float)0.00001;\r\n resultado3 = resultado1/resultado2;\r\n }else{\r\n resultado3 = resultado1/resultado2;\r\n }\r\n return resultado3;\r\n\r\n }", "title": "" }, { "docid": "bb23e758a3b3998f650d1f7235cc7b82", "score": "0.4318985", "text": "public double getRSquared() {\n double sumY = 0.0;\n for (int i=0; i<numPoints; i++) sumY += yData[i];\n double mean = sumY/numPoints;\n double sumMeanDiffSqr = 0.0;\n for (int i=0; i<numPoints; i++)\n sumMeanDiffSqr += sqr(yData[i]-mean);\n double rSquared = 0.0;\n if (sumMeanDiffSqr>0.0)\n rSquared = 1.0 - getSumResidualsSqr()/sumMeanDiffSqr;\n return rSquared;\n }", "title": "" }, { "docid": "be579cd70b44cdce91108bbb1af697ea", "score": "0.4318407", "text": "@Query(\"select avg(u.chirps.size) from User u\")\r\n\tDouble avgChirpsPerUser();", "title": "" }, { "docid": "77ab1dfe9a64777e155b3c0ed92643ef", "score": "0.43166932", "text": "@Query(\"select count(c1)*1.0 / (select count(c2)*1.0 from Customer c2) from Customer c1 where c1.subscriptions.size > 0\")\r\n\tDouble ratioSubscribersVSTotalNumberCustomers();", "title": "" }, { "docid": "6c0ce9a229764763db0721ea8b4d02f1", "score": "0.4313005", "text": "public float readCalibratedOrange() { return(readCalibratedValue(AS7262_ORANGE_CALIBRATED)); }", "title": "" }, { "docid": "fd32b75e49e7e2017c621feecf931310", "score": "0.43126047", "text": "public Fraction reciprocal() {\n\t\treturn new Fraction(DENOMINATOR, NUMERATOR);\n\t}", "title": "" }, { "docid": "3e70ce79edbb00fff791db33dc108202", "score": "0.43119213", "text": "private double screenToNormalized(float screenCoord) {\n\t\tint mWidth = getWidth();\n\t\tif (mWidth <= 2 * mPadding) {\n\t\t\t// prevent division by zero, simply return 0.\n\t\t\treturn 0d;\n\t\t} else {\n\t\t\tdouble mResult = (screenCoord - mPadding) / (mWidth - 2 * mPadding);\n\t\t\treturn Math.min(1d, Math.max(0d, mResult));\n\t\t}\n\t}", "title": "" } ]
032991eebd1f2095a47b60cdd2fa9ea6
First do the rotation so camera rotates over its position
[ { "docid": "4842ee5310ccf15c7c47c1502d0dacfb", "score": "0.0", "text": "public static Matrix4f updateGenericViewMatrix(Vector3f position, Vector3f rotation, Matrix4f matrix) {\n return matrix.rotationX((float)Math.toRadians(rotation.x))\n .rotateY((float)Math.toRadians(rotation.y))\n .translate(-position.x, -position.y, -position.z);\n }", "title": "" } ]
[ { "docid": "b4e3df3b82ccb57e37627789368890bc", "score": "0.7581279", "text": "private final void setRotation() {\n\t\t\tfinal CameraGLView parent = mWeakParent.get();\n\t\t\tif (parent == null) return;\n\t\t\tint degrees = 0;\n\t\t\tfinal Camera.CameraInfo info = new Camera.CameraInfo();\n\t\t\tCamera.getCameraInfo(cameraId, info);\n\t\t\tmIsFrontFace = (info.facing == Camera.CameraInfo.CAMERA_FACING_FRONT);\n\t\t\tif (mIsFrontFace) {\n\t\t\t\tdegrees = (info.orientation + degrees) % 360;\n\t\t\t\tdegrees = (360 - degrees) % 360;\n\t\t\t} else {\n\t\t\t\tdegrees = (info.orientation - degrees + 360) % 360;\n\t\t\t}\n\t\t\tmCamera.setDisplayOrientation(degrees);\n\t\t}", "title": "" }, { "docid": "02452aaa525f92e61fb110c21f295c25", "score": "0.69027954", "text": "protected void updateCamera() {\n\t\t\n\t\tif(world.outro_win_dt > 0f || world.outro_loose_dt > 0f) return;\n\t\tcam.look(Point3D.add(new Point3D(position.x,position.y + cameraUpAngle, position.z),Vector3D.scale(direction, 3f)), position, new Vector3D(0,1,0));\n\t}", "title": "" }, { "docid": "4146e868abbcf44a18167dc271d12983", "score": "0.6874972", "text": "public void moveAndRotate(){\n\t}", "title": "" }, { "docid": "9e0eb4f6460f6713d0ff501b25cfb091", "score": "0.67739534", "text": "private void updateTransform(){\n Matrix mx = new Matrix();\n float w = binding.viewFinder.getMeasuredWidth();\n float h = binding.viewFinder.getMeasuredHeight();\n\n float centreX = w / 2f; //calc centre of the viewfinder\n float centreY = h / 2f;\n\n int rotationDgr;\n int rotation = (int)binding.viewFinder.getRotation(); //cast to int bc switches don't like floats\n\n switch(rotation){ //correct output to account for display rotation\n case Surface.ROTATION_0:\n rotationDgr = 0;\n break;\n case Surface.ROTATION_90:\n rotationDgr = 90;\n break;\n case Surface.ROTATION_180:\n rotationDgr = 180;\n break;\n case Surface.ROTATION_270:\n rotationDgr = 270;\n break;\n default:\n return;\n }\n\n mx.postRotate((float)rotationDgr, centreX, centreY);\n binding.viewFinder.setTransform(mx); //apply transformations to textureview\n }", "title": "" }, { "docid": "d850852b8320582f0e7c4959b3520b76", "score": "0.67628676", "text": "public void camera() {\n camera(cameraX, cameraY, cameraZ,\n cameraX, cameraY, 0,\n 0, 1, 0);\n }", "title": "" }, { "docid": "f5418030c68c9e62c013dcc2c79c22b3", "score": "0.67410856", "text": "private void updateCamera()\r\n\t {\r\n\t // Orbit to the new orientation while maintaining the shot distance.\r\n\t theCameraX = theTargetX + ( theShotLength *\r\n\t sin(HALF_PI + theElevation) *\r\n\t sin(theAzimuth));\r\n\t theCameraY = theTargetY + (-theShotLength *\r\n\t cos(HALF_PI + theElevation));\r\n\t theCameraZ = theTargetZ + ( theShotLength *\r\n\t sin(HALF_PI + theElevation) *\r\n\t cos(theAzimuth));\r\n\r\n\t // update the up vector\r\n\t updateUp();\r\n\t }", "title": "" }, { "docid": "1594e0405fbd679d847b6776e0ae7373", "score": "0.66696113", "text": "private void move()\n\t{\n\t\tfloat x = (float) Math.sin(Math.toRadians(-cameraState.rotation.y));\n\t\tfloat z = (float) Math.cos(Math.toRadians(cameraState.rotation.y));\n\n\t\tVector3f direction = new Vector3f();\n\n\t\tif (Keyboard.isPressed(GLFW_KEY_A))\n\t\t{\n\t\t\tdirection.add(new Vector3f(-z, 0, x));\n\t\t} else if (Keyboard.isPressed(GLFW_KEY_D))\n\t\t{\n\t\t\tdirection.add(new Vector3f(z, 0, -x));\n\t\t}\n\n\t\tif (Keyboard.isPressed(GLFW_KEY_W))\n\t\t{\n\t\t\tdirection.add(new Vector3f(-x, 0, -z));\n\t\t} else if (Keyboard.isPressed(GLFW_KEY_S))\n\t\t{\n\t\t\tdirection.add(new Vector3f(x, 0, z));\n\t\t}\n\n\t\tif (Keyboard.isPressed(GLFW_KEY_SPACE))\n\t\t{\n\t\t\tdirection.add(new Vector3f(0, 1, 0));\n\t\t} else if (Keyboard.isPressed(GLFW_KEY_LEFT_CONTROL))\n\t\t{\n\t\t\tdirection.add(new Vector3f(0, -1, 0));\n\t\t}\n\n\t\tif (!direction.equals(new Vector3f()))\n\t\t{\n\t\t\tdirection.normalize();\n\t\t}\n\n\t\tcameraMovable.velocity = direction.mul(cameraControlable.speed);\n\t\tcameraState.position.add(cameraMovable.velocity);\n\n\t\tnewMouseX = Mouse.getX();\n\t\tnewMouseY = Mouse.getY();\n\n\t\tfloat dx = (float) (newMouseX - oldMouseX);\n\t\tfloat dy = (float) (newMouseY - oldMouseY);\n\t\t\n\t\toldMouseX = newMouseX;\n\t\toldMouseY = newMouseY;\n\n\t\tif (Mouse.isPressed(GLFW_MOUSE_BUTTON_RIGHT))\n\t\t{\n\t\t\tcameraState.rotation.add(new Vector3f(dy * mouseSens, dx * mouseSens, 0));\n\t\t\tcameraView.window.disableMouse(true);\n\t\t} else\n\t\t{\n\t\t\tcameraView.window.disableMouse(false);\n\t\t}\n\t}", "title": "" }, { "docid": "85616800341c5181a531b0ef2121f099", "score": "0.6666105", "text": "private void rotate(IntakePosition position){\n this.rotationServo.setPosition(position.getPosition());\n this.rotation = position;\n this.telemetry.addData(\"position\", position.getPosition());\n }", "title": "" }, { "docid": "2107df0f955516944d6fc679c99f6ff3", "score": "0.6653447", "text": "public void rotateXYZ() {\n\t\tfloat radians = (angleZ * (float)Math.PI / 180.0f);\n\t\tfloat c = (float)Math.cos(radians);\n\t\tfloat s = -(float)Math.sin(radians);\n\t\t\n\t\tVector3D dir = new Vector3D(c*originalDirection.x + s*originalDirection.y,\n\t\t\t\t\t\t\t\t -s*originalDirection.x + c*originalDirection.y,\n\t\t\t\t\t\t\t\t originalDirection.z);\n\t\t\n\t\t\n\t\t\n\t\t\n\t\tradians = (angleX * (float)Math.PI / 180.0f);\n\t\tc = (float)Math.cos(radians);\n\t\ts = -(float)Math.sin(radians);\n\t\tdir = new Vector3D(dir.x,\n\t\t\t\t\t\t\t\t\t c*dir.y + s*dir.z,\n\t\t\t\t \t\t\t\t\t -s*dir.y + c*dir.z);\n\t\t\n\t\tradians = (angleY * (float)Math.PI / 180.0f);\n\t\tc = (float)Math.cos(radians);\n\t\ts = -(float)Math.sin(radians);\n\t\tdir = new Vector3D(c*dir.x - s*dir.z,\n\t\t\t\t\t\t dir.y,\n\t\t\t\t\t\t s*dir.x + c*dir.z);\n\t\t\n\t\tthis.direction = dir;\n\t\t\n\t\t//System.out.println(this.direction.x + \", \" + this.direction.y + \", \" + this.direction.z);\n\t\t//this.cam.yaw(angle*dt);\n\t\t\n\t\tthis.normalizedDirection = new Vector3D(this.direction.x, this.direction.y, this.direction.z);\n\t\tthis.normalizedDirection.normalize();\n\t\t\n\t\t\n\t}", "title": "" }, { "docid": "fdfd951b8cfe868d8104abaef47c8e0f", "score": "0.6646288", "text": "private void postTransforms(GL2 gl, float rotation, Point2D.Float position)\n {\n gl.glRotatef(-rotation, 0, 0, 1);\n gl.glTranslatef(-position.x, -position.y, 0);\n }", "title": "" }, { "docid": "11bfd0a5ab7a9cd39c95231f636b8b04", "score": "0.66053253", "text": "public void rotate(Vector4f rotate) {\n\n Vector3f forward = lookAt.minus(position);\n //Log.d(TAG, \"forward: \" + forward);\n\n int xP = rotate.getX() != 0 ? 1 : 0;\n int yP = rotate.getY() != 0 ? 1 : 0;\n int zP = rotate.getZ() != 0 ? 1 : 0;\n\n float angle = rotate.getW();\n\n float[] i = new float[]{1, 1, 1, 1};\n float[] m = new float[16];\n float[] r = new float[4];\n\n Matrix.setIdentityM(m, 0);\n Matrix.translateM(m, 0, -forward.getX(), -forward.getY(), -forward.getZ());\n Matrix.rotateM(m, 0, angle, xP, yP, zP);\n Matrix.translateM(m, 0, forward.getX(), forward.getY(), forward.getZ());\n Matrix.multiplyMV(r, 0, m, 0, i, 0);\n //Log.d(TAG, \"r: \" + printArray(r));\n\n lookAt = lookAt.plus(new Vector3f(r[0] - 1, r[1] - 1, r[2] - 1));\n //Log.d(TAG, \"lookAt: \" + lookAt);\n }", "title": "" }, { "docid": "a974cfbfda4d571a1303bfad0d5e1761", "score": "0.6602914", "text": "public void setRotation(float rot) {\n/* 274 */ if (this.rotation != rot) {\n/* */ \n/* 276 */ this.rotation = rot;\n/* 277 */ this.changed = true;\n/* */ \n/* 279 */ PlayerTutorial.firePlayerTrigger(this.wurmid, PlayerTutorial.PlayerTrigger.MOVED_PLAYER_VIEW);\n/* */ } \n/* */ }", "title": "" }, { "docid": "4f0c0020f196db101f04f229b57bf4b4", "score": "0.6578998", "text": "private void preTransforms(GL2 gl, float rotation, Point2D.Float position)\n {\n gl.glTranslatef(position.x, position.y, 0);\n gl.glRotatef(rotation, 0, 0, 1);\n }", "title": "" }, { "docid": "0f3f2f575bfd2ab0413e1fbb7bfcd291", "score": "0.65743154", "text": "public void updateRenderCameraPose(TangoPoseData cameraPose)\n {\n float[] rotation = cameraPose.getRotationAsFloats();\n float[] translation = cameraPose.getTranslationAsFloats();\n Quaternion quaternion = new Quaternion(rotation[3], rotation[0], rotation[1], rotation[2]);\n\n /* Conjugating the Quaternion is needed because Rajawali uses left-handed convention for quaternions. */\n getCurrentCamera().setRotation(quaternion.conjugate());\n getCurrentCamera().setPosition(translation[0], translation[1], translation[2]);\n }", "title": "" }, { "docid": "8bc1b61ef691ca7814562d557fd29699", "score": "0.65460914", "text": "@Override\r\n\t\t\t\t\t\tpublic void update(float delta) {\n\t\t\t\t\t\t\tbehaviorObject.getRigidBody().getWorldTransform(this.tempMatrix4);\r\n\t\t\t\t\t\t\ttempMatrix4.rotate(Vector3.Y, 6);\r\n\t\t\t\t\t\t\tbehaviorObject.getRigidBody().setWorldTransform(tempMatrix4);\r\n\t\t\t\t\t\t}", "title": "" }, { "docid": "eca45ed20c7a800f1abcfab62bd5ed94", "score": "0.6529995", "text": "public static boolean moveCamera() {\n if (getABCUtil().shouldRotateCamera()) {\n if (print_debug) {\n debug(\"Rotated camera\", debug_location);\n }\n getABCUtil().rotateCamera();\n return true;\n }\n return false;\n }", "title": "" }, { "docid": "5a5e7f463094c3e694461d472499b0d3", "score": "0.6507959", "text": "public void updateCameraPosition() { \r\n double theta = Math.toRadians(cameraAzimuth); // rot around target \r\n double phi = Math.toRadians(cameraElevation); // altitude angle \r\n double x = radius * Math.cos(phi) * Math.sin(theta); \r\n double y = radius * Math.sin(phi); \r\n double z = radius * Math.cos(phi) * Math.cos(theta); \r\n cameraN.setLocalPosition(Vector3f.createFrom ((float)x, (float)y, (float)z).add(target.getWorldPosition())); \r\n cameraN.lookAt(target, worldUpVec);\r\n\r\n }", "title": "" }, { "docid": "b2cf3703efb109c37d2d470c5475e049", "score": "0.6478231", "text": "public void camera(float eyeX, float eyeY, float eyeZ,\n float centerX, float centerY, float centerZ,\n float upX, float upY, float upZ) {\n float z0 = eyeX - centerX;\n float z1 = eyeY - centerY;\n float z2 = eyeZ - centerZ;\n float mag = sqrt(z0*z0 + z1*z1 + z2*z2);\n \n if (mag != 0) {\n z0 /= mag;\n z1 /= mag;\n z2 /= mag;\n }\n \n float y0 = upX;\n float y1 = upY;\n float y2 = upZ;\n \n float x0 = y1*z2 - y2*z1;\n float x1 = -y0*z2 + y2*z0;\n float x2 = y0*z1 - y1*z0;\n \n y0 = z1*x2 - z2*x1;\n y1 = -z0*x2 + z2*x0;\n y2 = z0*x1 - z1*x0;\n \n mag = sqrt(x0*x0 + x1*x1 + x2*x2);\n if (mag != 0) {\n x0 /= mag;\n x1 /= mag;\n x2 /= mag;\n }\n \n mag = sqrt(y0*y0 + y1*y1 + y2*y2);\n if (mag != 0) {\n y0 /= mag;\n y1 /= mag;\n y2 /= mag;\n }\n \n // just does an apply to the main matrix,\n // since that'll be copied out on endCamera\n camera.set(x0, x1, x2, 0,\n y0, y1, y2, 0,\n z0, z1, z2, 0,\n 0, 0, 0, 1);\n camera.translate(-eyeX, -eyeY, -eyeZ);\n \n cameraInv.reset();\n cameraInv.invApply(x0, x1, x2, 0,\n y0, y1, y2, 0,\n z0, z1, z2, 0,\n 0, 0, 0, 1);\n cameraInv.translate(eyeX, eyeY, eyeZ);\n \n modelview.set(camera);\n modelviewInv.set(cameraInv);\n }", "title": "" }, { "docid": "1f46639238f907fb3571288b69b28dd8", "score": "0.6478086", "text": "void teleportCamera(){\n this.look(new Point3D(0.5f,0.5f,0.5f),new Point3D(5,1.5f,5),new Vector3D(0,5,0));\n }", "title": "" }, { "docid": "4c39b4bbd8a2551cfc2f7f1183790697", "score": "0.6474704", "text": "public void updateTransform() {\n\t\tcameraLoc.x = -targetPoint.x*radiusScale;\n\t\tcameraLoc.y = -targetPoint.y*radiusScale;\n\t\tcameraLoc.z = -targetPoint.z*radiusScale;\n\n\t\t// Apply rotation\n\t\tGeometryMath_F64.mult(rotationAroundTarget, cameraLoc, cameraLoc);\n\n\t\t// Compute the full transform\n\t\tworldToView.T.setTo(\n\t\t\t\tcameraLoc.x + targetPoint.x + translateWorld.x,\n\t\t\t\tcameraLoc.y + targetPoint.y + translateWorld.y,\n\t\t\t\tcameraLoc.z + targetPoint.z + translateWorld.z);\n\t\tworldToView.R.setTo(rotationAroundTarget);\n\t}", "title": "" }, { "docid": "16dd215a2f308777a7a720e2d583af26", "score": "0.6443278", "text": "public void update() {\n Matrix.setLookAtM(mViewMatrix, 0,\n position.getX(), position.getY(), position.getZ(),\n lookAt.getX(), lookAt.getY(), lookAt.getZ(),\n up.getX(), up.getY(), up.getZ());\n\n // Combine the rotation matrix with the projection and camera view\n // Note that the mMVPMatrix factor *must be first* in order\n // for the matrix multiplication product to be correct.\n Matrix.multiplyMM(mViewMatrix, 0, mViewMatrix, 0, mRotationMatrix, 0);\n }", "title": "" }, { "docid": "cc84ca10bce2efc67e47604735ceece5", "score": "0.6439727", "text": "public void setRotation(float rotation) { this.rotation = rotation;}", "title": "" }, { "docid": "61f22e87b20b1ead1206081a95c098e4", "score": "0.6413542", "text": "@Override\n\tpublic void surfaceChanged(SurfaceHolder arg0, int arg1, int arg2, int arg3) {\n\t\tParameters parameters=camera.getParameters();\n\t\tcamera.setParameters(parameters);\n\t\tint flag = getWindowManager().getDefaultDisplay().getRotation();\n\t\t\n\t\tangle = 450 - flag * 90;\n\t\tif (angle >= 360) {\n\t\t\tangle = angle - 360;\n\t\t}\n\t\tcamera.setDisplayOrientation(angle);\n\t\tcamera.startPreview();\n\t}", "title": "" }, { "docid": "892b83a8ee8f666dede990cb2d742498", "score": "0.63968945", "text": "@Override\n protected synchronized void integrateTransforms() {\n \t// No longer: Check if the transform has been changed by another behavior\n \t//targetTG.getTransform(currentXfm) ;\n \t//if (! targetTransform.equals(currentXfm))\n \t//\tresetView() ;\n// \tlongditudeTransform.rotY( longditude );\n// \tlatitudeTransform.rotX( latitude );\n\n rotateTransform.setEuler(new Vector3d(latitude, longditude, 0));\n// \trotateTransform.mul(rotateTransform, latitudeTransform);\n// \trotateTransform.mul(rotateTransform, longditudeTransform);\n\n \t// Change of distance since last resetView\n \t// distanceFromCenter = startDistanceFromCenter; +/-= ychange*zoomMul\n \tdistanceVector.z = distanceFromCenter - startDistanceFromCenter;\n\n \ttemp1.set(distanceVector);\n \ttemp1.mul(rotateTransform, temp1);\n\n \t// want to look at rotationCenter\n \ttransVector.x = rotationCenter.x + xtrans; // xtrans = centerToView.x; +/-= xchange * transXMul\n \ttransVector.y = rotationCenter.y + ytrans; // ytrans = centerToView.y; +/-= zchange * transYMul;\n \ttransVector.z = rotationCenter.z + ztrans; // ztrans = centerToView.z; fix while dragging\n\n \ttranslation.set(transVector);\n \ttargetTransform.mul(temp1, translation);\n\n \t// handle rotationCenter\n \ttemp1.set(centerVector);\n \ttemp1.mul(targetTransform);\n\n \tinvertCenterVector.x = -centerVector.x;\n \tinvertCenterVector.y = -centerVector.y;\n \tinvertCenterVector.z = -centerVector.z;\n\n \ttemp2.set(invertCenterVector);\n \ttargetTransform.mul(temp1, temp2);\n\n\t\t// Version 2.0\n \t//\n\t\t// perspective width: tanFoVHalf\n\t\t// default screen scale: physicalScreenWidth/2\n\t\t// parallel scale factor: perspective width / default screen scale\n\t\t// --> parallelScaleFactor = tanFoVHalf * 2.0 / physicalScreenWidth;\n \t//\n \t// scale in inversely proportion to distance 'Viewplatform <-> RotationCenter'\n \t// --> screenScale = 1 / (distanceFromCenter * parallelScaleFactor)\n\n\t\tif (projection == View.PARALLEL_PROJECTION) {\n\n\t\t\tif (isPureParallelProjection) {\n\t\t\t\tparallelScale = distanceFromCenter * parallelScaleFactor * parallelScalePure;\n\t\t\t}\n\t\t\telse {\n\t\t\t\tparallelScale = distanceFromCenter * parallelScaleFactor;\n\t\t\t}\n\n\t\t\tif (parallelScale > 0) {\n\t\t\t\tview.setScreenScale(1/parallelScale);\n\t\t\t}\n\t\t}\n\n \ttargetTG.setTransform(targetTransform);\n\n \t// Version 2.0\n \tif (isClippingUpdate)\n \t\tsetClippingDistances();\n\n \t// reset yaw and pitch angles\n// \tlongditude = 0.0;\n// latitude = 0.0;\n }", "title": "" }, { "docid": "16ce75b052eb4c610ac5f086fbd0d45e", "score": "0.6389244", "text": "@SuppressWarnings(\"unused\")\n public void switchCameraPosition(){\n mediaResourceManager.switchCamera();\n }", "title": "" }, { "docid": "95ecfa122ba8c5ba4c96f5c455e89a62", "score": "0.63739693", "text": "public static void main(String[] args) {\r\n \r\n final int SCR_WIDTH = 4;\r\n final int SCR_HEIGHT = 4;\r\n \r\n// camera.moveTo(0, 0, 0);\r\n \r\n// System.out.println(camera.getProjection(MyVector.Z, SCR_WIDTH, SCR_HEIGHT));\r\n /*\r\n MyVector center = MyVector.ZERO;\r\n MyVector offset = new MyVector(-10, 0, 0);\r\n \r\n MyVector point = new MyVector(0, 0, 1).add(offset); \r\n \r\n MyVector oldProjPoint = camera.getProjection(point, SCR_WIDTH, SCR_HEIGHT);\r\n System.out.println(\"point: \" + point + \"\\n--------------\");\r\n \r\n System.out.println(\"real before: \" + point.sub(offset));\r\n \r\n \r\n MyVector oldPoint = point;\r\n point = MyMatrix.rotate(point, MyVector.X, center, -10);\r\n System.out.println(\"real point: \" + point.sub(offset));\r\n System.out.println(\"real point len: \" + point.sub(offset).length());\r\n System.out.println(\"real angle: \" + MyVector.angleBetween(point.sub(offset), MyVector.Z));\r\n \r\n MyVector projPoint = camera.getProjection(point, SCR_WIDTH, SCR_HEIGHT);\r\n \r\n System.out.println(\"--------\\nproj before: \" + oldProjPoint);\r\n MyVector referenceProj = camera.getProjection(MyVector.Z.sub(MyVector.X), SCR_WIDTH, SCR_HEIGHT);\r\n System.out.println(\"proj point: \" + projPoint);\r\n System.out.println(\"proj point len: \" + projPoint.length());\r\n System.out.println(\"proj angle: \" + MyVector.angleBetween(projPoint, referenceProj));\r\n*/\r\n \r\n System.out.println(0.5 % 1);\r\n }", "title": "" }, { "docid": "76af2966e9a00bda573a1ba8b402ba10", "score": "0.63738453", "text": "public boolean moveCamera(double x, double y, double z){\n\n Transform3D tpom = new Transform3D();\n t3 = new Transform3D();\n getViewingTransform(t3);\n Vector3d vec = new Vector3d();\n\n vec.x=x;\n vec.y=y;\n vec.z=z;\n\n tpom.setTranslation(vec);\n t3.mul(tpom);\n vec = new Vector3d();\n t3.get(vec);\n\n newPos = new Point3d(vec.x, vec.y, vec.z);\n\n if (isInBounds(newPos, actualShape)) {\n setViewingTransform(t3);\n setRotationCenter(newPos);\n return true;\n } else {\n Iterator<Shape> it = actualShape.getConnection().iterator();\n while(it.hasNext()) {\n pom = it.next(); \n if (isInBounds(newPos, pom)) {\n new Thread(new Runnable() {\n @Override\n public void run() {\n parent.setUpdateMap(true);\n parent.setShape(pom);\n parent.setLoaded(-1);\n hideExtras();\n actualShape.setVisible(false);\n actualShape = pom;\n actualShape.setTextureLoaded(true);\n actualShape.setVisible(true);\n if (parent.isExtras()) {\n showExtras();\n }\n setViewingTransform(t3);\n setRotationCenter(newPos);\n parent.setLoaded(100);\n }\n }).start();\n return true;\n }\n }\n return false;\n }\n }", "title": "" }, { "docid": "9c2881cdc52d5827cf523f473ddf6d60", "score": "0.6359887", "text": "public synchronized void rotateFrameBy( Transform3D transform ) {\r\n Matrix3f matrix = new Matrix3f();\r\n\r\n transform.get( matrix );\r\n\r\n m_kRotate.set( matrix );\r\n\r\n m_akAxis[0] = new Vector3f( -1.0f, 0.0f, 0.0f );\r\n m_akAxis[1] = new Vector3f( 0.0f, 1.0f, 0.0f );\r\n m_akAxis[2] = new Vector3f( 0.0f, 0.0f, 1.0f );\r\n for ( int i = 0; i < 3; i++ ) {\r\n m_kRotate.transform( m_akAxis[i] );\r\n }\r\n orthonormalize( m_akAxis );\r\n }", "title": "" }, { "docid": "3b52a4cec1df00ede76fd41f4009f4c6", "score": "0.6333791", "text": "public void updateCamera() {\n\t\t//currentTruck;\n\t\tfloat cameraX = Math.max(0.5f*Kroy.width*zoom, Math.min(currentTruck.getX(), 6884-(0.5f*Kroy.width*zoom)));\n\t\tfloat cameraY = Math.max(0.5f*Kroy.height*zoom, Math.min(currentTruck.getY(), 6043-(0.5f*Kroy.height*zoom)));\n\t\tgamecam.position.lerp(new Vector3(cameraX, cameraY,gamecam.position.z),0.1f);// sets the new camera position based on the current position of the FireTruck\n\t\tgamecam.update();\n\t}", "title": "" }, { "docid": "d4017befc3bfc489eff96113af179efe", "score": "0.632327", "text": "@Override\n protected Vector3 SpawnRotation() {\n return new Vector3(Transform().Rotation().x(),Transform().Rotation().y(),Transform().Rotation().z());\n }", "title": "" }, { "docid": "37a29d84c87d66fe6e9bd3ee04632e14", "score": "0.6321578", "text": "private void setCamera(GLU pGlu) {\n\n Point3d pos = this.simpleMoveAnimator.getPoint();\n Vector3d posLookAt = new Vector3d(100, 0, 0);\n Vector3d rotate = this.simpleMoveAnimator.getAngle();\n\n posLookAt = PointUtil.rotateZ3d(posLookAt, rotate.z);\n posLookAt = PointUtil.rotateY3d(posLookAt, rotate.y);\n\n posLookAt.add(pos);\n\n pGlu.gluLookAt(pos.x, pos.y, pos.z, posLookAt.x, posLookAt.y, posLookAt.z, 0, 1, 0);\n }", "title": "" }, { "docid": "4b6b306a83ab2833dc5397566d7a8a20", "score": "0.6282581", "text": "private void prepareRotation() {\r\n double yStart = afterMousePressY - center.getY();\r\n double xStart = afterMousePressX - center.getX();\r\n double yEnd = afterMouseDragY - center.getY();\r\n double xEnd = afterMouseDragX - center.getX();\r\n double angleStart = Math.atan2(yStart, xStart);\r\n double angleEnd = Math.atan2(yEnd, xEnd);\r\n CT = Transformations3d.rotate(angleStart - angleEnd,this.axis);\r\n adjustCT();\r\n }", "title": "" }, { "docid": "c404cab46a0736156fc28a3d56d7d740", "score": "0.6268658", "text": "public void changeCameraFacing() {\n \tif (mCamera != null) {\n \t\tmCamera.stopPreview();\n \t\tmCamera.setPreviewCallback(null);\n \t\tmCamera.release();\n \t\tmCamera = null;\n \t}\n\n \tif (facingCamera == Camera.CameraInfo.CAMERA_FACING_FRONT) {\n \t\topenCamera(Camera.CameraInfo.CAMERA_FACING_BACK);\n \t} else {\n \t\topenCamera(Camera.CameraInfo.CAMERA_FACING_FRONT);\n \t}\n\n \ttry {\n \t\tif(Build.VERSION.SDK_INT >= Build.VERSION_CODES.FROYO) {\n \t\t\tmCamera.setDisplayOrientation(90);\n } else {\n Parameters parameters = mCamera.getParameters();\n parameters.setRotation(90);\n mCamera.setParameters(parameters);\n }\n\n \t\tmCamera.setPreviewDisplay(mHolder);\n } catch (Exception e) {\n Log.e(\"Error:\", \"Failed to set camera preview.\", e);\n mCamera.release();\n }\n\n \tmCamera.startPreview();\n }", "title": "" }, { "docid": "22583bfe5966fd3eb2fe8cba1a1b2739", "score": "0.6253213", "text": "private final void camera(int x, int y, int xRot, int yRot, int height, int speed) {\n\t\tcamera(player, x, y, xRot, yRot, height, speed);\n\t}", "title": "" }, { "docid": "b76633ecdb2fc97a66288fb81e18695e", "score": "0.6245997", "text": "@Override\n protected void rotationChanged() {\n super.rotationChanged();\n }", "title": "" }, { "docid": "13f88577595f1601026617dc86077686", "score": "0.6244877", "text": "@Override\n public void onCameraMove() {\n CameraPosition cameraPosition = mMap.getCameraPosition();\n // If the previous camera offset is different from the current camera bearing, update the offset\n if (cameraOffset != cameraPosition.bearing){\n // The offset is being used for the compass to display the correct direction when map is rotated\n cameraOffset = cameraPosition.bearing;\n }\n }", "title": "" }, { "docid": "1521c8d7b3cb857a43f6f5201d628c77", "score": "0.6239481", "text": "public Camera(){\n\t\tposition = new Vector3f(0,0,0);\n\t\trotation = new Vector3f(0,0,0);\n\t}", "title": "" }, { "docid": "bbb250113b7f12a4a8fd467d02a936ac", "score": "0.6228926", "text": "public void rotate(Quat rotation) {\n orientation = rotation.times(orientation);\n orientation.normalizeAssign();\n orientMatrix = orientation.toMat3();\n viewMatrix = null;\n }", "title": "" }, { "docid": "7026f47bec6b841616efd45490b1812b", "score": "0.62268007", "text": "void setOrientation(double _rotX, double _rotY, double _rotZ);", "title": "" }, { "docid": "f9154185bf9a20767919580643d5bce6", "score": "0.62133545", "text": "public native void rotate(float rotation, @Nullable Coordinate anchor);", "title": "" }, { "docid": "d3ced665465e49eed73487e22eaa4ace", "score": "0.619347", "text": "public void setRotationCenterUpdate();", "title": "" }, { "docid": "f7ae141e579fc2d8cde240b583411c0c", "score": "0.61911464", "text": "public void cameraUpdate()\n\t{\n\t\tthis.cam.applyTranslations();\n\t}", "title": "" }, { "docid": "09c868b8aab7bac7dc3ac38ff5237a64", "score": "0.6179043", "text": "public void move() {\r\n\t\tcameraZoom();\t\t\t\t\t\t\t\t\t//Eingaben des Players\r\n\t\tcameraPitch();\r\n\t\tcameraAroundPlayer();\r\n\t\tfloat horizontalDistance = horizontalDistance();\r\n\t\tfloat verticalDistance = verticalDistance();\r\n\t\tcameraPosition(horizontalDistance, verticalDistance);\r\n\t\tthis.yaw = 180 - (player.getRotY() + angleAroundPlayer);\r\n\t}", "title": "" }, { "docid": "49db0b4152ad8043e646109e80a28507", "score": "0.6149965", "text": "public void updateDisplayRotation(int rotation) {\n mCameraRunner.updateDisplayRotation(rotation);\n }", "title": "" }, { "docid": "8dfb3032fce29bac1f311b8855d37904", "score": "0.6146527", "text": "private void repositionCamera(Coords c)\r\n {\r\n \tPlayerInformation playerInfo = null;\r\n \t\r\n stopPlayer();\r\n \r\n \tif (c != null)\r\n \t\tplayerInfo = tabPlayerInfo.get(c);\r\n \tif (playerInfo != null)\r\n \t{\r\n \t\tplayer.setPhysicsLocation(playerInfo.location);\r\n \t\tcam.lookAt(playerInfo.direction, Vector3f.UNIT_Y);\r\n //cam.setDirection(playerInfo.direction);\r\n //cam.setAxes(left, Vector3f.UNIT_Y, playerInfo.direction);\r\n \t}\r\n \telse\r\n \t{\r\n player.setPhysicsLocation(START_VEC);\r\n cam.lookAt(lookvec, Vector3f.UNIT_Y);\r\n \t}\r\n }", "title": "" }, { "docid": "c2f077dba93b3c3d722f32df466dfaad", "score": "0.61358345", "text": "void startCamera(){\n mCameraPreview = new CameraPreview(this, this, CAMERA_FACING, surfaceView);\r\n }", "title": "" }, { "docid": "4166314aa1109132f2f0b0e342c4e7b2", "score": "0.6131515", "text": "@Override\n public void move() {\n x += Math.cos(Math.toRadians(rotation)) * speed;\n y += Math.sin(Math.toRadians(rotation)) * speed;\n }", "title": "" }, { "docid": "cb3b1b8d544041dae3a9bfe0319761d4", "score": "0.61058795", "text": "@Override\n protected void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n\n cameraKitView = findViewById(R.id.cameraKitView);\n\n //Load sensor for understand the orientation of the phone\n SensorManager sensorManager = (SensorManager) getSystemService(Context.SENSOR_SERVICE);\n sensorManager.registerListener(new SensorEventListener() {\n private int mOrientationDeg; //last rotation in degrees\n private int ORIENTATION_UNKNOWN = -1;\n\n /**\n * Called when there is a new sensor event. Note that \"on changed\" is somewhat of a misnomer, as this will also be called if we have a new reading from a sensor with the exact same sensor values (but a newer timestamp).\n * Documentation for SensorEvent: https://developer.android.com/reference/android/hardware/SensorEvent\n */\n @Override\n public void onSensorChanged(SensorEvent event)\n {\n float[] values = event.values;\n int orientation = ORIENTATION_UNKNOWN;\n float X = -values[0];\n float Y = -values[1];\n float Z = -values[2];\n float magnitude = X*X + Y*Y;\n // Don't trust the angle if the magnitude is small compared to the y value\n if (magnitude * 4 >= Z*Z) {\n float OneEightyOverPi = 57.29577957855f;\n float angle = (float)Math.atan2(-Y, X) * OneEightyOverPi;\n orientation = 90 - (int)Math.round(angle);\n // normalize to 0 - 359 range\n while (orientation >= 360) {\n orientation -= 360;\n }\n while (orientation < 0) {\n orientation += 360;\n }\n }\n //now we must figure out which orientation based on the degrees\n if (orientation != mOrientationDeg)\n {\n mOrientationDeg = orientation;\n\n View takePicButton = findViewById(R.id.take_photo_button);\n\n //figure out actual orientation\n if(orientation == ORIENTATION_UNKNOWN){//basically flat\n }\n else if(orientation <= 45 || orientation > 315){//round to 0\n //Portrait\n orientationResult=DeviceOrientation.PORTRAIT;\n takePicButton.setRotation(0); //rotate take picture button\n }\n else if(orientation > 45 && orientation <= 135){//round to 90\n //LandscapeRight\n orientationResult=DeviceOrientation.LANDSCAPERIGHT;\n takePicButton.setRotation(270);\n }\n else if(orientation > 135 && orientation <= 225){//round to 180\n //PortraitUpside\n orientationResult=DeviceOrientation.PORTRAITUPSIDEDOWN;\n takePicButton.setRotation(180);\n }\n else if(orientation > 225 && orientation <= 315){//round to 270\n //LandscapeLeft\n orientationResult=DeviceOrientation.LANDSCAPELEFT;\n takePicButton.setRotation(90);\n }\n\n }\n }\n\n @Override\n public void onAccuracyChanged(Sensor sensor, int accuracy) {\n }\n }, sensorManager.getDefaultSensor(Sensor.TYPE_ACCELEROMETER), SensorManager.SENSOR_DELAY_NORMAL);\n\n FloatingActionButton mButtonTakePhoto = findViewById(R.id.take_photo_button);\n mButtonTakePhoto.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n SharedPreferences prefs = getSharedPreferences(\"prefs\", MODE_PRIVATE);\n SharedPreferences.Editor edit = prefs.edit();\n edit.putString(\"text\", null);\n edit.putString(\"imageDataPath\", null);\n edit.apply();\n takePhoto();\n }\n });\n }", "title": "" }, { "docid": "d50d30accf7380053b974f768c66bf66", "score": "0.6105566", "text": "public void rotateFrustum(ViewFrustum vf,float angle,ROTATION_AXIS axis){\n angle = angle % 360;\n Matrix m;\n switch (axis){\n case RIGHT:\n m = getRotationMatrix(ROTATION_AXIS.RIGHT,angle);\n vf.setCameraUp(gc.multiply(m,vf.getCameraUp()));\n vf.setCameraDirection(gc.multiply(m,vf.getCameraDirection()));\n break;\n case DIRECTION:\n m = getRotationMatrix(ROTATION_AXIS.DIRECTION,angle);\n vf.setCameraRight(gc.multiply(m,vf.getCameraRight()));\n vf.setCameraUp(gc.multiply(m,vf.getCameraUp()));\n break;\n case UP:\n m = getRotationMatrix(ROTATION_AXIS.UP,angle);\n vf.setCameraRight(gc.multiply(m,vf.getCameraRight()));\n vf.setCameraDirection(gc.multiply(m,vf.getCameraDirection()));\n break;\n }\n }", "title": "" }, { "docid": "dfc4c9f0f80237ff05761f77045d0453", "score": "0.60974044", "text": "public void rotate(){\n if(!servoThread.isRunning()){\n if (this.rotation == IntakePosition.INTAKE){\n this.rotate(IntakePosition.DROP_OFF);\n }\n else{\n this.rotate(IntakePosition.INTAKE);\n }\n }\n }", "title": "" }, { "docid": "43f3885c868a5db928a93375362f7248", "score": "0.6094141", "text": "private void stepRot() {\n\t\t// ee = 1/2*acceln*interval**2 - but need to anticipate overshoot so use\n\t\t// 1.5*v*int\n\n\t\tdouble ee = 3.0 * interval / 1000.0;\n\t\tdouble delta = Math.abs(telescope.mechanisms.rotPos\n\t\t\t\t- telescope.mechanisms.rotDemand);\n\n\t\tSystem.err.println(\"Axes::StepRot::RotDmd: \"\n\t\t\t\t+ telescope.mechanisms.rotDemand + \", RotPos:\"\n\t\t\t\t+ telescope.mechanisms.rotPos + \", Delta: \" + delta\n\t\t\t\t+ \", MinDelta: \" + ee);\n\n\t\tif (delta > ee) {\n\n\t\t\ttelescope.mechanisms.rotStatus = TCS_Status.MOTION_MOVING;\n\n\t\t\t// Calculate the slew distance - if clever use acceln/decceln and\n\t\t\t// not just the max speed - for now, not clever..\n\n\t\t\tdouble ddrot = 2.0 * (double) interval / 1000.0;\n\t\t\t// Choose direction.\n\t\t\tif (telescope.mechanisms.rotDemand < telescope.mechanisms.rotPos)\n\t\t\t\tddrot = -ddrot;\n\t\t\ttelescope.mechanisms.rotPos += ddrot;\n\n\t\t} else {\n\n\t\t\tif (rotTrackingState == TCS_Status.STATE_ON) {\n\n\t\t\t\ttelescope.mechanisms.rotStatus = TCS_Status.MOTION_TRACKING;\n\t\t\t\ttelescope.mechanisms.rotPos = telescope.mechanisms.rotDemand;\n\n\t\t\t} else {\n\n\t\t\t\ttelescope.mechanisms.rotStatus = TCS_Status.MOTION_INPOSITION;\n\t\t\t\tif (fixed) {\n\t\t\t\t\ttelescope.mechanisms.rotPos = telescope.mechanisms.rotDemand;\n\t\t\t\t}\n\t\t\t}\n\n\t\t}\n\t}", "title": "" }, { "docid": "9b1be99796ab9f614989e7e664c36d76", "score": "0.6082843", "text": "private static void camera(final Player player, int x, int y, int xRot, int yRot, int height, int speed) {\n\t\tPacketRepository.send(CameraViewPacket.class, new CameraContext(player, CameraType.POSITION, x, y, height, 1, speed));\n\t\tPacketRepository.send(CameraViewPacket.class, new CameraContext(player, CameraType.ROTATION, x + xRot, y + yRot, height, 1, speed));\n\t}", "title": "" }, { "docid": "70cfdc23b166399e3a68d8b864584b1b", "score": "0.6072897", "text": "@Override\n\tpublic void rotate() {\n\t\t\n\t}", "title": "" }, { "docid": "70cfdc23b166399e3a68d8b864584b1b", "score": "0.6072897", "text": "@Override\n\tpublic void rotate() {\n\t\t\n\t}", "title": "" }, { "docid": "de1b85a698ab4f933e42f8dd371def7d", "score": "0.6050117", "text": "@Override\n public boolean onRotate(float degrees, float focusX, float focusY) {\n dRotate = degrees;\n rotate += dRotate;\n Log.d(TAG, \"onRotate : \" + rotate);\n return true;\n }", "title": "" }, { "docid": "6dc061ac8eac39cc49073d754a39265c", "score": "0.60330665", "text": "@Override\n\tpublic void rotate() {\n\n\t}", "title": "" }, { "docid": "acee541452437ab0ba101dd0693e29bd", "score": "0.6022503", "text": "@Override\r\n\tpublic void rotar(int deg) {\t\t\r\n\t\t\r\n\t}", "title": "" }, { "docid": "ac44f59c963f0dd9d2445f8c2d4f9246", "score": "0.60156", "text": "public void updateCameraPos(){\n\n camera.position.set(boat.boatSprite.getX(),boat.boatSprite.getY(),0);\n }", "title": "" }, { "docid": "fd407ec5113a7936fa8b37f648fa35f7", "score": "0.60076845", "text": "void setCamera(Matrix camera);", "title": "" }, { "docid": "5149b38af815d67258c3092f0a4e3346", "score": "0.6004376", "text": "private void updateOrientation() {\r\n\r\n\t\t// skip orientation update if either grav or geo is missing\r\n\t\tif (mGravity == null) {return;}\r\n\t\tif (mGeomagnetic == null) {return;}\r\n\r\n\t\t// calculate rotationMatrix and orientation\r\n float[] R = new float[9];\r\n float[] I = new float[9];\r\n\r\n\t\t// derive rotation matrix from grav and geo sensors\r\n\t\tboolean success = SensorManager.getRotationMatrix(R, I, mGravity, mGeomagnetic);\r\n\t\tif (!success) {return;}\r\n\r\n\t\t// derive orientation-vector using the rotation matrix\r\n float[] orientationNew = new float[3];\r\n\t\tSensorManager.getOrientation(R, orientationNew);\r\n\r\n\t\t// inform listeners\r\n\t\tif (listener != null) {\r\n\r\n\t\t\t// orientation vector\r\n\t\t\tlistener.onData(SensorType.ORIENTATION_NEW,\r\n orientationNew[0] + \";\" +\r\n orientationNew[1] + \";\" +\r\n orientationNew[2]\r\n\t\t\t);\r\n\r\n\t\t\t// rotation matrix\r\n //Write the whole rotationMatrix R into the Listener.\r\n StringBuffer sb();\r\n\t for (int i = 1; i < 8; i++) {\r\n\t \tsb.append(R[i]);\r\n\t \tsb.append(';');\r\n\t }\r\n\t sb.append(R[8]);\r\n listener.onData(SensorType.ROTATION_MATRIX, sb.toString());\r\n\t\t}\r\n\r\n\t}", "title": "" }, { "docid": "a26d7268e447605d01719036a5a53a6c", "score": "0.59995264", "text": "void rotate(float dt);", "title": "" }, { "docid": "1c9570d86f48f1ceb0810ab1c2ef9f95", "score": "0.5994451", "text": "public static void planetChangeIn(Object3D currentPlanet, MyGLRenderer mGLR) {\n cam.lookAt(currentPlanet.getTransformedCenter());\n //First checks if the coordinates of the camera have to be increased or decreased, to match those of the planet\n if (checkVectors) {\n setRotateCenter(currentPlanet);\n cam.getPosition(camPosition);\n rotateVec.x = (distance * -(float) Math.sin(xAxis * ((float) Math.PI / 180)) * (float) Math.cos((yAxis) * ((float) Math.PI / 180))) + rotateCenter.x;\n rotateVec.y = (distance * -(float) Math.sin((yAxis) * ((float) Math.PI / 180))) + rotateCenter.y;\n rotateVec.z = (-distance * (float) Math.cos((xAxis) * ((float) Math.PI / 180)) * (float) Math.cos((yAxis) * ((float) Math.PI / 180))) + rotateCenter.z;\n\n if(camPosition.x < rotateVec.x) {\n xVectorGreater = true;\n } else if(camPosition.x >= rotateVec.x) {\n xVectorGreater = false;\n }\n if(camPosition.y < rotateVec.y) {\n yVectorGreater = true;\n } else if(camPosition.y >= rotateVec.y) {\n yVectorGreater = false;\n }\n if(camPosition.z < rotateVec.z) {\n zVectorGreater = true;\n } else if(camPosition.z >= rotateVec.z) {\n zVectorGreater = false;\n }\n checkVectors = false;\n\n //Changes coordinates until those of the planet are roughly met\n } else if (!checkVectors) {\n if(xVectorGreater && camPosition.x < rotateVec.x) {\n camPosition.x += moveSpeed;\n } else if(xVectorGreater && camPosition.x >= rotateVec.x){\n camPosition.x = rotateVec.x;\n }\n if(!xVectorGreater && camPosition.x > rotateVec.x) {\n camPosition.x -= moveSpeed;\n } else if(!xVectorGreater && camPosition.x <= rotateVec.x){\n camPosition.x = rotateVec.x;\n }\n\n if(yVectorGreater && camPosition.y < rotateVec.y) {\n camPosition.y += moveSpeed;\n } else if(yVectorGreater && camPosition.y >= rotateVec.y){\n camPosition.y = rotateVec.y;\n }\n if(!yVectorGreater && camPosition.y > rotateVec.y) {\n camPosition.y -= moveSpeed;\n } else if(!yVectorGreater && camPosition.y <= rotateVec.y){\n camPosition.y = rotateVec.y;\n }\n\n if(zVectorGreater && camPosition.z < rotateVec.z) {\n camPosition.z += moveSpeed;\n } else if(zVectorGreater && camPosition.z >= rotateVec.z){\n camPosition.z = rotateVec.z;\n }\n if(!zVectorGreater && camPosition.z > rotateVec.z) {\n camPosition.z -= moveSpeed;\n } else if(!zVectorGreater && camPosition.z <= rotateVec.z){\n camPosition.z = rotateVec.z;\n }\n }\n if(camPosition.x == rotateVec.x && camPosition.y == rotateVec.y && camPosition.z == rotateVec.z){\n checkVectors = true;\n mGLR.setTransitionIn(false);\n }\n cam.setPosition(camPosition);\n }", "title": "" }, { "docid": "be262c130ca07c0620566fc7b9d5e21e", "score": "0.5985378", "text": "public void update()\n {\n viewMat.setRotation(Quat.invert(dir));\n viewMat.translate(Vec3.negate(pos));\n \n Mat3 rot = Mat3.rotation(dir);\n right.setAsColumn(rot, 0);\n up.setAsColumn(rot, 1);\n forward.setAsColumn(rot, 2).negate();\n }", "title": "" }, { "docid": "b8671fc411c24dc254fb88f4d331a60a", "score": "0.5981625", "text": "private void applyRotation( Vector3f v0, Vector3f v1, float factor ) {\n tmpVector3f.cross( v0, v1 ); \n float alpha = factor * v0.angle( v1 );\n if ( v0.dot( v1 ) < 0 ) {\n alpha += Math.PI / 2.0f;\n }\n alpha *= trackballGain.getValue();\n tumble.set( tmpVector3f.x, tmpVector3f.y, tmpVector3f.z, alpha );\n tmpMatrix4d.set( tumble ); \n tmpMatrix4d.mul( bakedTransformation );\n bakedTransformation.set( tmpMatrix4d );\n }", "title": "" }, { "docid": "21f62dcd319c1056905936749ed2c723", "score": "0.59767574", "text": "public void applyTransformation(float interpolatedTime, Transformation t) {\n Matrix matrix = t.getMatrix();\n float degree = this.mFromDegree + ((this.mToDegree - this.mFromDegree) * interpolatedTime);\n this.mCamera.save();\n if (degree >= 82.0f) {\n if (this.mDdirection.equals(\"left\") || this.mDdirection.equals(\"right\")) {\n this.mCamera.rotateY(90.0f);\n } else {\n this.mCamera.rotateX(-90.0f);\n }\n } else if (degree <= -82.0f) {\n if (this.mDdirection.equals(\"left\") || this.mDdirection.equals(\"right\")) {\n this.mCamera.rotateY(90.0f);\n } else {\n this.mCamera.rotateX(-90.0f);\n }\n } else if (this.mDdirection.equals(\"left\") || this.mDdirection.equals(\"right\")) {\n this.mCamera.translate(0.0f, 0.0f, (float) this.mHalfWidth);\n this.mCamera.rotateY(degree);\n this.mCamera.translate(0.0f, 0.0f, (float) (-this.mHalfWidth));\n } else {\n this.mCamera.translate(0.0f, 0.0f, (float) this.mHalfHeight);\n this.mCamera.rotateX(-degree);\n this.mCamera.translate(0.0f, 0.0f, (float) (-this.mHalfHeight));\n }\n this.mCamera.getMatrix(matrix);\n this.mCamera.restore();\n matrix.preTranslate((float) (-this.mHalfWidth), (float) (-this.mHalfHeight));\n matrix.postTranslate((float) this.mHalfWidth, (float) this.mHalfHeight);\n }", "title": "" }, { "docid": "05b02b3f1416e09efab4e3dfc727ce42", "score": "0.59764045", "text": "void rotate() {\n int temp = north;\n north = -east;\n east = temp;\n }", "title": "" }, { "docid": "0fbb9b9c37a70c1b0f54edd624ab6936", "score": "0.5975546", "text": "public void calculateRelativePosition(double cam_x_pos,double cam_y_pos,double cam_z_pos,double i,double j,double k) {\n\t\tthis.rel_x_pos=this.abs_x_pos-cam_x_pos;\n\t\tthis.rel_y_pos=this.abs_y_pos-cam_y_pos;\n\t\tthis.rel_z_pos=this.abs_z_pos-cam_z_pos;\n\n\t\t// Rotate vobject around the new origin to match the camera viewing angle\n\t\tdouble tx=this.rel_x_pos;\n\t\tdouble ty=this.rel_y_pos;\n\t\tdouble tz=this.rel_z_pos;\n\n\t\t// Rotate around z axis\t\n\t\tthis.rel_x_pos=((tx*Math.cos(k))+(ty*Math.sin(k)));\n\t\tthis.rel_y_pos=((-tx*Math.sin(k))+(ty*Math.cos(k)));\n\n\t\ttx=this.rel_x_pos;\n\t\tty=this.rel_y_pos;\n\t\ttz=this.rel_z_pos;\n\n\t\t// Rotate around y axis\n\t\tthis.rel_x_pos=((tx*Math.cos(j))-(tz*Math.sin(j)));\n\t\tthis.rel_z_pos=((tx*Math.sin(j))+(tz*Math.cos(j)));\n\n\n\t\ttx=this.rel_x_pos;\n\t\tty=this.rel_y_pos;\n\t\ttz=this.rel_z_pos;\n\n\t\t// Rotate around x axis\n\t\tthis.rel_y_pos=((ty*Math.cos(i))+(tz*Math.sin(i)));\n\t\tthis.rel_z_pos=((-ty*Math.sin(i))+(tz*Math.cos(i)));\n\n\t}", "title": "" }, { "docid": "5c4c3bc34889df7ad0d41c00f0079dff", "score": "0.5970232", "text": "private void animateCamera( Location location ) {\n CameraPosition.Builder positionBuilder = new CameraPosition.Builder()\n .target( new LatLng( location.getLatitude(), location.getLongitude() ) )\n .zoom( 17 );\n\n //if there is bearing associated with this update, send it in\n if ( location.hasBearing() ) {\n positionBuilder.bearing( location.getBearing() );\n }\n view.updateCamera( positionBuilder.build() );\n }", "title": "" }, { "docid": "b1617a6ada0fb028aca620dc4d6ff572", "score": "0.5951624", "text": "public void act(float delta) {\r\n\t\trotationAnimTime += delta;\r\n\t\twhile (rotationAnimTime >= 10f)\r\n\t\t\trotationAnimTime -= 10f;\r\n\r\n\t\tfloat rotationPosMult = 0f;\r\n\t\tif (rotationAnimTime >= 5f) {\r\n\t\t\trotationPosMult = (7.5f - rotationAnimTime) / 2.5f;\r\n\t\t} else {\r\n\t\t\trotationPosMult = (rotationAnimTime - 2.5f) / 2.5f;\r\n\t\t}\r\n\r\n\t\tsetRotation(30f * rotationPosMult);\r\n\t\tinitializeHitbox();\r\n\t}", "title": "" }, { "docid": "91963de6132999675c28bf804f5df0ff", "score": "0.5950606", "text": "private void onUpdateOrientation(int orientation) {\n int rotation = (mActualFacing == FACING_FRONT)\n ? (mCamOrientation + orientation) % 360\n : (mCamOrientation - orientation + 360) % 360;\n if (rotation != mCamRotation) {\n synchronized (this) {\n mCamRotation = rotation;\n }\n }\n\n // We compensate for mirroring in the orientation. This differs from the rotation,\n // where we are invariant to mirroring.\n int fixedOrientation = rotation;\n if (mActualFacing == FACING_FRONT && mCamFrameHandler.isFrontMirrored()) {\n fixedOrientation = (360 - rotation) % 360; // compensate the mirror\n }\n if (mOrientation != fixedOrientation) {\n mOrientation = fixedOrientation;\n mCamFrameHandler.onUpdateCameraOrientation(mOrientation);\n }\n }", "title": "" }, { "docid": "0af1c35cc6bdac12b8de095251cefe30", "score": "0.5939075", "text": "@Override\n protected void updateTransformToParent(RigidBodyTransform transformToParent)\n {\n originOneInParent.setToZero(frameOne);\n originOneInParent.changeFrame(parentZUpFrame);\n\n originTwoInParent.setToZero(frameTwo);\n originTwoInParent.changeFrame(parentZUpFrame);\n\n // Rotation is to yaw onto the line between the feet:\n\n vectorBetweenFrames.sub(originTwoInParent, originOneInParent);\n\n vectorBetweenFrames2d.set(vectorBetweenFrames.getX(), vectorBetweenFrames.getY());\n\n\n // Translation is average between the two feet:\n parentToMidpointVector3d.add(originOneInParent, originTwoInParent);\n parentToMidpointVector3d.scale(0.5);\n\n // Create the transform:\n transform3D.setIdentity();\n\n if (vectorBetweenFrames2d.lengthSquared() < 1e-7)\n return;\n\n vectorBetweenFrames2d.normalize();\n transform3D.setRotationYawAndZeroTranslation(Math.PI / 2.0 + Math.atan2(vectorBetweenFrames2d.getY(), vectorBetweenFrames2d.getX()));\n\n transform3D.getTranslation().set(parentToMidpointVector3d);\n\n transformToParent.set(transform3D);\n }", "title": "" }, { "docid": "0ec0d0a142a45277af59d0d3220cc0b4", "score": "0.5938113", "text": "private void updateCarCameraTranslation(GL2 gl) {\n\t}", "title": "" }, { "docid": "49a7dcb45e3c3fce1e66ec70393a1a4b", "score": "0.59376", "text": "private void lookAt() {\r\n glRotatef(pitch, 1f, 0f, 0f);\r\n glRotatef(yaw, 0f, 1f, 0f);\r\n glTranslatef(position.x, position.y, position.z);\r\n \r\n // light reacting to camera view\r\n FloatBuffer lightPos = BufferUtils.createFloatBuffer(4);\r\n lightPos.put(position.x).put(position.y).put(position.z).put(1.0f).flip();\r\n glLight(GL_LIGHT0, GL_POSITION, lightPos);\r\n }", "title": "" }, { "docid": "880db5174a02c8372f6f71c8002b5f65", "score": "0.59342283", "text": "private void func_190623_q() {\n/* 292 */ float f = MathHelper.sqrt(this.motionX * this.motionX + this.motionZ * this.motionZ);\n/* 293 */ this.rotationYaw = (float)(MathHelper.atan2(this.motionX, this.motionZ) * 57.29577951308232D);\n/* */ \n/* 295 */ for (this.rotationPitch = (float)(MathHelper.atan2(this.motionY, f) * 57.29577951308232D); this.rotationPitch - this.prevRotationPitch < -180.0F; this.prevRotationPitch -= 360.0F);\n/* */ \n/* */ \n/* */ \n/* */ \n/* 300 */ while (this.rotationPitch - this.prevRotationPitch >= 180.0F)\n/* */ {\n/* 302 */ this.prevRotationPitch += 360.0F;\n/* */ }\n/* */ \n/* 305 */ while (this.rotationYaw - this.prevRotationYaw < -180.0F)\n/* */ {\n/* 307 */ this.prevRotationYaw -= 360.0F;\n/* */ }\n/* */ \n/* 310 */ while (this.rotationYaw - this.prevRotationYaw >= 180.0F)\n/* */ {\n/* 312 */ this.prevRotationYaw += 360.0F;\n/* */ }\n/* */ \n/* 315 */ this.rotationPitch = this.prevRotationPitch + (this.rotationPitch - this.prevRotationPitch) * 0.2F;\n/* 316 */ this.rotationYaw = this.prevRotationYaw + (this.rotationYaw - this.prevRotationYaw) * 0.2F;\n/* */ }", "title": "" }, { "docid": "79cbd02f4c26457df419897f06d24fd8", "score": "0.5920214", "text": "public void updateTransform() {\r\n\ttx2.setToIdentity();\r\n\t\r\n\t//tx2.rotate(spinAngle * (3.14/180));\r\n\r\n\t\r\n\ttx2.scale(scaleX, scaleY);\r\n\ttx2.translate(dx / scaleX, dy / scaleY);\r\n\t\r\n\t//tx2.rotate(spinAngle * (3.14/180), part1_X+500, part1_Y-500);\r\n\t\r\n\r\n\r\n }", "title": "" }, { "docid": "2d119321bb4dca23e0a8e0daf5d77adf", "score": "0.59191936", "text": "public void startRotation() {\n clearAnimation();\n\n RotateAnimation rotate = new RotateAnimation(\n getRotation(), 360,\n Animation.RELATIVE_TO_SELF, 0.5f,\n Animation.RELATIVE_TO_SELF, 0.5f\n );\n rotate.setDuration(ROTATE_ANIMATION_DURATION);\n rotate.setRepeatCount(Animation.INFINITE);\n rotate.setFillAfter(true);\n rotate.setRepeatMode(Animation.RESTART);\n startAnimation(rotate);\n }", "title": "" }, { "docid": "8f55bd489c2d38953e512fb28f65e5f5", "score": "0.59190786", "text": "public void updateCamera()\n\t{\n\t\tcam.update();\n\t\tbatch.setProjectionMatrix(cam.combined);\n\t}", "title": "" }, { "docid": "848c8726344bec75f1bce84a4b419a2e", "score": "0.5914078", "text": "public void turnCam() {\n camTalon.set(.878);\r\n Timer.delay(camSecs);\r\n camTalon.set(0.0); \r\n isShooting = true; \r\n }", "title": "" }, { "docid": "5c5bada0d5ed9638d7eebedfbe98474a", "score": "0.59075636", "text": "public void rotate(){\r\n\t\tif(tetris.getTimer() % tetris.getPeriod() != 0 &&\r\n\t\t\t\t!onTop() && type != 0 && !(nextTo(true)&&nextTo(false))){\r\n\t\t\tUnit one = center;\r\n\t\t\tUnit two = ni;\r\n\t\t\tUnit three = san;\r\n\t\t\tUnit four = yon;\r\n\t\t\tint dx, dy;\r\n\t\t\t\r\n\t\t\tdx = ni.getX() - center.getX();\r\n\t\t\tdy = ni.getY() - center.getY();\r\n\t\t\tni.setX(center.getX() - dy);\r\n\t\t\tni.setY(center.getY() + dx);\r\n\r\n\t\t\tdx = san.getX() - center.getX();\r\n\t\t\tdy = san.getY() - center.getY();\r\n\t\t\tsan.setX(center.getX() - dy);\r\n\t\t\tsan.setY(center.getY() + dx);\r\n\r\n\t\t\tdx = yon.getX() - center.getX();\r\n\t\t\tdy = yon.getY() - center.getY();\r\n\t\t\tyon.setX(center.getX() - dy);\r\n\t\t\tyon.setY(center.getY() + dx);\r\n\t\t\t\r\n\t\t\torientation++;\r\n\t\t\t\r\n\t\t\tif(!isWithin()) {\r\n\t\t\t\tint p = sideBorderCross();\r\n\t\t\t\tcenter.setX(center.getX() - p);\r\n\t\t\t\tni.setX(ni.getX() - p);\r\n\t\t\t\tsan.setX(san.getX() - p);\r\n\t\t\t\tyon.setX(yon.getX() - p);\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tif(isOverlapping()) {\r\n\t\t\t\t\tcenter = one;\r\n\t\t\t\t\tni = two;\r\n\t\t\t\t\tsan = three;\r\n\t\t\t\t\tyon = four;\r\n\t\t\t\t\torientation--;\r\n\t\t\t}\r\n\t\t}\r\n\t\torientation %= 4;\r\n\t}", "title": "" }, { "docid": "c91adc20680be2d13c8eee657402a218", "score": "0.590644", "text": "public void rotate() {\r\n\t\t\r\n\t\tint rows = shape.length;\r\n\t\tint cols = shape[0].length;\r\n\t\tint [][] Transposed = new int[cols][rows];\r\n\t\t\r\n\t\t//Transpose\r\n\t\tfor(int i = 0; i < rows; i++) {\r\n\t\t\t\tfor(int j = 0; j < cols; j++) {\r\n\t\t\t\t\tTransposed[j][i] = shape[i][j];\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\t//Flip rows\r\n\t\tint[] temp = Transposed[0];\r\n\t\tTransposed[0] = Transposed[cols - 1];\r\n\t\tTransposed[cols - 1] = temp;\r\n\t\t\r\n\t\tint tempx = x;\r\n\t\t\r\n\t\t//Before setting the rotation on the shape, check if rotation is possible. Ska kanske vara i GameEngine\r\n\t\tif((x+deltaX+Transposed[0].length > 10)||(x + deltaX < 0)) {\r\n\t\t\t\r\n\t\t\twhile(tempx + deltaX < 0) {\r\n\t\t\t\ttempx++;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\twhile(tempx +deltaX+Transposed[0].length > 10) {\r\n\t\t\t\ttempx--;\r\n\t\t\t}\r\n\t\t}\r\n\t\t\tfor(int i=0; i<Transposed.length; i++) {\r\n\t\t\t\tfor(int j=0; j<Transposed[0].length; j++) {\r\n\t\t\t\t\tif(Transposed[i][j] != 0) {\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tif((board.getBoard()[y+i][j+tempx+deltaX] != 0)) { \r\n\t\t\t\t\t\t\treturn;\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\tx = tempx;\r\n\t\tshape = Transposed;\r\n\t}", "title": "" }, { "docid": "d3239292b6dafdfc348b277c34097ad7", "score": "0.5902697", "text": "public void rotate(float angle) {\n rotateZ(angle);\n }", "title": "" }, { "docid": "029b825c6a1ce08ff9b24de45e0829d7", "score": "0.59011835", "text": "@Override\r\n\tpublic void rotate(float angle) {\n\t\t\r\n\t}", "title": "" }, { "docid": "711d4c35f4fa029b5a357d41d38a2f8a", "score": "0.5889589", "text": "void updateTransformRegion() {\n\tTransform3D tr = getCurrentLocalToVworld(null);\n\tschedSphere.setCenter(zeroPoint);\n\tschedSphere.transform(tr);\n\ttr.transform(zeroPoint, center);\n }", "title": "" }, { "docid": "3fe9b32c1dbad82ffc5d7c7cc73c8b4a", "score": "0.5883646", "text": "public void setRotation(float newValue) {\r\n\t\t// if (this instanceof MoveableGameObject) {\r\n\t\t// ((MoveableGameObject) this).onRotate(newValue);\r\n\t\t// } else {\r\n\t\trotation = newValue;\r\n\t\t// }\r\n\t}", "title": "" }, { "docid": "cbf805e79f10ccecd1af5af440c55ec5", "score": "0.5870839", "text": "@Override\n public void onPoseAvailable(TangoPoseData pose) {\n synchronized (sharedLock) {\n App.mRotation = pose.getRotationAsFloats();\n App.mPosition = pose.getTranslationAsFloats();\n //mGLFragment.updateCamera(App.mPosition);\n\n// Quaternion rot = new Quaternion(mRotation[2], mRotation[1], mRotation[2], mRotation[3]);\n// Vector3f pos = new Vector3f(translation[0], translation[1], translation[2]);\n\n\n //Log.d(TAG, \"Pose: \" + rot);\n// if (!mRenderer.isValid()) {\n// return;\n// }\n//\n// mRenderer.getTrajectory().updateTrajectory(translation);\n// mRenderer.getModelMatCalculator().updateModelMatrix(translation,\n// pose.getRotationAsFloats());\n// mRenderer.updateViewMatrix();\n\n //mGLFragment.getJmeApplication().getCamera().getRotation().set(mRotation[0], mRotation[1], mRotation[2], mRotation[3]);\n\n //mGLFragment.getJmeApplication().getCamera().setRotation(rot);\n //mGLFragment.getJmeApplication().getCamera().setLocation(pos);\n }\n }", "title": "" }, { "docid": "68110664269d4b9be7fde8bfd32cae8a", "score": "0.5866738", "text": "public final void cameraToUniverse() {\n if (toUniverse != null) {\n toUniverse.stop();\n }\n if (toSystem != null) {\n toSystem.stop();\n }\n if (toPlanet != null) {\n toPlanet.stop();\n }\n\n topXform.rzProperty().unbind();\n toUniverse = new Timeline(\n new KeyFrame(Duration.seconds(2),\n new KeyValue(baseXform.xProperty(), 0),\n new KeyValue(baseXform.yProperty(), 0),\n new KeyValue(baseXform.zProperty(), 0),\n new KeyValue(baseXform.rxProperty(), 0),\n new KeyValue(baseXform.ryProperty(), 0),\n new KeyValue(baseXform.rzProperty(), 0),\n new KeyValue(\n camera.translateZProperty(), UNIVERSE_ZOOM),\n new KeyValue(topXform.rxProperty(), 0),\n new KeyValue(topXform.ryProperty(), 0),\n new KeyValue(topXform.rzProperty(), 0)\n )\n );\n toUniverse.play();\n }", "title": "" }, { "docid": "2f5d2eb5e36614b562d7c64c321c6f3e", "score": "0.5854942", "text": "private void camVision(final float angleZero) {\n Orientation angles = imu.getAngularOrientation(AxesReference.INTRINSIC, AxesOrder.ZYX, AngleUnit.DEGREES);\n //find angle delta\n float angleDiff = ( angles.firstAngle - angleZero );\n //check if the servo can be moved to the right location and if so then do it\n if (((angles.firstAngle + angleDiff) >= angleZero - 150) && ((angles.firstAngle + angleDiff) <= (angleZero + 150)) ) {\n robot.Camera.setPosition(1-Math.abs( Float.parseFloat(df.format(angles.firstAngle)) * (0.5/90) - 0.55));\n //cam stays center while robot turns\n }\n }", "title": "" }, { "docid": "102b6e4094e9ef6586392213baf1b9c6", "score": "0.5847737", "text": "void turnTo(double desiredAngle) {\n\t\tdouble currentAngle = this.odometer.getTheta();\n\t\tdouble rotationAngle;\n\t\tdouble smallestAngle;\n\t\tif (currentAngle > desiredAngle) {\n\t\t\trotationAngle = currentAngle - desiredAngle;\n\t\t\tif (rotationAngle > 180) {\n\t\t\t\t// Turn right by 360 - rotationAngle\n\t\t\t\tsmallestAngle = 360 - rotationAngle;\n\t\t\t\tleftMotor.setSpeed(ROTATE_SPEED);\n\t\t\t\trightMotor.setSpeed(ROTATE_SPEED);\n\t\t\t\tleftMotor.rotate(convertAngle(leftRadius, width, smallestAngle), true);\n\t\t\t\trightMotor.rotate(-convertAngle(rightRadius, width, smallestAngle), false);\n\t\t\t} else {\n\t\t\t\t// Turn left by rotationAngle\n\t\t\t\tsmallestAngle = rotationAngle;\n\t\t\t\tleftMotor.setSpeed(ROTATE_SPEED);\n\t\t\t\trightMotor.setSpeed(ROTATE_SPEED);\n\t\t\t\tleftMotor.rotate(-convertAngle(leftRadius, width, smallestAngle), true);\n\t\t\t\trightMotor.rotate(convertAngle(rightRadius, width, smallestAngle), false);\n\t\t\t}\n\n\t\t} else if (currentAngle < desiredAngle) {\n\t\t\trotationAngle = desiredAngle - currentAngle;\n\t\t\tif (rotationAngle > 180) {\n\t\t\t\t// Turn left by 360 - rotationTheta\n\t\t\t\tsmallestAngle = 360 - rotationAngle;\n\t\t\t\tleftMotor.setSpeed(ROTATE_SPEED);\n\t\t\t\trightMotor.setSpeed(ROTATE_SPEED);\n\t\t\t\tleftMotor.rotate(-convertAngle(leftRadius, width, smallestAngle), true);\n\t\t\t\trightMotor.rotate(convertAngle(rightRadius, width, smallestAngle), false);\n\t\t\t} else {\n\t\t\t\t// Turn right by rotationTheta\n\t\t\t\tsmallestAngle = rotationAngle;\n\t\t\t\tleftMotor.setSpeed(ROTATE_SPEED);\n\t\t\t\trightMotor.setSpeed(ROTATE_SPEED);\n\t\t\t\tleftMotor.rotate(convertAngle(leftRadius, width, smallestAngle), true);\n\t\t\t\trightMotor.rotate(-convertAngle(rightRadius, width, smallestAngle), false);\n\t\t\t}\n\t\t}\n\n\t\t// Sets the thread to sleep for 200 ms once the robot finishes rotating.\n\t\ttry {\n\n\t\t\tThread.sleep(200);\n\t\t} catch (InterruptedException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\n\t}", "title": "" }, { "docid": "685f9f1ddc82b18f966fb460cdf4a4e3", "score": "0.58408505", "text": "public void endCamera() {\n if (!manipulatingCamera) {\n throw new RuntimeException(\"Cannot call endCamera() \" +\n \"without first calling beginCamera()\");\n }\n // reset the modelview to use this new camera matrix\n modelview.set(camera);\n modelviewInv.set(cameraInv);\n \n // set matrix mode back to modelview\n forwardTransform = modelview;\n reverseTransform = modelviewInv;\n \n // all done\n manipulatingCamera = false;\n }", "title": "" }, { "docid": "297d63426efcdaa4ebc929e97cc6cb51", "score": "0.58337396", "text": "@Override\r\n public Mat onCameraFrame(CameraBridgeViewBase.CvCameraViewFrame inputFrame) {\n mRgba = inputFrame.rgba();\r\n\r\n Imgproc.cvtColor(mRgba, mRGB, 1);\r\n detectMarkers(mRGB, dict, corners, ids);\r\n drawDetectedMarkers(mRGB, corners, ids, new Scalar(0, 255, 0));\r\n\r\n x_heading = 0.0f;\r\n y_heading = 0.0f;\r\n rotation = 0.0f;\r\n altitude_change = 0.0f;\r\n\r\n\r\n if(corners.size() > 0)\r\n {\r\n Mat rvec = new Mat();\r\n Mat tvec = new Mat();\r\n ArrayList<Mat> firstCorners = new ArrayList<>();\r\n firstCorners.add(corners.get(0));\r\n estimatePoseSingleMarkers(firstCorners, 1, cameraCalib, distanceCoeff, rvec, tvec);\r\n Log.d(\"ARUCO_MATRIX\", \"Corners: \" + corners.toString() + \"Rvec: \" + rvec.dump() + \"(Size: \" + rvec.size().toString() + \") \" + \" Tvec: \" + tvec.dump());\r\n Log.d(\"ARUCO_ID\", \"Ids: \" + ids.dump());\r\n drawAxis(mRGB, cameraCalib, distanceCoeff, rvec, tvec, 1);\r\n\r\n Mat rotation_matrix = new Mat();\r\n Mat jacobian = new Mat();\r\n\r\n Calib3d.Rodrigues(rvec, rotation_matrix, jacobian);\r\n double [] eulerAngles = new double[3];\r\n //Log.d(\"ARUCO_MATRIX\", \"Rotation Matrix: \" + rotation_matrix.dump() + \"Second data point maybe?: \" + rotation_matrix.get(0, 1)[0]);\r\n eulerAngles = MatrixToYawPitchRoll(rotation_matrix);\r\n\r\n// double a = tvec.get(0, 0)[0];\r\n// double a1 = tvec.get(0, 0)[1];\r\n// double b = tvec.get(0, 1)[0];\r\n// double c = tvec.get(0, 2)[0];\r\n String t_x = \"Translate X:\" + tvec.get(0, 0)[0];\r\n String t_y = \"Translate Y:\" + tvec.get(0, 0)[1];\r\n String t_z = \"Translate Z:\" + tvec.get(0, 0)[2];\r\n\r\n String eulerX = \"Rotate X:\" + eulerAngles[0];\r\n String eulerY = \"Rotate Y:\" + eulerAngles[1];\r\n String eulerZ = \"Rotate Z:\" + eulerAngles[2];\r\n\r\n Imgproc.putText(mRGB, t_x, new Point(10, 30), Core.FONT_HERSHEY_SIMPLEX, 0.8, new Scalar(255));\r\n Imgproc.putText(mRGB, t_y, new Point(10, 50), Core.FONT_HERSHEY_SIMPLEX, 0.8, new Scalar(255));\r\n Imgproc.putText(mRGB, t_z, new Point(10, 70), Core.FONT_HERSHEY_SIMPLEX, 0.8, new Scalar(255));\r\n\r\n Imgproc.putText(mRGB, eulerX, new Point(10, 110), Core.FONT_HERSHEY_SIMPLEX, 0.8, new Scalar(255));\r\n Imgproc.putText(mRGB, eulerY, new Point(10, 130), Core.FONT_HERSHEY_SIMPLEX, 0.8, new Scalar(255));\r\n Imgproc.putText(mRGB, eulerZ, new Point(10, 150), Core.FONT_HERSHEY_SIMPLEX, 0.8, new Scalar(255));\r\n\r\n int id = (int)ids.get(0, 0)[0];\r\n\r\n // Move command\r\n if((id >= 120) && (id <= 129))\r\n {\r\n x_heading = Math.sin(eulerAngles[2]);\r\n y_heading = Math.cos(eulerAngles[2]);\r\n }\r\n else if((id >= 220) && (id <= 229)) // rotation\r\n {\r\n rotation = -eulerAngles[2];\r\n }\r\n else if((id >= 320) && (id <= 329)) // move to marker\r\n {\r\n x_heading = (tvec.get(0, 0)[0]-tvec.get(0, 0)[2]*2) * 10;\r\n y_heading = (tvec.get(0, 0)[1]-tvec.get(0, 0)[2]) * 10;\r\n }\r\n else if((id >= 420) && (id <= 429)) // change altitude\r\n {\r\n float desired_altitude = id - 420;\r\n altitude_change = -(tvec.get(0, 0)[2]/ALT_DIVISER - desired_altitude);\r\n if (id == 422)\r\n {\r\n x_heading = (tvec.get(0, 0)[0]-tvec.get(0, 0)[2]*2) * 10;\r\n y_heading = (tvec.get(0, 0)[1]-tvec.get(0, 0)[2]) * 10;\r\n landing_mode = 1;\r\n }\r\n }\r\n\r\n\r\n Imgproc.putText(mRGB, \"X heading: \" + x_heading, new Point(10, 190), Core.FONT_HERSHEY_SIMPLEX, 0.8, new Scalar(255));\r\n Imgproc.putText(mRGB, \"Y heading: \" + y_heading, new Point(10, 220), Core.FONT_HERSHEY_SIMPLEX, 0.8, new Scalar(255));\r\n Imgproc.putText(mRGB, \"Rotation: \" + rotation, new Point(10, 250), Core.FONT_HERSHEY_SIMPLEX, 0.8, new Scalar(255));\r\n Imgproc.putText(mRGB, \"Altitude Change: \" + altitude_change, new Point(10, 270), Core.FONT_HERSHEY_SIMPLEX, 0.8, new Scalar(255));\r\n\r\n\r\n// Imgproc.arrowedLine(mRGB, new Point(0.5 * myWidth,0.5 * myHeight), new Point((320+20*x_heading),(240-20*y_heading)), new Scalar(255));\r\n//\r\n//\r\n// Imgproc.arrowedLine(mRGB, new Point(0.5 * myWidth, 0.416 * myHeight), new Point((0.5 * myWidth+15*rotation), 0.47 * myHeight), new Scalar(255));\r\n// Imgproc.arrowedLine(mRGB, new Point(0.56 * myWidth, 0.5 * myHeight), new Point(0.05 * myWidth,240+15*rotation), new Scalar(255));\r\n// Imgproc.arrowedLine(mRGB, new Point(0.5 * myWidth, 0.58 * myHeight), new Point((0.5 * myWidth - 15 * rotation), 0.57 * myHeight), new Scalar(255));\r\n// Imgproc.arrowedLine(mRGB, new Point(0.4375 * myWidth, 0.5 * myHeight), new Point(0.43 * myWidth, 240-15 * rotation), new Scalar(255));\r\n// //cv2.arrowedLine(frame, (320,200), (int(320+15*rotation),int(200)), (255,50,50), 4)\r\n// // cv2.arrowedLine(frame, (360,240), (int(360),int(240+15*rotation)), (255,50,50), 4)\r\n// // cv2.arrowedLine(frame, (320,280), (int(320-15*rotation),int(280)), (255,50,50), 4)\r\n// //cv2.arrowedLine(frame, (280,240), (int(280),int(240-15*rotation)), (255,50,50), 4)\r\n//\r\n// Imgproc.arrowedLine(mRGB, new Point(0.09375 * myWidth, 0.125 * myHeight), new Point((0.09375 * myWidth-10*altitude_change), (0.125 * myHeight-10*altitude_change)), new Scalar(255));\r\n// Imgproc.arrowedLine(mRGB, new Point(0.09375 * myWidth, 0.875 * myHeight), new Point((0.09375 * myWidth-10*altitude_change), (0.875 * myHeight+10*altitude_change)), new Scalar(255));\r\n// Imgproc.arrowedLine(mRGB, new Point(0.90625 * myWidth, 0.125 * myHeight), new Point((0.90625 * myWidth+10*altitude_change), (0.125 * myHeight-10*altitude_change)), new Scalar(255));\r\n// Imgproc.arrowedLine(mRGB, new Point(0.90625 * myWidth, 0.875 * myHeight), new Point((0.90625 * myWidth+10*altitude_change), (0.875 * myHeight+10*altitude_change)), new Scalar(255));\r\n\r\n // format message\r\n if (x_heading > 49)\r\n x_heading = 49;\r\n else if (x_heading < -49)\r\n x_heading = -49;\r\n\r\n if (y_heading > 49)\r\n y_heading = 49;\r\n else if (y_heading < -49)\r\n y_heading = -49;\r\n x_heading += 50;\r\n y_heading += 50;\r\n//\r\n\r\n // send to USB\r\n// sendString = \"BLAZEIT: X00 Y00 R00 Z00\";\r\n\r\n }\r\n\r\n // Returned frame will be displayed on the screen\r\n return mRGB;\r\n }", "title": "" }, { "docid": "a1648114447476f2ef47182a60f0b5aa", "score": "0.5830144", "text": "@Override\n public boolean onAreaTouched(TouchEvent pSceneTouchEvent, ITouchArea pTouchArea, float pTouchAreaLocalX, float pTouchAreaLocalY) {\n\n if(pSceneTouchEvent.getAction()==TouchEvent.ACTION_DOWN){\n magnetic=true;\n startAngle=(float)(Math.atan2(pTouchAreaLocalY - (mBoundChaseCamera.getHeight()/2), pTouchAreaLocalX - (mBoundChaseCamera.getWidth()/2)) * 180 / Math.PI);\n face_body_connector.setUpdateRotation(false);\n face.setVisible(false);\n face2.setVisible(true);\n\n }else if(pSceneTouchEvent.getAction()==TouchEvent.ACTION_UP){\n magnetic=false;\n face_body_connector.setUpdateRotation(true);\n face.setVisible(true);\n face2.setVisible(false);\n }\n\n // Log.v(\"wspx\",\"( \"+pTouchAreaLocalX+\", \"+pTouchAreaLocalY+\" )\"+(mBoundChaseCamera.getWidth()/2)+\" :cam: \"+(mBoundChaseCamera.getHeight()/2));\n\n // (mBoundChaseCamera.getCenterX()\n\n // face.getRotation();\n // face_body.getAngularVelocity();\n\n float angle = (float)(Math.atan2(pTouchAreaLocalY - (mBoundChaseCamera.getHeight()/2), pTouchAreaLocalX - (mBoundChaseCamera.getWidth()/2)) * 180 / Math.PI);\n float updateAngle=angle-startAngle;\n\n // face_body.setAngularVelocity(updateAngle);\n\n if(magnetic) {\n // face_body_connector.setUpdateRotation(true);\n face_body.setTransform(face_body.getPosition().x, face_body.getPosition().y, face_body.getAngle() + (float) Math.toRadians(updateAngle));\n face_body.setAngularVelocity(0f);\n // face_body_connector.setUpdateRotation(false);\n }\n // face.setRotation(face.getRotation()+updateAngle);\n\n startAngle=angle;\n\n // face.setRotation(face.getRotation()+updateAngle);\n // Log.v(\"wspx\",\"angle: \"+angle + \" face angle: \"+face.getRotation()+\" face velocity: \"+face_body.getAngularVelocity()+\" body rot: \"+face_body.getAngle());\n\n\n\n return false;\n }", "title": "" }, { "docid": "d845fcfe3268a4ea1ac080eede57d0da", "score": "0.58241534", "text": "public abstract Matrix3x2fc rotateAbout(float ang, float x, float y);", "title": "" }, { "docid": "7a85250cc79b355f73deab412e27a9cc", "score": "0.582365", "text": "@Override\n public void updateHeadLookRotation(GeyserSession session, float headYaw) {\n }", "title": "" }, { "docid": "be52352bd285ad717128db6ca9f9d287", "score": "0.5821494", "text": "public void goRotator(double rot) {\n\n\t\tfixed = true;\n\n\t\tazTrackingState = TCS_Status.STATE_OFF;\n\t\taltTrackingState = TCS_Status.STATE_OFF;\n\t\trotTrackingState = TCS_Status.STATE_OFF;\n\t\ttelescope.mechanisms.rotMode = TCS_Status.ROT_MOUNT;\n\t\ttelescope.mechanisms.rotDemand = Math.toDegrees(rot);\n\n\t}", "title": "" }, { "docid": "1abf901f544622f9e0342e6814e2a0e5", "score": "0.5819082", "text": "public void rotate(Quaternion rotation) {\r\n\t\tsetRelativeRot(this.rot.multiply(rotation));\r\n\t}", "title": "" }, { "docid": "992274e1060c7b58519f3453e8fc33d8", "score": "0.5818181", "text": "public void rotate() \r\n { \r\n if(m_clockwise) \r\n { \r\n //if clockwise then increment the rotation angle \r\n //by the offset till the angle is 360 \r\n //then again set to 0 \r\n m_currentRotateAngle += ROTATE_ANGLE_OFFSET; \r\n \r\n //mod takes care of setting the angle to 0 if \r\n //it is 360 \r\n m_currentRotateAngle %= 360; \r\n } \r\n else \r\n { \r\n //if anti-clockwise then decrement the rotation angle \r\n //by the offset till the angle is equal to 0 \r\n //then again set to 360 \r\n m_currentRotateAngle -= ROTATE_ANGLE_OFFSET; \r\n \r\n if(m_currentRotateAngle <= 0) \r\n { \r\n m_currentRotateAngle = 360; \r\n } \r\n } \r\n \r\n //repaint the image panel \r\n repaint(); \r\n }", "title": "" }, { "docid": "9c0c5e26858cebf5486d7d14131257c8", "score": "0.58118343", "text": "public TranslateRotate() {\n\t\tshape = new MovableRectangle();\n\t}", "title": "" }, { "docid": "f88a09932a8b3a0fae07437599abc45b", "score": "0.5807585", "text": "@Override\n public void thawRotation() throws RemoteException {\n }", "title": "" }, { "docid": "1d785be7996842fac4a4b835c3425ec8", "score": "0.57990575", "text": "public void initCamera()\r\n {\r\n\t\tif (tracing)\r\n\t\t\tSystem.out.println(\"initCamera() called.\");\r\n cam = new Camera(settings.getWidth(), settings.getHeight());\r\n cam.setFrustumPerspective(45f, (float)cam.getWidth() / cam.getHeight(), 1f, 10000f);\r\n cam.setAxes(cam.getLeft(), Vector3f.UNIT_Y, lookvec);\r\n //cam.setLocation(new Vector3f(357.61813f, -46.365437f, 546.6056f));\r\n //cam.lookAt(new Vector3f(400f, -50f, 0f), Vector3f.UNIT_Y);\r\n renderManager = new RenderManager(renderer);\r\n renderManager.setTimer(timer);\r\n viewPort = renderManager.createMainView(\"Default\", cam);\r\n viewPort.setClearEnabled(true);\r\n // Create a new cam for the gui\r\n Camera guiCam = new Camera(settings.getWidth(), settings.getHeight());\r\n guiViewPort = renderManager.createPostView(\"Gui Default\", guiCam);\r\n guiViewPort.setClearEnabled(false);\r\n \r\n }", "title": "" }, { "docid": "65d47ede31919e874881fc39786c473a", "score": "0.57962877", "text": "public void rotate(float angle)\n/* */ {\n/* 913 */ checkMatrix(2);\n/* 914 */ this.matrix.rotate(angle);\n/* */ }", "title": "" }, { "docid": "2405c85f7481390e28f1a6a240e106c4", "score": "0.5793786", "text": "private void rotateCD() {\n\n binding.layoutVinyl.rlPlayer.animate().rotationBy(isPlaying() ? Constants.ROTATION : 0).setDuration(50).setListener(new AnimationEndListener() {\n @Override\n public void onAnimationEnd(Animator animation) {\n rotateCD();\n }\n });\n }", "title": "" } ]
0830ff2356d52d9fb7f2324c19b6b998
Insert the nonxml content in the xml database.
[ { "docid": "b37e3540554ba19e8af6701fc816bb5c", "score": "0.59842867", "text": "public long insertNonXMLDocument(InputStream aInputStream, IAeXMLDBConnection aConnection)\r\n throws AeXMLDBException;", "title": "" } ]
[ { "docid": "022575ab56c4b0dc66c3670a437aad48", "score": "0.6249359", "text": "public abstract void insertContent(Data data) throws Exception;", "title": "" }, { "docid": "220df68c8ee67c2b90594b8240768750", "score": "0.6020543", "text": "@Test\r\n\tpublic void testImportXMLToDatabase(){\n\t\ttry{\r\n\t\t\tImportToDatabase.importXMLToDatabase(url, xmlDocString);\r\n\t\t}catch(SQLException e){\r\n\t\t\te.printStackTrace();\r\n\t\t\tAssert.fail(\"SQL Exception occurs\");\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "de8de456f1fb56266ce408253d28a3b9", "score": "0.5891199", "text": "Cursor insert();", "title": "" }, { "docid": "37bf5b391fb21d99ee13bd2e594578f7", "score": "0.5744268", "text": "protected void importContent(Element xml) {\n\t\tsetContent((xml.getChild(\"contents\") == null) ?\n\t\t\t\t\"\" :\n\t\t\t\t\txml.getChild(\"contents\").getValue());\n\t}", "title": "" }, { "docid": "c5bdb3be4e144164c3ecf6d662afa8c3", "score": "0.56731594", "text": "public void InsertData() {\n\t\tLog.d(\"Insert: \", \"Inserting ..\");\n\n\t\ttry {\n\t\t\tpullParserFactory = XmlPullParserFactory.newInstance();\n\t\t\tXmlPullParser parser = pullParserFactory.newPullParser();\n\n\t\t\tInputStream in_a = getActivity().getAssets().open(\n\t\t\t\t\t\"a_lvr_land_a.xml\");\n\n\t\t\tInputStream in_b = getActivity().getAssets().open(\n\t\t\t\t\t\"a_lvr_land_b.xml\");\n\t\t\tInputStream in_c = getActivity().getAssets().open(\n\t\t\t\t\t\"a_lvr_land_c.xml\");\n\t\t\tparser.setFeature(XmlPullParser.FEATURE_PROCESS_NAMESPACES, false);\n\t\t\tparser.setInput(in_a, null);\n\t\t\tparseXML(parser, 1);\n\t\t\tLog.d(\"Insert\", transObjectList.size() + \"筆\");\n\t\t\tfor (TransactionBuilding transObj : transObjectList) {\n\t\t\t\tString[] latlon = addressToLatLon(transObj._address);\n\n\t\t\t\ttransObj.setLAT(latlon[0]);\n\t\t\t\ttransObj.setLON(latlon[1]);\n\t\t\t\tLog.d(\"Insert\", transObj._address + \":\" + transObj._lat + \",\"\n\t\t\t\t\t\t+ transObj._lon);\n\t\t\t\tdb.addContact(transObj);\n\t\t\t}\n\t\t\tparser.setInput(in_b, null);\n\t\t\tparseXML(parser, 2);\n\t\t\tLog.d(\"Insert\", transObjectList.size() + \"筆\");\n\t\t\tfor (TransactionBuilding transObj : transObjectList) {\n\t\t\t\tString[] latlon = addressToLatLon(transObj._address);\n\t\t\t\ttransObj.setLAT(latlon[0]);\n\t\t\t\ttransObj.setLON(latlon[1]);\n\t\t\t\tLog.d(\"Insert\", transObj._address + \":\" + transObj._lat + \",\"\n\t\t\t\t\t\t+ transObj._lon);\n\t\t\t\tdb.addContact(transObj);\n\t\t\t}\n\t\t\tparser.setInput(in_c, null);\n\t\t\tparseXML(parser, 3);\n\t\t\tLog.d(\"Insert\", transObjectList.size() + \"筆\");\n\t\t\tfor (TransactionBuilding transObj : transObjectList) {\n\t\t\t\tString[] latlon = addressToLatLon(transObj._address);\n\t\t\t\ttransObj.setLAT(latlon[0]);\n\t\t\t\ttransObj.setLON(latlon[1]);\n\t\t\t\tLog.d(\"Insert\", transObj._address + \":\" + transObj._lat + \",\"\n\t\t\t\t\t\t+ transObj._lon);\n\t\t\t\tdb.addContact(transObj);\n\t\t\t}\n\t\t} catch (XmlPullParserException e) {\n\n\t\t\te.printStackTrace();\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "title": "" }, { "docid": "b8171c0915fc4a2d90cdcdcab1e36c1f", "score": "0.5557261", "text": "void addXMLGarbage(int iXMLNode);", "title": "" }, { "docid": "6ec912d3e5c2b22463e78558cbe04d03", "score": "0.552157", "text": "@GET\r\n //@Consumes(MediaType.APPLICATION_XML)\r\n @Path(\"insert\")\r\n public void insert() {\r\n dh.insert(\"teste\");\r\n }", "title": "" }, { "docid": "6116b619fb32f639e8c3a77a6de8aec0", "score": "0.5516653", "text": "public void insertDocumentosElectonicos(String codigoDocumento);", "title": "" }, { "docid": "94093b46ae86aee1832169c07d0b4621", "score": "0.54947513", "text": "public void testInsert()\n\t{\n\t\t// Insert returns false when it works correctly. \n\t\tassertFalse(tree.insert(x)); \n\t\tassertFalse(tree.insert(y));\n\t\tassertFalse(tree.insert(z)); \n\t\tassertFalse(tree.insert(x)); \n\t\tassertFalse(tree.insert(y));\n\t\tassertFalse(tree.insert(z)); \n\t\ttree.makeEmpty();\n\t\tassertFalse(tree.insert(x));\n\t}", "title": "" }, { "docid": "15994b6a2ba056abdbb5ae36112a8bf7", "score": "0.5483173", "text": "int insert(PageElement record);", "title": "" }, { "docid": "1ac8b4fed43bfe45e5e0d8a7e92e1674", "score": "0.5465193", "text": "public void insertStichwort(Context context, String stichwort, String quelle, String fundstelle, String text){\n //First, store all of the elements in an object of type ContentValues.\n ContentValues values = new ContentValues(4);\n values.put(\"stichwort\", stichwort);\n values.put(\"quelle\", quelle);\n values.put(\"fundstelle\", fundstelle);\n values.put(\"text\", text);\n\n //Then, sthore all of the elements in the DB by passing that object of type ContentValues\n //to the method insertOrThrow()\n SQLiteDatabase db = this.getWritableDatabase();\n try {\n db.insertOrThrow(\"Stichworte\", null, values);\n Toast.makeText(context, R.string.eintrag_gespeichert, Toast.LENGTH_SHORT).show();\n }catch(SQLException ex){\n Log.d(this.getClass().getSimpleName(), ex.toString());\n Toast.makeText(context, R.string.eintrag_nicht_gespeichert, Toast.LENGTH_SHORT).show();\n }finally {\n db.close();\n }\n }", "title": "" }, { "docid": "ef349d340253797682a2557d8e13b0b7", "score": "0.5454039", "text": "int insert(ArticleContent record);", "title": "" }, { "docid": "adc7eccfd52b0b431e5572a7f3350854", "score": "0.5452987", "text": "public InMemoryLittleSQLXML(final String content) throws SQLException {\n\t\tif (content == null) {\n\t\t\tthrow new NullPointerException(\"Content can't be null\");\n\t\t}\n\t\telse {\n\t\t\tsetString(content);\n\t\t}\n\t}", "title": "" }, { "docid": "dda28c62b464dd9096717f6f75f6aaa0", "score": "0.5452657", "text": "@Override\r\n\tpublic Long insert(Data data) throws Exception {\r\n\t\tLong contentId = contentDAO.insertContent(data);\r\n\t\tdata.add(0, \"contentId\", contentId);\r\n\t\tinsertContent(data);\r\n\t\tupdateTag(data);\r\n\t\tpathDAO.updatePath(data);\r\n\t\treturn contentId;\r\n\t}", "title": "" }, { "docid": "563a02619e1d211c9058009a0a25e5e5", "score": "0.5452423", "text": "@Override\n protected void prepareData(IDatabaseConnection iconn) throws Exception {\n execSql(iconn, \"delete from YouTableName_1\");\n //INSERT TEST DATA\n ReplacementDataSet createDataSet = createDataSet(Thread.currentThread().getContextClassLoader().getResourceAsStream(\"MyTest.xml\"));\n DatabaseOperation.INSERT.execute(iconn, createDataSet);\n }", "title": "" }, { "docid": "c5a1bd981136e6a80c9960db7af90615", "score": "0.54490966", "text": "@Override\r\n\tpublic void insert() {\n\r\n\t}", "title": "" }, { "docid": "11786e081788597d50a2f91056cf8ccf", "score": "0.5434816", "text": "public void saveDataByXml(String sqlStr){\n\t\tSession session = getSession();\n\t\ttry {\n\t\t\tQuery query = session.createSQLQuery(sqlStr);\n\t\t\tquery.executeUpdate();\n\t\t} finally {\n\t\t\treleaseSession(session);\n\t\t}\n\t\t\n\t}", "title": "" }, { "docid": "b0e1e149d911e2098bec2486e6cc7bf3", "score": "0.5403078", "text": "public void insert();", "title": "" }, { "docid": "b0e1e149d911e2098bec2486e6cc7bf3", "score": "0.5403078", "text": "public void insert();", "title": "" }, { "docid": "55d33fe5331c0956c9490b623b6fbf93", "score": "0.5385052", "text": "private void PopulateXML() {\n\t\ttry {\n\t\t\tdocFactory = DocumentBuilderFactory.newInstance();\n\t\t\tdocBuilder = docFactory.newDocumentBuilder();\n\t\t\t// root elements\n\t\t\tdoc = docBuilder.newDocument();\n\t\t\t\n\t\t\tnodeComment = doc.createComment(\"Advanced Java Assignment\");\n\t\t\tdoc.appendChild(nodeComment);\n\t\t\tnodeComment = doc.createComment(\"Nenad Samardzic\");\n\t\t\tdoc.appendChild(nodeComment);\n\t\t\t\n\t\t\trootElement = doc.createElement(\"Bnai_Zion_and_Cooper_Union\");\n\t\t\tdoc.appendChild(rootElement);\n\n\t\t\tnodeClient = doc.createElement(\"client\");\n\t\t\trootElement.appendChild(nodeClient);\n\n\t\t\tnodeIP = doc.createElement(\"ip\");\n\t\t\tsIP = \"\" + InetAddress.getLocalHost().getHostAddress();\n\t\t\tnodeIP.appendChild(doc.createTextNode(sIP));\n\t\t\tnodeClient.appendChild(nodeIP);\n\n\t\t\tnodePort = doc.createElement(\"port\");\n\t\t\tnodePort.appendChild(doc.createTextNode(sPort));\n\t\t\tnodeClient.appendChild(nodePort);\n\n\t\t\tnodeTrans = doc.createElement(\"transcript\");\n\t\t\tnodeTrans.appendChild(doc.createTextNode(sCommand));\n\t\t\tsDBText = sDBText + sCommand;\n\t\t\tnodeClient.appendChild(nodeTrans);\t\t\t\t\t\t\t\t\n\t\t} catch (ParserConfigurationException pcex) {\n\t\t\tpcex.printStackTrace();\n\t\t} catch (UnknownHostException uhex) {\n\t\t\tuhex.printStackTrace();\n\t\t}\n\t}", "title": "" }, { "docid": "78cee3fc02182f9ea0cd7605f0fb1917", "score": "0.5325581", "text": "private void insertDummyDataToDB() {\n ContentValues contentValues_0 = dbManager.javaObjectToContentValue(modelItem_0);\n ContentValues contentValues_1 = dbManager.javaObjectToContentValue(modelItem_1);\n ContentValues contentValues_2 = dbManager.javaObjectToContentValue(modelItem_2);\n ContentValues contentValues_3 = dbManager.javaObjectToContentValue(modelItem_3);\n ContentValues contentValues_4 = dbManager.javaObjectToContentValue(modelItem_4);\n ContentValues contentValues_5 = dbManager.javaObjectToContentValue(modelItem_5);\n ContentValues contentValues_6 = dbManager.javaObjectToContentValue(modelItem_6);\n ContentValues contentValues_7 = dbManager.javaObjectToContentValue(modelItem_7);\n ContentValues contentValues_8 = dbManager.javaObjectToContentValue(modelItem_8);\n ContentValues contentValues_9 = dbManager.javaObjectToContentValue(modelItem_9);\n\n dbManager.insertInTable(\"flower\", contentValues_0);\n dbManager.insertInTable(SQLCommands.TABLE_NAME, contentValues_1);\n dbManager.insertInTable(SQLCommands.TABLE_NAME, contentValues_2);\n dbManager.insertInTable(SQLCommands.TABLE_NAME, contentValues_3);\n dbManager.insertInTable(SQLCommands.TABLE_NAME, contentValues_4);\n dbManager.insertInTable(SQLCommands.TABLE_NAME, contentValues_5);\n dbManager.insertInTable(SQLCommands.TABLE_NAME, contentValues_6);\n dbManager.insertInTable(SQLCommands.TABLE_NAME, contentValues_7);\n dbManager.insertInTable(SQLCommands.TABLE_NAME, contentValues_8);\n dbManager.insertInTable(SQLCommands.TABLE_NAME, contentValues_9);\n //------------------------------------------------------------------------------------------\n }", "title": "" }, { "docid": "690dcabfccbde8e6b971b669562a8368", "score": "0.5303903", "text": "public static void maveninsert(Session _session, String filecontent) throws IOException {\n\t\tloghiv log = new loghiv();\n \tlog.set_texte(filecontent);\n \tlog.set_data(new Date());\n \t_session.beginTransaction();\n \t_session.save(log);\n \t_session.getTransaction().commit();\n \t_session.clear();\n\t}", "title": "" }, { "docid": "991c76a579afe4e0fad7d2874bcac46a", "score": "0.5303357", "text": "public void insert(CellInfo qinfo) {\n root.insertNode(qinfo);\n }", "title": "" }, { "docid": "1b1e190f83ff0c5106f55b3938de7bed", "score": "0.5297534", "text": "@Override\n\tpublic void insertDocument(Document document) throws DBAbstractionException\n\t{\n\t\tStringBuilder builder = new StringBuilder();\n\t\tbuilder.append(\"INSERT INTO Documents ( \");\n\t\tbuilder.append(\"id, timestamp, created_under_node_id, \");\n\t\tbuilder.append(\"created_by_dev_group_id, parent_directory_id) \");\n\t\tbuilder.append(\"VALUES (?, ?, ?, ?, ?)\");\n\t\t\n\t\ttry \n\t\t{\n\t\t\tPreparedStatement ps = connection.prepareStatement(builder.toString());\n\t\t\t\n\t\t\tps.setString(1, document.getId()); //id\n\t\t\tps.setLong(2, document.getTimestamp().getTime()); //timestamp\n\t\t\tps.setString(3, document.getCreatedUnderNodeId() == null ? \"null\" : document.getCreatedUnderNodeId()); //created_under_node_id\n\t\t\tps.setString(4, document.getCreatedByDevGroupId()); //created_by_dev_group_id\n\t\t\tps.setString(5, document.getParentDirectoryId()); //parent_directory_id\n\t\t\t\n\t\t\t//execute the query\n\t\t\texecuteWithNoResults(ps);\n\t\t}\n\t\tcatch (SQLException e)\n\t\t{\n\t\t\tthrow new DBAbstractionException(e);\n\t\t}\n\t}", "title": "" }, { "docid": "1a8fef52c1f03f541b65280329a4b1ac", "score": "0.5261607", "text": "public void execute(String xml, String tableName, String flag)\r\n/* 17: */ {\r\n/* 18: */ try\r\n/* 19: */ {\r\n/* 20:27 */ this.bs.writeLog(\" 接口XML \" + xml + \" \");\r\n/* 21: */ \r\n/* 22:29 */ Document doc = DocumentHelper.parseText(xml);\r\n/* 23: */ \r\n/* 24: */ \r\n/* 25: */ \r\n/* 26: */ \r\n/* 27: */ \r\n/* 28: */ \r\n/* 29: */ \r\n/* 30: */ \r\n/* 31: */ \r\n/* 32:39 */ Element root = doc.getRootElement();\r\n/* 33:40 */ List<Element> childList = root.elements();\r\n/* 34:41 */ for (int i = 0; i < childList.size(); i++)\r\n/* 35: */ {\r\n/* 36:42 */ RecordSet rst = new RecordSet();\r\n/* 37:43 */ String insertSqlBase = \"insert into \" + tableName + \"(\";\r\n/* 38:44 */ String insertSqlBaseValue = \"values(\";\r\n/* 39:45 */ Iterator fields = ((Element)childList.get(i)).elementIterator();\r\n/* 40:46 */ while (fields.hasNext())\r\n/* 41: */ {\r\n/* 42:47 */ Element Field = (Element)fields.next();\r\n/* 43:48 */ String ColName = Field.attributeValue(\"ColName\");\r\n/* 44:49 */ String Value = Field.attributeValue(\"Value\");\r\n/* 45:50 */ insertSqlBase = insertSqlBase + ColName + \",\";\r\n/* 46:51 */ insertSqlBaseValue = insertSqlBaseValue + \"'\" + Value + \"',\";\r\n/* 47: */ }\r\n/* 48:53 */ if (insertSqlBase.endsWith(\",\")) {\r\n/* 49:54 */ insertSqlBase = insertSqlBase.substring(0, insertSqlBase.length() - 1) + \")\";\r\n/* 50: */ }\r\n/* 51:55 */ if (insertSqlBaseValue.endsWith(\",\")) {\r\n/* 52:56 */ insertSqlBaseValue = insertSqlBaseValue.substring(0, insertSqlBaseValue.length() - 1) + \")\";\r\n/* 53: */ }\r\n/* 54:58 */ this.bs.writeLog(\"executeSqlBase \" + insertSqlBase + \" \" + insertSqlBaseValue);\r\n/* 55:59 */ rst.executeSql(insertSqlBase + \" \" + insertSqlBaseValue);\r\n/* 56: */ }\r\n/* 57: */ }\r\n/* 58: */ catch (Exception e)\r\n/* 59: */ {\r\n/* 60:65 */ e.printStackTrace();\r\n/* 61: */ }\r\n/* 62: */ }", "title": "" }, { "docid": "7c6ed5905a7ad9d8ae2448ea4a2004cc", "score": "0.52516115", "text": "@Override\n\tpublic void insert(String content,Integer sid) throws SQLException {\n\t\tconn = connectionpool.getConnection();\n\t\tif (conn!=null) {\n\t\t\tSystem.out.println(\"连接数据库成功\");\n\t\t\tString SQL = \"insert into plc(content,sid) values(?,?)\";\n\t\t\tPreparedStatement pm = conn.prepareStatement(SQL);\n\t\t\tpm.setString(1, content);\n\t\t\tpm.setInt(2, sid);\n\t\t\tpm.execute();\n\t\t}\n\t\tSystem.out.println(\"插入数据成功\");\n\t}", "title": "" }, { "docid": "862765edd76fe83b7c9822dbd21aa3df", "score": "0.5239214", "text": "@Override\n\tpublic void setContent() throws JSONException, DatabaseInsertException {\n\t\t\n\t}", "title": "" }, { "docid": "354330b5779a549a19739d55b124710e", "score": "0.52308947", "text": "public int insertNode(final Node n) {\r\n\t\tModel m = impl.getRDFProvider().getNodeModel(n);\r\n\t\ttry {\r\n\t\t\twrite(m);\r\n\t\t} catch (Exception e) {\r\n\t\t\treturn -1;\r\n\t\t}\r\n\t\t// All ok, discard the model.\r\n\t\tm.close();\r\n\t\treturn 0;\r\n\t}", "title": "" }, { "docid": "12af3c2bd9e61f70b2d335f3b0cdac92", "score": "0.52120507", "text": "public void insertPagoBonoPremio(BonoPremioPago bonoPremioPago);", "title": "" }, { "docid": "58804552c3504d76903e929bf3ea3bec", "score": "0.5208844", "text": "public void insertFeedItems(ContentValues values) {\n\t\tLog.i(TAG, \"Inserting new RSSFeed items in db.\");\n\t\tSQLiteDatabase db = null;\n\t\tsynchronized (dbLock) {\n\t\t\ttry {\n\t\t\t\tdb = this.databaseConnection.getWritableDatabase();\n\t\t\t\tdb.insertOrThrow(TABLE_RSSITEM, null, values);\n\t\t\t} catch (Exception e) {\n\t\t\t\tLog.i(TAG, \"Could not insert new RSSItems: \" + e.getMessage());\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "2d4539eaa49e143feacccf8371817296", "score": "0.52021956", "text": "private void SaveXML() {\n\t\ttry { // write the content into xml file\n\t\t\tnodeTrans = doc.createElement(\"transcript\");\n\t\t\tnodeTrans.appendChild(doc.createTextNode(sCommand));\n\t\t\tnodeClient.appendChild(nodeTrans);\t\t\t\t\t\t\t\n\t\t\ttransformerFactory = TransformerFactory.newInstance();\n\t\t\ttransformer = transformerFactory.newTransformer();\n\t\t\tsource = new DOMSource(doc);\n\t\t\tsFileName = \"transcript-\" + System.currentTimeMillis() + \".xml\";\n\t\t\tresult = new StreamResult(new File(System.getProperty(\"user.home\") + File.separator + sFileName));\n\t\t\ttransformer.transform(source, result);\n\t\t\tSystem.out.println(\"XML file saved!\");\n\t\t\tDBSave(sIP, sDBText); //Insert session into mySQL database\n\t\t} catch (TransformerException tfex) {\n\t\t\ttfex.printStackTrace();\n\t\t}\n\t}", "title": "" }, { "docid": "333bf8f8e2ad0d1a7e904315be490dfe", "score": "0.5183092", "text": "Integer insertMailToChild(MailToChild record) throws SQLException;", "title": "" }, { "docid": "aba40f55b361a021a3ff6a49063dcadf", "score": "0.51818484", "text": "private void insertTestData() throws SQLException {\n //Sync Blackboard Items, Contacts, Tiles and Feeds from server and send unsynced items to it\n new SyncManager().syncAll();\n\n //Tiles\n Dao<DBTile, Long> tileDao = databaseHelper.getTileDAO();\n tileDao.createIfNotExists(new DBTile(\"Blackboard\", R.drawable.blackboard_app_icon, Blackboard.class.getName()));\n tileDao.createIfNotExists(new DBTile(\"Feed Reader\", R.drawable.feed_reader_app_icon, FeedReader.class.getName()));\n tileDao.createIfNotExists(new DBTile(\"Example Tile 2\", R.drawable.app_coming_soon, TileOverview.class.getName()));\n }", "title": "" }, { "docid": "4971b849f62b2a6c3ce476a243d6dad3", "score": "0.5172241", "text": "private long insertInternal(ContentValues contentValues, boolean z) {\n this.mDb.beginTransactionNonExclusive();\n try {\n SQLiteStatement statement = getStatement(z);\n statement.clearBindings();\n for (Map.Entry next : contentValues.valueSet()) {\n DatabaseUtils.bindObjectToProgram(statement, getColumnIndex((String) next.getKey()), next.getValue());\n }\n long executeInsert = statement.executeInsert();\n this.mDb.setTransactionSuccessful();\n this.mDb.endTransaction();\n return executeInsert;\n } catch (SQLException e2) {\n Log.e(\"WCDB.DatabaseUtils\", \"Error inserting \" + contentValues + \" into table \" + this.mTableName, e2);\n this.mDb.endTransaction();\n return -1;\n } catch (Throwable th) {\n this.mDb.endTransaction();\n throw th;\n }\n }", "title": "" }, { "docid": "e1cec73e1581cf39457268730ed83a17", "score": "0.51699126", "text": "public GncXmlHandler(SQLiteDatabase db){\n mContext = GnuCashApplication.getAppContext();\n mAccountsDbAdapter = new AccountsDbAdapter(db);\n mTransactionsDbAdapter = new TransactionsDbAdapter(db);\n mContent = new StringBuilder();\n }", "title": "" }, { "docid": "f00a8b92aeb7b22b2200440ad7135d36", "score": "0.5161645", "text": "public void importXML(String xml, int operation)\r\n\t\t\t\tthrows IOException, SAXException, SQLException {\r\n\t\tif (_lw != null)\r\n\t\t\t_lw.logDebugMsg(\"Registry.importXML(): not implemented!\");\r\n\t}", "title": "" }, { "docid": "d5011009e81b6b4bdf317aae9dfa54ec", "score": "0.515768", "text": "@Override\n\tpublic void insertElements(Businesselements b) {\n\t\t\n\t\tdao.save(b);\n\t}", "title": "" }, { "docid": "84a8a239e4d7a58a466adc2883588090", "score": "0.51339525", "text": "@Override\n\tpublic void insertNode(Node ins) {\n\n\t\tif (0 == ins.getbNo() || null == ins.getDescription())\n\t\t\tthrow new NullPointerException();\n\n\t\troot = insertNode(root, ins); // new Node(o);\n\t}", "title": "" }, { "docid": "e84517e7c6fcc7cbfc4af762c64ce825", "score": "0.5131148", "text": "public void insert(Insert insert)\n\t\t\tthrows JSQLParserException, InterruptedException, SQLException, ClassNotFoundException {\n\t\tConnection connection = frag_owner.getConnection();\n\t\tconnection.setAutoCommit(false);\n\t\tStatement st = connection.createStatement();\n\t\tfor (Server server : serverToAttribute.keySet()) {\n\t\t\tHashMap<Attribute, Object> columnToValue = new HashMap<Attribute, Object>();\n\t\t\tList<Column> specifiedColumns = insert.getColumns();\n\t\t\tList<Attribute> columns = new ArrayList<Attribute>();\n\t\t\tTable table = tablenameToTable.get(insert.getTable().getName().toString().toLowerCase());\n\t\t\tif (specifiedColumns != null) {\n\t\t\t\tfor (Attribute attr : table.getAttributes()) {\n\t\t\t\t\tfor (int i = 0; i < specifiedColumns.size(); i++) {\n\t\t\t\t\t\tColumn column = specifiedColumns.get(i);\n\t\t\t\t\t\tif (attr.getName().equals(column.getColumnName().toLowerCase())) {\n\t\t\t\t\t\t\tcolumns.add(attr);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tcolumns = table.getAttributes();\n\t\t\t}\n\t\t\tItemsList il = insert.getItemsList();\n\t\t\tList<Expression> values = null;\n\t\t\tif (il instanceof ExpressionList) {\n\t\t\t\tvalues = ((ExpressionList) il).getExpressions();\n\t\t\t}\n\t\t\tif (values == null || values.size() != columns.size()) {\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tfor (int i = 0; i < values.size(); i++) {\n\t\t\t\tcolumnToValue.put(columns.get(i), values.get(i));\n\t\t\t}\n\n\t\t\tboolean nothingToDo = true;\n\t\t\tfor (Attribute attr : serverToAttribute.get(server)) {\n\t\t\t\tfor (Attribute attr2 : columns) {\n\t\t\t\t\tif (attr2.equals(attr)) {\n\t\t\t\t\t\tnothingToDo = false;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (nothingToDo) {\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tString sqlInsert = \"INSERT INTO \" + server.getName() + \"_\" + table.getName() + suffix + \" \";\n\t\t\tString sqlColumns = \"(\";\n\t\t\tString sqlValues = \" VALUES (\";\n\t\t\tfor (Attribute attr : columns) {\n\t\t\t\tif (serverToAttribute.get(server).contains(attr)) {\n\t\t\t\t\tsqlColumns += attr.getName() + \",\";\n\t\t\t\t\tsqlValues += columnToValue.get(attr) + \",\";\n\t\t\t\t}\n\t\t\t}\n\t\t\tsqlColumns = sqlColumns.substring(0, sqlColumns.length() - 1);\n\t\t\tsqlColumns += \") \";\n\t\t\tsqlValues = sqlValues.substring(0, sqlValues.length() - 1);\n\t\t\tsqlValues += \");\";\n\t\t\tString sql = sqlInsert + sqlColumns + sqlValues;\n\t\t\tst.executeUpdate(sql);\n\n\t\t}\n\t\tconnection.commit();\n\t\tconnection.close();\n\t}", "title": "" }, { "docid": "8a25df5c2d137c7eed03e6a810bcb701", "score": "0.51306903", "text": "public void postInsert() {\n }", "title": "" }, { "docid": "bf6eb08a13a0063e99799695b179cd28", "score": "0.5129259", "text": "int insert(WpCommentmetaWithBLOBs record);", "title": "" }, { "docid": "052d791cff96441f0d667d454aa1b034", "score": "0.5127261", "text": "public void testSetSQLXML() throws SQLException{\n try {\n SQLXML sqlxml = null;\n ps.setSQLXML(0,sqlxml);\n fail(\"setNClob should not be implemented\");\n }\n catch(SQLFeatureNotSupportedException sqlfne) {\n //Do Nothing, This happens as expected\n }\n }", "title": "" }, { "docid": "44c67ff990f67cccda1c8fb92b119bf3", "score": "0.5105647", "text": "Insert createInsert();", "title": "" }, { "docid": "6b6518ed122c894e17c6335041747e86", "score": "0.50997", "text": "protected NessieObjectInserter(DfsObjDatabase db) {\n super(db);\n this.db = (NessieObjDatabase) db;\n }", "title": "" }, { "docid": "b88988d6a02b636f8bdbdc7d05dc0f2f", "score": "0.5093682", "text": "public void insertQuelle(String kurzbezeichnung, String titel, String autoren, String verlagOrtUrl,\n String publikationsdatum){\n //First, store all of the elements in an object of type ContentValues.\n ContentValues values = new ContentValues(5);\n values.put(\"kurzbezeichnung\", kurzbezeichnung);\n values.put(\"titel\", titel);\n values.put(\"autoren\", autoren);\n values.put(\"verlag_ort_url\", verlagOrtUrl);\n values.put(\"publikationsdatum\", publikationsdatum);\n\n //Then, store all of the elements in the DB by passig that object of type ContentValues to\n //the method insertOrThrow()\n SQLiteDatabase db = this.getWritableDatabase();\n try {\n db.insertOrThrow(\"Quellen\", null, values);\n }catch(SQLException ex){\n Log.d(this.getClass().getSimpleName(), ex.toString());\n }finally {\n db.close();\n }\n }", "title": "" }, { "docid": "56ff1b91fb6efb34c3a1e5609abea43f", "score": "0.5092288", "text": "public void inserir(Coxins_ERP coxin)\n/* 46: */ throws ClassNotFoundException, SQLException, Exception\n/* 47: */ {\n/* 48:49 */ String sql = \"INSERT INTO COXINS_ERP (CodCX,DescrCX,PesoCX,Stei) VALUES (?,?,?,?)\";\n/* 49:50 */ PreparedStatement stmt = getConnection().prepareStatement(sql);\n/* 50:51 */ stmt.setString(1, coxin.getCodCX());\n/* 51:52 */ stmt.setString(2, coxin.getDescrCX());\n/* 52:53 */ stmt.setBigDecimal(3, coxin.getPesoCX());\n/* 53:54 */ stmt.setInt(4, coxin.getStei());\n/* 54:55 */ stmt.executeUpdate();\n/* 55:56 */ stmt.close();\n //connection.close();\n/* 56: */ }", "title": "" }, { "docid": "521cee3a857f1cdafa281160ea920b39", "score": "0.50812715", "text": "public void insertSampleData() throws RemoteException,\n OperationApplicationException {\n ContentResolver mContentResolver = getContentResolver();\n ArrayList<ContentProviderOperation> batch = new ArrayList<ContentProviderOperation>();\n batch.add(ContentProviderOperation.newInsert(NewsContract.Entry.CONTENT_URI)\n .withValue(NewsContract.Entry.COLUMN_ENTRY_ID, \"111\")\n .withValue(NewsContract.Entry.COLUMN_TITLE, \"甄子丹小姨子嫁港富商之子 筵开160席超郭晶晶(图)\")\n .withValue(NewsContract.Entry.COLUMN_CONTENT, \"甄子丹小姨子嫁港富商之子 筵开160席超郭晶晶(图)+\")\n .withValue(NewsContract.Entry.COLUMN_PUBLISHER, \"新浪娱乐\")\n .build());\n mContentResolver.applyBatch(NewsContract.CONTENT_AUTHORITY, batch);\n }", "title": "" }, { "docid": "e7aff45f4b7eee1419503278ad100b76", "score": "0.50770783", "text": "@Override\n\tpublic void insert(Activite d) {\n\n\t}", "title": "" }, { "docid": "83442e97cdcace7f4564003e99ecaf33", "score": "0.5065285", "text": "@Override\r\n\tpublic boolean insertTable() {\n\t\treturn false;\r\n\t}", "title": "" }, { "docid": "eb7103b41fb5e78a16d5866f837003d0", "score": "0.50606215", "text": "public static void add() throws Exception {\n\n\n Document document1 = DocumentHelper.createDocument();\n\n //添加一个根节点\n Element rootElement = document1.addElement(\"contanct-list\");\n Element con = rootElement.addElement(\"contanct\");\n con.addElement(\"name\");\n con.addAttribute(\"id\", \"001\");\n con.addAttribute(\"name\", \"sss\");\n\n\n OutputStream out = new FileOutputStream(\"C:/Users/32183/Desktop/test.xml\");\n OutputFormat format = OutputFormat.createPrettyPrint();\n XMLWriter writer = new XMLWriter(out, format);\n writer.write(document1);\n out.close();\n }", "title": "" }, { "docid": "bcd937f6b029a27a2dff98715a19b7b5", "score": "0.5057294", "text": "@Override\n\tpublic void newsfeedAutoInsert() {\n\t\tNewsfeed newsfeed = new Newsfeed();\n\t\tfor(int i=1;i<201;i++) {\n\t\t\tnewsfeed.setP_email(\"pro\"+i+\"@pro.com\");\n\t\t\tnewsfeed.setN_title(\"newsfeed\"+i+\"title\");\n\t\t\tnewsfeed.setN_content(\"newsfeed\"+i+\"content\");\n\t\t\tnewsfeed.setN_hit(i);\n\t\t\tnewsfeed.setN_ip(\"127.0.0.1\");\n\t\t\tswitch (i%8) {\n\t\t\tcase 0:\n\t\t\t\tnewsfeed.setCate_num(1);\n\t\t\t\tbreak;\n\t\t\tcase 1:\n\t\t\t\tnewsfeed.setCate_num(2);\n\t\t\t\tbreak;\n\t\t\tcase 2:\n\t\t\t\tnewsfeed.setCate_num(3);\n\t\t\t\tbreak;\n\t\t\tcase 3:\n\t\t\t\tnewsfeed.setCate_num(4);\n\t\t\t\tbreak;\n\t\t\tcase 4:\n\t\t\t\tnewsfeed.setCate_num(5);\n\t\t\t\tbreak;\n\t\t\tcase 5:\n\t\t\t\tnewsfeed.setCate_num(6);\n\t\t\t\tbreak;\n\t\t\tcase 6:\n\t\t\t\tnewsfeed.setCate_num(7);\n\t\t\t\tbreak;\n\t\t\tcase 7:\n\t\t\t\tnewsfeed.setCate_num(8);\n\t\t\t\tbreak;\n\t\t\t}\t\t\t\n\t\t\tnewsfeedDao.newsfeedAutoInsert(newsfeed);\n\t\t\tSystem.out.println(i+\"th Newsfeed Insert Success\");\n\t\t}\n\t}", "title": "" }, { "docid": "d3d88b80c5ce487daf88a5b323e4cb5f", "score": "0.50547606", "text": "int insert(PartsPackageDetailBto record);", "title": "" }, { "docid": "d050b6799074620e80b2c7a32f532b02", "score": "0.50459933", "text": "int insert(PersistedVariables record);", "title": "" }, { "docid": "6a06c56cdc382ed0d4581aea2aac7662", "score": "0.5044976", "text": "@Override\n\tpublic int insertSelective(Xiaoqu record) throws InvalidDataException {\n\t\treturn 0;\n\t}", "title": "" }, { "docid": "996739d2edcbe67cae047ff479fbe33e", "score": "0.503664", "text": "@Test\n\tpublic void insertTest() {\n\n\t\tString[] strArr = { \"cat\", \"cats\", \"up\", \"bug\" };\n\t\tfor (String str : strArr) {\n\t\t\tchar charArr[] = str.toCharArray();\n\t\t\tCharacter cAr[] = new Character[charArr.length];\n\t\t\tfor (int i = 0; i < cAr.length; i++)\n\t\t\t\tcAr[i] = charArr[i];\n\t\t\troot = iots.insert(root, cAr, 0);\n\t\t}\n\t}", "title": "" }, { "docid": "dd619e66a53e4080dece5c5bb2f339bb", "score": "0.50328106", "text": "int insert(BaseLanguageImportEntityWithBLOBs record);", "title": "" }, { "docid": "037dfe712df807102a7b6d5c9e97793d", "score": "0.5031943", "text": "@Insert({\n \"insert into stock_bar (post_content_id, stock_id, \",\n \"post_time, post_content)\",\n \"values (#{postContentId,jdbcType=INTEGER}, #{stockId,jdbcType=INTEGER}, \",\n \"#{postTime,jdbcType=VARCHAR}, #{postContent,jdbcType=LONGVARCHAR})\"\n })\n int insert(StockBar record);", "title": "" }, { "docid": "4d290963e6f32aef0923b435dc077114", "score": "0.50279903", "text": "public void insertData(int offset, String arg) throws DOMException {\n\n }", "title": "" }, { "docid": "91ff021a76bcddcc36543835ec441f5a", "score": "0.5023693", "text": "public void construirXML(){\n //creamos el documento \n documento = DOMUtil.crearDOMVacio(\"datos_del_cliente\");\n \n //insertamos los datos\n \n ///////////////////////////\n //parte del dni///////////\n /////////////////////////\n e = null;\n mDni = patronDNI.matcher(dni);\n if (mDni.matches()){\n e=documento.createElement(\"id\");\n e.setTextContent(dni);\n documento.getDocumentElement().appendChild(e); \n //si no corresponde con el patron, le ponemos ERROR \n //y mostramos comentario de error en el XML\n } else {\n mostrarMensajeErrorEnXML(\"Fallo al procesar el campo del dni. \"\n + \"Se ha introducido \"+dni+\", que no corresponde con el patron\");\n e=documento.createElement(\"id\");\n e.setTextContent(\"ERROR\");\n documento.getDocumentElement().appendChild(e);\n \n }\n \n \n \n ///////////////////////////\n //parte de los nombre/////\n /////////////////////////\n e = null;\n mNYA=patronNombreYApellido.matcher(nombre);\n if(mNYA.matches()){\n e=documento.createElement(\"nombre\");\n //le quitamos las comillas\n nombre=nombre.replace(\"\\\"\", \"\");\n e.setTextContent(nombre);\n documento.getDocumentElement().appendChild(e);\n //si no corresponde con el patron, le ponemos ERROR \n //y mostramos comentario de error en el XML\n } else {\n mostrarMensajeErrorEnXML(\"Fallo al procesar el campo del nombre. \"\n + \"Se ha introducido \"+nombre+\", que no corresponde con el patron\");\n e=documento.createElement(\"nombre\");\n e.setTextContent(\"ERROR\");\n documento.getDocumentElement().appendChild(e);\n }\n \n \n \n //////////////////////////////\n //parte de los apellidos/////\n ////////////////////////////\n e = null;\n mNYA=patronNombreYApellido.matcher(apellidos);\n if(mNYA.matches()){\n e=documento.createElement(\"apellidos\");\n apellidos=apellidos.replace(\"\\\"\", \"\");\n e.setTextContent(apellidos);\n documento.getDocumentElement().appendChild(e);\n //si no corresponde con el patron, le ponemos ERROR \n //y mostramos comentario de error en el XML\n } else {\n mostrarMensajeErrorEnXML(\"Fallo al procesar el campo de los apellidos. \"\n + \"Se ha introducido \"+apellidos+\", que no corresponde con el patron\");\n e=documento.createElement(\"apellidos\");\n e.setTextContent(apellidos);\n documento.getDocumentElement().appendChild(e);\n }\n \n \n \n //////////////////////////////\n //parte de los telefonos/////\n ////////////////////////////\n e = null;\n t=null;\n \n /**\n * ordenamos los telefonos para que ponga primero los que no llevan \"+\"\n * ordenados de mayor a menor, y despues los que llevan\n * \"+\" tambien ordenados de mayor a menor\n */\n comparaTelefonos= new Comparator<String>() {\n @Override\n public int compare(String tlf1, String tlf2) {\n //throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\n \n int orden=0;\n int res = tlf1.compareTo(tlf2);\n if (res<0){\n orden=1;\n } else if (res>0){\n orden=-1;\n }\n \n return orden; \n }\n };\n \n Collections.sort(telefonos,comparaTelefonos);\n \n e=documento.createElement(\"telefonos\");\n \n //si no se han introducido telefonos validos\n if (telefonos.isEmpty()){\n mostrarMensajeErrorEnXML(\"No se han introducido telefonos\");\n \n t=documento.createElement(\"telefono\");\n t.setTextContent(\"ERROR\");\n e.appendChild(t);\n \n t=documento.createElement(\"totaltelefonos\");\n t.setTextContent(\"0\");\n e.appendChild(t);\n \n } else {\n for (String telefono : telefonos) {\n mTelefono2=patronTelefono2.matcher(telefono);\n if (mTelefono2.matches()){\n t=documento.createElement(\"telefono\");\n t.setTextContent(telefono);\n e.appendChild(t);\n totalTelefonos++;\n //si no coincide con el patron\n } else {\n mostrarMensajeErrorEnXML(\"Fallo al procesar el campo del telefono. \"\n + \"Se ha introducido \"+telefono+\", que no corresponde con el patron\");\n }\n }\n\n t=documento.createElement(\"totaltelefonos\");\n t.setTextContent(\"\"+totalTelefonos);\n e.appendChild(t);\n } \n \n //si hay telefonos duplicados guardados, mostramos el error en el xml\n if (!telefonosDuplicados.isEmpty()){\n for (String tlfDuplicado : telefonosDuplicados) {\n mostrarMensajeErrorEnXML(\"Se ha introducido un telefono duplicado \"\n +tlfDuplicado);\n \n }\n }\n \n \n documento.getDocumentElement().appendChild(e);\n \n \n \n ///////////////////////////\n //parte de los emails/////\n /////////////////////////\n e = null;\n m=null;\n //ordenamos los emails\n Collections.sort(emails);\n \n e=documento.createElement(\"mails\");\n \n //si no se han introducido emails validos\n if (emails.isEmpty()){\n m=documento.createElement(\"mail\");\n m.setTextContent(\"ERROR\");\n e.appendChild(m);\n mostrarMensajeErrorEnXML(\"No se han introducido emails\");\n } else {\n for (String email : emails) {\n m=documento.createElement(\"mail\");\n m.setTextContent(email);\n e.appendChild(m);\n }\n }\n \n //si hay emails duplicados guardados, mostramos el error en el xml\n if (!emailsDuplicados.isEmpty()){\n for (String emailDuplicado : emailsDuplicados) {\n mostrarMensajeErrorEnXML(\"Se ha introducido un email duplicado \"\n +emailDuplicado);\n \n }\n }\n \n \n \n documento.getDocumentElement().appendChild(e);\n \n //mostramos el error de los campos que no cuadran con telefono ni email\n for (String error : noCoincidentes) {\n mostrarMensajeErrorEnXML(\"Se ha introducido un valor que no se reconoce \"\n + \"ni como email ni teléfono: \"+error);\n \n }\n \n //pasamos el documento a un fichero\n //el fichero esta en la raiz del proyecto\n DOMUtil.DOM2XML(documento,\"cliente.xml\");\n System.out.println(\"\\n\\nDocumento cliente.xml creado.\\n\\n\");\n }", "title": "" }, { "docid": "c40e8dc2bb3d118271e891509e4c3b49", "score": "0.5021926", "text": "void insertar();", "title": "" }, { "docid": "91f9dabf51818b1efe0b09a90e4e1d8c", "score": "0.502158", "text": "int insert(GatherContent record);", "title": "" }, { "docid": "e83c7d23396260fe52bfb222ad18f179", "score": "0.5020054", "text": "int insert(AppMsgTpl record);", "title": "" }, { "docid": "bdb3a989d67eb8195cc4817f0363ff2a", "score": "0.50193757", "text": "public void insert(int n) {\n root = realinsert(root,n); //because there is no node inside main method and the root has item already.\n //it is because it should bring root's item together.\n }", "title": "" }, { "docid": "dad3b935fd5ed8f91ed422da1ef14893", "score": "0.5017044", "text": "@Override\n protected void createInDB(final Insert _insert)\n throws InstallationException\n {\n try {\n _insert.add(\"SQLTable\", getValue(\"SQLTable\"));\n } catch (final EFapsException e) {\n throw new InstallationException(\"Could not add SQLTable attribute\", e);\n }\n try {\n _insert.add(\"SQLColumnID\", getValue(\"SQLColumnID\"));\n } catch (final EFapsException e) {\n throw new InstallationException(\"Could not add SQLColumnID attribute\", e);\n }\n super.createInDB(_insert);\n }", "title": "" }, { "docid": "2e7e5d68f66398e3a170cc7dd7b9174b", "score": "0.5014265", "text": "private void insertDatabase(){\n\t\ttry{\t\n\t\t\tString name = m1.getText();\n\t\t\tString age = m2.getText();\n\t\t\tString color = m3.getText();\n\t\t\tsetStatus(\"Inserting --( \" + name + \", \" + age + \", \" + color + \" )-- to the database\");\n\n\t\t\tSystem.out.println(\"Creating statement...\");\n\t\t\tstmt = conn.createStatement();\n\t\t\tString sql;\n\t\t\tsql = \"INSERT \"+ name + age + color +\"INTO Employees\";\n\t\t\tResultSet rs = stmt.executeQuery(sql);\n\n\t\t} catch(Exception e){\n\t\t\tSystem.err.println(e.getMessage());\n\t\t\tsetStatus(\"Insertion failed\");\n\t\t}\n\n\t}", "title": "" }, { "docid": "21c99d0e17bb1a148786a6251b748968", "score": "0.5012124", "text": "String insertStatement();", "title": "" }, { "docid": "7af2a5dab1ecbdede18bae19ead83b47", "score": "0.5011083", "text": "public void insertTiket(String Nama, String Jk, String Stasiun, String Kereta) {\r\n\r\n try {\r\n\r\n String query = \"SET FOREIGN_KEY_CHECKS=0;\";\r\n statement.execute(query);\r\n query = \"INSERT INTO `tiket`(`nama`,`jenis`,`stasiun`,`kereta`) VALUES ('\" + Nama + \"','\" + Jk + \"','\" + Stasiun + \"','\" + Kereta + \"')\";\r\n statement.executeUpdate(query);\r\n query = \"SET FOREIGN_KEY_CHECKS=1;\";\r\n statement.execute(query);\r\n\r\n JOptionPane.showMessageDialog(null, \"Data berhasil ditambahkan\");\r\n } catch (Exception sql) {\r\n System.out.println(sql.getMessage());\r\n JOptionPane.showMessageDialog(null, sql.getMessage());\r\n }\r\n }", "title": "" }, { "docid": "015e0f1bf65b0f6ea76f41d0039054bd", "score": "0.501031", "text": "Integer insert(Localizacion record)throws SQLException;", "title": "" }, { "docid": "dcb8e7b3ccaaacdee03836f4bc7f7870", "score": "0.49871945", "text": "public int insertQaAContent(Connection con, Board board) {\n PreparedStatement pstmt = null;\r\n int result = 0;\r\n String sql = prop.getProperty(\"insertQaAContent\");\r\n\r\n try {\r\n pstmt = con.prepareStatement(sql);\r\n pstmt.setString(1, board.getbTitle());\r\n pstmt.setString(2, board.getbContent());\r\n pstmt.setInt(3, board.getuNo());\r\n\r\n result = pstmt.executeUpdate();\r\n\r\n } catch (SQLException e) {\r\n e.printStackTrace();\r\n } finally {\r\n close(pstmt);\r\n }\r\n\r\n return result;\r\n }", "title": "" }, { "docid": "0fce5923c590241a4b7cfd2779469cde", "score": "0.49849495", "text": "private void insertData() {\n PodamFactory factory = new PodamFactoryImpl();\n for (int i = 0; i < 3; i++) {\n EventoEntity entidad = factory.manufacturePojo(EventoEntity.class);\n em.persist(entidad);\n dataEvento.add(entidad);\n }\n for (int i = 0; i < 3; i++) {\n PagoEntity entidad = factory.manufacturePojo(PagoEntity.class);\n if (i == 0) {\n entidad.setEvento(dataEvento.get(0));\n }\n em.persist(entidad);\n data.add(entidad);\n }\n }", "title": "" }, { "docid": "0703e6bf7ce9ce28d57f5fe6304428b5", "score": "0.49829108", "text": "public void testImportEmptyDB() throws Exception {\n URL importedXMLFileURL = getClass().getResource(\"export-xml-full.xml\"); // file used for testing ExportXMLAppTest\n File importedXMLFile = new File(importedXMLFileURL.getFile());\n new ImportXMLApp(importedXMLFile, false);\n\n File exportedXMLFile = getTempXMLFile();\n new ExportXMLApp(exportedXMLFile);\n validateXMLFile(importedXMLFile, exportedXMLFile);\n }", "title": "" }, { "docid": "df31c36b2c50cf9e46952ffa4e685752", "score": "0.49762118", "text": "void insert(Transaction transaction);", "title": "" }, { "docid": "df31c36b2c50cf9e46952ffa4e685752", "score": "0.49762118", "text": "void insert(Transaction transaction);", "title": "" }, { "docid": "ae9cd7efb55cb77d1a6c5e33003b3f6c", "score": "0.49693918", "text": "int insertSelective(BaseLanguageImportEntityWithBLOBs record);", "title": "" }, { "docid": "9254c66986ef1ebd8ebf702b2795400c", "score": "0.49660638", "text": "@Override\n\tpublic String insert(int delta, PostgreSQL psql, Void... i) {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "daf7deadcf57462887937433dffd67d5", "score": "0.4963358", "text": "protected void cleanAndInsert() throws Exception {\n DatabaseOperation.CLEAN_INSERT.execute(connection, dataset);\n }", "title": "" }, { "docid": "f9d6797f19a7ef1e4e562b908f7d5ff0", "score": "0.4961967", "text": "public Element insertElement(Element insertion, String start, String end) throws Exception {\n\t\tElement newElem = XOMTools.shallowCopy(insertion);\n\t\tnewElem.addAttribute(new Attribute(\"xtid\", extraTagPrefix + Integer.toString(extraTagNo)));\n\t\textraTagNo++;\n\t\tnewElem.addAttribute(new Attribute(\"xtspanstart\", start));\n\t\tnewElem.addAttribute(new Attribute(\"xtspanend\", end));\n\t\treturn insertElement(newElem);\n\t}", "title": "" }, { "docid": "65b570bd40828f002313f40a461bc4b1", "score": "0.4961782", "text": "void insertNode(Node n) \r\n\t{\r\n\t\troot = insertRec(root, n);\r\n\t}", "title": "" }, { "docid": "4785be7fba95c8d9b2f3f51e8dddc91a", "score": "0.49602178", "text": "int insertSelective(ArticleContent record);", "title": "" }, { "docid": "82a2f39d453acb70f8ff48985ce12d3a", "score": "0.4958891", "text": "public static void insertQuestion(Question ques) throws SQLException, ClassNotFoundException {\n try {\n //вставляем вопрос\n String updateStmt = \"INSERT INTO Questions (Question) VALUES ('\"+ques.getQuestionProperty().getValue().toString()+\"');\";\n DBConnect.dbExecuteUpdate(updateStmt);\n System.out.println(\"DAO: вопрос добавлен\");\n //вставляем все хорошие ответы в третью таблицу (id вопроса по вопросу, id ответа - последнее вставленное из списка)\n for (int i=0;i<ques.getGoodAnswers().size();i++) {\n updateStmt = \"INSERT INTO Answers (id_question,Answer,Type) VALUES ('\"+searchQuestionId(ques.getQuestionProperty().getValue().toString())+\"','\"+ques.getGoodAnswers().get(i).getValue().toString()+\n \"','good');\";\n DBConnect.dbExecuteUpdate(updateStmt);\n System.out.println(\"DAO: Хороший ответ добавлен!\");\n }\n //и плохие вопросы\n for (int i=0;i<ques.getBadAnswers().size();i++){\n updateStmt = \"INSERT INTO Answers (id_question,Answer,Type) VALUES ('\"+searchQuestionId(ques.getQuestionProperty().getValue().toString())+\"','\"+ques.getBadAnswers().get(i).getValue().toString()+\n \"','bad');\";\n DBConnect.dbExecuteUpdate(updateStmt);\n System.out.println(\"DAO: Плохой ответ добавлен!\");\n }\n } catch (SQLException e) {\n System.out.print(\"Error occurred while INSERT Operation: \" + e + \". Method: insertMessage()\");\n throw e;\n } catch (IOException e){\n System.out.println(\"Error occurred while INSERT Operation: \" + e + \". Method: insertMessage()\");\n }\n }", "title": "" }, { "docid": "742c5240a0941357332120b7c9a90f44", "score": "0.49563345", "text": "public static void insert() throws ClassNotFoundException, SQLException {\n\t\tSystem.out.println(\"enter data\");\n\t\tSystem.out.println(\"Enter eid\");\n\t\tint id = scanner.nextInt();\n\t\tSystem.out.println(\"Enter ename\");\n\t\tString name = scanner.next();\n\t\tSystem.out.println(\"Enter department\");\n\t\tString dep = scanner.next();\n\t\tSystem.out.println(\"Enter phone number \");\n\t\tString phoneNumber = scanner.next();\n\t\tSystem.out.println(\"Enter email\");\n\t\tString email = scanner.next();\n\t\tDataBaseConnection.insertData(id, name, dep, phoneNumber, email);\n\t\tprint();\n\t}", "title": "" }, { "docid": "dd2bb8a23bb139b985c291d69f3a98f8", "score": "0.49558404", "text": "@Test\n\tpublic void testInsert() {\n\t\tEstado estado = new Estado(\"sigla\",\"nome\",\"codigoIbge\",null);\n\t\testadoBC.insert(estado);\n\t\tList<Estado> listOfEstado = estadoBC.findAll();\n\t\tassertNotNull(listOfEstado);\n\t\tassertEquals(1, listOfEstado.size());\n\t}", "title": "" }, { "docid": "ddcea34dd025cd4acfb9609595f3bc67", "score": "0.49481288", "text": "void insert(CandidatesWithBLOBs record);", "title": "" }, { "docid": "65c090d1ab7d00f454ae107b587e7fe2", "score": "0.49474844", "text": "public boolean insertNewStrumentoInDB(BeanStrumento beanStrumento) {\n\n Connection conn = null;\n PreparedStatement stmt = null;\n\n try {\n conn = this.DataSource.getConnection();\n\n String query = \"INSERT INTO strumento(nome, nomesatellite) \" +\n \"VALUES (?,?)\";\n stmt = conn.prepareStatement(query);\n stmt.setString(1,beanStrumento.getNome());\n stmt.setString(2,beanStrumento.getNomeSatellite());\n\n stmt.executeUpdate();\n\n } catch (SQLException | ClassNotFoundException e) {\n e.printStackTrace();\n return false;\n } finally {\n // release resources\n if(stmt != null){\n try {\n stmt.close();\n } catch (SQLException e) {\n e.printStackTrace();\n }\n }\n // close connection\n if(conn != null){\n try {\n conn.close();\n } catch (SQLException e) {\n e.printStackTrace();\n }\n }\n }\n return true;\n }", "title": "" }, { "docid": "b0267bcb7cd2197132690db91f28b920", "score": "0.49361", "text": "public interface IAeXMLDBStorageImpl\r\n{\r\n /**\r\n * Gets the data source for the xml database.\r\n */\r\n public IAeXMLDBDataSource getXMLDBDataSource();\r\n\r\n /**\r\n * Inserts a document into the XML database.\r\n * \r\n * @param aReader\r\n * @param aConnection\r\n */\r\n public long insertDocument(Reader aReader, IAeXMLDBConnection aConnection) throws AeXMLDBException;\r\n\r\n /**\r\n * Insert the non-xml content in the xml database.\r\n * \r\n * @param aInputStream\r\n * @param aConnection\r\n */\r\n public long insertNonXMLDocument(InputStream aInputStream, IAeXMLDBConnection aConnection)\r\n throws AeXMLDBException;\r\n\r\n /**\r\n * Runs the xquery and returns the result.\r\n * \r\n * @param aQuery\r\n * @param aResponseHandler\r\n * @param aConnection\r\n */\r\n public Object xquery(String aQuery, IAeXMLDBResponseHandler aResponseHandler,\r\n IAeXMLDBConnection aConnection) throws AeXMLDBException;\r\n\r\n /**\r\n * Retrieves the non-xml content from the xml database.\r\n * \r\n * @param aDocumentId\r\n * @param aConnection\r\n */\r\n public InputStream retrieveNonXMLDocument(long aDocumentId, IAeXMLDBConnection aConnection)\r\n throws AeXMLDBException;\r\n\r\n /**\r\n * Updates the documents in the XML database using the given XQuery and\r\n * returns the number of documents modified.\r\n * \r\n * @param aQuery\r\n * @param aConnection\r\n */\r\n public int updateDocuments(String aQuery, IAeXMLDBConnection aConnection) throws AeXMLDBException;\r\n\r\n /**\r\n * Deletes the documents matching the given xquery. The aDeleteDocType param\r\n * is a string representing the doc type we are deleting. Even if multiple\r\n * doc types are being deleted, only a count of documents with this name will\r\n * be returned. Not all XML databases will use this information.\r\n * \r\n * @param aQuery\r\n * @param aDeleteDocType\r\n * @param aConnection\r\n */\r\n public int deleteDocuments(String aQuery, String aDeleteDocType, IAeXMLDBConnection aConnection)\r\n throws AeXMLDBException;\r\n\r\n /**\r\n * Delets the non-xml content with the given ID from the xml database.\r\n * \r\n * @param aDocumentId\r\n * @param aConnection\r\n */\r\n public void deleteNonXMLDocument(long aDocumentId, IAeXMLDBConnection aConnection) throws AeXMLDBException;\r\n}", "title": "" }, { "docid": "8ae14b6cc23a8a493b28bcea5c100551", "score": "0.49339098", "text": "@Override\n\tpublic void inserirItemSQL(String comando) {\n\t\t\n\t}", "title": "" }, { "docid": "7c99aa7ec4c0f7182e9e0126118e3d0d", "score": "0.49338093", "text": "public void insertData(String sql) {\n\t\ttry {\n\t\t\tStatement statement = connection.createStatement();\t\t \n\t\t\tstatement.executeUpdate(sql);\t\t \n\t\t\tstatement.close();\n\t\t} catch (SQLException e) {\n\t\t\t\tSystem.out.println(\"SQL Exception occurred: \"+e.getMessage());\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace(System.err);\n\t\t}\n\t}", "title": "" }, { "docid": "64e0cda131d7e8b2d8a8cf31087b7911", "score": "0.49327996", "text": "public InsertTransaction(DBTransactionInfo dbTransactionInfo, Insert<ModelClass> insert) {\n super(dbTransactionInfo, insert);\n }", "title": "" }, { "docid": "339aec75fb025e08c4bbf6071db14c4e", "score": "0.49252552", "text": "Integer insertSelective(Localizacion record)throws SQLException;", "title": "" }, { "docid": "496cc37b847ab8c896ef4ca197789969", "score": "0.49216667", "text": "@Override\n public boolean isInsertable() {\n return false;\n }", "title": "" }, { "docid": "6f993c5106e6f60766fcfbf2010f09f1", "score": "0.49208337", "text": "int insertSelective(PageElement record);", "title": "" }, { "docid": "28411b476c01d6053a97a4832d61a773", "score": "0.49195206", "text": "@Override\r\n\tpublic void insertBoardFile(Connection con, List<BoardFile> files, int bno) throws SQLException {\n\r\n\t}", "title": "" }, { "docid": "fdfab0221f4dca1368df2711c7ce46d3", "score": "0.49182075", "text": "@Override\n\tpublic boolean isCanInsert() {\n\t\treturn false;\n\t}", "title": "" }, { "docid": "735da725c963fa8d9d887fff21d15ff8", "score": "0.49153242", "text": "int insert(MailTemplateEntityWithBLOBs record);", "title": "" }, { "docid": "f658bb5f19c6c997c10d70df328571b9", "score": "0.4907473", "text": "protected abstract void insertSubmissionTx(SubmissionImpl submission);", "title": "" }, { "docid": "b25c5e799895e58a377676c814ae2b15", "score": "0.49069235", "text": "@Override\n\tpublic void insertRow() throws SQLException {\n\n\t}", "title": "" }, { "docid": "c8e6d41757f2290719d6a9001fa54353", "score": "0.49058065", "text": "public void Insert(String x){\r\n\t\troot=Insert(x,root);\r\n\t}", "title": "" }, { "docid": "6df494b639e9723410e1d4d96cb81334", "score": "0.4898671", "text": "@Override\n\tpublic void insert(int id) {\n\t\t\n\t}", "title": "" }, { "docid": "ab4e9122014e10411d548d1453ef9775", "score": "0.48976478", "text": "private void preInsert(SQLiteDatabase db) {\n\t\tTagContent[] tagContents = new TagContent[19];\r\n\t\ttagContents[0] = new TagContent(\"accessoriestype\", new String[] { \"围巾\",\r\n\t\t\t\t\"腰带\", \"帽子\", \"手套\", \"手表\", \"发饰\", \"手链\", \"项链\", \"戒指\" });\r\n\t\ttagContents[1] = new TagContent(\"bagmaterial\", new String[] { \"防水材质\",\r\n\t\t\t\t\"帆布\", \"磨砂皮\", \"漆皮\", \"PU皮\", \"毛绒系\", \"棉麻\", \"编织\" });\r\n\t\ttagContents[2] = new TagContent(\"bagsize\", new String[] { \"大包\", \"常规款\",\r\n\t\t\t\t\"小包\", \"迷你包\" });\r\n\t\ttagContents[3] = new TagContent(\"bagspecial\", new String[] { \"邮差包\",\r\n\t\t\t\t\"机车包\", \"水桶包\", \"信封包\", \"晚宴包\", \"钱包\" });\r\n\t\ttagContents[4] = new TagContent(\"bagtype\", new String[] { \"单肩包\", \"双肩包\",\r\n\t\t\t\t\"斜挎包\", \"手拿包\", \"手提包\" });\r\n\t\ttagContents[5] = new TagContent(\"heelheight\", new String[] { \"平跟\",\r\n\t\t\t\t\"矮跟\", \"中跟\", \"高跟\", \"超高跟\" });\r\n\t\ttagContents[6] = new TagContent(\"shoesspecial\", new String[] { \"马丁靴\",\r\n\t\t\t\t\"机车靴\", \"牛津鞋\", \"松糕鞋\", \"雪地靴\", \"过膝靴\", \"人字拖\" });\r\n\t\ttagContents[7] = new TagContent(\"shoestype\", new String[] { \"单鞋\", \"凉鞋\",\r\n\t\t\t\t\"运动鞋\", \"帆布鞋\", \"拖鞋\", \"靴子\", \"皮鞋\" });\r\n\t\ttagContents[8] = new TagContent(\"dressfabric\", new String[] { \"雪纺\",\r\n\t\t\t\t\"毛呢\", \"棉麻\", \"绸缎\", \"蕾丝\", \"牛仔\", \"轻薄花呢\", \"西装布\" });\r\n\t\ttagContents[9] = new TagContent(\"dressmodel\", new String[] { \"伞裙\",\r\n\t\t\t\t\"百褶裙\", \"A字裙\", \"包臀裙\", \"蓬蓬裙\", \"花苞裙\", \"蛋糕裙\" });\r\n\t\ttagContents[10] = new TagContent(\"dresslength\", new String[] { \"超短裙\",\r\n\t\t\t\t\"短裙\", \"及膝裙\", \"中长款\", \"长裙\" });\r\n\t\ttagContents[11] = new TagContent(\"dresstype\", new String[] { \"连衣裙\",\r\n\t\t\t\t\"背带裙\", \"半身裙\", \"打底裙\" });\r\n\t\ttagContents[12] = new TagContent(\"bottomslength\", new String[] { \"长裤\",\r\n\t\t\t\t\"九分裤\", \"七分裤\", \"五分裤\", \"短裤\" });\r\n\t\ttagContents[13] = new TagContent(\"bottomstype\", new String[] { \"牛仔裤\",\r\n\t\t\t\t\"小脚裤\", \"哈伦裤\", \"休闲裤\", \"打底裤\", \"运动裤\", \"背带裤\", \"裙裤\", \"连体裤\", \"西装裤\",\r\n\t\t\t\t\"加绒裤\" });\r\n\t\ttagContents[14] = new TagContent(\"topssleeve\", new String[] { \"吊带\",\r\n\t\t\t\t\"无袖\", \"短袖\", \"中袖\", \"长袖\" });\r\n\t\ttagContents[15] = new TagContent(\"topslength\", new String[] {\r\n\t\t\t\t\"超短款(40cm以下)\", \"短款(40-50cm)\", \"常规款(50-60cm)\", \"中长款(60-70cm)\",\r\n\t\t\t\t\"长款(70-80cm)\", \"超长款(80cm以上)\" });\r\n\t\ttagContents[16] = new TagContent(\"topstype\", new String[] { \"T恤\",\r\n\t\t\t\t\"雪纺衫\", \"针织衫\", \"针织开衫\", \"衬衫\", \"卫衣\", \"卫衣外套\", \"外套\", \"西装\", \"风衣\",\r\n\t\t\t\t\"大衣\", \"棉袄\", \"羽绒服\" });\r\n\t\ttagContents[17] = new TagContent(\"color\", new String[] { \"白\", \"灰\", \"黑\",\r\n\t\t\t\t\"红\", \"橙\", \"黄\", \"绿\", \"蓝\", \"紫\", \"棕花\", \"黑白\", \"条纹\" });\r\n\t\ttagContents[18] = new TagContent(\"style\", new String[] { \"通勤\", \"甜美\",\r\n\t\t\t\t\"运动\", \"复古\", \"学院\", \"英伦\", \"休闲街头\", \"日系\", \"韩系\", \"欧美\", \"民族风\", \"中性\",\r\n\t\t\t\t\"简洁\", \"森女\", \"OL\" });\r\n\r\n\t\tfor (int i = 0; i < tagContents.length; i++) {\r\n\t\t\tfor (int j = 0; j < tagContents[i].getSize(); j++)\r\n\t\t\t\tdb.execSQL(\"insert into \"\r\n\t\t\t\t\t\t+ tagContents[i].getTitle().toUpperCase()\r\n\t\t\t\t\t\t+ \"(id,tagname) values (\" + j + \",'\"\r\n\t\t\t\t\t\t+ tagContents[i].getContent(j) + \"')\");\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "9693471af5a316d0470600aa1f5bcdb0", "score": "0.48953965", "text": "private void importXmlPlace_actionPerformed() {\r\n JFileChooser boiteFichier = new JFileChooser();\r\n boiteFichier.removeChoosableFileFilter(boiteFichier.getFileFilter());\r\n boiteFichier.addChoosableFileFilter(Filtre.FILTRE_XML);\r\n int retour_jfc = boiteFichier.showOpenDialog(this);\r\n if (retour_jfc == JFileChooser.APPROVE_OPTION) {\r\n File nomFichier = boiteFichier.getSelectedFile();\r\n if (nomFichier == null) {\r\n setCursor(Cursor.getDefaultCursor());\r\n Erreur.showSimpleErreur(MessageFormat.format(getError(\"Error.fileNotFound\"), \"\"));\r\n Debug(\"ERROR: ImportXmlPlace: File not found during Opening!\");\r\n return;\r\n }\r\n String fic = nomFichier.getAbsolutePath();\r\n int index = fic.indexOf(ONE_DOT);\r\n if (index == -1) {\r\n fic = fic.concat(Filtre.EXTENSION_XML);\r\n }\r\n File f = new File(fic);\r\n LinkedList<AbstractPlace> abstractPlaces = new LinkedList<>();\r\n if (f.exists() && XmlUtils.readMyCellarXml(fic, abstractPlaces)) {\r\n XmlUtils.writeMyCellarXml(abstractPlaces, \"\");\r\n Program.loadData();\r\n }\r\n }\r\n }", "title": "" } ]
860d28c6aae8b011bba7164c4491be9c
Reset the algebra view if the mode changed.
[ { "docid": "7bc34e1d0ac81355f726bcf13557c3ea", "score": "0.53616136", "text": "@Override\n\tpublic void setMode(int mode, ModeSetter m) {\n\t\treset();\n\t}", "title": "" } ]
[ { "docid": "28459dfc202c18f37e5ffabe242d07b3", "score": "0.63664913", "text": "public void resetView() {\n\t\trecenter();\n\t\tresetLineLayer();\n\t\tresetMarkers();\n\t\tresetCameras();\n\t}", "title": "" }, { "docid": "81a07fa918fbb9fdac6fe02b595edeaf", "score": "0.63270974", "text": "void resetOrientation() {\n DisplayImpl display = DisplayCells[CurX][CurY].getDisplay();\n if (display != null) {\n ProjectionControl pc = display.getProjectionControl();\n if (pc != null) {\n int dim = DisplayCells[CurX][CurY].getDimension();\n double[] matrix;\n if (dim == 1) {\n // 3-D (Java3D)\n matrix = matrix3D;\n }\n else if (dim == 2) {\n // 2-D (Java2D)\n matrix = matrixJ2D;\n }\n else {\n // 2-D (Java3D)\n matrix = matrix2D;\n }\n try {\n pc.setMatrix(matrix);\n }\n catch (VisADException exc) {\n if (BasicSSCell.DEBUG) exc.printStackTrace();\n }\n catch (RemoteException exc) {\n if (BasicSSCell.DEBUG) exc.printStackTrace();\n }\n }\n }\n }", "title": "" }, { "docid": "3d953c9264b8ba083229dd1bebf56a7d", "score": "0.61869526", "text": "public void toggleManipulatorViewMode() {\n\t\tPolyMeshViewer view = (PolyMeshViewer) getView();\n\t\tArrayList manipulators = view.getManipulators();\n\t\tIterator iter = manipulators.iterator();\n\t\tManipulator manipulator;\n\t\twhile (iter.hasNext()) {\n\t\t\tmanipulator = (Manipulator) iter.next();\n\t\t\tmanipulator.toggleViewMode();\n\t\t}\n\t\tview.repaint();\n\t}", "title": "" }, { "docid": "d9ae9733e6766eb700d89022c8a1ee37", "score": "0.61089224", "text": "public Builder clearMode() {\n \n mode_ = 0;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "d9ae9733e6766eb700d89022c8a1ee37", "score": "0.61089224", "text": "public Builder clearMode() {\n \n mode_ = 0;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "afd863fe62303a761f6186e898dea23c", "score": "0.606411", "text": "@Override\r\n public void ResetView() {\n transX = 0.0;\r\n transY = 0.0;\r\n magnif = 1.f;\r\n repaint();\r\n }", "title": "" }, { "docid": "4c30869a8ea2c5db860a08ca618b544f", "score": "0.6028347", "text": "private void resetView()\n {\n if(poller!= null)\n poller.interrupt();\n \n cmbSysMode.setEnabled(false);\n \n theatreMapPanel1.resetView();\n sMCDPanel1.resetView();\n threatOverviewPanel1.resetView();\n interceptorOverviewPanel1.resetView();\n }", "title": "" }, { "docid": "ea36625f8bcfc4ad9eb46c7449d1b616", "score": "0.602357", "text": "public Builder clearMode() {\n \n mode_ = 0;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "ea36625f8bcfc4ad9eb46c7449d1b616", "score": "0.60205865", "text": "public Builder clearMode() {\n \n mode_ = 0;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "ea36625f8bcfc4ad9eb46c7449d1b616", "score": "0.60205865", "text": "public Builder clearMode() {\n \n mode_ = 0;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "01aed189f8bfff6b97c1d69a3ea525cb", "score": "0.5983044", "text": "@Override\r\n\tprotected void unsetMatrixView() {\n\t\t\r\n\t}", "title": "" }, { "docid": "16fd765b73707b9f066fe7685b8081e3", "score": "0.59313905", "text": "public void resetFractal()\r\n\t{\r\n\t\tfractal.InitialConditions();\r\n\t\tframe.repaint();\r\n\t}", "title": "" }, { "docid": "e62395545e1f5545fd3f5ac21c644b4d", "score": "0.59029996", "text": "public void reset() {\n\t\tupdateCamera();\n\t\tupdateLineMode();\n\t}", "title": "" }, { "docid": "a078e10b05393ca6ef91cf997fe2e89e", "score": "0.5840166", "text": "public void reset(){\n \t liftMotor.rotate(height*3);\n \t gripclawMotor.rotate(gripStrength);\n }", "title": "" }, { "docid": "ea2666b7588560164771b2c876e8b238", "score": "0.57913893", "text": "@Override\r\n\tpublic void resetView() {\n\t\t\r\n\t}", "title": "" }, { "docid": "6dc7dad1f323e421bf391771709f6d4a", "score": "0.57809496", "text": "@Override\r\n\tpublic void resetMatrix() {\n\t\t\r\n\t}", "title": "" }, { "docid": "ee02622e577b1517ed97310e55557e36", "score": "0.5772766", "text": "protected abstract void glMatrixMode(MatrixMode mode);", "title": "" }, { "docid": "f4cf735cd8137e0a832eebc484fa2a5c", "score": "0.57606775", "text": "public void resetNavx() {\n\t\tahrs.reset();\n\t\tSystem.out.println(\"angle is \" + ahrs.getAngle());\n\t}", "title": "" }, { "docid": "afdaf05f1a482e83e95b3f304b0ff47e", "score": "0.5716997", "text": "private void resetAngle()\r\n {\r\n lastAngles = imu.getAngularOrientation(AxesReference.INTRINSIC, AxesOrder.ZYX, AngleUnit.DEGREES);\r\n\r\n globalAngle = 0;\r\n }", "title": "" }, { "docid": "cbb01aa1ce1b02b3aeff957d818a7119", "score": "0.57145387", "text": "public void resetModel();", "title": "" }, { "docid": "855de259df784beaf180d88e2dc113a6", "score": "0.57024616", "text": "public void resetAngle()\n {\n lastAngles = imu.getAngularOrientation(AxesReference.INTRINSIC, AxesOrder.ZYX, AngleUnit.DEGREES);\n\n globalAngle = 0;\n }", "title": "" }, { "docid": "a5bd34a30ab7586f0ee616f0c2094a6e", "score": "0.56815743", "text": "private void resetAngle()\n {\n lastAngles = imu.getAngularOrientation(AxesReference.INTRINSIC, AxesOrder.ZYX, AngleUnit.DEGREES);\n\n globalAngle = 0;\n }", "title": "" }, { "docid": "a5bd34a30ab7586f0ee616f0c2094a6e", "score": "0.56815743", "text": "private void resetAngle()\n {\n lastAngles = imu.getAngularOrientation(AxesReference.INTRINSIC, AxesOrder.ZYX, AngleUnit.DEGREES);\n\n globalAngle = 0;\n }", "title": "" }, { "docid": "4e7ef906329a60eb8588659ae1084725", "score": "0.56547314", "text": "private void reset(){\n additionBt.setEnabled(false);\n subtractionBt.setEnabled(false);\n multiplicationBt.setEnabled(false);\n transposeABt.setEnabled(false);\n transposeBBt.setEnabled(false);\n \n matrixARowNum.setText(\"1\");\n matrixAColNum.setText(\"1\");\n matrixBRowNum.setText(\"1\");\n matrixBColNum.setText(\"1\");\n \n matrixAInput.setText(\"0\");\n matrixBInput.setText(\"0\");\n result.setText(\"\");\n \n matrixARowNum.requestFocus();\n }", "title": "" }, { "docid": "798f596d0719c28c3da53b2f6a349da2", "score": "0.5641478", "text": "public void reset()\t{\n\t\tinit();\t\n\t\tif (algrthm != null) \n\t\t\talgrthm.stop();\n\t\tparent.unlock();\n\t\trepaint(); \n\t}", "title": "" }, { "docid": "22ae0ad53149e5b2360be106ffbb7c37", "score": "0.5610938", "text": "public void reset()\n {\n alignAngle = false;\n initAlign = false;\n }", "title": "" }, { "docid": "890c7334f7aa687a680144186e0301dd", "score": "0.5574926", "text": "public void leaveOrtho() \r\n {\n\t\tglPopMatrix(); // desempilha matriz\r\n\t\tglMatrixMode(GL_MODELVIEW); // entra na matriz ModelView\r\n\t\tglPopMatrix(); // desempilha matriz \r\n\t\tglPopAttrib();\r\n\t\t\r\n\t}", "title": "" }, { "docid": "b42e7b66f337c7b461dc8fd3b435a00a", "score": "0.55691814", "text": "private void resetAngle() {\n lastAngles = imu.getAngularOrientation(AxesReference.INTRINSIC, AxesOrder.ZYX, AngleUnit.DEGREES); //sets lastAngles to current angles\n\n globalAngle = 0; //global angle is set to 0\n }", "title": "" }, { "docid": "6f7318b6c525dbffa83bcddc0b27b872", "score": "0.5550666", "text": "private void clearOrientation() {\n \n orientation_ = 0;\n }", "title": "" }, { "docid": "24706b1c7dea09a71b1150626d295c52", "score": "0.55473983", "text": "private synchronized void reset()\n {\n initView();\n removeAllViewsInLayout();\n requestLayout();\n }", "title": "" }, { "docid": "128dc74c47afc7c5735957a54289e4db", "score": "0.5534958", "text": "private void resetView(){\n mChoosePatient.setSelection(0);\n\n // set time in 8:00 AM\n mChooseTime.setCurrentHour(8);\n mChooseTime.setCurrentMinute(0);\n\n // set duration in zero\n mChooseDuration.setCurrentHour(0);\n mChooseDuration.setCurrentMinute(0);\n\n // set selected electrodes in none\n for (int i = 0; i < electrodes.length; i++){\n electrodes[i] = 1;\n }\n mCalibrationCanvas = (CalibrationCanvas) rootView.findViewById(R.id.choose_channels);\n mCalibrationCanvas.setElectrodesAsociatedWithPatient(electrodes);\n mCalibrationCanvas.invalidate();\n\n // set observation in null\n mObservations.setText(\"\");\n\n // scroll view to the top\n mScrollViewSchedule.fullScroll(ScrollView.FOCUS_UP);\n }", "title": "" }, { "docid": "878066f047e57d6df53f593e6e53d661", "score": "0.55229515", "text": "private void resetDisplay() {\r\n // Reset the number of correct answers\r\n numberOfCorrectAnswers = 0;\r\n\r\n // For each answer layout\r\n for(ViewGroup viewGroup: answerLayouts) {\r\n // For each possible answer\r\n for(int i = 0; i < viewGroup.getChildCount(); i++) {\r\n View view = viewGroup.getChildAt(i);\r\n if(view instanceof RadioButton) {\r\n // Cast to RadioButton\r\n RadioButton radioButton = ((RadioButton) view);\r\n // Clear the group\r\n ((RadioGroup)radioButton.getParent()).clearCheck();\r\n break; // Not necessary to clear group multiple times\r\n } else if(view instanceof CheckBox) {\r\n ((CheckBox) view).setChecked(false);\r\n } else if(view instanceof EditText) {\r\n ((EditText) view).setText(\"\");\r\n }\r\n }\r\n }\r\n }", "title": "" }, { "docid": "14936f20ae47344483011f99561afacd", "score": "0.55173737", "text": "public void reset(){\n\t\tthis.landscape.clear();\t\n\t}", "title": "" }, { "docid": "8516645c6c67f525ce67501b7a8ffe90", "score": "0.5503254", "text": "public void resetUI()\n{ \n RMOvalShape oval = getSelectedShape(); if(oval==null) return;\n setViewValue(\"StartThumb\", oval.getStartAngle());\n setViewValue(\"StartText\", oval.getStartAngle());\n setViewValue(\"SweepThumb\", oval.getSweepAngle());\n setViewValue(\"SweepText\", oval.getSweepAngle());\n}", "title": "" }, { "docid": "1db8d46e4e7d362dd4468ea475f7c1cc", "score": "0.54967654", "text": "public native void subModeClear(string mode);", "title": "" }, { "docid": "fbebbee406a838d996599173b0c37318", "score": "0.5493024", "text": "public void reset() {\n\t\ttheta = thetaInit;\n\t\tcalcTransform();\n\t}", "title": "" }, { "docid": "48145817f688f0bb5b4bdd1572b99945", "score": "0.5478085", "text": "@Override\r\n\tpublic void resetCase() {\r\n\t\tcontrol.reset();\r\n\t}", "title": "" }, { "docid": "c458e3c37aaac74303142ef6990b2a96", "score": "0.5445506", "text": "public void reset() {\n\t\tcontroller.reset();\n\t\tupdate();\n\t}", "title": "" }, { "docid": "0282b39501c981ec258da8137f22e897", "score": "0.5432454", "text": "public void resetView() {\r\n for (int count = 0; count < this.sequenceArrayLength; count++) {\r\n if (!(this.getXMLObject(count) instanceof AXMLSequenceObject)) {\r\n ((AXMLMainObject) this.getXMLObject(count)).resetView();\r\n }\r\n }\r\n }", "title": "" }, { "docid": "87d73a065bf91d4a8e80f15cd91c350b", "score": "0.54317635", "text": "private void resetDirection(){\n double radians = Math.toRadians(-rotation);\n renderer.rotate( radians, UserController.SCREEN_X+104, UserController.SCREEN_Y+153);\n rotation = 0; //stops more rotations occurring in case this method is called twice before a new direction is given\n }", "title": "" }, { "docid": "6aa9260a203c51e34f90978709871bbe", "score": "0.5430041", "text": "public void resetGame() {\r\n\t\tminesLeft = level.getMines();\r\n \theight = level.getHeight();\r\n \twidth = level.getWidth();\r\n\t\tfield = createField();\r\n\t\tstates = trackBlockStates();\r\n\t\tresetTime();\r\n\t\tfirstMove = true;\r\n\t\tactive = true;\r\n\t\tdesiredFace = FaceIcon.NORMAL;\r\n\t\t\r\n\t\tsetChanged();\r\n\t\tnotifyObservers();\r\n\t}", "title": "" }, { "docid": "3a191bc9a026a323776b2878cbf28201", "score": "0.54171175", "text": "public void resetView()\n {\n renderThread.addEvent(new ResetViewEvent());\n }", "title": "" }, { "docid": "3386699f959a99ec09987718e0a239ce", "score": "0.5405557", "text": "public void resetAnyo();", "title": "" }, { "docid": "337b903567e17a05892631a5ccd655c9", "score": "0.5382762", "text": "private void reset() {\n\t\ts1.setCurrentRoom(r13);\n\t\ts2.setCurrentRoom(r8);\n\t\ts3.setCurrentRoom(r3);\n\t\ts4.setCurrentRoom(r6);\n\t\ts5.setCurrentRoom(r15);\n\t\ta.setCurrentRoom(r1);\n\t\td.setCurrentRoom(r14);\n\t\ta.reset();\n}", "title": "" }, { "docid": "b9d0e55603ea4dea17aca1891c4ad7a2", "score": "0.5362192", "text": "void reset ()\r\n {\r\n\tcurrentTime = 0;\r\n\tinitializeMolecules ();\r\n\tinitializeStats ();\r\n\tcomputeConcentrations ();\r\n\tupdateLabels ();\r\n\tredraw ();\r\n\tresetOccurred = true;\r\n }", "title": "" }, { "docid": "334aac307593f2e9e36a4642b3620aac", "score": "0.5358571", "text": "public void setModeAsNorm() throws EV3LibraryException{\n\t\tsetMode(MODE_NORM);\n\t}", "title": "" }, { "docid": "833183a3199feee0b168f11b5fa0521e", "score": "0.53525984", "text": "public void resetViews() {\n courseInformationPresenter.getView().refreshView();\n courseContentsPresenter.getView().refreshView();\n preprocessesPresenter.getView().refreshView();\n detectionPresenter.getView().refreshView();\n questionGenerationPresenter.getView().refreshView();\n optionsPresenter.getView().reset();\n }", "title": "" }, { "docid": "8e18b1ebac2b795445fda781056ae6fb", "score": "0.5336105", "text": "public Builder clearOrientation() {\n\n orientation_ = 0;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "231b88fb94f061f3bfcc457b577a9035", "score": "0.5329798", "text": "private void reset() {\n schritte = 0;\n updateView();\n }", "title": "" }, { "docid": "56ce47a2fc3c1611371fc6540ac37eda", "score": "0.532962", "text": "public void resetLaw();", "title": "" }, { "docid": "f693c19d953490f4b45f8bfa41e7c58a", "score": "0.5328726", "text": "public void changeMode(GraphType modo){\n\n if(modo == GraphType.AGM) {\n this.aristasActuales= aristasAGM;\n\n }\n else if (modo == GraphType.CLUSTERS) {\n \t this.aristasActuales= aristasClusters;\n }\n\n else if(modo == CAMINOGOLOSO){\n this.aristasActuales=aristasCaminoMinimo;\n System.out.println(\"camino.\");\n }\n else if(modo == GraphType.COMPLETO) {\n \t this.aristasActuales= aristasCompleto;\n\n }\n else if(modo == GraphType.NINGUNA)\n \tthis.aristasActuales=new ArrayList<>();\n\n\n System.out.println(\"Cambio de modo a \" + modo );\n\n this.render();\n\n }", "title": "" }, { "docid": "cfb1765c9a823edc7dc81b59fa9e81c3", "score": "0.5327969", "text": "public void clearModel() {\n \t\tactive = null;\n \t}", "title": "" }, { "docid": "c78c9b46056c3616b9de88bf89641ef8", "score": "0.5316068", "text": "private void setMode(DcMotor.RunMode mode) {\n frontRight.setMode(mode);\n frontLeft.setMode(mode);\n backRight.setMode(mode);\n backLeft.setMode(mode);\n }", "title": "" }, { "docid": "307649b1c8fe620f9eecc31a5a3bae91", "score": "0.5305989", "text": "public void resetView() {\n\t\tthis.getChildren().remove(this.grid);\n\t}", "title": "" }, { "docid": "99b07141ce1a6cbf93e2c4df74be93c1", "score": "0.52944875", "text": "public void reset() {\r\n\t\t\tfor (int i = 0; i < mat.length; i++)\r\n\t\t\t\tfor (int j = 0; j < mat[0].length; j++)\r\n\t\t\t\t\tmat[i][j] = 0;\r\n\t\t\trepaint();\r\n\t\t}", "title": "" }, { "docid": "97f4937d949f854c98dc647e723e1c67", "score": "0.52942663", "text": "public void rotarInverso(View view) {\n if (tab.rotar(90))\n gameView.invalidate();\n }", "title": "" }, { "docid": "09a481de5895809c5b98cf7a4daf3171", "score": "0.5290287", "text": "public void reset() { ox = oy = -1; main.bDist.setText(\" - \"); }", "title": "" }, { "docid": "26f41494b4c33b428a24384fe7f5499d", "score": "0.52883995", "text": "public void reset() {\n\n\t\tinitialize();\n//\t\tframe.setVisible(true);\n\t}", "title": "" }, { "docid": "5c8ccbf102f3d3f670479e2e8ebb45ee", "score": "0.5286588", "text": "public void resetAnio();", "title": "" }, { "docid": "ed180aa5a3addac4e5dfde892db326bb", "score": "0.5282709", "text": "@Override\r\n\tpublic void changeMode(GameMode mode) {\n\t\t\r\n\t}", "title": "" }, { "docid": "9fc26f2f9aba0e8de7772606e7ef35e9", "score": "0.5282137", "text": "public Builder clearLedMode() {\n\n ledMode_ = 0;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "9fc26f2f9aba0e8de7772606e7ef35e9", "score": "0.5282137", "text": "public Builder clearLedMode() {\n\n ledMode_ = 0;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "9bc9fd5b2a543a6a801fa9beea8acc3b", "score": "0.52769244", "text": "public Builder clearOrientation() {\n \n orientation_ = 0;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "fce764719f1bbc0c0a4273247b0ef5a2", "score": "0.52658933", "text": "public void reset() {\r\n\t\tresetOperandes();\r\n\t\tresetAccumulateur();\r\n\t\tresetOperandesCompteur();\r\n\t\tresetCompteur();\r\n\t\tresetDecimal();\r\n\t}", "title": "" }, { "docid": "3adba179b247d145d61ee06bd0e49fb6", "score": "0.52651626", "text": "public void setOpMode(OpMode mode) {\n \tcurrOpMode = mode;\n }", "title": "" }, { "docid": "b400379f7967f694300001a3ab5adccd", "score": "0.5264526", "text": "@Override\n\tprotected void removeFromModelForMode(DefaultMutableTreeNode node,\n\t\t\tDefaultTreeModel algebraModel) {\n\n\t\t// remove the type branch if there are no more children\n\t\tswitch (treeMode) {\n\t\tdefault:\n\t\t\t// do nothing\n\t\t\tbreak;\n\t\tcase TYPE:\n\t\t\tsuper.removeFromModelForMode(node, algebraModel);\n\t\t\tbreak;\n\t\tcase LAYER:\n\t\t\tremoveFromLayer(((GeoElement) node.getUserObject()).getLayer());\n\t\t\tbreak;\n\t\t}\n\t}", "title": "" }, { "docid": "1eaf9eaa5fc56ae23a1fbe48e0d246ad", "score": "0.52641845", "text": "public void resetGame(View view) {\n inning = 0;\n runTeamA = 0;\n outTeamA = 0;\n runTeamB = 0;\n outTeamB = 0;\n displayInning(inning);\n displayRunTeamA(runTeamA);\n displayRunTeamB(runTeamB);\n displayOuTeamA(outTeamA);\n displayOuTeamB(outTeamB);\n }", "title": "" }, { "docid": "7f80857b5e59fcb9ff2ff8c420967c34", "score": "0.5261122", "text": "protected void reset() {\r\n\t\tfor (int x = 0 ; x < lamps.length ; x++) {\r\n\t\t\tfor (int y = 0 ; y < lamps[x].length ; y++) {\r\n\t\t\t\tlamps[x][y] = false;\r\n\t\t\t}\r\n\t\t}\r\n\t\tc.resetNbCoup();\r\n\t}", "title": "" }, { "docid": "235b6b18d9aafc5846f0abce832a0468", "score": "0.5253924", "text": "public void resetDriveMode() {\n\n frontLeft.setMode(DcMotor.RunMode.RUN_USING_ENCODER);\n backLeft.setMode(DcMotor.RunMode.RUN_USING_ENCODER);\n frontRight.setMode(DcMotor.RunMode.RUN_USING_ENCODER);\n backRight.setMode(DcMotor.RunMode.RUN_USING_ENCODER);\n }", "title": "" }, { "docid": "5d92a0c1f1219f538b8e278d13ec5e5d", "score": "0.5251002", "text": "public void changeView(){\n this.isLinearView = !isLinearView;\n }", "title": "" }, { "docid": "641f2d8137b464e188fcd7bc7aa7206f", "score": "0.52494705", "text": "public void forceReturnToTheMainMode() {\n textViewAlarmHours.setVisibility(View.INVISIBLE);\n textViewAlarmMinutes.setVisibility(View.INVISIBLE);\n textViewAlarmText.setVisibility(View.INVISIBLE);\n textViewTimeFormat.setVisibility(View.INVISIBLE);\n textViewPmFormat.setVisibility(View.INVISIBLE);\n textViewAlarmHours.clearAnimation();\n textViewAlarmMinutes.clearAnimation();\n textViewMainHours.setVisibility(View.VISIBLE);\n textViewMainMinutes.setVisibility(View.VISIBLE);\n textViewMainSeconds.setVisibility(View.VISIBLE);\n textViewDayOfMonth.setVisibility(View.VISIBLE);\n textViewWeekDay.setVisibility(View.VISIBLE);\n\n //from the edit mode\n textViewMainSeconds.clearAnimation();\n textViewMainHours.clearAnimation();\n textViewMainMinutes.clearAnimation();\n textViewDayOfMonth.clearAnimation();\n textViewWeekDay.clearAnimation();\n textViewMonth.clearAnimation();\n textViewMainSeconds.setVisibility(View.VISIBLE);\n textViewMainHours.setVisibility(View.VISIBLE);\n textViewMainMinutes.setVisibility(View.VISIBLE);\n textViewWeekDay.setVisibility(View.VISIBLE);\n textViewDayOfMonth.setVisibility(View.VISIBLE);\n textViewColon.setVisibility(View.VISIBLE);\n textViewMonth.setVisibility(View.INVISIBLE);\n\n monthModeIsOn = false;\n editSecondsSelected = true;\n\n mainScreenViewsAreVisible = true;\n }", "title": "" }, { "docid": "4b395791a9317e2f499bc14bfc4a9394", "score": "0.5238546", "text": "public void reset()\r\n {\n GameSurfaceView.monstermanager.clear();\r\n GameSurfaceView.towermanager.clear();\r\n GameSurfaceView.bulletmanager.clear();\r\n GameSurfaceView.animManager.clear();\r\n reLoadMissionFile();\r\n }", "title": "" }, { "docid": "192c50ffe74ae2a2f90b057a1afe6e11", "score": "0.5222413", "text": "@FXML\n\tvoid resetA(ActionEvent event) {\n\t\treset();\n\n\t}", "title": "" }, { "docid": "8eef01a3f73bb06f199f1a421ccda03f", "score": "0.52170634", "text": "public static void resetKeys() {\n\t\tModel.j.getInputMap(JComponent.WHEN_IN_FOCUSED_WINDOW).put(KeyStroke.getKeyStroke(KeyEvent.VK_1,0),\"1\");\n\t\tModel.j.getActionMap().put(\"1\", new AbstractAction() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tif(Model.mode==Mode.WAIT||Model.mode==Mode.QUIZ) {\n\t\t\t\t\tmodel.checkAnswer(1);\n\t\t\t\t}else {\n\t\t\t\t\tModel.mode=Mode.FORWARDFACT;\n\t\t\t\t} \t\n\t\t\t}\n\t\t});\n\t\tModel.j.getInputMap(JComponent.WHEN_IN_FOCUSED_WINDOW).put(KeyStroke.getKeyStroke(KeyEvent.VK_2,0),\"2\");\n\t\tModel.j.getActionMap().put(\"2\", new AbstractAction() {\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tif(Model.mode==Mode.WAIT||Model.mode==Mode.QUIZ) {\n\t\t\t\t\tmodel.checkAnswer(2);\n\t\t\t\t}else {\n\t\t\t\t\tModel.mode=Mode.FORWARDFACT;\n\t\t\t\t} \n\t\t\t}\n\t\t});\n\t\tModel.j.getInputMap(JComponent.WHEN_IN_FOCUSED_WINDOW).put(KeyStroke.getKeyStroke(KeyEvent.VK_3,0),\"3\");\n\t\tModel.j.getActionMap().put(\"3\", new AbstractAction() {\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tif(Model.mode==Mode.WAIT||Model.mode==Mode.QUIZ) {\n\t\t\t\t\tmodel.checkAnswer(3);\n\t\t\t\t}else {\n\t\t\t\t\tModel.mode=Mode.FORWARDFACT;\n\t\t\t\t} \n\t\t\t}\n\t\t});\n\t\tModel.j.getInputMap(JComponent.WHEN_IN_FOCUSED_WINDOW).put(KeyStroke.getKeyStroke(KeyEvent.VK_ENTER,0),\"enter\");\n\t\tModel.j.getActionMap().put(\"enter\", new AbstractAction() {\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tswitch(Model.mode) {\n\t\t\t\tcase TUTORIALSTART:\n\t\t\t\tcase START:\n\t\t\t\t\tModel.mode=Mode.FORWARD;\n\t\t\t\t\tbreak;\n\t\t\t\tcase WRONG:\n\t\t\t\t\tModel.mode=Mode.FORWARDFACT;\n\t\t\t\t\tbreak;\n\t\t\t\tcase END:\n\t\t\t\t\tModel.mode=Mode.RESET;\n\t\t\t\t\tbreak;\n\t\t\t\tcase DIE:\n\t\t\t\t\tModel.mode=Mode.RESET;\n\t\t\t\t\tbreak;\n\t\t\t\tcase CORRECT:\n\t\t\t\t\tModel.mode=Mode.FORWARDFACT;\n\t\t\t\t\tbreak;\n\t\t\t\tdefault:\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t}", "title": "" }, { "docid": "337721d714e8065932c0817728be47b8", "score": "0.5216456", "text": "private void reset()\n {\n // clear all tracks and observations\n _obsData.clear();\n _trkData.clear();\n \n // clear all utilities\n _spdUtil.set(0.0);\n _timeUtil.set(0.0);\n _brgUtil.set(0.0);\n \n // clear data in all views\n final Plot2DSpeedView vwSpd = \n ((Plot2DSpeedView) findViewById(R.id.plot_2D_speed));\n \n if (vwSpd != null)\n {\n vwSpd.reset();\n }\n \n final Plot2DBearingView vwBrg = \n ((Plot2DBearingView) findViewById(R.id.plot_2D_bearing));\n \n if (vwBrg != null)\n {\n vwBrg.reset();\n }\n \n if (_trkMapFragment != null)\n {\n _trkMapFragment.reset();\n }\n \n invalidateOptionsMenu();\n }", "title": "" }, { "docid": "e6f94f64b824c88ec0fbd687e7612d3c", "score": "0.5213213", "text": "public void reset() {\r\n control.setValue(\"xmin\", -1);\r\n control.setValue(\"xmax\", 1);\r\n control.setValue(\"N\", 300);\r\n control.setValue(\"period\", 1);\r\n control.setValue(\"sin coefficients\", new double[] {\r\n 1.0, 0, 1.0/3.0, 0, 1.0/5.0, 0, 0\r\n });\r\n control.setValue(\"cos coefficients\", new double[] {\r\n 0, 0, 0, 0, 0, 0, 0\r\n });\r\n calculate();\r\n }", "title": "" }, { "docid": "ecd5061c59e0bb70bb8b2857bbd05a49", "score": "0.52122", "text": "public void unbind(){\n glUseProgram(0);\n }", "title": "" }, { "docid": "6f4810d73015270bd6ce3608cd6d08ed", "score": "0.5212083", "text": "public void setOrthographicProjection() {\t\t\n\t\tprojectionMatrix = ProjectionMatrix.orthographic();\n\t\tinvertedProjectionMatrix = projectionMatrix.inverse();\n\t\t\n\t\tthis.projection = ProjectionType.ORTHOGRAPHIC;\n\t}", "title": "" }, { "docid": "5a22b8bd0494a99d1b98057c0c7259cf", "score": "0.52054626", "text": "public void reset() {\n m_liftPos = 0.5;\n m_tiltPos = 0.5;\n m_gripperPos = 0.5;\n\n m_lift.set(m_liftPos);\n m_tilt.set(m_tiltPos);\n m_gripper.set(m_gripperPos);\n }", "title": "" }, { "docid": "891105d809aa4b7bb850b027c5fae579", "score": "0.5201724", "text": "public void resetRotation(){\n\t\trotate(4-numRotations);\n\t\t//numRotations--;\n\t}", "title": "" }, { "docid": "d3c0c19ef0a7b1492d70cf8fdea91d34", "score": "0.51988965", "text": "public void resetAngle()\n {\n \tgyro.reset();\n }", "title": "" }, { "docid": "0af90b56760110d18bcf7abecf284e22", "score": "0.5194953", "text": "private void clearUiModeType() {\n \n uiModeType_ = 0;\n }", "title": "" }, { "docid": "49a63f8f754ee8958c7fef3aee9bb1c7", "score": "0.51947874", "text": "public void reset(){\n this.nuclei.clear();\n this.cells.clear();\n this.points.clear();\n this.results.reset();\n \n this.setChanged();\n this.notifyObservers();\n }", "title": "" }, { "docid": "c11d57cbf83891a22ff37c1ee64a3f49", "score": "0.5193066", "text": "private void clearFrame() {\n\t\t\tMatrix.setIdentityM(mModelMatrix, 0);\n\t\t\t\n\t\t\t/*\n\t\t\t * Usually, the first thing one might want to do is to clear the\n\t\t\t * screen. The most efficient way of doing this is to use glClear().\n\t\t\t */\n\t\t\tGLES20.glClearColor(0.0f, 0.0f, 0.0f, 1.0f);\n\t\t GLES20.glClear( GLES20.GL_DEPTH_BUFFER_BIT | GLES20.GL_COLOR_BUFFER_BIT);\n\t\t}", "title": "" }, { "docid": "f3d1ce9fe02c7a194a0c641b35533788", "score": "0.51745933", "text": "public void reset() {\n cusView.reset();\n cusView.setVisibility(View.GONE);\n full_circle_image.setVisibility(View.VISIBLE);\n outletCircleButtonImg.setImageBitmap(first_icon_bmp);\n outletCircleButtonImg.clearAnimation();\n\n fillCircle.setVisibility(View.INVISIBLE);\n first_click = false;\n flg_frmwrk_mode = MODE_UN_START;\n }", "title": "" }, { "docid": "9b5ed8dfddf457b710fb4838be846eb6", "score": "0.5171519", "text": "public void reset() {\n calc = new Calculation(0);\n currOperation = null;\n nextOperation = Operation.ADD;\n inputNumber = new InputNumber();\n }", "title": "" }, { "docid": "8830b6805c3336999de5b40b433346c4", "score": "0.5164402", "text": "@Override\n public synchronized void reset() {\n super.reset();\n mTurnPID.reset();\n mGoalAngle = 0.0;\n mCurrentAngle = mNavigation.getHeadingInDegrees();\n }", "title": "" }, { "docid": "855a558737ef071424e1c45a588b888c", "score": "0.51502293", "text": "@Override\n public void changeMode() {\n getAlarmClock().setState(new SetAlarmHourState(getAlarmClock()));\n }", "title": "" }, { "docid": "94bbf4110580248f0019fb5271e34dc7", "score": "0.51415026", "text": "private void setMViewMatrix (float[] newVar) {\n mViewMatrix = newVar;\n }", "title": "" }, { "docid": "9204fccac912aaa30d4873b371d94782", "score": "0.5134314", "text": "private void reset()\r\n {\r\n boxes[0].setText(\"-2\");\r\n boxes[1].setText(\"2\");\r\n boxes[2].setText(\"-1.6\");\r\n boxes[3].setText(\"1.6\");\r\n boxes[4].setText(\"100\");\r\n \r\n ac.setIterations(100);\r\n ac.changeAxis(-2, 2, -1.6, 1.6);\r\n componentResized(null); //calls repaint()\r\n }", "title": "" }, { "docid": "a058d5f544def9c5b49fb36b301fc2f8", "score": "0.5127449", "text": "protected void setMatrix(GL10 gl) {\n\t\t\tgl.glTranslatef(posx, posy, posz);\n\t\t//if (rot != 0)\n\t\t\tgl.glRotatef(rot, rotx, roty, rotz);\n\t\t//if (scalex != 1 || scaley != 1 || scalez != 1)\n\t\t\tgl.glScalef(scalex, scaley, scalez);\n\t}", "title": "" }, { "docid": "431ca5e268c75071d1229f00421d3319", "score": "0.51269495", "text": "public void reset() {\n \t\tundo.clear();\n \t\tredo.clear();\n \t\tindicesUndo.clear();\n \t\tindicesRedo.clear();\n \t\tundoSize = 0;\n \t\tredoSize = 0;\n \t}", "title": "" }, { "docid": "fb44044183b082c3877553f3d76cd7cc", "score": "0.51243365", "text": "private void unbindTexturedModel() {\r\n\t\tGL20.glDisableVertexAttribArray(0); // Disable attribute list 0\r\n\t\tGL20.glDisableVertexAttribArray(1); // Disable attribute list 1\r\n\t\tGL20.glDisableVertexAttribArray(2); // Disable attribute list 2\r\n\t\tGL30.glBindVertexArray(0); // Unbind Vao once done\r\n\t}", "title": "" }, { "docid": "37479601e17b1fe61ec318b8ce22948c", "score": "0.51230896", "text": "public void reset() {\n\t\t//Zero units (such as a gyro) here\n\t\t//TODO: Uncomment for encoders: leftEncoder.reset();\n\t\t//TODO: Uncomment for encoders: rightEncoder.reset();\n\t}", "title": "" }, { "docid": "39d7a01e0955c34dd4a8ccf2f50631de", "score": "0.51226664", "text": "public void resetLookAt() {\r\n\t\tlookAt = new Vector3f(0,0,0);\r\n\t}", "title": "" }, { "docid": "d181bbb1c784fc65f76e2f35e1cf7d17", "score": "0.5098259", "text": "public void resetState();", "title": "" }, { "docid": "30e15a842ae9abb456d4e4c66034be2d", "score": "0.5092626", "text": "@Override\n\tpublic void setShowAlgebraInput(boolean b) {\n\t}", "title": "" }, { "docid": "e3fd2128598f8ab53dafbdee3c6a9da4", "score": "0.5091593", "text": "public void updateView() {\n controlModel.getView().getMyJFrame().recreate();\n controlModel.getCreditsController().updateView();\n controlModel.getSettingsController().updateSettingsView();\n controlModel.getProgramChooserModel().updateView();\n controlModel.getBuzzerControl().updateView();\n controlModel.getView().setupWindow();\n controlModel.getProgramChooserModel().getProgramHandler().updateProgramViews();\n\n\n setProgram(controlModel.getCurrentProgram());\n\n }", "title": "" }, { "docid": "27f452e65c0d0adc43863ff00e1ae5e7", "score": "0.5085503", "text": "public static void reset(){\r\n yTrans= 0;\r\n xcoord = -100;\r\n model.setLayoutY(yTrans);\r\n model.setLayoutX(xcoord);\r\n TestClass.plat.retPlat().setLayoutX(-100);\r\n TestClass.plat.retPlat().setLayoutY(400);\r\n TestClass.plat2.retPlat().setLayoutX(400);\r\n TestClass.plat2.retPlat().setLayoutY(350);\r\n TestClass.plat3.retPlat().setLayoutX(530);\r\n TestClass.plat3.retPlat().setLayoutY(410);\r\n TestClass.plat4.retPlat().setLayoutX(730);\r\n TestClass.plat4.retPlat().setLayoutY(350);\r\n TestClass.plat5.retPlat().setLayoutX(930);\r\n TestClass.plat5.retPlat().setLayoutY(290);\r\n TestClass.plat6.retPlat().setLayoutX(1130);\r\n TestClass.plat6.retPlat().setLayoutY(310);\r\n ImageButton.isClicked = false;\r\n ImageButton.playButton.setOpacity(1);\r\n Enemy.reset();\r\n Portal.reset();\r\n sum = 0;\r\n leftOff = 0;\r\n groundIndex = -1;\r\n }", "title": "" }, { "docid": "d0a356ab33072953b7d3ef65ccc65c50", "score": "0.50805014", "text": "public void resetArm() {\n\n DcMotor.RunMode runMode = armMotor.getMode();\n armMotor.setMode(DcMotor.RunMode.STOP_AND_RESET_ENCODER);\n armMotor.setMode(runMode);\n }", "title": "" } ]
c5eebb7ab0764f5e9a9d7b0b24d1bdc5
The class holding records for this type
[ { "docid": "444838a3267910dd032de1bd14dac58e", "score": "0.5652297", "text": "@Override\n\tpublic java.lang.Class<CitaHistoricoRecord> getRecordType() {\n\t\treturn CitaHistoricoRecord.class;\n\t}", "title": "" } ]
[ { "docid": "eac71d4da4656cecd9548a3b3c29c201", "score": "0.7097996", "text": "public Record() {\n data = new HashMap<>();\n }", "title": "" }, { "docid": "38f8e50c8932c347f5deb33d2fbdc8fc", "score": "0.67769665", "text": "public Records() {\n super();\n _recordList = new Vector();\n }", "title": "" }, { "docid": "a8687d625358de672de3288e369971b8", "score": "0.6446469", "text": "public OpenERPRecord() {\r\n\t\trecord = new HashMap<String, Object>();\r\n\t\toriginal = new HashMap<String, Object>();\r\n\t}", "title": "" }, { "docid": "ac5896df758b7fb49cb929c59bc2f62c", "score": "0.6398034", "text": "@Override\n public Class<Record> getRecordType() {\n return Record.class;\n }", "title": "" }, { "docid": "ac5896df758b7fb49cb929c59bc2f62c", "score": "0.6398034", "text": "@Override\n public Class<Record> getRecordType() {\n return Record.class;\n }", "title": "" }, { "docid": "ac5896df758b7fb49cb929c59bc2f62c", "score": "0.6398034", "text": "@Override\n public Class<Record> getRecordType() {\n return Record.class;\n }", "title": "" }, { "docid": "ac5896df758b7fb49cb929c59bc2f62c", "score": "0.6398034", "text": "@Override\n public Class<Record> getRecordType() {\n return Record.class;\n }", "title": "" }, { "docid": "ac5896df758b7fb49cb929c59bc2f62c", "score": "0.6398034", "text": "@Override\n public Class<Record> getRecordType() {\n return Record.class;\n }", "title": "" }, { "docid": "ac5896df758b7fb49cb929c59bc2f62c", "score": "0.6398034", "text": "@Override\n public Class<Record> getRecordType() {\n return Record.class;\n }", "title": "" }, { "docid": "288f0333998ba062a796eed32511c9dc", "score": "0.6304587", "text": "public RecordCollection() {\n\t\trecords = new ArrayList<Record>();\n\t\tsorted = false;\n\t}", "title": "" }, { "docid": "d3fb5514ca7de63a10c1a27af2600487", "score": "0.62505275", "text": "@SuppressWarnings(\"unchecked\")\n public FindDataObjectsRequestBuilder<DXRecord> ofClassRecord() {\n Preconditions.checkState(this.classConstraint == null,\n \"Cannot specify class constraints more than once\");\n this.classConstraint = \"record\";\n // This cast should be safe, since we hold no references of type T\n return (FindDataObjectsRequestBuilder<DXRecord>) this;\n }", "title": "" }, { "docid": "0b72dc48c9455814760024a20ffb383e", "score": "0.62180156", "text": "public Record[] getRecords() { return _records; }", "title": "" }, { "docid": "0666a19c3c1e96ff02fbbc534db2ddd3", "score": "0.6157566", "text": "private Record() {\r\n\t\t}", "title": "" }, { "docid": "1de5b4121d62a4a36ebb19fccfefeeb4", "score": "0.60969895", "text": "public List<RecordType> getRecords() {\r\n return recordList;\r\n }", "title": "" }, { "docid": "c4e785cc572d57f7addefc4a5546a3f6", "score": "0.6075869", "text": "public Record() {\n\n }", "title": "" }, { "docid": "1accccebb81452898f9a747a435faa69", "score": "0.60472625", "text": "@Override\n\tpublic java.lang.Class<org.jooq.Record> getRecordType() {\n\t\treturn org.jooq.Record.class;\n\t}", "title": "" }, { "docid": "1accccebb81452898f9a747a435faa69", "score": "0.60472625", "text": "@Override\n\tpublic java.lang.Class<org.jooq.Record> getRecordType() {\n\t\treturn org.jooq.Record.class;\n\t}", "title": "" }, { "docid": "1accccebb81452898f9a747a435faa69", "score": "0.60472625", "text": "@Override\n\tpublic java.lang.Class<org.jooq.Record> getRecordType() {\n\t\treturn org.jooq.Record.class;\n\t}", "title": "" }, { "docid": "cf868dcc6f9879405ab1cab4a0f5f8c7", "score": "0.60177046", "text": "public DataframeRecord() {\n super(Dataframe.DATAFRAME);\n }", "title": "" }, { "docid": "97fe43011d24e46cad20ad7f42e9e8f4", "score": "0.60125583", "text": "@Override\n public Class<MModelRecord> getRecordType() {\n return MModelRecord.class;\n }", "title": "" }, { "docid": "8089a62e7216cd71c855b14cbe115571", "score": "0.6004612", "text": "public ResourceRecordImpl( String domainName, RecordType recordType, RecordClass recordClass, int timeToLive,\n Map<String, Object> attributes )\n {\n this.domainName = domainName;\n this.recordType = recordType;\n this.recordClass = recordClass;\n this.timeToLive = timeToLive;\n this.attributes = attributes;\n }", "title": "" }, { "docid": "15c24d349da3b0da8d37bff31f5b4b17", "score": "0.59912026", "text": "public MdClassesRecord() {\n super(MdClasses.MD_CLASSES);\n }", "title": "" }, { "docid": "f46bafb0504a5547fe174d77c0034bdb", "score": "0.5975672", "text": "@Override\n public boolean generateBaseRecordClass() {\n\n return true;\n }", "title": "" }, { "docid": "16a42b7b766050667edc3842c9aa416f", "score": "0.5959379", "text": "public PostsRecord() {\n\t\tsuper(Posts.POSTS);\n\t}", "title": "" }, { "docid": "e259c78863778d5a5e9d787684e8895b", "score": "0.5939546", "text": "@Override\n\tpublic Class<Record> getRecordType() {\n\t\treturn Record.class;\n\t}", "title": "" }, { "docid": "e259c78863778d5a5e9d787684e8895b", "score": "0.5939546", "text": "@Override\n\tpublic Class<Record> getRecordType() {\n\t\treturn Record.class;\n\t}", "title": "" }, { "docid": "2c2fd66dbf3a0c8e32c05309a4b8470f", "score": "0.59239286", "text": "public final List<RecordDef> getRecords() {\r\n\t\treturn records;\r\n\t}", "title": "" }, { "docid": "42fbf31fa491270d31471bd5a94833e0", "score": "0.5906989", "text": "public TBookRecord() {\n\t\tsuper(org.jooq.test.cubrid.generatedclasses.tables.TBook.T_BOOK);\n\t}", "title": "" }, { "docid": "f61d0df377a35714777fca9127b35694", "score": "0.5902462", "text": "@Override\n public Class<MemberBaseReferRecord> getRecordType() {\n return MemberBaseReferRecord.class;\n }", "title": "" }, { "docid": "28e83d41f363adb60c9b9970f14bc383", "score": "0.5885595", "text": "public interface Record extends Serializable {\n\n Object get(String fieldName);\n\n void set(String fieldName, Object fieldVal);\n\n Record makeCopy();\n\n RecordSchema schema();\n\n String getResultTableId();\n\n List<Object> getDimensions();\n\n void swapDimensions(List<Object> dimensions);\n\n Object getByField(RecordSchema.RecordField recordField);\n\n List<Object> getValues();\n\n void attach(String attachmentName, Object attachmentValue);\n\n Object getAttachment(String attachmentName);\n}", "title": "" }, { "docid": "c4d1c00b8ded6cc4315c1de0f34d0859", "score": "0.5842184", "text": "@Override\n public Class<StudentRecord> getRecordType() {\n return StudentRecord.class;\n }", "title": "" }, { "docid": "06e099662d5a9bba121f158c683cc83e", "score": "0.5834496", "text": "public MusRecordDaoImpl() {\n\t\tsuper(MusRecord.class);\n\t}", "title": "" }, { "docid": "52dfcbc02eaa049805c751ce2169c3f7", "score": "0.58324015", "text": "@Override\n public Class<CityRecord> getRecordType() {\n return CityRecord.class;\n }", "title": "" }, { "docid": "e6e081d293761eae1735b6011c5a82c6", "score": "0.58258605", "text": "@Override\n public Class<TestsRecord> getRecordType() {\n return TestsRecord.class;\n }", "title": "" }, { "docid": "e91abed11dce11531c324b000180e32c", "score": "0.5823519", "text": "@Override\n public Class<CreditDataRecord> getRecordType() {\n return CreditDataRecord.class;\n }", "title": "" }, { "docid": "6a831906a5a46dc60951298ded9f5151", "score": "0.582076", "text": "public ArrayList<Records> getRecords() \n\t{\n\t\treturn this.records;\n\t}", "title": "" }, { "docid": "cc80a66b0c1a74687ce7b1034462cc23", "score": "0.58049625", "text": "private Record createRecord() throws Exception {\r\n\t\tRecord dataRec = new Record();\r\n\t\tdataRec.createField(this.getMetaRec()); // create the structure of the meta rec to dataRec\r\n\t\tthis.getRecordBox().put(Clasz.RECORD_AT, dataRec);\r\n\t\tthis.createFieldPk(dataRec);\r\n\t\tthis.createFieldChildCount(dataRec);\r\n\r\n\t\treturn(dataRec);\r\n\t}", "title": "" }, { "docid": "53ff7cae2e9431eacf8f61f2b6901cdb", "score": "0.5789096", "text": "@Override\n public Class<MemberRecord> getRecordType() {\n return MemberRecord.class;\n }", "title": "" }, { "docid": "82a2b7ed37b98a6221f688c1888eba7a", "score": "0.5782578", "text": "public ValueRecord() {\n super(Value.VALUE);\n }", "title": "" }, { "docid": "5ef2af6cb5d5f6eef5f4f75c3837835c", "score": "0.5781838", "text": "public BookRecord() {\n\t\tsuper(Book.BOOK);\n\t}", "title": "" }, { "docid": "c097d91993a65e30a4c5134dd70e58dd", "score": "0.57806975", "text": "public CollectorRecord() {\n super(Collector.COLLECTOR);\n }", "title": "" }, { "docid": "fe7103e7691585a5f43bd5a663a6e58c", "score": "0.5780171", "text": "@Override\n\tpublic Class<PatientsRecord> getRecordType() {\n\t\treturn PatientsRecord.class;\n\t}", "title": "" }, { "docid": "38c8c1b8e1a5fba3af8dd6bae7ab971a", "score": "0.57790846", "text": "@Override\n\tpublic java.lang.Class<assets.fitness.tables.records.ExercisesRecord> getRecordType() {\n\t\treturn assets.fitness.tables.records.ExercisesRecord.class;\n\t}", "title": "" }, { "docid": "88e685b124e980193d8da754a06fe4b3", "score": "0.57787085", "text": "@Override\n public Class<StudentsRecord> getRecordType() {\n return StudentsRecord.class;\n }", "title": "" }, { "docid": "660574b70d11000648fab718609ed150", "score": "0.5773101", "text": "public DepotRecord() {\n\t\t\n\t}", "title": "" }, { "docid": "d7a5978da06fed9feca730135f40bbdb", "score": "0.57712585", "text": "@Override\n public Class<EmployeeRecord> getRecordType() {\n return EmployeeRecord.class;\n }", "title": "" }, { "docid": "98bb702ba32608e8f4510dc4a9836dd9", "score": "0.57635045", "text": "public TestRecordData() {\n }", "title": "" }, { "docid": "3509375f5b74dc660b83158e052288b4", "score": "0.57632965", "text": "@Override\n public Class<ReceitaRecord> getRecordType() {\n return ReceitaRecord.class;\n }", "title": "" }, { "docid": "1f02412b4e4c23218b20f82c0314b057", "score": "0.5756539", "text": "@Override\n public Class<RpkitAuctionRecord> getRecordType() {\n return RpkitAuctionRecord.class;\n }", "title": "" }, { "docid": "124708e499599481e6f3c5535f8d9319", "score": "0.57545567", "text": "@Override\n\tpublic java.lang.Class<org.jooq.groovy.example.h2.tables.records.TBookRecord> getRecordType() {\n\t\treturn org.jooq.groovy.example.h2.tables.records.TBookRecord.class;\n\t}", "title": "" }, { "docid": "0049082e18cf4ec0acd347df16307f6c", "score": "0.5749394", "text": "private FileRecordCollection() {\r\n files = new HashMap<>();\r\n }", "title": "" }, { "docid": "78c521b8dbd90b6a1e5a9192316bc833", "score": "0.5748267", "text": "public TBookRecord() {\n super(TBook.T_BOOK);\n }", "title": "" }, { "docid": "78c521b8dbd90b6a1e5a9192316bc833", "score": "0.5748267", "text": "public TBookRecord() {\n super(TBook.T_BOOK);\n }", "title": "" }, { "docid": "2373438865144895cfe32833fa208abc", "score": "0.57377255", "text": "public MedicalRecordBean() {\r\n\t\tthis.reports=new ArrayList<ReportBean>();\r\n\t}", "title": "" }, { "docid": "ae48bf6461a46c099f9a399c768db1bb", "score": "0.5731973", "text": "@Override\n public Class<ListingRecord> getRecordType() {\n return ListingRecord.class;\n }", "title": "" }, { "docid": "5da1fd2dc19c35983fc59cbb324e3d4b", "score": "0.5714259", "text": "@Override\n\tpublic Class<RecordableRecord> getEntityClass() {\n\t\treturn RecordableRecord.class;\n\t}", "title": "" }, { "docid": "2a077e40086d1f4a71bde9d2957c0a8d", "score": "0.5708903", "text": "public DoctorDutyRecordRecord() {\n super(DoctorDutyRecord.DOCTOR_DUTY_RECORD);\n }", "title": "" }, { "docid": "46e0cc8cb30ff33cd590066d43fdab2b", "score": "0.5703741", "text": "@Override\n public Class<ActivityRecord> getRecordType() {\n return ActivityRecord.class;\n }", "title": "" }, { "docid": "7e1a72b51ae5f30e5aecb72ae244b2b1", "score": "0.5699772", "text": "@Override\n public Class<BookThirdCopyrightInfoRecord> getRecordType() {\n return BookThirdCopyrightInfoRecord.class;\n }", "title": "" }, { "docid": "9111e7fcaa6cfabbc788427bd34ede6e", "score": "0.5698065", "text": "@Override\n public Class<GastosRecord> getRecordType() {\n return GastosRecord.class;\n }", "title": "" }, { "docid": "7acb57811d8287e722f80f8976745cd3", "score": "0.56961375", "text": "@Override\n public Class<TblcampaignDataRecord> getRecordType() {\n return TblcampaignDataRecord.class;\n }", "title": "" }, { "docid": "cf5d040bec95ab12eba7f2ed50dfefa3", "score": "0.5689759", "text": "public ColumnsRecord() {\n\t\tsuper(org.jooq.util.mysql.information_schema.tables.Columns.COLUMNS);\n\t}", "title": "" }, { "docid": "c349be17c34e3c441c9592f6b0ea8ed4", "score": "0.5687775", "text": "public Record() {\n print = true;\n save = false;\n }", "title": "" }, { "docid": "186255b3f10dc840910900f20673d4db", "score": "0.5680391", "text": "public MedicineRecord() {\n super(Medicine.MEDICINE);\n }", "title": "" }, { "docid": "9e13aa05af243c51754f37ed349b78a4", "score": "0.56678724", "text": "public MaterieRecord() {\n super(Materie.MATERIE);\n }", "title": "" }, { "docid": "cc3f04638bba4db3edabd571a63903bc", "score": "0.56676936", "text": "@Override\n public Class<PagesRecord> getRecordType() {\n return PagesRecord.class;\n }", "title": "" }, { "docid": "e319b67380b7feef39fd9f935edd8c34", "score": "0.5666509", "text": "@Override\n public Class<MTplRecord> getRecordType() {\n return MTplRecord.class;\n }", "title": "" }, { "docid": "d001a9bf84de1064beff93c8a932a25e", "score": "0.56552154", "text": "public ExaminstanceRecord() {\n\t\tsuper(Examinstance.EXAMINSTANCE);\n\t}", "title": "" }, { "docid": "5365001b27e9a90f94e08bb3bb671c26", "score": "0.5641462", "text": "@Override\n public GenericRecord nextRecord() {\n try {\n resultSet.next();\n GenericRecord record = new GenericData.Record(this.schema);\n for (int i = 0; i < schema.getFields().size(); i++) {\n Schema.Field field = schema.getFields().get(i);\n String type = field.schema().getType().getName();\n\n if (type.equalsIgnoreCase(\"string\"))\n record.put(field.name(), resultSet.getString(i + 1));\n else if (type.equalsIgnoreCase(\"int\")) {\n Object lt = field.getObjectProp(\"logicalType\");\n if (lt != null && lt.equals(\"date\")) {\n record.put(field.name(), (int)(resultSet.getDate(i + i).getDate() / 86_400_000L));\n }\n else {\n record.put(field.name(), resultSet.getInt(i + 1));\n }\n }\n else if (type.equalsIgnoreCase(\"boolean\"))\n record.put(field.name(), resultSet.getBoolean(i + 1));\n else if (type.equalsIgnoreCase(\"long\"))\n record.put(field.name(), resultSet.getLong(i + 1));\n else if (type.equalsIgnoreCase(\"double\"))\n record.put(field.name(), resultSet.getDouble(i + 1));\n else\n throw new ProducerException(String.format(\"Unsupported type: %s\",\n field.schema().getType().getName()));\n }\n return record;\n } catch(SQLException e) {\n e.printStackTrace();\n return null;\n }\n }", "title": "" }, { "docid": "515b8d180226ca11c05c8fd360d6d2a0", "score": "0.5640231", "text": "public ExpirationsRecord() {\n super(Expirations.EXPIRATIONS);\n }", "title": "" }, { "docid": "23c22cd5bf20eea63a382d676a3840a2", "score": "0.56376964", "text": "public Record()\n {\n updateTime();\n }", "title": "" }, { "docid": "9cd4802e4eaaabd3fd031d1602ada17d", "score": "0.563492", "text": "@Override\n public Class<LocationmasterRecord> getRecordType() {\n return LocationmasterRecord.class;\n }", "title": "" }, { "docid": "f7d3e00db83e7d931934e4c901743e20", "score": "0.563386", "text": "@Override\n public Class<GoodsMedicalInfoRecord> getRecordType() {\n return GoodsMedicalInfoRecord.class;\n }", "title": "" }, { "docid": "3fa7de643a6b39611a238a491162e488", "score": "0.5632608", "text": "@Override\n public Class<DispositivosfisicosRecord> getRecordType() {\n return DispositivosfisicosRecord.class;\n }", "title": "" }, { "docid": "fff77ef3aded5c1bd41ebd7649e9de09", "score": "0.5630325", "text": "public abstract RecordType getType();", "title": "" }, { "docid": "d98a588e01779ed2562301a0ee6c6860", "score": "0.56279254", "text": "@Override\n public Class<FactRecord> getRecordType() {\n return FactRecord.class;\n }", "title": "" }, { "docid": "0a8aaefdcafb2282e5dd270ce80170b9", "score": "0.56223905", "text": "@Override\n public Class<DictColumnB_20170629Record> getRecordType() {\n return DictColumnB_20170629Record.class;\n }", "title": "" }, { "docid": "b0679e4e12bb7390ae7944ddd0b862ad", "score": "0.5614045", "text": "@Override\n public Class<TranslationsRecord> getRecordType() {\n return TranslationsRecord.class;\n }", "title": "" }, { "docid": "9ea9118df75449cd31c78918953b7c2f", "score": "0.56133187", "text": "@Override\n public Class<ClickRecord> getRecordType() {\n return ClickRecord.class;\n }", "title": "" }, { "docid": "8a7f88ce9e635da710165538d1bc2b3a", "score": "0.56131244", "text": "protected DataObject(Repository.Record r){\n\t\trecord = r;\n\t}", "title": "" }, { "docid": "9374ba608c507da8d3b2eec4f6a97787", "score": "0.5602398", "text": "public Record() {\n\t\tbuffer = new byte[SIZE];\n\t}", "title": "" }, { "docid": "65f1c41adfd013488286605c7002cc1a", "score": "0.5600579", "text": "public TDatesRecord() {\r\n\t\tsuper(org.jooq.mp.derby.test.tables.TDates.__T_DATES);\r\n\t}", "title": "" }, { "docid": "e5f62f8758d7f92aa01054c00ec8509d", "score": "0.55990326", "text": "@Override\n public Class<CondInstancesRecord> getRecordType() {\n return CondInstancesRecord.class;\n }", "title": "" }, { "docid": "67fe464ae626b83c4019987280fd668e", "score": "0.55899584", "text": "@Override\n public Class<ScheduleRecord> getRecordType() {\n return ScheduleRecord.class;\n }", "title": "" }, { "docid": "7be8b7eae642b492ab5c075526402ab7", "score": "0.55877376", "text": "public InstanceRecord() {\n super(InstanceTable.INSTANCE);\n }", "title": "" }, { "docid": "c9fb887b3bb93028c17d0524090e69ea", "score": "0.5586961", "text": "public UsersRecord() {\n super(Users.USERS);\n }", "title": "" }, { "docid": "c9fb887b3bb93028c17d0524090e69ea", "score": "0.5586961", "text": "public UsersRecord() {\n super(Users.USERS);\n }", "title": "" }, { "docid": "c9fb887b3bb93028c17d0524090e69ea", "score": "0.5586961", "text": "public UsersRecord() {\n super(Users.USERS);\n }", "title": "" }, { "docid": "36dbe3f9a4c341153f37164a38b4ee55", "score": "0.5583985", "text": "@Override\n public Class<MpWeeklyRetainRecord> getRecordType() {\n return MpWeeklyRetainRecord.class;\n }", "title": "" }, { "docid": "871c24fe59c3162b2af925eda343426f", "score": "0.558261", "text": "DataContainer(){\n\t\tdata = new ArrayList<>();\n\t\tclassification = new ArrayList<>();\n\t\tclassTypes = new ArrayList<>();\n\t}", "title": "" }, { "docid": "35a95352bdef301d615113b26e93a4cc", "score": "0.5576488", "text": "public OrderlywebDocumentRecord() {\n super(OrderlywebDocument.ORDERLYWEB_DOCUMENT);\n }", "title": "" }, { "docid": "6fa01e0e9a872209e597bc389f3bb7d1", "score": "0.55760556", "text": "public StuffRecord()\n {\n }", "title": "" }, { "docid": "c7c645d913da4eed42a62ced40b332b3", "score": "0.55757904", "text": "@Override\n\tpublic java.lang.Class<org.jooq.example.gradle.db.information_schema.tables.records.InDoubtRecord> getRecordType() {\n\t\treturn org.jooq.example.gradle.db.information_schema.tables.records.InDoubtRecord.class;\n\t}", "title": "" }, { "docid": "e71d6c834da0bc4057703691247eb2bc", "score": "0.5561138", "text": "@Override\n public Class<AssessmentAiclassifierRecord> getRecordType() {\n return AssessmentAiclassifierRecord.class;\n }", "title": "" }, { "docid": "698f2f803b023aa14639d15da4383345", "score": "0.5559423", "text": "@Override\r\n\tprotected void addRecords() {\n\t}", "title": "" }, { "docid": "fe2ef1dcc3fffaddb5d9f763ce376a52", "score": "0.55546105", "text": "public RecordBuilder() {\n\t\tthis.thisIsFirstAttribute = true;\n\t\tthis.tupleCount = 0;\n\t\tthis.currentTupleNRSMD = null;\n\t\tthis.nestedKeyNRSMD = null;\n\t\tthis.flatKeyNRSMD = null;\n\t\t\n\t\tint colNo = 1;\n\t\tMetadataTypes[] types = new MetadataTypes[1];\n\t\ttypes[0] = MetadataTypes.STRING_TYPE;\n\t\ttry{\n\t\t\tthis.integerKeyRSMD = new NestedMetadata(colNo, types);\n\t\t}\n\t\tcatch(Exception e){\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "title": "" }, { "docid": "9736eae67fccd55afabd0ed50034fe34", "score": "0.55540574", "text": "public _DbDomainRecord() {\n super(_DbDomain._DB_DOMAIN);\n }", "title": "" }, { "docid": "2af80caa5c2ea37d0eccc98224c0733b", "score": "0.5552401", "text": "private Record(com.google.protobuf.GeneratedMessage.Builder<?> builder) {\n super(builder);\n }", "title": "" }, { "docid": "f8db1f0541b7dd048c061efbe78e67de", "score": "0.5550139", "text": "public AvroDatasetTypeProperties() {\n }", "title": "" }, { "docid": "c19d2952641bc4810bd97b316e57d2e1", "score": "0.5548862", "text": "public RepackClueWarcRecords() {\r\n\t}", "title": "" } ]
f45b9d8b7f5688d08f669ec8a584a713
Returns true if a group by that name exists.
[ { "docid": "b2f78a19bd894bfa740818f602d377a7", "score": "0.8071575", "text": "public boolean doesGroupExist(String groupName) throws IllegalArgumentException;", "title": "" } ]
[ { "docid": "a7495710d9abc74ff6c42214e9f40e0f", "score": "0.87322456", "text": "public boolean isExists(String group_name);", "title": "" }, { "docid": "aa42f4e93ff60a03c4406f8b9e41fccc", "score": "0.85715806", "text": "boolean hasGroup(Name group);", "title": "" }, { "docid": "54e37f2c182e98281117cacc7ff283ca", "score": "0.7653189", "text": "boolean isInGroup(Name groupName);", "title": "" }, { "docid": "0e1a3cdce74143a8739f112a04806bc9", "score": "0.74419206", "text": "boolean hasGroupMember();", "title": "" }, { "docid": "b55fccccb57cc88f76418061491911c3", "score": "0.7284973", "text": "boolean hasGroupid();", "title": "" }, { "docid": "b55fccccb57cc88f76418061491911c3", "score": "0.7284973", "text": "boolean hasGroupid();", "title": "" }, { "docid": "12a80fea0f9cd3fc986c794c40c84e0c", "score": "0.7246954", "text": "boolean hasGroupSer();", "title": "" }, { "docid": "12a80fea0f9cd3fc986c794c40c84e0c", "score": "0.7246954", "text": "boolean hasGroupSer();", "title": "" }, { "docid": "facfa9be7370669014434dbc5c90f0da", "score": "0.72450453", "text": "boolean hasGroupRequest(Name groupName);", "title": "" }, { "docid": "7633a73c05f7e6c39050112f508c0a25", "score": "0.7064908", "text": "boolean isInGroup(String group);", "title": "" }, { "docid": "96504ee263bb5090b2bc54f4ad2fdad9", "score": "0.70613605", "text": "public boolean isGroupStored(String groupName) {\r\n\t\ttry {\r\n\r\n\t\t\treturn this.getGroupFile(groupName).exists();\r\n\t\t} catch (Exception e) {\r\n\r\n\t\t\treturn false;\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "850e5243f1475e32f91e6b88cdbf2714", "score": "0.7027964", "text": "public boolean HasGroup()\r\n\t{\r\n\t\treturn (GetHostGroup().IsValid() && m_Hosts.size() >=1);\r\n\t}", "title": "" }, { "docid": "175e094fa41b0936a3295731af7446cb", "score": "0.7009135", "text": "boolean hasGroupGubun();", "title": "" }, { "docid": "175e094fa41b0936a3295731af7446cb", "score": "0.7009135", "text": "boolean hasGroupGubun();", "title": "" }, { "docid": "175e094fa41b0936a3295731af7446cb", "score": "0.7009135", "text": "boolean hasGroupGubun();", "title": "" }, { "docid": "175e094fa41b0936a3295731af7446cb", "score": "0.7009135", "text": "boolean hasGroupGubun();", "title": "" }, { "docid": "175e094fa41b0936a3295731af7446cb", "score": "0.7009135", "text": "boolean hasGroupGubun();", "title": "" }, { "docid": "175e094fa41b0936a3295731af7446cb", "score": "0.7009135", "text": "boolean hasGroupGubun();", "title": "" }, { "docid": "175e094fa41b0936a3295731af7446cb", "score": "0.7009135", "text": "boolean hasGroupGubun();", "title": "" }, { "docid": "175e094fa41b0936a3295731af7446cb", "score": "0.7009135", "text": "boolean hasGroupGubun();", "title": "" }, { "docid": "e28f6b0b1f4487f98621ae6b561d1e8e", "score": "0.69887996", "text": "public boolean isGroupMember( String groupId );", "title": "" }, { "docid": "bbe8e486150342501deed283fadc0e81", "score": "0.6965897", "text": "boolean isSetGroup();", "title": "" }, { "docid": "9719c9dc00bab34a6bf718f46191013c", "score": "0.69067824", "text": "boolean hasGrouping();", "title": "" }, { "docid": "531234b221efbcd4553fb1379996b53d", "score": "0.68335426", "text": "public boolean exists(String name);", "title": "" }, { "docid": "7da2c891de2360d62c860e9173d3a423", "score": "0.68291664", "text": "@Override\n\tpublic boolean groupHas(String arg0, String arg1, String arg2) {\n\t\treturn false;\n\t}", "title": "" }, { "docid": "b6b3b916f4bf2c3c8048de218971d07f", "score": "0.67895424", "text": "boolean existsByName(String name);", "title": "" }, { "docid": "c64170e4c996832df593e4aae4b3cafd", "score": "0.6770399", "text": "public boolean hasSubgroups(String group_name);", "title": "" }, { "docid": "bbcd3d67c2cfe8664fc009ea491a2f44", "score": "0.6752232", "text": "public boolean isHasGroups() {\n for (FxData data : this.data) {\n if (data.isGroup()) {\n return true;\n }\n }\n return false;\n }", "title": "" }, { "docid": "dd6a20b8c255d16e029ae4860a462fc4", "score": "0.67098224", "text": "boolean hasListingGroup();", "title": "" }, { "docid": "a534b10f64d33b703186e377922000c6", "score": "0.66918397", "text": "boolean hasIGroupGubun();", "title": "" }, { "docid": "a19e6473b71df6ac8e803f4a04eb99e8", "score": "0.6627934", "text": "boolean objectExists(String group, String id) throws IOException;", "title": "" }, { "docid": "7a793e4a3bdfe10eab301d9e63de3f11", "score": "0.6603495", "text": "public boolean hasGroupMember() {\n return groupMember_ != null;\n }", "title": "" }, { "docid": "002a70bd0760528aa48d890a432084b3", "score": "0.6580911", "text": "boolean hasGroupGubunA();", "title": "" }, { "docid": "1fb7848f89a23b37cb195a2c731e8948", "score": "0.65554506", "text": "@Override\n\tpublic boolean equals(Object obj) {\n\t\tif (obj == null) {\n\t\t\treturn false;\n\t\t}\n\t\t\n\t\tGroup objGroup = (Group) obj;\n\t\tif (name.equals(objGroup.name)) {\n\t\t\treturn true;\n\t\t} else {\n\t\t\treturn false;\n\t\t}\n\t}", "title": "" }, { "docid": "2fd8c41411b854ad5eb43fbb7bfda7fc", "score": "0.6491666", "text": "boolean isInGroup(long group);", "title": "" }, { "docid": "ebafd6be48fc97b73fbab78d2f26ad1f", "score": "0.63869494", "text": "boolean hasGameMapgroup();", "title": "" }, { "docid": "ebafd6be48fc97b73fbab78d2f26ad1f", "score": "0.63869494", "text": "boolean hasGameMapgroup();", "title": "" }, { "docid": "2afa1f6eba6a9419f9d2779114e6d21c", "score": "0.63661313", "text": "public boolean hasGroupMember() {\n return groupMemberBuilder_ != null || groupMember_ != null;\n }", "title": "" }, { "docid": "8f3b57d91933e5190d74677ea4b27dc4", "score": "0.63091195", "text": "boolean isRequiresGroupOwnership();", "title": "" }, { "docid": "6704f5eb6386b9e41a6841bce527846d", "score": "0.6294698", "text": "public boolean checkgroupname(String trim) {\n\t\tif(!groups.isEmpty()) {\n\t\t\tfor(int i = 0; i < groups.size();i++) {\n\t\t\t\tif(groups.get(i).getName().matches(trim) == true)\n\t\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}", "title": "" }, { "docid": "7e80f9ebfec7d2e2c2025d51f0c10020", "score": "0.62813044", "text": "@Override\r\n\tpublic boolean contains(Object arg0) {\n\t\treturn groups.contains(arg0);\r\n\t}", "title": "" }, { "docid": "74e6c645d2dd845c6f2f4ac7237f61b9", "score": "0.625819", "text": "boolean isNilGroup();", "title": "" }, { "docid": "dfb67daaff92ee91e6d4ea36be10b6d1", "score": "0.6245978", "text": "public boolean nameExists(String name) { \n\t\tint index = getListIndex(name); \n\t\treturn index != -1; \n\t}", "title": "" }, { "docid": "5ac54260718a9d6f7c2de25d81151df7", "score": "0.6235134", "text": "public boolean hasGroupid() {\n return ((bitField0_ & 0x00000001) == 0x00000001);\n }", "title": "" }, { "docid": "00fedea6ddcf14b43d2e3f78dd2b3ad8", "score": "0.6224804", "text": "public synchronized boolean isMember(String strGroupName)\n\t{\n\t\tCMGroup tGroup = null;\n\t\tboolean bFound = false;\n\t\tIterator<CMGroup> iter = m_groupList.iterator();\n\t\t\n\t\twhile(iter.hasNext() && !bFound)\n\t\t{\n\t\t\ttGroup = iter.next();\n\t\t\tString tname = tGroup.getGroupName();\n\t\t\tif(strGroupName.equals(tname))\n\t\t\t{\n\t\t\t\tbFound = true;\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn bFound;\n\t}", "title": "" }, { "docid": "fe1617e477199df851a13f306df6f21e", "score": "0.6224699", "text": "boolean hasGroupGubunB();", "title": "" }, { "docid": "861bfadee3d68014350ec9f44080cab5", "score": "0.6223602", "text": "public boolean hasGroupid() {\n return ((bitField0_ & 0x00000001) == 0x00000001);\n }", "title": "" }, { "docid": "bd36902c8f31d6d5f0e2cd7a75af0573", "score": "0.618157", "text": "@Override\n public boolean isValidRank(String name) {\n return Arrays.asList(this.permission.getGroups()).contains(name);\n }", "title": "" }, { "docid": "a5f660614a9ee04ec01ed0c28bf4f37b", "score": "0.61812836", "text": "public boolean hasGroupid() {\n return ((bitField0_ & 0x00000002) == 0x00000002);\n }", "title": "" }, { "docid": "c09567641e7b3fea3e329539323e11dd", "score": "0.61807686", "text": "boolean hasName();", "title": "" }, { "docid": "c09567641e7b3fea3e329539323e11dd", "score": "0.61807686", "text": "boolean hasName();", "title": "" }, { "docid": "c09567641e7b3fea3e329539323e11dd", "score": "0.6180555", "text": "boolean hasName();", "title": "" }, { "docid": "c09567641e7b3fea3e329539323e11dd", "score": "0.6180555", "text": "boolean hasName();", "title": "" }, { "docid": "c09567641e7b3fea3e329539323e11dd", "score": "0.6180555", "text": "boolean hasName();", "title": "" }, { "docid": "c09567641e7b3fea3e329539323e11dd", "score": "0.6180555", "text": "boolean hasName();", "title": "" }, { "docid": "c09567641e7b3fea3e329539323e11dd", "score": "0.6180555", "text": "boolean hasName();", "title": "" }, { "docid": "c09567641e7b3fea3e329539323e11dd", "score": "0.6180555", "text": "boolean hasName();", "title": "" }, { "docid": "c09567641e7b3fea3e329539323e11dd", "score": "0.6180555", "text": "boolean hasName();", "title": "" }, { "docid": "c09567641e7b3fea3e329539323e11dd", "score": "0.6180555", "text": "boolean hasName();", "title": "" }, { "docid": "c09567641e7b3fea3e329539323e11dd", "score": "0.6180555", "text": "boolean hasName();", "title": "" }, { "docid": "c09567641e7b3fea3e329539323e11dd", "score": "0.6180555", "text": "boolean hasName();", "title": "" }, { "docid": "c09567641e7b3fea3e329539323e11dd", "score": "0.6180555", "text": "boolean hasName();", "title": "" }, { "docid": "c09567641e7b3fea3e329539323e11dd", "score": "0.6180555", "text": "boolean hasName();", "title": "" }, { "docid": "c09567641e7b3fea3e329539323e11dd", "score": "0.6180555", "text": "boolean hasName();", "title": "" }, { "docid": "c09567641e7b3fea3e329539323e11dd", "score": "0.6180555", "text": "boolean hasName();", "title": "" }, { "docid": "c09567641e7b3fea3e329539323e11dd", "score": "0.6180555", "text": "boolean hasName();", "title": "" }, { "docid": "c09567641e7b3fea3e329539323e11dd", "score": "0.6180555", "text": "boolean hasName();", "title": "" }, { "docid": "c09567641e7b3fea3e329539323e11dd", "score": "0.6180555", "text": "boolean hasName();", "title": "" }, { "docid": "c09567641e7b3fea3e329539323e11dd", "score": "0.6180555", "text": "boolean hasName();", "title": "" }, { "docid": "c09567641e7b3fea3e329539323e11dd", "score": "0.6180555", "text": "boolean hasName();", "title": "" }, { "docid": "c09567641e7b3fea3e329539323e11dd", "score": "0.6180555", "text": "boolean hasName();", "title": "" }, { "docid": "c09567641e7b3fea3e329539323e11dd", "score": "0.6180555", "text": "boolean hasName();", "title": "" }, { "docid": "c09567641e7b3fea3e329539323e11dd", "score": "0.6180555", "text": "boolean hasName();", "title": "" }, { "docid": "c09567641e7b3fea3e329539323e11dd", "score": "0.6180555", "text": "boolean hasName();", "title": "" }, { "docid": "c09567641e7b3fea3e329539323e11dd", "score": "0.6180555", "text": "boolean hasName();", "title": "" }, { "docid": "c09567641e7b3fea3e329539323e11dd", "score": "0.6180555", "text": "boolean hasName();", "title": "" }, { "docid": "c09567641e7b3fea3e329539323e11dd", "score": "0.6180555", "text": "boolean hasName();", "title": "" }, { "docid": "c09567641e7b3fea3e329539323e11dd", "score": "0.6180555", "text": "boolean hasName();", "title": "" }, { "docid": "c09567641e7b3fea3e329539323e11dd", "score": "0.6180555", "text": "boolean hasName();", "title": "" }, { "docid": "c09567641e7b3fea3e329539323e11dd", "score": "0.6180555", "text": "boolean hasName();", "title": "" }, { "docid": "c09567641e7b3fea3e329539323e11dd", "score": "0.6180555", "text": "boolean hasName();", "title": "" }, { "docid": "c09567641e7b3fea3e329539323e11dd", "score": "0.6180555", "text": "boolean hasName();", "title": "" }, { "docid": "c09567641e7b3fea3e329539323e11dd", "score": "0.6180555", "text": "boolean hasName();", "title": "" }, { "docid": "c09567641e7b3fea3e329539323e11dd", "score": "0.6180555", "text": "boolean hasName();", "title": "" }, { "docid": "c09567641e7b3fea3e329539323e11dd", "score": "0.6180555", "text": "boolean hasName();", "title": "" }, { "docid": "c09567641e7b3fea3e329539323e11dd", "score": "0.6180555", "text": "boolean hasName();", "title": "" }, { "docid": "c09567641e7b3fea3e329539323e11dd", "score": "0.6180555", "text": "boolean hasName();", "title": "" }, { "docid": "13032a4bbb2316f4e51abcdb976c0459", "score": "0.61766756", "text": "public boolean addProcessGroup(String name) throws XmlRpcException {\n return (boolean)client.execute(\"supervisor.addProcessGroup\", new String[]{name});\n }", "title": "" }, { "docid": "ed32dce4a2606173ac01e7c44e5decbb", "score": "0.6140208", "text": "public static Boolean hasName(String name) {\n return name_index.containsKey(name);\n }", "title": "" }, { "docid": "2dfa354fcdf66d982eaa6f6b2fec9c83", "score": "0.6139087", "text": "public boolean groupExist(String section, String instructorEmail){\n if((Group)userList.get(section) != null && (Group)userList.get(instructorEmail)!= null){\n return true;\n }\n return false;\n }", "title": "" }, { "docid": "169698c30c0dc081e306a2afce7997ba", "score": "0.610347", "text": "public boolean hasGroupid() {\n return ((bitField0_ & 0x00000002) == 0x00000002);\n }", "title": "" }, { "docid": "d064c4a644d755603bf8d41ac5d1cab0", "score": "0.60988617", "text": "private boolean doesTheNameExist(String name) {\n if ( factModel.getName() != null && factModel.getName().equals( name ) ) {\n return false;\n }\n return !modelNameHelper.isUniqueName( name );\n }", "title": "" }, { "docid": "af3b4359d2e728746ae769273616649e", "score": "0.6094787", "text": "public boolean isGroupProfile()\n {\n if ( GnrcFormat.NotNull(GroupName) && GnrcFormat.IsNull(TravelerName) )\n return(true);\n else\n return(false);\n }", "title": "" }, { "docid": "272759d5ebd0f53ae9f9c9b96f949711", "score": "0.60750735", "text": "Group findByGroupName(String name);", "title": "" }, { "docid": "48cbdc30112730e6423a35832038c1a9", "score": "0.606895", "text": "public boolean isSetGroupId() {\n return this.groupId != null;\n }", "title": "" }, { "docid": "58b313d9e0f92f83e8197be20f26bc38", "score": "0.6021721", "text": "boolean hasGroupHangmog();", "title": "" }, { "docid": "58b313d9e0f92f83e8197be20f26bc38", "score": "0.6021721", "text": "boolean hasGroupHangmog();", "title": "" }, { "docid": "58b313d9e0f92f83e8197be20f26bc38", "score": "0.6021721", "text": "boolean hasGroupHangmog();", "title": "" }, { "docid": "58b313d9e0f92f83e8197be20f26bc38", "score": "0.6021224", "text": "boolean hasGroupHangmog();", "title": "" }, { "docid": "aaa8e7381c5229b176edeafe1ba8b561", "score": "0.59938717", "text": "boolean hasGumsaName();", "title": "" } ]
2e34273c3df67e19a640b0e5968d92c4
Sets the value of the sendInviteSucceeded property.
[ { "docid": "853b49947e17910e82c8a81675023db3", "score": "0.87549585", "text": "@Generated(value = \"com.sun.tools.internal.xjc.Driver\", date = \"2014-05-27T02:12:07+02:00\", comments = \"JAXB RI v2.2.4-2\")\n public void setSendInviteSucceeded(boolean value) {\n this.sendInviteSucceeded = value;\n }", "title": "" } ]
[ { "docid": "bd7297d2ecfc49128dce9b1c48993bda", "score": "0.7903078", "text": "@Generated(value = \"com.sun.tools.internal.xjc.Driver\", date = \"2014-05-27T02:12:07+02:00\", comments = \"JAXB RI v2.2.4-2\")\n public boolean isSendInviteSucceeded() {\n return sendInviteSucceeded;\n }", "title": "" }, { "docid": "eb2323df1c312632b86e88cd115d6983", "score": "0.60470116", "text": "public boolean sendInviteOkAck() {\n return sendInviteOkAck(null, null, null);\n }", "title": "" }, { "docid": "227ea731bdf855094eaec0cd55fa3e26", "score": "0.56760323", "text": "private void setActivationEmailSent(boolean activationEmailSent) {\n\t\tthis.activationEmailSent = activationEmailSent;\n\t}", "title": "" }, { "docid": "3a5738085c02dde8aec0631a9c8c8c8c", "score": "0.56071526", "text": "public void saySucceed() {\n for (ISignupListener listener : listeners)\n \tlistener.signupSucceed();\n }", "title": "" }, { "docid": "69b62783e084f0a9ab2882c7efcd35bb", "score": "0.54993016", "text": "public Builder setIsSucceed(boolean value) {\n bitField0_ |= 0x00000001;\n isSucceed_ = value;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "69b62783e084f0a9ab2882c7efcd35bb", "score": "0.54993016", "text": "public Builder setIsSucceed(boolean value) {\n bitField0_ |= 0x00000001;\n isSucceed_ = value;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "69b62783e084f0a9ab2882c7efcd35bb", "score": "0.5498948", "text": "public Builder setIsSucceed(boolean value) {\n bitField0_ |= 0x00000001;\n isSucceed_ = value;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "69b62783e084f0a9ab2882c7efcd35bb", "score": "0.5498948", "text": "public Builder setIsSucceed(boolean value) {\n bitField0_ |= 0x00000001;\n isSucceed_ = value;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "69b62783e084f0a9ab2882c7efcd35bb", "score": "0.5498948", "text": "public Builder setIsSucceed(boolean value) {\n bitField0_ |= 0x00000001;\n isSucceed_ = value;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "69b62783e084f0a9ab2882c7efcd35bb", "score": "0.5498948", "text": "public Builder setIsSucceed(boolean value) {\n bitField0_ |= 0x00000001;\n isSucceed_ = value;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "69b62783e084f0a9ab2882c7efcd35bb", "score": "0.549886", "text": "public Builder setIsSucceed(boolean value) {\n bitField0_ |= 0x00000001;\n isSucceed_ = value;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "69b62783e084f0a9ab2882c7efcd35bb", "score": "0.549886", "text": "public Builder setIsSucceed(boolean value) {\n bitField0_ |= 0x00000001;\n isSucceed_ = value;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "69b62783e084f0a9ab2882c7efcd35bb", "score": "0.549886", "text": "public Builder setIsSucceed(boolean value) {\n bitField0_ |= 0x00000001;\n isSucceed_ = value;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "69b62783e084f0a9ab2882c7efcd35bb", "score": "0.5498694", "text": "public Builder setIsSucceed(boolean value) {\n bitField0_ |= 0x00000001;\n isSucceed_ = value;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "69b62783e084f0a9ab2882c7efcd35bb", "score": "0.5498694", "text": "public Builder setIsSucceed(boolean value) {\n bitField0_ |= 0x00000001;\n isSucceed_ = value;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "69b62783e084f0a9ab2882c7efcd35bb", "score": "0.5498694", "text": "public Builder setIsSucceed(boolean value) {\n bitField0_ |= 0x00000001;\n isSucceed_ = value;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "69b62783e084f0a9ab2882c7efcd35bb", "score": "0.5497322", "text": "public Builder setIsSucceed(boolean value) {\n bitField0_ |= 0x00000001;\n isSucceed_ = value;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "69b62783e084f0a9ab2882c7efcd35bb", "score": "0.5497322", "text": "public Builder setIsSucceed(boolean value) {\n bitField0_ |= 0x00000001;\n isSucceed_ = value;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "69b62783e084f0a9ab2882c7efcd35bb", "score": "0.5497322", "text": "public Builder setIsSucceed(boolean value) {\n bitField0_ |= 0x00000001;\n isSucceed_ = value;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "69b62783e084f0a9ab2882c7efcd35bb", "score": "0.5497322", "text": "public Builder setIsSucceed(boolean value) {\n bitField0_ |= 0x00000001;\n isSucceed_ = value;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "c03fe114916f638a3170dd3d5fdb4ff5", "score": "0.544359", "text": "public void setSuccess(boolean value) {\n this.success = value;\n }", "title": "" }, { "docid": "c03fe114916f638a3170dd3d5fdb4ff5", "score": "0.544359", "text": "public void setSuccess(boolean value) {\n this.success = value;\n }", "title": "" }, { "docid": "f111b9f46a6f6f8aca63a6e73f84ca83", "score": "0.5307295", "text": "public void setIsSuccess(boolean value) {\n\t\tthis.isSuccess = value;\n\t}", "title": "" }, { "docid": "2d1acb6a48cd1cb5740dc45d8f26c8ee", "score": "0.52907413", "text": "@Generated(value = \"com.sun.tools.internal.xjc.Driver\", date = \"2014-05-27T02:12:07+02:00\", comments = \"JAXB RI v2.2.4-2\")\n public void setJoinEventSucceeded(int value) {\n this.joinEventSucceeded = value;\n }", "title": "" }, { "docid": "33e94e05f19f831fd36f7cecc703ed5a", "score": "0.52799445", "text": "@Generated(value = \"com.sun.tools.internal.xjc.Driver\", date = \"2014-05-27T02:12:07+02:00\", comments = \"JAXB RI v2.2.4-2\")\n public void setLoginSucceeded(int value) {\n this.loginSucceeded = value;\n }", "title": "" }, { "docid": "320cbeca7a7d39fc14a8e41eb2665b7b", "score": "0.5267765", "text": "public void setSendByFaxTrue() {\n\t\tif(!sendByFax){\n\t\t\tthis.sendByFax = true;\n\t\t\tMarkDirty();\n\t\t}\n\t}", "title": "" }, { "docid": "4708e1d299aca17d5e187c8af3e4b473", "score": "0.52431935", "text": "private void setSuccess(boolean value) {\n \n success_ = value;\n }", "title": "" }, { "docid": "2aadb9e9bbbff5323d166da825ff873d", "score": "0.52001894", "text": "public void setSendByEmailTrue() {\n\t\tif(!sendByEmail){\n\t\t\tthis.sendByEmail = true;\n\t\t\tMarkDirty();\n\t\t}\n\t}", "title": "" }, { "docid": "8aabc1367309bb07889db9a2b21d1a55", "score": "0.519103", "text": "public void setSuccess(boolean success) {\r\n this.success = success;\r\n }", "title": "" }, { "docid": "58c354c5f1a7f9e08c02b0a0f9ad0f06", "score": "0.512043", "text": "public void xsetSuccess(org.apache.xmlbeans.XmlBoolean success)\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.apache.xmlbeans.XmlBoolean target = null;\r\n target = (org.apache.xmlbeans.XmlBoolean)get_store().find_element_user(SUCCESS$0, 0);\r\n if (target == null)\r\n {\r\n target = (org.apache.xmlbeans.XmlBoolean)get_store().add_element_user(SUCCESS$0);\r\n }\r\n target.set(success);\r\n }\r\n }", "title": "" }, { "docid": "13b0dffad734f857bbde2a4990f40d51", "score": "0.51067066", "text": "public void setSuccess(boolean success) {\n this.success = success;\n }", "title": "" }, { "docid": "13b0dffad734f857bbde2a4990f40d51", "score": "0.51067066", "text": "public void setSuccess(boolean success) {\n this.success = success;\n }", "title": "" }, { "docid": "13b0dffad734f857bbde2a4990f40d51", "score": "0.51067066", "text": "public void setSuccess(boolean success) {\n this.success = success;\n }", "title": "" }, { "docid": "56e34b87febc5a02182979ceb791a784", "score": "0.50773954", "text": "public void setSuccess(boolean isSuccess) {\n this.isSuccess = isSuccess;\n }", "title": "" }, { "docid": "557b1093099e646124f7823babc19096", "score": "0.5052246", "text": "public void setSuccess(final Boolean success) {\r\n\t\tthis.success = success;\r\n\t}", "title": "" }, { "docid": "f19d1339f692fbab2eded9da330e8f7a", "score": "0.5047282", "text": "public void setSuccess(java.lang.Boolean success) {\n this.success = success;\n }", "title": "" }, { "docid": "d93110c05655ba9906bc3e483b0515be", "score": "0.5046406", "text": "public void setReportSuccess(Boolean reportSuccess) {\n this.reportSuccess = reportSuccess;\n }", "title": "" }, { "docid": "394aba5c51483272acc11044c027ea4c", "score": "0.5012343", "text": "public void setSuccess(final Boolean success) {\n\t\tthis.success = success;\n\t}", "title": "" }, { "docid": "fd31c45bb7cee83ce9bffaf06dfb297d", "score": "0.50112236", "text": "public void setSuccess(boolean isSuccess) {\n\t\tthis.isSuccess = isSuccess;\n\t}", "title": "" }, { "docid": "4f9785206b26dfc76610d4cc174e88eb", "score": "0.5000206", "text": "public Builder setSuccess(boolean value) {\n \n success_ = value;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "4f9785206b26dfc76610d4cc174e88eb", "score": "0.5000206", "text": "public Builder setSuccess(boolean value) {\n \n success_ = value;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "6e17ecdf0377b8fb17993099d0b85a26", "score": "0.4979002", "text": "public Builder setSuccess(boolean value) {\n copyOnWrite();\n instance.setSuccess(value);\n return this;\n }", "title": "" }, { "docid": "8f20e744e57f18ac02810361157961aa", "score": "0.4976307", "text": "public void setSendVote(boolean sendVote) {\n\t\tthis.sendVote = sendVote;\n\t}", "title": "" }, { "docid": "88a36cec133d0798388c26f9d977570c", "score": "0.49655026", "text": "public void setSuccessReportOption(boolean successReportOption) {\n mSuccessReportOption = successReportOption;\n }", "title": "" }, { "docid": "6a91cff0c084d380bd3f19564c956e1c", "score": "0.49539852", "text": "protected void setSuccess(boolean success) {\n\t\tthis.success = success;\n\t}", "title": "" }, { "docid": "8e89de90c63d062bb8854104bef702f7", "score": "0.49478358", "text": "public void setIsSuccess(Boolean isSuccess) {\n\t\tthis.isSuccess = isSuccess;\n\t}", "title": "" }, { "docid": "14e75a52586d7bf01ad34643dc01635b", "score": "0.49130675", "text": "public static void sendStatus( boolean success ){\n Bundle bundle = new Bundle();\n bundle.putBoolean( EXTRA_STATUS, success );\n wakeUpService(ACTION_FEEDBACK, bundle );\n }", "title": "" }, { "docid": "2669561e1535acc0fa1be2ca11e42964", "score": "0.49057236", "text": "public void setSuccess(Boolean success1) {\n this.success = success1;\n }", "title": "" }, { "docid": "6ceb41fea32cd63358190fae7aaf3c09", "score": "0.48394948", "text": "public boolean getIsSucceed() {\n return isSucceed_;\n }", "title": "" }, { "docid": "6ceb41fea32cd63358190fae7aaf3c09", "score": "0.48394948", "text": "public boolean getIsSucceed() {\n return isSucceed_;\n }", "title": "" }, { "docid": "6ceb41fea32cd63358190fae7aaf3c09", "score": "0.48386562", "text": "public boolean getIsSucceed() {\n return isSucceed_;\n }", "title": "" }, { "docid": "6ceb41fea32cd63358190fae7aaf3c09", "score": "0.48386562", "text": "public boolean getIsSucceed() {\n return isSucceed_;\n }", "title": "" }, { "docid": "6ceb41fea32cd63358190fae7aaf3c09", "score": "0.48386562", "text": "public boolean getIsSucceed() {\n return isSucceed_;\n }", "title": "" }, { "docid": "6ceb41fea32cd63358190fae7aaf3c09", "score": "0.48386562", "text": "public boolean getIsSucceed() {\n return isSucceed_;\n }", "title": "" }, { "docid": "6ceb41fea32cd63358190fae7aaf3c09", "score": "0.48386562", "text": "public boolean getIsSucceed() {\n return isSucceed_;\n }", "title": "" }, { "docid": "6ceb41fea32cd63358190fae7aaf3c09", "score": "0.48386562", "text": "public boolean getIsSucceed() {\n return isSucceed_;\n }", "title": "" }, { "docid": "6ceb41fea32cd63358190fae7aaf3c09", "score": "0.48386562", "text": "public boolean getIsSucceed() {\n return isSucceed_;\n }", "title": "" }, { "docid": "6ceb41fea32cd63358190fae7aaf3c09", "score": "0.48386562", "text": "public boolean getIsSucceed() {\n return isSucceed_;\n }", "title": "" }, { "docid": "6ceb41fea32cd63358190fae7aaf3c09", "score": "0.48386562", "text": "public boolean getIsSucceed() {\n return isSucceed_;\n }", "title": "" }, { "docid": "6ceb41fea32cd63358190fae7aaf3c09", "score": "0.48386562", "text": "public boolean getIsSucceed() {\n return isSucceed_;\n }", "title": "" }, { "docid": "6ceb41fea32cd63358190fae7aaf3c09", "score": "0.48386562", "text": "public boolean getIsSucceed() {\n return isSucceed_;\n }", "title": "" }, { "docid": "6ceb41fea32cd63358190fae7aaf3c09", "score": "0.48386562", "text": "public boolean getIsSucceed() {\n return isSucceed_;\n }", "title": "" }, { "docid": "6ceb41fea32cd63358190fae7aaf3c09", "score": "0.48386562", "text": "public boolean getIsSucceed() {\n return isSucceed_;\n }", "title": "" }, { "docid": "6ceb41fea32cd63358190fae7aaf3c09", "score": "0.48386562", "text": "public boolean getIsSucceed() {\n return isSucceed_;\n }", "title": "" }, { "docid": "e74f1885efb1c1873b72ad56db304176", "score": "0.48264012", "text": "public boolean getIsSucceed() {\n return isSucceed_;\n }", "title": "" }, { "docid": "e74f1885efb1c1873b72ad56db304176", "score": "0.48264012", "text": "public boolean getIsSucceed() {\n return isSucceed_;\n }", "title": "" }, { "docid": "e74f1885efb1c1873b72ad56db304176", "score": "0.48264012", "text": "public boolean getIsSucceed() {\n return isSucceed_;\n }", "title": "" }, { "docid": "e74f1885efb1c1873b72ad56db304176", "score": "0.48264012", "text": "public boolean getIsSucceed() {\n return isSucceed_;\n }", "title": "" }, { "docid": "e74f1885efb1c1873b72ad56db304176", "score": "0.48264012", "text": "public boolean getIsSucceed() {\n return isSucceed_;\n }", "title": "" }, { "docid": "e74f1885efb1c1873b72ad56db304176", "score": "0.48264012", "text": "public boolean getIsSucceed() {\n return isSucceed_;\n }", "title": "" }, { "docid": "e74f1885efb1c1873b72ad56db304176", "score": "0.48264012", "text": "public boolean getIsSucceed() {\n return isSucceed_;\n }", "title": "" }, { "docid": "e74f1885efb1c1873b72ad56db304176", "score": "0.48264012", "text": "public boolean getIsSucceed() {\n return isSucceed_;\n }", "title": "" }, { "docid": "e74f1885efb1c1873b72ad56db304176", "score": "0.48264012", "text": "public boolean getIsSucceed() {\n return isSucceed_;\n }", "title": "" }, { "docid": "e74f1885efb1c1873b72ad56db304176", "score": "0.48264012", "text": "public boolean getIsSucceed() {\n return isSucceed_;\n }", "title": "" }, { "docid": "e74f1885efb1c1873b72ad56db304176", "score": "0.48264012", "text": "public boolean getIsSucceed() {\n return isSucceed_;\n }", "title": "" }, { "docid": "e74f1885efb1c1873b72ad56db304176", "score": "0.482501", "text": "public boolean getIsSucceed() {\n return isSucceed_;\n }", "title": "" }, { "docid": "e74f1885efb1c1873b72ad56db304176", "score": "0.482501", "text": "public boolean getIsSucceed() {\n return isSucceed_;\n }", "title": "" }, { "docid": "e74f1885efb1c1873b72ad56db304176", "score": "0.482501", "text": "public boolean getIsSucceed() {\n return isSucceed_;\n }", "title": "" }, { "docid": "e74f1885efb1c1873b72ad56db304176", "score": "0.482501", "text": "public boolean getIsSucceed() {\n return isSucceed_;\n }", "title": "" }, { "docid": "e74f1885efb1c1873b72ad56db304176", "score": "0.482501", "text": "public boolean getIsSucceed() {\n return isSucceed_;\n }", "title": "" }, { "docid": "bc1d8b291823e355ae5e5ed751917a2d", "score": "0.4816584", "text": "public boolean isSucceeded() {\n\t\treturn isSucceeded;\n\t}", "title": "" }, { "docid": "d31f6f1871e6b9afcefebde0878318f4", "score": "0.4808363", "text": "public boolean isSuccessReportRequested() {\n return mSuccessReportOption;\n }", "title": "" }, { "docid": "cd0d0addf5ea63f41defe713134f474f", "score": "0.48035806", "text": "@Override\n\t\t\t\t\tpublic void OnCallSucceed() {\n\t\t\t\t\t\tisCallSucceed = true;\n\t\t\t\t\t\t\n\t\t\t\t\t}", "title": "" }, { "docid": "2c485b5d41391d3767df1d314908f75d", "score": "0.47876972", "text": "private void notifySendEmailSuccess() {\n if (view.isReady()) {\n view.onSendEmailSuccess();\n }\n }", "title": "" }, { "docid": "ad24aa71bbc72a25f55584c4d422c167", "score": "0.4781651", "text": "public boolean hasIsSucceed() {\n return ((bitField0_ & 0x00000001) == 0x00000001);\n }", "title": "" }, { "docid": "ad24aa71bbc72a25f55584c4d422c167", "score": "0.4781651", "text": "public boolean hasIsSucceed() {\n return ((bitField0_ & 0x00000001) == 0x00000001);\n }", "title": "" }, { "docid": "ad24aa71bbc72a25f55584c4d422c167", "score": "0.47814146", "text": "public boolean hasIsSucceed() {\n return ((bitField0_ & 0x00000001) == 0x00000001);\n }", "title": "" }, { "docid": "ad24aa71bbc72a25f55584c4d422c167", "score": "0.47814146", "text": "public boolean hasIsSucceed() {\n return ((bitField0_ & 0x00000001) == 0x00000001);\n }", "title": "" }, { "docid": "ad24aa71bbc72a25f55584c4d422c167", "score": "0.47814146", "text": "public boolean hasIsSucceed() {\n return ((bitField0_ & 0x00000001) == 0x00000001);\n }", "title": "" }, { "docid": "ad24aa71bbc72a25f55584c4d422c167", "score": "0.47814146", "text": "public boolean hasIsSucceed() {\n return ((bitField0_ & 0x00000001) == 0x00000001);\n }", "title": "" }, { "docid": "ad24aa71bbc72a25f55584c4d422c167", "score": "0.47814146", "text": "public boolean hasIsSucceed() {\n return ((bitField0_ & 0x00000001) == 0x00000001);\n }", "title": "" }, { "docid": "ad24aa71bbc72a25f55584c4d422c167", "score": "0.47811309", "text": "public boolean hasIsSucceed() {\n return ((bitField0_ & 0x00000001) == 0x00000001);\n }", "title": "" }, { "docid": "ad24aa71bbc72a25f55584c4d422c167", "score": "0.47811309", "text": "public boolean hasIsSucceed() {\n return ((bitField0_ & 0x00000001) == 0x00000001);\n }", "title": "" }, { "docid": "ad24aa71bbc72a25f55584c4d422c167", "score": "0.47811309", "text": "public boolean hasIsSucceed() {\n return ((bitField0_ & 0x00000001) == 0x00000001);\n }", "title": "" }, { "docid": "ad24aa71bbc72a25f55584c4d422c167", "score": "0.47811309", "text": "public boolean hasIsSucceed() {\n return ((bitField0_ & 0x00000001) == 0x00000001);\n }", "title": "" }, { "docid": "ad24aa71bbc72a25f55584c4d422c167", "score": "0.47811309", "text": "public boolean hasIsSucceed() {\n return ((bitField0_ & 0x00000001) == 0x00000001);\n }", "title": "" }, { "docid": "ad24aa71bbc72a25f55584c4d422c167", "score": "0.47811309", "text": "public boolean hasIsSucceed() {\n return ((bitField0_ & 0x00000001) == 0x00000001);\n }", "title": "" }, { "docid": "ad24aa71bbc72a25f55584c4d422c167", "score": "0.47811309", "text": "public boolean hasIsSucceed() {\n return ((bitField0_ & 0x00000001) == 0x00000001);\n }", "title": "" }, { "docid": "ad24aa71bbc72a25f55584c4d422c167", "score": "0.47811309", "text": "public boolean hasIsSucceed() {\n return ((bitField0_ & 0x00000001) == 0x00000001);\n }", "title": "" }, { "docid": "ad24aa71bbc72a25f55584c4d422c167", "score": "0.47811309", "text": "public boolean hasIsSucceed() {\n return ((bitField0_ & 0x00000001) == 0x00000001);\n }", "title": "" } ]
8baefcfbba7b997973d6442ef5368756
$ANTLR end "extendedType" $ANTLR start "classSpecifier" /Users/bastien/Dev/ceylon/ceylonspec/Ceylon.g:977:1: classSpecifier returns [ClassSpecifier classSpecifier] : ( COMPUTE | SPECIFY ) (ci= classInstantiation )? ;
[ { "docid": "58477a4ff1afbe300463ec157f6e5678", "score": "0.6623955", "text": "public ClassSpecifier classSpecifier() throws RecognitionException {\n ClassSpecifier classSpecifier = null;\n\n\n Token COMPUTE145=null;\n Token SPECIFY146=null;\n PsiCompatibleCeylonParser.classInstantiation_return ci =null;\n\n\n try {\n // /Users/bastien/Dev/ceylon/ceylon-spec/Ceylon.g:978:5: ( ( COMPUTE | SPECIFY ) (ci= classInstantiation )? )\n // /Users/bastien/Dev/ceylon/ceylon-spec/Ceylon.g:978:7: ( COMPUTE | SPECIFY ) (ci= classInstantiation )?\n {\n // /Users/bastien/Dev/ceylon/ceylon-spec/Ceylon.g:978:7: ( COMPUTE | SPECIFY )\n int alt89=2;\n int LA89_0 = input.LA(1);\n\n if ( (LA89_0==COMPUTE) ) {\n alt89=1;\n }\n else if ( (LA89_0==SPECIFY) ) {\n alt89=2;\n }\n else {\n if (state.backtracking>0) {state.failed=true; return classSpecifier;}\n NoViableAltException nvae =\n new NoViableAltException(\"\", 89, 0, input);\n\n throw nvae;\n\n }\n switch (alt89) {\n case 1 :\n // /Users/bastien/Dev/ceylon/ceylon-spec/Ceylon.g:979:9: COMPUTE\n {\n COMPUTE145=(Token)match(input,COMPUTE,FOLLOW_COMPUTE_in_classSpecifier6444); if (state.failed) return classSpecifier;\n\n if ( state.backtracking==0 ) { classSpecifier = new ClassSpecifier(COMPUTE145); }\n\n }\n break;\n case 2 :\n // /Users/bastien/Dev/ceylon/ceylon-spec/Ceylon.g:982:9: SPECIFY\n {\n SPECIFY146=(Token)match(input,SPECIFY,FOLLOW_SPECIFY_in_classSpecifier6473); if (state.failed) return classSpecifier;\n\n if ( state.backtracking==0 ) { classSpecifier = new ClassSpecifier(SPECIFY146); }\n\n }\n break;\n\n }\n\n\n // /Users/bastien/Dev/ceylon/ceylon-spec/Ceylon.g:985:7: (ci= classInstantiation )?\n int alt90=2;\n int LA90_0 = input.LA(1);\n\n if ( (LA90_0==PACKAGE||LA90_0==SUPER||LA90_0==UIDENTIFIER) ) {\n alt90=1;\n }\n switch (alt90) {\n case 1 :\n // /Users/bastien/Dev/ceylon/ceylon-spec/Ceylon.g:986:9: ci= classInstantiation\n {\n pushFollow(FOLLOW_classInstantiation_in_classSpecifier6512);\n ci=classInstantiation();\n\n state._fsp--;\n if (state.failed) return classSpecifier;\n\n if ( state.backtracking==0 ) { classSpecifier.setType((ci!=null?ci.type:null));\n classSpecifier.setInvocationExpression((ci!=null?ci.invocationExpression:null)); }\n\n }\n break;\n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n\n finally {\n \t// do for sure before leaving\n }\n return classSpecifier;\n }", "title": "" } ]
[ { "docid": "c6a665d6c6faf6a7aec0ba8af9c9817a", "score": "0.6524731", "text": "public ExtendedType extendedType() throws RecognitionException {\n ExtendedType extendedType = null;\n\n\n Token EXTENDS144=null;\n PsiCompatibleCeylonParser.classInstantiation_return ci =null;\n\n\n try {\n // /Users/bastien/Dev/ceylon/ceylon-spec/Ceylon.g:968:5: ( EXTENDS (ci= classInstantiation )? )\n // /Users/bastien/Dev/ceylon/ceylon-spec/Ceylon.g:968:7: EXTENDS (ci= classInstantiation )?\n {\n EXTENDS144=(Token)match(input,EXTENDS,FOLLOW_EXTENDS_in_extendedType6364); if (state.failed) return extendedType;\n\n if ( state.backtracking==0 ) { extendedType = new ExtendedType(EXTENDS144); }\n\n // /Users/bastien/Dev/ceylon/ceylon-spec/Ceylon.g:970:7: (ci= classInstantiation )?\n int alt88=2;\n int LA88_0 = input.LA(1);\n\n if ( (LA88_0==PACKAGE||LA88_0==SUPER||LA88_0==UIDENTIFIER) ) {\n alt88=1;\n }\n switch (alt88) {\n case 1 :\n // /Users/bastien/Dev/ceylon/ceylon-spec/Ceylon.g:971:9: ci= classInstantiation\n {\n pushFollow(FOLLOW_classInstantiation_in_extendedType6394);\n ci=classInstantiation();\n\n state._fsp--;\n if (state.failed) return extendedType;\n\n if ( state.backtracking==0 ) { extendedType.setType((ci!=null?ci.type:null));\n extendedType.setInvocationExpression((ci!=null?ci.invocationExpression:null)); }\n\n }\n break;\n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n\n finally {\n \t// do for sure before leaving\n }\n return extendedType;\n }", "title": "" }, { "docid": "9ac19ab61c1eb2156ff538b182a3cdd7", "score": "0.60922253", "text": "public PsiCompatibleCeylonParser.classInstantiation_return classInstantiation() throws RecognitionException {\n PsiCompatibleCeylonParser.classInstantiation_return retval = new PsiCompatibleCeylonParser.classInstantiation_return();\n retval.start = input.LT(1);\n\n\n PsiCompatibleCeylonParser.packageQualifiedClass_return pq =null;\n\n PsiCompatibleCeylonParser.unqualifiedClass_return uq =null;\n\n PsiCompatibleCeylonParser.superQualifiedClass_return sq =null;\n\n PositionalArgumentList pa =null;\n\n\n ExtendedTypeExpression ete = null; \n try {\n // /Users/bastien/Dev/ceylon/ceylon-spec/Ceylon.g:1087:5: ( (pq= packageQualifiedClass |uq= unqualifiedClass |sq= superQualifiedClass ) (pa= positionalArguments )? )\n // /Users/bastien/Dev/ceylon/ceylon-spec/Ceylon.g:1087:7: (pq= packageQualifiedClass |uq= unqualifiedClass |sq= superQualifiedClass ) (pa= positionalArguments )?\n {\n // /Users/bastien/Dev/ceylon/ceylon-spec/Ceylon.g:1087:7: (pq= packageQualifiedClass |uq= unqualifiedClass |sq= superQualifiedClass )\n int alt97=3;\n switch ( input.LA(1) ) {\n case PACKAGE:\n {\n alt97=1;\n }\n break;\n case UIDENTIFIER:\n {\n alt97=2;\n }\n break;\n case SUPER:\n {\n alt97=3;\n }\n break;\n default:\n if (state.backtracking>0) {state.failed=true; return retval;}\n NoViableAltException nvae =\n new NoViableAltException(\"\", 97, 0, input);\n\n throw nvae;\n\n }\n\n switch (alt97) {\n case 1 :\n // /Users/bastien/Dev/ceylon/ceylon-spec/Ceylon.g:1088:8: pq= packageQualifiedClass\n {\n pushFollow(FOLLOW_packageQualifiedClass_in_classInstantiation7004);\n pq=packageQualifiedClass();\n\n state._fsp--;\n if (state.failed) return retval;\n\n if ( state.backtracking==0 ) { retval.type =(pq!=null?pq.type:null); ete=(pq!=null?pq.expression:null); }\n\n }\n break;\n case 2 :\n // /Users/bastien/Dev/ceylon/ceylon-spec/Ceylon.g:1091:8: uq= unqualifiedClass\n {\n pushFollow(FOLLOW_unqualifiedClass_in_classInstantiation7032);\n uq=unqualifiedClass();\n\n state._fsp--;\n if (state.failed) return retval;\n\n if ( state.backtracking==0 ) { retval.type =(uq!=null?uq.type:null); ete=(uq!=null?uq.expression:null); }\n\n }\n break;\n case 3 :\n // /Users/bastien/Dev/ceylon/ceylon-spec/Ceylon.g:1094:8: sq= superQualifiedClass\n {\n pushFollow(FOLLOW_superQualifiedClass_in_classInstantiation7060);\n sq=superQualifiedClass();\n\n state._fsp--;\n if (state.failed) return retval;\n\n if ( state.backtracking==0 ) { retval.type =(sq!=null?sq.type:null); ete=(sq!=null?sq.expression:null); }\n\n }\n break;\n\n }\n\n\n // /Users/bastien/Dev/ceylon/ceylon-spec/Ceylon.g:1097:7: (pa= positionalArguments )?\n int alt98=2;\n int LA98_0 = input.LA(1);\n\n if ( (LA98_0==LPAREN) ) {\n alt98=1;\n }\n switch (alt98) {\n case 1 :\n // /Users/bastien/Dev/ceylon/ceylon-spec/Ceylon.g:1098:9: pa= positionalArguments\n {\n pushFollow(FOLLOW_positionalArguments_in_classInstantiation7096);\n pa=positionalArguments();\n\n state._fsp--;\n if (state.failed) return retval;\n\n if ( state.backtracking==0 ) { retval.invocationExpression = new InvocationExpression(null);\n retval.invocationExpression.setPrimary(ete);\n retval.invocationExpression.setPositionalArgumentList(pa); }\n\n }\n break;\n\n }\n\n\n }\n\n retval.stop = input.LT(-1);\n\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n\n finally {\n \t// do for sure before leaving\n }\n return retval;\n }", "title": "" }, { "docid": "c982b1c6479a0dedbf876d88a35d38ec", "score": "0.60772765", "text": "ExtendedClass createExtendedClass();", "title": "" }, { "docid": "df664d02fef1525fdd7e03025bad2e76", "score": "0.57376075", "text": "static final public ClassNameType ClassNameType() throws ParseException {\n Identifier n0 = null;\n n0 = Identifier();\n {if (true) return new ClassNameType(n0);}\n throw new Error(\"Missing return statement in function\");\n }", "title": "" }, { "docid": "1a0ca13daeebd7f3c1f6995f808bbb14", "score": "0.5701318", "text": "public AnyClass classDeclaration() throws RecognitionException {\n AnyClass declaration = null;\n\n\n Token CLASS_DEFINITION109=null;\n Token SEMICOLON119=null;\n Identifier typeNameDeclaration110 =null;\n\n TypeParameterList typeParameters111 =null;\n\n ParameterList parameters112 =null;\n\n CaseTypes caseTypes113 =null;\n\n ExtendedType extendedType114 =null;\n\n SatisfiedTypes satisfiedTypes115 =null;\n\n TypeConstraintList typeConstraints116 =null;\n\n ClassBody classBody117 =null;\n\n ClassSpecifier classSpecifier118 =null;\n\n\n ClassDefinition def=null; \n ClassDeclaration dec=null; \n try {\n // /Users/bastien/Dev/ceylon/ceylon-spec/Ceylon.g:804:5: ( CLASS_DEFINITION ( typeNameDeclaration )? ( typeParameters )? ( parameters )? ( caseTypes )? ( extendedType )? ( satisfiedTypes )? ( typeConstraints )? ( classBody | ( classSpecifier )? SEMICOLON ) )\n // /Users/bastien/Dev/ceylon/ceylon-spec/Ceylon.g:804:7: CLASS_DEFINITION ( typeNameDeclaration )? ( typeParameters )? ( parameters )? ( caseTypes )? ( extendedType )? ( satisfiedTypes )? ( typeConstraints )? ( classBody | ( classSpecifier )? SEMICOLON )\n {\n CLASS_DEFINITION109=(Token)match(input,CLASS_DEFINITION,FOLLOW_CLASS_DEFINITION_in_classDeclaration5175); if (state.failed) return declaration;\n\n if ( state.backtracking==0 ) { def = new ClassDefinition(CLASS_DEFINITION109); \n dec = new ClassDeclaration(CLASS_DEFINITION109);\n declaration = dec; }\n\n // /Users/bastien/Dev/ceylon/ceylon-spec/Ceylon.g:808:7: ( typeNameDeclaration )?\n int alt68=2;\n int LA68_0 = input.LA(1);\n\n if ( (LA68_0==LIDENTIFIER||LA68_0==UIDENTIFIER) ) {\n alt68=1;\n }\n switch (alt68) {\n case 1 :\n // /Users/bastien/Dev/ceylon/ceylon-spec/Ceylon.g:809:9: typeNameDeclaration\n {\n pushFollow(FOLLOW_typeNameDeclaration_in_classDeclaration5202);\n typeNameDeclaration110=typeNameDeclaration();\n\n state._fsp--;\n if (state.failed) return declaration;\n\n if ( state.backtracking==0 ) { dec.setIdentifier(typeNameDeclaration110); \n def.setIdentifier(typeNameDeclaration110); }\n\n }\n break;\n\n }\n\n\n // /Users/bastien/Dev/ceylon/ceylon-spec/Ceylon.g:813:7: ( typeParameters )?\n int alt69=2;\n int LA69_0 = input.LA(1);\n\n if ( (LA69_0==SMALLER_OP) ) {\n alt69=1;\n }\n switch (alt69) {\n case 1 :\n // /Users/bastien/Dev/ceylon/ceylon-spec/Ceylon.g:814:9: typeParameters\n {\n pushFollow(FOLLOW_typeParameters_in_classDeclaration5239);\n typeParameters111=typeParameters();\n\n state._fsp--;\n if (state.failed) return declaration;\n\n if ( state.backtracking==0 ) { def.setTypeParameterList(typeParameters111); \n dec.setTypeParameterList(typeParameters111); }\n\n }\n break;\n\n }\n\n\n // /Users/bastien/Dev/ceylon/ceylon-spec/Ceylon.g:818:7: ( parameters )?\n int alt70=2;\n int LA70_0 = input.LA(1);\n\n if ( (LA70_0==LPAREN) ) {\n alt70=1;\n }\n switch (alt70) {\n case 1 :\n // /Users/bastien/Dev/ceylon/ceylon-spec/Ceylon.g:819:9: parameters\n {\n pushFollow(FOLLOW_parameters_in_classDeclaration5276);\n parameters112=parameters();\n\n state._fsp--;\n if (state.failed) return declaration;\n\n if ( state.backtracking==0 ) { def.setParameterList(parameters112); \n dec.setParameterList(parameters112); }\n\n }\n break;\n\n }\n\n\n // /Users/bastien/Dev/ceylon/ceylon-spec/Ceylon.g:823:7: ( caseTypes )?\n int alt71=2;\n int LA71_0 = input.LA(1);\n\n if ( (LA71_0==CASE_TYPES) ) {\n alt71=1;\n }\n switch (alt71) {\n case 1 :\n // /Users/bastien/Dev/ceylon/ceylon-spec/Ceylon.g:824:9: caseTypes\n {\n pushFollow(FOLLOW_caseTypes_in_classDeclaration5313);\n caseTypes113=caseTypes();\n\n state._fsp--;\n if (state.failed) return declaration;\n\n if ( state.backtracking==0 ) { def.setCaseTypes(caseTypes113); \n dec.setCaseTypes(caseTypes113); }\n\n }\n break;\n\n }\n\n\n // /Users/bastien/Dev/ceylon/ceylon-spec/Ceylon.g:829:7: ( extendedType )?\n int alt72=2;\n int LA72_0 = input.LA(1);\n\n if ( (LA72_0==EXTENDS) ) {\n alt72=1;\n }\n switch (alt72) {\n case 1 :\n // /Users/bastien/Dev/ceylon/ceylon-spec/Ceylon.g:830:9: extendedType\n {\n pushFollow(FOLLOW_extendedType_in_classDeclaration5359);\n extendedType114=extendedType();\n\n state._fsp--;\n if (state.failed) return declaration;\n\n if ( state.backtracking==0 ) { def.setExtendedType(extendedType114); \n dec.setExtendedType(extendedType114); }\n\n }\n break;\n\n }\n\n\n // /Users/bastien/Dev/ceylon/ceylon-spec/Ceylon.g:834:7: ( satisfiedTypes )?\n int alt73=2;\n int LA73_0 = input.LA(1);\n\n if ( (LA73_0==SATISFIES) ) {\n alt73=1;\n }\n switch (alt73) {\n case 1 :\n // /Users/bastien/Dev/ceylon/ceylon-spec/Ceylon.g:835:9: satisfiedTypes\n {\n pushFollow(FOLLOW_satisfiedTypes_in_classDeclaration5397);\n satisfiedTypes115=satisfiedTypes();\n\n state._fsp--;\n if (state.failed) return declaration;\n\n if ( state.backtracking==0 ) { def.setSatisfiedTypes(satisfiedTypes115); \n dec.setSatisfiedTypes(satisfiedTypes115); }\n\n }\n break;\n\n }\n\n\n // /Users/bastien/Dev/ceylon/ceylon-spec/Ceylon.g:839:7: ( typeConstraints )?\n int alt74=2;\n int LA74_0 = input.LA(1);\n\n if ( (LA74_0==COMPILER_ANNOTATION||LA74_0==TYPE_CONSTRAINT) ) {\n alt74=1;\n }\n switch (alt74) {\n case 1 :\n // /Users/bastien/Dev/ceylon/ceylon-spec/Ceylon.g:840:9: typeConstraints\n {\n pushFollow(FOLLOW_typeConstraints_in_classDeclaration5434);\n typeConstraints116=typeConstraints();\n\n state._fsp--;\n if (state.failed) return declaration;\n\n if ( state.backtracking==0 ) { def.setTypeConstraintList(typeConstraints116); \n dec.setTypeConstraintList(typeConstraints116); }\n\n }\n break;\n\n }\n\n\n // /Users/bastien/Dev/ceylon/ceylon-spec/Ceylon.g:844:7: ( classBody | ( classSpecifier )? SEMICOLON )\n int alt76=2;\n int LA76_0 = input.LA(1);\n\n if ( (LA76_0==LBRACE) ) {\n alt76=1;\n }\n else if ( (LA76_0==COMPUTE||LA76_0==SEMICOLON||LA76_0==SPECIFY) ) {\n alt76=2;\n }\n else {\n if (state.backtracking>0) {state.failed=true; return declaration;}\n NoViableAltException nvae =\n new NoViableAltException(\"\", 76, 0, input);\n\n throw nvae;\n\n }\n switch (alt76) {\n case 1 :\n // /Users/bastien/Dev/ceylon/ceylon-spec/Ceylon.g:845:9: classBody\n {\n if ( state.backtracking==0 ) { declaration = def; }\n\n pushFollow(FOLLOW_classBody_in_classDeclaration5481);\n classBody117=classBody();\n\n state._fsp--;\n if (state.failed) return declaration;\n\n if ( state.backtracking==0 ) { def.setClassBody(classBody117); }\n\n }\n break;\n case 2 :\n // /Users/bastien/Dev/ceylon/ceylon-spec/Ceylon.g:849:9: ( classSpecifier )? SEMICOLON\n {\n // /Users/bastien/Dev/ceylon/ceylon-spec/Ceylon.g:849:9: ( classSpecifier )?\n int alt75=2;\n int LA75_0 = input.LA(1);\n\n if ( (LA75_0==COMPUTE||LA75_0==SPECIFY) ) {\n alt75=1;\n }\n switch (alt75) {\n case 1 :\n // /Users/bastien/Dev/ceylon/ceylon-spec/Ceylon.g:850:11: classSpecifier\n {\n pushFollow(FOLLOW_classSpecifier_in_classDeclaration5522);\n classSpecifier118=classSpecifier();\n\n state._fsp--;\n if (state.failed) return declaration;\n\n if ( state.backtracking==0 ) { dec.setClassSpecifier(classSpecifier118); }\n\n }\n break;\n\n }\n\n\n if ( state.backtracking==0 ) { expecting=SEMICOLON; }\n\n SEMICOLON119=(Token)match(input,SEMICOLON,FOLLOW_SEMICOLON_in_classDeclaration5565); if (state.failed) return declaration;\n\n if ( state.backtracking==0 ) { declaration.setEndToken(SEMICOLON119); \n expecting=-1; }\n\n }\n break;\n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n\n finally {\n \t// do for sure before leaving\n }\n return declaration;\n }", "title": "" }, { "docid": "3add52f9bb174816d21350bf822390ee", "score": "0.56858635", "text": "protected ICASTElaboratedTypeSpecifier elaboratedTypeSpecifier()\n throws BacktrackException, EndOfFileException {\n IToken t = consume();\n int eck = 0;\n \n switch (t.getType()) {\n case IToken.t_struct:\n eck = IASTElaboratedTypeSpecifier.k_struct;\n break;\n case IToken.t_union:\n eck = IASTElaboratedTypeSpecifier.k_union;\n break;\n case IToken.t_enum:\n eck = IASTElaboratedTypeSpecifier.k_enum;\n break;\n default:\n backup(t);\n throwBacktrack(t.getOffset(), t.getEndOffset(), t.getLineNumber(),\n t.getFilename());\n }\n \n IToken identifier = identifier();\n IASTName name = createName( identifier );\n ICASTElaboratedTypeSpecifier result = createElaboratedTypeSpecifier();\n result.setName( name );\n name.setParent( result );\n name.setPropertyInParent( IASTElaboratedTypeSpecifier.TYPE_NAME );\n result.setKind( eck );\n return result;\n }", "title": "" }, { "docid": "8b5e859e6d1ec20208263f17b9655925", "score": "0.5605817", "text": "public TypeSpecifier typeSpecifier() throws RecognitionException {\n TypeSpecifier typeSpecifier = null;\n\n\n Token COMPUTE223=null;\n Token SPECIFY224=null;\n StaticType type225 =null;\n\n\n try {\n // /Users/bastien/Dev/ceylon/ceylon-spec/Ceylon.g:1622:5: ( ( COMPUTE | SPECIFY ) ( type )? )\n // /Users/bastien/Dev/ceylon/ceylon-spec/Ceylon.g:1622:7: ( COMPUTE | SPECIFY ) ( type )?\n {\n // /Users/bastien/Dev/ceylon/ceylon-spec/Ceylon.g:1622:7: ( COMPUTE | SPECIFY )\n int alt159=2;\n int LA159_0 = input.LA(1);\n\n if ( (LA159_0==COMPUTE) ) {\n alt159=1;\n }\n else if ( (LA159_0==SPECIFY) ) {\n alt159=2;\n }\n else {\n if (state.backtracking>0) {state.failed=true; return typeSpecifier;}\n NoViableAltException nvae =\n new NoViableAltException(\"\", 159, 0, input);\n\n throw nvae;\n\n }\n switch (alt159) {\n case 1 :\n // /Users/bastien/Dev/ceylon/ceylon-spec/Ceylon.g:1623:9: COMPUTE\n {\n COMPUTE223=(Token)match(input,COMPUTE,FOLLOW_COMPUTE_in_typeSpecifier10848); if (state.failed) return typeSpecifier;\n\n if ( state.backtracking==0 ) { typeSpecifier = new TypeSpecifier(COMPUTE223); }\n\n }\n break;\n case 2 :\n // /Users/bastien/Dev/ceylon/ceylon-spec/Ceylon.g:1626:9: SPECIFY\n {\n SPECIFY224=(Token)match(input,SPECIFY,FOLLOW_SPECIFY_in_typeSpecifier10877); if (state.failed) return typeSpecifier;\n\n if ( state.backtracking==0 ) { typeSpecifier = new TypeSpecifier(SPECIFY224); }\n\n }\n break;\n\n }\n\n\n // /Users/bastien/Dev/ceylon/ceylon-spec/Ceylon.g:1629:7: ( type )?\n int alt160=2;\n int LA160_0 = input.LA(1);\n\n if ( ((LA160_0 >= LBRACE && LA160_0 <= LBRACKET)||LA160_0==PACKAGE||LA160_0==SMALLER_OP||LA160_0==UIDENTIFIER) ) {\n alt160=1;\n }\n switch (alt160) {\n case 1 :\n // /Users/bastien/Dev/ceylon/ceylon-spec/Ceylon.g:1630:9: type\n {\n pushFollow(FOLLOW_type_in_typeSpecifier10914);\n type225=type();\n\n state._fsp--;\n if (state.failed) return typeSpecifier;\n\n if ( state.backtracking==0 ) { typeSpecifier.setType(type225); }\n\n }\n break;\n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n\n finally {\n \t// do for sure before leaving\n }\n return typeSpecifier;\n }", "title": "" }, { "docid": "f26af45e4e2f35e8372ed88ec3495b54", "score": "0.557769", "text": "final public void ClassDeclaration() throws ParseError {\n int modifiers=0;\n String name;\n label_3:\n while (true) {\n if (jj_mask_6[getToken(1).kind]) {\n ;\n } else {\n jj_expLA1[6] = jj_gen;\n break label_3;\n }\n if (jj_mask_9[getToken(1).kind]) {\n jj_consume_token(ABSTRACT);\n modifiers |= ABSTRACT_MODIFIER;\n } else {\n jj_expLA1[9] = jj_gen;\n if (jj_mask_8[getToken(1).kind]) {\n jj_consume_token(FINAL);\n modifiers |= FINAL_MODIFIER;\n } else {\n jj_expLA1[8] = jj_gen;\n if (jj_mask_7[getToken(1).kind]) {\n jj_consume_token(PUBLIC);\n modifiers |= PUBLIC_MODIFIER;\n } else {\n jj_expLA1[7] = jj_gen;\n jj_consume_token(-1);\n throw new ParseError();\n }\n }\n }\n }\n jj_consume_token(CLASS);\n jj_consume_token(IDENTIFIER);\n name=token.image;\n if (jj_mask_10[getToken(1).kind]) {\n jj_consume_token(EXTENDS);\n Name();\n } else {\n jj_expLA1[10] = jj_gen;\n ;\n }\n if (jj_mask_11[getToken(1).kind]) {\n jj_consume_token(IMPLEMENTS);\n NameList();\n } else {\n jj_expLA1[11] = jj_gen;\n ;\n }\n jj_consume_token(LBRACE);\n label_4:\n while (true) {\n if (jj_mask_12[getToken(1).kind]) {\n ;\n } else {\n jj_expLA1[12] = jj_gen;\n break label_4;\n }\n ClassBodyDeclaration();\n }\n jj_consume_token(RBRACE);\n GotClassDecl(modifiers, name);\n }", "title": "" }, { "docid": "02698d16315327d0100bdfdb997e9cad", "score": "0.55371654", "text": "Class_declaration getClassDec();", "title": "" }, { "docid": "cdfbecc9b12aa78be62ff36ac53bb775", "score": "0.54374653", "text": "public interface ClassMatcher {\n /**\n * Returns the options for the specified class.\n */\n public boolean matches(TypeElement cd);\n\n /**\n * Returns the options for the specified class.\n */\n public boolean matches(CharSequence name);\n}", "title": "" }, { "docid": "25f916f1f21f530d523ec8e94df2a6ef", "score": "0.535974", "text": "@Test\n\tpublic void classMethodWithShadowingTypeParameterOutsideBounds() {\n\t\tJavaFileObject X = inputSource(\n\t\t\t\t\"X\",\n\t\t\t\tlines(\n\t\t\t\t\t\t\"abstract class X<@Reify(String.class) T> { \",\n\t\t\t\t\t\t\" abstract <T extends Integer> Class<T> classT();\",\n\t\t\t\t\t\t\"} \"\n\t\t\t\t)\n\t\t);\n\t\tJavaFileObject X$String = generatedSource(\n\t\t\t\t\"X$String\",\n\t\t\t\tlines(\n\t\t\t\t\t\t\"public class X$String extends X<String> {\",\n\t\t\t\t\t\t\" @Override \",\n\t\t\t\t\t\t\" Class<String> classT() { \",\n\t\t\t\t\t\t\" return String.class; \",\n\t\t\t\t\t\t\" } \",\n\t\t\t\t\t\t\"} \"\n\t\t\t\t)\n\t\t);\n\t\t\n\t\tassertCompilesAndGenerates(X, X$String);\n\t}", "title": "" }, { "docid": "580f7f689c7668c5e602800b10a5da91", "score": "0.5299271", "text": "static final public ClassDeclaration ClassDeclaration() throws ParseException {\n NodeToken n0 = null;\n Token n1 = null;\n Identifier n2 = null;\n NodeToken n3 = null;\n Token n4 = null;\n NodeListOptional n5 = new NodeListOptional();\n ClassMember n6 = null;\n NodeToken n7 = null;\n Token n8 = null;\n n1 = jj_consume_token(CLASS);\n n0 = JTBToolkit.makeNodeToken(n1);\n n2 = Identifier();\n n4 = jj_consume_token(LBRACE);\n n3 = JTBToolkit.makeNodeToken(n4);\n label_2:\n while (true) {\n switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n case PUBLIC:\n ;\n break;\n default:\n jj_la1[1] = jj_gen;\n break label_2;\n }\n n6 = ClassMember();\n n5.addNode(n6);\n }\n n5.nodes.trimToSize();\n n8 = jj_consume_token(RBRACE);\n n7 = JTBToolkit.makeNodeToken(n8);\n {if (true) return new ClassDeclaration(n0, n2, n3, n5, n7);}\n throw new Error(\"Missing return statement in function\");\n }", "title": "" }, { "docid": "cdf5d3320ac1ec976f93e58a9c46d1ff", "score": "0.52330923", "text": "Class<Z> mo18970c();", "title": "" }, { "docid": "8b2ab8cfece3edcec01f21f99f2d39a7", "score": "0.51774204", "text": "@Override\n public String visitNormalClassDeclaration(Java8Parser.NormalClassDeclarationContext ctx) {\n String name = ctx.Identifier().getText();\n StringBuilder classModifierSB = new StringBuilder(\"(\");\n for (Java8Parser.ClassModifierContext cmCtx : ctx.classModifier()) {\n classModifierSB.append(cmCtx.getText());\n classModifierSB.append(' ');\n }\n classModifierSB.append(')');\n String typeParamsS = (ctx.typeParameters() != null) ? visit(ctx.typeParameters()) : \"()\";\n String superClassS = (ctx.superclass() != null) ? visit(ctx.superclass()) : \"()\";\n String superInterfaceS = (ctx.superinterfaces() != null) ? visit(ctx.superinterfaces()) : \"()\";\n String classBodyS = visit(ctx.classBody());\n Map<Integer, Integer> m = new HashMap<>() {\n };\n int ln = ctx.getStart().getLine();\n int coln = ctx.getStart().getCharPositionInLine();\n return String.format(\"((%d %d) Class %s\\n %s\\n %s\\n %s\\n %s\\n %s)\", ln, coln, name, classModifierSB.toString(),\n typeParamsS, superClassS, superInterfaceS, classBodyS);\n }", "title": "" }, { "docid": "ac6075252922924893970925180a877c", "score": "0.5163414", "text": "public abstract GrimmoireClassType getClassType();", "title": "" }, { "docid": "34411e220c99f72d64f235b6298e8713", "score": "0.5158568", "text": "final public ClassOrInterfaceDeclaration ClassOrInterfaceDeclaration(ModifierHolder modifier) throws ParseException {\n\t\tboolean isInterface = false;\n\t\tSimpleName name;\n\t\tRangedList<TypeParameter> typePar = new RangedList<TypeParameter>(emptyList());\n\t\tNodeList<ClassOrInterfaceType> extList = emptyList();\n\t\tNodeList<ClassOrInterfaceType> impList = emptyList();\n\t\tNodeList<BodyDeclaration<?>> members = emptyList();\n\t\tJavaToken begin = modifier.begin;\n\t\tswitch ((jj_ntk == -1) ? jj_ntk_f() : jj_ntk) {\n\t\t\tcase CLASS: {\n\t\t\t\tjj_consume_token(CLASS);\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tcase INTERFACE: {\n\t\t\t\tjj_consume_token(INTERFACE);\n\t\t\t\tisInterface = true;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tdefault:\n\t\t\t\tjj_la1[7] = jj_gen;\n\t\t\t\tjj_consume_token(-1);\n\t\t\t\tthrow new ParseException();\n\t\t}\n\t\tbegin = begin.orIfInvalid(token());\n\t\tname = SimpleName();\n\t\tswitch ((jj_ntk == -1) ? jj_ntk_f() : jj_ntk) {\n\t\t\tcase LT: {\n\t\t\t\ttypePar = TypeParameters();\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tdefault:\n\t\t\t\tjj_la1[8] = jj_gen;\n\t\t\t\t;\n\t\t}\n\t\tswitch ((jj_ntk == -1) ? jj_ntk_f() : jj_ntk) {\n\t\t\tcase EXTENDS: {\n\t\t\t\textList = ExtendsList();\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tdefault:\n\t\t\t\tjj_la1[9] = jj_gen;\n\t\t\t\t;\n\t\t}\n\t\tswitch ((jj_ntk == -1) ? jj_ntk_f() : jj_ntk) {\n\t\t\tcase IMPLEMENTS: {\n\t\t\t\timpList = ImplementsList();\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tdefault:\n\t\t\t\tjj_la1[10] = jj_gen;\n\t\t\t\t;\n\t\t}\n\t\tmembers = ClassOrInterfaceBody();\n\t\treturn new ClassOrInterfaceDeclaration(range(begin, token()), modifier.modifiers, modifier.annotations, isInterface, name, typePar.list, extList, impList, members);\n\t}", "title": "" }, { "docid": "ae10cef86b77c163b383e57ae3e8e591", "score": "0.5117145", "text": "public final CSharpParser.class_declaration_return class_declaration() throws RecognitionException {\n\t\tCSharpParser.class_declaration_return retval = new CSharpParser.class_declaration_return();\n\t\tretval.start = input.LT(1);\n\t\tint class_declaration_StartIndex = input.index();\n\t\tObject root_0 = null;\n\n\t\tToken string_literal528=null;\n\t\tToken char_literal533=null;\n\t\tCSharpParser.type_or_generic_return type_or_generic529 = null;\n\n\t\tCSharpParser.class_base_return class_base530 = null;\n\n\t\tCSharpParser.type_parameter_constraints_clauses_return type_parameter_constraints_clauses531 = null;\n\n\t\tCSharpParser.class_body_return class_body532 = null;\n\n\n\t\tObject string_literal528_tree=null;\n\t\tObject char_literal533_tree=null;\n\n\t\ttry {\n\t\t\tif ( state.backtracking>0 && alreadyParsedRule(input, 150) ) { return retval; }\n\t\t\t//:557:18: ( 'class' type_or_generic ( class_base )? ( type_parameter_constraints_clauses )? class_body ( ';' )? )\n\t\t\t//:558:3: 'class' type_or_generic ( class_base )? ( type_parameter_constraints_clauses )? class_body ( ';' )?\n\t\t\t{\n\t\t\t\troot_0 = adaptor.nil();\n\n\t\t\t\tstring_literal528=(Token)match(input,155,FOLLOW_155_in_class_declaration4477); if (state.failed) {\n\t\t\t\t\treturn retval;\n\t\t\t\t}\n\t\t\t\tif ( state.backtracking==0 ) {\n\t\t\t\t\tstring_literal528_tree = adaptor.create(string_literal528);\n\t\t\t\t\tadaptor.addChild(root_0, string_literal528_tree);\n\t\t\t\t}\n\t\t\t\tpushFollow(FOLLOW_type_or_generic_in_class_declaration4480);\n\t\t\t\ttype_or_generic529=type_or_generic();\n\n\t\t\t\tstate._fsp--;\n\t\t\t\tif (state.failed) {\n\t\t\t\t\treturn retval;\n\t\t\t\t}\n\t\t\t\tif ( state.backtracking==0 ) {\n\t\t\t\t\tadaptor.addChild(root_0, type_or_generic529.getTree());\n\t\t\t\t}\n\t\t\t\t//:558:30: ( class_base )?\n\t\t\t\tint alt145=2;\n\t\t\t\tint LA145_0 = input.LA(1);\n\n\t\t\t\tif ( (LA145_0==90) ) {\n\t\t\t\t\talt145=1;\n\t\t\t\t}\n\t\t\t\tswitch (alt145) {\n\t\t\t\tcase 1 :\n\t\t\t\t\t//:558:30: class_base\n\t\t\t\t{\n\t\t\t\t\tpushFollow(FOLLOW_class_base_in_class_declaration4484);\n\t\t\t\t\tclass_base530=class_base();\n\n\t\t\t\t\tstate._fsp--;\n\t\t\t\t\tif (state.failed) {\n\t\t\t\t\t\treturn retval;\n\t\t\t\t\t}\n\t\t\t\t\tif ( state.backtracking==0 ) {\n\t\t\t\t\t\tadaptor.addChild(root_0, class_base530.getTree());\n\t\t\t\t\t}\n\n\t\t\t\t}\n\t\t\t\tbreak;\n\n\t\t\t\t}\n\n\t\t\t\t//:558:44: ( type_parameter_constraints_clauses )?\n\t\t\t\tint alt146=2;\n\t\t\t\tint LA146_0 = input.LA(1);\n\n\t\t\t\tif ( (LA146_0==145) ) {\n\t\t\t\t\talt146=1;\n\t\t\t\t}\n\t\t\t\tswitch (alt146) {\n\t\t\t\tcase 1 :\n\t\t\t\t\t//:558:44: type_parameter_constraints_clauses\n\t\t\t\t{\n\t\t\t\t\tpushFollow(FOLLOW_type_parameter_constraints_clauses_in_class_declaration4489);\n\t\t\t\t\ttype_parameter_constraints_clauses531=type_parameter_constraints_clauses();\n\n\t\t\t\t\tstate._fsp--;\n\t\t\t\t\tif (state.failed) {\n\t\t\t\t\t\treturn retval;\n\t\t\t\t\t}\n\t\t\t\t\tif ( state.backtracking==0 ) {\n\t\t\t\t\t\tadaptor.addChild(root_0, type_parameter_constraints_clauses531.getTree());\n\t\t\t\t\t}\n\n\t\t\t\t}\n\t\t\t\tbreak;\n\n\t\t\t\t}\n\n\t\t\t\tpushFollow(FOLLOW_class_body_in_class_declaration4494);\n\t\t\t\tclass_body532=class_body();\n\n\t\t\t\tstate._fsp--;\n\t\t\t\tif (state.failed) {\n\t\t\t\t\treturn retval;\n\t\t\t\t}\n\t\t\t\tif ( state.backtracking==0 ) {\n\t\t\t\t\tadaptor.addChild(root_0, class_body532.getTree());\n\t\t\t\t}\n\t\t\t\t//:558:95: ( ';' )?\n\t\t\t\tint alt147=2;\n\t\t\t\tint LA147_0 = input.LA(1);\n\n\t\t\t\tif ( (LA147_0==SEMI) ) {\n\t\t\t\t\talt147=1;\n\t\t\t\t}\n\t\t\t\tswitch (alt147) {\n\t\t\t\tcase 1 :\n\t\t\t\t\t//:558:95: ';'\n\t\t\t\t{\n\t\t\t\t\tchar_literal533=(Token)match(input,SEMI,FOLLOW_SEMI_in_class_declaration4498); if (state.failed) {\n\t\t\t\t\t\treturn retval;\n\t\t\t\t\t}\n\t\t\t\t\tif ( state.backtracking==0 ) {\n\t\t\t\t\t\tchar_literal533_tree = adaptor.create(char_literal533);\n\t\t\t\t\t\tadaptor.addChild(root_0, char_literal533_tree);\n\t\t\t\t\t}\n\n\t\t\t\t}\n\t\t\t\tbreak;\n\n\t\t\t\t}\n\n\n\t\t\t}\n\n\t\t\tretval.stop = input.LT(-1);\n\n\t\t\tif ( state.backtracking==0 ) {\n\n\t\t\t\tretval.tree = adaptor.rulePostProcessing(root_0);\n\t\t\t\tadaptor.setTokenBoundaries(retval.tree, retval.start, retval.stop);\n\t\t\t}\n\t\t}\n\t\tcatch (RecognitionException re) {\n\t\t\treportError(re);\n\t\t\trecover(input,re);\n\t\t\tretval.tree = adaptor.errorNode(input, retval.start, input.LT(-1), re);\n\n\t\t}\n\t\tfinally {\n\t\t\tif ( state.backtracking>0 ) { memoize(input, 150, class_declaration_StartIndex); }\n\t\t}\n\t\treturn retval;\n\t}", "title": "" }, { "docid": "af5e3b27ba8de7ee8d40a7d31ccba7c5", "score": "0.5107325", "text": "Class createClass();", "title": "" }, { "docid": "4d5e3506879d52a90b5311647dcbbc64", "score": "0.5102067", "text": "private Node readClassDef() {\n List<Node> defs = new ArrayList<>();\n Node node = fetch();\n if(!(node instanceof Sym)) {\n throw new CompileException(node, \"Expected a class name, found \" + node);\n }\n p = skipSpace();\n defs.add(node);\n defs.add(p < src.length && src[p] == '(' ? readArgDefs()\n : new XNode(\"argument-list\", new Node[0]));\n riaDocStr = null;\n List<Node> l = new ArrayList<>();\n node = readDottedType(\"Expected extends, field or method definition, found \");\n Node epos = node;\n if(Objects.equals(node.sym(), \"extends\")) {\n do {\n l.add(readDotted(\"Expected a class name, found \"));\n int line_ = line, col_ = p - lineStart + 1;\n l.add(new XNode(\"arguments\", readArgs()).pos(line_, col_));\n } while((p = skipSpace()) < src.length && src[p++] == ',');\n --p;\n node = readDottedType(EXPECT_DEF);\n }\n defs.add(new XNode(\"extends\", l.toArray(new Node[0])).pos(epos.line, epos.col));\n l.clear();\n eofWas = node;\n collect:\n while(!(Objects.equals(eofWas.kind, \"end\") || eofWas instanceof Sym && Objects.equals(((Sym)eofWas).sym, \"end\"))) {\n if(node == null) {\n node = readDottedType(EXPECT_DEF);\n }\n String vsym = node.sym();\n if(Objects.equals(vsym, \"var\") || Objects.equals(vsym, \"unbind\") || Objects.equals(vsym, \"let\")) {\n l.add(new XNode(vsym).pos(node.line, node.col));\n node = fetch();\n }\n String doc = riaDocStr;\n String meth = \"method\";\n Node args = null;\n while(node instanceof Sym && !(Objects.equals(((Sym)node).sym, \"end\"))) {\n p = skipSpace();\n if(p < src.length && src[p] == '(') {\n if(Objects.equals(meth, \"error\")) {\n throw new CompileException(line, p - lineStart + 1, \"Static method cannot be abstract\");\n }\n if(!Objects.equals(meth, \"method\")) {\n l.remove(0);\n }\n if(l.size() == 0) {\n throw new CompileException(line, p - lineStart + 1, \"Expected method name, found (\");\n }\n if(l.size() == 1) {\n args = readArgDefs();\n }\n break;\n }\n if(Objects.equals(((Sym)node).sym, \"end\") && l.size() == 0) {\n break collect;\n }\n l.add(node);\n String s;\n // Check for static and abstract method\n if(Objects.equals(s = node.sym(), \"static\") || Objects.equals(s, \"abstract\")) {\n meth = !Objects.equals(meth, \"method\") ? \"error\" :\n Objects.equals(s, \"static\") ? \"static-method\" : \"abstract-method\";\n node = readDottedType(EXPECT_DEF);\n } else {\n node = fetch();\n }\n }\n if(args == null) {\n if(node instanceof IsOp) {\n l.add(node);\n node = fetch();\n }\n if(!Objects.equals(node.kind, \"=\")) {\n throw new CompileException(node, \"Expected '=' or argument list, found \" + node);\n }\n }\n Node expr;\n if(Objects.equals(meth, \"abstract-method\")) {\n expr = null;\n eofWas = fetch();\n } else {\n expr = readSeq('e', null);\n }\n if(!Objects.equals(eofWas.kind, \",\") && !Objects.equals(eofWas.kind, \"end\") && (!(eofWas instanceof Sym) ||\n !Objects.equals(((Sym)eofWas).sym, \"end\"))) {\n throw new CompileException(eofWas, \"Unexpected \" + eofWas);\n }\n if(args == null) {\n defs.add(new Bind(l, expr, false, doc));\n } else {\n Node[] m = expr != null\n ? new Node[] {l.get(0), node, args, expr}\n : new Node[] {l.get(0), node, args};\n defs.add(new XNode(meth, m).pos(node.line, node.col));\n }\n l.clear();\n node = null;\n riaDocStr = null;\n }\n return new XNode(\"class\",\n defs.toArray(new Node[0]));\n }", "title": "" }, { "docid": "caeaddfbba1ea24e4abe195c2cb5408e", "score": "0.5077353", "text": "public ClassTreeImpl CLASS_DECLARATION() {\n return b.<ClassTreeImpl> nonterminal(JavaLexer.CLASS_DECLARATION).is(\n f.completeClassDeclaration(b.token(JavaKeyword.CLASS), b.token(JavaTokenType.IDENTIFIER),\n b.optional(TYPE_PARAMETERS()),\n b.optional(f.newTuple7(b.token(JavaKeyword.EXTENDS), TYPE_QUALIFIED_IDENTIFIER())),\n b.optional(f.newTuple14(b.token(JavaKeyword.IMPLEMENTS), QUALIFIED_IDENTIFIER_LIST())),\n CLASS_BODY()));\n }", "title": "" }, { "docid": "0124ed960c83addb008ffb149a8749f4", "score": "0.50383645", "text": "@Override\n\tprotected int visit(ICPPASTCompositeTypeSpecifier node) {\n\t\tClass fmx;\n\n\t\t/* Gets the key (IBinding) of the node to recover the famix type entity */\n\t\tsuper.visit(node);\n\n\t\tfmx = dico.getEntityByKey(Class.class, nodeBnd);\n\n\t\tthis.getContext().push(fmx);\n\t\tfor (IASTDeclaration decl : node.getDeclarations(/*includeInactive*/true)) {\n\t\t}\n\t\treturnedEntity = getContext().pop();\n\n\t\treturn PROCESS_SKIP;\n\t}", "title": "" }, { "docid": "882803a1d8b23df89da13e6524d348f8", "score": "0.50215083", "text": "@Override\n\tpublic Type analyze(ClassDef node) {\n\t\tif (builtInSpecialTypeSet.contains(node.superClass.name)) {\n\t\t\terrors.semError(node.superClass, \"Cannot extend special class: %s\", node.superClass.name);\n\t\t}\n\n\t\tClassDefType superClassDefType = null;\n\t\t{\n\t\t\tType superClassType = sym.get(node.superClass.name);\n\t\t\tif (superClassType == null) {\n\t\t\t\terrors.semError(node.superClass, \"Super-class not defined: %s\", node.superClass.name);\n\t\t\t}\n\t\t\telse if (!(superClassType instanceof ClassDefType)) {\n\t\t\t\terrors.semError(node.superClass, \"Super-class must be a class: %s\", node.superClass.name);\n\t\t\t}\n\t\t\telse {\n\t\t\t\tsuperClassDefType = (ClassDefType) superClassType;\n\t\t\t}\n\t\t}\n\n\t\t// declare a new scope\n\t\tsym = new SymbolTable<>(sym);\n\t\tscopeStack.push(ScopeType.Class);\n\t\tClassDefType definitionType = new ClassDefType(node.name.name, sym, superClassDefType);\n\n\t\tfor (Declaration decl : node.declarations) {\n\t\t\t// do naming collision check before dispatch\n\t\t\tIdentifier id = decl.getIdentifier();\n\t\t\tString name = id.name;\n\t\t\tif (sym.declares(name)) {\n\t\t\t\terrors.semError(id, \"Duplicate declaration of identifier in same scope: %s\", name);\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\t// check rest of class fields (attr. && func.)\n\t\t\tType type = decl.dispatch(this);\n\n\t\t\tif (type == null) {\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\t// check overridden attributes or functions\n\t\t\tif (type.isFuncType()) {\n\t\t\t\t// I will assume I always use the extended type\n\t\t\t\tFuncDefType funcType = (FuncDefType) type;\n\t\t\t\t// a valid method in class must have at least one parameter which is \"self\"\n\t\t\t\tif (funcType.parameters.isEmpty() || !funcType.getParamType(0).className().equals(node.name.name)) {\n\t\t\t\t\terrors.semError(id, \"First parameter of the following method must be of the enclosing class: %s\",\n\t\t\t\t\t\t\tfuncType.funcName);\n\t\t\t\t}\n\n\t\t\t\tif (superClassDefType != null && superClassDefType.symbolTable.declares(funcType.funcName)) {\n\t\t\t\t\t// check for overridden methods\n\t\t\t\t\tFuncDefType superFuncDefType = safeCastType(superClassDefType.symbolTable.get(funcType.funcName),\n\t\t\t\t\t\t\tFuncDefType.class);\n\t\t\t\t\tif (superFuncDefType == null) {\n\t\t\t\t\t\t// this is an attribute in the superclass; functions cannot override attributes\n\t\t\t\t\t\terrors.semError(id, \"Cannot re-define attribute: %s\", funcType.funcName);\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\t\t\t\t\t// must have same signature (except first parameter)\n\t\t\t\t\tif (!FuncDefType.isMethodSignatureEqual(funcType, superFuncDefType)) {\n\t\t\t\t\t\terrors.semError(id, \"Method overridden with different type signature: %s\", funcType.funcName);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\telse {\n\t\t\t\t// this is an attribute; check if it is overriding anything\n\t\t\t\tif (superClassDefType != null && superClassDefType.symbolTable.declares(name)) {\n\t\t\t\t\terrors.semError(id, \"Cannot re-define attribute: %s\", name);\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t}\n\t\t\tsym.put(name, type);\n\t\t}\n\n\t\t// inheritance\n\t\tif (superClassDefType != null) {\n\t\t\tSymbolTable<Type> superSymbolTable = superClassDefType.symbolTable;\n\t\t\tsuperSymbolTable.getDeclaredSymbols().forEach(symbol -> {\n\t\t\t\tif (!sym.declares(symbol)) {\n\t\t\t\t\t// do not overwrite overridden functions\n\t\t\t\t\tsym.put(symbol, superSymbolTable.get(symbol));\n\t\t\t\t}\n\t\t\t});\n\t\t\tTypeHierarchy.getInstance().addClass(node.name.name, node.superClass.name);\n\t\t}\n\n\t\tsym = sym.getParent(); // exit class scope\n\t\tscopeStack.pop();\n\t\t// remove all forward declared symbols for this type since the definition is complete\n\t\tforwardDeclarationMap.remove(node.name.name);\n\t\treturn definitionType;\n\t}", "title": "" }, { "docid": "53264c0eb4dba2e2dbce304f7093764d", "score": "0.5020093", "text": "public ObjectExpression objectExpression() throws RecognitionException {\n ObjectExpression objectExpression = null;\n\n\n Token OBJECT_DEFINITION50=null;\n Token SEMICOLON54=null;\n ExtendedType extendedType51 =null;\n\n SatisfiedTypes satisfiedTypes52 =null;\n\n ClassBody classBody53 =null;\n\n\n try {\n // /Users/bastien/Dev/ceylon/ceylon-spec/Ceylon.g:383:5: ( OBJECT_DEFINITION ( extendedType )? ( satisfiedTypes )? ( classBody | SEMICOLON ) )\n // /Users/bastien/Dev/ceylon/ceylon-spec/Ceylon.g:383:7: OBJECT_DEFINITION ( extendedType )? ( satisfiedTypes )? ( classBody | SEMICOLON )\n {\n OBJECT_DEFINITION50=(Token)match(input,OBJECT_DEFINITION,FOLLOW_OBJECT_DEFINITION_in_objectExpression2077); if (state.failed) return objectExpression;\n\n if ( state.backtracking==0 ) { objectExpression = new ObjectExpression(OBJECT_DEFINITION50); }\n\n // /Users/bastien/Dev/ceylon/ceylon-spec/Ceylon.g:385:7: ( extendedType )?\n int alt24=2;\n int LA24_0 = input.LA(1);\n\n if ( (LA24_0==EXTENDS) ) {\n alt24=1;\n }\n switch (alt24) {\n case 1 :\n // /Users/bastien/Dev/ceylon/ceylon-spec/Ceylon.g:386:9: extendedType\n {\n pushFollow(FOLLOW_extendedType_in_objectExpression2104);\n extendedType51=extendedType();\n\n state._fsp--;\n if (state.failed) return objectExpression;\n\n if ( state.backtracking==0 ) { objectExpression.setExtendedType(extendedType51); }\n\n }\n break;\n\n }\n\n\n // /Users/bastien/Dev/ceylon/ceylon-spec/Ceylon.g:389:7: ( satisfiedTypes )?\n int alt25=2;\n int LA25_0 = input.LA(1);\n\n if ( (LA25_0==SATISFIES) ) {\n alt25=1;\n }\n switch (alt25) {\n case 1 :\n // /Users/bastien/Dev/ceylon/ceylon-spec/Ceylon.g:390:9: satisfiedTypes\n {\n pushFollow(FOLLOW_satisfiedTypes_in_objectExpression2143);\n satisfiedTypes52=satisfiedTypes();\n\n state._fsp--;\n if (state.failed) return objectExpression;\n\n if ( state.backtracking==0 ) { objectExpression.setSatisfiedTypes(satisfiedTypes52); }\n\n }\n break;\n\n }\n\n\n // /Users/bastien/Dev/ceylon/ceylon-spec/Ceylon.g:393:7: ( classBody | SEMICOLON )\n int alt26=2;\n int LA26_0 = input.LA(1);\n\n if ( (LA26_0==LBRACE) ) {\n alt26=1;\n }\n else if ( (LA26_0==SEMICOLON) ) {\n alt26=2;\n }\n else {\n if (state.backtracking>0) {state.failed=true; return objectExpression;}\n NoViableAltException nvae =\n new NoViableAltException(\"\", 26, 0, input);\n\n throw nvae;\n\n }\n switch (alt26) {\n case 1 :\n // /Users/bastien/Dev/ceylon/ceylon-spec/Ceylon.g:394:9: classBody\n {\n pushFollow(FOLLOW_classBody_in_objectExpression2181);\n classBody53=classBody();\n\n state._fsp--;\n if (state.failed) return objectExpression;\n\n if ( state.backtracking==0 ) { objectExpression.setClassBody(classBody53); }\n\n }\n break;\n case 2 :\n // /Users/bastien/Dev/ceylon/ceylon-spec/Ceylon.g:396:11: SEMICOLON\n {\n if ( state.backtracking==0 ) { displayRecognitionError(getTokenNames(), \n new MismatchedTokenException(LBRACE, input)); }\n\n SEMICOLON54=(Token)match(input,SEMICOLON,FOLLOW_SEMICOLON_in_objectExpression2213); if (state.failed) return objectExpression;\n\n if ( state.backtracking==0 ) { objectExpression.setEndToken(SEMICOLON54); }\n\n }\n break;\n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n\n finally {\n \t// do for sure before leaving\n }\n return objectExpression;\n }", "title": "" }, { "docid": "08b1ae9ed25f545acbf0ba488ee53575", "score": "0.50091475", "text": "ASTType getSuperClass();", "title": "" }, { "docid": "7b8c5ab36ba245ed3963be6b4f338ee3", "score": "0.5006895", "text": "public final Type visitNewClassExpression(final GNode n) {\n assrt(n, null == n.get(4), \"anonymous classes not yet implemented\");\n dispatch(n.getNode(0));\n final Type result = processTypeName(n.getGeneric(2));\n if (result.isError()\n || !assrt(n.getGeneric(2), result.isClass(), \"can only instantiate class types\")\n || !assrt(n.getGeneric(2), !hasModifier(result, \"abstract\"), \"cannot instantiate abstract type\"))\n return setType(n, ErrorT.TYPE);\n final List<Type> actuals = JavaEntities.typeList((List)dispatch(n.getNode(3)));\n final Type constructor = JavaEntities.typeDotMethod(\n _table, classpath(), result, false, JavaEntities.typeToSimpleName(result), actuals);\n if (null == constructor) {\n _runtime.error(\"could not find constructor\", n);\n setType(n.getGeneric(3), ErrorT.TYPE);\n } else {\n setType(n.getGeneric(3), constructor);\n }\n return setType(n, result);\n }", "title": "" }, { "docid": "5e36a415754f7567deda1bf73effdabe", "score": "0.4980811", "text": "public final void rule__Entity__RuntimeTypeAssignment_1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.applause.applausedsl.ui/src-gen/org/applause/applausedsl/ui/contentassist/antlr/internal/InternalApplauseDsl.g:8141:1: ( ( ( 'class' ) ) )\n // ../org.applause.applausedsl.ui/src-gen/org/applause/applausedsl/ui/contentassist/antlr/internal/InternalApplauseDsl.g:8142:1: ( ( 'class' ) )\n {\n // ../org.applause.applausedsl.ui/src-gen/org/applause/applausedsl/ui/contentassist/antlr/internal/InternalApplauseDsl.g:8142:1: ( ( 'class' ) )\n // ../org.applause.applausedsl.ui/src-gen/org/applause/applausedsl/ui/contentassist/antlr/internal/InternalApplauseDsl.g:8143:1: ( 'class' )\n {\n before(grammarAccess.getEntityAccess().getRuntimeTypeClassKeyword_1_0()); \n // ../org.applause.applausedsl.ui/src-gen/org/applause/applausedsl/ui/contentassist/antlr/internal/InternalApplauseDsl.g:8144:1: ( 'class' )\n // ../org.applause.applausedsl.ui/src-gen/org/applause/applausedsl/ui/contentassist/antlr/internal/InternalApplauseDsl.g:8145:1: 'class'\n {\n before(grammarAccess.getEntityAccess().getRuntimeTypeClassKeyword_1_0()); \n match(input,33,FOLLOW_33_in_rule__Entity__RuntimeTypeAssignment_117060); \n after(grammarAccess.getEntityAccess().getRuntimeTypeClassKeyword_1_0()); \n\n }\n\n after(grammarAccess.getEntityAccess().getRuntimeTypeClassKeyword_1_0()); \n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "d346f227032e4d656dd0984626c732e9", "score": "0.49638796", "text": "private void handleClassLiteral(polyglot.ast.ClassBody cBody) {\n ClassLiteralChecker classLitChecker = new ClassLiteralChecker();\n cBody.visit(classLitChecker);\n ArrayList<Node> classLitList = classLitChecker.getList();\n\n if (!classLitList.isEmpty()) {\n\n soot.SootClass addToClass = sootClass;\n if (addToClass.isInterface()) {\n addToClass = getSpecialInterfaceAnonClass(addToClass);\n }\n\n // add class$ meth\n String methodName = \"class$\";\n soot.Type methodRetType = soot.RefType.v(\"java.lang.Class\");\n ArrayList paramTypes = new ArrayList();\n paramTypes.add(soot.RefType.v(\"java.lang.String\"));\n soot.SootMethod sootMethod = Scene.v().makeSootMethod(methodName, paramTypes, methodRetType, soot.Modifier.STATIC);\n ClassLiteralMethodSource mSrc = new ClassLiteralMethodSource();\n sootMethod.setSource(mSrc);\n\n if (!addToClass.declaresMethod(methodName, paramTypes, methodRetType)) {\n addToClass.addMethod(sootMethod);\n sootMethod.addTag(new soot.tagkit.SyntheticTag());\n }\n\n // add fields for all non prim class lits\n Iterator<Node> classLitIt = classLitList.iterator();\n while (classLitIt.hasNext()) {\n polyglot.ast.ClassLit classLit = (polyglot.ast.ClassLit) classLitIt.next();\n\n // field\n String fieldName = Util.getFieldNameForClassLit(classLit.typeNode().type());\n soot.Type fieldType = soot.RefType.v(\"java.lang.Class\");\n\n soot.SootField sootField = Scene.v().makeSootField(fieldName, fieldType, soot.Modifier.STATIC);\n if (!addToClass.declaresField(fieldName, fieldType)) {\n addToClass.addField(sootField);\n sootField.addTag(new soot.tagkit.SyntheticTag());\n }\n }\n }\n }", "title": "" }, { "docid": "5a6e1fc4f7be7d5652217fa0d27f6cb6", "score": "0.4954491", "text": "protected SarlClass clazz(String string) throws Exception {\n\t\tList<XtendTypeDeclaration> decls = file(string).getXtendTypes();\n\t\treturn (SarlClass) decls.get(decls.size() - 1);\n\t}", "title": "" }, { "docid": "bdd6cfcdeb284affe677d02efafc922d", "score": "0.49435306", "text": "static final public void ClassDeclaration() throws ParseError {\r\nToken t;\r\n label_3:\r\n while (true) {\r\n if (jj_mask_6[getToken(1).kind]) {\r\n ;\r\n } else {\r\n jj_expLA1[6] = jj_gen;\r\n break label_3;\r\n }\r\n if (jj_mask_9[getToken(1).kind]) {\r\n jj_consume_token(ABSTRACT);\r\n } else {\r\n jj_expLA1[9] = jj_gen;\r\n if (jj_mask_8[getToken(1).kind]) {\r\n jj_consume_token(FINAL);\r\n } else {\r\n jj_expLA1[8] = jj_gen;\r\n if (jj_mask_7[getToken(1).kind]) {\r\n jj_consume_token(PUBLIC);\r\n } else {\r\n jj_expLA1[7] = jj_gen;\r\n jj_consume_token(-1);\r\n throw new ParseError();\r\n }\r\n }\r\n }\r\n try {\r\nt = getToken(0);\r\n setCModifier(t.image);\r\n} finally {\r\n}\r\n }\r\n UnmodifiedCDeclaration();\r\n }", "title": "" }, { "docid": "fa65b58bc13c08c03a96242ad25da586", "score": "0.4941287", "text": "public PsiCompatibleCeylonParser.unqualifiedClass_return unqualifiedClass() throws RecognitionException {\n PsiCompatibleCeylonParser.unqualifiedClass_return retval = new PsiCompatibleCeylonParser.unqualifiedClass_return();\n retval.start = input.LT(1);\n\n\n Token m3=null;\n PsiCompatibleCeylonParser.typeNameWithArguments_return t0 =null;\n\n PsiCompatibleCeylonParser.typeNameWithArguments_return t3 =null;\n\n\n BaseType bt = null;\n QualifiedType qt = null; \n try {\n // /Users/bastien/Dev/ceylon/ceylon-spec/Ceylon.g:1035:5: (t0= typeNameWithArguments (m3= MEMBER_OP (t3= typeNameWithArguments )? )? )\n // /Users/bastien/Dev/ceylon/ceylon-spec/Ceylon.g:1035:7: t0= typeNameWithArguments (m3= MEMBER_OP (t3= typeNameWithArguments )? )?\n {\n pushFollow(FOLLOW_typeNameWithArguments_in_unqualifiedClass6772);\n t0=typeNameWithArguments();\n\n state._fsp--;\n if (state.failed) return retval;\n\n if ( state.backtracking==0 ) { bt = new BaseType(null);\n bt.setIdentifier((t0!=null?t0.identifier:null));\n if ((t0!=null?t0.typeArgumentList:null)!=null)\n bt.setTypeArgumentList((t0!=null?t0.typeArgumentList:null));\n retval.type =bt; \n retval.expression = new ExtendedTypeExpression(null);\n retval.expression.setExtendedType(retval.type); }\n\n // /Users/bastien/Dev/ceylon/ceylon-spec/Ceylon.g:1043:7: (m3= MEMBER_OP (t3= typeNameWithArguments )? )?\n int alt95=2;\n int LA95_0 = input.LA(1);\n\n if ( (LA95_0==MEMBER_OP) ) {\n alt95=1;\n }\n switch (alt95) {\n case 1 :\n // /Users/bastien/Dev/ceylon/ceylon-spec/Ceylon.g:1044:9: m3= MEMBER_OP (t3= typeNameWithArguments )?\n {\n m3=(Token)match(input,MEMBER_OP,FOLLOW_MEMBER_OP_in_unqualifiedClass6801); if (state.failed) return retval;\n\n if ( state.backtracking==0 ) { qt = new QualifiedType(null);\n qt.setOuterType(retval.type);\n qt.setEndToken(m3); \n retval.type =qt; }\n\n // /Users/bastien/Dev/ceylon/ceylon-spec/Ceylon.g:1049:9: (t3= typeNameWithArguments )?\n int alt94=2;\n int LA94_0 = input.LA(1);\n\n if ( (LA94_0==UIDENTIFIER) ) {\n alt94=1;\n }\n switch (alt94) {\n case 1 :\n // /Users/bastien/Dev/ceylon/ceylon-spec/Ceylon.g:1050:11: t3= typeNameWithArguments\n {\n pushFollow(FOLLOW_typeNameWithArguments_in_unqualifiedClass6835);\n t3=typeNameWithArguments();\n\n state._fsp--;\n if (state.failed) return retval;\n\n if ( state.backtracking==0 ) { if ((t3!=null?t3.identifier:null)!=null) {\n qt.setEndToken(null);\n qt.setIdentifier((t3!=null?t3.identifier:null));\n }\n if ((t3!=null?t3.typeArgumentList:null)!=null)\n qt.setTypeArgumentList((t3!=null?t3.typeArgumentList:null));\n retval.expression = new ExtendedTypeExpression(null);\n retval.expression.setExtendedType(retval.type); }\n\n }\n break;\n\n }\n\n\n }\n break;\n\n }\n\n\n }\n\n retval.stop = input.LT(-1);\n\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n\n finally {\n \t// do for sure before leaving\n }\n return retval;\n }", "title": "" }, { "docid": "8ea0437e4b27bcf51a41a29ab175221e", "score": "0.49279997", "text": "public ClassSpecification parseClassSpecificationArguments()\n throws ParseException, IOException {\n // Clear the annotation type.\n String annotationType = null;\n\n // Clear the class access modifiers.\n int requiredSetClassAccessFlags = 0;\n int requiredUnsetClassAccessFlags = 0;\n\n // Parse the class annotations and access modifiers until the class keyword.\n while (!AtlasProguardConstants.CLASS_KEYWORD.equals(nextWord)) {\n // Strip the negating sign, if any.\n boolean negated =\n nextWord.startsWith(AtlasProguardConstants.NEGATOR_KEYWORD);\n\n String strippedWord = negated ?\n nextWord.substring(1) :\n nextWord;\n\n // Parse the class access modifiers.\n int accessFlag =\n strippedWord.equals(JavaConstants.ACC_PUBLIC) ? ClassConstants.ACC_PUBLIC :\n strippedWord.equals(JavaConstants.ACC_FINAL) ? ClassConstants.ACC_FINAL :\n strippedWord.equals(JavaConstants.ACC_INTERFACE) ? ClassConstants.ACC_INTERFACE :\n strippedWord.equals(JavaConstants.ACC_ABSTRACT) ? ClassConstants.ACC_ABSTRACT :\n strippedWord.equals(JavaConstants.ACC_SYNTHETIC) ? ClassConstants.ACC_SYNTHETIC :\n strippedWord.equals(JavaConstants.ACC_ANNOTATION) ? ClassConstants.ACC_ANNOTATTION :\n strippedWord.equals(JavaConstants.ACC_ENUM) ? ClassConstants.ACC_ENUM :\n unknownAccessFlag();\n\n // Is it an annotation modifier?\n if (accessFlag == ClassConstants.ACC_ANNOTATTION) {\n // Already read the next word.\n readNextWord(\"annotation type or keyword '\" + JavaConstants.ACC_INTERFACE + \"'\",\n false, false);\n\n // Is the next word actually an annotation type?\n if (!nextWord.equals(JavaConstants.ACC_INTERFACE) &&\n !nextWord.equals(JavaConstants.ACC_ENUM) &&\n !nextWord.equals(AtlasProguardConstants.CLASS_KEYWORD)) {\n // Parse the annotation type.\n annotationType =\n ListUtil.commaSeparatedString(\n parseCommaSeparatedList(\"annotation type\",\n false, false, false, false, true, false, false, true, null), false);\n\n // Continue parsing the access modifier that we just read\n // in the next cycle.\n continue;\n }\n\n // Otherwise just handle the annotation modifier.\n }\n\n if (!negated) {\n requiredSetClassAccessFlags |= accessFlag;\n } else {\n requiredUnsetClassAccessFlags |= accessFlag;\n }\n\n if ((requiredSetClassAccessFlags &\n requiredUnsetClassAccessFlags) != 0) {\n throw new ParseException(\"Conflicting class access modifiers for '\" + strippedWord +\n \"' before \" + reader.locationDescription());\n }\n\n if (strippedWord.equals(JavaConstants.ACC_INTERFACE) ||\n strippedWord.equals(JavaConstants.ACC_ENUM) ||\n strippedWord.equals(AtlasProguardConstants.CLASS_KEYWORD)) {\n // The interface or enum keyword. Stop parsing the class flags.\n break;\n }\n\n // Should we read the next word?\n if (accessFlag != ClassConstants.ACC_ANNOTATTION) {\n readNextWord(\"keyword '\" + AtlasProguardConstants.CLASS_KEYWORD +\n \"', '\" + JavaConstants.ACC_INTERFACE +\n \"', or '\" + JavaConstants.ACC_ENUM + \"'\",\n false, true);\n }\n }\n\n // Parse the class name part.\n String externalClassName =\n ListUtil.commaSeparatedString(\n parseCommaSeparatedList(\"class name or interface name\",\n true, false, false, false, true, false, false, false, null), false);\n\n // For backward compatibility, allow a single \"*\" wildcard to match any\n // class.\n String className = AtlasProguardConstants.ANY_CLASS_KEYWORD.equals(externalClassName) ?\n null :\n ClassUtil.internalClassName(externalClassName);\n\n // Clear the annotation type and the class name of the extends part.\n String extendsAnnotationType = null;\n String extendsClassName = null;\n\n if (!configurationEnd()) {\n // Parse 'implements ...' or 'extends ...' part, if any.\n if (AtlasProguardConstants.IMPLEMENTS_KEYWORD.equals(nextWord) ||\n AtlasProguardConstants.EXTENDS_KEYWORD.equals(nextWord)) {\n readNextWord(\"class name or interface name\", false, true);\n\n // Parse the annotation type, if any.\n if (AtlasProguardConstants.ANNOTATION_KEYWORD.equals(nextWord)) {\n extendsAnnotationType =\n ListUtil.commaSeparatedString(\n parseCommaSeparatedList(\"annotation type\",\n true, false, false, false, true, false, false, true, null), false);\n }\n\n String externalExtendsClassName =\n ListUtil.commaSeparatedString(\n parseCommaSeparatedList(\"class name or interface name\",\n false, false, false, false, true, false, false, false, null), false);\n\n extendsClassName = AtlasProguardConstants.ANY_CLASS_KEYWORD.equals(externalExtendsClassName) ?\n null :\n ClassUtil.internalClassName(externalExtendsClassName);\n }\n }\n\n // Create the basic class specification.\n ClassSpecification classSpecification =\n new ClassSpecification(lastComments,\n requiredSetClassAccessFlags,\n requiredUnsetClassAccessFlags,\n annotationType,\n className,\n extendsAnnotationType,\n extendsClassName);\n\n // Now add any class members to this class specification.\n if (!configurationEnd()) {\n // Check the class member opening part.\n if (!AtlasProguardConstants.OPEN_KEYWORD.equals(nextWord)) {\n throw new ParseException(\"Expecting opening '\" + AtlasProguardConstants.OPEN_KEYWORD +\n \"' at \" + reader.locationDescription());\n }\n\n // Parse all class members.\n while (true) {\n readNextWord(\"class member description\" +\n \" or closing '\" + AtlasProguardConstants.CLOSE_KEYWORD + \"'\",\n false, true);\n\n if (nextWord.equals(AtlasProguardConstants.CLOSE_KEYWORD)) {\n // The closing brace. Stop parsing the class members.\n readNextWord();\n\n break;\n }\n\n parseMemberSpecificationArguments(externalClassName,\n classSpecification);\n }\n }\n\n return classSpecification;\n }", "title": "" }, { "docid": "9e01df4ba935ddd16d83d4a6d36345a7", "score": "0.4912538", "text": "JClass annotationType();", "title": "" }, { "docid": "4503f2973fc82bb4ece02dc099fb41f6", "score": "0.49055475", "text": "public final GalaxyXDefinitionParser.class_decl_return class_decl() throws RecognitionException {\r\n GalaxyXDefinitionParser.class_decl_return retval = new GalaxyXDefinitionParser.class_decl_return();\r\n retval.start = input.LT(1);\r\n int class_decl_StartIndex = input.index();\r\n CommonTree root_0 = null;\r\n\r\n Token CLASS12=null;\r\n Token IDENTIFIER13=null;\r\n Token EXTENDS14=null;\r\n Token IDENTIFIER15=null;\r\n Token COLON16=null;\r\n Token END21=null;\r\n Token CLASS22=null;\r\n GalaxyXDefinitionParser.modifier_return modifier11 = null;\r\n\r\n GalaxyXDefinitionParser.field_decl_return field_decl17 = null;\r\n\r\n GalaxyXDefinitionParser.function_decl_return function_decl18 = null;\r\n\r\n GalaxyXDefinitionParser.constructor_decl_return constructor_decl19 = null;\r\n\r\n GalaxyXDefinitionParser.destructor_decl_return destructor_decl20 = null;\r\n\r\n\r\n CommonTree CLASS12_tree=null;\r\n CommonTree IDENTIFIER13_tree=null;\r\n CommonTree EXTENDS14_tree=null;\r\n CommonTree IDENTIFIER15_tree=null;\r\n CommonTree COLON16_tree=null;\r\n CommonTree END21_tree=null;\r\n CommonTree CLASS22_tree=null;\r\n RewriteRuleTokenStream stream_COLON=new RewriteRuleTokenStream(adaptor,\"token COLON\");\r\n RewriteRuleTokenStream stream_CLASS=new RewriteRuleTokenStream(adaptor,\"token CLASS\");\r\n RewriteRuleTokenStream stream_END=new RewriteRuleTokenStream(adaptor,\"token END\");\r\n RewriteRuleTokenStream stream_EXTENDS=new RewriteRuleTokenStream(adaptor,\"token EXTENDS\");\r\n RewriteRuleTokenStream stream_IDENTIFIER=new RewriteRuleTokenStream(adaptor,\"token IDENTIFIER\");\r\n RewriteRuleSubtreeStream stream_modifier=new RewriteRuleSubtreeStream(adaptor,\"rule modifier\");\r\n RewriteRuleSubtreeStream stream_destructor_decl=new RewriteRuleSubtreeStream(adaptor,\"rule destructor_decl\");\r\n RewriteRuleSubtreeStream stream_constructor_decl=new RewriteRuleSubtreeStream(adaptor,\"rule constructor_decl\");\r\n RewriteRuleSubtreeStream stream_field_decl=new RewriteRuleSubtreeStream(adaptor,\"rule field_decl\");\r\n RewriteRuleSubtreeStream stream_function_decl=new RewriteRuleSubtreeStream(adaptor,\"rule function_decl\");\r\n try {\r\n if ( state.backtracking>0 && alreadyParsedRule(input, 3) ) { return retval; }\r\n // C:\\\\Users\\\\Timo\\\\EclipseProjects\\\\GalaxyX\\\\build\\\\classes\\\\com\\\\galaxyx\\\\parser\\\\GalaxyXDefinitionParser.g:61:2: ( ( modifier )? CLASS IDENTIFIER ( EXTENDS IDENTIFIER )? COLON ( field_decl | function_decl | constructor_decl | destructor_decl )* END CLASS -> ^( CLASS ( modifier )? IDENTIFIER ) )\r\n // C:\\\\Users\\\\Timo\\\\EclipseProjects\\\\GalaxyX\\\\build\\\\classes\\\\com\\\\galaxyx\\\\parser\\\\GalaxyXDefinitionParser.g:61:4: ( modifier )? CLASS IDENTIFIER ( EXTENDS IDENTIFIER )? COLON ( field_decl | function_decl | constructor_decl | destructor_decl )* END CLASS\r\n {\r\n // C:\\\\Users\\\\Timo\\\\EclipseProjects\\\\GalaxyX\\\\build\\\\classes\\\\com\\\\galaxyx\\\\parser\\\\GalaxyXDefinitionParser.g:61:4: ( modifier )?\r\n int alt3=2;\r\n int LA3_0 = input.LA(1);\r\n\r\n if ( ((LA3_0>=PRIVATE && LA3_0<=PUBLIC)) ) {\r\n alt3=1;\r\n }\r\n switch (alt3) {\r\n case 1 :\r\n // C:\\\\Users\\\\Timo\\\\EclipseProjects\\\\GalaxyX\\\\build\\\\classes\\\\com\\\\galaxyx\\\\parser\\\\GalaxyXDefinitionParser.g:0:0: modifier\r\n {\r\n pushFollow(FOLLOW_modifier_in_class_decl217);\r\n modifier11=modifier();\r\n\r\n state._fsp--;\r\n if (state.failed) return retval;\r\n if ( state.backtracking==0 ) stream_modifier.add(modifier11.getTree());\r\n\r\n }\r\n break;\r\n\r\n }\r\n\r\n CLASS12=(Token)match(input,CLASS,FOLLOW_CLASS_in_class_decl220); if (state.failed) return retval; \r\n if ( state.backtracking==0 ) stream_CLASS.add(CLASS12);\r\n\r\n IDENTIFIER13=(Token)match(input,IDENTIFIER,FOLLOW_IDENTIFIER_in_class_decl222); if (state.failed) return retval; \r\n if ( state.backtracking==0 ) stream_IDENTIFIER.add(IDENTIFIER13);\r\n\r\n // C:\\\\Users\\\\Timo\\\\EclipseProjects\\\\GalaxyX\\\\build\\\\classes\\\\com\\\\galaxyx\\\\parser\\\\GalaxyXDefinitionParser.g:61:31: ( EXTENDS IDENTIFIER )?\r\n int alt4=2;\r\n int LA4_0 = input.LA(1);\r\n\r\n if ( (LA4_0==EXTENDS) ) {\r\n alt4=1;\r\n }\r\n switch (alt4) {\r\n case 1 :\r\n // C:\\\\Users\\\\Timo\\\\EclipseProjects\\\\GalaxyX\\\\build\\\\classes\\\\com\\\\galaxyx\\\\parser\\\\GalaxyXDefinitionParser.g:61:32: EXTENDS IDENTIFIER\r\n {\r\n EXTENDS14=(Token)match(input,EXTENDS,FOLLOW_EXTENDS_in_class_decl225); if (state.failed) return retval; \r\n if ( state.backtracking==0 ) stream_EXTENDS.add(EXTENDS14);\r\n\r\n IDENTIFIER15=(Token)match(input,IDENTIFIER,FOLLOW_IDENTIFIER_in_class_decl227); if (state.failed) return retval; \r\n if ( state.backtracking==0 ) stream_IDENTIFIER.add(IDENTIFIER15);\r\n\r\n\r\n }\r\n break;\r\n\r\n }\r\n\r\n COLON16=(Token)match(input,COLON,FOLLOW_COLON_in_class_decl231); if (state.failed) return retval; \r\n if ( state.backtracking==0 ) stream_COLON.add(COLON16);\r\n\r\n // C:\\\\Users\\\\Timo\\\\EclipseProjects\\\\GalaxyX\\\\build\\\\classes\\\\com\\\\galaxyx\\\\parser\\\\GalaxyXDefinitionParser.g:62:4: ( field_decl | function_decl | constructor_decl | destructor_decl )*\r\n loop5:\r\n do {\r\n int alt5=5;\r\n alt5 = dfa5.predict(input);\r\n switch (alt5) {\r\n \tcase 1 :\r\n \t // C:\\\\Users\\\\Timo\\\\EclipseProjects\\\\GalaxyX\\\\build\\\\classes\\\\com\\\\galaxyx\\\\parser\\\\GalaxyXDefinitionParser.g:62:5: field_decl\r\n \t {\r\n \t pushFollow(FOLLOW_field_decl_in_class_decl237);\r\n \t field_decl17=field_decl();\r\n\r\n \t state._fsp--;\r\n \t if (state.failed) return retval;\r\n \t if ( state.backtracking==0 ) stream_field_decl.add(field_decl17.getTree());\r\n\r\n \t }\r\n \t break;\r\n \tcase 2 :\r\n \t // C:\\\\Users\\\\Timo\\\\EclipseProjects\\\\GalaxyX\\\\build\\\\classes\\\\com\\\\galaxyx\\\\parser\\\\GalaxyXDefinitionParser.g:62:18: function_decl\r\n \t {\r\n \t pushFollow(FOLLOW_function_decl_in_class_decl241);\r\n \t function_decl18=function_decl();\r\n\r\n \t state._fsp--;\r\n \t if (state.failed) return retval;\r\n \t if ( state.backtracking==0 ) stream_function_decl.add(function_decl18.getTree());\r\n\r\n \t }\r\n \t break;\r\n \tcase 3 :\r\n \t // C:\\\\Users\\\\Timo\\\\EclipseProjects\\\\GalaxyX\\\\build\\\\classes\\\\com\\\\galaxyx\\\\parser\\\\GalaxyXDefinitionParser.g:62:34: constructor_decl\r\n \t {\r\n \t pushFollow(FOLLOW_constructor_decl_in_class_decl245);\r\n \t constructor_decl19=constructor_decl();\r\n\r\n \t state._fsp--;\r\n \t if (state.failed) return retval;\r\n \t if ( state.backtracking==0 ) stream_constructor_decl.add(constructor_decl19.getTree());\r\n\r\n \t }\r\n \t break;\r\n \tcase 4 :\r\n \t // C:\\\\Users\\\\Timo\\\\EclipseProjects\\\\GalaxyX\\\\build\\\\classes\\\\com\\\\galaxyx\\\\parser\\\\GalaxyXDefinitionParser.g:62:53: destructor_decl\r\n \t {\r\n \t pushFollow(FOLLOW_destructor_decl_in_class_decl249);\r\n \t destructor_decl20=destructor_decl();\r\n\r\n \t state._fsp--;\r\n \t if (state.failed) return retval;\r\n \t if ( state.backtracking==0 ) stream_destructor_decl.add(destructor_decl20.getTree());\r\n\r\n \t }\r\n \t break;\r\n\r\n \tdefault :\r\n \t break loop5;\r\n }\r\n } while (true);\r\n\r\n END21=(Token)match(input,END,FOLLOW_END_in_class_decl255); if (state.failed) return retval; \r\n if ( state.backtracking==0 ) stream_END.add(END21);\r\n\r\n CLASS22=(Token)match(input,CLASS,FOLLOW_CLASS_in_class_decl257); if (state.failed) return retval; \r\n if ( state.backtracking==0 ) stream_CLASS.add(CLASS22);\r\n\r\n\r\n\r\n // AST REWRITE\r\n // elements: CLASS, modifier, IDENTIFIER\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 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 // 64:3: -> ^( CLASS ( modifier )? IDENTIFIER )\r\n {\r\n // C:\\\\Users\\\\Timo\\\\EclipseProjects\\\\GalaxyX\\\\build\\\\classes\\\\com\\\\galaxyx\\\\parser\\\\GalaxyXDefinitionParser.g:65:3: ^( CLASS ( modifier )? IDENTIFIER )\r\n {\r\n CommonTree root_1 = (CommonTree)adaptor.nil();\r\n root_1 = (CommonTree)adaptor.becomeRoot(stream_CLASS.nextNode(), root_1);\r\n\r\n // C:\\\\Users\\\\Timo\\\\EclipseProjects\\\\GalaxyX\\\\build\\\\classes\\\\com\\\\galaxyx\\\\parser\\\\GalaxyXDefinitionParser.g:65:11: ( modifier )?\r\n if ( stream_modifier.hasNext() ) {\r\n adaptor.addChild(root_1, stream_modifier.nextTree());\r\n\r\n }\r\n stream_modifier.reset();\r\n adaptor.addChild(root_1, stream_IDENTIFIER.nextNode());\r\n\r\n adaptor.addChild(root_0, root_1);\r\n }\r\n\r\n }\r\n\r\n retval.tree = root_0;}\r\n }\r\n\r\n retval.stop = input.LT(-1);\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 finally {\r\n if ( state.backtracking>0 ) { memoize(input, 3, class_decl_StartIndex); }\r\n }\r\n return retval;\r\n }", "title": "" }, { "docid": "cebfb1e6c7cccbc2a6314e1ecd97a0bc", "score": "0.48998648", "text": "public final void rule__ActiveClassDeclaration__Group__2__Impl() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \r\n try {\r\n // ../org.eclipse.papyrus.alf.ui/src-gen/org/eclipse/papyrus/alf/ui/contentassist/antlr/internal/InternalAlf.g:11098:1: ( ( 'class' ) )\r\n // ../org.eclipse.papyrus.alf.ui/src-gen/org/eclipse/papyrus/alf/ui/contentassist/antlr/internal/InternalAlf.g:11099:1: ( 'class' )\r\n {\r\n // ../org.eclipse.papyrus.alf.ui/src-gen/org/eclipse/papyrus/alf/ui/contentassist/antlr/internal/InternalAlf.g:11099:1: ( 'class' )\r\n // ../org.eclipse.papyrus.alf.ui/src-gen/org/eclipse/papyrus/alf/ui/contentassist/antlr/internal/InternalAlf.g:11100:1: 'class'\r\n {\r\n if ( state.backtracking==0 ) {\r\n before(grammarAccess.getActiveClassDeclarationAccess().getClassKeyword_2()); \r\n }\r\n match(input,66,FOLLOW_66_in_rule__ActiveClassDeclaration__Group__2__Impl23727); if (state.failed) return ;\r\n if ( state.backtracking==0 ) {\r\n after(grammarAccess.getActiveClassDeclarationAccess().getClassKeyword_2()); \r\n }\r\n\r\n }\r\n\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }", "title": "" }, { "docid": "5764458c048fa277a6dde4e3b9ec5740", "score": "0.48951122", "text": "@Test\n\tpublic void newInstanceMethodOnClassWithNoParameterConstructor() {\n\t\tJavaFileObject X = inputSource(\n\t\t\t\t\"X\",\n\t\t\t\tlines(\n\t\t\t\t\t\t\"abstract class X<@Reify(String.class) T> {\",\n\t\t\t\t\t\t\" abstract T newT(); \",\n\t\t\t\t\t\t\"} \"\n\t\t\t\t)\n\t\t);\n\t\tJavaFileObject X$String = generatedSource(\n\t\t\t\t\"X$String\",\n\t\t\t\tlines(\n\t\t\t\t\t\t\"public class X$String extends X<String> {\",\n\t\t\t\t\t\t\" @Override \",\n\t\t\t\t\t\t\" String newT() { \",\n\t\t\t\t\t\t\" return new String(); \",\n\t\t\t\t\t\t\" } \",\n\t\t\t\t\t\t\"} \"\n\t\t\t\t)\n\t\t);\n\t\t\n\t\tassertCompilesAndGenerates(X, X$String);\n\t}", "title": "" }, { "docid": "ccccfdf7cf42b79fb8c1f007028d559f", "score": "0.48856556", "text": "Class<? extends T> createClass() throws ClassBuilderException;", "title": "" }, { "docid": "881ad6f7f8cabc75fe2a1e0cd1e420d8", "score": "0.48812637", "text": "public Object visitClassDecl(ClassDecl cd) {\n\t\tprintln(\"ClassDecl:\\t Visiting class '\"+cd.name()+\"'\");\n\n\t\t// If we use the field table here as the top scope, then we do not\n\t\t// need to look in the field table when we resolve NameExpr. Note,\n\t\t// at this time we have not yet rewritten NameExprs which are really\n\t\t// FieldRefs with a null target as we have not resolved anything yet.\n\t\tcurrentScope = cd.fieldTable;\n\t\tcurrentClass = cd;\n\n\t\tHashtable<String, Object> seenClasses = new Hashtable<String, Object>();\n\n\t\t// Check that the superclass is a class.\n\t\tif (cd.superClass() != null) \n\t\t\tif (cd.superClass().myDecl.isInterface())\n\t\t\t\tError.error(cd,\"Class '\" + cd.name() + \"' cannot inherit from interface '\" +\n\t\t\t\t\t\tcd.superClass().myDecl.name() + \"'.\");\n\n\n\n\t\tif (cd.superClass() != null) {\n\t\t\tif (cd.name().equals(cd.superClass().typeName()))\n\t\t\t\tError.error(cd, \"Class '\" + cd.name() + \"' cannot extend itself.\");\n\t\t\t// If a superclass has a private default constructor, the \n\t\t\t// class cannot be extended.\n\t\t\tClassDecl superClass = (ClassDecl)classTable.get(cd.superClass().typeName());\n\t\t\tSymbolTable st = (SymbolTable)superClass.methodTable.get(\"<init>\");\n\t\t\tConstructorDecl ccd = (ConstructorDecl)st.get(\"\");\n\t\t\tif (ccd != null && ccd.getModifiers().isPrivate())\n\t\t\t Error.error(cd, \"Class '\" + superClass.className().getname() + \"' cannot be extended because it has a private default constructor.\");\n\t\t}\n\t\t\n\t\t// Visit the children\n\t\tsuper.visitClassDecl(cd);\n\t\t\t\n\t\tcurrentScope = null;\n\n\t\t// Check that the interfaces implemented are interfaces.\n\t\tfor (int i=0; i<cd.interfaces().nchildren; i++) {\n\t\t\tClassType ct = (ClassType)cd.interfaces().children[i];\n\t\t\tif (ct.myDecl.isClass())\n\t\t\t\tError.error(cd,\"Class '\" + cd.name() + \"' cannot implement class '\" + ct.name() + \"'.\");\n\t\t}\n\n\t\tSequence methods = new Sequence();\n\t\t\n\t\tgetClassHierarchyMethods(cd, methods, seenClasses);\n\n\t\tcheckReturnTypesOfIdenticalMethods(methods);\n\n\t\t// If the class is not abstract and not an interface it must implement all\n\t\t// the abstract functions of its superclass(es) and its interfaces.\n\t\tif (!cd.isInterface() && !cd.modifiers.isAbstract()) {\n\t\t\tcheckImplementationOfAbstractClasses(cd, methods);\n\t\t\t// checkImplementationOfAbstractClasses(cd, new Sequence());\n\t\t}\n\t\t// All field names can only be used once in a class hierarchy\n\t\tcheckUniqueFields(new Sequence(), cd);\n\n\t\tcd.allMethods = methods; // now contains only MethodDecls\n\n\t\t// Fill cd.constructors.\n\t\tSymbolTable st = (SymbolTable)cd.methodTable.get(\"<init>\");\n\t\tConstructorDecl cod;\n\t\tif (st != null) {\n\t\t\tfor (Enumeration<Object> e = st.entries.elements() ; \n\t\t\t\t\te.hasMoreElements(); ) {\n\t\t\t\tcod = (ConstructorDecl)e.nextElement();\n\t\t\t\tcd.constructors.append(cod);\n\t\t\t}\n\t\t}\n\n\t\t// needed for rewriting the tree to replace field references\n\t\t// represented by NameExpr.\n\t\tprintln(\"ClassDecl:\\t Performing tree Rewrite on \" + cd.name());\n\t\tnew Rewrite().go(cd, cd);\n\n\t\treturn null;\n\t}", "title": "" }, { "docid": "a6fd1c8ec013fb8fd6313544247d0580", "score": "0.48752943", "text": "public final Type visitClassLiteralExpression(final GNode n) {\n final Type t = (Type)dispatch(n.getNode(0));\n assert t.isError() || JavaEntities.isWrappedClassT(t) || JavaEntities.isWrappedInterfaceT(t) || t.isArray() || JavaEntities.isPrimitiveT(t);\n return setType(n, JavaEntities.tClass(_table));\n }", "title": "" }, { "docid": "97407d5f627fde6c2ef7d284a26a306f", "score": "0.4867437", "text": "Class<? extends E> getExpressionType();", "title": "" }, { "docid": "d19ee81d63478f8b95d5de6cd30b416e", "score": "0.4839716", "text": "public ExpressionTree BASIC_CLASS_EXPRESSION() {\n return b.<ExpressionTree> nonterminal(JavaLexer.BASIC_CLASS_EXPRESSION).is(\n f.basicClassExpression(BASIC_TYPE(), b.zeroOrMore(DIMENSION()), b.token(JavaPunctuator.DOT),\n b.token(JavaKeyword.CLASS)));\n }", "title": "" }, { "docid": "53edf9ce1f4c1de7ea3f2b21f8306c86", "score": "0.48388237", "text": "public ClassArgument createClass() {\n ClassArgument ga = new ClassArgument();\n classes.addElement(ga);\n return ga;\n }", "title": "" }, { "docid": "b767daa1d5f58939fcefa511e7ed2e2e", "score": "0.48349887", "text": "public static AttributeValueExp classattr() {\n/* 345 */ return new ClassAttributeValueExp();\n/* */ }", "title": "" }, { "docid": "d7e37dfa0863f9cf3793525dc8ae21d7", "score": "0.48330858", "text": "public void testFindExtensionRef() {\n\t\tString content =\n\t\t\t\"class base;\\n\" +\n\t\t\t\"endclass\\n\" +\n\t\t\t\"\\n\" +\n\t\t\t\"class extension extends base;\\n\" +\n\t\t\t\"endclass\\n\"\n\t\t\t;\n\t\t\n\t\t\n\t\t\t\t\t\t\n\t}", "title": "" }, { "docid": "31c94195b931549a39101b6c752f044e", "score": "0.48314172", "text": "String getClass_();", "title": "" }, { "docid": "31c94195b931549a39101b6c752f044e", "score": "0.48314172", "text": "String getClass_();", "title": "" }, { "docid": "31c94195b931549a39101b6c752f044e", "score": "0.48314172", "text": "String getClass_();", "title": "" }, { "docid": "1d524c558252f6eb3ed5dae4b2c2bca0", "score": "0.48038945", "text": "org.eclipse.uml2.uml.Class getBase_Class();", "title": "" }, { "docid": "80fc8c448bc1f07c458da2d8581ebbd1", "score": "0.4802954", "text": "Class<T> forClass();", "title": "" }, { "docid": "7e96f28d972a941c7a3988d737bf3b1b", "score": "0.4787302", "text": "@Override\n public String visitShortClassType(Java8Parser.ShortClassTypeContext ctx) {\n String typeArgS = (ctx.typeArguments() != null) ? visit(ctx.typeArguments()) : \"()\";\n return String.format(\"(%s %s)\", ctx.Identifier().getText(), typeArgS);\n }", "title": "" }, { "docid": "54efa7f39faf4f700af7dfea474a4b2e", "score": "0.47554898", "text": "public Class getAlternativeSelectionClass(int nr);", "title": "" }, { "docid": "c3f584fb3be789e467dc57adac4a9a8c", "score": "0.47392103", "text": "Class getClass_();", "title": "" }, { "docid": "367d668ee907072f7ca6029a62c2ef44", "score": "0.47305688", "text": "@Override\n public ClassType substClassType(ClassType t) {\n if (!(t instanceof JL5ClassType)) {\n return t;\n }\n\n if (t instanceof RawClass) {\n // don't substitute raw classes\n return t;\n }\n if (t instanceof JL5SubstClassType) {\n // this case should be impossible\n throw new InternalCompilerError(\"Should have no JL5SubstClassTypes\");\n }\n\n if (t instanceof JL5ParsedClassType) {\n JL5ParsedClassType pct = (JL5ParsedClassType) t;\n JL5TypeSystem ts = (JL5TypeSystem) this.ts;\n List<TypeVariable> typeVars =\n ts.classAndEnclosingTypeVariables(pct);\n // are the type variables of pct actually relevant to this subst? If not, then return the pct.\n boolean typeVarsRelevant = false;\n for (TypeVariable tv : typeVars) {\n if (this.substitutions().containsKey(tv)) {\n typeVarsRelevant = true;\n break;\n }\n }\n if (!typeVarsRelevant) {\n // no parameters to be instantiated!\n return pct;\n }\n\n return new JL5SubstClassType_c(ts, t.position(), pct, this);\n }\n\n throw new InternalCompilerError(\"Don't know how to handle class type \"\n + t.getClass());\n\n }", "title": "" }, { "docid": "566ec05201f9b0d4776e8d8acbc52475", "score": "0.47220823", "text": "public EClass getRuleMetaclass();", "title": "" }, { "docid": "41c75d2a4240dd469b963c274868bd71", "score": "0.47161496", "text": "public ClassLiteral classLiteral() throws RecognitionException {\n ClassLiteral literal = null;\n\n\n Token CLASS_DEFINITION640=null;\n SimpleType ct =null;\n\n\n try {\n // /Users/bastien/Dev/ceylon/ceylon-spec/Ceylon.g:4213:2: ( CLASS_DEFINITION (ct= referencePath )? )\n // /Users/bastien/Dev/ceylon/ceylon-spec/Ceylon.g:4213:4: CLASS_DEFINITION (ct= referencePath )?\n {\n CLASS_DEFINITION640=(Token)match(input,CLASS_DEFINITION,FOLLOW_CLASS_DEFINITION_in_classLiteral27930); if (state.failed) return literal;\n\n if ( state.backtracking==0 ) { literal = new ClassLiteral(null);\n literal.setEndToken(CLASS_DEFINITION640); }\n\n // /Users/bastien/Dev/ceylon/ceylon-spec/Ceylon.g:4216:4: (ct= referencePath )?\n int alt358=2;\n int LA358_0 = input.LA(1);\n\n if ( (LA358_0==LIDENTIFIER||LA358_0==PACKAGE||LA358_0==UIDENTIFIER) ) {\n alt358=1;\n }\n switch (alt358) {\n case 1 :\n // /Users/bastien/Dev/ceylon/ceylon-spec/Ceylon.g:4217:6: ct= referencePath\n {\n pushFollow(FOLLOW_referencePath_in_classLiteral27949);\n ct=referencePath();\n\n state._fsp--;\n if (state.failed) return literal;\n\n if ( state.backtracking==0 ) { literal.setType(ct); \n literal.setEndToken(null); }\n\n }\n break;\n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n\n finally {\n \t// do for sure before leaving\n }\n return literal;\n }", "title": "" }, { "docid": "15aac46932ba364ce2344c4f137567b0", "score": "0.46910095", "text": "@Test\n\tpublic void generateASTInvalidClass(){\n\t\tConcreteParser parser = new ConcreteParser();\n\t\tString code = \"int a;\";\n\t\tCompilationUnit cu = parser.generateAST(code);\n\t\tassertEquals(cu, null);\n\t}", "title": "" }, { "docid": "a2dc4af7334dbde01aa13ff545c09db2", "score": "0.468741", "text": "static Class class$(String paramString)\r\n/* 14: */ {\r\n/* 15: */ try\r\n/* 16: */ {\r\n/* 17: 37 */ return Class.forName(paramString);\r\n/* 18: */ }\r\n/* 19: */ catch (ClassNotFoundException localClassNotFoundException)\r\n/* 20: */ {\r\n/* 21: 37 */ throw new NoClassDefFoundError(localClassNotFoundException.getMessage());\r\n/* 22: */ }\r\n/* 23: */ }", "title": "" }, { "docid": "ec3264d80fc30151fb7bdc06541f76e3", "score": "0.46748966", "text": "String baseClass();", "title": "" }, { "docid": "323978b2c303ae4b8aeb23922137c146", "score": "0.46673128", "text": "IClassResolver getClassResolver();", "title": "" }, { "docid": "2d2a54a96b1e1f3a560602a6a31cfb0d", "score": "0.46609038", "text": "private TypeSpec.Builder createNewClass(String clsName){\n ClassName className = ClassName.bestGuess(clsName);\n ClassName viewBinder = ClassName.get(\"com.silencezwm.openall\", \"IOpenType\");\n\n return TypeSpec.classBuilder(className + \"$$OpenAll\")\n .addModifiers(Modifier.PUBLIC)\n .superclass(className)\n .addSuperinterface(viewBinder);\n }", "title": "" }, { "docid": "471c0747d8880d879fd4c4654bbdf84d", "score": "0.46596935", "text": "DeclarationSpecifiers getSpecifiers();", "title": "" }, { "docid": "71d02f41dc8ff270c5ff06e9f9a471c8", "score": "0.46566674", "text": "public PsiCompatibleCeylonParser.packageQualifiedClass_return packageQualifiedClass() throws RecognitionException {\n PsiCompatibleCeylonParser.packageQualifiedClass_return retval = new PsiCompatibleCeylonParser.packageQualifiedClass_return();\n retval.start = input.LT(1);\n\n\n Token m1=null;\n Token m2=null;\n Token PACKAGE147=null;\n PsiCompatibleCeylonParser.typeNameWithArguments_return t1 =null;\n\n PsiCompatibleCeylonParser.typeNameWithArguments_return t2 =null;\n\n\n BaseType bt = null;\n QualifiedType qt = null; \n try {\n // /Users/bastien/Dev/ceylon/ceylon-spec/Ceylon.g:995:5: ( PACKAGE (m1= MEMBER_OP (t1= typeNameWithArguments (m2= MEMBER_OP t2= typeNameWithArguments )? )? )? )\n // /Users/bastien/Dev/ceylon/ceylon-spec/Ceylon.g:995:7: PACKAGE (m1= MEMBER_OP (t1= typeNameWithArguments (m2= MEMBER_OP t2= typeNameWithArguments )? )? )?\n {\n PACKAGE147=(Token)match(input,PACKAGE,FOLLOW_PACKAGE_in_packageQualifiedClass6561); if (state.failed) return retval;\n\n if ( state.backtracking==0 ) { bt = new BaseType(PACKAGE147);\n bt.setPackageQualified(true);\n retval.type =bt; }\n\n // /Users/bastien/Dev/ceylon/ceylon-spec/Ceylon.g:999:7: (m1= MEMBER_OP (t1= typeNameWithArguments (m2= MEMBER_OP t2= typeNameWithArguments )? )? )?\n int alt93=2;\n int LA93_0 = input.LA(1);\n\n if ( (LA93_0==MEMBER_OP) ) {\n alt93=1;\n }\n switch (alt93) {\n case 1 :\n // /Users/bastien/Dev/ceylon/ceylon-spec/Ceylon.g:1000:9: m1= MEMBER_OP (t1= typeNameWithArguments (m2= MEMBER_OP t2= typeNameWithArguments )? )?\n {\n m1=(Token)match(input,MEMBER_OP,FOLLOW_MEMBER_OP_in_packageQualifiedClass6589); if (state.failed) return retval;\n\n if ( state.backtracking==0 ) { bt.setEndToken(m1); }\n\n // /Users/bastien/Dev/ceylon/ceylon-spec/Ceylon.g:1002:9: (t1= typeNameWithArguments (m2= MEMBER_OP t2= typeNameWithArguments )? )?\n int alt92=2;\n int LA92_0 = input.LA(1);\n\n if ( (LA92_0==UIDENTIFIER) ) {\n alt92=1;\n }\n switch (alt92) {\n case 1 :\n // /Users/bastien/Dev/ceylon/ceylon-spec/Ceylon.g:1003:11: t1= typeNameWithArguments (m2= MEMBER_OP t2= typeNameWithArguments )?\n {\n pushFollow(FOLLOW_typeNameWithArguments_in_packageQualifiedClass6623);\n t1=typeNameWithArguments();\n\n state._fsp--;\n if (state.failed) return retval;\n\n if ( state.backtracking==0 ) { if ((t1!=null?t1.identifier:null)!=null) {\n bt.setEndToken(null);\n bt.setIdentifier((t1!=null?t1.identifier:null));\n }\n if ((t1!=null?t1.typeArgumentList:null)!=null)\n bt.setTypeArgumentList((t1!=null?t1.typeArgumentList:null));\n retval.expression = new ExtendedTypeExpression(null);\n retval.expression.setExtendedType(retval.type); }\n\n // /Users/bastien/Dev/ceylon/ceylon-spec/Ceylon.g:1012:11: (m2= MEMBER_OP t2= typeNameWithArguments )?\n int alt91=2;\n int LA91_0 = input.LA(1);\n\n if ( (LA91_0==MEMBER_OP) ) {\n alt91=1;\n }\n switch (alt91) {\n case 1 :\n // /Users/bastien/Dev/ceylon/ceylon-spec/Ceylon.g:1013:13: m2= MEMBER_OP t2= typeNameWithArguments\n {\n m2=(Token)match(input,MEMBER_OP,FOLLOW_MEMBER_OP_in_packageQualifiedClass6664); if (state.failed) return retval;\n\n if ( state.backtracking==0 ) { qt = new QualifiedType(null);\n qt.setOuterType(retval.type);\n qt.setEndToken(m2); \n retval.type =qt; }\n\n pushFollow(FOLLOW_typeNameWithArguments_in_packageQualifiedClass6694);\n t2=typeNameWithArguments();\n\n state._fsp--;\n if (state.failed) return retval;\n\n if ( state.backtracking==0 ) { if ((t2!=null?t2.identifier:null)!=null) {\n qt.setEndToken(null);\n qt.setIdentifier((t2!=null?t2.identifier:null));\n }\n if ((t2!=null?t2.typeArgumentList:null)!=null)\n qt.setTypeArgumentList((t2!=null?t2.typeArgumentList:null));\n retval.expression = new ExtendedTypeExpression(null);\n retval.expression.setExtendedType(retval.type); }\n\n }\n break;\n\n }\n\n\n }\n break;\n\n }\n\n\n }\n break;\n\n }\n\n\n }\n\n retval.stop = input.LT(-1);\n\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n\n finally {\n \t// do for sure before leaving\n }\n return retval;\n }", "title": "" }, { "docid": "95cb6f13dbf01a28c79a6c19f00ccf22", "score": "0.46552724", "text": "Class<? extends IdentifiableObject> classForType(String type);", "title": "" }, { "docid": "451d611f3430bfa3b34e80530fee5289", "score": "0.46392542", "text": "static final public ClassMember ClassMember() throws ParseException {\n NodeChoice n0 = null;\n MethodDeclaration n1 = null;\n ConstantDeclaration n2 = null;\n UpdatableFieldDeclaration n3 = null;\n if (jj_2_3(2147483647)) {\n n1 = MethodDeclaration();\n n0 = new NodeChoice(n1, 0, 3);\n } else if (jj_2_4(2)) {\n n2 = ConstantDeclaration();\n n0 = new NodeChoice(n2, 1, 3);\n } else {\n switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n case PUBLIC:\n n3 = UpdatableFieldDeclaration();\n n0 = new NodeChoice(n3, 2, 3);\n break;\n default:\n jj_la1[2] = jj_gen;\n jj_consume_token(-1);\n throw new ParseException();\n }\n }\n {if (true) return new ClassMember(n0);}\n throw new Error(\"Missing return statement in function\");\n }", "title": "" }, { "docid": "166eae8f33c6d4f8a8045add59a7ddca", "score": "0.4636335", "text": "public interface ExportedG2Class {\n\n}", "title": "" }, { "docid": "89298d84c5fea21c83b25fdc838396b1", "score": "0.4635529", "text": "public String getSuperClassName(ClassFile cFile);", "title": "" }, { "docid": "59fa04a8fe3ba53bfee7ca434b652e9f", "score": "0.46340224", "text": "@Override\n\tpublic MatchElement getEnclosingClassFromDeclaration(MatchElement statement) {\n\t\treturn getMethodFromDeclaration(statement).append(Pair.create(\n\t\t\t\tnew EdgeImpl(outerBlockToEnclClass).setDirection(EdgeDirection.OUTGOING), new NodeVar(\"enclClass\")));\n\t}", "title": "" }, { "docid": "39e427f636cdb8059250de5a1e5d1416", "score": "0.46267506", "text": "public JClass createSourceCode\n (SimpleType simpleType, SGStateInfo sgState)\n {\n if ( SimpleTypesFactory.isBuiltInType( simpleType.getTypeCode() ) ) {\n String err = \"You cannot construct a ClassInfo for a \" +\n \"built-in SimpleType.\";\n throw new IllegalArgumentException(err);\n }\n if (sgState == null) {\n throw new IllegalArgumentException(\"SGStateInfo cannot be null.\");\n }\n \n //-- Unions are currently processed as the built-in\n //-- basetype for the member types of the Union, so\n //-- do nothing for now...however we can warn\n //-- user that no validation will be peformed on the\n //-- union\n if (simpleType.getStructureType() == Structure.UNION) {\n if (!sgState.getSuppressNonFatalWarnings()) {\n String message = \"warning: support for unions is incomplete.\";\n sgState.getDialog().notify(message);\n }\n return null;\n }\n \n ClassInfo cInfo = sgState.resolve(simpleType);\n if (cInfo != null) return cInfo.getJClass();\n \n boolean enumeration = false;\n \n //-- class name information\n String typeName = simpleType.getName();\n if (typeName == null) {\n Structure struct = simpleType.getParent();\n FactoryState fstate = null;\n switch (struct.getStructureType()) {\n case Structure.ATTRIBUTE:\n typeName = ((AttributeDecl)struct).getName();\n fstate = sgState.getCurrentFactoryState();\n break;\n case Structure.ELEMENT:\n typeName = ((ElementDecl)struct).getName();\n break;\n }\n //-- In case of naming collision we append current class name\n if (fstate != null) {\n typeName = JavaNaming.toJavaClassName(typeName);\n Structure attrDeclParent = ((AttributeDecl)struct).getParent();\n if (attrDeclParent != null && attrDeclParent.getStructureType() == Structure.ATTRIBUTE_GROUP) {\n typeName = JavaNaming.toJavaClassName(((AttributeGroupDecl) attrDeclParent).getName() + typeName);\n } else {\n typeName = fstate.jClass.getLocalName() + typeName;\n }\n }\n //-- otherwise (???) just append \"Type\"\n typeName += \"Type\";\n }\n \n String className = JavaNaming.toJavaClassName(typeName);\n \n //--XMLBindingComponent is only used to retrieve the java package\n //-- we need to optimize it by enabling the binding of simpleTypes.\n XMLBindingComponent comp = new XMLBindingComponent(_config);\n if (_binding != null) {\n comp.setBinding(_binding);\n }\n comp.setView(simpleType);\n String packageName = comp.getJavaPackage();\n if ((packageName == null) || (packageName.length() == 0)) {\n packageName = sgState.packageName;\n }\n \n if (simpleType.hasFacet(Facet.ENUMERATION)) {\n enumeration = true;\n //-- XXXX Fix packageName...this is a hack I know,\n //-- XXXX we should change this\n if ((packageName != null) && (packageName.length() > 0))\n packageName = packageName + \".types\";\n else\n packageName = \"types\";\n }\n \n className = resolveClassName(className, packageName);\n \n FactoryState state = new FactoryState(className, sgState, packageName);\n state.setParent(sgState.getCurrentFactoryState());\n \n \n ClassInfo classInfo = state.classInfo;\n JClass jClass = state.jClass;\n \n initialize(jClass);\n \n //-- XML information\n Schema schema = simpleType.getSchema();\n classInfo.setNamespaceURI(schema.getTargetNamespace());\n classInfo.setNodeName(typeName);\n \n //-- process annotation\n String comment = processAnnotations(simpleType);\n if (comment != null)\n jClass.getJDocComment().setComment(comment);\n \n XSClass xsClass = new XSClass(jClass, typeName);\n \n classInfo.setSchemaType(xsClass);\n \n //-- handle enumerated types\n if (enumeration) {\n xsClass.setAsEnumerated(true);\n processEnumeration(simpleType, state);\n }\n \n //-- create Bound Properties code\n if (state.hasBoundProperties())\n createPropertyChangeMethods(jClass);\n \n sgState.bindReference(jClass, classInfo);\n sgState.bindReference(simpleType, classInfo);\n \n return jClass;\n \n }", "title": "" }, { "docid": "6c317118c2994f21f2ed29482ba438ee", "score": "0.46235377", "text": "public short getClass(String paramString)\n/* */ {\n/* 1760 */ short s = getUtf8(paramString);\n/* 1761 */ return getIndirect(new IndirectEntry(7, s));\n/* */ }", "title": "" }, { "docid": "a3d689be50ed960d835b459e81187b28", "score": "0.4608753", "text": "public interface ASTType extends ASTBase {\n\n /**\n * Access modifier for this type\n *\n * @return access modifier for constructor\n */\n ASTAccessModifier getAccessModifier();\n\n /**\n * Supplies all available methods\n *\n * @return available methods\n */\n ImmutableSet<ASTMethod> getMethods();\n\n /**\n * Supplies all available fields\n *\n * @return fields\n */\n ImmutableSet<ASTField> getFields();\n\n /**\n * Supplies all available constructors\n *\n * @return constructors\n */\n ImmutableSet<ASTConstructor> getConstructors();\n\n /**\n * Determines if the given AST type represents a concrete class\n *\n * @return concrete class status\n */\n boolean isConcreteClass();\n\n /**\n * Determines if the given AST type represents an interface\n *\n * @return concrete class status\n */\n boolean isInterface();\n\n /**\n * Determines if the given AST type is final\n *\n * @return final status\n */\n boolean isFinal();\n\n /**\n * Determines if the given AST type is static\n *\n * @return static status\n */\n boolean isStatic();\n\n /**\n * Determins if the given AST type is abstract\n *\n * @return abstract status\n */\n boolean isAbstract();\n\n /**\n * Determines if the given AST type is an inner class.\n *\n * @return is inner class\n */\n boolean isInnerClass();\n\n /**\n * Determines if the given AST type represents an enum\n *\n * @return if the type is an enum\n */\n boolean isEnum();\n\n /**\n * Supplies the super class (by extension) of this type\n *\n * @return supertype\n */\n ASTType getSuperClass();\n\n /**\n * Supplies the list of implemented interfaces\n *\n * @return interfaces implemented\n */\n ImmutableSet<ASTType> getInterfaces();\n\n /**\n * Generates a list of the generic type parameters, if they are appropriate for the type and exist.\n *\n * @return generic parameters\n */\n ImmutableList<ASTType> getGenericArgumentTypes();\n\n ImmutableList<ASTGenericArgument> getGenericArguments();\n\n /**\n * Determines if the current type inherits (extends or implements) from the given type.\n *\n * @param type implementing from\n * @return inheritance\n */\n boolean inherits(ASTType type);\n\n /**\n * Returns a parsed package and class for this type\n *\n * @return package class.\n */\n PackageClass getPackageClass();\n}", "title": "" }, { "docid": "1d73d0d74c120c5876a67799c7b07387", "score": "0.459378", "text": "public void visitClassKeyword (final IJmlClassKeyword var_1_1) throws CGException {}", "title": "" }, { "docid": "f9c688f5e70c48afff6059df835ad848", "score": "0.45797667", "text": "public static void classLiteral() {\n Class<Bulb> c = Bulb.class;\n }", "title": "" }, { "docid": "c96370e570020e4255c3d9e4ecf46890", "score": "0.4579415", "text": "public JType getExistingClass() {\n\t return existingClass;\n\t }", "title": "" }, { "docid": "847145ca5ad8e10912d14abf89732a04", "score": "0.45743895", "text": "public interface ClassesPackage extends EPackage {\n\t/**\n\t * The package name.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t */\n\tString eNAME = \"classes\";\n\n\t/**\n\t * The package namespace URI.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t */\n\tString eNS_URI = \"http://classes/1.0\";\n\n\t/**\n\t * The package namespace name.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t */\n\tString eNS_PREFIX = \"classes\";\n\n\t/**\n\t * The singleton instance of the package.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t */\n\tClassesPackage eINSTANCE = classes.impl.ClassesPackageImpl.init();\n\n\t/**\n\t * The meta object id for the '{@link classes.impl.CModelImpl <em>CModel</em>}' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @see classes.impl.CModelImpl\n\t * @see classes.impl.ClassesPackageImpl#getCModel()\n\t * @generated\n\t */\n\tint CMODEL = 0;\n\n\t/**\n\t * The feature id for the '<em><b>Contents</b></em>' containment reference list.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint CMODEL__CONTENTS = 0;\n\n\t/**\n\t * The number of structural features of the '<em>CModel</em>' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint CMODEL_FEATURE_COUNT = 1;\n\n\t/**\n\t * The meta object id for the '{@link classes.impl.NamedElementImpl <em>Named Element</em>}' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @see classes.impl.NamedElementImpl\n\t * @see classes.impl.ClassesPackageImpl#getNamedElement()\n\t * @generated\n\t */\n\tint NAMED_ELEMENT = 1;\n\n\t/**\n\t * The feature id for the '<em><b>Name</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint NAMED_ELEMENT__NAME = 0;\n\n\t/**\n\t * The number of structural features of the '<em>Named Element</em>' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint NAMED_ELEMENT_FEATURE_COUNT = 1;\n\n\t/**\n\t * The meta object id for the '{@link classes.impl.ClassifierImpl <em>Classifier</em>}' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @see classes.impl.ClassifierImpl\n\t * @see classes.impl.ClassesPackageImpl#getClassifier()\n\t * @generated\n\t */\n\tint CLASSIFIER = 2;\n\n\t/**\n\t * The feature id for the '<em><b>Name</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint CLASSIFIER__NAME = NAMED_ELEMENT__NAME;\n\n\t/**\n\t * The number of structural features of the '<em>Classifier</em>' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint CLASSIFIER_FEATURE_COUNT = NAMED_ELEMENT_FEATURE_COUNT + 0;\n\n\t/**\n\t * The meta object id for the '{@link classes.impl.CClassImpl <em>CClass</em>}' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @see classes.impl.CClassImpl\n\t * @see classes.impl.ClassesPackageImpl#getCClass()\n\t * @generated\n\t */\n\tint CCLASS = 3;\n\n\t/**\n\t * The feature id for the '<em><b>Name</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint CCLASS__NAME = CLASSIFIER__NAME;\n\n\t/**\n\t * The feature id for the '<em><b>Abstract</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint CCLASS__ABSTRACT = CLASSIFIER_FEATURE_COUNT + 0;\n\n\t/**\n\t * The feature id for the '<em><b>Extends</b></em>' reference.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint CCLASS__EXTENDS = CLASSIFIER_FEATURE_COUNT + 1;\n\n\t/**\n\t * The feature id for the '<em><b>Attributes</b></em>' containment reference list.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint CCLASS__ATTRIBUTES = CLASSIFIER_FEATURE_COUNT + 2;\n\n\t/**\n\t * The feature id for the '<em><b>Super</b></em>' reference list.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint CCLASS__SUPER = CLASSIFIER_FEATURE_COUNT + 3;\n\n\t/**\n\t * The number of structural features of the '<em>CClass</em>' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint CCLASS_FEATURE_COUNT = CLASSIFIER_FEATURE_COUNT + 4;\n\n\t/**\n\t * The meta object id for the '{@link classes.impl.AttributeImpl <em>Attribute</em>}' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @see classes.impl.AttributeImpl\n\t * @see classes.impl.ClassesPackageImpl#getAttribute()\n\t * @generated\n\t */\n\tint ATTRIBUTE = 4;\n\n\t/**\n\t * The feature id for the '<em><b>Name</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint ATTRIBUTE__NAME = NAMED_ELEMENT__NAME;\n\n\t/**\n\t * The feature id for the '<em><b>Type</b></em>' reference.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint ATTRIBUTE__TYPE = NAMED_ELEMENT_FEATURE_COUNT + 0;\n\n\t/**\n\t * The feature id for the '<em><b>Is Many</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint ATTRIBUTE__IS_MANY = NAMED_ELEMENT_FEATURE_COUNT + 1;\n\n\t/**\n\t * The number of structural features of the '<em>Attribute</em>' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint ATTRIBUTE_FEATURE_COUNT = NAMED_ELEMENT_FEATURE_COUNT + 2;\n\n\t/**\n\t * The meta object id for the '{@link classes.impl.DatatypeImpl <em>Datatype</em>}' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @see classes.impl.DatatypeImpl\n\t * @see classes.impl.ClassesPackageImpl#getDatatype()\n\t * @generated\n\t */\n\tint DATATYPE = 5;\n\n\t/**\n\t * The feature id for the '<em><b>Name</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint DATATYPE__NAME = CLASSIFIER__NAME;\n\n\t/**\n\t * The number of structural features of the '<em>Datatype</em>' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint DATATYPE_FEATURE_COUNT = CLASSIFIER_FEATURE_COUNT + 0;\n\n\n\t/**\n\t * The meta object id for the '{@link classes.impl.TypedElementImpl <em>Typed Element</em>}' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @see classes.impl.TypedElementImpl\n\t * @see classes.impl.ClassesPackageImpl#getTypedElement()\n\t * @generated\n\t */\n\tint TYPED_ELEMENT = 6;\n\n\t/**\n\t * The feature id for the '<em><b>Type</b></em>' reference.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint TYPED_ELEMENT__TYPE = 0;\n\n\t/**\n\t * The number of structural features of the '<em>Typed Element</em>' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint TYPED_ELEMENT_FEATURE_COUNT = 1;\n\n\n\t/**\n\t * Returns the meta object for class '{@link classes.CModel <em>CModel</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for class '<em>CModel</em>'.\n\t * @see classes.CModel\n\t * @generated\n\t */\n\tEClass getCModel();\n\n\t/**\n\t * Returns the meta object for the containment reference list '{@link classes.CModel#getContents <em>Contents</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the containment reference list '<em>Contents</em>'.\n\t * @see classes.CModel#getContents()\n\t * @see #getCModel()\n\t * @generated\n\t */\n\tEReference getCModel_Contents();\n\n\t/**\n\t * Returns the meta object for class '{@link classes.NamedElement <em>Named Element</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for class '<em>Named Element</em>'.\n\t * @see classes.NamedElement\n\t * @generated\n\t */\n\tEClass getNamedElement();\n\n\t/**\n\t * Returns the meta object for the attribute '{@link classes.NamedElement#getName <em>Name</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the attribute '<em>Name</em>'.\n\t * @see classes.NamedElement#getName()\n\t * @see #getNamedElement()\n\t * @generated\n\t */\n\tEAttribute getNamedElement_Name();\n\n\t/**\n\t * Returns the meta object for class '{@link classes.Classifier <em>Classifier</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for class '<em>Classifier</em>'.\n\t * @see classes.Classifier\n\t * @generated\n\t */\n\tEClass getClassifier();\n\n\t/**\n\t * Returns the meta object for class '{@link classes.CClass <em>CClass</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for class '<em>CClass</em>'.\n\t * @see classes.CClass\n\t * @generated\n\t */\n\tEClass getCClass();\n\n\t/**\n\t * Returns the meta object for the attribute '{@link classes.CClass#isAbstract <em>Abstract</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the attribute '<em>Abstract</em>'.\n\t * @see classes.CClass#isAbstract()\n\t * @see #getCClass()\n\t * @generated\n\t */\n\tEAttribute getCClass_Abstract();\n\n\t/**\n\t * Returns the meta object for the reference '{@link classes.CClass#getExtends <em>Extends</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the reference '<em>Extends</em>'.\n\t * @see classes.CClass#getExtends()\n\t * @see #getCClass()\n\t * @generated\n\t */\n\tEReference getCClass_Extends();\n\n\t/**\n\t * Returns the meta object for the containment reference list '{@link classes.CClass#getAttributes <em>Attributes</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the containment reference list '<em>Attributes</em>'.\n\t * @see classes.CClass#getAttributes()\n\t * @see #getCClass()\n\t * @generated\n\t */\n\tEReference getCClass_Attributes();\n\n\t/**\n\t * Returns the meta object for the reference list '{@link classes.CClass#getSuper <em>Super</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the reference list '<em>Super</em>'.\n\t * @see classes.CClass#getSuper()\n\t * @see #getCClass()\n\t * @generated\n\t */\n\tEReference getCClass_Super();\n\n\t/**\n\t * Returns the meta object for class '{@link classes.Attribute <em>Attribute</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for class '<em>Attribute</em>'.\n\t * @see classes.Attribute\n\t * @generated\n\t */\n\tEClass getAttribute();\n\n\t/**\n\t * Returns the meta object for the attribute '{@link classes.Attribute#isIsMany <em>Is Many</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the attribute '<em>Is Many</em>'.\n\t * @see classes.Attribute#isIsMany()\n\t * @see #getAttribute()\n\t * @generated\n\t */\n\tEAttribute getAttribute_IsMany();\n\n\t/**\n\t * Returns the meta object for class '{@link classes.Datatype <em>Datatype</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for class '<em>Datatype</em>'.\n\t * @see classes.Datatype\n\t * @generated\n\t */\n\tEClass getDatatype();\n\n\t/**\n\t * Returns the meta object for class '{@link classes.TypedElement <em>Typed Element</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for class '<em>Typed Element</em>'.\n\t * @see classes.TypedElement\n\t * @generated\n\t */\n\tEClass getTypedElement();\n\n\t/**\n\t * Returns the meta object for the reference '{@link classes.TypedElement#getType <em>Type</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the reference '<em>Type</em>'.\n\t * @see classes.TypedElement#getType()\n\t * @see #getTypedElement()\n\t * @generated\n\t */\n\tEReference getTypedElement_Type();\n\n\t/**\n\t * Returns the factory that creates the instances of the model.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the factory that creates the instances of the model.\n\t * @generated\n\t */\n\tClassesFactory getClassesFactory();\n\n\t/**\n\t * <!-- begin-user-doc -->\n\t * Defines literals for the meta objects that represent\n\t * <ul>\n\t * <li>each class,</li>\n\t * <li>each feature of each class,</li>\n\t * <li>each enum,</li>\n\t * <li>and each data type</li>\n\t * </ul>\n\t * <!-- end-user-doc -->\n\t * @generated\n\t */\n\tinterface Literals {\n\t\t/**\n\t\t * The meta object literal for the '{@link classes.impl.CModelImpl <em>CModel</em>}' class.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @see classes.impl.CModelImpl\n\t\t * @see classes.impl.ClassesPackageImpl#getCModel()\n\t\t * @generated\n\t\t */\n\t\tEClass CMODEL = eINSTANCE.getCModel();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Contents</b></em>' containment reference list feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEReference CMODEL__CONTENTS = eINSTANCE.getCModel_Contents();\n\n\t\t/**\n\t\t * The meta object literal for the '{@link classes.impl.NamedElementImpl <em>Named Element</em>}' class.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @see classes.impl.NamedElementImpl\n\t\t * @see classes.impl.ClassesPackageImpl#getNamedElement()\n\t\t * @generated\n\t\t */\n\t\tEClass NAMED_ELEMENT = eINSTANCE.getNamedElement();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Name</b></em>' attribute feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEAttribute NAMED_ELEMENT__NAME = eINSTANCE.getNamedElement_Name();\n\n\t\t/**\n\t\t * The meta object literal for the '{@link classes.impl.ClassifierImpl <em>Classifier</em>}' class.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @see classes.impl.ClassifierImpl\n\t\t * @see classes.impl.ClassesPackageImpl#getClassifier()\n\t\t * @generated\n\t\t */\n\t\tEClass CLASSIFIER = eINSTANCE.getClassifier();\n\n\t\t/**\n\t\t * The meta object literal for the '{@link classes.impl.CClassImpl <em>CClass</em>}' class.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @see classes.impl.CClassImpl\n\t\t * @see classes.impl.ClassesPackageImpl#getCClass()\n\t\t * @generated\n\t\t */\n\t\tEClass CCLASS = eINSTANCE.getCClass();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Abstract</b></em>' attribute feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEAttribute CCLASS__ABSTRACT = eINSTANCE.getCClass_Abstract();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Extends</b></em>' reference feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEReference CCLASS__EXTENDS = eINSTANCE.getCClass_Extends();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Attributes</b></em>' containment reference list feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEReference CCLASS__ATTRIBUTES = eINSTANCE.getCClass_Attributes();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Super</b></em>' reference list feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEReference CCLASS__SUPER = eINSTANCE.getCClass_Super();\n\n\t\t/**\n\t\t * The meta object literal for the '{@link classes.impl.AttributeImpl <em>Attribute</em>}' class.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @see classes.impl.AttributeImpl\n\t\t * @see classes.impl.ClassesPackageImpl#getAttribute()\n\t\t * @generated\n\t\t */\n\t\tEClass ATTRIBUTE = eINSTANCE.getAttribute();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Is Many</b></em>' attribute feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEAttribute ATTRIBUTE__IS_MANY = eINSTANCE.getAttribute_IsMany();\n\n\t\t/**\n\t\t * The meta object literal for the '{@link classes.impl.DatatypeImpl <em>Datatype</em>}' class.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @see classes.impl.DatatypeImpl\n\t\t * @see classes.impl.ClassesPackageImpl#getDatatype()\n\t\t * @generated\n\t\t */\n\t\tEClass DATATYPE = eINSTANCE.getDatatype();\n\n\t\t/**\n\t\t * The meta object literal for the '{@link classes.impl.TypedElementImpl <em>Typed Element</em>}' class.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @see classes.impl.TypedElementImpl\n\t\t * @see classes.impl.ClassesPackageImpl#getTypedElement()\n\t\t * @generated\n\t\t */\n\t\tEClass TYPED_ELEMENT = eINSTANCE.getTypedElement();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Type</b></em>' reference feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEReference TYPED_ELEMENT__TYPE = eINSTANCE.getTypedElement_Type();\n\n\t}\n\n}", "title": "" }, { "docid": "6e7762813994c432a05297a3a283955e", "score": "0.45734465", "text": "Class<?> loadClass(String name, URI uri);", "title": "" }, { "docid": "1420451787abe99d5d76cca4b89d9177", "score": "0.4573271", "text": "ShortInstantiation createShortInstantiation();", "title": "" }, { "docid": "983c0332aec8b374a9a7a8137f056c1f", "score": "0.45725822", "text": "<T extends C0672a> T mo876a(Class<T> cls);", "title": "" }, { "docid": "145bf39d442c4623e92c266f81f5739e", "score": "0.45667726", "text": "CreationMethod getClass_();", "title": "" }, { "docid": "f72f0294a6f530003d81db2f1db9fcb1", "score": "0.45562607", "text": "public interface ClassAliasElement extends ClassElement {\n}", "title": "" }, { "docid": "9d93df518c7a1d4adf829bb01707e4c8", "score": "0.45511815", "text": "public interface JPDAClassType extends VariableType {\n \n /**\n * Get the source name of this type.\n * @return the source file name of this type.\n */\n String getSourceName() throws AbsentInformationException;\n \n /**\n * Returns the class object variable, that corresponds to this type in the target VM.\n * @return the class object variable.\n * @throws UnsupportedOperationException when not supported by target VM.\n */\n ClassVariable classObject();\n \n /**\n * Gets the classloader object which loaded the class corresponding to this type.\n * @return an object variable representing the classloader, or <code>null</code>\n * if the class was loaded through the bootstrap class loader.\n */\n ObjectVariable getClassLoader();\n \n /**\n * Gets the superclass of this class.\n * @return the superclass of this class in the debuggee, or <code>null</code>\n * if no such class exists.\n */\n Super getSuperClass();\n \n /**\n * Get the currently loaded subclasses, when this type represents a class,\n * or loaded subinterfaces and implementors of this interface, if this type\n * represents an interface.\n * @return a list of direct classes and interfaces, that extend this type.\n * Returns an empty array when there are no such types.\n * @since 3.2\n */\n List<JPDAClassType> getSubClasses();\n\n /**\n * Get all interfaces that are directly or indirectly implemented by this class,\n * or extended by this interface.\n * @return a list of all implemented or extended interfaces.\n * Returns an empty array when there are no such interfaces.\n * @since 3.2\n */\n List<JPDAClassType> getAllInterfaces();\n\n /**\n * Get the interfaces that are directly implemented by this class,\n * or directly extended by this interface.\n * @return a list of all implemented or extended interfaces.\n * Returns an empty array when there are no such interfaces.\n * @since 3.2\n */\n List<JPDAClassType> getDirectInterfaces();\n\n /**\n * Check if this type in an instance of a given class name.\n * @param className the class name\n * @return <code>true</code> when this type is an instance of the given class\n * name, <code>false</code> otherwise.\n * @since 3.2\n */\n boolean isInstanceOf(String className);\n\n /**\n * Provide a list of static fields declared in this type.\n * @return the list of {@link org.netbeans.api.debugger.jpda.Field} objects\n * representing static fields.\n */\n List<Field> staticFields();\n \n /**\n * Calls given static method in debugged JVM on this class and returns\n * its value.\n *\n * @param methodName a name of method to be called\n * @param signature a signature of method to be called\n * @param arguments arguments to be used\n *\n * @return value of given method call on this instance\n * @throws NoSuchMethodException when the method does not exist\n * @throws InvalidExpressionException in case of execution problems\n * @since 2.47\n */\n public abstract Variable invokeMethod (\n String methodName,\n String signature,\n Variable[] arguments\n ) throws NoSuchMethodException, InvalidExpressionException;\n\n /**\n * Retrieves the number of instances this class.\n * Use {@link JPDADebugger#canGetInstanceInfo} to determine if this operation is supported.\n * @return the number of instances.\n */\n long getInstanceCount() throws UnsupportedOperationException;\n \n /**\n * Returns instances of this class type. Only instances that are reachable\n * for the purposes of garbage collection are returned.\n * Use {@link JPDADebugger#canGetInstanceInfo} to determine if this operation is supported.\n * @param maxInstances the maximum number of instances to return. Must be non-negative. If zero, all instances are returned.\n * @return a List of object variables.\n */\n List<ObjectVariable> getInstances(long maxInstances) throws UnsupportedOperationException;\n \n}", "title": "" }, { "docid": "e0fb04631c640b02f611758cf1d5c52f", "score": "0.45432413", "text": "public interface ClassDescription {\n\tpublic ClassProxy getClassProxy() ;\n\tpublic void setClassProxy(ClassProxy classProxy) ;\n\tpublic StringBuffer getText() ;\n\tpublic void setText(StringBuffer text) ;\t\n\tpublic long getSourceTime() ;\n\tpublic void setSourceTime(long newVal);\n\tpublic String getClassName();\n\tString[] getTags();\n\tString getStructurePatternName();\n\tString[] getPropertyNames();\n\tString[] getEditablePropertyNames();\n\tJavaClass getQdoxClass();\n\tJavaSource getQdoxSource();\n\tSourceClass getJavacSourceClass();\n Class<?> getJavaClass();\n\n CompilationUnit getCompilationUnit() throws IOException;\n\n}", "title": "" }, { "docid": "2f296e2b4f4a042dac6268a364a33b9f", "score": "0.45394415", "text": "public Document compileClass() throws ParserConfigurationException, DOMException, CloneNotSupportedException {\n\t\tElement ele= null;\n\t\tString token;\n\t\t\n\t\tDocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();\n\t\tDocumentBuilder builder = null;\n\t\tbuilder = factory.newDocumentBuilder();\n\t\tdocument= builder.newDocument();\n\t\t\n\t\t//Root level XML\n\t\troot= document.createElement(\"class\");\n\t\tdocument.appendChild(root);\n\t\t\n\t\t//First token is \"class\"\n\t\tjTokenizer.advance();\n\t\tele= createXMLnode(\"keyword\");\n\t\troot.appendChild(ele);\n\t\t\n\t\t//Second token is the class name\n\t\tjTokenizer.advance();\n\t\tele= createXMLnode(\"identifier\");\n\t\troot.appendChild(ele);\n\t\t\n\t\t//Third token is '}'\n\t\tjTokenizer.advance();\n\t\tele= createXMLnode(\"symbol\");\n\t\troot.appendChild(ele);\n\t\t\n\t\t//Fourth token is the datatype of the class var declaration\n\t\tjTokenizer.advance();\n\t\tString tokenType;\n\t\ttoken= jTokenizer.returnTokenVal(\"keyword\");\n\t\t\n\t\tdo {\n\t\t\t//Declare the class variables\n\t\t\tif (token.matches(\"field|static\")) {\n\t\t\t\tcompileClassVarDec();\n\t\t\t\t\n\t\t\t}\n\t\t\t//Subroutine Declaration\n\t\t\tif (token.matches(\"constructor|function|method\")) {\n\t\t\t\tcompileSubroutine();\n\t\t\t}\n\t\t\tif (jTokenizer.hasNext()) {\n\t\t\t\tjTokenizer.advance();\n\t\t\t\ttokenType= jTokenizer.tokenType();\n\t\t\t\ttoken= jTokenizer.returnTokenVal(tokenType);\n\t\t\t}\n\t\t\t\n\t\t}while(!token.equals(\"}\"));\n\t\t\n\t\t//Token \"}\"\n\t\tele= createXMLnode(\"symbol\");\n\t\troot.appendChild(ele);\n\t\treturn document;\n\t}", "title": "" }, { "docid": "a1935f4970fe349fbd3799478a330903", "score": "0.4534037", "text": "static final public MainClass MainClass() throws ParseException {\n NodeToken n0 = null;\n Token n1 = null;\n NodeToken n2 = null;\n Token n3 = null;\n Identifier n4 = null;\n NodeToken n5 = null;\n Token n6 = null;\n NodeToken n7 = null;\n Token n8 = null;\n NodeToken n9 = null;\n Token n10 = null;\n NodeToken n11 = null;\n Token n12 = null;\n NodeToken n13 = null;\n Token n14 = null;\n NodeToken n15 = null;\n Token n16 = null;\n NodeToken n17 = null;\n Token n18 = null;\n NodeToken n19 = null;\n Token n20 = null;\n NodeToken n21 = null;\n Token n22 = null;\n Identifier n23 = null;\n NodeToken n24 = null;\n Token n25 = null;\n NodeToken n26 = null;\n Token n27 = null;\n Statement n28 = null;\n NodeToken n29 = null;\n Token n30 = null;\n NodeToken n31 = null;\n Token n32 = null;\n n1 = jj_consume_token(PUBLIC);\n n0 = JTBToolkit.makeNodeToken(n1);\n n3 = jj_consume_token(CLASS);\n n2 = JTBToolkit.makeNodeToken(n3);\n n4 = Identifier();\n n6 = jj_consume_token(LBRACE);\n n5 = JTBToolkit.makeNodeToken(n6);\n n8 = jj_consume_token(PUBLIC);\n n7 = JTBToolkit.makeNodeToken(n8);\n n10 = jj_consume_token(STATIC);\n n9 = JTBToolkit.makeNodeToken(n10);\n n12 = jj_consume_token(VOID);\n n11 = JTBToolkit.makeNodeToken(n12);\n n14 = jj_consume_token(MAIN);\n n13 = JTBToolkit.makeNodeToken(n14);\n n16 = jj_consume_token(LPAREN);\n n15 = JTBToolkit.makeNodeToken(n16);\n n18 = jj_consume_token(STRING);\n n17 = JTBToolkit.makeNodeToken(n18);\n n20 = jj_consume_token(LSQPAREN);\n n19 = JTBToolkit.makeNodeToken(n20);\n n22 = jj_consume_token(RSQPAREN);\n n21 = JTBToolkit.makeNodeToken(n22);\n n23 = Identifier();\n n25 = jj_consume_token(RPAREN);\n n24 = JTBToolkit.makeNodeToken(n25);\n n27 = jj_consume_token(LBRACE);\n n26 = JTBToolkit.makeNodeToken(n27);\n n28 = Statement();\n n30 = jj_consume_token(RBRACE);\n n29 = JTBToolkit.makeNodeToken(n30);\n n32 = jj_consume_token(RBRACE);\n n31 = JTBToolkit.makeNodeToken(n32);\n {if (true) return new MainClass(n0, n2, n4, n5, n7, n9, n11, n13, n15, n17, n19, n21, n23, n24, n26, n28, n29, n31);}\n throw new Error(\"Missing return statement in function\");\n }", "title": "" }, { "docid": "71d8c12b58f6073c848e01cdd69a4fde", "score": "0.4530947", "text": "public final void rule__ClassDeclaration__Group__1__Impl() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \r\n try {\r\n // ../org.eclipse.papyrus.alf.ui/src-gen/org/eclipse/papyrus/alf/ui/contentassist/antlr/internal/InternalAlf.g:10599:1: ( ( 'class' ) )\r\n // ../org.eclipse.papyrus.alf.ui/src-gen/org/eclipse/papyrus/alf/ui/contentassist/antlr/internal/InternalAlf.g:10600:1: ( 'class' )\r\n {\r\n // ../org.eclipse.papyrus.alf.ui/src-gen/org/eclipse/papyrus/alf/ui/contentassist/antlr/internal/InternalAlf.g:10600:1: ( 'class' )\r\n // ../org.eclipse.papyrus.alf.ui/src-gen/org/eclipse/papyrus/alf/ui/contentassist/antlr/internal/InternalAlf.g:10601:1: 'class'\r\n {\r\n if ( state.backtracking==0 ) {\r\n before(grammarAccess.getClassDeclarationAccess().getClassKeyword_1()); \r\n }\r\n match(input,66,FOLLOW_66_in_rule__ClassDeclaration__Group__1__Impl22739); if (state.failed) return ;\r\n if ( state.backtracking==0 ) {\r\n after(grammarAccess.getClassDeclarationAccess().getClassKeyword_1()); \r\n }\r\n\r\n }\r\n\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }", "title": "" }, { "docid": "c4b6e04c64ea40a4d2f7a72205c907ff", "score": "0.4528937", "text": "public void extendClass(String className)\n\t{\n\t\textendsClass = className;\n\t\tASTBase search = this.findSymbol(className);\n\t\tif (search instanceof ASTClass)\n\t\t\textendsClassAST = (ASTClass)search;\n\t}", "title": "" }, { "docid": "e0bd6e36df68e74acda24be2f07af3d2", "score": "0.45280892", "text": "public static Class getDescClass() throws InvalidClassException {\n throw new InvalidClassException(\"getDescClass() should only be invoked on \"\n + \"subclasses of MeasurementTask.\");\n }", "title": "" }, { "docid": "6e88ab4905e93f2bac5c68669e69d451", "score": "0.4526373", "text": "@Override\n public String visitSuperclass(Java8Parser.SuperclassContext ctx) {\n return visit(ctx.classType());\n }", "title": "" }, { "docid": "65fdec21de9084666a746b82af1ba697", "score": "0.4525661", "text": "@Converted(kind = Converted.Kind.AUTO,\n source = \"${LLVM_SRC}/llvm/include/llvm/IR/DerivedTypes.h\", line = 168,\n FQN=\"llvm::CompositeType::classof\", NM=\"_ZN4llvm13CompositeType7classofEPKNS_4TypeE\",\n cmd=\"jclank.sh -java-options=${SPUTNIK}/modules/org.llvm.ir/llvmToClangType ${LLVM_SRC}/llvm/lib/IR/Type.cpp -nm=_ZN4llvm13CompositeType7classofEPKNS_4TypeE\")\n //</editor-fold>\n public static /*inline*/ boolean classof(/*const*/ Type /*P*/ T) {\n return T.getTypeID() == TypeID.ArrayTyID\n || T.getTypeID() == TypeID.StructTyID\n || T.getTypeID() == TypeID.PointerTyID\n || T.getTypeID() == TypeID.VectorTyID;\n }", "title": "" }, { "docid": "9375b687af4b147cc9c689f230ac336b", "score": "0.45234463", "text": "public interface ModuleClassResolver {\n ClassDescriptor resolveClass(JavaClass javaClass);\n}", "title": "" }, { "docid": "24c2f0ee07bd41c94c334b0473129f4b", "score": "0.4523048", "text": "public CtClass getType() throws NotFoundException {\n return Descriptor.toCtClass(fieldInfo.getDescriptor(),\n declaringClass.getClassPool());\n }", "title": "" }, { "docid": "1ffd8f889521c686501d603965c3cc4a", "score": "0.45204216", "text": "public void visitClassType (final IJmlClassType var_1_1) throws CGException {}", "title": "" }, { "docid": "fd4e16434ae8b0566a138e6b38832d98", "score": "0.45179987", "text": "@DISPID(6) //= 0x6. The runtime will prefer the VTID if present\r\n @VTID(19)\r\n void _class(\r\n java.lang.String strClass);", "title": "" }, { "docid": "d65ba864cf62c1dd2b72f6be67bc13d0", "score": "0.45178294", "text": "public abstract String getClassName() throws JavaClassCreatorException;", "title": "" }, { "docid": "9590567efaecc1223b68b53620dffdcf", "score": "0.45130476", "text": "protected void appendClassKeyword() {\n nextLine.append(\"class \");\n }", "title": "" }, { "docid": "ccf91bcc270a75346b6959f8a05e86e5", "score": "0.45057788", "text": "Class getType();", "title": "" }, { "docid": "ccf91bcc270a75346b6959f8a05e86e5", "score": "0.45057788", "text": "Class getType();", "title": "" }, { "docid": "543cfe72682f1d77e2860e5a3fd02c0c", "score": "0.450538", "text": "public interface Type extends ModelicaClassDefinition {\n}", "title": "" }, { "docid": "d42d58f28a50e3d9745d44744e6a0f3c", "score": "0.45051014", "text": "public interface ClassTemplate {\n String NEW_LINE = \"\\n\";\n String TAB = \"\\t\";\n\n String CLASS_BODY = \"public class %1$s\" +\n \"{\" + NEW_LINE +\n \"%2$s\" + NEW_LINE +\n \"}\";\n\n String CLASS_BODY_ANNOTATED = \"%1$s\" + NEW_LINE +\n \"%2$s\";\n\n String CLASS_ROOT_IMPORTS = \"package %1$s;\" + NEW_LINE + NEW_LINE +\n \"%2$s\" + NEW_LINE\n + \"%3$s\";\n\n String CLASS_ROOT = \"package %1$s;\" + NEW_LINE + NEW_LINE +\n \"%2$s\" + NEW_LINE;\n\n String FIELD = TAB + \"private %1$s %2$s;\" + NEW_LINE;\n\n String FIELD_ANNOTATED = TAB + \"%1$s\" + NEW_LINE + \"%2$s\";\n\n String SETTER = TAB + \"public void set%1$s(%2$s %3$s){\" + NEW_LINE +\n TAB + TAB + \"this.%3$s = %3$s;\" + NEW_LINE\n + TAB + \"}\" + NEW_LINE;\n\n String GETTER = TAB + \"public %3$s get%1$s(){\" + NEW_LINE +\n TAB + TAB + \"return %2$s;\" + NEW_LINE\n + TAB + \"}\" + NEW_LINE;\n\n String GETTER_BOOLEAN = TAB + \"public boolean is%1$s(){\" + NEW_LINE +\n TAB + TAB + \"return %2$s;\" + NEW_LINE\n + TAB + \"}\" + NEW_LINE;\n}", "title": "" }, { "docid": "96b49e6f7da43c2dc71b22c598edf9af", "score": "0.45039824", "text": "public Class<? extends Equipment> getClassType() {\n//\t\tif (getCategory() == GoodType.EQUIPMENT)\n\t\treturn EquipmentFactory.getEquipmentClass(name);\n\t}", "title": "" }, { "docid": "4a63528a79ce768229ce721f4f845506", "score": "0.44934738", "text": "@Relation(\"EXTENDS\")\n TypeDescriptor getSuperClass();", "title": "" }, { "docid": "8134e85d95dea096db948a0a3c895cb8", "score": "0.4491575", "text": "protected void finishClassDeclaration() { }", "title": "" } ]
04085727a1c01719c7356ff0d7f74d79
take cmd out of IAddCmd and put it into client visitor, execute visitor with params[0]
[ { "docid": "07934bf48b8d0a23b842ba12c5b6e2f6", "score": "0.5934608", "text": "@SuppressWarnings(\"unchecked\")\r\n\t\t\tpublic ADataPacket apply(Class<?> index, DataPacket<IAddCmd> host,\r\n\t\t\t\t\tObject... params) {\r\n\t\t\t\ttry{\r\n\t\t\t\tSystem.out.println(\"got addcmd and install it into my visitor\");\r\n\t\t\t\tIAddCmd d = host.getData();\r\n\t\t\t\tADataPacketAlgoCmd<ADataPacket, ?, Object> cmd = (ADataPacketAlgoCmd<ADataPacket, ?, Object>)d.getNewCmd();\r\n\t\t\t\tcmd.setCmd2ModelAdpt(_cmd2MA);\r\n\t\t\t\t_visitor.setCmd(d.getID(), cmd);\r\n\t\t\t\treturn ((ADataPacket)params[0]).execute(_visitor, _viewAdapter);\r\n\t\t\t\t}catch(Exception e){\r\n\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t\treturn new DataPacket<IStatusFail>(IStatusFail.class, _userStub, new StatusFail(e.getMessage(),host));\r\n\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t}", "title": "" } ]
[ { "docid": "e7aee40b823f51916801530d42c255c8", "score": "0.64867216", "text": "@objid (\"ff275aeb-e045-47c1-a478-a3d3c443f68c\")\n void addCommand(Command cmd);", "title": "" }, { "docid": "2c14e975a12de922fd2ea867d6ff1a80", "score": "0.6252265", "text": "public void addCommand(Command cmd) {\r\n commands.add(cmd);\r\n }", "title": "" }, { "docid": "7af8a758c193c14896eb224c3bd717e6", "score": "0.59786785", "text": "edu.umich.icpsr.ddi.DrvcmdType addNewDrvcmd();", "title": "" }, { "docid": "90db41e77f11fbaeeff66262dd6bfe36", "score": "0.5941019", "text": "public void addCommand(String cmd, String[] usage, CommandListener runner) {\r\n\t\tCommand command = new Command(cmd, usage, runner);\r\n\t\t_commands.put(cmd, command);\r\n\t}", "title": "" }, { "docid": "174fef828b2f52a0f9184f9be33af339", "score": "0.5891258", "text": "public ByteBuffer executeCommand(ClientInfo client, String command, ByteBuffer param) throws Exception ;", "title": "" }, { "docid": "ea60e4b1d542bb6829764d0bad1c17c6", "score": "0.57966244", "text": "public String executeCommand(ClientInfo client, String command, String param) throws Exception ;", "title": "" }, { "docid": "4caf074de894cbca530be07599a285ff", "score": "0.57475805", "text": "public abstract Comando analiza(String cmd);", "title": "" }, { "docid": "4caf074de894cbca530be07599a285ff", "score": "0.57475805", "text": "public abstract Comando analiza(String cmd);", "title": "" }, { "docid": "e163d7178efd1a0485dd69ed2a15332f", "score": "0.5728841", "text": "public final void addAllowedCommand(HTTPCommand cmd)\r\n {\r\n allowedCommands.add(cmd);\r\n }", "title": "" }, { "docid": "074920313609378db299d3909659832a", "score": "0.56777805", "text": "public void execute() {\n\t\t\tSystem.out.println(\"Command -> AddCommand() \");\n\t\t\tadmincontroller.AddItems();\n\t}", "title": "" }, { "docid": "eec8bc6f061b9c91c722ef798194b2b7", "score": "0.5610323", "text": "public void pushCommand(AmikoCmd cmd) {\r\n\t\tsynchronized (this.commandQueue) {\r\n\t\t\tthis.commandQueue.addElement(cmd);\t\t\t\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "d294c8f4fe0e44931499ce7c09d899d5", "score": "0.5516354", "text": "public void handleCommand(Command cmd)\n\t\t{cmd.execute();}", "title": "" }, { "docid": "ca061f443e832d9106cebcf803b62033", "score": "0.5494357", "text": "public boolean addCommand(String name, Variable[] params, Variable[] retVal) {\n\t\tif(name.equals(\"stop\") || name.equals(\"clear\")) {\r\n\t\t\tclear();\r\n\t\t\treturn true;\r\n\t\t}\r\n\t\tfor (VehicleCommand c : myCommands) {\r\n\t\t\tif (c.getName().equals(name)) {\r\n\t\t\t\t//System.out.println(\"Set current: \"+currentAction.getName());\r\n\t\t\t\t/*if (currentAction == null || currentAction.getName().equals(\"build\"))\r\n\t\t\t\t\tSystem.out.println(\"LOL\");*/\r\n\t\t\t\t/*for (Variable p: params) {\r\n\t\t\t\t\tSystem.out.println(p + \", \");\r\n\t\t\t\t}*/\r\n\t\t\t\tc.setParams(params, retVal);\r\n\t\t\t\tbusy = c.beginAction();\r\n\t\t\t\tif (myOwner != null)\r\n\t\t\t\t\tmyOwner.notifySubBusy();\r\n\t\t\t\tcurrentAction = c;\r\n\t\t\t\treturn true;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn false;\r\n\t}", "title": "" }, { "docid": "0375a51e355e150ebf8d5968c53add75", "score": "0.5458135", "text": "public AddCommand(String commandStr,TaskList.typeOfTasks typeOfTask) throws DukeException {\n switch (typeOfTask) {\n case EVENT:\n testEvent(commandStr, typeOfTask);\n break;\n case TODO:\n testToDo(commandStr, typeOfTask);\n break;\n case DEADLINE:\n testDeadline(commandStr, typeOfTask);\n break;\n }\n this.typeOfTask = typeOfTask;\n }", "title": "" }, { "docid": "4463d5f49d6aefeec991b012f159dd37", "score": "0.5443904", "text": "public byte[] executeCommand(ClientInfo client, String command, byte[] param) throws Exception ;", "title": "" }, { "docid": "e3455e428adbd6c05185b3e3363ffcb7", "score": "0.5433383", "text": "private static void addMain(String... args) {\n if (args.length != 2) {\n System.out.println(\"Incorrect operands.\");\n return;\n }\n Command.add(args[1]);\n }", "title": "" }, { "docid": "49003ccd40b8b4d05f02c787c58ae682", "score": "0.54070055", "text": "private void recvCommand(String[] cmd) {\n\t\tif (commands.containsKey(cmd[0])) {\n\t\t\tcommands.get(cmd[0]).runCommand(cmd);\n\t\t} else {\n\t\t\tshowUiMessage(\"Unknown Command\");\n\t\t}\n\t\treturn;\n\t}", "title": "" }, { "docid": "dc7f5c768a749994a5acdc18b708dce5", "score": "0.53941315", "text": "public void addDrawCommand(DrawCommand cmd)\n\t{\n\t\tchart.addDrawCommand(cmd);\n\t}", "title": "" }, { "docid": "2aa0be1c513b978b37fee659179f45fc", "score": "0.53797555", "text": "public CommandObject( int cmd, String s )\n {\n Command = cmd;\n stringArgs = new String[1];\n stringArgs[0] = s;\n }", "title": "" }, { "docid": "a2b9f3b364e49ae5377683bf65386fc4", "score": "0.53747594", "text": "protected static void addCommand(int type, String[] args) {\n\n synchronized (listeners) {\n\n if (listeners.size() == 0) {\n\n if (command_queue == null) {\n\n command_queue = new ArrayList();\n }\n\n command_queue.add(new Object[] { new Integer(type), args });\n }\n }\n\n // possible duplicate delivery - assumed not a problem\n\n Iterator it = listeners.iterator();\n\n while (it.hasNext()) {\n\n navigationListener l = (navigationListener) it.next();\n\n try {\n l.processCommand(type, args);\n\n } catch (Throwable e) {\n\n Debug.printStackTrace(e);\n }\n }\n }", "title": "" }, { "docid": "aa2427779e3440a41481390e00ad67b9", "score": "0.53620774", "text": "public void serverCommand() \n\t{\n\t// build up some arg params\n\tint argc = Engine.getArgc();\n\tString[] sa = new String[Math.max(argc, 2)]; // at least two args\n\tfor (int i = 0; i < argc; i++)\n\t\tsa[i] = Engine.getArgv(i);\t\t\t\n\n\t// special case where the user just typed \"sv\" by itself\n\t// make it look like the user typed \"sv help\"\n\tif (argc == 1)\n\t\tsa[1] = \"help\";\n\n\t// create parameter type array for reflection\n\tClass[] paramTypes = new Class[1];\n\tparamTypes[0] = sa.getClass();\n\tObject[] params = new Object[1];\n\tparams[0] = sa;\n\n\t// figure out what command we're processing, and which specific\n\t// gamelet (if any) should handle it.\n\tGamelet g = null;\n\tString cmd;\n\tint dot = sa[1].lastIndexOf('.');\n\tif (dot < 0)\n\t\tcmd = sa[1].toLowerCase();\n\telse\n\t\t{\n\t\tString alias = sa[1].substring(0, dot);\n\t\tg = gGameletManager.getGamelet(alias);\t\t\n\t\tcmd = sa[1].substring(dot+1).toLowerCase();\n\t\tif (g == null)\n\t\t\t{\n\t\t\tdprint( alias + \" is not a loaded gamelet.\\n\" );\n\t\t\treturn;\n\t\t\t}\n\t\t}\n\n\t// run the command\t\n\tif (g != null)\n\t\t{\n\t\tif (externalServerCommand(g, cmd, paramTypes, params))\n\t\t\treturn;\n\t\t// else fall through so it prints \"unrecognized command below\n\t\t}\n\telse\n\t\t{\n\t\t// no particular gamelet was specified, look in\n\t\t// various places for something to handle the naked command\n\n\t\t// try event-delegation\n\t if (gServerCommandSupport.fireEvent(sa[1], sa))\n\t\t\treturn;\n\t\t\n\t\t// look for a method inside this class\n\t\tString methodName = null;\n\t\ttry\n\t\t\t{\n\t\t\tmethodName = \"svcmd_\" + sa[1].toLowerCase();\n\t\t\tjava.lang.reflect.Method meth = getClass().getMethod(methodName, paramTypes);\t\t\t\t\t\t\n\t\t\tmeth.invoke(this, params);\n\t\t\treturn;\n\t\t\t}\n\t\tcatch (NoSuchMethodException nsme)\n\t\t\t{\n\t\t\t}\t\t\t\n\t\tcatch (java.lang.reflect.InvocationTargetException ite)\t\t\n\t\t\t{\n\t\t\tThrowable t = ite.getTargetException();\n\t\t\tif (t instanceof ExceptionInInitializerError)\n\t\t\t\tt = ((ExceptionInInitializerError)t).getException();\n\t\t\tt.printStackTrace();\t\t\t\n\t\t\t}\n\t\tcatch (ExceptionInInitializerError eiie)\n\t\t\t{\n\t\t\teiie.getException().printStackTrace();\n\t\t\t}\n\t\tcatch (Exception e2)\n\t\t\t{\n\t\t\te2.printStackTrace();\n\t\t\t}\n\t\t\t\n\t\t// use reflection to look for a module command second\n\t\tGamelet[] gamelets = gGameletManager.getGamelets();\n\t\tfor (int i = 0; i < gamelets.length; i++)\n\t\t\t{\n\t\t\tGamelet g2 = gamelets[i];\n\t\t\tif (externalServerCommand(g2, cmd, paramTypes, params))\n\t\t\t\treturn;\n\t\t\t}\t\t\t\n\t\t}\n\n\t\t\n\t// Send unrecognized input back to the console\n\tdprint(\"Unrecognized sv command\\n\");\n\tdprint(\" args(): [\" + Engine.getArgs() + \"]\\n\");\n\tfor (int i = 0; i < sa.length; i++)\n\t\tdprint(\" argv(\" + i + \"): [\" + sa[i] + \"]\\n\");\n\t}", "title": "" }, { "docid": "f9631fae79e349d9a73d50e20cf36bbe", "score": "0.53570175", "text": "OCommandRequest command(OCommandRequest iCommand);", "title": "" }, { "docid": "e67c74c0f3abc21352c7fb55d99ce680", "score": "0.5355884", "text": "protected abstract Object value(T cmd);", "title": "" }, { "docid": "e3affddfcecf1fb39a17e676ddf07fd2", "score": "0.53429776", "text": "private boolean externalServerCommand(Gamelet g, String cmd, Class[] paramTypes, Object[] params) \n\t{\t\t\n\ttry\n\t\t{\n\t\tjava.lang.reflect.Method meth = g.getClass().getMethod(\"svcmd_\" + cmd, paramTypes);\t\t\t\t\t\t\n\t\tmeth.invoke(g, params);\n\t\treturn true;\n\t\t}\n\tcatch (NoSuchMethodException nsme)\n\t\t{\n\t\t}\n\tcatch (java.lang.reflect.InvocationTargetException ite)\t\t\n\t\t{\n\t\tThrowable t = ite.getTargetException();\n\t\tif (t instanceof ExceptionInInitializerError)\n\t\t\tt = ((ExceptionInInitializerError)t).getException();\n\t\tt.printStackTrace();\n\t\treturn true; \n\t\t}\n\tcatch (Exception e)\n\t\t{\n\t\te.printStackTrace();\n\t\treturn true;\t\t\n\t\t}\t\t\n\n\t// try event-delegation\n\tif (g instanceof ServerCommandListener)\n\t\t{\n\t\tString[] sa = (String[]) params[0];\n\t\treturn gServerCommandSupport.fireEvent(sa[1], sa); \n\t\t}\n\telse\n\t\t{\n\t\t// reflection didn't find a method and the \n\t\t// gamelet didn't implement ServerCommandListener\n\t\treturn false;\n\t\t}\n\t}", "title": "" }, { "docid": "0d49bf69e41111aed05dc00c5ef26d69", "score": "0.53362906", "text": "@Override\n\tpublic Object handleCommand(String cmd) throws ValidatorException {\n\t\tIXmlHelper xh = SpringUtils.getBean(\"xmlHelper\");\n\t\tElement cmdEl = xh.getRoot(\"command.path\");\n\t\treturn handleCommand(cmd, cmdEl);\n\t}", "title": "" }, { "docid": "80914dc780eaf9a8961f7b5d5efb02e0", "score": "0.53258765", "text": "void onCommand(String[] args, ActionHandler handler);", "title": "" }, { "docid": "1102f52b9d8a33015817b655013465f6", "score": "0.5325792", "text": "public void sendCommand(UserCommand cmd) {\n\t\t// TODO Auto-generated method stub\n\t}", "title": "" }, { "docid": "ffb4d049932ecec68f7ba54858f89b38", "score": "0.53210294", "text": "java.lang.String getCommand();", "title": "" }, { "docid": "ffb4d049932ecec68f7ba54858f89b38", "score": "0.53210294", "text": "java.lang.String getCommand();", "title": "" }, { "docid": "ab76366cb034407e302f17d5d27e63ff", "score": "0.5318401", "text": "public AddCommand(int type, String des) {\n this.type = type;\n this.des = des;\n this.time= null;\n }", "title": "" }, { "docid": "f57011347df42ec7b11c09d45917a96b", "score": "0.5313542", "text": "java.lang.String getCmd();", "title": "" }, { "docid": "c89bca11cbe21228c736430e6ac1c4f7", "score": "0.53127074", "text": "public void addCommand(String command) {\n addCommand(command, 0, (OnCommandResultListener) null);\n }", "title": "" }, { "docid": "08a09c3059bc9a080127f9f96da70bd4", "score": "0.5303129", "text": "public void processCommand(HttpServletRequest request, HttpServletResponse response, String cmd) throws Exception{\r\n\t\tif ( cmd == null || cmd.length() == 0) return;\r\n\t}", "title": "" }, { "docid": "7e86891e59358b42463d5c4088456726", "score": "0.52940196", "text": "void handleCommand(CommandArgs args);", "title": "" }, { "docid": "5e0f6d0627d9d2b4bc9e4f3932d82175", "score": "0.52920103", "text": "private void handleCmd(String cmd) {\r\n\t\tcmd = cmd.trim();\r\n\t\tif (cmd.equals(\"\"))\r\n\t\t\treturn;\r\n\r\n\t\tif (cmd.equals(\"lsq\")) {\r\n\t\t\tprintQueueState();\r\n\t\t} else if (cmd.equals(\"updateSeq\")) {\r\n\t\t\tprintUpdateSeqs();\r\n\t\t} else if (cmd.equals(\"msgNo\")) {\r\n\t\t\tlogger.writeLine(String.format(\"Total Message Number: %d\",\r\n\t\t\t\t\tthis.totalMsgNumber));\r\n\t\t} else {\r\n\t\t\tlogger.writeLine(\"'\" + cmd + \"' is not recognized as an command.\");\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "25b8da67aa31a7880b9a9f5952a64397", "score": "0.5291125", "text": "public static void execCommand(String cmd, User u1) {\n if(u1 == null){\n System.out.println(\"Invalid user\");\n return;\n }\n\n switch (cmd) {\n case \"mine\":\n System.out.println(\"Mining\");\n if (blockchain.newBlock()) {\n u1.addValue(1.0);\n blockchain.newTransaction(1, u1, u1);\n }\n System.out.println(u1.getValue());\n break;\n default:\n System.out.println(\"Invalid Command\");\n }\n }", "title": "" }, { "docid": "5344d8697b58506f41a4f9dc11e23052", "score": "0.52831006", "text": "@Override\n public String getNameOfCommand() {\n return \"Command Add \"+shape.toString();\n }", "title": "" }, { "docid": "92e2029d73ba91a2eeed0779bc42072b", "score": "0.5268428", "text": "public CommandObject( int cmd )\n {\n Command = cmd;\n }", "title": "" }, { "docid": "92bda4f1cc4ca4b5b9fd17392175223a", "score": "0.5262423", "text": "public void addCommandArgument(String arg) {\n this.addCommandArgument(cmd, arg);\n }", "title": "" }, { "docid": "1e8154c6103387c8f6024d8950fd874b", "score": "0.52602524", "text": "public CommandObject( int cmd, String s, byte[] buff )\n {\n Command = cmd;\n stringArgs = new String[1];\n stringArgs[0] = s;\n buffer = buff;\n }", "title": "" }, { "docid": "cf9b260595c36d76f5c692e0d5aee626", "score": "0.5255593", "text": "private Cmd parseOneWordCmd() {\n\t\tCOMMAND_TYPE command = getCommand(input);\n\t\ttry{\n\t\t\tswitch (command) {\n\t\t\t\tcase UNDO:\n\t\t\t\t\t\treturn new UndoCmd();\n\t\t\t\tcase HELP:\n\t\t\t\tcase HOME:\n\t\t\t\tcase UPCOMING:\n\t\t\t\tcase SOMEDAY :\n\t\t\t\tcase TODAY :\n\t\t\t\tcase DONE:\n\t\t\t\t\t\treturn new ViewCmd(command);\n\t\t\t\tcase EXIT:\n\t\t\t\t\t\treturn new ExitCmd();\n\t\t\tdefault:\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}catch(IllegalArgumentException e) {\n\t\t\tlogger.log(Level.WARNING,ERROR_ADD_CMD, input);\n\t\t\tthrow new Error(INVALID_MSG);\n\t\t}\n\t\tthrow new Error(INVALID_MSG);\n\t}", "title": "" }, { "docid": "65fae35a5d22f3804754e7237690596f", "score": "0.5251205", "text": "public void addCommand(ifCommand comando) {\n commandsToSend.add(comando);\n }", "title": "" }, { "docid": "382775063e920f5724eee41a4e8d8d49", "score": "0.5245166", "text": "public String manageCommand(String cmd) throws FriendshipException, UserNotExists, WrongCredException, UserAlreadyLogged, UserNotOnline, UserAlreadyInGame, ChallengeException {\n String[] tokens=cmd.split(\" \");\n //token=tokens[2];\n Settings.REQUEST r = Settings.REQUEST.valueOf(tokens[0]);\n if(r.equals(Settings.REQUEST.LOGIN)) return Settings.RESPONSE.OK + \" \" + login(tokens[1], tokens[2], tokens[3]);\n else if(((MyAttachment)k.attachment()).getToken().equals(tokens[2])) {\n token=tokens[2];\n switch (r) {\n case LOGOUT:\n logout(tokens[1]);\n return null;\n case SFIDA:\n return sfida(tokens[1], tokens[3], tokens[4]);\n case AMICIZIA:\n return Settings.RESPONSE.OK + \" \" + amicizia(tokens[1], tokens[3], tokens[4]);\n case GET:\n return get(tokens[1], tokens[3]);\n case PAROLA:\n return Settings.RESPONSE.OK + \" \" + parola(tokens[1], tokens[3]);\n }\n throw new IllegalArgumentException();\n }else throw new WrongCredException();\n }", "title": "" }, { "docid": "3f0a34d94c62cc30e461cbcc80de070e", "score": "0.52390325", "text": "void scriptCommand( String scType, String param );", "title": "" }, { "docid": "6aace3151e52ca213614eec7d5eecacc", "score": "0.5216919", "text": "public void requestAppendLog(Command cmd) throws PandaException {\r\n\r\n\t //logger.info(\"request Append in ,UUID : {}\", cmd.getUuid());\r\n\t // uuid is handled ?\r\n\t \r\n\t \r\n\r\n\r\n\r\n\t AppendLogCommand appendLogCmd = (AppendLogCommand) cmd;\r\n\r\n\t // new term and index\r\n\r\n\t Rid[] rids = this.corePeer.inrCurIndexAndGetPre();\r\n\t appendLogCmd.setTerm(rids[0].getTerm());\r\n\t appendLogCmd.setLastIndex(rids[0].getLogIndex());\r\n\r\n\r\n\t appendLogCmd.setPreLogTerm(rids[1].getTerm());\r\n\t appendLogCmd.setPreLogIndex(rids[1].getLogIndex());\r\n\r\n\t \r\n\t logger.info(\"curTerm :{} index {},pre term {},index {}\", rids[0].getTerm(),\r\n\t rids[0].getLogIndex(), rids[1].getTerm(), rids[1].getLogIndex());\r\n\t \r\n\r\n\t corePeer.getStore().appendCommand(appendLogCmd);// leader store\r\n\r\n\r\n\r\n\t corePeer.getMemberAppendHandler().requestAppendLog(appendLogCmd);\r\n\r\n\r\n\r\n\t }", "title": "" }, { "docid": "1801ae92fd4961256be7aec2ed214d61", "score": "0.5213688", "text": "@Override\n\t public void registerWith(CmdGeneral cmdLine) {\n\t cmdLine.getUsage().startCategory(\"Query\") ;\n\t cmdLine.add(queryFileDecl, \"--query, --file\", \"File containing a query\") ;\n\t cmdLine.add(queryBaseDecl, \"--base\", \"Base URI for the query\") ;\n\t }", "title": "" }, { "docid": "c623f8a81470852abd521fc18b2eb1f5", "score": "0.5203998", "text": "default String getCmd(){\r\n\t\treturn this.getID();\r\n\t}", "title": "" }, { "docid": "97cf85cc684aea04e61778eaf9807364", "score": "0.5200095", "text": "private interface MenuCommand{\n public ArrayList<Datagram> execute(Datagram d) throws ActionNotAllowedException;\n }", "title": "" }, { "docid": "7cd6b58aee8b8fe4f40bc74e24bd0d61", "score": "0.5187714", "text": "public Command(String clientCmd, String serverCmd, String helpMsg,\n\t\t\tString clientArgs, String serverArgs, String special) {\n\t\tthis.clientCmd = clientCmd;\n\t\tthis.serverCmd = serverCmd;\n\t\tthis.helpMsg = helpMsg;\n\t\tthis.clientArgs = clientArgs.split(\",\");\n\t\tthis.serverArgs = serverArgs.split(\",\");\n\t\tthis.reflectVariable = special;\n\t}", "title": "" }, { "docid": "fca2ddac40000db10d81c5bbdbe14e7a", "score": "0.5166875", "text": "public void doCommand(String cmd) \n{\n\tStringTokenizer tk = new StringTokenizer(cmd);\n\tString token = tk.nextToken();\n\n\tif(token.equals(\"#quit\"))\n\t{\n\t\ttry\n\t\t{\n\t\t\tstopListening();\n\t\t\tclose();\n\t\t\tSystem.exit(0);\n\t\t}\n\t\tcatch(IOException e)\n\t\t{\n\t\t\tSystem.exit(0);\n\t\t}\n\t} \n\telse if(token.equals(\"#stop\"))\n\t{\n\t\tstopListening();\n\t\tSystem.out.println(\"stop successful.\");\n\t} \n\telse if(token.equals(\"#close\"))\n\t{\n\t\ttry\n\t\t{\n\t\t\tstopListening();\n\t\t\tclose();\n\t\t\tSystem.out.println(\"close successful.\");\n\t\t}\n\t\tcatch(IOException e)\n\t\t{\n\t\t\tSystem.exit(0);\n\t\t}\n\t} \n\telse if(token.equals(\"#setport\"))\n\t{\n\t\tif(!isListening() && getNumberOfClients() == 0)\n\t\t{\n\t\t\tsetPort(Integer.parseInt(tk.nextToken()));\n\t\t\tSystem.out.println(\"setport successful.\");\n\t\t}\n\t\telse\n\t\t{\n\t\t\tSystem.out.println(\"You must close the server before setting the port.\");\n\t\t}\n\t} \n\telse if(token.equals(\"#start\"))\n\t{\n\t\tif(!isListening())\n\t\t{\n\t\t\ttry\n\t\t\t{\n\t\t\t\tlisten();\n\t\t\t\tSystem.out.println(\"start successful.\");\n\t\t\t}\n\t\t\tcatch(IOException e)\n\t\t\t{\n\t\t\t\tSystem.out.println(\"Could not start listening for connections.\");\n\t\t\t}\n\t\t}\n\t} \n\telse \t if(token.equals(\"#getport\"))\n\t{\n\t\tSystem.out.println(\"port is: \"+getPort());\n\t} \n\telse \n\t{\n\t\tSystem.out.println(\"Invalid command.\");\n\t}\n}", "title": "" }, { "docid": "02220fcee08b7c3e044c3cc74c24fdd9", "score": "0.5161549", "text": "void addToSendQueue(String command, Object... args);", "title": "" }, { "docid": "acf227b782c192a4948ad85b8e3c0e45", "score": "0.5143372", "text": "public CommandObject( int cmd, Class c )\n {\n Command = cmd;\n classArgs = new Class[1];\n classArgs[0] = c;\n }", "title": "" }, { "docid": "9a9478449c0af3145dd46998161d4721", "score": "0.5138918", "text": "abstract public void runCommand(String[] params);", "title": "" }, { "docid": "b79d91fbc5c064edeb6c7fd4546ddcda", "score": "0.5135806", "text": "public interface ClientCommand {\n public String getUrl();\n public Map<String, String> getSearchParams();\n}", "title": "" }, { "docid": "4bdc8e677c8a2322fed01fe5cd342e19", "score": "0.51352876", "text": "@Override\n\tpublic void onCommand(String s) {\n\t\t\n\t}", "title": "" }, { "docid": "95010667f7b6f4775d0c9b6460288bcf", "score": "0.5133808", "text": "public CommandObject( int cmd, Object o )\n {\n Command = cmd;\n objectArgs = new Object[1];\n objectArgs[0] = o;\n }", "title": "" }, { "docid": "eeb516436fb8b43fadae16218b824cc7", "score": "0.512856", "text": "public void commandAction(Command c, Item item) {\n\t\t\r\n\t}", "title": "" }, { "docid": "8f4053b13c718b476bf6f31f81b27d21", "score": "0.5125046", "text": "public void command( Args args ) ;", "title": "" }, { "docid": "e79d5518b41fddd89d14c521ba75c44d", "score": "0.51239175", "text": "public void setCommand(String com) { this.command = com;}", "title": "" }, { "docid": "23d179cf62ce20751443c9470d3417c7", "score": "0.5122023", "text": "public void setCommand(int cmd) {\n command = cmd;\n }", "title": "" }, { "docid": "9eaa59e11787fdd925425728f843dded", "score": "0.5116722", "text": "void addToSendQueue(String command);", "title": "" }, { "docid": "c159e78862a7d6f1c3216e2d2628648c", "score": "0.5115737", "text": "public AddCommand(DiagramType addType, QGraphicsScene scene)\n {\n myGraphicsScene = scene;\n myDiagramItem = new DiagramItem(addType);\n initialPosition = new QPointF((UndoFramework.itemCount * 15) % (int) scene.width(),\n (UndoFramework.itemCount * 15) % (int) scene.height());\n scene.update();\n ++UndoFramework.itemCount;\n setText(tr(\"Add \" + UndoFramework.createCommandString(myDiagramItem, initialPosition)));\n }", "title": "" }, { "docid": "23553a7f1497171c4999579ba2366708", "score": "0.511271", "text": "@Override\n public void addCommand(ICommand command) {\n this.commandSequences.add(command);\n }", "title": "" }, { "docid": "c33dbf7823946fe0ca77cfc7654f15d1", "score": "0.51088166", "text": "@SuppressWarnings(\"unused\")\r\n\tpublic void addCommand(Integer commandID,\r\n\t\t\t\t\t\t String menuText, Vector<String> vrCommands, Integer correlationID)\r\n\t\t\tthrows SdlException {\r\n\t\t\r\n\t\taddCommand(commandID, menuText, null, null, vrCommands, correlationID);\r\n\t}", "title": "" }, { "docid": "7eecce2d8b9360e6f178df4cc511d309", "score": "0.5108362", "text": "public abstract void command(String pComm);", "title": "" }, { "docid": "87880809d062668af5ae31faec462811", "score": "0.5103157", "text": "@SuppressWarnings(\"unused\")\r\n\tpublic void addCommand(Integer commandID,\r\n\t\t\t\t\t\t String menuText, Vector<String> vrCommands, String IconValue, ImageType IconType, Integer correlationID)\r\n\t\t\tthrows SdlException {\r\n\t\t\r\n\t\taddCommand(commandID, menuText, null, null, vrCommands, IconValue, IconType, correlationID);\r\n\t}", "title": "" }, { "docid": "14951be8feecc3f9993fdf87182c80ba", "score": "0.50921315", "text": "public CommandObject( int cmd, String s1, String s2 )\n {\n Command = cmd;\n stringArgs = new String[2];\n stringArgs[0] = s1;\n stringArgs[1] = s2;\n }", "title": "" }, { "docid": "0eb40f3733551c2aaf013254b3eededd", "score": "0.50899863", "text": "public void addCommand(ActionCommand act){\n SQLiteDatabase db = this.getWritableDatabase();\n\n // 2. create ContentValues to add key \"column\"/value\n ContentValues values = new ContentValues();\n values.put(KEY_CMD, act.getAction()); // get title\n values.put(KEY_RECIP, act.getRecipient()); // get author\n values.put(KEY_TIME, act.getActionTime().toString()); // get author\n // 3. insert\n db.insert(TABLE_COMMANDS, // table\n null, //nullColumnHack\n values); // key/value -> keys = column names/ values = column values\n db.close();\n }", "title": "" }, { "docid": "40719993e74475990b746ffdb5334ff1", "score": "0.5088231", "text": "private RobotPacket next(String cmd, String[] params){\n\t\ttry {\n\t\t\tRuntime.getRuntime().exec(\"cmd.exe /C start ./src/RobotScripts/next.vbs\");\n\t\t\treturn sucessful(cmd, params);\n\t\t} catch (IOException e) {\n\t\t\treturn failed(cmd, params);\n\t\t}\n\t}", "title": "" }, { "docid": "b12e83791d1e72c98ff907e0a8460f72", "score": "0.50802433", "text": "protected void addCommand(Command command){\n\t\tif (commands != null){\n\t\t\tcommands.add(command);\n\t\t}\n\t}", "title": "" }, { "docid": "0450e7ddb4b67008e3e56ff829f59422", "score": "0.5078255", "text": "public void emit(int userId, String command, Object ... args) {\n if(!command.matches(\"^[A-Za-z0-9_]+$\"))\n throw new IllegalArgumentException(\"Command must match [A-Za-z0-9_]\");\n String message = Strings.encodeMessage(args);\n message = Base64.getEncoder().encodeToString(message.getBytes());\n server.sendToClient(userId, command + \" \" + message + \"\\n\");\n }", "title": "" }, { "docid": "bfb2e73ed85ad08fded3801f31da3481", "score": "0.5076749", "text": "public void emit(int userId, String command) {\n if(!command.matches(\"^[A-Za-z0-9_]+$\"))\n throw new IllegalArgumentException(\"Command must match [A-Za-z0-9_]\");\n server.sendToClient(userId, command + \"\\n\");\n }", "title": "" }, { "docid": "f80a439368c6d26578af4e64b0e86dbc", "score": "0.50634855", "text": "public void start() {\r\n\r\n\t\trmiUtils.startRMI(IRMI_Defs.CLASS_SERVER_PORT_CLIENT);\r\n\t\t mixdict = new MixedDataDictionary();\r\n\t\t _cmd2MA = new ICmd2ModelAdapter(){\r\n\t\t\t \t/**\r\n\t\t\t \t * return local user stub\r\n\t\t\t \t */\r\n\t\t\t\tpublic IUser getLocalUserStub() {\r\n\t\t\t\t\treturn _userStub;\r\n\t\t\t\t}\r\n\t\t\t\t/**\r\n\t\t\t\t * append a string some where in the local model\r\n\t\t\t\t */\r\n\t\t\t\tpublic void append(String s) {\r\n\t\t\t\t\t_miniModel.append(s);\r\n\t\t\t\t}\r\n\t\t\t\t/**\r\n\t\t\t\t * add a component somewhere in the view\r\n\t\t\t\t */\r\n\t\t\t\tpublic void addComponent(String name, final Component newComp) {\r\n\t\t\t\t\t(new JFrame(){\r\n\t\t\t\t\t\tprivate static final long serialVersionUID = -2401588886177882952L;\r\n\t\t\t\t\t\tpublic void start(){\r\n\t\t\t\t\t\t\tgetContentPane().add(newComp);\r\n\t\t\t\t\t\t\tsetVisible(true);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}).start();\r\n\t\t\t\t}\r\n\t\t\t\t/**\r\n\t\t\t\t * the mixed data dictionary shared by all cmds\r\n\t\t\t\t */\r\n\t\t\t\tpublic IMixedDataDictionary getDataDict() {\r\n\t\t\t\t\treturn mixdict;\r\n\t\t\t\t}};\r\n\t\t_visitor = new DataPacketAlgo<ADataPacket, Object>(new ADataPacketAlgoCmd<ADataPacket, Object, Object>(){\r\n\t\t\t/**\r\n\t\t\t * generated serial uid.\r\n\t\t\t */\r\n\t\t\tprivate static final long serialVersionUID = 1L;\r\n\t\t\t/**\r\n\t\t\t * default cmd for our visitor, it sends out request cmd and execute the result , which should be a IAddCmd dp\r\n\t\t\t */\r\n\t\t\tpublic ADataPacket apply(Class<?> index, DataPacket<Object> host,\r\n\t\t\t\t\tObject... params) {\r\n\t\t\t\tSystem.out.println(\"entering default cmd, sending requestcmd\");\r\n\t\t\t\ttry {\r\n\t\t\t\t\tADataPacket dad = host.getSender().receiveData(new DataPacket<IRequestCmd>(IRequestCmd.class, _userStub, new RequestCmd(index)));\r\n\t\t\t\t\treturn dad.execute(_visitor, host);\r\n\t\t\t\t} catch (RemoteException e) {\r\n\t\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t\treturn new DataPacket<IStatusFail>(IStatusFail.class, _userStub, new StatusFail(e.getMessage(),host));\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t/**\r\n\t\t\t * no-op\r\n\t\t\t */\r\n\t\t\tpublic void setCmd2ModelAdpt(ICmd2ModelAdapter cmd2ModelAdpt) {\r\n\t\t\t\t//no-op\r\n\t\t\t}});\r\n\t\t_visitor.setCmd(IAddUser.class, new ADataPacketAlgoCmd<ADataPacket, IAddUser, Object>(){\r\n\r\n\t\t\t/**\r\n\t\t\t * generated serial id\r\n\t\t\t */\r\n\t\t\tprivate static final long serialVersionUID = 1L;\r\n\t\t\t/**\r\n\t\t\t * add the user into local chatroom\r\n\t\t\t */\r\n\t\t\tpublic ADataPacket apply(Class<?> index, DataPacket<IAddUser> host,\r\n\t\t\t\t\tObject... params) {\r\n\t\t\t\ttry{\r\n\t\t\t\tIAddUser d = host.getData();\r\n\t\t\t\t_room.addLocalUser(d.getUser());\r\n\t\t\t\t_miniModel.updateView(_room);\r\n\t\t\t\treturn new DataPacket<IStatusOk>(IStatusOk.class, _userStub, new StatusOk());\r\n\t\t\t\t}catch(Exception e){\r\n\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t\treturn new DataPacket<IStatusFail>(IStatusFail.class, _userStub, new StatusFail(e.getMessage(),host));\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t/**\r\n\t\t\t * no-op\r\n\t\t\t */\r\n\t\t\tpublic void setCmd2ModelAdpt(ICmd2ModelAdapter cmd2ModelAdpt) {\r\n\t\t\t}});\r\n\t\r\n\t\t_visitor.setCmd(IStatusOk.class, new ADataPacketAlgoCmd<ADataPacket, IStatusOk, Object>(){\r\n\r\n\t\t\t/**\r\n\t\t\t * generated uid\r\n\t\t\t */\r\n\t\t\tprivate static final long serialVersionUID = 1L;\r\n\t\t\t/**\r\n\t\t\t * print ok status to view\r\n\t\t\t */\r\n\t\t\tpublic ADataPacket apply(Class<?> index,\r\n\t\t\t\t\tDataPacket<IStatusOk> host, Object... params) {\r\n\t\t\t\ttry {\r\n\t\t\t\t\t_viewAdapter.append(host.getSender().getName() + \"says ok \\n\");\r\n\t\t\t\t\t//return new DataPacket<IStatusOk>(IStatusOk.class, _userStub, new StatusOk());\r\n\t\t\t\t\treturn null;\r\n\t\t\t\t} catch (RemoteException e) {\r\n\t\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t\treturn new DataPacket<IStatusFail>(IStatusFail.class, _userStub, new StatusFail(e.getMessage(),host));\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t/**\r\n\t\t\t * no-op\r\n\t\t\t */\r\n\t\t\tpublic void setCmd2ModelAdpt(ICmd2ModelAdapter cmd2ModelAdpt) {\r\n\t\t\t\t// TODO Auto-generated method stub\r\n\t\t\t\t\r\n\t\t\t}});\r\n\t\t\r\n\t\t_visitor.setCmd(IRemoveUser.class, new ADataPacketAlgoCmd<ADataPacket, IRemoveUser, Object>(){\r\n\r\n\t\t\t/**\r\n\t\t\t * generated uid\r\n\t\t\t */\r\n\t\t\tprivate static final long serialVersionUID = 1L;\r\n\t\t\t/**\r\n\t\t\t * remove a user in local chatroom\r\n\t\t\t */\r\n\t\t\tpublic ADataPacket apply(Class<?> index,\r\n\t\t\t\t\tDataPacket<IRemoveUser> host, Object... params) {\r\n\t\t\t\ttry{\r\n\t\t\t\tIRemoveUser d = host.getData();\r\n\t\t\t\t_room.removeLocalUser(d.getUser());\r\n\t\t\t\t_miniModel.updateView(_room);\r\n\t\t\t\treturn new DataPacket<IStatusOk>(IStatusOk.class, _userStub, new StatusOk());\r\n\t\t\t\t}catch(Exception e){\r\n\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t\treturn new DataPacket<IStatusFail>(IStatusFail.class, _userStub, new StatusFail(e.getMessage(),host));\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t/**\r\n\t\t\t * no-op\r\n\t\t\t */\r\n\t\t\tpublic void setCmd2ModelAdpt(ICmd2ModelAdapter cmd2ModelAdpt) {\r\n\t\t\t\t// TODO Auto-generated method stub\r\n\t\t\t\t\r\n\t\t\t}});\r\n\r\n\t\t_visitor.setCmd(IStatusFail.class, new ADataPacketAlgoCmd<ADataPacket, IStatusFail, Object>(){\r\n\r\n\t\t\t/**\r\n\t\t\t * generated uid\r\n\t\t\t */\r\n\t\t\tprivate static final long serialVersionUID = 1L;\r\n\t\t\t/**\r\n\t\t\t * prints fail status from someone to view\r\n\t\t\t */\r\n\t\t\tpublic ADataPacket apply(Class<?> index,\r\n\t\t\t\t\tDataPacket<IStatusFail> host, Object... params) {\r\n\t\t\t\ttry{\r\n\t\t\t\tIStatusFail d = host.getData();\r\n\t\t\t\t_viewAdapter.append(host.getSender().getName()+\" return a IStatusFail\"+d.getMsg());\r\n\t\t\t\treturn new DataPacket<IStatusOk>(IStatusOk.class, _userStub, new StatusOk());\r\n\t\t\t\t}catch(Exception e){\r\n\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t\treturn new DataPacket<IStatusFail>(IStatusFail.class, _userStub, new StatusFail(e.getMessage(),host));\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 * no-op\r\n\t\t\t */\r\n\t\t\tpublic void setCmd2ModelAdpt(ICmd2ModelAdapter cmd2ModelAdpt) {\r\n\t\t\t\t// TODO Auto-generated method stub\r\n\t\t\t\t\r\n\t\t\t}});\r\n\t\t_visitor.setCmd(IStatusReject.class, new ADataPacketAlgoCmd<ADataPacket, IStatusReject, Object>(){\r\n\r\n\t\t\t/**\r\n\t\t\t * generated uid\r\n\t\t\t */\r\n\t\t\tprivate static final long serialVersionUID = 1L;\r\n\t\t\t/**\r\n\t\t\t * prints someone reject with a message to view\r\n\t\t\t */\r\n\t\t\tpublic ADataPacket apply(Class<?> index,\r\n\t\t\t\t\tDataPacket<IStatusReject> host, Object... params) {\r\n\t\t\t\ttry{\r\n\t\t\t\tIStatusReject d = host.getData();\r\n\t\t\t\t_viewAdapter.append(host.getSender().getName()+\" return a IStatusReject\"+ d.getMsg());\r\n\t\t\t\treturn new DataPacket<IStatusOk>(IStatusOk.class, _userStub, new StatusOk());\r\n\t\t\t\t}catch(Exception e){\r\n\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t\treturn new DataPacket<IStatusFail>(IStatusFail.class, _userStub, new StatusFail(e.getMessage(),host));\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 * no-op\r\n\t\t\t */\r\n\t\t\tpublic void setCmd2ModelAdpt(ICmd2ModelAdapter cmd2ModelAdpt) {\r\n\t\t\t\t// TODO Auto-generated method stub\r\n\t\t\t\t\r\n\t\t\t}});\r\n\t\t_visitor.setCmd(ITextMessage.class, new ADataPacketAlgoCmd<ADataPacket, ITextMessage, Object>(){\r\n\r\n\t\t\t/**\r\n\t\t\t * default uid\r\n\t\t\t */\r\n\t\t\tprivate static final long serialVersionUID = 1L;\r\n\t\t\t/**\r\n\t\t\t * print the msg with name time to mini view\r\n\t\t\t */\r\n\t\t\tpublic ADataPacket apply(Class<?> index,\r\n\t\t\t\t\tDataPacket<ITextMessage> host, Object... params) {\r\n\t\t\t\ttry{\r\n\t\t\t\tITextMessage d = host.getData();\r\n\t\t\t\t_miniModel.append(\"\\n\" + d.getTime() + d.getName() + \" says: \" + d.getMsg() + \". \\n\");\r\n\t\t\t\treturn new DataPacket<IStatusOk>(IStatusOk.class, _userStub, new StatusOk());\r\n\t\t\t\t}catch(Exception e){\r\n\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t\treturn new DataPacket<IStatusFail>(IStatusFail.class, _userStub, new StatusFail(e.getMessage(),host));\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 * no-op\r\n\t\t\t */\r\n\t\t\tpublic void setCmd2ModelAdpt(ICmd2ModelAdapter cmd2ModelAdpt) {\r\n\t\t\t\t// TODO Auto-generated method stub\r\n\t\t\t\t\r\n\t\t\t}});\r\n\t\t\r\n\t\t_visitor.setCmd(IAddCmd.class, new ADataPacketAlgoCmd<ADataPacket, IAddCmd, Object>(){\r\n\r\n\t\t\t/**\r\n\t\t\t * default uid\r\n\t\t\t */\r\n\t\t\tprivate static final long serialVersionUID = 1L;\r\n\t\t\t/**\r\n\t\t\t * take cmd out of IAddCmd and put it into client visitor, execute visitor with params[0]\r\n\t\t\t * @param params[0] should be the unprocessed datapacket\r\n\t\t\t * this cmd is called upon receiving IAddCmd in default cmd, and my default cmd passes unprocessed dp as param[0]\r\n\t\t\t */\r\n\t\t\t@SuppressWarnings(\"unchecked\")\r\n\t\t\tpublic ADataPacket apply(Class<?> index, DataPacket<IAddCmd> host,\r\n\t\t\t\t\tObject... params) {\r\n\t\t\t\ttry{\r\n\t\t\t\tSystem.out.println(\"got addcmd and install it into my visitor\");\r\n\t\t\t\tIAddCmd d = host.getData();\r\n\t\t\t\tADataPacketAlgoCmd<ADataPacket, ?, Object> cmd = (ADataPacketAlgoCmd<ADataPacket, ?, Object>)d.getNewCmd();\r\n\t\t\t\tcmd.setCmd2ModelAdpt(_cmd2MA);\r\n\t\t\t\t_visitor.setCmd(d.getID(), cmd);\r\n\t\t\t\treturn ((ADataPacket)params[0]).execute(_visitor, _viewAdapter);\r\n\t\t\t\t}catch(Exception e){\r\n\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t\treturn new DataPacket<IStatusFail>(IStatusFail.class, _userStub, new StatusFail(e.getMessage(),host));\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 * no-op\r\n\t\t\t */\r\n\t\t\tpublic void setCmd2ModelAdpt(ICmd2ModelAdapter cmd2ModelAdpt) {\r\n\t\t\t}});\r\n\t\t\r\n\t\ttry {\r\n\t\t\t_host = new IHost(){\r\n\t\t\t\t/**\r\n\t\t\t\t * local host name\r\n\t\t\t\t */\r\n\t\t\t\tpublic String getName() throws RemoteException {\r\n\t\t\t\t\treturn \"bw6 client IHost\";\r\n\t\t\t\t}\r\n\t\t\t\t/**\r\n\t\t\t\t * local host uuid\r\n\t\t\t\t */\r\n\t\t\t\tpublic UUID getUUID() throws RemoteException {\r\n\t\t\t\t\treturn _uuid;\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\t@Override\r\n\t\t\t\t/**\r\n\t\t\t\t *non-op\r\n\t\t\t\t */\r\n\t\t\t\tpublic void sendLocalHostStub(IHost localHostStub)\r\n\t\t\t\t\t\tthrows RemoteException {\r\n\t\t\t\t\treturn;\r\n\t\t\t\t\t\r\n\t\t\t\t}\r\n\r\n\t\t\t\t@Override\r\n\t\t\t\t/**\r\n\t\t\t\t * non-op for client host.\r\n\t\t\t\t */\r\n\t\t\t\tpublic void requestInvite(IHost localHostStub)\r\n\t\t\t\t\t\tthrows RemoteException {\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\t/**\r\n\t\t\t\t * some one sent me a list of IChatroominvite, this method prints the invites info and returns\r\n\t\t\t\t * a uuid associated chosen invite.\r\n\t\t\t\t */\r\n\t\t\t\tpublic UUID sendInvite(Iterable<IChatRoomInvite> chatroomInfo)\r\n\t\t\t\t\t\tthrows RemoteException {\r\n\t\t\t\t\t_viewAdapter.append(\"\\n Please choose from the following chatrooms \\n\");\r\n\t\t\t\t\tHashMap<Integer, UUID> intUUIDDict = new HashMap<Integer, UUID>();\r\n\t\t\t\t\tint i = 1;\r\n\t\t\t\t\tfor(IChatRoomInvite invite: chatroomInfo){\r\n\t\t\t\t\t\tintUUIDDict.put(i, invite.getUUID());\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t_viewAdapter.append(\"ChatRoom #\" + i + \": \" + invite.getName() + \"* : \\n\");\r\n\t\t\t\t\t\tfor(String name: invite.getUserNames()){\r\n\t\t\t\t\t\t\t_viewAdapter.append(\" \"+name+\",\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\t_viewAdapter.append(\"\\n\");\r\n\t\t\t\t\t\ti++;\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t\ttry {\r\n\t\t\t\t\t\tint ii = choiceQueue.take();\r\n\t\t\t\t\t\tSystem.out.println(\"blocking queue , user finally make a choice\"+i);\r\n\t\t\t\t\t\treturn intUUIDDict.get(ii);\r\n\t\t\t\t\t} catch (InterruptedException e) {\r\n\t\t\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t\t\treturn IChatRoomInvite.NONE;\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 * add local IUser to this localChatRoom\r\n\t\t\t\t * return true if succeed\r\n\t\t\t\t */\r\n\t\t\t\tpublic boolean addToChatRoom(IChatRoom localChatRoom)\r\n\t\t\t\t\t\tthrows RemoteException {\r\n\t\t\t\t\t_miniModel = new MiniModel(localChatRoom, _userStub);\r\n\t\t\t\t\t_miniModel.setMM2VA(_viewAdapter.makeMiniModel2ViewAdapter(_miniModel));\r\n\t\t\t\t\t_miniModel.updateView(localChatRoom);\r\n\t\t\t\t\t_room = localChatRoom;\r\n\t\t\t\t\t_room.addLocalUser(_userStub);\r\n\t\t\t\t\tAddUser au = new AddUser(_userStub);\r\n\t\t\t\t\tADataPacket dp = new DataPacket<IAddUser>(IAddUser.class, _userStub, au);\r\n\t\t\t\t\tIterable<ADataPacket> results = _room.sendMessage(dp);\r\n\t\t\t\t\tfor(ADataPacket result: results){\r\n\t\t\t\t\t\t//use host-visitor to check result\r\n\t\t\t\t\t\tresult.execute(_visitor, _viewAdapter);\r\n\t\t\t\t\t}\r\n\t\t\t\t\t_miniModel.updateView(_room);\r\n\t\t\t\t\treturn true;//if all return status ok, else return false;\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t};\r\n\t\t\t_user = new IUser(){\r\n\t\t\t\t/**\r\n\t\t\t\t * local iuser name\r\n\t\t\t\t */\r\n\t\t\t\tpublic String getName() throws RemoteException {\r\n\t\t\t\t\treturn \"bw6 client user\";\r\n\t\t\t\t}\r\n\t\t\t\t/**\r\n\t\t\t\t * local iuser uuid\r\n\t\t\t\t */\r\n\t\t\t\tpublic UUID getUUID() throws RemoteException {\r\n\t\t\t\t\treturn _uuid;\r\n\t\t\t\t}\r\n\t\t\t\t/**\r\n\t\t\t\t * execute with local _visitor\r\n\t\t\t\t */\r\n\t\t\t\tpublic ADataPacket receiveData(ADataPacket dp)\r\n\t\t\t\t\t\tthrows RemoteException {\r\n\t\t\t\t\tif(dp != null){\r\n\t\t\t\t\t\treturn dp.execute(_visitor, _viewAdapter);\r\n\t\t\t\t\t}else{\r\n\t\t\t\t\t\treturn new DataPacket<IStatusFail>(IStatusFail.class, _userStub, new StatusFail(\"datapacket is null\",dp));\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_userStub = (IUser)UnicastRemoteObject.exportObject(_user, IUser.CONNECTION_PORT_CLIENT);\r\n\t\t\t_viewAdapter.append(\"Instantiated new IHost: \"+\"\\n\");\r\n\t\t\t_hostStub =(IHost) UnicastRemoteObject.exportObject(_host, IHost.CONNECTION_PORT_CLIENT);\r\n\t\t\t_viewAdapter.append(\"Looking for registry...\"+\"\\n\");\r\n\t\t\tregistry = rmiUtils.getLocalRegistry();\r\n\t\t\t_viewAdapter.append(\"Found registry: \" + \"\\n\");\r\n\t\t\tregistry.rebind(IHost.BOUND_NAME, _hostStub);\r\n\t\t\t_viewAdapter.append(\"My host bound to \"+IHost.BOUND_NAME+\"\\n\");\r\n\t\t} \r\n\t\tcatch (Exception e) {\r\n\t\t\tSystem.err.println(\"My host exception:\"+\"\\n\");\r\n\t\t\te.printStackTrace();\r\n\t\t\tSystem.exit(-1);\r\n\t\t}\r\n\t\t_viewAdapter.append(\"Please type in ip addresses to connect...\"+\"\\n\");\r\n\t}", "title": "" }, { "docid": "e9ed7c9de93ab82f341576debcae1ad6", "score": "0.5062284", "text": "public void requestCommandsExe(ArrayList<GameCommand> cmds){\r\n if(!cmds.isEmpty()){\r\n ACLMessage msg = new ACLMessage(ACLMessage.INFORM);\r\n msg.setConversationId(ConverId.UnitM.SendCommandsToCommander.getConId());\r\n try{\r\n msg.setContentObject((ArrayList<GameCommand>) cmds);\r\n }catch(Exception e){\r\n System.out.println(\"Failed to set message object: \" + e.toString());\r\n }\r\n msg.addReceiver(unit_manager);\r\n send(msg);\r\n// System.out.println(this.getLocalName() + \"> Commands sent to \" + unit_manager.getLocalName() + \"cmd size: \" + cmds.size());\r\n }\r\n }", "title": "" }, { "docid": "2c8fb3133200eae8221b9f0b9b0f5597", "score": "0.5038627", "text": "void CL(String clientLine);", "title": "" }, { "docid": "6d2c807b2053a7742655af940defcc0c", "score": "0.5035236", "text": "public Object getCommandData(String command);", "title": "" }, { "docid": "47669db94b3c6159f034feb5d51053aa", "score": "0.50313604", "text": "public static void dispatchCMD(String userCMD,List<Personnage> listCara,List listFighter)\n {\n if(userCMD.equals(\"Help\"))\n {\n helpMethod();\n }\n else if(userCMD.equals(\"Create\"))\n {\n archeTopic(listCara);\n }\n else if(userCMD.equals(\"Info\"))\n {\n caractereList(listCara);\n }\n else if(userCMD.equals(\"Number\"))\n {\n numberOfCara(listCara);\n }\n else if(userCMD.equals(\"Fight\"))\n {\n Personnage.startFight();\n fightingFighter(listCara,listFighter);\n Fight.letsFight(listFighter);\n }\n else if (userCMD.equals(\"CreateWarrior\"))\n {\n Personnage cara = CreatePersonnage.createWarrior();\n listCara.add(cara);\n }\n else if (userCMD.equals(\"CreateWizard\")) {\n Personnage cara = CreatePersonnage.createWizard();\n listCara.add(cara);\n }\n else if (userCMD.equals(\"CreateThief\"))\n {\n Personnage cara = CreatePersonnage.createThief();\n listCara.add(cara);\n }\n else if(userCMD.equals(\"Delete\"))\n {\n deleteThis(listCara);\n }\n\n }", "title": "" }, { "docid": "43c7582aef329ad07578bf205c7e3984", "score": "0.5030081", "text": "public static void execCommand(String cmd, User u1, User u2) {\n switch (cmd) {\n case \"give\":\n System.out.println(\"Amount?\");\n String line = scanner.nextLine();\n double value = Double.parseDouble(line);\n System.out.println(u1 + \" giving \" + value + \" to \" + u2);\n blockchain.newTransaction(value, u1, u2);\n u1.addValue(-1.0 * value);\n u2.addValue(value);\n break;\n default:\n System.out.println(\"Invalid Command\");\n }\n }", "title": "" }, { "docid": "bd94c63aadbcca958e446211b138fe9e", "score": "0.5025224", "text": "public abstract void doCommand(COMMAND command, Instance instance);", "title": "" }, { "docid": "cfe170e245a2ffe3bfe8f8d1dd3715e6", "score": "0.50185287", "text": "@Override\n public void execute(Client client, String line) {\n \n }", "title": "" }, { "docid": "a9acd604156dfee81819207d643ceae9", "score": "0.5014099", "text": "private void commandToServer(String input) {\n\t\tServerData data = new ServerData(input);\n\t\ttry {\n\t\t\tGUICommands.put(data);\n\t\t} catch (InterruptedException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "title": "" }, { "docid": "8c569dec4db0d9c92abd9084156f60ff", "score": "0.5012256", "text": "public abstract void processCommand(DynamixSession app, IDynamixListener listener) throws Exception;", "title": "" }, { "docid": "ccd4a9e5ebdb60c7541e8918ab8edc5d", "score": "0.5011422", "text": "public static void run_add(int add) throws IOException{\n\t\tString type_inst;\t\t\n\t\tfor(int i=0;i<line_code.size();i++){\n\t\t\tString address=(String) line_code.get(i).get(0);\n\t\t\tint temp=Integer.valueOf(address);\n\t\t\tif(temp==add){\n\t\t\t\ttype_inst=(String) line_code.get(i).get(1);\n\t\t\t\trun_inst(type_inst,line_code.get(i));\t\t//run this instruction\n\t\t\t\tbreak;\t\t\t\t\t\t\t\t\t\t//jump out for loop \n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "85fe5a11f8760feeac4f4988e365abb7", "score": "0.5010911", "text": "@SuppressWarnings(\"unused\")\r\n\tpublic void addCommand(Integer commandID,\r\n\t\t\t\t\t\t String menuText, Integer position,\r\n\t\t\t\t\t\t Vector<String> vrCommands, String IconValue, ImageType IconType, Integer correlationID)\r\n\t\t\tthrows SdlException {\r\n\t\t\r\n\t\taddCommand(commandID, menuText, null, position, vrCommands, IconValue, IconType, correlationID);\r\n\t}", "title": "" }, { "docid": "46a6d65baecb3291bc326d2f0baeff85", "score": "0.49909723", "text": "@SuppressWarnings(\"unused\")\r\n\tpublic void addCommand(Integer commandID,\r\n\t\t\t\t\t\t String menuText, Integer position,\r\n\t\t\t\t\t\t Vector<String> vrCommands, Integer correlationID)\r\n\t\t\tthrows SdlException {\r\n\t\t\r\n\t\taddCommand(commandID, menuText, null, position, vrCommands, correlationID);\r\n\t}", "title": "" }, { "docid": "1439f084751914b74bdacb6aff8af875", "score": "0.498733", "text": "private CommandType interpretAddCommand(String userInput) throws InvalidCommandException {\r\n\t\tif(!userInput.startsWith(\"\\\"\") && !isValidTask(userInput)){\r\n\t\t\t//unless the task description is within double quotes, the first word should be a valid English word.\r\n\t\t\tthrow new InvalidCommandException();\r\n\t\t}\r\n\t\tString projectName = \"\";\r\n\t\tif(userInput.contains(\"#\")){\r\n\t\t\t//if the command contains # it means that the user has specified a particular project to add this task to.\r\n\t\t\tif(userInput.substring(userInput.indexOf('#')+1).contains(\"#\")){\r\n\t\t\t\t//a task can be added to only one project.\r\n\t\t\t\tthrow new InvalidCommandException();\r\n\t\t\t}\r\n\t\t\tprojectName = userInput.substring(userInput.indexOf('#')+1);\r\n\t\t\tif(projectName.equals(\"default\")){\r\n\t\t\t\t//a user can't explicitly add things to the \"default\" project. that is reserved for task without any project.\r\n\t\t\t\tthrow new InvalidCommandException();\r\n\t\t\t}\r\n\t\t\tuserInput = userInput.substring(0,userInput.indexOf('#')-1);\r\n\t\t}\r\n\t\tif(userInput.length()<2){\r\n\t\t\t//there can be no task descriptions smaller that 3 letters.\r\n\t\t\tthrow new InvalidCommandException();\r\n\t\t}\r\n\t\tArrayList<Date> dates = new ArrayList<Date>();\r\n\t\tString taskDescription;\r\n\t\tif(userInput.startsWith(\"\\\"\")){\r\n\t\t\t//it is possible that the user has entered the task description without double quotes. The command would be invalid if there\r\n\t\t\t//is no closing quote.\r\n\t\t\ttry{\r\n\t\t\t\ttaskDescription = userInput.substring(1,userInput.lastIndexOf('\\\"'));\r\n\t\t\t\tif(userInput.length()>userInput.lastIndexOf('\\\"')+1){\r\n\t\t\t\t\tparseDate(userInput.substring(userInput.lastIndexOf('\\\"')+1), dates);\r\n\t\t\t\t}\r\n\t\t\t} catch (Exception e){\r\n\t\t\t\tthrow new InvalidCommandException();\r\n\t\t\t}\r\n\t\t} else{\r\n\t\t\t//parseDate adds the dates the user entered in his command to the dates ArrayList and additionally returns the appropriate\r\n\t\t\t//task description after removing the parsed dates.\r\n\t\t\ttaskDescription = parseDate(userInput, dates);\r\n\t\t}\r\n\t\t//task desciption can never be null at this point. parseDate throws an InvalidCommandException that does not allow this.\r\n\t\tassert(taskDescription!=null);\r\n\t\tif(dates.size()==0){\r\n\t\t\t//user has entered a floating task.\r\n\t\t\tif(projectName.equals(\"\")){\r\n\t\t\t\treturn new AddCommandType(taskDescription);\r\n\t\t\t} else{\r\n\t\t\t\treturn new AddCommandType(taskDescription, null, projectName);\r\n\t\t\t}\r\n\t\t} else if(dates.size()==1){\r\n\t\t\t//the user has entered a deadline task.\r\n\t\t\tif(projectName.equals(\"\")){\r\n\t\t\t\treturn new AddCommandType(taskDescription, dates.get(0));\r\n\t\t\t} else{\r\n\t\t\t\treturn new AddCommandType(taskDescription, dates.get(0), projectName);\r\n\t\t\t}\r\n\r\n\t\t} else{\r\n\t\t\t//user has entered a timed task.\r\n\t\t\tif(projectName.equals(\"\")){\r\n\t\t\t\treturn new AddCommandType(taskDescription, dates.get(0), dates.get(1));\r\n\t\t\t} else{\r\n\t\t\t\treturn new AddCommandType(taskDescription, dates.get(0), dates.get(1), projectName);\r\n\t\t\t}\t\t\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "5ff9360761e10337dc7d9b0283f422b5", "score": "0.4975851", "text": "protected abstract String key(T cmd);", "title": "" }, { "docid": "123827a0a852a61b255f98074136e463", "score": "0.49744958", "text": "@SuppressWarnings(\"SameParameterValue\")\r\n\tpublic void addCommand(@NonNull Integer commandID,\r\n\t\t\t\t\t\t String menuText, Integer parentID, Integer position,\r\n\t\t\t\t\t\t Vector<String> vrCommands, Integer correlationID)\r\n\t\t\tthrows SdlException {\r\n\r\n\t\tAddCommand msg = new AddCommand(commandID);\r\n\t\tmsg.setCorrelationID(correlationID);\r\n\t\tmsg.setVrCommands(vrCommands);\r\n\t\tif(menuText != null || parentID != null || position != null) {\r\n\t\t\tMenuParams menuParams = new MenuParams();\r\n\t\t\tmenuParams.setMenuName(menuText);\r\n\t\t\tmenuParams.setPosition(position);\r\n\t\t\tmenuParams.setParentID(parentID);\r\n\t\t\tmsg.setMenuParams(menuParams);\r\n\t\t}\r\n\t\t\r\n\t\tsendRPCRequest(msg);\r\n\t}", "title": "" }, { "docid": "de55fd72ae1d6642574cff5b136ce6dd", "score": "0.496441", "text": "void addModification(WriteCommand command);", "title": "" }, { "docid": "27db2b945fb0a20c4055c43038124e09", "score": "0.49641964", "text": "void add(Msg msg);", "title": "" }, { "docid": "ce0bbc2c7eb00df1951ad8414e5c5602", "score": "0.49618894", "text": "public interface Command {\n /**\n * handle request String and execute command according String array Value\n * @param inputVariables split input variables\n * @param tagCount\n * @return response\n */\n String execute(String[] inputVariables, int tagCount);\n}", "title": "" }, { "docid": "e8d698d6f4180a7fa4564571c54d17b3", "score": "0.49434105", "text": "public interface CommandHandler {\n\t/**\n\t * Execute a command, and return the result as a string.\n\t * \n\t * @param client\n\t * @param command command name\n\t * @param param parameters\n\t * @throws Exception\n\t */\n\tpublic String executeCommand(ClientInfo client, String command, String param) throws Exception ;\n\t\n\t/**\n\t * Execute a command, and return the result as a byte array.\n\t * \n\t * @param client\n\t * @param command command name\n\t * @param param parameters\n\t * @throws Exception\n\t */\n\tpublic byte[] executeCommand(ClientInfo client, String command, byte[] param) throws Exception ;\n\t\n\t/**\n\t * Execute a command, and return the result as a ByteBuffer.\n\t * \n\t * @param client\n\t * @param command command name\n\t * @param param parameter\n\t * @throws Exception\n\t */\n\tpublic ByteBuffer executeCommand(ClientInfo client, String command, ByteBuffer param) throws Exception ;\n\t\n}", "title": "" }, { "docid": "b35e9815956088bf87cfcf90652e6eba", "score": "0.49384487", "text": "@Override\n public Optional<Command> executeCmd(Command command){return command.execute(this);}", "title": "" }, { "docid": "7bc63d63ab0cf2af67e6197617dc92d3", "score": "0.49383512", "text": "public CommandObject( int cmd, int i )\n {\n Command = cmd;\n intArgs = new int[1];\n intArgs[0] = i;\n }", "title": "" }, { "docid": "5ba510c4cf0a1f04fdff5fd80d1b649c", "score": "0.49361286", "text": "private static void processCertainAction(String request, PrintWriter out) {\n\t\tif (request.toLowerCase().startsWith(\"set \")) {\n\t\t\t// store address of server\n\t\t\tinsertConvAddress(request.substring(4), out);\n\t\t} else if (request.toLowerCase().startsWith(\"delete \")) {\n\t\t\t// delete requested address\n\t\t\tdeleteConvAddress(request.substring(7), out);\n\t\t} else if (request.toLowerCase().startsWith(\"get \")) {\n\t\t\t// get address for client\n\t\t\tgetConvAddress(request.substring(4), out);\n\t\t} else {\n\t\t\tout.println(\"Unsupported command\");\n\t\t}\n\t}", "title": "" }, { "docid": "71f1cb4d369450e86586efdb3f788f0d", "score": "0.49340406", "text": "public void send(String cmd){\n\t\tmReadWriter.write(cmd);\n\t}", "title": "" }, { "docid": "7ee500927a9a7682f6aab41681aa6a4d", "score": "0.49329948", "text": "private void executeGetCommand(JSONObject jsonObject, String cmd) {\n\t\t\n \t}", "title": "" }, { "docid": "b8395ee8b93bf4a47b1705ca6a4b83e6", "score": "0.4930558", "text": "void handleCommand(Client client, String command) {\n String[] pieces = command.split(\" \");\n String argument1 = command.split(\" \")[0];\n gui.addLogLine(\"[DeBug] \" + \"Received command \\\"\" + command + \"\\\" \" + \" from client \" + client.getName());\n switch (argument1.toUpperCase()) {\n case \"USER\":\n if (pieces.length >= 5) {\n\n if (this.checkForSimilarName(pieces[1]) || pieces[1].equalsIgnoreCase(client.getName())) {\n if (client.getName() == null) {\n client.setName(pieces[1]);\n }\n\n client.setIP(pieces[2]);\n\n client.setHost(pieces[3]);\n\n String realname = \"\";\n for (int i = 4; i < pieces.length; i++) {\n realname += pieces[i];\n }\n client.setRname(realname);\n\n client.ping();\n client.sendMessage(\":\" + ip + \" \" + RPL_WELCOME + \" \" + client.getName() + \" :Welcome to Danilafe's IRC\");\n this.sendMOTD(client);\n gui.addLogLine(\"Client has issued USER command.\");\n } else {\n client.sendMessage(\":\" + ip + \" \" + ERR_NICKNAMEINUSE + \" \" + client.getName());\n gui.addLogLine(\"Client tried to connect with nickname that is already in use.\");\n }\n\n\n\n\n }\n break;\n case \"NICK\":\n if (pieces.length > 1) {\n if (!(pieces[1].equalsIgnoreCase(client.getName()))) {\n if (this.checkForSimilarName(pieces[1])) {\n String oldname = client.getName();\n client.setName(pieces[1]);\n for (Channel c: getClientChannel(client)) {\n c.sendChannelMSG(\":\" + oldname + \"!\" + oldname + \"@\" + client.getIP() + \" NICK \" + client.getName());\n }\n gui.addLogLine(oldname + \" has changed their nick to \" + client.getName());\n } else {\n client.sendMessage(\":\" + ip + \" \" + ERR_NICKNAMEINUSE + \" \" + client.getName());\n }\n\n }\n\n\n }\n break;\n case \"PONG\":\n\n if (client.checkPing(pieces[1])) {\n gui.addLogLine(\"Client \" + client.getName() + \" has successfully replied to pong.\");\n } else {\n gui.addLogLine(\"Client \" + client.getName() + \" has failed the pong.\");\n }\n\n break;\n //All further commands require client to be pinged. If not, send them a message.\n case \"JOIN\":\n if (pieces.length > 1) {\n if (client.getPinged() == true) {\n if (pieces[1].split(\",\").length == 1) {\n String cname = pieces[1].replace(\"#\", \"\");\n this.joinChannel(cname, client);\n this.sendNamesToClient(client, pieces[1]);\n gui.addLogLine(\"Client \" + client.getName() + \" has joined channel \" + cname);\n } else if (pieces[1].split(\",\").length > 1) {\n String[] channels = pieces[1].split(\",\");\n ArrayList < String > channel = new ArrayList < String > ();\n for (String c: channels) {\n channel.add(c.replace(\"#\", \"\"));\n }\n Object[] obj = channel.toArray();\n String[] properchannels = Arrays.copyOf(obj, obj.length, String[].class);\n for (String s: properchannels) {\n this.joinChannel(s, client);\n this.sendNamesToClient(client, \"#\" + s);\n }\n String channellist = channels[0];\n for (int i = 1; i < properchannels.length; i++) {\n channellist += channels[i];\n }\n gui.addLogLine(\"Client \" + client.getName() + \" has joined channels \" + channellist);\n\n }\n }\n }\n break;\n case \"PM\": case \"PRIVMSG\":\n if (pieces.length > 2) {\n if (client.getPinged()) {\n if (pieces[1].startsWith(\"#\")) {\n if (this.checkForChannel(pieces[1].replace(\"#\", \"\"))) {\n String message = pieces[2];\n if (message.startsWith(\":\")) {\n message = message.substring(1);\n }\n for (int i = 3; i < pieces.length; i++) {\n message += \" \" + pieces[i];\n }\n this.getChannelByName(pieces[1].replace(\"#\", \"\")).sendChannelMSGExclude(client, \":\" + client.getName() + \"!\" + client.getName() + \"@\" + client.getIP() + \" PRIVMSG \" + pieces[1] + \" :\" + message);\n if(message.startsWith(\"!\")){\n \tfor(ServerBot b: serverbots){\n \t\tb.read_command(message, client,pieces[1]);\n \t}\n }\n gui.addLogLine(\"Client \" + client.getName() + \" to channel \" + this.getChannelByName(pieces[1].replace(\"#\", \"\")).getName() + \": \" + message);\n }\n } else {\n \tClient c = this.getClientByName(pieces[1]);\n \tif(c != null){\n String message = pieces[2];\n if (message.startsWith(\":\")) {\n message = message.substring(1);\n }\n for (int i = 3; i < pieces.length; i++) {\n message += \" \" + pieces[i];\n }\n \t\tc.sendMessage(\":\" + client.getName() + \"!\" + client.getName() + \"@\" + client.getIP() + \" PRIVMSG \" + c.getName() + \" :\" + message);\n \t\tgui.addLogLine(\"[DeBug] Client \" + client.getName() + \" to client \" + c.getName() + \" :\" + message);\n \t}\n }\n }\n }\n break;\n case \"MOTD\":\n this.sendMOTD(client);\n gui.addLogLine(\"Sent MOTD to \" + client.getName());\n break;\n case \"PING\":\n String pong = command.replace(\"PING \", \"\");\n client.sendMessage(\"PONG \" + pong);\n gui.addLogLine(\"Received ping from \" + client.getName());\n break;\n case \"NAMES\":\n if (pieces.length > 1) {\n \tgui.addLogLine(\"Attemtping to send client \" + client.getName() + \" list of names on channel \" + pieces[1]);\n this.sendNamesToClient(client, pieces[1]);\n }\n break;\n case \"PART\":\n ArrayList < Channel > chan = getClientChannel(client);\n if (chan.size() > 1) {\n for (Channel c: chan) {\n if (c.getName().equals(pieces[1].replace(\"#\", \"\"))) {\n c.partUser(client);\n gui.addLogLine(\"Disconnected client \" + client.getName() + \" from channel \" + c.getName());\n c.sendChannelMSGExclude(client, \":\" + client.getName() + \"!\" + client.getName() + \"@\" + client.getIP() + \" PART \" + pieces[1]);\n }\n }\n }\n if (channels.size() == 1) {\n Channel c = channels.get(0);\n if (c.getName().equals(pieces[1].replace(\"#\", \"\"))) {\n c.partUser(client);\n clients.add(client);\n gui.addLogLine(\"Disconnected client \" + client.getName() + \" from channel \" + c.getName());\n c.sendChannelMSGExclude(client, \":\" + client.getName() + \"!\" + client.getName() + \"@\" + client.getIP() + \" PART \" + pieces[1]);\n \n }\n }\n\n break;\n case \"LIST\":\n sendChannelList(client);\n gui.addLogLine(\"Sent client \" + client.getName() + \" the list of channels\");\n break;\n\n case \"QUIT\":\n handleDisconnection(client);\n gui.addLogLine(\"Client \" + client.getName() + \" was disconnected.\");\n break;\n case \"WHOIS\":\n \tClient target = this.getClientByName(pieces[1]);\n \tif(target != null){\n \t\tgui.addLogLine(\"Sending client \" + client.getName() + \" the info for user \" + target.getName());\n \t\tclient.sendMessage(\":\" + ip + \" \" + RPL_WHOISUSER + \" \" + client.getName() + \" \" + target.getName() + \" \" + target.getName() + \" \" + ip + \" \" + \"*\" + \" :\" + target.getRname());\t\n \t} else {\n \t\tclient.sendMessage(\":\" + ip + \" \" + ERR_NOSUCHNICK + \" \" + client.getName() + \" :No such nick.\");\n \t\tgui.addLogLine(\"Client requested WHOIS of unknown user\");\n \t}\n \t\n \tbreak;\n \t\n }\n \n handleCustomCommand(client,command);\n }", "title": "" }, { "docid": "0fd49de551fca3a2f6edf4b32385a33d", "score": "0.4929379", "text": "String getCommand();", "title": "" }, { "docid": "c19641a6aa92760e60a4ec6c5c6b8d8f", "score": "0.49291146", "text": "public CommandObject( int cmd, String s, int i )\n {\n Command = cmd;\n intArgs = new int[1];\n stringArgs = new String[1];\n intArgs[0] = i;\n stringArgs[0] = s;\n }", "title": "" } ]
3f7172867e515253a237c6e9436fe9e2
Informacia o pauznuti hry
[ { "docid": "d6f6b29b3fa62f591686f2160e211539", "score": "0.0", "text": "public boolean isPaused() {\r\n return this.paused;\r\n }", "title": "" } ]
[ { "docid": "3665905904dffa313e541e3e78ae22b6", "score": "0.67549515", "text": "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}", "title": "" }, { "docid": "68825ebb87eb6dc7475f5c7d5e4717c7", "score": "0.65583056", "text": "private void mostrarInformacionP(){\n System.out.println(\"Nombre: \"+this.nombre);\n System.out.println(\"Sexo: \"+ this.sexo);\n System.out.println(\"Edad: \" + edad);\n\n }", "title": "" }, { "docid": "32bc6fa6d47500c66a425c1d0aeef8b3", "score": "0.65347093", "text": "@Override\n\tpublic void maasHesapla() {\n\t\tSystem.out.println(\"isciler icin maas 5000 tl \");\n \t\t\n\t}", "title": "" }, { "docid": "48d8ddfd7046a7f8acda37a96aeb4838", "score": "0.65158737", "text": "@Override\r\n\tpublic void hacerSonido() {\n\t\tSystem.out.print(\"miau,miau -- o depende\");\r\n\t\t\r\n\t}", "title": "" }, { "docid": "8b7420e2d9fcc722a7f33168d85b4a56", "score": "0.6512091", "text": "@Override//sobrescribir metodo\n public String getDescripcion(){\n return hamburguesa.getDescripcion()+\" + lechuga\";//retorna descripcion del oobj hamburguesa y le agrega +lechuga\n }", "title": "" }, { "docid": "169904159411a57871951c386d31b223", "score": "0.6497111", "text": "public void ektypwsiAstheni() {\n\t\t// Elegxw an yparxoun astheneis\n\t\tif(numOfPatient != 0)\n\t\t{\n\t\t\tfor(int i = 0; i < numOfPatient; i++)\n\t\t\t{\n\t\t\t\tSystem.out.println();\n\t\t\t\tSystem.out.println(\"INFO FOR PATIENT No.\" + (i+1) + \":\");\n\t\t\t\tpatient[i].print();\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\t\t}\n\t\telse\n\t\t{\n\t\t\tSystem.out.println();\n\t\t\tSystem.out.println(\"DEN YPARXOUN DIATHESIMOI ASTHENEIS PROS EMFANISH!\");\n\t\t\tSystem.out.println();\n\t\t}\n\t}", "title": "" }, { "docid": "3b9628d063770b7a8d3774980d5602ee", "score": "0.6450088", "text": "@Override\r\n\tpublic void description() {\n\t\tSystem.out.println(\"Seorang yang mengendarai kendaraan dan bekerja\");\r\n\t}", "title": "" }, { "docid": "d0adcceefc5fa1b26add5410e7915ee4", "score": "0.6414243", "text": "private static void saluti() {\n\t\tUtilityIO.header(MSG_CHIUSURA, SIMBOLO_MESSAGGIO_BENV_USCITA);\n\t\tSystem.out.println();\n\t}", "title": "" }, { "docid": "ad8b6424a7fc739bcd8b925e09f0d81d", "score": "0.63430107", "text": "private static void statistique(){\n\t\tfor(int i = 0; i<7; i++){\n\t\t\tfor(int j = 0; j<7; j++){\n\t\t\t\tfor(int l=0; l<jeu.getJoueurs().length; l++){\n\t\t\t\t\tif(jeu.cases[i][j].getCouleurTapis() == jeu.getJoueurs()[l].getNumJoueur()){\n\t\t\t\t\t\tjeu.getJoueurs()[l].setTapis(jeu.getJoueurs()[l].getTapisRest()+1);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tJoueur j;\n\t\tSystem.out.println(\"// Fin de la partie //\");\n\t\tfor(int i=0; i<jeu.getJoueurs().length; i++) {\n\t\t\tj =jeu.getJoueurs()[i];\n\t\t\tSystem.out.println(\"Joueur \"+ (j.getNumJoueur()+1) + \" a obtenue \"+j.getTapisRest()+j.getMonnaie()+\" points\" );\n\t\t}\n\t}", "title": "" }, { "docid": "eb5cb5b57f77ff83be4ce784d3f0183f", "score": "0.6316866", "text": "@Override\r\n public void Story(){\r\n super.Story();\r\n System.out.println(\"=======================================================================================\");\r\n System.out.println(\"|| Arya harus bergegas untuk menyelamatkan seluruh warga. Dia tidak tau posisi warga ||\");\r\n System.out.println(\"|| yang harus diselamatkan ada pada ruangan yang mana. ||\");\r\n System.out.println(\"=======================================================================================\");\r\n }", "title": "" }, { "docid": "58d08dce2778ae6869a1f1a22bd5c36c", "score": "0.6282693", "text": "public void ektypwsiFarmakou() {\n\t\t// Elegxw an yparxoun farmaka\n\t\tif(numOfMedicine != 0)\n\t\t{\n\t\t\tfor(int i = 0; i < numOfMedicine; i++)\n\t\t\t{\n\t\t\t\tSystem.out.println();\n\t\t\t\tSystem.out.println(\"INFO FOR MEDICINE No.\" + (i+1) + \":\");\n\t\t\t\tmedicine[i].print();\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\t\t}\n\t\telse\n\t\t{\n\t\t\tSystem.out.println();\n\t\t\tSystem.out.println(\"DEN YPARXOUN DIATHESIMA FARMAKA PROS EMFANISH!\");\n\t\t\tSystem.out.println();\n\t\t}\n\t}", "title": "" }, { "docid": "ba3a93916725c06a584c03e8a7bb13a9", "score": "0.62375695", "text": "@Override\n\tpublic void Examinar() {\n\t\tSystem.out.println(\"\\nEsta preguiça emite o som tec tec tec ao ser examinada\\n\");\t\n\t}", "title": "" }, { "docid": "2e446b3d1ea16f649675178d01ecf17a", "score": "0.6222448", "text": "public void affiche () {\r\n\t\tSystem.out.println(\"Nom du porteur du compte: \" + this.porteur);\r\n\t\tSystem.out.println(\"numéro du compte: \" + this.IBAN);\r\n\t\tSystem.out.println(\"Solde du compte: \" + this.solde);\r\n\t}", "title": "" }, { "docid": "5a45aa5dab13d6691cebf49eeab94838", "score": "0.62154937", "text": "public void printInfo() {\r\n System.out.printf(\"%-25s\", \"Nomor Rekam Medis Pasien\");\r\n System.out.println(\": \" + getNomorRekamMedis());\r\n System.out.printf(\"%-25s\", \"Nama Pasien\");\r\n System.out.println(\": \" + getNama());\r\n System.out.printf(\"%-25s\", \"Tempat, Tanggal Lahir\");\r\n System.out.print(\": \" + getTempatLahir() + \" , \");\r\n getTanggalKelahiran();\r\n System.out.printf(\"%-25s\", \"Alamat\");\r\n System.out.println(\": \" + getAlamat());\r\n System.out.println(\"\");\r\n }", "title": "" }, { "docid": "62408c8bf01b9d78f5dceb305d8834ae", "score": "0.62091947", "text": "public void atakuj() {\n\n System.out.println(\"to metoda atakuj z klasy Potwor \");\n\n }", "title": "" }, { "docid": "247d3ba6e918e8bbb178fa87f06cca39", "score": "0.6199671", "text": "@Override\n\tpublic void muestraInfo() {\n\t\tSystem.out.println(\"Adivina un número par: Es un juego en el que el jugador\" +\n\t\t\t\t\" deberá acertar un número PAR comprendido entre el 0 y el 10 mediante un número limitado de intentos(vidas)\");\n\t}", "title": "" }, { "docid": "59282f9c8a15ae9e4ea5cd4511330bca", "score": "0.61970836", "text": "@Override\n\tpublic String parler() {\n\t\treturn \"Je suis un Orc\";\n\t}", "title": "" }, { "docid": "80caffd67444679b1adf82dd06f679de", "score": "0.6176748", "text": "public void mainkan(){\n System.out.println();\n //System.out.printf(\"Waktu: %1.2f\\n\", this.oPlayer.getWaktu());\n System.out.println(\"Nama : \" + this.oPlayer.nama);\n System.out.println(\"Senjata : \" + this.oPlayer.getNamaSenjataDigunakan());\n System.out.println(\"Kesehatan : \" + this.oPlayer.getKesehatan());\n// System.out.println(\"Daftar Efek : \" + this.oPlayer.getDaftarEfekDiri());\n System.out.println(\"Nama Tempat : \" + this.namaTempat);\n System.out.println(\"Narasi : \" + this.narasi);\n }", "title": "" }, { "docid": "3fe58b6e1663a795ec7819e1cc682a92", "score": "0.6163615", "text": "@Override\r\n\tpublic void horario() {\n\t\t\r\n\t}", "title": "" }, { "docid": "0e316a0da754e492c325746bd9c9a298", "score": "0.61412156", "text": "@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 }", "title": "" }, { "docid": "0243387738b11da7a26d50e83ef34eb9", "score": "0.6138967", "text": "@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 }", "title": "" }, { "docid": "34e960a80842ee270c5476c4d6c792d5", "score": "0.61273336", "text": "@Override\r\n public String AggiungiQualcosa() {\r\n// ritorna una stringa\r\n// perché qui ho informazioni in più\r\n return \"\\ne capace di cuocere il pollo\";\r\n }", "title": "" }, { "docid": "e27f316877ee857354f5b014c201ea3c", "score": "0.6113547", "text": "public void jugar_con_el() {\n System.out.println(nombre + \" esta jugando contigo :D\");\n }", "title": "" }, { "docid": "02a72b94eaa877ce76fd88e1d9d80e52", "score": "0.6097524", "text": "@Override\n\tpublic void display() {\n\t\tSystem.out.println(\"Pasos dados por \" + a.nombre + \" \" + a.distancia + \" m = \" + pasosActividad + \" / Pasos en total = \" + pasosTotal);\n\t}", "title": "" }, { "docid": "c768a72b41c34bf25dc11851898f0ad0", "score": "0.6096962", "text": "@Override\n\tpublic String toString() {\n\t\treturn this.getsTenkhoanquy() + \" : \" + this.fSotienconlai\n\t\t\t\t+ this.sLoaitiente;\n\t}", "title": "" }, { "docid": "b74dcac8bf06a6f3e41f11f484ffcdfc", "score": "0.60950685", "text": "@Override\n\tpublic void getThongTin() {\n\t\tSystem.out.print(\"Ghế \");\n\t\tvatlieu.getMoTa();\n\t}", "title": "" }, { "docid": "f6a5feffeaa8995a3d4a1586aea38c11", "score": "0.6082826", "text": "@Override\n\tpublic void 숨쉰다() {\n\t\tSystem.out.println(\"허파로 숨을 쉰다.\");\n\t\t\n\t}", "title": "" }, { "docid": "7f758d53d38926e08eeb395c7624496c", "score": "0.60789824", "text": "public void eisagwgiAstheni() {\n\t\t// Elegxw o arithmos twn asthenwn na mhn ypervei ton megisto dynato\n\t\tif(numOfPatient < 100)\n\t\t{\n\t\t\tSystem.out.println();\n\t\t\tpatient[numOfPatient] = new Asthenis();\n\t\t\tpatient[numOfPatient].setFname(sir.readString(\"DWSTE TO ONOMA TOU ASTHENH: \")); // Pairnei to onoma tou asthenh apo ton xrhsth\n\t\t\tpatient[numOfPatient].setLname(sir.readString(\"DWSTE TO EPWNYMO TOU ASTHENH: \")); // Pairnei to epitheto tou asthenh apo ton xrhsth\n\t\t\tpatient[numOfPatient].setAMKA(rnd.nextInt(1000000)); // To sistima dinei automata ton amka tou asthenous\n\t\t\tSystem.out.println();\n\t\t\t\n\t\t\t//Elegxos monadikotitas tou amka tou astheni\n\t\t\th = rnd.nextInt(1000000);\n\t\t\tfor(int i = 0; i < numOfPatient; i++)\n\t\t\t{\n\t\t\t\tif(patient[i].getAMKA() == h)\n\t\t\t\t{\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t\tSystem.out.println(\"O KWDIKOS AUTOS YPARXEI HDH!\");\n\t\t\t\t\th = rnd.nextInt(1000000);\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t}\n\t\t\t}\n\t\t\tnumOfPatient++;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tSystem.out.println(\"DEN MPOREITE NA EISAGETE ALLOUS ASTHENEIS!\");\n\t\t\tSystem.out.println(\"EXEI SYMPLHRWTHEI O PROVLEPOMENOS ARITHMOS!\");\n\t\t}\n\t}", "title": "" }, { "docid": "f06e961039143460f7a741c9abd8b5da", "score": "0.60574716", "text": "public void orina() {\n System.out.println(\"Que bien me quedé! Deposito vaciado.\");\n }", "title": "" }, { "docid": "59cca07abf7fddbe4b81afcb878dd3a3", "score": "0.6046576", "text": "@Override\n\t\tpublic String toString() {\n\t\t\treturn \"Tinh: \"+ this.tinh + \"; Huyen: \"+ this.huyen + \"; Xa: \"+ this.xa;\n\t\t}", "title": "" }, { "docid": "294fdcb23c3c21c6e8ed0585bd258ca7", "score": "0.60407746", "text": "public void info() {\r\n System.out.println(\" Name: \" + name + \" Facility: \" + facility + \" Floor: \" + floor + \" Covid: \"\r\n + positive + \" Age: \" + age + \" ID: \" + id);\r\n }", "title": "" }, { "docid": "63d1a0d57ffd8c9fd39fe3f68ba41b5c", "score": "0.60387105", "text": "public static void shoInfo() {\n\t\tSystem.out.println(description);\n\t \n\t}", "title": "" }, { "docid": "60e4dd098b83158c7458652430d3aa12", "score": "0.60341835", "text": "@Override\r\n\tpublic void exibir() {\n\t\t\r\n\t\tSystem.out.println(\"Condicoes atuais: \" + temp + \"°C e \" + umid + \"% de umidade \" \r\n\t\t\t\t+ pressao + \" pressao\");\r\n\t\t\r\n\t}", "title": "" }, { "docid": "79051f03d264cdf196386dd2f5f48b11", "score": "0.60325277", "text": "public void affichageLabyrinthe () {\n\t\t//Affiche le nombre de coups actuel sur la console et sur la fenetre graphique\n\t\tSystem.out.println(\"Nombre de coups : \" + this.laby.getNbCoups() + \"\\n\");\t\t\n\t\tthis.enTete.setText(\"Nombre de coups : \" + this.laby.getNbCoups());\n\n\t\t//Affichage dans la fenêtre et dans la console du labyrinthe case par case, et quand la case est celle ou se trouve le mineur, affiche ce dernier\n\t\tfor (int i = 0 ; i < this.laby.getHauteur() ; i++) {\n\t\t\tString ligne = new String();\n\t\t\tfor (int j = 0 ; j < this.laby.getLargeur() ; j++) {\n\t\t\t\tif (i != this.laby.getMineur().getY() || j != this.laby.getMineur().getX()) {\n\t\t\t\t\tligne = ligne + this.laby.getLabyrinthe()[i][j].graphismeCase();\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tthis.laby.getLabyrinthe()[i][j]=new Case();\n\t\t\t\t\tligne = ligne + this.laby.getMineur().graphismeMineur();\n\t\t\t\t}\t\t\t\t\n\t\t\t\tif (grille.getComponentCount() < this.laby.getLargeur()*this.laby.getHauteur()) {\n\t\t\t\t\tgrille.add(new JLabel());\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\tSystem.out.println(ligne);\n\t\t}\n\t\t((JLabel)grille.getComponents()[this.laby.getMineur().getY()*this.laby.getLargeur()+this.laby.getMineur().getX()]).setIcon(this.laby.getMineur().imageCase(themeJeu));\n\t}", "title": "" }, { "docid": "8137a77935c65232f02558472ba970bf", "score": "0.60304755", "text": "@Override\r\n\tpublic void 먹기() {\n\t\tSystem.out.println(\"다람쥐,도토리를 먹는다.\");\r\n\t}", "title": "" }, { "docid": "4b8385c9117a36eb53a0b14c9189f935", "score": "0.6029592", "text": "@Override\r\n public String getHasil() {\n return this.hasil;\r\n }", "title": "" }, { "docid": "60737d49a848d300ea18a3b6b0d49a25", "score": "0.60254884", "text": "public void ektypwsiGiatrou() {\n\t\t// Elegxw an yparxoun iatroi\n\t\tif(numOfDoctors != 0)\n\t\t{\n\t\t\tfor(int i = 0; i < numOfDoctors; i++)\n\t\t\t{\n\t\t\t\tSystem.out.println();\n\t\t\t\tSystem.out.println(\"INFO FOR DOCTOR No.\" + (i+1) + \":\");\n\t\t\t\tdoctor[i].print();\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\t\t}\n\t\telse\n\t\t{\n\t\t\tSystem.out.println();\n\t\t\tSystem.out.println(\"DEN YPARXOUN DIATHESIMOI GIATROI PROS EMFANISH!\");\n\t\t\tSystem.out.println();\n\t\t}\n\t}", "title": "" }, { "docid": "2f641a70425bf34683dff7c4577cb21b", "score": "0.60136086", "text": "@Override\r\n public String AggiungiQualcosa() {\r\n// ritorna una stringa\r\n// perché qui ho informazioni in più\r\n return \"\\ne capace di friggere un uovo\";\r\n }", "title": "" }, { "docid": "809a8134ae7b7a0588d1ad37def12c6c", "score": "0.601258", "text": "public void summary() {\r\n System.out.println(this.nama + \" usia \" + this.usia + \" tahun bekerja di Perusahaan \" + Employee.perusahaan);\r\n System.out.println(\"Memiliki total gaji \" + (Employee.pendapatan + Employee.lembur));\r\n }", "title": "" }, { "docid": "3799b186adb2722bb7ca78613afbb375", "score": "0.6009985", "text": "public void ShowHypo(){\n for ( SlotHypo sh : slot_hypos ){\n System.out.print(sh.name + \" {\");\n for ( ValueHypo vh : sh.value_hypos ){\n System.out.print(vh.name + \" \");\n }\n System.out.print( \"}\");\n }\n System.out.println();\n }", "title": "" }, { "docid": "82d4c4898743839d2dea5e02ebc9f989", "score": "0.59895533", "text": "@Override\r\n\tpublic void 자기() {\n\t\tSystem.out.println(\"잠을 잔다\");\r\n\t}", "title": "" }, { "docid": "6934dafd9e802fa3cca47b94826516d5", "score": "0.5986121", "text": "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 }", "title": "" }, { "docid": "48a198deefb87c5956ba9b04a5c1dbdb", "score": "0.5984378", "text": "@Override\n\tpublic void attaquer() {\n\t\tSystem.out.println(\"Je suis \" + this.nom + \", j'ai \" + this.age + \" ans et je cueille le gui !\");\n\t}", "title": "" }, { "docid": "6dc180f90d71dc8f5c915748565137dc", "score": "0.59754586", "text": "public static void status(){\n System.out.print(\"\\033[H\\033[2J\");//limpia pantalla\n System.out.flush();\n System.out.printf(\"\\nNOMBRE:\\t\\t\\t\"+nombrePersonaje);\n\tSystem.out.printf(\"\\nPuntos De Vida (HP):\\t\"+puntosDeVida);\n\tSystem.out.printf(\"\\nPuntos De mana (MP):\\t\"+puntosDeMana);\n System.out.printf(\"\\nNivel: \\t\\t\\t\"+nivel);\n\tSystem.out.printf(\"\\nExperiencia:\\t\\t\"+experiencia);\n\tSystem.out.printf(\"\\nOro: \\t\\t\"+oro);\n System.out.printf(\"\\nPotion:\\t\\t\\t\"+articulo1);\n System.out.printf(\"\\nHi-Potion:\\t\\t\"+articulo2);\n System.out.printf(\"\\nM-Potion:\\t\\t\"+articulo3);\n System.out.printf(\"\\n\\tEnemigos Vencidos:\\t\");\n\tSystem.out.printf(\"\\nNombre:\\t\\t\\tNo.Derrotas\");\n System.out.printf(\"\\nDark Wolf:\\t\\t\"+enemigoVencido1);\n\tSystem.out.printf(\"\\nDragon:\\t\\t\\t\"+enemigoVencido2);\n System.out.printf(\"\\nMighty Golem:\\t\\t\"+enemigoVencido3);\t\n }", "title": "" }, { "docid": "32b7db1896ece528324c91ae34de8168", "score": "0.5972916", "text": "@Override\r\n\tpublic String falar() {\r\n\t\treturn \"[ \"+getNome()+\" ] Sou Um Professor\";\r\n\t}", "title": "" }, { "docid": "1a31be3a033f58feb4ca27f224e55c87", "score": "0.59715766", "text": "@Override\r\n public String getInfo(){\r\n String info = \"Temperature\\n\" + temperature.toString();\r\n if (temperature.getValue() <= 36.0){\r\n info += \"\\nAttention! The temperature is off the healthy values, you can enter hypothermia state, please consider seeing a doctor.\";\r\n } else if (temperature.getValue() >= 37.4) {\r\n info += \"\\nAttention! The temperature is off the healthy values, you have a fever, please consider seeing a doctor.\";\r\n } else {\r\n info += \"\\nHealthy!\";\r\n }\r\n return info + \"\\n--------------------------------------------\\n\";\r\n }", "title": "" }, { "docid": "e022cc0eaa4dfe76757751c96e5c5cbe", "score": "0.5967915", "text": "public void duerme() {\n System.out.println(\"Duerme profundamentZzZzZz...\");\n }", "title": "" }, { "docid": "ebceac3b6e5d76a44e7920b5d86c526e", "score": "0.5959313", "text": "protected static void HienThiChiTiet() {\n\t\t\n\t\ttry {\n\n\t\t\tdtm1.setRowCount(0);\n\n\t\t\tString Sql = \"select SanPham.TenSP, Soluong,DonGia,DVT, DonGia*Soluong from SanPham,HoaDonTiec,ChiTietHoaDonTiec where SanPham.MaSP=ChiTietHoaDonTiec.MaSP and HoaDonTiec.MaHD=ChiTietHoaDonTiec.MaHD and HoaDonTiec.MaHD=?\";\n\t\t\tPreparedStatement prepare = conn.prepareStatement(Sql);\n\t\t\tprepare.setString(1, maHD);\n\t\t\tResultSet result = prepare.executeQuery();\n\t\t\twhile (result.next()) {\n\t\t\t\tVector<Object> vec = new Vector<Object>();\n\t\t\t\tvec.add(result.getString(1));\n\t\t\t\tvec.add(result.getInt(2));\n\t\t\t\tvec.add(result.getInt(3));\n\t\t\t\tvec.add(result.getString(4));\n\t\t\t\tvec.add(result.getInt(5));\n\t\t\t\t//maHD = result.getString(8);\n\t\t\t\t\n\t\t\t\tdtm1.addRow(vec);\n\t\t\t\t//int i = tbl.getRowCount();\n\t\t\t\t//txtMaHD.setText(maHD);// hiển thị mã HD theo bàn\n\n\t\t\t}\n\n\t\t} catch (Exception ex) {\n\t\t\tex.printStackTrace();\n\t\t}\n\t\t\n\t}", "title": "" }, { "docid": "d2bbc4835a0f04677aa206ef2d789d0a", "score": "0.5953606", "text": "@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 }", "title": "" }, { "docid": "7b316d2571b75311f881f5c1ca29c88a", "score": "0.5946924", "text": "public void getInfo() {\n System.out.println(\"Content : \" + content);\n System.out.println(\"Name : \" + name);\n System.out.println(\"Location : (\" + locX + \",\" + locY + \")\");\n System.out.println(\"Weight : \" + String.format(\"%.5f\", weight) + \" kg/day\");\n System.out.println(\"Habitat : \" + habitat);\n System.out.println(\"Type : \" + type);\n System.out.println(\"Diet : \" + diet);\n System.out.println(\"Fodder : \" + String.format(\"%.5f\", getFodder()) + \" kg\");\n System.out.println(tamed ? \"Tame : Yes \" : \"Tame : No \");\n System.out.println(\"Number of Legs : \" + legs);\n }", "title": "" }, { "docid": "b3cf43078606ed8ac878cfcdafe7f431", "score": "0.593949", "text": "public void tampilKarakterA(){\r\n System.out.println(\"Saya mempunyai kaki empat \");\r\n }", "title": "" }, { "docid": "4ef1fef98ec509f8df56ea899212b365", "score": "0.5936367", "text": "public String description () {\n\t\t\tSystem.out.println(treinador.getTreinador() + \" fugiu da batalha!!\");\r\n\t\t\tSystem.exit(0);\r\n\t\t\treturn treinador.getTreinador() + \" fugiu da batalha!!\";\r\n\t\t}", "title": "" }, { "docid": "c6830910fc4f61922c78ffadcc5c21d0", "score": "0.5929508", "text": "public void ektypwsiSintagis() {\n\t\t// Elegxw an yparxoun syntages\n\t\tif(numOfPrescription != 0)\n\t\t{\n\t\t\tfor(int i = 0; i < numOfPrescription; i++)\n\t\t\t{\n\t\t\t\tSystem.out.println();\n\t\t\t\tSystem.out.println(\"INFO FOR PRESCRIPTION No.\" + (i+1) + \":\");\n\t\t\t\tprescription[i].print();\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\t\t}\n\t\telse\n\t\t{\n\t\t\tSystem.out.println();\n\t\t\tSystem.out.println(\"DEN YPARXOUN DIATHESIMES SYNTAGES PROS EMFANISH!\");\n\t\t\tSystem.out.println();\n\t\t}\n\t}", "title": "" }, { "docid": "57e265e3e128b7993a190240e617093a", "score": "0.5923696", "text": "public void reestablecerInfo(){\n panelIngresoControlador.getPanelIngreso().reestablecerInfo();\n }", "title": "" }, { "docid": "65c8be74eaade12da72dddaea05068ee", "score": "0.5923031", "text": "@Override\n\tpublic String gettenMonHoc() {\n\t\treturn \"Lâp trình front-end\";\n\t}", "title": "" }, { "docid": "b72591dffcdb102c18397b9263c2a087", "score": "0.59174025", "text": "public void summary(int tambahanProyek) {\r\n System.out.println(this.nama + \" usia \" + this.usia + \" tahun bekerja di Perusahaan \" + Employee.perusahaan);\r\n System.out.println(\"Memiliki total gaji \" + (Employee.pendapatan + Employee.lembur + tambahanProyek));\r\n }", "title": "" }, { "docid": "d5cbc50e6262ff3a0f6f1616dfafd61c", "score": "0.5916611", "text": "@Override\n public String hienThiTT() {\n String thongTin = \"\";\n thongTin = \"ho ten: \" + this.hoTen + \", tuoi: \" + this.tuoi + \", dia chi: \" + this.diaChi\n + \", sdt: \" + this.sdt + \", mon day: \" + this.monDay + \", to bo mon: \" + this.toBoMon;\n \n System.out.println(thongTin);\n return thongTin;\n }", "title": "" }, { "docid": "b0459d8b82012dd263f25052fc82417b", "score": "0.59119266", "text": "@Override\n\tpublic String hablar() {\n\t\treturn \"Hola, soy un Buitre y sť volar\";\n\t}", "title": "" }, { "docid": "5069d9e7ffc4b6e2722d2ae4da8464e6", "score": "0.5903496", "text": "public String getRahuInfo() {\n\t\treturn null;\r\n\t}", "title": "" }, { "docid": "6bc520fb9239fd0967daf0c5f7014c33", "score": "0.5894787", "text": "public void affiche() {\n System.out.println(\"le tapis porte \"+this.tapis.size()+\" caisse(s)\");\n for (Iterator it = this.tapis.iterator(); it.hasNext(); ) {\n System.out.println(it.next().toString());\n } \n }", "title": "" }, { "docid": "87a15ab34fa513774890c5425f12e53b", "score": "0.58929527", "text": "public abstract String dohvatiKontakt();", "title": "" }, { "docid": "f300dfa279ea46f5f9612c2a886d849a", "score": "0.589293", "text": "public void showOuterNguoi() {\n\t\t\tSystem.out.println(\"LOAI DOI TUONG: \"+ Nguoi.type);\n\t\t}", "title": "" }, { "docid": "7108ada4de0bcde0093f1c6f6a47043e", "score": "0.58831203", "text": "@Override\n public String descripcion() {\n return \"Viaje incentivo que te envia la empresa \" + empresa;\n }", "title": "" }, { "docid": "c96defe69f305c662d5e4cdd34996ab4", "score": "0.58823663", "text": "public void presenta_Estudiante(){\r\n System.out.println(\"Universidad Técnica Particular de Loja\\nInforme Semestral\\nEstudiante: \"+nombre+\r\n \"\\nAsignatura: \"+nAsignatura+\"\\nNota 1 Bimestre: \"+nota1B+\"\\nNota 2 Bimestre: \"+nota2B+\r\n \"\\nPromedio: \"+promedio()+\"\\nEstado de la Materia: \"+estado());\r\n }", "title": "" }, { "docid": "9dd8922c4cbb7d0ee962e91481852230", "score": "0.5879524", "text": "public void printInfo(){\n System.out.println(\" this is my y \"+(y+1)+\" this is my x \"+ X.valueOfInt(x));\n System.out.println(\"i am full: \"+ isFull);\n }", "title": "" }, { "docid": "158fac4e421980fd9b5fc4c1194e4c24", "score": "0.58761877", "text": "public String info(){\r\n String info =\"\";\r\n info += \"id karyawan : \" + this.idkaryawan + \"\\n\";\r\n info += \"Nama karyawan : \" + this.namakaryawan + \"\\n\";\r\n return info;\r\n }", "title": "" }, { "docid": "836aacdad8a1b4c209e8eb1aacc4be7d", "score": "0.58706", "text": "public Informations() {\n initComponents();\n \n Affichage();\n }", "title": "" }, { "docid": "cf0e7550a172c083a728ad96d87b3a73", "score": "0.5870385", "text": "@Override\n public void information() {\n System.out.println(\"\");\n System.out.println(\"Dog :\");\n System.out.println(\"Age : \" + getAge());\n System.out.println(\"Name : \" + getName());\n System.out.println(\"\");\n }", "title": "" }, { "docid": "c7d53daa298077975509469267ad2acf", "score": "0.5865832", "text": "public void playerDetailedInfo(Player p){\n System.out.println(\"Indicator: \" + indicator + \"\\nJoker: \"+joker);\n System.out.println(\"Winner: Player\" + p.getPlayerNo());\n System.out.println(\"Tile size: \" + p.getTiles().size());\n System.out.println(\"Joker count: \" + p.getJokerCount());\n System.out.println(\"Double score: \" + p.getDoubleCount()*2);\n System.out.println(\"All tiles in ascending order:\\t\" + p.getTiles());\n System.out.println(\"Clustered according to number: \\t\" + p.getNoClus());\n System.out.println(\"Total number clustering score: \" + p.totalNoClustering());\n System.out.println(\"Clustered according to color: \\t\" + p.getColClus());\n System.out.println(\"Total color clustering score: \" + p.totalColCluster());\n System.out.println(\"Final score of Player\"+p.getPlayerNo()+\": \" + p.getPlayerScore());\n }", "title": "" }, { "docid": "401276e2b2a190d09d6e96156a7f62dc", "score": "0.58647704", "text": "public void showInformation() {\n\t\tSystem.out.println(\"Title: \" + getTitle());\n\t\tSystem.out.println(\"Time: \" + getTime());\n\t\tSystem.out.println(\"Number: \" + getNumber());\n\t}", "title": "" }, { "docid": "0d8a6487d22e37025a9206504903f7a0", "score": "0.58641046", "text": "@Override\r\n\tpublic void actionMisil() {\n\t\tSystem.out.println(\"미사일 있다.\");\r\n\t}", "title": "" }, { "docid": "836a6c7d6ce6a4584b4bfa38547c6e9a", "score": "0.58624995", "text": "@Override\n\tpublic void concentrarse() {\n\t\tSystem.out.println(\"Se centra en sacar lo mejor del Equipo\");\n\t\t\n\t}", "title": "" }, { "docid": "2ccc616f2a961b7168c3d63339568667", "score": "0.585807", "text": "@Override\n\tpublic void missiel() {\n\t\tSystem.out.println(\"미사일을 쏠 수 있습니다\");\n\n\t}", "title": "" }, { "docid": "d76b8de33ae0433c81920e0f6686b00a", "score": "0.58557737", "text": "@Override\n\tpublic void habla() {\n\t\tSystem.out.println(\"Miau, Miau!!\");\n\t}", "title": "" }, { "docid": "2e2d64bdd3e6e78ea299720eadcf8ca5", "score": "0.5853156", "text": "public String dameDescripcion(){\n return \"Este empleado tiene un id = \"+getId()+\" con un sueldo de \"+getSueldo();\n }", "title": "" }, { "docid": "bdd64184b6ea802543c89f52d9d1998e", "score": "0.58508754", "text": "public void tip()\r\n\t{\n\t\tSystem.out.println(\"Tipul de organizare: SAT!\");\r\n\t}", "title": "" }, { "docid": "3e2b631ca97ba8b656cf8b9904c6a545", "score": "0.58498865", "text": "private void look()\n {\n System.out.println(currentRoom.getLongDescription()); \n }", "title": "" }, { "docid": "f9c2c03748476377f3f51bd0d837af2e", "score": "0.5848608", "text": "@Override\npublic String toString() {// PARA MOSTRAR LOS DATOS DE ESTA CLASE\n// TODO Auto-generated method stub\nreturn MuestraCualquiera();\n}", "title": "" }, { "docid": "5c4782f20ced3ba6e5dea3e7312c80db", "score": "0.5840043", "text": "@Override\n\tpublic double tinhTienLai() {\n\t\tdouble tienLai=0;\n\t\tif(soThangGui>=kyHan){\n\t\t\t tienLai=soTienGui*laiSuat*soThangGui;\n\t\t}\n\t\treturn tienLai;\n\t}", "title": "" }, { "docid": "87d8a98ce63e22133ab5e73cc56df121", "score": "0.58355695", "text": "public void status() {\n System.out.println(\"Nome: \" + this.getNome());\n System.out.println(\"Data de Nascimento: \" + this.getDataNasc());\n System.out.println(\"Peso: \" + this.getPeso());\n System.out.println(\"Altura: \" + this.getAltura());\n }", "title": "" }, { "docid": "55966c453d3d52fd0ca7c48e4ee37074", "score": "0.5825673", "text": "private static void displayStat() {\n Collection<Zone> zones = Universe.getInstance().getCarte().getCarte().values();\r\n System.out.println(\"Nb de personnes créées : \" + Universe.getInstance().getCarte().getPopulation().size());\r\n\r\n\r\n System.out.println(\"Nb de personnes créées en mer : \" + getPopulationByTile(Zone.Tile.SEA));\r\n System.out.println(\"Nb de personnes créées en plaine : \" + getPopulationByTile(Zone.Tile.EARTH));\r\n System.out.println(\"Nb de personnes créées en foret : \" + getPopulationByTile(Zone.Tile.FOREST));\r\n System.out.println(\"Nb de personnes créées en ville : \" + getPopulationByTile(Zone.Tile.TOWN));\r\n\r\n System.out.println(\"---------------\");\r\n\r\n System.out.println(\"Surface mer : \" + getSurfaceByTile(zones, Zone.Tile.SEA));\r\n System.out.println(\"Surface plaine : \" + getSurfaceByTile(zones, Zone.Tile.EARTH));\r\n System.out.println(\"Surface foret : \" + getSurfaceByTile(zones, Zone.Tile.FOREST));\r\n System.out.println(\"Surface ville : \" + getSurfaceByTile(zones, Zone.Tile.TOWN));\r\n\r\n System.out.println(\"---------------\");\r\n\r\n System.out.println(\"Densité mer : \" + new Double(getPopulationByTile(Zone.Tile.SEA) / getSurfaceByTile(zones, Zone.Tile.SEA)));\r\n System.out.println(\"Densité plaine : \" + new Double(getPopulationByTile(Zone.Tile.EARTH)) / new Double(getSurfaceByTile(zones, Zone.Tile.EARTH)));\r\n System.out.println(\"Densité foret : \" + new Double(getPopulationByTile(Zone.Tile.FOREST)) / new Double(getSurfaceByTile(zones, Zone.Tile.FOREST)));\r\n System.out.println(\"Densité ville : \" + new Double(getPopulationByTile(Zone.Tile.TOWN)) / new Double(getSurfaceByTile(zones, Zone.Tile.TOWN)));\r\n\r\n System.out.println(\"---------------\");\r\n System.out.println(\"Surface mer deserte : \" +zones.stream().filter(z-> z.getTile().equals(Zone.Tile.SEA) && CollectionUtils.isEmpty(z.getHabitants())).collect(Collectors.toList()).size());\r\n System.out.println(\"Surface plaine deserte : \" +zones.stream().filter(z-> z.getTile().equals(Zone.Tile.EARTH) && CollectionUtils.isEmpty(z.getHabitants())).collect(Collectors.toList()).size());\r\n System.out.println(\"Surface foret deserte: \" +zones.stream().filter(z-> z.getTile().equals(Zone.Tile.FOREST) && CollectionUtils.isEmpty(z.getHabitants())).collect(Collectors.toList()).size());\r\n System.out.println(\"Surface ville deserte: \" +zones.stream().filter(z-> z.getTile().equals(Zone.Tile.TOWN) && CollectionUtils.isEmpty(z.getHabitants())).collect(Collectors.toList()).size());\r\n System.out.println(\"---------------\");\r\n\r\n System.out.println(\"Surface mer habitée : \" +zones.stream().filter(z-> z.getTile().equals(Zone.Tile.SEA) && CollectionUtils.isNotEmpty(z.getHabitants())).collect(Collectors.toList()).size());\r\n System.out.println(\"Surface plaine habitée : \" +zones.stream().filter(z-> z.getTile().equals(Zone.Tile.EARTH) && CollectionUtils.isNotEmpty(z.getHabitants())).collect(Collectors.toList()).size());\r\n System.out.println(\"Surface foret habitée: \" +zones.stream().filter(z-> z.getTile().equals(Zone.Tile.FOREST) && CollectionUtils.isNotEmpty(z.getHabitants())).collect(Collectors.toList()).size());\r\n System.out.println(\"Surface ville habitée: \" +zones.stream().filter(z-> z.getTile().equals(Zone.Tile.TOWN) && CollectionUtils.isNotEmpty(z.getHabitants())).collect(Collectors.toList()).size());\r\n }", "title": "" }, { "docid": "722bffdb2d6a417d5a521f6ae359b06c", "score": "0.58251613", "text": "public void visualizzaCampo(){\r\n\t\tInputOutput.stampaCampo(nome, descrizione, obbligatorio);\r\n\t}", "title": "" }, { "docid": "5c11ca1821a264c4c3075df037e7943c", "score": "0.5825096", "text": "public void visKontingenthaandteringMenu ()\r\n {\r\n System.out.println(\"Du har valgt kontingent.\");\r\n System.out.println(\"Hvad oensker du at foretage dig?\");\r\n System.out.println(\"1: Se priser\");\r\n System.out.println(\"2: Se medlemmer i restance\");\r\n System.out.println(\"0: Afslut\");\r\n\r\n }", "title": "" }, { "docid": "e0bb333a3f0de0dec2648302c62e64fd", "score": "0.581568", "text": "public void mostrarInformacion(){\n mostrarInformacionP();\n }", "title": "" }, { "docid": "307490d68c800935f6f10cded9bb50aa", "score": "0.5812466", "text": "void verEnPantalla() {\r\n\t\tSystem.out.println( numEnPantalla );\r\n\t}", "title": "" }, { "docid": "27264dd44639bd32a65ed41cbfffc0e6", "score": "0.58100235", "text": "@Override\n\tpublic void preparar() {\n\t\tSystem.out.println(\"massa, presunto, queijo, calabreza e cebola\");\n\t\t\n\t}", "title": "" }, { "docid": "cc1d6a00e48bb4fc1a269351b068bd7a", "score": "0.5805891", "text": "public void display() {System.out.println(skaitlis);}", "title": "" }, { "docid": "4e52f9c13e9b689517643802beca8f46", "score": "0.58018196", "text": "private void sonucYazdir() {\n\t\talinanPuan = (int)(((float)alinanPuan / (float)toplamPuan) * 100);\n\t\tSystem.out.println(\"\\nSınav Bitti..!\\n\" + soruSayisi + \" sorudan \" + dogruSayaci + \" tanesine\"\n\t\t\t\t\t\t+ \" doğru cevap verdiniz.\\nPuan: \" + alinanPuan + \"/\" + toplamPuan);\n\t}", "title": "" }, { "docid": "6582de8785ace1daab3414d038526128", "score": "0.5800726", "text": "public static void unitInfo(StarUnit u) {\t\t\t//공격 행위(메소드=함수) public = 클래스 외부에서 쓸수있음\n\t\tSystem.out.println(\"유닛이름:\"+u.getName());\n\t\tSystem.out.println(\"유닛체력:\"+u.getHp());\n\t\tSystem.out.println(\"유닛공격력:\"+u.getAttack());\n\t\tSystem.out.println(\"--------------------\");\n\t}", "title": "" }, { "docid": "b6afa35bbcdac1471147693f4aa7dc27", "score": "0.57933676", "text": "public void print() {\n\t\tSystem.out.println(\"[System] 펫 정보입니다.\\n 이름 : \"+TMGCSYS.tmgcName+\", 레벨 : \"+TMGCSYS.tmgcLV+\", 경험치 : \"+TMGCSYS.tmgcEXP+\"/\"+(100*TMGCSYS.tmgcLV)+\", 체력 : \"+TMGCSYS.tmgcHP+\", 스트레스 : \"+TMGCSYS.tmgcStress);\r\n\t}", "title": "" }, { "docid": "0c94071a195dbdd86bac58405d0f422e", "score": "0.57923484", "text": "public void ciudad(){\n System.out.println(\"ciudad londres\");\n }", "title": "" }, { "docid": "894fe69f73877464a8e3775502f4b9a3", "score": "0.57903844", "text": "@Override\n\tpublic String toString() {\n\t\treturn \"TipoHabita de Peixe : \" + tipoHabita + \"\\n\";\n\t}", "title": "" }, { "docid": "b058a64641904601b37927362663a26e", "score": "0.5789509", "text": "public void visOversikt() {\r\n System.out.println(\"\\nPerson Oversikt:\");\r\n\r\n for(Person person : personListe.values()) {\r\n System.out.println(\"\\n\" + person);\r\n System.out.println(person + \" eier \" + (person.eierSize() + person.utlaantSize()) + \" DVD'er\");\r\n System.out.println(person + \" laaner ut \" + person.utlaantSize() + \" DVD'er\");\r\n System.out.println(person + \" laaner \" + person.laanerSize() + \" DVD'er\");\r\n }\r\n }", "title": "" }, { "docid": "dbc60836caf4437064f8d2b2aa7839fe", "score": "0.5788843", "text": "public static void Latihan() {\n Model.Garis();\n System.out.println(Model.subTitel[0]);\n Model.Garis();\n\n System.out.print(Model.subTitel[1]);\n Model.nilaiTebakan = Model.inputUser.nextInt();\n\n System.out.println(Model.subTitel[2] + Model.nilaiTebakan);\n\n // Operasi Logika\n Model.statusTebakan = (Model.nilaiTebakan == Model.nilaiBenar);\n System.out.println(Model.subTitel[3] + Model.hasilTebakan(Model.TrueFalse) + \"\\n\\n\");\n }", "title": "" }, { "docid": "192e32124f0ebfd3ffb9d753bba24f06", "score": "0.57849306", "text": "private void logika_rozpocznij(){\n\t}", "title": "" }, { "docid": "2b2f3c52d2379c726ad2a485e9714c9c", "score": "0.5784376", "text": "public void tampilBuku() {\n System.out.println(\"ID : \" + this.id);\n System.out.println(\"Judul : \" + this.judul);\n System.out.println(\"Tahun Terbit: \" + this.tahun);\n }", "title": "" }, { "docid": "f7f3094585653e9b5f08204d76801956", "score": "0.577926", "text": "public void describe() {\n\t\tSystem.out.println(\"这是汽车底盘\");\n\t}", "title": "" }, { "docid": "b4a7a1cc5105a26cc522970d2c25fab6", "score": "0.57783324", "text": "public String toString(){\r\n\t\treturn \"KORISNIK:\"+korisnik+\" PORUKA:\"+poruka;\r\n\t}", "title": "" }, { "docid": "ecff758d57fa8c6aee31c6f8bc65b2c6", "score": "0.57730013", "text": "public String toString(){\r\n\treturn \"KORISNIK:\"+korisnik+\" PORUKA:\"+poruka;\r\n\t}", "title": "" }, { "docid": "aaa3649826a02743603275f90acfd0bb", "score": "0.57729584", "text": "public void SolicitarDatos() {\n\t\t\r\n\t\tSystem.out.println(\"nombre:\");\r\n\t\tSystem.out.println(\"apellido\");\r\n\t\tSystem.out.println(\"numCedula\");\r\n\t\t\r\n\t}", "title": "" }, { "docid": "5856d50d6e2c8b050b61267ef196ef87", "score": "0.57684577", "text": "public static void pocetniMeni() {\r\n\t\tSystem.out\r\n\t\t\t\t.println(\"***********************************************\\n\"\r\n\t\t\t\t\t\t+ \"Unesite 1 ako zelite vidjeti kalendar(za dati mjesec i godinu)\\n\"\r\n\t\t\t\t\t\t+ \"Unesite 2 za pregled podsjetnika za dati mjesec i godinu\\n\"\r\n\t\t\t\t\t\t+ \"Unesite 3 da pregledate podsjetnik za datu godinu\\n\"\r\n\t\t\t\t\t\t+ \"Unesite 4 ako zelite da pogledate sve podsjetnike!\\n\"\r\n\t\t\t\t\t\t+ \"Unesite 5 ako zelite da upisete neki podsjetnik!\\n\"\r\n\t\t\t\t\t\t+ \":::::::::::::::::::::::::::::::::::::::::::::::\");\r\n\t}", "title": "" } ]
4f152c67dff41a8efed3d15379ca8341
Convert a string to an itemstack
[ { "docid": "c3b6a81fbd10af154fedb1ec9d5ce7e4", "score": "0.5999622", "text": "public ItemStack toItemStack(String data)\n\t{\n\t\tStack s = new Stack(Material.AIR);\n\t\t\n\t\ttry\n\t\t{\n\t\t\ts.fromData(data.getBytes());\n\t\t}\n\t\t\n\t\tcatch(IOException e)\n\t\t{\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t\treturn s.toItemStack();\n\t}", "title": "" } ]
[ { "docid": "d87616e91608669b3d7360022fffbdd7", "score": "0.6109601", "text": "public static List<ItemStack> parseItems(String s){\n List<ItemStack> result = new LinkedList<ItemStack>();\n String[] items = s.split(\",\");\n for (String item : items){\n ItemStack mat = parseItem(item.trim());\n if (mat != null)\n result.add(mat);\n }\n \n return result;\n }", "title": "" }, { "docid": "bb7fefd7edd5384dadb61bdc81b65327", "score": "0.57961655", "text": "public Stack<E> getStack(String entry) {\r\n // seleccion de la implementacion a utilizar:\r\n\tif (entry.equals(\"AL\"))\r\n return new StackArrayList<E>(); //regresa ArrayList\r\n\telse\r\n return new StackVector<E>(); //regresa Vector\r\n }", "title": "" }, { "docid": "a918668701c4601a8bd53ea7eaf90bdd", "score": "0.575463", "text": "public static ItemStack deserializeItem(String s){\n String[] split = s.split(\",\");\n ItemStack is;\n if(split[0].contains(\":\"))\n is = new ItemStack(Material.getMaterial(split[0].split(\":\")[0]), Integer.parseInt(split[1]), Short.parseShort(split[0].split(\":\")[1]));\n else\n is = new ItemStack(Material.getMaterial(split[0]), Integer.parseInt(split[1]));\n\n return is;\n }", "title": "" }, { "docid": "315b31a95503b574ba658010524dc010", "score": "0.5624821", "text": "public Stack<E> getStack(String entry) \r\n {\n\tif (entry.equals(\"Java\"))\r\n\t\treturn new StackArrayList<E>(); //regresa ArrayList\r\n\tif (entry.equals(\"Web\"))\r\n\t\treturn new StackVector<E>(); //regresa Vector*/\r\n\telse\r\n\t\treturn new StackVector<E>(); //regresa Vector\r\n\t}", "title": "" }, { "docid": "e9c0ba76c008bfe633e98f66ef65d5a8", "score": "0.53027016", "text": "public static ArrayStack<Character> stringToStack(String s) {\n\t\tArrayStack<Character> res = new ArrayStack<Character>();\n\t\tfor (int i = 0; i < s.length(); i++) {\n\t\t\tres.push(s.charAt(i));\n\t\t}\n\t\treturn res;\n\t}", "title": "" }, { "docid": "66a0b13ec8af7c9a0a495884676b2303", "score": "0.5201041", "text": "public static Optional<ItemStack> parseItemStack(String string) {\n String[] split = string.split(\":\");\n if(split.length <= 2) {\n Item item = ForgeRegistries.ITEMS.getValue(new ResourceLocation(string));\n return item == null ? Optional.empty() : Optional.of(new ItemStack(item, 1));\n } else {\n //TODO: metadata\n /*\n Item item = ForgeRegistries.ITEMS.getValue(new ResourceLocation(split[0] + \":\" + split[1]));\n if(item == null) {\n return Optional.empty();\n }\n int meta = -1;\n try {\n meta = Integer.parseInt(split[2]);\n } catch(Exception e) {\n InfinityLib.instance.getLogger().info(\"[ERROR] Failed parsing of item metadata for \" + string);\n InfinityLib.instance.getLogger().printStackTrace(e);\n }\n return meta < 0 ? Optional.empty() : Optional.of(new ItemStack(item, 1, meta));\n */\n return Optional.empty();\n }\n }", "title": "" }, { "docid": "143f13acd0738768f26d37a659f3734f", "score": "0.508876", "text": "public static String fromItemStack(ItemStack is)\n\t{\n\t\ttry\n\t\t{\n\t\t\treturn new String(new Stack(is).toData(), Charsets.UTF_8);\n\t\t}\n\t\t\n\t\tcatch(IOException e)\n\t\t{\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t\treturn null;\n\t}", "title": "" }, { "docid": "7f1cf1ce18eb89d7d53fb544646788cc", "score": "0.50602394", "text": "@Test\n\tpublic void testStackType() {\n\t\tString node = s.pop();\n\t\t\n\t\tassertTrue(node instanceof String, \"Stack Type is Wrong\");\n\t\n\t}", "title": "" }, { "docid": "e8e89ca2719dc9ed6320462c0b695783", "score": "0.50363475", "text": "@SuppressWarnings(\"deprecation\")\r\n\tpublic ItemStack[] convertToInventory(final String invString, final InventoryType type) {\r\n\t\tif ((invString == null) || (invString == \"\")) {\r\n\t\t\treturn new ItemStack[] {};\r\n\t\t}\r\n\t\tfinal String[] serializedBlocks = invString.split(\";\");\r\n\t\tfinal String invInfo = serializedBlocks[0];\r\n\t\tInventory deserializedInventory = null;\r\n\t\tif ((Integer.parseInt(invInfo) % 9) == 0) {\r\n\t\t\tdeserializedInventory = Bukkit.getServer().createInventory(null, Integer.parseInt(invInfo));\r\n\t\t} else {\r\n\t\t\tdeserializedInventory = Bukkit.getServer().createInventory(null, type);\r\n\t\t}\r\n\r\n\t\tfor (int i = 1; i < serializedBlocks.length; i++) {\r\n\t\t\tfinal String[] serializedBlock = serializedBlocks[i].split(\"#\");\r\n\t\t\tfinal int stackPosition = Integer.parseInt(serializedBlock[0]);\r\n\r\n\t\t\tif (stackPosition >= deserializedInventory.getSize()) {\r\n\t\t\t\tcontinue;\r\n\t\t\t}\r\n\r\n\t\t\tItemStack is = null;\r\n\t\t\tBoolean createdItemStack = false;\r\n\r\n\t\t\tfinal String[] serializedItemStack = serializedBlock[1].split(\":\");\r\n\t\t\tfor (final String itemInfo : serializedItemStack) {\r\n\t\t\t\tfinal String[] itemAttribute = itemInfo.split(\"@\");\r\n\t\t\t\tif (itemAttribute[0].equals(\"t\")) {\r\n\t\t\t\t\tif (isNumber(itemAttribute[1])) {\r\n\t\t\t\t\t\titemAttribute[1] = Material.getMaterial(Integer.parseInt(itemAttribute[1])).name();\r\n\t\t\t\t\t}\r\n\t\t\t\t\tis = new ItemStack(Material.getMaterial(itemAttribute[1]));\r\n\t\t\t\t\tcreatedItemStack = true;\r\n\t\t\t\t} else if (itemAttribute[0].equals(\"d\") && createdItemStack) {\r\n\t\t\t\t\tis.setDurability(Short.valueOf(itemAttribute[1]));\r\n\t\t\t\t} else if (itemAttribute[0].equals(\"a\") && createdItemStack) {\r\n\t\t\t\t\tis.setAmount(Integer.parseInt(itemAttribute[1]));\r\n\t\t\t\t} else if (itemAttribute[0].equals(\"e\") && createdItemStack) {\r\n\t\t\t\t\tis.addEnchantment(Enchantment.getByName(itemAttribute[1]), Integer.parseInt(itemAttribute[2]));\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tdeserializedInventory.setItem(stackPosition, is);\r\n\t\t}\r\n\r\n\t\treturn deserializedInventory.getContents();\r\n\t}", "title": "" }, { "docid": "65625a48de4d26f661680b08e8811c4b", "score": "0.5029742", "text": "@Test\n\tpublic void testListStackWithChars(){\n\t\tListStack<Character> b = new ListStack<Character>();\n\t\tString s= \"zeichenweise\";\n\t\tchar[]a= s.toCharArray();\n\t\t\n\t\tfor (int i=0;i<s.length();i++){\n\t\t\tb.push(a[i]);\n\t\t}\n\t\t\n\t\tassertTrue(b.top()=='e');\n\t\t\n\t\tfor (int j =0; j<s.length();j++){\n\t\t\tb.popTop();\n\t\t}\n\t\tassertTrue(b.istLeer());\n\t}", "title": "" }, { "docid": "1dddda9515782758a2cbad3bd37a6cc9", "score": "0.49291176", "text": "@Override\r\n\tprotected Stack<String> createStack() {\n\t\treturn new PriorityQueueStack<>();\r\n\t}", "title": "" }, { "docid": "3526a1d547530a586bb944e15a8dbb2c", "score": "0.49258208", "text": "private static Deque<Character> fillStack(String string) {\n var stackOfCharacters = new ArrayDeque<Character>();\n for (int i = 0; i < string.length(); i++) {\n stackOfCharacters.push(string.charAt(i));\n ;\n }\n return stackOfCharacters;\n }", "title": "" }, { "docid": "011c5568fde19ba99877c5ca1e917006", "score": "0.48951828", "text": "public static ItemStack parseItem(String item){\n if (item == null || item.equals(\"\"))\n return null;\n \n String[] parts = item.split(\":\");\n if (parts.length == 1)\n return singleItem(parts[0]);\n if (parts.length == 2)\n return withDurability(parts[0], parts[1]);\n if(parts.length == 3)\n \treturn withAmount(parts[0], parts[1], parts[2]);\n \n return null;\n }", "title": "" }, { "docid": "195af1eb6411bc3bb2c28651dbeecfe3", "score": "0.4853443", "text": "private void getStackAsString(Deque<String> stack){\n if(stack.isEmpty()) return; \r\n //Gets the string \r\n String element = stack.peek(); \r\n //Pop the top element of the stack \r\n stack.pop(); \r\n //Recursively call the function getStackAsString \r\n getStackAsString(stack); \r\n //Append the stack element\r\n stackString += \"\\t\\\"\" + element + \"\\\"\\n\";\r\n //Push the same element onto the stack to keep the order\r\n stack.push(element); \r\n }", "title": "" }, { "docid": "000da8e12e29412220ad2f661a370c30", "score": "0.48480913", "text": "public static Tree<String> parse(String input) {\n PushbackStringTokenizer tokenizer = new PushbackStringTokenizer(input);\n Tree<String> tree = parse(tokenizer);\n if (tokenizer.hasNext()) {\n throw new IllegalArgumentException(\"Tokenizer error at: \" + tokenizer.next());\n }\n return tree;\n }", "title": "" }, { "docid": "fa94faf4be285192407ada8b45256607", "score": "0.48398572", "text": "public static FoodItemList foodItemListFromStrings(String[] stringData) {\n //first pass the data to foodItemsFromStrings to get an array of food items\n FoodItem[] tempItems = foodItemsFromStrings(stringData);\n\n //create and return a food item list from the array\n FoodItemList result = new FoodItemList(tempItems);\n return result;\n }", "title": "" }, { "docid": "d3d645a1883909a28678f6b179bd4153", "score": "0.48368123", "text": "private Item decodeItem(String input) {\n //Split the input string\n String itemString[] = input.split(Item.spacer);\n\n //Stop if there is not enough information to decode\n if (itemString.length < 4) {\n return null;\n }\n\n //Initialize variables using decoded information from the input string\n String name = itemString[0];\n int inputRate = Integer.parseInt(itemString[1]);\n int consumptionRate = Integer.parseInt(itemString[2]);\n boolean infiniteInput = Boolean.parseBoolean(itemString[3]);\n\n //Return an Item with the variables\n return new Item(name, inputRate, consumptionRate, infiniteInput);\n }", "title": "" }, { "docid": "e6e4962cd4d9a817504dd246e9b0830f", "score": "0.48274705", "text": "public SerializableInventory(String inventory) {\n String[] serializedBlocks = inventory.split(\";\");\n String invInfo = serializedBlocks[0];\n Inventory newInventory = Bukkit.getServer().createInventory(null, Integer.valueOf(invInfo));\n\n try {\n\n for (int i = 1; i < serializedBlocks.length; i++) {\n String[] serializedBlock = serializedBlocks[i].split(\"#\");\n int stackPosition = Integer.valueOf(serializedBlock[0]);\n\n if (stackPosition >= newInventory.getSize()) {\n continue;\n }\n\n ItemStack is = null;\n Boolean createdItemStack = false;\n\n String[] serializedItemStack = serializedBlock[1].split(\":\");\n for (String itemInfo : serializedItemStack) {\n String[] itemAttribute = itemInfo.split(\"@\");\n if (itemAttribute[0].equals(\"t\")) {\n is = new ItemStack(Material.getMaterial(itemAttribute[1]));\n createdItemStack = true;\n } else if (is == null) {\n // Quick return to avoid NPE\n } else if (itemAttribute[0].equals(\"d\") && createdItemStack) {\n is.setDurability(Short.valueOf(itemAttribute[1]));\n } else if (itemAttribute[0].equals(\"a\") && createdItemStack) {\n is.setAmount(Integer.valueOf(itemAttribute[1]));\n } else if (itemAttribute[0].equals(\"e\") && createdItemStack) {\n String[] split = itemAttribute[1].split(\":\");\n if (split.length == 2) {\n Enchantment e = Enchantment.getByKey(new NamespacedKey(split[0], split[1]));\n if (e != null) {\n is.addEnchantment(e, Integer.valueOf(itemAttribute[2]));\n }\n }\n }\n }\n newInventory.setItem(stackPosition, is);\n }\n\n } catch (Exception ex) {\n newInventory = null;\n }\n\n this.inventory = newInventory;\n this.serialized = inventory;\n }", "title": "" }, { "docid": "5133b449a5684ee5735d8ad668646047", "score": "0.48180318", "text": "public void readFromNBT(NBTTagCompound var1)\n {\n super.readFromNBT(var1);\n NBTTagList var2 = var1.getTagList(\"Items\");\n this.m_InventoryContents = new ItemStack[this.getSizeInventory()];\n\n for (int var3 = 0; var3 < var2.tagCount(); ++var3)\n {\n NBTTagCompound var4 = (NBTTagCompound)var2.tagAt(var3);\n int var5 = var4.getByte(\"Slot\") & 255;\n\n if (var5 >= 0 && var5 < this.m_InventoryContents.length)\n {\n this.m_InventoryContents[var5] = ItemStack.loadItemStackFromNBT(var4);\n }\n }\n\n if (var1.hasKey(\"decomposeCounter\"))\n this.m_CompostCounter = var1.getInteger(\"decomposeCounter\");\n \n if (var1.hasKey(\"currentState\"))\n \tthis.m_CurrentState = var1.getInteger(\"currentState\");\n }", "title": "" }, { "docid": "c76d8bd95d3937709743f7f9cd4b9ba1", "score": "0.47511712", "text": "public abstract void addItemStackToItemList(Object stack);", "title": "" }, { "docid": "aad7c8b38be3db9c658bbeebafe45617", "score": "0.4719178", "text": "public static Stack<String> generateStackFromPattern(String pattern) {\n Stack<String> stack = new Stack<>();\n if (pattern != null) {\n List<String> nodeSelectors = Arrays.asList(pattern.split(\" \"));\n Collections.reverse(nodeSelectors);\n nodeSelectors.forEach(stack::push);\n }\n return stack;\n }", "title": "" }, { "docid": "4badefece42abec1fde1436cba9c108f", "score": "0.4705169", "text": "public Element getFromStack(String str) {\n for (int size = this.stack.size() - 1; size >= 0; size--) {\n Element element = (Element) this.stack.get(size);\n if (element.normalName().equals(str)) {\n return element;\n }\n }\n return null;\n }", "title": "" }, { "docid": "86123451cfa89bae933c6a5d6f87f0bf", "score": "0.46307892", "text": "@Override\n\tpublic void readFromNBT(NBTTagCompound compound)\n\t{\n\t\tsuper.readFromNBT(compound);\n\t\tif (compound.hasKey(\"inputitem\"))\n\t\t{\n\t\t\titemStackHandler.deserializeNBT((NBTTagCompound) compound.getTag(\"inputitem\"));\n\t\t}\n\t}", "title": "" }, { "docid": "ce4df7789278a8803c99f70775560403", "score": "0.46101102", "text": "public void push(String item)\n {\n if (sp == stack.length)\n {\n String[] temp = new String[2 * sp];\n System.arraycopy(stack, 0, temp, 0, sp);\n stack = temp;\n }\n\n stack[sp++] = item;\n }", "title": "" }, { "docid": "f0a14ed797b792424480920f94b52f72", "score": "0.45991173", "text": "private String parseElements( String toParse , int type )\n {\n if ( toParse.charAt(0) == '{' )\n { \n toParse = toParse.substring(1) ;\n int pos = parseDict( toParse ,type ) ;\n while ( ( pos+2 < toParse.length() ) &&\n ( toParse.charAt(pos+1) == ',' ) \n ) \n { \n toParse = toParse.substring(pos+2) ;\n\n if ( toParse.startsWith(_CHILDREN_) )\n return parseChildren( toParse.substring(_CHILDREN_.length() ), type ) ; \n else if ( isType( toParse ) )\n return parse( toParse ) ; // parse consecutive \n else\n pos = parseDict( toParse , type) ; \n } \n \n if ( ( pos+2 < toParse.length() ) )\n // bypass last \n toParse = toParse.substring(pos+2) ;\n \n }\n else if ( toParse.equals(_NO_SUGGESTION_) )\n _topNode = new PythonSyntaxTreeNode( PythonSyntaxTreeNode.NOSUGGESTION_TYPE ,\n 0 ,\n _NO_SUGGESTION_ ,\n \"\"\n ) ;\n return toParse ;\n }", "title": "" }, { "docid": "72ec4983f4aa827c8bb5a9f3cae43b3d", "score": "0.45809978", "text": "public String getStringFromStack() {\n\t\tInteger num = (Integer) stack.pop();\n\t\treturn readString(num);\n\t}", "title": "" }, { "docid": "80bfc552d16df1fc9f9acf8dd2c6aadb", "score": "0.45612523", "text": "static SVGTransformList createTransformList(String transformString) {\n\n\t\tif (transformString == null) {\n\t\t\treturn null;\n\t\t}\n\n\t\ttransformString = transformString.trim();\n\t\tSVGTransformList transformList = new SVGTransformListImpl();\n\t\tStringTokenizer st = new StringTokenizer(transformString, \"()\", false);\n\n\t\twhile (st.hasMoreTokens()) {\n\n\t\t\tString transformType = st.nextToken().trim();\n\t\t\tif (!st.hasMoreTokens()) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tString transformArgs = st.nextToken().trim();\n\n\t\t\tif (transformType.equals(\"matrix\")) {\n\t\t\t\tStringTokenizer st1 = new StringTokenizer(transformArgs, \", \", false);\n\t\t\t\tint numArgs = st1.countTokens();\n\t\t\t\tif (numArgs == 6) {\n\t\t\t\t\tfloat a = Float.parseFloat(st1.nextToken());\n\t\t\t\t\tfloat b = Float.parseFloat(st1.nextToken());\n\t\t\t\t\tfloat c = Float.parseFloat(st1.nextToken());\n\t\t\t\t\tfloat d = Float.parseFloat(st1.nextToken());\n\t\t\t\t\tfloat e = Float.parseFloat(st1.nextToken());\n\t\t\t\t\tfloat f = Float.parseFloat(st1.nextToken());\n\t\t\t\t\tSVGTransform transform = new SVGTransformImpl();\n\t\t\t\t\tSVGMatrix matrix = new SVGMatrixImpl(a, b, c, d, e, f);\n\t\t\t\t\ttransform.setMatrix(matrix);\n\t\t\t\t\ttransformList.appendItem(transform);\n\t\t\t\t} else {\n\t\t\t\t\tSystem.out.println(\"wrong number of args for matrix transform: matrix(\" + transformArgs + \")\");\n\t\t\t\t}\n\n\t\t\t} else if (transformType.equals(\"translate\")) {\n\t\t\t\tStringTokenizer st1 = new StringTokenizer(transformArgs, \", \", false);\n\t\t\t\tint numArgs = st1.countTokens();\n\t\t\t\tfloat tx = 0;\n\t\t\t\tfloat ty = 0;\n\t\t\t\tif (numArgs == 1) {\n\t\t\t\t\ttx = Float.parseFloat(st1.nextToken());\n\t\t\t\t} else if (numArgs == 2) {\n\t\t\t\t\ttx = Float.parseFloat(st1.nextToken());\n\t\t\t\t\tty = Float.parseFloat(st1.nextToken());\n\t\t\t\t} else {\n\t\t\t\t\tSystem.out\n\t\t\t\t\t\t\t.println(\"wrong number of args for translate transform: translate(\" + transformArgs + \")\");\n\t\t\t\t\tif (numArgs > 2) {\n\t\t\t\t\t\ttx = Float.parseFloat(st1.nextToken());\n\t\t\t\t\t\tty = Float.parseFloat(st1.nextToken());\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tSVGTransform transform = new SVGTransformImpl();\n\t\t\t\ttransform.setTranslate(tx, ty);\n\t\t\t\ttransformList.appendItem(transform);\n\n\t\t\t} else if (transformType.equals(\"scale\")) {\n\t\t\t\tStringTokenizer st1 = new StringTokenizer(transformArgs, \", \", false);\n\t\t\t\tint numArgs = st1.countTokens();\n\t\t\t\tfloat sx = 0;\n\t\t\t\tfloat sy = 0;\n\t\t\t\tif (numArgs == 1) {\n\t\t\t\t\tsx = Float.parseFloat(st1.nextToken());\n\t\t\t\t\tsy = sx;\n\t\t\t\t} else if (numArgs == 2) {\n\t\t\t\t\tsx = Float.parseFloat(st1.nextToken());\n\t\t\t\t\tsy = Float.parseFloat(st1.nextToken());\n\t\t\t\t} else {\n\t\t\t\t\tSystem.out.println(\"wrong number of args for scale transform: scale(\" + transformArgs + \")\");\n\t\t\t\t\tif (numArgs > 2) {\n\t\t\t\t\t\tsx = Float.parseFloat(st1.nextToken());\n\t\t\t\t\t\tsy = Float.parseFloat(st1.nextToken());\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tSVGTransform transform = new SVGTransformImpl();\n\t\t\t\ttransform.setScale(sx, sy);\n\t\t\t\ttransformList.appendItem(transform);\n\n\t\t\t} else if (transformType.equals(\"rotate\")) {\n\t\t\t\tStringTokenizer st1 = new StringTokenizer(transformArgs, \", \", false);\n\t\t\t\tint numArgs = st1.countTokens();\n\t\t\t\tfloat angle = 0;\n\t\t\t\tfloat cx = 0;\n\t\t\t\tfloat cy = 0;\n\t\t\t\tif (numArgs == 1) {\n\t\t\t\t\tangle = Float.parseFloat(st1.nextToken());\n\t\t\t\t} else if (numArgs == 3) {\n\t\t\t\t\tangle = Float.parseFloat(st1.nextToken());\n\t\t\t\t\tcx = Float.parseFloat(st1.nextToken());\n\t\t\t\t\tcy = Float.parseFloat(st1.nextToken());\n\t\t\t\t} else {\n\t\t\t\t\tSystem.out.println(\"wrong number of args for rotate transform: rotate(\" + transformArgs + \")\");\n\t\t\t\t\tif (numArgs == 2) {\n\t\t\t\t\t\tangle = Float.parseFloat(st1.nextToken());\n\t\t\t\t\t} else if (numArgs > 3) {\n\t\t\t\t\t\tangle = Float.parseFloat(st1.nextToken());\n\t\t\t\t\t\tcx = Float.parseFloat(st1.nextToken());\n\t\t\t\t\t\tcy = Float.parseFloat(st1.nextToken());\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tSVGTransform transform = new SVGTransformImpl();\n\t\t\t\ttransform.setRotate(angle, cx, cy);\n\t\t\t\ttransformList.appendItem(transform);\n\n\t\t\t} else if (transformType.equals(\"skewX\")) {\n\t\t\t\tfloat skewAngle = Float.parseFloat(transformArgs);\n\t\t\t\tSVGTransform transform = new SVGTransformImpl();\n\t\t\t\ttransform.setSkewX(skewAngle);\n\t\t\t\ttransformList.appendItem(transform);\n\n\t\t\t} else if (transformType.equals(\"skewY\")) {\n\t\t\t\tfloat skewAngle = Float.parseFloat(transformArgs);\n\t\t\t\tSVGTransform transform = new SVGTransformImpl();\n\t\t\t\ttransform.setSkewY(skewAngle);\n\t\t\t\ttransformList.appendItem(transform);\n\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"Invavid transform: \" + transformType + \"(\" + transformArgs + \")\");\n\t\t\t}\n\t\t}\n\t\treturn transformList;\n\t}", "title": "" }, { "docid": "817e5894fa33d517d0363d2b7fe98f31", "score": "0.45576018", "text": "public static FoodItem[] foodItemsFromStrings(String[] stringData) {\n // create a temporary array list\n ArrayList<FoodItem> tempList = new ArrayList<FoodItem>();\n\n //go through the string array\n stringScanner:\n for (int i = 0; i < stringData.length; i++) {\n switch (stringData[i]) {\n case DataTag.ITEM: //pass on this and the next 3 lines to the food item builder as a string array\n String[] foodItemData = copyOfRange(stringData, i, i + 3);\n FoodItem item = foodItemFromStrings(foodItemData);\n tempList.add(item);\n\n //move the loop 3 lines ahead\n i += 3;\n break;\n\n case DataTag.END: //if an additional end tag is hit, stop the loop\n break stringScanner;\n\n default:\n break;\n }\n }\n\n //convert and return food item array\n FoodItem[] result = new FoodItem[tempList.size()];\n tempList.toArray(result);\n return result;\n }", "title": "" }, { "docid": "f579a1734deed4355578b56c2cfd6543", "score": "0.4551829", "text": "private static Item parseItems(List<String> components) {\n Item item = new Item(components.get(0),components.get(1));\n return item;\n }", "title": "" }, { "docid": "5557ed0cf170174b4be2751df449dd23", "score": "0.45483315", "text": "public interface IContainerSerializable extends IContainerWrapped {\n default CompoundTag writeInventoryToNBT(CompoundTag tag) {\n ListTag list = new ListTag();\n for(int i = 0; i < this.getContainerSize(); i++) {\n ItemStack stack = this.getItem(i);\n CompoundTag tagAt = stack.serializeNBT();\n boolean flag = !stack.isEmpty() && stack.getCount() > 0;\n tagAt.putBoolean(Names.NBT.FLAG, flag);\n if(flag) {\n stack.save(tagAt);\n }\n list.add(tagAt);\n }\n tag.put(Names.NBT.LIST, list);\n return tag;\n }\n\n default CompoundTag readInventoryFromNBT(CompoundTag tag) {\n if(tag.contains(Names.NBT.LIST)) {\n ListTag list = tag.getList(Names.NBT.LIST, 10);\n for(int i = 0; i < this.getContainerSize(); i++) {\n CompoundTag tagAt = list.getCompound(i);\n if(tagAt.getBoolean(Names.NBT.FLAG)) {\n ItemStack stack = ItemStack.of(tagAt);\n this.setItem(i, stack);\n } else {\n this.setItem(i, ItemStack.EMPTY);\n }\n }\n }\n return tag;\n }\n}", "title": "" }, { "docid": "ee70c09c6d362b978691781eda04f91c", "score": "0.45331836", "text": "public void readFromNBT(NBTTagCompound var1)\n {\n super.readFromNBT(var1);\n NBTTagList var2 = var1.getTagList(\"Items\");\n this.feederItemStacks = new ItemStack[this.getSizeInventory()];\n\n for (int var3 = 0; var3 < var2.tagCount(); ++var3)\n {\n NBTTagCompound var4 = (NBTTagCompound)var2.tagAt(var3);\n byte var5 = var4.getByte(\"Slot\");\n\n if (var5 >= 0 && var5 < this.feederItemStacks.length)\n {\n this.feederItemStacks[var5] = ItemStack.loadItemStackFromNBT(var4);\n }\n }\n\n this.MeatCurrent = var1.getInteger(\"MeatCurrent\");\n this.VegCurrent = var1.getInteger(\"VegCurrent\");\n }", "title": "" }, { "docid": "5cee3453bf1a99a8de3e41b8f78c2261", "score": "0.45081273", "text": "private LinkedList<Integer> stringToLinkedListInteger(String stringToConvert){\n\t\t\n\t\tLinkedList<Integer> resultList = new LinkedList<Integer>();\n\t\t\n\t\t// First cutting of the braces\n\t\tif(stringToConvert.contains(\"[\")) {\n\t\t\tstringToConvert = stringToConvert.replace(\"[\", \"\");\n\t\t}\n\t\tif(stringToConvert.contains(\"]\")) {\n\t\t\tstringToConvert = stringToConvert.replace(\"]\", \"\");\n\t\t}\n\t\t\n\t\t// now splitting this String into tokens and put them as Integer in our resultList \n\t\tString[] stringSplitting = stringToConvert.split(\", \");\n\t\tfor(int i = 0; i < stringSplitting.length; i++) {\n\t\t\tresultList.add(Integer.parseInt(stringSplitting[i]));\n\t\t}\n\t\t\n\t\treturn resultList;\n\t}", "title": "" }, { "docid": "980413f1abbac1d7a106b5c68672b2f0", "score": "0.45033896", "text": "private static ArrayList decompose(String str)\n {\n if(!str.contains(XML_S) || !str.contains(XML_END)) return null;\n \n ArrayList list = new ArrayList();\n int start = str.indexOf(XML_S) + XML_S.length();\n int end = str.indexOf(XML_END);\n int endTemp;\n \n while (start < end)\n {\n \n start = str.indexOf(OBJ_S, start) + OBJ_S.length();\n endTemp = str.indexOf(OBJ_END, start);\n \n if(start == -1 || endTemp == -1)\n {\n //problem reading\n }\n list.add(readObject(str, start, endTemp));\n start = endTemp + OBJ_END.length();\n }\n return list;\n }", "title": "" }, { "docid": "c07ab1791b9accd302c804e7ac859adb", "score": "0.44975227", "text": "static Tree<String> parse(PushbackStringTokenizer tokenizer)\n throws IllegalArgumentException {\n \tTree<String> tree = new Tree<String>(\"\");\n \t\n \t\n \tString next = tokenizer.next(); \n if(next==null||\")\".equals(next)) return null;\n else{\n \ttree.setValue(next);\n }\n String tok = tokenizer.next();\n if((\"(\").equals(tok)){\n Tree<String> subTree = null;\n while((subTree = parse(tokenizer)) != null)\t{\n \ttree.addChild(subTree);\n// \tif(\")\".equals(tokenizer.next())) return tree;\n }\n //if((\")\").equals(tokenizer.next())) throw new IllegalArgumentException();\n \t}else{\n \t\ttokenizer.pushBack(tok);\n \t}\n return tree;\n }", "title": "" }, { "docid": "ee9b0b7df05c37d9fd966da41a8efde3", "score": "0.44921884", "text": "public void popStackToBefore(String str) {\n int size = this.stack.size() - 1;\n while (size >= 0 && !((Element) this.stack.get(size)).normalName().equals(str)) {\n this.stack.remove(size);\n size--;\n }\n }", "title": "" }, { "docid": "8407801a57ba4fe57342eef7fe19cf83", "score": "0.44918835", "text": "public static TreeNode deserialize(String data) {\n Queue<String> queue = new LinkedList<String>();\n queue.addAll(Arrays.asList(data.split(\",\"))); \n// System.out.println(queue.toString());\n TreeNode root = buildTree(queue);\n return root;\n }", "title": "" }, { "docid": "34ff3bc7577bf856c04286d31da4c108", "score": "0.44916102", "text": "public abstract List<LibraryPack> parseXmlLibraryPacks(String input) throws BindingException;", "title": "" }, { "docid": "f775c0556127a17b48a4e093c51e3440", "score": "0.44898787", "text": "public void push(String s) {\n Node newnode = new Node();\n newnode.item = s;\n newnode.next = top;\n top = newnode;\n size++;\n }", "title": "" }, { "docid": "8f56fd44207d05518f93ac9dfc34ce1b", "score": "0.4484049", "text": "public ItemStack make(Material material, String name, List<String> lore)\n {\n return parse(new ItemStack(material, 1), name, lore);\n }", "title": "" }, { "docid": "590094eb662ffbe603bdb82fc0cefd6e", "score": "0.44779268", "text": "ItemStack getSpecialStack(Identifier entry);", "title": "" }, { "docid": "11337ae3f7e6084a7eec0ebcc37194fd", "score": "0.44662106", "text": "public TreeNode deserialize1(String data) {\n return preorder(Arrays.asList(data.split(\",\")).iterator());\n }", "title": "" }, { "docid": "7903b5705dd47cde02617caeb794cf64", "score": "0.44628027", "text": "java.lang.String getStackEntries(int index);", "title": "" }, { "docid": "37ea49d12ee80c77e84aa9d8ccaec8a5", "score": "0.44462034", "text": "public StackOfStrings2(int capacity) {\n this.stack = new String[capacity];\n }", "title": "" }, { "docid": "2e7032ae6e2a840dace3ef22e51ab79e", "score": "0.44449994", "text": "public TreeNode deserialize(String data) {\n String[] strs = data.split(\",\");\n List<String> list = new LinkedList<>(Arrays.asList(strs));\n return desHelper(list);\n\n }", "title": "" }, { "docid": "70304a2f319f78125aeb705130ad0682", "score": "0.4434964", "text": "public void launch() {\n\t\tArrayStringStack myArrayStrStack = new ArrayStringStack();\n\t\tthis.testStack(myArrayStrStack);\n\t\t\n\t\tPointerStringStack myPointerStack = new PointerStringStack();\n\t\tthis.testStack(myPointerStack);\n\t}", "title": "" }, { "docid": "9fba0027a56a5f12337fb76102a2ae5d", "score": "0.4434849", "text": "gov.nih.nlm.ncbi.www.soap.eutils.esearch.TranslationStackType addNewTranslationStack();", "title": "" }, { "docid": "c9d87199c5c72fcc6ec01e42ffb15b35", "score": "0.44293478", "text": "public void readFromNBT(NBTTagCompound par1NBTTagCompound)\n {\n super.readFromNBT(par1NBTTagCompound);\n NBTTagList nbttaglist = par1NBTTagCompound.getTagList(\"Items\");\n brewingItemStacks = new ItemStack[getSizeInventory()];\n\n for (int i = 0; i < nbttaglist.tagCount(); i++)\n {\n NBTTagCompound nbttagcompound = (NBTTagCompound)nbttaglist.tagAt(i);\n byte byte0 = nbttagcompound.getByte(\"Slot\");\n\n if (byte0 >= 0 && byte0 < brewingItemStacks.length)\n {\n brewingItemStacks[byte0] = ItemStack.loadItemStackFromNBT(nbttagcompound);\n }\n }\n\n brewTime = par1NBTTagCompound.getShort(\"BrewTime\");\n }", "title": "" }, { "docid": "8c56da331151df0b86d824e3519afc66", "score": "0.44214356", "text": "private void push(char str) {\n\t\t stackarr[++top]= str;\n\t\t\n\t}", "title": "" }, { "docid": "2e47790af76110a9e33862e508ecef7c", "score": "0.44168627", "text": "public static Genre restoreCollection(String stringRepresentation) {\n\t\t//split input strings at newline character\n\t\tString[] lines = stringRepresentation.split(\"\\n\");;\n\t\t\n\t\treturn restoreCollectionRecursive(lines,0,0);\n\t}", "title": "" }, { "docid": "dfdcfccd224b5e8adfaa94cb02709440", "score": "0.44064084", "text": "@Nullable\n\tprotected static ItemStack getItemStackFromID(String itemID) {\n\n\t\tString[] args = itemID.split(\":\");\n\n\t\tItemStack stack = null;\n\t\tItem item = null;\n\t\tint meta = 0;\n\t\tint qty = 1;\n\t\t\n\t\tif(args.length >= 2) {\n\t\t\titem = Item.getByNameOrId(args[0] +\":\"+ args[1]);\n\t\t}\t\t\n\t\t\n\t\tif(args.length >= 3){\n\t\t\ttry{\n\t\t\t\tmeta = Integer.parseInt(args[2]);\n\t\t\t} catch(Exception e) {\n\t\t\t\tChickensMod.log.error(\"Could not parse meta value: \"+ itemID);\n\t\t\t}\n\t\t}\n\t\t\n\t\tif(args.length == 4) {\n\t\t\ttry {\n\t\t\t\tqty = Integer.parseInt(args[3]);\n\t\t\t} catch(Exception e) {\n\t\t\t\tChickensMod.log.error(\"Could not parse qty value: \"+ itemID);\n\t\t\t}\n\t\t}\n\t\t\n\t\tif(item != null) {\n\t\t\tstack = new ItemStack(item, qty, meta);\n\t\t} else {\n\t\t\tChickensMod.log.error(\"Item could not be Found: \"+ itemID);\n\t\t}\n\n\t\treturn stack;\n\t}", "title": "" }, { "docid": "eb421e172c90a7cd3c5b91457c9e1f88", "score": "0.4392039", "text": "@Test\r\n public void pushToStack() {\r\n StringStack stack = new StringStack();\r\n stack.push(\"hello\");\r\n assertEquals(1, stack.getSize());\r\n }", "title": "" }, { "docid": "17c01b5eab891a8449944610e142feb0", "score": "0.43909973", "text": "private static String[] readObject(String str, int start, int end)\n {\n ArrayList list = new ArrayList();\n String tag = \"\";\n String endTag = \"\";\n \n while(start < end)\n {\n tag = getTag(str, start);\n start = str.indexOf(tag, start) + tag.length();\n list.add(str.substring(start, str.indexOf(\"</\", start)));\n endTag = getTag(str, start);//this actually get the string we want to get and the end Tag.\n start = start + endTag.length();\n }\n //hard copy the contents\n String[] temp;\n temp = new String[list.size()];\n for(int i = 0; i < list.size(); i++)\n {\n temp[i] = (String)list.get(i);\n }\n return temp;\n }", "title": "" }, { "docid": "3674102700b2f8f33d2898a3bfb93b89", "score": "0.43897632", "text": "private BackPack getPackBack(String line) {\n BackPack backPack = new BackPack();\n String [] packPackStr=line.split(\":\");\n backPack.setMaxWeight(Double.parseDouble(packPackStr[0].trim()));\n backPack.setItem(getItems(packPackStr[1].trim()));\n return backPack;\n }", "title": "" }, { "docid": "0c0237e101553525262309c41157d4ee", "score": "0.43892744", "text": "private void newStack() {\r\n\t\t\tStack <Integer> stack = new Stack<Integer>();\r\n\t\t\tlist.add(stack);\r\n\t\t}", "title": "" }, { "docid": "3f0c2cec9dbe2553d28ccc56228b64c6", "score": "0.4388587", "text": "public void testStack(StringStack stack) {\n\t\t\n\t\tfor (int i=0; i<10; i++) {\n\t\t\tstack.push(\"String\" + i); // add 10 strings to the stack\n\t\t}\n\t\t\n\t\tSystem.out.println(stack.peek()); // take a look but don't delete last item on the stack\n\t\t\n\t\twhile (stack.isEmpty()!=true) {\n\t\t\tSystem.out.println(stack.pop()); // delete items from stack one by one \n\t\t}\n\t\t\n\t\tif (stack.isEmpty()) {\n\t\t\tSystem.out.println(\"stack is now empty\");\n\t\t}\n\t\t\n\t}", "title": "" }, { "docid": "bc1c174b2c72ffdb2fe238a5213f09af", "score": "0.43820488", "text": "public ItemStack make(Material material, String name)\n {\n return parse(new ItemStack(material, 1), name);\n }", "title": "" }, { "docid": "ba0e1e0a555335069629fe3b0b0de49b", "score": "0.43721235", "text": "public static void categoriesFromStrings(String[] stringData) {\n int i = 0;\n ArrayList<Category> tempCat = new ArrayList<Category>();\n\n while (i < stringData.length) {\n if (stringData[i] == DataTag.CATEGORY) {\n i++; //skip the first line with the CAT tag, go to the ID\n int id = Integer.parseInt(stringData[i]);\n i++; //go to the name\n String name = stringData[i];\n i++; // go to the quantity unit\n QuantityUnit unit = QuantityUnit.values()[Integer.parseInt(stringData[i])];\n i++; //go to the parent id\n int parentID = id = Integer.parseInt(stringData[i]);\n\n if (parentID != 0) {// if the category has no parent, create the category and add it directly to the main category list\n Category loaded = new Category(name, unit);\n loaded.setID(id);\n mainCategories.add(loaded);\n tempCat.add(loaded);\n\n } else { // else, find its parent, and add it under it\n Category parent = null;\n for (Category c : tempCat) {\n if (c.getID() == id) {\n parent = c;\n }\n }\n\n if (parent != null) { //if the correct parent could be found, create the category\n Category loaded = new Category(name, unit, parent);\n loaded.setID(id);\n parent.addSubcategory(loaded);\n tempCat.add(loaded);\n }\n }\n } else if (stringData[i] == DataTag.END) { //if an additional end tag is hit, stop loading\n break;\n }\n }\n }", "title": "" }, { "docid": "6a9d2ac2bbd2aa8bad1526e7d5c417bc", "score": "0.43702504", "text": "public void deserialize(String str) {\r\n if (str == null || str.equals(\"\")) {\r\n this.items = new PathItem[0];\r\n return;\r\n }\r\n List itemsList = new ArrayList();\r\n StringTokenizer tok = new StringTokenizer(str, \"\" + PATH_SEPARATOR);\r\n while (tok.hasMoreTokens()) {\r\n itemsList.add(tok.nextToken());\r\n }\r\n\r\n int size = itemsList.size();\r\n this.items = new PathItem[size];\r\n\r\n for (int index = 0; index < size; ++index) {\r\n items[index] = new PathItem((String) itemsList.get(index));\r\n }\r\n }", "title": "" }, { "docid": "b5945696eeeb58faa8e2548b29b71e0f", "score": "0.43587732", "text": "public void flatten(String s) {\n\t\tjava.util.Map<String, Node> temp = new HashMap<String, Node>();\n\t\tflattenHelper(0, this, \"\", s, temp);\n\t\tmy_children = temp;\n\t}", "title": "" }, { "docid": "b9369f9f35f4a4fd5df19322a97aff97", "score": "0.435003", "text": "private static TraceElement generateStackElement(String elementString) {\n\t\tint id = -1;\n\t\tString methodname = \"\";\n\t\tString memoryAddress = \"\";\n\t\tString fileSource = \"\";\n\t\tint lineInFileSource = -1;\n\t\tString fileSourceDetails;\n\t\tList<Variable> vars = new ArrayList<Variable>();\n\t\t\n\t\t/**\n\t\t * Line number\n\t\t */\n\t\tint value = Integer.parseInt(elementString.substring(0, elementString.indexOf(\" \")));\n\t\tid = value;\n\t\telementString = elementString.substring(elementString.indexOf(\" \")).trim();\n\t\t\n\t\t/**\n\t\t * Special line\n\t\t */\n\t\tif(elementString.startsWith(\"<\")){\n\t\t\treturn new TraceElement(id, memoryAddress, methodname, fileSource, lineInFileSource);\n\t\t}\n\t\t\n\t\t\n\t\t/**\n\t\t * Memory Address\n\t\t */\n\t\tif(elementString.startsWith(\"0x\")){\n\t\t\tmemoryAddress = elementString.substring(0, elementString.indexOf(\" \"));\t\n\t\t\telementString = elementString.substring(elementString.indexOf(\" \")).trim();\t\n\t\t\tif(elementString.startsWith(\"in \")){\n\t\t\t\telementString = elementString.substring(elementString.indexOf(\" \")).trim();\n\t\t\t}\n\t\t}\n\t\t\n\t\t\n\t\t/**\n\t\t * Method name\n\t\t */\n\t\tmethodname = elementString.substring(0, elementString.indexOf(\" \"));\n\t\telementString = elementString.substring(elementString.indexOf(\" \")).trim();\n\t\t\n\t\t/**\n\t\t * Method arguments\n\t\t */\n\t\telementString = elementString.substring(elementString.indexOf(\")\")+1).trim();\n\t\t\n\t\t\n\t\t/**\n\t\t * File + line in file (at/from + :)\n\t\t */\n\t\tif(elementString.startsWith(\"from \") || elementString.startsWith(\"at \")){\n\t\t\telementString = elementString.substring(elementString.indexOf((elementString.startsWith(\"from \"))?\"from \":\"at \")).trim();\n\t\t\telementString = elementString.substring(elementString.indexOf(\" \")).trim();\n\t\t\t\n\t\t\tif(elementString.indexOf(\"\\n\") == -1){\n\t\t\t\tfileSourceDetails = elementString;\n\t\t\t}else{\n\t\t\t\tfileSourceDetails = elementString.substring(0, elementString.indexOf(\"\\n\"));\n\t\t\t}\n\t\t\t\n\t\t\tif(fileSourceDetails.contains(\":\")){\n\t\t\t\tString[] fileDetailsSplit;\n\t\t\t\tfileDetailsSplit = fileSourceDetails.split(\":\");\n\t\t\t\tfileSource = fileDetailsSplit[0];\n\t\t\t\tint iEnd = indexOf( Pattern.compile(\"\\n| \") , fileDetailsSplit[1] );\n\t\t\t\tif(iEnd==-1){\n\t\t\t\t\tiEnd=fileDetailsSplit[1].length();\n\t\t\t\t}\n\t\t\t\tlineInFileSource = Integer.parseInt( fileDetailsSplit[1].substring(0, iEnd) );\n\t\t\t\t\n\t\t\t} else {\n\t\t\t\tif( fileSourceDetails.substring(fileSourceDetails.lastIndexOf(\".\")+1).matches(\"[0-9]+\") ){\n\t\t\t\t\tfileSource = fileSourceDetails.substring(0, fileSourceDetails.lastIndexOf(\".\"));\n\t\t\t\t\tlineInFileSource = Integer.parseInt(fileSourceDetails.substring(fileSourceDetails.lastIndexOf(\".\")+1));\n\t\t\t\t}else{\n\t\t\t\t\tfileSource = fileSourceDetails;\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tif(elementString.indexOf(\"\\n\") != -1){\n\t\t\t\telementString = elementString.substring(elementString.indexOf(\"\\n\")).trim();\n\t\t\t}\n\t\t\n\t\t}\n\t\t\n\t\t/**\n\t\t * Vars ( = )\n\t\t */\n\t\tif(!elementString.isEmpty()){\n\t\t\tboolean composed = false;\n\t\t\tfor(String line : elementString.split(\"\\n\")){\n\t\t\t\tif(line.contains(\" = \")){\n\t\t\t\t\tString varName =\"\";\n\t\t\t\t\tString varType = \"\";\n\t\t\t\t\tString varValue = \"\";\n\t\t\t\t\t\n\t\t\t\t\tString[] varDetails = line.split(\" = \");\n\t\t\t\t\t\n\t\t\t\t\tif(varDetails.length > 1){\n\t\t\t\t\t\t/**\n\t\t\t\t\t\t * Var name\n\t\t\t\t\t\t */\n\t\t\t\t\t\tvarName = varDetails[0].trim();\n\t\t\t\t\t\t\n\t\t\t\t\t\t/**\n\t\t\t\t\t\t * Var type\n\t\t\t\t\t\t */\n\t\t\t\t\t\tif(varDetails[1].contains(\"(\") && varDetails[1].contains(\"*)\")){\n\t\t\t\t\t\t\tvarType = varDetails[1].substring(varDetails[1].indexOf(\"(\")+1, varDetails[1].indexOf(\"*)\")+1);\n\t\t\t\t\t\t\tvarDetails[1] = varDetails[1].substring(varDetails[1].indexOf(\"*)\")+2).trim();\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\t/**\n\t\t\t\t\t\t * Var value (or memory address)\n\t\t\t\t\t\t */\n\t\t\t\t\t\tvarValue = varDetails[1].trim();\n\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t/**\n\t\t\t\t\t\t * Only simple vars (No composed var)\n\t\t\t\t\t\t */\n\t\t\t\t\t\tif(!varValue.contains(\"{\") && !varValue.contains(\",\")){\n\t\t\t\t\t\t\tif(!composed){\n\t\t\t\t\t\t\t\tVariable var = new Variable(varName, varType, varValue);\n\t\t\t\t\t\t\t\tvars.add(var);\n\t\t\t\t\t\t\t} else if(varValue.contains(\"}\") && !varValue.contains(\",\")){\n\t\t\t\t\t\t\t\tcomposed = false;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tcomposed = true;\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\n\t\treturn new TraceElement(id, memoryAddress, methodname, fileSource, lineInFileSource, vars);\n\t}", "title": "" }, { "docid": "8ff0c4abb1c0ffa09b6df41b12fbfe86", "score": "0.43365625", "text": "public static List<ItemStack> getShulkerContents(ItemStack stack) {\n NonNullList<ItemStack> contents = NonNullList.withSize(27, ItemStack.EMPTY);\n NBTTagCompound compound = stack.getTagCompound();\n if (compound != null && compound.hasKey(\"BlockEntityTag\", 10)) {\n NBTTagCompound tags = compound.getCompoundTag(\"BlockEntityTag\");\n if (tags.hasKey(\"Items\", 9)) {\n // load in the items\n ItemStackHelper.loadAllItems(tags, contents);\n }\n }\n return contents;\n }", "title": "" }, { "docid": "12260936f3a978da0b29e8a9d83c4390", "score": "0.43321937", "text": "public static Recipe recipeFromStrings(String[] stringData) {\n //First, grab the name of the recipe\n String name = stringData[1];\n\n //pass the remaining data to foodItemsFromStrings to get an array of food items\n FoodItem[] tempItems = foodItemsFromStrings(stringData);\n\n //create and return a recipe\n Recipe result = new Recipe(name, tempItems);\n return result;\n }", "title": "" }, { "docid": "a45375f0cd25005766d2ec5809c057dd", "score": "0.43263227", "text": "public TreeNode1 deserialize(String data) {\r\n String[] res = data.split(\",\");\r\n List<String> result = new LinkedList(Arrays.asList(res));\r\n return des(result,0);\r\n }", "title": "" }, { "docid": "f2d47c9ee9b32f535f4dcf6c899efe63", "score": "0.43259135", "text": "public Stack(String stackPath) {\n //get the stackname out of the stackpath. The stackpath is the path to the folder where the stack lies + stackname + .xml or .txt or whatever type it is\n String[] partName;\n //This if-loop is needed, because the File.seperator for windows will be \"\\\", but this will be interpreted as an escape character. To finally get the normal \"\\\"\n //I need to have it four times for an regrex, but only twice in an normal String. But File.seperator only gives me a \"\\\" back.\n if(File.separator.equals(\"\\\\\")) {\n //The OS is windows\n partName = stackPath.split(\"\\\\\\\\\");\n } else {\n partName = stackPath.split(File.separator);\n }\n name = partName[partName.length-1];\n //remove the .xml ending\n String[] arrayName = name.split(\"\\\\.\");\n name = \"\";\n for(int i = 0; i < arrayName.length-2; i++) {\n name += arrayName[i] + \".\";\n }\n name += arrayName[arrayName.length-2];\n\n //Load Stack out of File\n stackFile = new File(stackPath);\n if(stackFile.exists()) {\n //Only load the stack if it exists. So there won't be any errors, when e.g. e new stack is created, which first need to be \"filled\" with information.\n infoGroups = Load.loadStack(stackFile);\n } else {\n infoGroups = new ArrayList<>();\n }\n }", "title": "" }, { "docid": "40e7267a2402b9c76c24d3a8144a2597", "score": "0.43196902", "text": "public TreeNode deserialize( String data ) {\n int cnt;\n String value = \"\";\n String[] strArray = data.split( PARTITION );\n\n MyStringArray queue = new MyStringArray();\n queue.strArray = strArray;\n queue.curIndex = 0;\n\n return deserializeData( queue );\n }", "title": "" }, { "docid": "fd3aaf574cdf45966581d457c4303731", "score": "0.43189585", "text": "public TreeNode deserialize(String data) {\n // 1, 2, #, #, 3, 4, #, # \n Queue<String> queue = new LinkedList<>(Arrays.asList(data.split(\",\")));\n return buildTree(queue);\n }", "title": "" }, { "docid": "76b32df71dc569c7e91585c4bce65e9e", "score": "0.43181086", "text": "public static Puzzle parse(final String string) throws UnableToParseException {\n // Parse the example into a parse tree\n final ParseTree<ExpressionGrammar> parseTree = parser.parse(string);\n\n // Display the parse tree in various ways, for debugging only\n // System.out.println(\"parse tree \" + parseTree);\n // Visualizer.showInBrowser(parseTree);\n\n return makeAbstractSyntaxTree(parseTree); // Make an AST from the parse tree\n }", "title": "" }, { "docid": "1ba94211b0849b49c903339be5597b33", "score": "0.43169957", "text": "public static Genre restoreCollection(String stringRepresentation) {\n\t\tString[] lines;\n\t\tlines = stringRepresentation.split(\"\\n\");\n\t\treturn restoreCollectionRecursive(lines,0,0);\n\t}", "title": "" }, { "docid": "cec3c64a3a6692a88a383c06864593b4", "score": "0.43164736", "text": "public T read( XReadStack in );", "title": "" }, { "docid": "ec4c1226ec4bfe71f2418e06bd71f399", "score": "0.43017584", "text": "public TreeNode deserialize(String data) {\n String[] strs=data.split(\",\");\n int[] i=new int[1];\n return dhelper(strs,i);\n }", "title": "" }, { "docid": "6e9af58c969afa1c78c13e4cda6b8c62", "score": "0.42951602", "text": "public TreeNode deserialize(String data) {\n\t\t//将字符串转化成列表\n\t\tLinkedList<String> nodes = new LinkedList<>(Arrays.asList(data.split(\",\")));\n\t\treturn deserialize(nodes);\n\t}", "title": "" }, { "docid": "b15dfbf7ddd70cd9da26dbff5be5e26e", "score": "0.42875597", "text": "private ArrayList<ListContentObject> parseContentStringToArrayList(String stringToParse) {\n Type itemsListType = new TypeToken<List<ListContentObject>>(){}.getType();\n ArrayList<ListContentObject> contentRecords = new Gson().fromJson(stringToParse, itemsListType);\n Collections.sort(contentRecords, new ListContentObjectComparator());\n\n return contentRecords;\n }", "title": "" }, { "docid": "b4219b59988dc8c8f8723e48a8361d41", "score": "0.42793146", "text": "public static TreeNode deserialize(String data) {\n String[] strings = data.split(\",\");\n return buildTree(strings);\n }", "title": "" }, { "docid": "646b4214e4c9ef504d9b9ff1c4968795", "score": "0.4275978", "text": "public static void testStack(){\n Stack<String> stack = new Stack<String>();\n\n // Use push() to add elements into the Stack\n stack.push(\"Welcome\");\n stack.push(\"To\");\n stack.push(\"Geeks\");\n stack.push(\"For\");\n stack.push(\"Geeks\");\n\n // Displaying the Stack\n System.out.println(\"Initial Stack: \" + stack);\n\n // Pushing elements into the stack\n stack.push(\"Hello\");\n stack.push(\"World\");\n\n // Displaying the final Stack\n System.out.println(\"Final Stack: \" + stack);\n\n //结果\n // Initial Stack: [Welcome, To, Geeks, For, Geeks]\n // Final Stack: [Welcome, To, Geeks, For, Geeks, Hello, World]\n }", "title": "" }, { "docid": "f22e5c38b32fd53b4de51dfd05c028ca", "score": "0.42664036", "text": "public TreeNode deserialize(String data) {\n // 将字符串转化成列表\n LinkedList<String> nodes = new LinkedList<>();\n for (String s : data.split(SEP)) {\n nodes.addLast(s);\n }\n return deserialize(nodes);\n }", "title": "" }, { "docid": "73a1616c7a69ecec80abcafe0fda4422", "score": "0.42645344", "text": "T parse(String s);", "title": "" }, { "docid": "25faa4a69371a6734cdd3d79e183511f", "score": "0.4264079", "text": "public ItemStack item() {\n\t\t// Create a new item stack with the type\n\t\tItemStack stack = new ItemStack(icon, 1);\n\t\t// Get the item meta\n\t\tItemMeta meta = stack.getItemMeta();\n\t\t// Set the name\n\t\tmeta.setDisplayName(label);\n\t\t// Put back the meta\n\t\tstack.setItemMeta(meta);\n\t\t// And return it\n\t\treturn stack;\n\t}", "title": "" }, { "docid": "5c70822425b20a00e0017303526257a7", "score": "0.426382", "text": "public TreeNode deserialize(String data) {\n System.out.println(data);\n String[] arr = data.split(\",\");\n return deserialize(arr);\n }", "title": "" }, { "docid": "1bb4f43a57b073f3f14e791996338015", "score": "0.42590415", "text": "private MenuItem parseCodeScanned(String codeContents) {\n\n\t\tint startCount = 0;\n\t\tint endCount = 0;\n\n\t\tboolean idSet = false;\n\t\tboolean nameSet = false;\n\t\tboolean priceSet = false;\n\n\t\tString setId = null;\n\t\tString setItemName = null;\n\t\tDouble setPrice = null;\n\t\tString temp;\n\n\t\tfor (int i = 0; i < codeContents.length(); i++) {\n\t\t\tif (codeContents.charAt(i) == ':') {\n\t\t\t\ttemp = codeContents.substring(startCount, endCount);\n\t\t\t\tendCount++;\n\t\t\t\tstartCount = endCount;\n\t\t\t\tif (idSet != true) {\n\t\t\t\t\tsetId = temp;\n\t\t\t\t\tidSet = true;\n\t\t\t\t} else if (nameSet != true) {\n\t\t\t\t\tsetItemName = temp;\n\t\t\t\t\tnameSet = true;\n\t\t\t\t} else if (priceSet != true) {\n\t\t\t\t\tsetPrice = Double.parseDouble(temp);\n\t\t\t\t\tpriceSet = true;\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tendCount++;\n\t\t\t}\n\t\t}\n\t\tif (!idSet || !nameSet || !priceSet)\n\t\t\treturn new MenuItem(null, null, 0.00);\n\t\telse\n\t\t\treturn new MenuItem(setId, setItemName, setPrice);\n\t}", "title": "" }, { "docid": "897f58d1c99d69e28add997df79fa6c6", "score": "0.42539483", "text": "@Override\n protected ItemStack createStackedBlock(int par1)\n {\n return new ItemStack(this.blockID, 2, 0);\n }", "title": "" }, { "docid": "afe658ce0246d1499a7727dd1870d2ad", "score": "0.42511097", "text": "public void push(String s) {\n \thistory[++top] = s; // increment top, insert item\r\n }", "title": "" }, { "docid": "d77e639563ed4e8861f9c5f2b9040c62", "score": "0.42440286", "text": "public static void main(String args[]) {\n \n // Instantiate our ADT\n ArrayStack<String> ars = new ArrayStack<String>(200);\n \n System.out.println(\"enter sentence below:\");\n Scanner scanner = new Scanner(System.in);\n String s = scanner.nextLine();\n System.out.println(\"words or letters?\");\n String a = scanner.nextLine();\n\n // Given the choice of reversing the word order or letters\n if (a.equalsIgnoreCase(\"words\") || a.equalsIgnoreCase(\"letters\")) {\n switch(a) {\n case \"letters\":\n for (int i = 0; i < s.length(); i++) {\n ars.push(s.substring(i, i+1));\n }\n\n //Test out the toString method for clarity, commented out.\n //if (ars.isEmpty()) {\n // System.out.println(\"stack is empty!!\");\n //} else {\n // System.out.println(ars.toString());\n //}\n\n for (int j = s.length()-1; j >= 0; j--) {\n System.out.print(ars.pop());\n }\n break;\n\n case \"words\":\n String[] words = s.split(\"\\\\s+\");\n for (int i = 0; i < words.length; i++) {\n ars.push(words[i]);\n }\n \n for (int j = words.length-1; j >= 0; j--) {\n System.out.print(ars.pop() + \" \");\n }\n break;\n }\n }\n System.out.println(\"\");\n }", "title": "" }, { "docid": "c18f130d226c9b096d14f547331bc739", "score": "0.42375314", "text": "private static List<String> formateXML(String xml) {\n List<String> dataList = Lists.newArrayList(xml.split(\"\\n\"));\n List<String> tagList = Lists.newArrayList();\n dataList.forEach(data -> {\n if (data.startsWith(\"<spbs>\")) {\n tagList.add(data);\n }\n });\n return tagList;\n }", "title": "" }, { "docid": "6612a670c7eff0801a17d50063513e0e", "score": "0.42304045", "text": "public ItemStack parse(ItemStack item, String name)\n {\n ItemMeta meta = item.getItemMeta();\n\n meta.setDisplayName(library.getChatFormatter().colorize(name));\n\n item.setItemMeta(meta);\n\n return item;\n }", "title": "" }, { "docid": "20436389f65cdd7d0f6525f9e55fb274", "score": "0.42296997", "text": "@Test\n public void testPushAddsCorrectItem() {\n testStack.push(\"TEST ITEM\");\n // see if the item pushed is returned\n assertEquals(\"TEST ITEM\", testStack.pop());\n }", "title": "" }, { "docid": "0710fbdedbb500a5bded585439fdd736", "score": "0.4227579", "text": "public TreeNode deserialize(String data) {\n Queue<String> queue = new LinkedList<String>();\n queue.addAll(Arrays.asList(data.split(spliter)));\n return buildTree(queue);\n }", "title": "" }, { "docid": "7fc2b017666317bf5d4447ddb60d4730", "score": "0.42268497", "text": "public ItemStack make(Material material, short data, String name, List<String> lore)\n {\n return parse(new ItemStack(material, 1, data), name, lore);\n }", "title": "" }, { "docid": "8fd3aad93ee74bb04c0f06e965d609d6", "score": "0.42220804", "text": "private List<DiscoverStoryListItem> makeDiscoverAdapterModel(String jsonString) {\n Gson gson = new Gson();\n List<DiscoverStoryListItem> StoryListItems = gson.fromJson(jsonString, new TypeToken<List<DiscoverStoryListItem>>() {\n }.getType());\n\n return StoryListItems;\n }", "title": "" }, { "docid": "2248c01247d04468a4339d9f68783313", "score": "0.4214629", "text": "List<Integer> stringToState(String sequence);", "title": "" }, { "docid": "2536fc033a73cd0ccdc0235b9672c3ee", "score": "0.42138097", "text": "static private String inputStringStartConversion(String c) {\n pila = new stackConversion();\n String []ca = c.split(\",\");\n temp = \"\";\n d = \"\";\n \n\n for (int i = 0; i < ca.length; i++) {\n temp = \"\";\n\n if (ca[i].matches(\"[0-9]*\")) {\n \n d += ca[i];\n pila.Push(d);\n d = \"\";\n } else if (ca[i].matches(\"[+]|[-]|[/]|[*]|[(]\")) {\n\n temp = \"\";\n temp += pila.operadorPostInfija(ca[i]);\n\n }\n\n }\n return FinalConversionString = temp;\n \n\n }", "title": "" }, { "docid": "1639b4450ed501a939e4a53fe92e1669", "score": "0.4212701", "text": "public Tree createTree(String st) {\r\n Tree tree = new Tree();\r\n ArrayList<Node> nodes = new ArrayList<Node>();\r\n Stack<Node> stack = new Stack<Node>();\r\n String value = new String();\r\n Boolean isValue = false;\r\n Boolean insertValue = false;\r\n\r\n String[] s = st.split(\"\\\\s\");\r\n for (int i = 0; i < s.length; i++) {\r\n /* Para evitar iteraciones vacias */\r\n if (s[i].equals(\"\")) {\r\n continue;\r\n }\r\n\r\n /* Comienzo de nodo */\r\n if (s[i].startsWith(\"(\")) {\r\n /* Crear nodo y guardar clave */\r\n Node node = new Node();\r\n String key = s[i].replace(\"(\", \"\");\r\n key = key.replace(\")\", \"\");\r\n node.setKey(key);\r\n\r\n /* Incluir a la lista de nodos */\r\n nodes.add(node);\r\n\r\n /* Guardar los hijos */\r\n if (!stack.isEmpty()) {\r\n /* Nodos hijos del arbol */\r\n Node father = stack.pop();\r\n father.addChild(node);\r\n node.setFather(father);\r\n stack.push(father);\r\n }\r\n\r\n /* Meter a la pila */\r\n stack.push(node);\r\n }\r\n\r\n if (s[i].startsWith(\"\\\"\")) {\r\n /* Valor para asignar */\r\n value = s[i].replaceFirst(\"\\\"\", \"\");\r\n isValue = false;\r\n }\r\n\r\n /* Si el valor no ha terminado de leerse */\r\n if (isValue) {\r\n value += \" \" + s[i];\r\n }\r\n\r\n /* Si termina el valor */\r\n if (value.contains(\"\\\"\")) {\r\n value = value.replace(\")\", \"\");\r\n value = value.replace(\"\\\"\", \"\");\r\n\r\n /* Si el valor es un ')' */\r\n if (value.contentEquals(\"/PUNCT\")) {\r\n value = \")\" + value;\r\n }\r\n\r\n insertValue = true;\r\n isValue = false;\r\n } else {\r\n isValue = true;\r\n }\r\n\r\n /* Meter el valor calculado anteriormente */\r\n if (insertValue) {\r\n Node nodoActual = stack.pop();\r\n nodoActual.setValue(value);\r\n stack.push(nodoActual);\r\n insertValue = false;\r\n value = new String();\r\n }\r\n\r\n /* Terminar nodo (pueden ser varios a la vez) sacar de la pila */\r\n if (s[i].endsWith(\")\")) {\r\n int idx = s[i].lastIndexOf(\")\");\r\n int j = 0;\r\n while (s[i].charAt(idx - j) == ')') {\r\n j++;\r\n stack.pop();\r\n }\r\n }\r\n }\r\n\r\n /*\r\n * Guardar el nodo raiz ROOT para comparaciones con la salida (pone ROOT por defecto)\r\n */\r\n Node root = new Node();\r\n root.setKey(\"ROOT\");\r\n root.addChild(nodes.get(0));\r\n nodes.add(0, root);\r\n tree.setRoot(root);\r\n\r\n /* Guardar los nodos del arbol, y contruye el arbol */\r\n tree.setNodes(nodes);\r\n\r\n /* Comprobar si esta bien balanceado (Si no error) */\r\n if (!stack.isEmpty()) {\r\n return null;\r\n }\r\n\r\n return tree;\r\n }", "title": "" }, { "docid": "779ad0800350b29709f951dec8118aa6", "score": "0.42123333", "text": "private List<String> parse(String s){\n int open = 0;\n List<String> res = new ArrayList<>();\n StringBuilder sb = new StringBuilder();\n for(int i=0; i<s.length();++i){\n char c = s.charAt(i);\n if(c=='('){\n ++open;\n }\n else if(c==')'){\n --open;\n }\n if(open==0 && c==' '){\n res.add(sb.toString());\n sb = new StringBuilder();\n }\n else{\n sb.append(c);\n }\n }\n if(sb.length()>0){\n res.add(sb.toString());\n }\n return res;\n }", "title": "" }, { "docid": "2fd2f5bd302adea52af105f2c716b4bd", "score": "0.42100707", "text": "public ItemStack parse(ItemStack item, String name, List<String> lore)\n {\n ItemMeta meta = item.getItemMeta();\n\n meta.setDisplayName(library.getChatFormatter().colorize(name));\n meta.setLore(library.getChatFormatter().colorize(lore));\n\n item.setItemMeta(meta);\n\n return item;\n }", "title": "" }, { "docid": "d332d4c48ea2616160708c5bb15753e3", "score": "0.42069533", "text": "private List<Item> getItems (String itemSection) {\n return Arrays.stream(itemSection.split(\" \"))\n .map(item-> item.substring(1,item.length()-1))\n .map(itemStr-> {\n String [] itemAttributes= itemStr.split(\",\");\n var item= new Item();\n item.setIndex(Short.parseShort(itemAttributes[0]));\n item.setWeight(Double.parseDouble(itemAttributes[1]));\n item.setValue(Double.parseDouble(itemAttributes[2].substring(1)));\n return item;\n }).collect(Collectors.toList());\n\n }", "title": "" }, { "docid": "0ec5671bd6f3d06a56bdc546f4a9dcb3", "score": "0.42063627", "text": "public static FoodItem foodItemFromStrings(String[] stringData) {\n int amount = Integer.parseInt(stringData[1]);\n int catId = Integer.parseInt(stringData[2]);\n\n //find the correct category based on id\n Category foodItemCategory = null;\n for (Category c : mainCategories) {\n boolean found = false;\n\n for (Category t : c.getCategoryBranch()) {\n if (t.getID() == catId) {\n foodItemCategory = t;\n found = true;\n break;\n }\n }\n\n if (found) {\n break;\n }\n }\n\n if (foodItemCategory != null) {\n //rebuild and return the food item\n return new FoodItem(amount, foodItemCategory);\n }\n return null;\n }", "title": "" }, { "docid": "59777600a98476c8608aae48a03e527a", "score": "0.42045668", "text": "@Test\n public void push() {\n MyStack<String> stack = new MyStack<>();\n for (int i = 0; i < 179; i++) {\n stack.push(Integer.toString(i));\n }\n }", "title": "" }, { "docid": "2a438006387b8b710fb723f7cfe0bf5b", "score": "0.41858092", "text": "public static Task parseFromStorage(String task) {\r\n System.out.println(task);\r\n String[] splitTask = task.split(\",\");\r\n System.out.println(splitTask.length);\r\n String taskType = splitTask[0];\r\n\r\n switch (taskType) {\r\n case \"T\":\r\n return new TodoTask(splitTask[2], splitTask[3], splitTask[1].equals(\"1\"));\r\n case \"D\":\r\n return new DeadlineTask(splitTask[2], splitTask[4], splitTask[3], splitTask[1].equals(\"1\"));\r\n case \"E\":\r\n return new EventTask(splitTask[2], splitTask[4], splitTask[3], splitTask[1].equals(\"1\"));\r\n default:\r\n return new Task(\"\");\r\n }\r\n }", "title": "" }, { "docid": "37cb279cf4842a49f642fc46edeaad4c", "score": "0.41854623", "text": "public ItemStack createItemStack(String name, int amount){\n\t\tshort damage = 0;\n\t\tString alias;\n\t\tif(name.contains(\":\")){\n\t\t\tString[] split = name.split(\":\");\n\t\t\talias = split[0];\n\t\t\tif(TacoAPI.getChatUtils().isNum(split[1])){\n\t\t\t\tdamage = (short) Integer.parseInt(split[1]);\n\t\t\t}\n\t\t}else{\n\t\t\talias = name;\n\t\t}\n\t\tMaterial mat = getMaterial(alias);\n\t\tif(mat == null){\n\t\t\tDisplayName dn = DisplayName.getDisplayName(alias);\n\t\t\tif(dn == null) return null;\n\t\t\treturn new ItemStack(dn.getId(), amount, (short) dn.getDamage()); //extra damage at the end of the string will not be applied\n\t\t}else{\n\t\t\treturn new ItemStack(mat, amount, (short) damage);\n\t\t}\n\t}", "title": "" }, { "docid": "9635749b34ebd80607c4bf06ce9e46ae", "score": "0.4183218", "text": "public TreeNode deserialize(String data)\n {\n Queue<String> queue = new LinkedList<>();\n queue.addAll(Arrays.asList(data.split(\" \")));\n\n return deserialize(queue);\n }", "title": "" }, { "docid": "8f32d319fcadfa1c7ce21eefa16ab41d", "score": "0.41827342", "text": "public static Node deSerializeBinaryTree(String str) {\n\t\t// Todo- validate inputStr, array length etc.\n\n\t\tString[] arr = str.split(\",\");\n\t\tint i = 0;\n\n\t\tNode root = new Node(Integer.parseInt(arr[0]), arr[0]);\n\t\tQueue<Node> queue = new LinkedList<>();\n\t\tqueue.add(root);\n\t\ti++;\n\n\t\twhile (!queue.isEmpty()) {\n\n\t\t\tNode r = queue.remove();\n\n\t\t\t// Advance assigning children by 2 e.g. left and right\n\t\t\tr.left = createNode(arr[i++]);\n\t\t\tr.right = createNode(arr[i++]);\n\n\t\t\t// Continue BFS\n\t\t\tif (r.left != null) {\n\t\t\t\tqueue.add(r.left);\n\t\t\t}\n\t\t\tif (r.right != null) {\n\t\t\t\tqueue.add(r.right);\n\t\t\t}\n\n\t\t}\n\n\t\treturn root;\n\t}", "title": "" } ]
d5396780ef2d003d95b5f0ac631364b5
return a random symbol from array
[ { "docid": "65f0a50c9e3b2eb77a74d981d1e6876a", "score": "0.7534631", "text": "public Symbol getRandomSymbol() {\n Collections.shuffle(symbols);\n return symbols.get(0);\n }", "title": "" } ]
[ { "docid": "e9e1ed17f8775be7329d4388828fcaa9", "score": "0.6797696", "text": "public static char randomCipherSymbol() {\n\t\treturn cipherAlphabet.charAt(rand.nextInt(cipherAlphabet.length()));\n\t}", "title": "" }, { "docid": "3ec412dd553fcc9bc74993e5130b1d00", "score": "0.6564797", "text": "public char pickRandom(char[] array) {\n\t\tif (array.length == 0) throw new IllegalArgumentException(\n\t\t\t\t\"Can't pick from an empty array\");\n\t\t\n\t\treturn array[nextInt(array.length)];\n\t}", "title": "" }, { "docid": "3620c287596375cc104b4f6a8e8ae8aa", "score": "0.63723433", "text": "public static String generateArray(String[] arr) {\n assert arr != null;\n assert arr.length != 0;\n String returned;\n int random = new Random().nextInt(arr.length);\n returned = arr[random];\n return returned;\n }", "title": "" }, { "docid": "6a02e6445701c4c99fa53eb2b3a74bcc", "score": "0.6364553", "text": "public static String getRandomStringFrom(String[] array) {\n int random = new Random().nextInt(array.length);\n return array[random];\n }", "title": "" }, { "docid": "5a0a942c7fa6d3adae74dd59bbc6ce2c", "score": "0.6350045", "text": "private char pickChar(char[] chars) {\n\t\treturn chars[random.nextInt(chars.length)];\n\t}", "title": "" }, { "docid": "8804fc35c3d6051763881cb766efe8e5", "score": "0.6345334", "text": "private <T> T random(T[] array) {\n int randomIndex = this.rand.nextInt( array.length );\n return array[randomIndex];\n }", "title": "" }, { "docid": "5720c5fc3ab3db1cc1edbd9d549e8760", "score": "0.6322195", "text": "private String pick(final String[]arr) {\n return arr[random.nextInt(arr.length)];\n }", "title": "" }, { "docid": "7a706f4663c2bf63b4b8c0eb19236919", "score": "0.62629825", "text": "public String getRandomName() {\n\t\tRandom r = new Random();\n\n\t\t// pick name based on length of array\n\n\t\tString animalName = name[r.nextInt(name.length)];\n\t\t// retuurning the name generated by the array\n\t\treturn (animalName);\n\n\t}", "title": "" }, { "docid": "1eeb3fc03fd0b4491dd6196e264915f7", "score": "0.62501115", "text": "public String randomElement( String[] strArray )\n\t{\n\t\treturn strArray[(int)Math.floor(Math.random()*strArray.length)];\n\t}", "title": "" }, { "docid": "153c53554f8aeaafacabc225cbb22efa", "score": "0.6242606", "text": "static void generateRandomArray(int[] arr){\n Random r = new Random();\n for (int i = 0; i < arr.length; ++i) {\n // count the symbol the the number.\n int symbol = r.nextInt(2);\n int absoluteValue = r.nextInt();\n // if symbol is 1, let the number be positive, else,\n // let the number be negative.\n arr[i] = symbol == 1 ? absoluteValue : -absoluteValue;\n }\n }", "title": "" }, { "docid": "d444c004d8f7a9ea39ec720a1ac3237d", "score": "0.62197864", "text": "private final static char getRandomLetter(final char[] alphabet) {\n final Random r = new Random();\n final int index = r.nextInt(alphabet.length);\n return alphabet[index];\n }", "title": "" }, { "docid": "4414c4671b65248ab94355e84b239bb6", "score": "0.6159452", "text": "private static char getRandomSpecialChar() {\r\n\t\tint specialIndex = new Double(Math.random() * SPECIAL_CHARS.length).intValue();\r\n\t\tchar specialChar = SPECIAL_CHARS[specialIndex];\r\n\t\treturn specialChar;\r\n\t}", "title": "" }, { "docid": "cd152e5df61088d270af726df00a37cb", "score": "0.6136718", "text": "private static String codeRand()\n {\n String code = \"\";\n int itemp = 0;\n char rChar;\n for (int i = 0; i < 8; i++)\n {\n itemp = rand(1, 0); //50/50 chance it does a letter or number\n if (itemp == 0)\n {\n itemp = rand(90, 65);\n rChar = (char) itemp;\n code = code + rChar;\n }\n else\n {\n itemp = rand(9, 0);\n code = code + itemp;\n }\n }\n return code;\n }", "title": "" }, { "docid": "6f70b547ee49df9ec4f0ac200cfb5bae", "score": "0.612876", "text": "private String a(Random paramRandom)\r\n/* 124: */ {\r\n/* 125:161 */ return b[paramRandom.nextInt(b.length)];\r\n/* 126: */ }", "title": "" }, { "docid": "1a31cce12feb4767aa453d3b502813eb", "score": "0.6093658", "text": "private String GetRandomLetter()\n {\n int random = GetRandom();\n return this.m_alphabet.GetLatin()[random];\n }", "title": "" }, { "docid": "6dedf83e4222b55fa2b8574592493bde", "score": "0.6082716", "text": "private Code getRandomCode(){\n\t\tint randNum;\n\t\tColors c;\n\t\tCode temp = new Code();\n\t\tfor(int i=0; i<temp.getSize(); i++){\n\t\t\trandNum = (int)(Math.random()*6);\n\t\t\tc = Colors.values()[randNum];\n\t\t\ttemp.set(i, new Peg(c));\n\t\t}\n\n\t\treturn temp;\n\t}", "title": "" }, { "docid": "a3ed64c3f40f91cf7abad782b2203371", "score": "0.6002078", "text": "private String generateSecretCode(){\n String code = \"\";\n Random random = new Random();\n List<String> aux = new ArrayList<String>(MasterMindGame.COLORS);\n\n for(int i = 0; i< MasterMindGame.CODE_LENGTH; i++){\n code += aux.get(random.nextInt(aux.size()));\n }\n return code;\n }", "title": "" }, { "docid": "de91efec382c808964a977bc54cd7cbc", "score": "0.5958856", "text": "public static String PREPS(){\n String[] a = preps;\n int index = (int)(Math.random()*a.length);\n return a[index];\n }", "title": "" }, { "docid": "0d2b9970a591f32f99ab146b7fa86615", "score": "0.5953521", "text": "public String generateGameToken() {\n String possible = \"abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ\";\n String output = \"\";\n\n for(int i = 0; i < 3; i++){\n output += possible.charAt((int)(Math.random() * 52));\n }\n\n\n return output;\n }", "title": "" }, { "docid": "6b8b336302504e2c674e9ff6601cb057", "score": "0.5908294", "text": "public String randomToken() {\n ArrayList<String> keys = new ArrayList<>(this.words.keySet());\n int randSelection = (int) (Math.random() * keys.size());\n return keys.get(randSelection);\n }", "title": "" }, { "docid": "066f605122b4703dc2e5766995a2ef2d", "score": "0.58773726", "text": "public static String ADVS(){\n String[] a = advs;\n int index = (int)(Math.random()*a.length);\n return a[index];\n }", "title": "" }, { "docid": "70124c463d41b54dedda85823e7cc19b", "score": "0.5865264", "text": "public static String getRandomWord(String[] words) {\n Random randomizer = new Random();\n int randInt = randomizer.nextInt(words.length); // upper bound is EXclusive, so if the upper bound is 10, it will only return 9, which is the index for the 10th element in the array\n return words[randInt];\n\n }", "title": "" }, { "docid": "39228ff7c63dd26599c9664924105686", "score": "0.5861506", "text": "public static String VERBS(){\n String[] a = verbs;\n int index = (int)(Math.random()*a.length);\n return a[index];\n }", "title": "" }, { "docid": "932aaf3dca8c9f67eec68f3e79c8a9c9", "score": "0.5844423", "text": "private int randomIndex() {\n\t\tRandom rnd = new Random();\n\t\tint num = rnd.nextInt(passArrStrings.size());\n\t\treturn num;\n\t}", "title": "" }, { "docid": "155d1979c41be0caea8e0ae6819ebb83", "score": "0.5832294", "text": "private char generateAChar() {\n\t\t\n\t\treturn sampleChar.charAt(r.nextInt(sampleChar.length()));\n\t}", "title": "" }, { "docid": "d28f294a7648bd85c048f028b8908922", "score": "0.58311903", "text": "public static char rndChar() {\r\n\tdouble r = Math.random();\r\n\tchar b = (char) (-r * 128 + (1 - r) * 127);\r\n\treturn b;\r\n }", "title": "" }, { "docid": "953d65ab07949f472379beacbe8f69af", "score": "0.5824636", "text": "public String getBrandRandom() {\n //-----------------Get a random brand from carListArray-----------//\n return carListArray.get(getRandomNumber(0, (carListArray.size() - 1)));\n }", "title": "" }, { "docid": "d99b42a6a3d27dae1fb764f2affb0bdc", "score": "0.5806417", "text": "public static String getRandomName() {\n return NAMES.get(RANDOM.nextInt(NAMES.size()));\n }", "title": "" }, { "docid": "68de77b16c55fd6d9ed6e3f3be0ff6b0", "score": "0.58048874", "text": "public int[] scramble(int[] arg)//The scrambled array\r\n {\r\n int[] used = new int[7];//The used array keeps track of what numbers have already been scrambled\r\n int[] returned = new int[7];//The (duh) returned array\r\n for (int k = 0; k < arg.length; k++)\r\n {\r\n int random = (int)(Math.random() * 7);\r\n while (used[random]==1)//While that cell has been used before, a new one is chosen\r\n {\r\n random = (int)(Math.random() * 7);\r\n }\r\n used[random] = 1;//Says that cell has been used before\r\n returned[k] = arg[random];//Makes the current cell equal to the randomly chosen cell\r\n }\r\n return returned;\r\n }", "title": "" }, { "docid": "d8bb66053bc777626f14e4d0fc7d1d67", "score": "0.5799015", "text": "public static String getRandomSuit(){\r\n\t\tRandom rand = new Random();\r\n\t\tint randomNumber = rand.nextInt(4);\r\n\t\treturn suit[randomNumber];\r\n\t}", "title": "" }, { "docid": "b6764eaf0d838727ac02343c5d828d58", "score": "0.57883775", "text": "private String getRandomWord() {\n return words.get((int)(Math.random() * words.size()));\n }", "title": "" }, { "docid": "8d9dbc567dfa7589773f706a9d18dd54", "score": "0.5787786", "text": "public static <T> T sample(T... ary){\n int rand = (int)(ary.length * Math.random());\n return ary[rand];\n }", "title": "" }, { "docid": "7ad0b5142e2268a4a28a90776544bedc", "score": "0.5785013", "text": "public static char[] grabword() {\n\t\tFile dictionary = new File(\"WordsEn.txt\");\n\t\t\t// a text file with 109582 words in it\n\n\t\tint random = (int) (Math.random() * 109582);\n\t\t// grab a random number between 1 and 109582\n\n\t try {\n\t Scanner sc = new Scanner(dictionary);\n\n\t String word = \"\";\n\t for (int i = 0; i < random; i++ )\n\t word = sc.nextLine();\n\n\t sc.close();\n\t return toArray( word );\n\t } \n\t catch (FileNotFoundException e) {\n\t return toArray( \"indignant\" );\n\t }\n\t}", "title": "" }, { "docid": "146c1748a43d8f7e8f48e58d6b3441f1", "score": "0.5779668", "text": "public String generate(String symbol) {\n\t\tif(symbol == null || symbol.length() == 0) {\n\t\t\tthrow new IllegalArgumentException(\"Symbol cannot be null or size 0\");\n\t\t}\n\t\tif(!contains(symbol)) {\n\t\t\treturn symbol;\n\t\t}else {\n\t\t\tString[] choices = gramTerms.get(symbol);\n\t\t\tRandom rand = new Random();\n\t\t\tint randomNumber = rand.nextInt(choices.length);\n\t\t\tString target = (choices[randomNumber]);\n\t\t\tString phrase = \"\";\n for (String s : target.trim().split(\"[ \\t]+\")) {\n\t\t\t\tif(!contains(s)) {\n\t\t\t\t\tphrase += \" \";\n\t\t\t\t}\n \tphrase += generate(s);\n\t\t\t}\n\t\t\treturn phrase;\n\t\t}\n\t}", "title": "" }, { "docid": "0bdba95b5adfb902abb78165a4aa160c", "score": "0.577474", "text": "protected String pickCardName(){\n return names[r.nextInt(names.length)];\n }", "title": "" }, { "docid": "f4da1fa8c535ed8ddd038d025290a2ac", "score": "0.5754764", "text": "public static String[] getRandomString()\n {\n //Values all the values in the enum. \n int randomNumber = new Random().nextInt(values().length); // gives a random number\n // retruns name and description from values (values is the enums array of contens). \n return new String[]{values()[randomNumber].name,values()[randomNumber].description};\n }", "title": "" }, { "docid": "9df6f9064008523a4829f1ba39b21ce3", "score": "0.5746834", "text": "public String[] generateScramble() {\n\t\tscramble = new String[scrambleLength[cubeSize]];\r\n\t\tint r1 = -1;\r\n\t\tint rTemp = -1;\r\n\t\tfor(int i = 0; i < scramble.length; i++) {\r\n\t\t\twhile(r1 == rTemp){\r\n\t\t\t\trTemp = (int)(Math.random()*6);\r\n\t\t\t\tif(rTemp != r1){\r\n\t\t\t\t\tr1 = rTemp;\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tif(cubeSize < 4) {\r\n\t\t\t\tscramble[i] = scrambles1[r1] + scrambles3[(int)(Math.random()*3)];\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\tscramble[i] = scrambles1[r1] + scrambles2[(int)(Math.random()*2)] + scrambles3[(int)(Math.random()*3)];\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn scramble;\r\n\t}", "title": "" }, { "docid": "4fc893c4d5f1b97e54f727d25ee076f3", "score": "0.5733699", "text": "private String randomCode(int len){\n StringBuilder sb = new StringBuilder( len );\n for( int i = 0; i < len; i++ )\n sb.append( AB.charAt( rnd.nextInt(AB.length()) ) );\n return sb.toString();\n }", "title": "" }, { "docid": "498957118758222ed97c95743b35df37", "score": "0.57160807", "text": "public String getRandomName(){\n String[] words = {\"Janus\", \"Karl\", \"Magda\", \"Valerie\", \"Credence\", \"Charity\", \"Mercy\", \"Lux\",\n \"Nessie\", \"Gar\", \"Eliza\", \"Safana\", \"Nell\", \"Riker\", \"Amir\", \"Calen\", \"Ashe\",\n \"Roel\", \"Oliver\", \"Celine\", \"Aveline\", \"Ada\", \"Dinah\", \"Bo\", \"Robb\", \"Edd\", \"Ned\",\n \"Naya\", \"Wynne\", \"Zephyr\", \"Xiaowei\", \"Sunny\", \"Giselle\", \"Robert\", \"Edward\",\n \"Axel\", \"Alex\", \"Sofia\", \"Max\", \"Mars\", \"Chet\", \"Jun\", \"Cassidy\", \"Jack\", \"Zachary\",\n \"Noah\", \"Mason\", \"Alfred\"};\n return words[randomizer.randomIntInRange(0, words.length - 1)];\n }", "title": "" }, { "docid": "029d48e204634357c459b7c35e30c6f3", "score": "0.57120854", "text": "public int getRandom() {\n int idx = rand.nextInt(ar.size());\n return ar.get(idx);\n \n }", "title": "" }, { "docid": "de38dbba6ebab0fd963fb5c817767b8c", "score": "0.5709414", "text": "private String getRandomString() {\n\t\tRandom r = new Random();\n\t\tString randomString = \"\";\n\t\tfor (int i = 0; i < (1 + r.nextInt(19)); i++) {\n\t\t\tint charInt = r.nextInt(24);\n\t\t\trandomString += (char) (97 + charInt);\n\t\t}\n\t\treturn randomString;\n\t}", "title": "" }, { "docid": "3fe655f172a91e368b37440b2be519f0", "score": "0.56985885", "text": "public static String random() {\n Random generator = new Random();\n StringBuilder randomStringBuilder = new StringBuilder();\n int randomLength = generator.nextInt(15);\n char tempChar;\n for (int i = 0; i < randomLength; i++){\n tempChar = (char) (generator.nextInt(96) + 32);\n randomStringBuilder.append(tempChar);\n }\n return randomStringBuilder.toString();\n }", "title": "" }, { "docid": "21594c636e4506e90adcc0e7a1e4d21b", "score": "0.568695", "text": "private static char getRandomLetter() {\r\n\t\tint index = new Double(Math.random() * LETTERS.length).intValue();\r\n\t\tchar randChar = LETTERS[index];\r\n\t\treturn (index % MODULUS == 0) ? Character.toUpperCase(randChar) : randChar;\r\n\t}", "title": "" }, { "docid": "b3d74e78aee45bffef966af3cc2c117f", "score": "0.5668199", "text": "public static char[] shuffle(char[] array) {\n\t\tRandom rand = new Random();\n\t\tchar[] out = array;\n\t\tfor(int i=0;i<out.length;i++){\n\t\t\tint randIndex=rand.nextInt(array.length);\n\t\t\tchar temp =out[i];\n\t\t\tout[i]=out[randIndex];\n\t\t\tout[randIndex]=temp;\n\t\t}\n\t\treturn out;\n\t}", "title": "" }, { "docid": "5a5369730615a24737f6957e30143fc7", "score": "0.56622624", "text": "public static String generationRandomHeader() {\n char[] sb = new char[30];\n for (int i = 0; i < 30; i++) {\n sb[i] = S[random.nextInt(S.length - 1)].charAt(0);\n }\n return String.valueOf(sb);\n }", "title": "" }, { "docid": "969bac496babb8f22e457ee7951a6be6", "score": "0.5655797", "text": "public static Character pickRandCharacter(ArrayList<Character> c){\n Random rand = new Random();\n int i = rand.nextInt(c.size());\n return c.get(i);\n }", "title": "" }, { "docid": "eb36ac96ce68f08555a9895cc454f744", "score": "0.5653383", "text": "Random getRandom();", "title": "" }, { "docid": "971c7e9355379365dc270e711f925d84", "score": "0.5613427", "text": "private String getRandomToken() {\n\t\tString token = String.valueOf(Math.random());\n\t\tif(token.length()>size){\n\t\t\ttoken = token.substring(0, size);\n\t\t} else if (token.length() < size) {\n\t\t\ttoken.concat(String.valueOf(Math.random()).substring(0, token.length() - size));\n\t\t}\n\t\treturn token;\n\t}", "title": "" }, { "docid": "8c0037a12396d4d1f848a4879513b210", "score": "0.5610347", "text": "public <T> T pickRandom(T[] array) {\n\t\tif (array.length == 0) return null;\n\t\t\n\t\treturn array[nextInt(array.length)];\n\t}", "title": "" }, { "docid": "fe62d3f772dbf9cd0b858932519a3047", "score": "0.5609471", "text": "public static String ADJS(){\n String[] a = adjs;\n int index = (int)(Math.random()*a.length);\n return a[index];\n }", "title": "" }, { "docid": "639def2307f6dde28c5ab454cbc2aa12", "score": "0.5606977", "text": "public String getRandomColor(){\n String[] words = {\"red\", \"blue\", \"green\", \"yellow\", \"orange\", \"purple\", \"magenta\", \"lavender\",\n \"black\", \"white\", \"pink\", \"silver\", \"brown\", \"gray\", \"indigo\", \"navy\", \"lime green\",\n \"baby blue\", \"neon pink\", \"electric blue\", \"bright yellow\", \"maroon\", \"crimson\",\n \"scarlet\", \"lilac\", \"violet\", \"fuschia\", \"marigold\", \"ochre\", \"sunflower yellow\",\n \"shamrock green\", \"ash gray\", \"vivid red\", \"vivid blue\", \"vivid green\", \"vivid purple\",\n \"light blue\", \"light green\", \"light orange\", \"light yellow\", \"soft yellow\", \"soft pink\",\n \"pitch black\", \"blinding white\"};\n return words[randomizer.randomIntInRange(0, words.length - 1)];\n }", "title": "" }, { "docid": "043364d86a75539a23102163c3cf7d31", "score": "0.56056106", "text": "public static String rndString() {\r\n char[] c = RChars.rndCharArray();\r\n return new String(c);\r\n\r\n }", "title": "" }, { "docid": "1895da50e415835e72632aac4aab7e8b", "score": "0.5601663", "text": "public int getRandomColor(int[] colors){\r\n Random r = new Random();\r\n rColor = r.nextInt((6 - 0) + 1) + 0;\r\n return colors[rColor];\r\n}", "title": "" }, { "docid": "6efe82f092670dd400bacb1c24315126", "score": "0.5588234", "text": "static String randomItem(String[] listOfStrings){\n\t\treturn listOfStrings[(int)(Math.random() * listOfStrings.length)];\n\t}", "title": "" }, { "docid": "51521bf15bf071c1b09b85e9e6c3166a", "score": "0.558688", "text": "public String generateRandomKeys() throws Exception\n {\n Random random = new Random((new Date()).getTime());\n char[] values = {'a','b','c','d','e','f','g','h','i','j',\n 'k','l','m','n','o','p','q','r','s','t',\n 'u','v','w','x','y','z','0','1','2','3',\n '4','5','6','7','8','9'};\n String out = \"\";\n for (int i=0;i<10;i++) {\n // System.out.println(\"before createdby6\");\n int idx=random.nextInt(values.length);\n out += values[idx];\n }\n return out.toUpperCase();\n }", "title": "" }, { "docid": "8a1f5ee7c7b3af1180a253b7fde4e920", "score": "0.5585187", "text": "public static String GetRandomPairs() {\n String fruitRand = fruits[(int) (Math.random() * fruits.length)];\n String colorRand = colors[(int) (Math.random() * colors.length)];\n \n String display = colorRand + \" \" + fruitRand;\n return display;\n }", "title": "" }, { "docid": "0bb9c8ca17fc39784c5a1e56d64b3ddb", "score": "0.5583427", "text": "public static char[] rndCharArray() {\r\n\tint length = (int) (Integer.MAX_VALUE * Math.random());\r\n\tif (length > 100) {\r\n\t length = 100;\r\n\t}\r\n\tchar[] bs = new char[length];\r\n\tfor (int i = 0; i < bs.length; i++) {\r\n\t bs[i] = (char) rndByte();\r\n\t}\r\n\r\n\treturn bs;\r\n }", "title": "" }, { "docid": "99506b2b03796d4eb3a45fe1ff3c6a84", "score": "0.5582826", "text": "public String randomChromosome()\n\t{\n\t\n\t\t/*\n\t\t//output file to contain weights\n\t Writer writer = new BufferedWriter(new OutputStreamWriter(new FileOutputStream(\"Chromosome_weights.txt\"), \"utf-8\"));\n\t writer.write(\"Chromosome\\tLength\\tWeight\t\\n\");\n\t */\n\t\t\t\t\t\n\t\tRandom rand = new Random();\n\t int num = rand.nextInt(al.size());\t\t\t//generate a new random int with the maximum being the array length\n\t String chromosome = (String) al.get(num);\t//return chromosome name present at random index of array\t\t\n\t System.out.println(chromosome);\n\t /*\n\t System.out.println(\"Whole array in randomChromosome(): \");\n\t for (int i= 0; i < al.size(); i++)\n\t {\n\t \tSystem.out.println(al.get(i));\n\t }\n\t */\n\t \n\t\treturn chromosome;\n\t}", "title": "" }, { "docid": "76cd0316dbeb49ca6f89b09fe149bf2a", "score": "0.5576464", "text": "private static byte generateRandomByte() {\n\n final byte[] mapByteArray = {0x30, 0x31, 0x32, 0x33, 0x34, 0x35, 0x36, 0x37, 0x38, 0x39,\n 0x41, 0x42, 0x43, 0x44, 0x45, 0x46, 0x47, 0x48, 0x49, 0x4a, 0x4b, 0x4c, 0x4d,\n 0x4e, 0x4f, 0x50, 0x51, 0x52, 0x53, 0x54, 0x55, 0x56, 0x57, 0x58, 0x59, 0x5a,\n 0x61, 0x62, 0x63, 0x64, 0x65, 0x66, 0x67, 0x68, 0x69, 0x6a, 0x6b, 0x6c, 0x6d,\n 0x6e, 0x6f, 0x70, 0x71, 0x72, 0x73, 0x74, 0x75, 0x76, 0x77, 0x78, 0x79, 0x7a\n };\n\n final Random random = new Random();\n\n return mapByteArray[random.nextInt(62)];\n }", "title": "" }, { "docid": "9eef25ffac3c8bc9023db6aad1f995b0", "score": "0.55691427", "text": "public static String magic8Ball() {\n // Declare rand operator and initialize max and\n // answer array\n Random rand = new Random();\n int max = 4;\n String [] answer = new String[4];\n\n // Populate answer array\n answer[0] = \"Yes.\";\n answer[1] = \"No.\";\n answer[2] = \"Maybe.\";\n answer[3] = \"Ask again later.\";\n\n // Do some magic\n int magic = rand.nextInt(max);\n\n // Return the string at the index of the random\n // number\n return answer[magic];\n }", "title": "" }, { "docid": "d6be756a63df18798de568205ece0676", "score": "0.5549873", "text": "static String rString(){\n\tString result = \"\";\n\tchar output = 'a';\n\tRandom rand = new Random();\n\tint x = rand.nextInt(10 - 5) + 5;\n\tint n = 0;\n\tfor(int i=0; i < x; i++){\n\t\t//random ascii value;\n\t\tn = rand.nextInt(122-97) + 97;\n\t\toutput=(char)n;\n\t\tresult += output;\n\t}\n\treturn result;\n}", "title": "" }, { "docid": "97b876fbf14d2d3316722a4a4c8b07f3", "score": "0.55479366", "text": "public String getRandomSmallAnimal(){\n String[] words = {\"hare\", \"rabbit\", \"chicken\", \"duck\", \"goose\", \"frog\", \"snake\", \"magpie\", \"swallow\",\n \"hummingbird\", \"squirrel\", \"rooster\", \"hen\", \"duckling\", \"toad\", \"owl\", \"skunk\",\n \"raccoon\", \"chipmunk\", \"mouse\", \"hedgehog\", \"porcupine\", \"armadillo\", \"dog\", \"cat\"};\n return words[randomizer.randomIntInRange(0, words.length - 1)];\n }", "title": "" }, { "docid": "417a7fd805ffed206a61fdb76ec9332f", "score": "0.5536821", "text": "private String newRandWord() {\n\t\t\n\t\tRandom newrandomWord= new Random();\n\t\tString alphanums = \"0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ\";\n\t\tString randomWord = \"\";\n\t\t\n\t\tfor(int i = 0; i < 14; i++) {\n\t\t\tint newRandWord= (int)newrandomWord.nextInt(36);\n\t\t\trandomWord += alphanums.charAt(newRandWord);\n\t\t}\n\t\t\n\t\treturn randomWord;\n\t\t\n}", "title": "" }, { "docid": "c33016de1232aa6ee7d397ef185a9eaf", "score": "0.5526711", "text": "private String getRandomWord() {\n\t\tString str = \"\";\n\t\t\n\t\ttry {\n\t\t\tScanner scanner = new Scanner(new File(\"ParaKarelLexicon.txt\"));\n\t\t\tArrayList<String> wordList = new ArrayList<>();\n\t\t\t\n\t\t\twhile (scanner.hasNextLine()) {\n\t\t\t\twordList.add(scanner.nextLine());\n\t\t\t}\n\t\t\tscanner.close();\n\t\t\tint wordCount = wordList.size();\n\t\t\tint index = rg.nextInt(wordCount);\n\t\t\tstr = wordList.get(index);\n\t\t}catch(IOException ex) {\n\t\t\tprintln(\"The error is: \" + ex);\n\t\t}\n\t\treturn str;\n\t\t\n\t}", "title": "" }, { "docid": "20f9bd141d8714d5f669d39c9b457092", "score": "0.5521002", "text": "public String randomItem() {\n\t\tRandom rand = new Random();\n\t\treturn items[rand.nextInt(3)];\n\t}", "title": "" }, { "docid": "a307fee4b1b2cdf2a719db1d24b70f6b", "score": "0.5516815", "text": "private String getStatement(){\r\n String statement;\r\n String[] statements = {\"This is the lamest use of a custom tag\", \r\n \"This is sooo lame\",\r\n \"Wickedly Smart - NOT\",\r\n \"How lame is this\", \r\n \"How come the tall girl in the book is always so negative\"};\r\n int random = (int) (Math.random() * statements.length);\r\n statement = statements[random];\r\n return statement;\r\n }", "title": "" }, { "docid": "710d0104dadf55e2c63f4175f60e23e9", "score": "0.5514191", "text": "private String[] selectRandomWords() {\n String[] r = new String[AMOUNT_RANDOM_WORDS];\n\n\n for (int i = 0; i < r.length; i++) {\n String RANDOM_WORD_ID = \"random_word\";\n\n r[i] = getString(getResources().getIdentifier(\n RANDOM_WORD_ID + (new Random().nextInt(TOTAL_RANDOM_WORD_COUNT) + 1),\n \"string\", getPackageName())\n );\n\n }\n\n return r;\n }", "title": "" }, { "docid": "7ae00424d6a5837d1c1d78608318bcfd", "score": "0.5514011", "text": "public abstract char symbol();", "title": "" }, { "docid": "912dd5b2669456833aa7473d62bf0492", "score": "0.5505169", "text": "private String randomFrom(ArrayList<String> source){\n int index = myRandom.nextInt(source.size());\n return source.get(index);\n \n }", "title": "" }, { "docid": "8e5dd788e91f7b83123e9e8fa43dc724", "score": "0.55029505", "text": "private static char randomAlpha() {\n int i = (int) (Math.random() * 52);\n\n if (i > 25)\n return (char) (97 + i - 26);\n else\n return (char) (65 + i);\n }", "title": "" }, { "docid": "16594d4563fd1565583b988ef31aae87", "score": "0.5498143", "text": "private static Character getRandom(List<Character> list) {\n int random = (int) (Math.random() * list.size());\n return list.get(random);\n }", "title": "" }, { "docid": "716e78bd69a4231067dd84979e324606", "score": "0.54968697", "text": "public Item sample() {\n return arr[StdRandom.uniform(size)];\n }", "title": "" }, { "docid": "f5bd6d1f2e9e49145a237b66f174c737", "score": "0.5492585", "text": "public static String magicEightBall(){\n String[] str = new String[]{\"It is certain\", \"It is decidedly so\", \"Without a Doubt\", \"Yes definitely\", \"You may rely on it\",\n \"As I see it, yes\", \"Most likely\", \"Outlook good\", \"Yes\", \"Signs point to yes\", \"Reply hazy try again\",\n \"Ask again later\", \"Better not tell you now\", \"Cannot predict now\", \"Concentrate and ask again\",\n \"Don't count on it\", \"My reply is no\", \"My sources say no\", \"Outlook not so good\", \"Very doubtful\"};\n\n // Generate a random number between 1 and 20\n int number = 0;\n Random rnd = new Random();\n number = rnd.nextInt(20)+1;\n\n // Get a random selection from the responses\n return str[number];\n\n }", "title": "" }, { "docid": "e72b2798108035636dfba0bc26004207", "score": "0.54893273", "text": "private String randomLetter(){\n Random r = new Random();\n String randLetter = Character.toString((char) (r.nextInt(26) + 'a')).toUpperCase();\n return randLetter;\n }", "title": "" }, { "docid": "93ee30a5094a68fc868c40f44d2ad605", "score": "0.54861486", "text": "private String getRandString(){\n String chars = \"abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890\";\n StringBuilder sb = new StringBuilder();\n Random rand = new Random();\n while (sb.length() < 6){\n int i = (int) (rand.nextFloat() * chars.length());\n sb.append(chars.charAt(i));\n }\n return sb.toString();\n }", "title": "" }, { "docid": "22d05a3fa99748c7a2b0cea9b8f517be", "score": "0.54838914", "text": "public static char randomChar() {\n char c = 0;\n\n if (NumberHelper.random(0, 2) == 0) {\n c = (char) NumberHelper.random(0x40, 0x5c);\n } else {\n c = (char) NumberHelper.random(0x60, 0x7b);\n }\n\n return c;\n }", "title": "" }, { "docid": "4c6fe24d03523bdd832181fc104d38cd", "score": "0.5475649", "text": "public String Randomize() {\n\t\treturn String.valueOf(getRandom().nextInt());\n\t}", "title": "" }, { "docid": "e75d2191cf250b880faa3aee55445ebe", "score": "0.54740936", "text": "public String scramble(){\n int wordLength = answer.length();\n\n char[] characters = answer.toCharArray();\n for(int i = 0; i < wordLength; i++){\n int randomIndex = (int)(Math.random() * characters.length);\n char temp = characters[i];\n characters[i] = characters[randomIndex];\n characters[randomIndex] = temp;\n }\n return new String(characters);\n }", "title": "" }, { "docid": "c2cde1af4dd9f127a2783c78de32e2dd", "score": "0.5469921", "text": "public static Company getRandomCompanyFrom(Company[] array) {\n int random = new Random().nextInt(array.length);\n return array[random];\n }", "title": "" }, { "docid": "ddb482044a9add4e8d10212cf7873fda", "score": "0.546961", "text": "public String generateToken() {\n\t\tRandom rand = new Random();\n\t\tString token = \"\";\n\n\t\tfor (int i = 0; i < 6; i++) {\n\t\t\ttoken += rand.nextInt(10);\n\t\t}\n\n\t\treturn token;\n\t}", "title": "" }, { "docid": "ba2b579f9c168eed6bbe0d03faca16b1", "score": "0.5464585", "text": "private String getRandomWord() {\n\t\tArrayList<String> words = new ArrayList<String>();\n\t\ttry {\n\t\t\tFile myFile = new File(\"ShorterLexicon.txt\");\n\t\t\tFileInputStream fileReader = new FileInputStream(myFile);\n\t\t\tInputStreamReader isr = new InputStreamReader(fileReader, \"utf-8\");\n\t\t\t\n\t\t\tBufferedReader reader = new BufferedReader(isr);\n\t\t\t\n\t\t\tString line = null;\n\t\t\twhile((line = reader.readLine()) != null) {\n\t\t\t\twords.add(line);\n\t\t\t}\n\t\t\treader.close();\n\t\t} catch (Exception ex) {\n\t\t\tex.printStackTrace();\n\t\t}\n\t\tint index = rg.nextInt(10);\n\t\treturn words.get(index);\n//\t\tif(index == 0) return \"BUOY\";\n//\t\tif(index == 1) return \"COMPUTER\";\n//\t\tif(index == 2) return \"CONNOISSEUR\";\n//\t\tif(index == 3) return \"DEHYDRATE\";\n//\t\tif(index == 4) return \"FUZZY\";\n//\t\tif(index == 5) return \"HUBBUB\";\n//\t\tif(index == 6) return \"KEYHOLE\";\n//\t\tif(index == 7) return \"QUAGMIRE\";\n//\t\tif(index == 8) return \"SLITHER\";\n//\t\tif(index == 9) return \"ZIRCON\";\n//\t\tthrow new ErrorException(\"getWord: Illegal index\");\n\t}", "title": "" }, { "docid": "defc563b78c1846621924f4c64f0f33e", "score": "0.5454546", "text": "private void randQuote(){\n item_index = new Random().nextInt(quotes.length);\n }", "title": "" }, { "docid": "47ba94e05712327ed69628619354d8d6", "score": "0.5454308", "text": "public static Weather random(){\r\n int random = Utils.getRandom(Weather.values().length);\r\n return Weather.values()[random];\r\n }", "title": "" }, { "docid": "fdfcc168379275f8821ddf85e714dada", "score": "0.5442491", "text": "public static int getRandomEntry(int... array)\n\t{\n\t\treturn array[Rnd.get(array.length)];\n\t}", "title": "" }, { "docid": "b13635a295b805fed25b6c23972d32a5", "score": "0.5438939", "text": "public String generateBarcode() {\n int number = 0;\n String barcode = \"\";\n\n for(int i=0; i<10; i++) {\n String toadd = Integer.toString((int)Math.round(Math.random()*9));\n\n barcode = barcode.concat(toadd);\n }\n\n return barcode;\n }", "title": "" }, { "docid": "e0646ef5b128f73bd7f4671390acfe82", "score": "0.5412323", "text": "public int getRandom() {\n int x = random.nextInt(index);\n return map2.get(x);\n }", "title": "" }, { "docid": "8cf0fd96e53c386cfa4f2719107adee5", "score": "0.5410527", "text": "public String getRandomObstacleType(String[] types){\n return types[random.nextInt(types.length)];\n }", "title": "" }, { "docid": "58c37267a9b0e4e43e3f7fd640d86b51", "score": "0.5393036", "text": "public Item sample() {\n /* choose a random item */\n int i = (int) (Math.random() * size);\n\n return array[i];\n }", "title": "" }, { "docid": "4807047658d428465f23530b0b723ece", "score": "0.53892934", "text": "public String randomprocess() {\r\n // println(\"randomprocess\");\r\n String name;\r\n int random;\r\n random = getBiasedRand();\r\n if (charcpuindex > 9) {\r\n charcpuindex = 0;\r\n }\r\n\r\n name = alphabet[charcpuindex] + \"\" + random;\r\n charcpuindex++;\r\n return name;\r\n }", "title": "" }, { "docid": "f5755afce1ca773b7169a8317ed6944f", "score": "0.5378303", "text": "@RequiresApi(api = Build.VERSION_CODES.LOLLIPOP)\n static char[] shuffleArray(char[] ar)\n {\n Random rnd = ThreadLocalRandom.current();\n for (int i = ar.length - 1; i > 0; i--)\n {\n int index = rnd.nextInt(i + 1);\n // Simple swap\n char a = ar[index];\n ar[index] = ar[i];\n ar[i] = a;\n }\n\n return ar;\n }", "title": "" }, { "docid": "35a86cde2a69b0100e8c7845f4c5e9b5", "score": "0.53693724", "text": "static void printArray(int[] array){\n for (int i = 0; i < array.length; i++) {\n array[i] = new Random().nextInt(50);\n System.out.print(array[i]+\" \");\n }\n System.out.println();\n\n }", "title": "" }, { "docid": "98877b9558b8da2d543655d36c92f37f", "score": "0.5367377", "text": "public static int getRandomItem(int[] array) {\r\n\t\treturn array[Misc.getRandom(array.length - 1)];\r\n\t}", "title": "" }, { "docid": "3f70bc09cd5f5e12bf1989b5e2fadd6a", "score": "0.53663105", "text": "public static String generateRandomChars() {\n String s = \"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890\";\n int length = 19;\n StringBuilder sb = new StringBuilder();\n Random random = new Random();\n for (int i = 0; i < length; i++) {\n sb.append(s.charAt(random.nextInt(s\n .length())));\n }\n\n return sb.toString();\n }", "title": "" }, { "docid": "6cd0178ea40c20b29a4129b77fbc9680", "score": "0.53638345", "text": "public String textgenerator(int x){\n\t\tLong.toHexString(Double.doubleToLongBits(Math.random())); \n\t\tUUID.randomUUID().toString(); \n\t\tRandomStringUtils.randomAlphabetic(x);\n\t\treturn toString();\n\t}", "title": "" }, { "docid": "6345e453ff28237aaa6860390c6aa48e", "score": "0.5354271", "text": "private char generateLetter(){\n if (random.nextBoolean()){\n //big letters\n return (char) (random.nextInt((90 - 65) + 1) + 65);\n } else{\n //small letters\n return (char) (random.nextInt((122 - 97) + 1) + 97);\n }\n }", "title": "" }, { "docid": "a1576e08085c1464ba6e25353d7e92b1", "score": "0.5353932", "text": "String getSymbol();", "title": "" }, { "docid": "a1576e08085c1464ba6e25353d7e92b1", "score": "0.5353932", "text": "String getSymbol();", "title": "" }, { "docid": "a1576e08085c1464ba6e25353d7e92b1", "score": "0.5353932", "text": "String getSymbol();", "title": "" }, { "docid": "a1576e08085c1464ba6e25353d7e92b1", "score": "0.5353932", "text": "String getSymbol();", "title": "" }, { "docid": "f96e69eec6ea0345b40dacf68cf2a86b", "score": "0.5353633", "text": "public char randomMove() {\n\t\tRandom rand = new Random();\n\t\t\n\t\treturn random[rand.nextInt(3)];\n\t}", "title": "" } ]
6247d81aa0fc3909032ebaccc13a35e4
handles the decision the player has made by choosing "cards"
[ { "docid": "ebce4406646f45f9b8a148a6c72e46ba", "score": "0.7369671", "text": "void onChooseCards(SortedBag<Card> cards);", "title": "" } ]
[ { "docid": "8e948f07d95455936c82ded636002e9c", "score": "0.72176653", "text": "@FXML\n void handleOkChoice()\n {\n if(selectedCard != 2)\n {\n errorSelectedResources.setText(\"Select 2 Leader Card\");\n }\n else\n {\n List<Integer> toDiscard = new ArrayList<>();\n if(card1) toDiscard.add(1);\n if(card2) toDiscard.add(2);\n if(card3) toDiscard.add(3);\n if(card4) toDiscard.add(4);\n clientState = new InitialLeaderChoiceGUI(client, toDiscard.get(0), toDiscard.get(1));\n clientState.manageUserInteraction();\n }\n showWaitingSceneForFirstPlayer();\n }", "title": "" }, { "docid": "ed3783a216602ea047ce29537e5a6bc2", "score": "0.7121495", "text": "@Override\n\tpublic Deck chooseCard(Card roundCard) {\n\t\tDeck choosed = new Deck();\n\t\tisSaidUno = false;\n\t\tSystem.out.println(\"===== Turn of \" + getPlayerName() + \" =====\");\n\t\t\n\t\tusableDeck = super.checkPlayAbleCard(roundCard);\n\t\tSystem.out.println(\" Now you have \" + getPlayerDeck().toText());\n\t\tSystem.out.println(\" But now you can use \" + usableDeck.toChooseText());\n\t\tSystem.out.println(\" Below there, You can type anything that you want to say or do\");\n\t\tSystem.out.print(\" suggestion: Type \\\"pass\\\" if you want to pass or TYPE \\\"NUMBER\\\"[] BEFORE CARD THAT YOU WANT TO USE saperate by space:\");\n\t\twhile (!correctCard) {\n\t\t\t\n\t\t\t\n//\t\t\tif(playerMessage.substring(0, 2).equals(\"uno\") || playerMessage.substring(0, 2).equals(\"Uno\")){\n//\t\t\t\tplayerMessage = playerMessage.substring(3, playerMessage.length());\n//\t\t\t\tisSaidUno = true;\n//\t\t\t}\n\n\t\t\ttry {\n\t\t\t\tplayerMessage = scanp.nextLine();\n\t\t\t\tSystem.out.println(\" System: get Message \"+playerMessage); //blank spc\n\t\t\t\t\n\t\t\t\tif(playerMessage.trim().equals(\"pass\")){\n\t\t\t\t\tcorrectCard= true;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tcardStrNum = playerMessage.split(\" \");\n\t\t\t\tfor (String n : cardStrNum) {\n\t\t\t\t\tif(Integer.parseInt(n) <= usableDeck.countCard()){\n\t\t\t\t\t\t//System.out.println(n + \" \" + usableDeck.getCardAt(Integer.parseInt(n)-1).toString() + \" \" + choosed.countCard());\n\t\t\t\t\t\tif(choosed.countCard() == 0){\n\t\t\t\t\t\t\tSystem.out.println(\"elif\");\n\t\t\t\t\t\t\tchoosed.addOneCard(usableDeck.getCardAt(Integer.parseInt(n)-1));\n\t\t\t\t\t\t\tusableDeck.removeOneCard(usableDeck.getCardAt(Integer.parseInt(n)-1));\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if(isCardCanStack(usableDeck.getCardAt(Integer.parseInt(n)-1), choosed.getCardAt(0)) && choosed.countCard() > 1){\n\t\t\t\t\t\t\tSystem.out.println(\"if\");\n\t\t\t\t\t\t\tchoosed.addOneCard(usableDeck.getCardAt(Integer.parseInt(n)-1));\n\t\t\t\t\t\t\tusableDeck.removeOneCard(usableDeck.getCardAt(Integer.parseInt(n)-1));\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse{\n\t\t\t\t\t\t\tthrow new CardCantStackException();\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\tthrow new IndexOutOfBoundsException();\n\t\t\t\t\t}\n\t\t\t\t\tcorrectCard = true;\n\t\t\t\t}\t\t\t\t\n\t\t\t} catch (NumberFormatException e){\n\t\t\t\tSystem.err.println(\" Please enter number\");\n\t\t\t\tSystem.out.print(\" Please type again. TYPE \\\"NUMBER\\\"[] BEFORE CARD THAT YOU WANT TO USE saperate by space:\");\n\t\t\t} catch (PatternSyntaxException e) {\n\t\t\t\tSystem.err.println(\" Wrong Syntax\");\n\t\t\t\tSystem.out.print(\" Please type again. TYPE \\\"NUMBER\\\"[] BEFORE CARD THAT YOU WANT TO USE saperate by space:\");\n\t\t\t} catch (IndexOutOfBoundsException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t\tSystem.err.println(\" You have only \" + usableDeck.countCard() + \" card Please type in range 1-\"+usableDeck.countCard());\n\t\t\t\tSystem.out.println(\" You have \" + usableDeck.toChooseText() + \" Choose in this range\");\n\t\t\t\tSystem.out.print(\" Please type again. TYPE \\\"NUMBER\\\"[] BEFORE CARD THAT YOU WANT TO USE saperate by space:\");\n\t\t\t} catch (CardCantStackException e) {\n\t\t\t\tSystem.err.println(\" Using stack Card must same type. and Number card must to same number\");\n\t\t\t\tSystem.out.println(\" You have \" + usableDeck.toChooseText() + \" Choose in this range\");\n\t\t\t\tSystem.out.print(\" Please type again. TYPE \\\"NUMBER\\\"[] BEFORE CARD THAT YOU WANT TO USE saperate by space:\");\n\t\t\t}\n\t\t}\n\t\tchoosed.printAllCardInDeck();\n\t\tSystem.out.println(\"===== End turn \" + getPlayerName() + \" =====\");\n\t\treturn choosed;\n\t}", "title": "" }, { "docid": "8150dd318af5383c299674f72b2e1155", "score": "0.7052019", "text": "private void compareCards() {\n\t\t\t\n\t\t}", "title": "" }, { "docid": "09c820e92db925ebcb9b55a5ccb50f1d", "score": "0.7051226", "text": "protected abstract int selectCard();", "title": "" }, { "docid": "493778a0d294e3d9336eee36b1dba321", "score": "0.6991579", "text": "private void playerPlay(){\n\t\tArrayList<Card> playerHand = new ArrayList<>();//create a new arraylist for keeping track of the players cards\n\t\tplayerHand = askForHit(player.getPlayersCards(), true);//First run through the 3 option menu that has double down as an option\n\t\t//FROM HERE DOWN IS ONLY RUN IF THE PLAYER CHOOSES TO HIT FROM THE PREVIOUS askForHit. IF HE CHOOSES TO STAND OR DOUBLE DOWN\n\t\t//GAMEPLAY ENDS HERE AND IS SENT TO THE DEALER (dealerPlay()) TO FINISH OUT BECAUSE NO MORE CARDS ARE NEEDED FOR THE PLAYER.\n\t\tplayerHand = askForHit(playerHand);//Take the value from the time through the first menu. \n\t\tdealerPlay(totalCards(playerHand));//If the player hasn't busted, send the players total to dealerPlay to run through the dealer's algorithm and return a winner.\t\n\t}", "title": "" }, { "docid": "c1f22226cbd2c41ed07b41022adf66dc", "score": "0.6937138", "text": "public void showCards(List<Card> cards) {\n\t\tguessAccuse.getContentPane().removeAll();\n\t\tguessAccuse.repaint();\n\t\tguessAccuse.setLayout(new FlowLayout(FlowLayout.CENTER, 10, 10));\n\n\t\tButtonGroup cardGroup = new ButtonGroup();\n\t\tfor (Card c: cards) {\n\t\t\tImageIcon icon = new ImageIcon(c.getCardImage());\n\t\t\tJRadioButton card = new JRadioButton();\n\t\t\tcard.addActionListener(new ActionListener() {\n\t\t\t\t@Override\n\t\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t \tString[] options = {\"YES\", \"NO\"};\n\t\t\t \tJPanel panel = new JPanel();\n\t\t\t \tJLabel label = new JLabel(\"Are you sure you want to pick \"+c);\n\t\t\t \tpanel.add(label);\n\t\t\t \tint selection = JOptionPane.showOptionDialog(null, panel, \"Confirm Decision\", JOptionPane.DEFAULT_OPTION, \n\t\t\t \tJOptionPane.QUESTION_MESSAGE, null, options, options[0]);\n\t\t\t \tif (selection == 0) {\n\t\t\t\t\t\tGUI.this.notify(c, Event.SET_CHOSEN);\n\t\t\t\t\t\tguessAccuse.setVisible(false);\n\t\t\t\t\t\tGUI.this.notify(Event.CHOOSE);\n\t\t\t \t} else return;\n\t\t\t\t}\n\t\t\t});\n\t\t\tcard.setIcon(icon);\n\t\t\tcardGroup.add(card);\n\t\t\tguessAccuse.add(card);\n\t\t}\n\n\t\tguessAccuse.pack();\n\t\tguessAccuse.setVisible(true);\n }", "title": "" }, { "docid": "ae28185e498670035d76453c3cf63c4c", "score": "0.69127035", "text": "private ArrayList<Card> askForHit(ArrayList<Card> cards){\n\t\tArrayList<Card> newCards = new ArrayList<>();\n\t\tint playerNextMove = 0;\n\t\tdo{ \n\t\t\tplayerNextMove = hitMenu();\n\t\t\tif(playerNextMove == 1){//Player chooses to stand.\n\t\t\t\tmessageToPlayer(\"Player stands at \" + totalCards(cards));\n\t\t\t}else{\n\t\t\t\tmessageToPlayer(\"New card: \");\n\t\t\t\tdealPlayerOneCard();//Gets one card from the deck and adds it to the players cards(original array)\n\t\t\t\tdisplayCards(cards.get(cards.size()-1));\n\t\t\t\tmessageToPlayer(\"Total of all cards: \" + totalCards(cards));//Help the player by showing the updated total each time a new card is added.\n\t\t\t\t//This is the primary place to check if a player has gone over 21 (bust).\n\t\t\t\tif(totalCards(cards) > 21){\n\t\t\t\t\tint ace = containsAce(cards);//If the are over 21, check that they have an ace. Ace holds the NUMBER of aces they have.\n\t\t\t\t\tif(ace == 0 || ace == oldAces){//They \n\t\t\t\t\t\tmessageToPlayer(\"Bust! Game Over.\");\n\t\t\t\t\t\tplayerNextMove = 1;//Set to one so we exit the do/while loop.\n\t\t\t\t\t\tif(player.getWinnings() > 0){//Check that that player has enough money to make another bet before prompting.\n\t\t\t\t\t\t\tchar playAgain = getYorNAnswer(\"Play again? Y/N\");\n\t\t\t\t\t\t\tif(playAgain == 'Y'){\n\t\t\t\t\t\t\t\tplayer.setCurrentWager(0);//Reset the player's current wager before restarting. Total \"winnings\" stays the same.\n\t\t\t\t\t\t\t\tplayer.removePlayersCards();//Clear out the players cards to start again.\n\t\t\t\t\t\t\t\tdealersCards.clear();//Clear out the dealers cards to start again.\n\t\t\t\t\t\t\t\tplayGame(player);\n\t\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\t\tmessageToPlayer(\"Thanks for playing. You have \" + player.getWinnings() + \" dollars.\");\n\t\t\t\t\t\t\t\tSystem.exit(0);//Close game.\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}else if (ace>0 && ace> oldAces){//They do have ace(s) and there are more than there were the last time we checked\n\t\t\t\t\t\t\tcards.add(new Card(Suit.SPADES, 0, -10));//This card doesn't display, but is added to the deck to update the value of an ace from 11 to 1.)\n\t\t\t\t\t\t\toldAces++;//Increment the number of old aces for every new one we find.\n\t\t\t\t\tmessageToPlayer(\"Hard total: \" + totalCards(cards));\n\t\t\t\t\t}else{//They are over 21 and they don't have an ace. They bust.\n\t\t\t\t\t\tif(player.getWinnings() > 0){//Check that that player has enough money to make another bet before prompting.\n\t\t\t\t\t\t\tchar playAgain = getYorNAnswer(\"Play again? Y/N\");\n\t\t\t\t\t\t\tif(playAgain == 'Y'){\n\t\t\t\t\t\t\t\tplayer.setCurrentWager(0);//Reset the player's current wager before restarting. Total \"winnings\" stays the same.\n\t\t\t\t\t\t\t\tplayer.removePlayersCards();//Clear out the players cards to start again.\n\t\t\t\t\t\t\t\tdealersCards.clear();//Clear out the dealers cards to start again.\n\t\t\t\t\t\t\t\tplayGame(player);\n\t\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\t\tmessageToPlayer(\"Thanks for playing. You have \" + player.getWinnings() + \" dollars.\");\n\t\t\t\t\t\t\t\tSystem.exit(0);//Close game.\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\tmessageToPlayer(\"I'm sorry, but you don't have enough money.\");\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tmessageToPlayer(\"Game OVER!\");\n\t\t\t\t\t\t\t\tSystem.exit(0);\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\t\n\t\t\t}\n\t\t}while(playerNextMove != 1);//run through the menu once and then continue until they select stand (option 1)\n\t\tnewCards = cards;\n\t\toldAces = 0;//Since the player has now stood, their hand is over. Set old aces back to 0 for the next hand.\n\t\treturn newCards;\n\t}", "title": "" }, { "docid": "f505df2ccddb10029706216ea4c8317f", "score": "0.6892852", "text": "public void checkCards() {\n\t\t\n\t\tfor(int i = 0; i < hands[currentPlayer].size(); i++) {\n\t\t\t\n\t\t\tif(hands[currentPlayer].get(i)+1 == board[players[currentPlayer].getX()][players[currentPlayer].getY()].getItem()) {\n\t\t\t\t\n\t\t\t\tcardImages[currentPlayer].get(i).setIcon(iconLogo);\n\t\t\t\tcardImages[currentPlayer].remove(i);\n\t\t\t\thands[currentPlayer].remove(i);\n\t\t\t\tunhighlightTiles();\n\t\t\t\thighlightTiles();\n\t\t\t\tAudioPlayer.playAudio(\"audio/cardCollected.wav\");\n\t\t\t\tbreak;\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t}\n\t\t\n\t\tif(hands[currentPlayer].isEmpty()) {\n\t\t\t\n\t\t\tAudioPlayer.playAudio(\"audio/gameOver.wav\");\n\t\t\tJOptionPane.showMessageDialog(null, \"Player \" + (currentPlayer+1) + \" have finished all their cards!!!\");\n\t\t\tplayers[currentPlayer].setActive(false);\n\t\t\tWinner.add(currentPlayer);\n\t\t\tendTurn();\n\t\t\t\n\t\t}\n\t\t\n\t\t//When their is 3 winner, that means that game is completely finished and it will stops and create a new state\n\t\tif (Winner.size() ==3) {\n\t\t\t\n\t\t\tgameEnded = true;\n\t\t\t//since the winner class has only the size of 3, add whatever that is missing and they will be in last place. \n\t\t\tif (!Winner.contains(1)) {\n\t\t\t\tWinner.add(1);\n\t\t\t}else if (!Winner.contains(2)) {\n\t\t\t\tWinner.add(2);\n\t\t\t}else if (!Winner.contains(3)) {\n\t\t\t\tWinner.add(3);\n\t\t\t}else if (!Winner.contains(4)) {\n\t\t\t\tWinner.add(4);\n\t\t\t}\n\t\t\t\n\t\t\tJOptionPane.showMessageDialog(null, \"Game finished!!!\");\n\t\t\ttry {\n\t\t\t\tThread.sleep(2000);\n\t\t\t} catch (InterruptedException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\t//opens the last frame\n\t\t\tautoMoveTimer.stop();\n\t\t\tplayerShiftTimer.stop();\n\t\t\ttileShiftTimer.stop();\n\t\t\tMusicPlayer.stopMusic();\n\t\t\tnew EndState(Winner);\n\t\t\tthis.dispose();\n\t\t\t\n\t\t}\n\t\t\n\t}", "title": "" }, { "docid": "4586fbe0bfc1f9e7d5947b60904ed5ba", "score": "0.687307", "text": "public abstract Card selectCard();", "title": "" }, { "docid": "4e165258bca9ff0968dc0ffef14b4eee", "score": "0.6794095", "text": "public void usedCard() {\n try {\n PlayConceptsProblemsRoundPage pageConcepts = new PlayConceptsProblemsRoundPage();\n\n if (pageConcepts.validMove()) {\n String username = getSessionBean1().getUsername();\n\n if (getTableRowGroup1().getSelectedRowsCount() > 0) {\n\n RowKey[] selectedRowKeys = getTableRowGroup1().getSelectedRowKeys();\n\n int rowId = Integer.parseInt(selectedRowKeys[0].getRowId());\n\n Card card = cardsToDiscard.get(rowId);\n\n int typeCard = card.getCardtype().getCardtypeId();\n\n //validamos que a carta seja carta conceito\n if (typeCard == 1) {\n PlayerController playercontroller = new PlayerController();\n Player player = playercontroller.getPlayer(username);\n\n PlayersproblemsController playerproblemscontroller = new PlayersproblemsController();\n\n //o conceito é submetido para o jogador\n if (playerproblemscontroller.addPlayerConceptCard(player, card)) {\n PlayerCardController playercardcontroller = new PlayerCardController();\n\n //a carta é apagada da lista de cartas conceito\n if (playercardcontroller.deletePlayerCard(card)) {\n\n //atualizar dados na tela\n loadCardsByPlayerToDiscard();\n\n FacesMessage fm = new FacesMessage(\"You can use the card on the individual board\");\n fm.setSeverity(FacesMessage.SEVERITY_ERROR);\n FacesContext.getCurrentInstance().addMessage(null, fm);\n\n }\n }\n\n } else {\n\n FacesMessage fm = new FacesMessage(\"You can use only concept cards\");\n fm.setSeverity(FacesMessage.SEVERITY_ERROR);\n FacesContext.getCurrentInstance().addMessage(null, fm);\n }\n\n }\n }\n\n } catch (Exception ex) {\n ex.printStackTrace();\n FacesMessage fm = new FacesMessage(ex.toString());\n fm.setSeverity(FacesMessage.SEVERITY_ERROR);\n FacesContext.getCurrentInstance().addMessage(null, fm);\n }\n }", "title": "" }, { "docid": "ff624be007d2c04a7dcebabee2d6247e", "score": "0.67226946", "text": "@Override\n public void onClick(View v) {\n Random rand = new Random();\n if(myState.getPlayerID() == this.playerNum) {\n if (v.getId() == R.id.confirmSelection) {\n if (myState.getPlayerID() == this.playerNum) {\n final TTRHumanPlayer me = this;\n if (myState.getDestinationCardsSelected()) {\n\n Deck tempDeck = new Deck(\"temp\");\n myState.getDestinationCards().moveTopCardTo(tempDeck, myState.getDestinationCards());\n myState.getDestinationCards().moveTopCardTo(tempDeck, myState.getDestinationCards());\n myState.getDestinationCards().moveTopCardTo(tempDeck, myState.getDestinationCards());\n\n displayDestinationPopup(tempDeck, false);\n } else if (myState.getTrackSpot() != -1 &&\n myState.getTrackModeSelected() &&\n myState.getTracks().get(myState.getTrackSpot()).getTrackColor().equals(\"Gray\")) {\n Deck tempDeck = myState.getPlayerTrainDecks()[playerNum];\n displayCardSelectionPopup(tempDeck, myState.getTracks().get(myState.getTrackSpot()));\n soundArray.play(rand.nextInt(3) + 1, myActivity.leftVolume - .2f,\n myActivity.rightVolume - .2f, 2, 0, 1.0f);\n soundArray.autoResume();\n } else if (myState.getTrackSpot() != -1 &&\n myState.getTrackModeSelected() &&\n myState.getTrainColorCount(\"Rainbow\", 0) != 0) {\n Deck tempDeck = myState.getPlayerTrainDecks()[playerNum];\n if(!myState.getTracks2().get(myState.getTrackSpot()).getTrackColor().equals(\"Blank\")) {\n if(selected2[myState.getTrackSpot()]){\n displayLocomotiveSelectionPopup(tempDeck, myState.getTracks2().get(myState.getTrackSpot()));\n }\n else {\n displayLocomotiveSelectionPopup(tempDeck, myState.getTracks().get(myState.getTrackSpot()));\n }\n }\n else{\n displayLocomotiveSelectionPopup(tempDeck, myState.getTracks().get(myState.getTrackSpot()));\n }\n soundArray.play(rand.nextInt(3)+1, myActivity.leftVolume - .2f,\n myActivity.rightVolume - .2f, 1, 0, 1.0f);\n\n } else {\n game.sendAction(new ConfirmSelectionAction(me, myState.getSelectedTrackColor(), 0));\n }\n }\n } else if (v.getId() == R.id.Train1) {\n game.sendAction(new DrawUpCardAction(this, 0));\n } else if (v.getId() == R.id.Train2) {\n game.sendAction(new DrawUpCardAction(this, 1));\n } else if (v.getId() == R.id.Train3) {\n game.sendAction(new DrawUpCardAction(this, 2));\n } else if (v.getId() == R.id.Train4) {\n game.sendAction(new DrawUpCardAction(this, 3));\n } else if (v.getId() == R.id.Train5) {\n game.sendAction(new DrawUpCardAction(this, 4));\n } else if (v.getId() == R.id.DrawTrainStack) {\n game.sendAction(new DrawDownCardAction(this));\n } else if (v.getId() == R.id.DrawTicketStack) {\n game.sendAction(new DrawDestinationCardAction(this));\n } else if (v.getId() == R.id.drawCardCheckBox) {\n if (myState.getTrackModeSelected() && !myState.getCardModeSelected()) {\n game.sendAction(new ChangeModeAction(this));\n } else {\n this.cardCheck.setChecked(true);\n }\n } else if (v.getId() == R.id.drawTrainCheckBox) {\n if (myState.getCardModeSelected() && !myState.getTrackModeSelected()) {\n game.sendAction(new ChangeModeAction(this));\n } else {\n this.trainCheck.setChecked(true);\n }\n } else if (v.getId() == R.id.viewDestinationCards) {\n Deck tempDeck = myState.getPlayerDestinationDecks()[playerNum];\n displayDestinationViewDialog(tempDeck);\n }\n }\n }", "title": "" }, { "docid": "12b5a76ba993a4f19d8dd07f12a3fe8a", "score": "0.6664076", "text": "@Override\r\n\tpublic void decision(int playerIndex, List<Card> playersHand,\r\n\t\t\tCard dealersUpCard, List<PlayerAction> allowedActions,\r\n\t\t\tPlayerAction action) {\n\t\t\r\n\t}", "title": "" }, { "docid": "cc3b4f7e2160e174b20ddc7c914c00fb", "score": "0.66565675", "text": "public void card(){\n\t\t\t\tRandom random = new Random();\n\t\t\t\tint r1 = random.nextInt(4);\n\t\t\t\tint r2 = random.nextInt(3);\n\t\t\t\t//Determine the value of the card\n\t\t\t\tif( r1 == 0){\n\t\t\t\t\tString c = \"King\";\n\t\t\t\t\ta = c;\n\t\t\t\t}\n\t\t\t\telse if( r1 == 1){\n\t\t\t\t\tString c = \"Queen\";\n\t\t\t\t\ta = c;\n\t\t\t\t}\n\t\t\t\telse if( r1 == 2){\n\t\t\t\t\tString c = \"Ace\";\n\t\t\t\t\ta = c;\n\t\t\t\t}\n\t\t\t\telse if( r1 == 3){\n\t\t\t\t\tString c = \"Jack\";\n\t\t\t\t\ta = c;\n\t\t\t\t}\n\t\t\t\telse if( r1 == 4){\n\t\t\t\t\tint e = random.nextInt(10)%(10-0+1)+2;\n\t\t\t\t\tString c = String.valueOf(e);\n\t\t\t\t\ta = c;\n\t\t\t\t}\n\t\t\t\t//Determine the type of the card\n\t\t\t\tif( r2 == 0 && r1 != 3 ){\n\t\t\t\t\tString d = \"Clubs\";\n\t\t\t\t\tb = d;\n\t\t\t\t}\n\t\t\t\telse if( r2 == 1 && r1 != 3){\n\t\t\t\t\tString d = \"Hearts\";\n\t\t\t\t\tb = d;\n\t\t\t\t}\n\t\t\t\telse if( r2 == 2 && r1 != 3){\n\t\t\t\t\tString d = \"Spades\";\n\t\t\t\t\tb = d;\n\t\t\t\t}\n\t\t\t\telse if( r2 == 3 && r1 != 3){\n\t\t\t\t\tString d = \"Diamond\";\n\t\t\t\t\tb = d;\n\t\t\t\t}\n\t\t\t\t//Display the card\n\t\t\t\tSystem.out.println(\"The card you picked is \"+a+\" of \"+b);\n\t\t\n\t}", "title": "" }, { "docid": "e9886fe344b187687fda1c3eb26e9716", "score": "0.6650517", "text": "@Override\r\n\tpublic void actionPerformed(ActionEvent e) {\r\n\t\ttry {\r\n\t\t\tif (e.getSource() == this.finishTurnButton) {\r\n\t\t\t\t\r\n\t\t\t\t\tMinervaGUI.getEngine().finishTurn();\r\n\t\t\t\t\r\n\t\t\t\tthis.gamePanel.unmarkAll();\r\n\t\t\t} else if (e.getSource() == this.allocateButton) {\r\n\t\t\t\tMinervaGUI.getEngine().setCurrentPlayerState(\r\n\t\t\t\t\t\tPlayerState.ALLOCATE_ARMIES);\r\n\t\t\t\tthis.gamePanel.unmarkAll();\r\n\t\t\t} else if (e.getSource() == this.cardButton) {\r\n\t\t\t\tMinervaGUI.getEngine().setCurrentPlayerState(\r\n\t\t\t\t\t\tPlayerState.RELEASE_CARDS);\r\n\t\t\t\tthis.gamePanel.unmarkAll();\r\n\t\t\t} else if (e.getSource() == this.attackButton) {\r\n\t\t\t\tMinervaGUI.getEngine().setCurrentPlayerState(\r\n\t\t\t\t\t\tPlayerState.ATTACK);\r\n\t\t\t\tthis.gamePanel.unmarkAll();\r\n\t\t\t} else if (e.getSource() == this.moveButton) {\r\n\t\t\t\tMinervaGUI.getEngine().setCurrentPlayerState(\r\n\t\t\t\t\t\tPlayerState.MOVE);\r\n\t\t\t\tthis.gamePanel.unmarkAll();\r\n\t\t\t} else if (e.getSource() == this.buttonTurnIn) {\r\n\t\r\n\t\t\t\tif (this.cardList.getSelectedIndices().length == 1) {\r\n\t\t\t\t\tthis.gamePanel.TurnCardIn(MinervaGUI.getEngine().getClientPlayer()\r\n\t\t\t\t\t\t\t.getCountryCards()\r\n\t\t\t\t\t\t\t.get(this.cardList.getSelectedIndex()));\r\n\t\t\t\t} else if (this.cardList.getSelectedIndices().length == 3) {\r\n\t\t\t\t\tVector<CountryCard> series = new Vector<CountryCard>();\r\n\t\t\t\t\tfor (int i = 0; i < 3; i++) {\r\n\t\t\t\t\t\tseries.add(MinervaGUI.getEngine().getClientPlayer()\r\n\t\t\t\t\t\t\t\t.getCountryCards()\r\n\t\t\t\t\t\t\t\t.get(this.cardList.getSelectedIndices()[i]));\r\n\t\t\t\t\t}\r\n\t\t\t\t\tthis.gamePanel.TurnSeriesIn(series);\r\n\t\t\t\t} else {\r\n\t\t\t\t\tMMessageBox.error(GAME_PANEL_CARDS_SELECT_CARD);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t} catch (DataAccessException e1) {\r\n\t\t\tMMessageBox.error(e1);\r\n\t\t}\r\n\t\tthis.gamePanel.updatePanel();\r\n\t}", "title": "" }, { "docid": "5be8e79cfade0376557812a91a036a5d", "score": "0.66095114", "text": "private ArrayList<Card> askForHit(ArrayList<Card> cards, String split){\n\t\tArrayList<Card> newCards = new ArrayList<>();\n\t\tint playerNextMove = 0;\n\t\tdo{ \n\t\t\tplayerNextMove = hitMenu();\n\t\t\tif(playerNextMove == 1){//Player chooses to stand.\n\t\t\t\tmessageToPlayer(\"Player stands at \" + totalCards(cards));\n\t\t\t}else{\n\t\t\t\tmessageToPlayer(\"New card: \");\n\t\t\t\tdealPlayerOneCard();//Gets one card from the deck and adds it to the players cards(original array)\n\t\t\t\tif(split == \"split\"){//This checks to see if the ArrayList used came from a split, in which case the ArrayList is different than playersCards.\n\t\t\t\t\tcards.add(player.getPlayersCards().get((player.getPlayersCards().size())-1));//Grab the last card in the players original array list(which is the one just added) and add it to the new array.\n\t\t\t\t}\n\t\t\t\tdisplayCards(cards.get(cards.size()-1));\n\t\t\t\tmessageToPlayer(\"Total of all cards: \" + totalCards(cards));//Help the player by showing the updated total each time a new card is added.\n\t\t\t\t//This is the primary place to check if a player has gone over 21 (bust).\n\t\t\t\tif(totalCards(cards) > 21){\n\t\t\t\t\tint ace = containsAce(cards);//If the are over 21, check that they have an ace. Ace holds the NUMBER of aces they have.\n\t\t\t\t\tif(ace == 0 || ace == oldAces){//They \n\t\t\t\t\t\tmessageToPlayer(\"Bust! Game Over.\");\n\t\t\t\t\t\tplayerNextMove = 1;//Set to one so we exit the do/while loop.\n\t\t\t\t\t}else if (ace>0 && ace> oldAces){//They do have ace(s) and there are more than there were the last time we checked.\n\t\t\t\t\t\t\tcards.add(new Card(Suit.SPADES, 0, -10));//This card doesn't display, but is added to the deck to update the value of an ace from 11 to 1.)\n\t\t\t\t\t\t\toldAces++;//Increment the number of old aces for every new one we find.\n\t\t\t\t\t\t\tmessageToPlayer(\"Hard total: \" + totalCards(cards));\n\t\t\t\t\t}\n\t\t\t\t}\t\n\t\t\t}\n\t\t}while(playerNextMove != 1);//run through the menu once and then continue until they select stand (option 1)\n\t\tnewCards = cards;\n\t\toldAces = 0;//Since the player has now stood, their hand is over. Set old aces back to 0 for the next hand.\n\t\treturn newCards;\n\t}", "title": "" }, { "docid": "984e85f280abd855310a46e23ae36be5", "score": "0.6573343", "text": "private void playCard() {\n\t\tfor (int i = 0; i < playerDeck.inHand.size(); i++) {\n\t\t\tif (inHandBoxes[i][1] == 1\n\t\t\t\t\t&& !playerDeck.notPlayable.contains(playerDeck.inHand\n\t\t\t\t\t\t\t.get(i))) {\n\t\t\t\tif (playerDeck.getHandCard(i).getSpecial() == 2) {\n\t\t\t\t\tint tableSize = playerDeck.onTable.size();\n\t\t\t\t\tfor (int a = 0; a < tableSize; a++) {\n\t\t\t\t\t\tplayerDeck.onTable.get(a).buffDefense(1);\n\t\t\t\t\t}\n\t\t\t\t} else if (playerDeck.getHandCard(i).getSpecial() == 3) {\n\t\t\t\t\tint tableSize = playerDeck.onTable.size();\n\t\t\t\t\tfor (int b = 0; b < tableSize; b++) {\n\t\t\t\t\t\tplayerDeck.onTable.get(b).buffAttack(1);\n\t\t\t\t\t}\n\t\t\t\t} else if (playerDeck.getHandCard(i).getSpecial() == 4) {\n\t\t\t\t\tint tableSize = playerDeck.onTable.size();\n\t\t\t\t\tint extraAttack = 0;\n\t\t\t\t\tfor (int d = 0; d < tableSize; d++) {\n\t\t\t\t\t\tif (playerDeck.onTable.get(d).getSpecial() == 1) {\n\t\t\t\t\t\t\textraAttack += 1;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tplayerDeck.getHandCard(i).buffAttack(extraAttack);\n\t\t\t\t\tfor (int e = 0; e < enemyDeck.onTable.size(); e++){\n\t\t\t\t\t\tenemyDeck.onTable.get(e).debuffDefense(playerDeck.getHandCard(i).getAttack());\n\t\t\t\t\t}\n\n\t\t\t\t}\n\t\t\t\tint cost = playerDeck.getHandCard(i).getManaCost();\n\t\t\t\tplayerDeck.cardPlay(i);\n\t\t\t\tPlayer.setMana(Player.getMana() - cost);\n\t\t\t\tclearSelected();\n\t\t\t}\n\n\t\t}\n\t}", "title": "" }, { "docid": "1390b59962ebbc2d282b583fd8f458d7", "score": "0.65158075", "text": "@FXML\n\tprivate void checkTrade(ActionEvent event) {\n\t\texchange.setDisable(false);\n\t\ttext.setText(null);\n\t\tList<Card> selectedCards = card.chooseCards(playerOwnedCards, checkBox);\n\n\t\tif (selectedCards.size() == 3) {\n\t\t\tboolean flag = card.isTradePossible(selectedCards);\n\n\t\t\tif (flag) {\n\t\t\t\tcard.cardsToBeTraded(selectedCards);\n\t\t\t\tGameUpdateWindow.exitWindow(exchange);\n\t\t\t} else {\n\t\t\t\ttext.setText(\"This Combination is not Valid\");\n\t\t\t\texchange.setDisable(false);\n\t\t\t\treturn;\n\t\t\t}\n\t\t} else {\n\t\t\ttext.setText(\"Select only 3 Cards\");\n\t\t\treturn;\n\t\t}\n\t}", "title": "" }, { "docid": "e093fd37f7c433fba0d4019285785f3a", "score": "0.64990276", "text": "@Override\n public void handleClick(MouseEvent event)\n {\n Deck deck = getDeck();\n \n if (deck.isEmpty()){\n \n if ((PMGameDriver.tableau1.isEmpty() == true) &&\n (PMGameDriver.tableau2.isEmpty() == true) &&\n (PMGameDriver.tableau3.isEmpty() == true) &&\n (PMGameDriver.tableau4.isEmpty() == true))\n {\n PMGameDriver.setStatus(\"You win!\");\n return;\n }\n\n if(PMGameDriver.tableau1.isEmpty() == false){\n while(PMGameDriver.tableau1.isEmpty() == false){\n Card cardBack = PMGameDriver.tableau1.removeCard();\n cardBack.flip();\n deck.add(cardBack);\n }\n }\n if(PMGameDriver.tableau2.isEmpty() == false){\n while(PMGameDriver.tableau2.isEmpty() == false){\n Card cardBack = PMGameDriver.tableau2.removeCard();\n cardBack.flip();\n deck.add(cardBack);\n }\n }\n if(PMGameDriver.tableau3.isEmpty() == false){\n while(PMGameDriver.tableau3.isEmpty() == false){\n Card cardBack = PMGameDriver.tableau3.removeCard();\n cardBack.flip();\n deck.add(cardBack);\n }\n }\n if(PMGameDriver.tableau4.isEmpty() == false){\n while(PMGameDriver.tableau4.isEmpty() == false){\n Card cardBack = PMGameDriver.tableau4.removeCard();\n cardBack.flip();\n deck.add(cardBack);\n }\n }\n \n }\n \n else{\n \n Card top1 = deck.deal();\n top1.flip();\n PMGameDriver.tableau1.addCard(top1);\n \n Card top2 = deck.deal();\n top2.flip();\n PMGameDriver.tableau2.addCard(top2);\n \n Card top3 = deck.deal();\n top3.flip();\n PMGameDriver.tableau3.addCard(top3);\n \n Card top4 = deck.deal();\n top4.flip();\n PMGameDriver.tableau4.addCard(top4);\n \n if((top1.getRank() == top2.getRank()) &&\n (top2.getRank() == top3.getRank()) && \n (top3.getRank() == top4.getRank())){\n PMGameDriver.tableau1.getDeck().deal();\n PMGameDriver.tableau2.getDeck().deal();\n PMGameDriver.tableau3.getDeck().deal();\n PMGameDriver.tableau4.getDeck().deal();\n }\n }\n\n }", "title": "" }, { "docid": "7af13c183293d31d679c3513bc96dab8", "score": "0.64949507", "text": "public void doTurn() {\n //check if finished\n boolean finished = true;\n for (Player player : players) {\n showBlockedSlots(player);\n if (!player.getCards().isEmpty()) continue;\n finished = false;\n }\n\n if (finished) continueTurn();\n\n else {\n for (Player player : players) {\n if (player.getCards().isEmpty()) {\n if (player.getPowerDown() == 1)\n cardPhaseButtons.chooseCards(-1, player, true);\n else\n cardPhaseButtons.chooseCards(player.getRobot().getHealth() - 1, player, false);\n\n break;\n }\n }\n }\n }", "title": "" }, { "docid": "319bf8bc6f13f77033db576d2abe8f2e", "score": "0.6445267", "text": "public void set_player_deck(){\n if(drawResult == 0){\r\n players.get(0).copy_deck(deckOne);\r\n players.get(1).copy_deck(deckTwo);\r\n }\r\n else{\r\n players.get(0).copy_deck(deckTwo);\r\n players.get(1).copy_deck(deckOne);\r\n } \r\n players.get(0).shuffle_deck();\r\n players.get(1).shuffle_deck();\r\n System.out.println(\"Player \" + drawResult + \" gets the corn deck~\");\r\n System.out.println(\"Player \" + (1 - drawResult) + \" gets the sand deck~\");\r\n }", "title": "" }, { "docid": "c8d3a0ecce4f4a1726ea70ddc3c03563", "score": "0.64342743", "text": "private void init_choosing() \n\t{\n\t\tplayercount=6;\n\t\tdifficulty= GameDifficulty.HERO;\n\t\t/*\n\t\tboard[0][5].setAmbulance(true);\t//oben\n\t\tboard[0][6].setAmbulance(true);\n\t\t\n\t\tboard[3][9].setAmbulance(true); //rechts\n\t\tboard[4][9].setAmbulance(true);\n\t\tboard[7][3].setAmbulance(true); //unten\n\t\tboard[7][4].setAmbulance(true);\n\t\t*/\n\t\tboard[3][0].setAmbulance(true);\t//links\n\t\tboard[4][0].setAmbulance(true);\n\t\t\n\t\t\n\t\tboard[0][7].setFiretruck(true); //oben\n\t\tboard[0][8].setFiretruck(true);\n\t\t/*\n\t\tboard[5][9].setFiretruck(true); //rechts\n\t\tboard[6][9].setFiretruck(true);\n\t\tboard[7][1].setFiretruck(true); //unten\n\t\tboard[7][2].setFiretruck(true);\n\t\tboard[1][0].setFiretruck(true); //links\n\t\tboard[2][0].setFiretruck(true);\n\t\t*/\n\t\tsetPlayer(0,SpecialistType.RETTUNGSSANITAETER, PlayerColor.GREEN);\n\t\tsetPlayer(1,SpecialistType.RETTUNGSSPEZIALIST, PlayerColor.WHITE);\n\t\tsetPlayer(2,SpecialistType.SPEZIALIST_MIT_WAERMEBILDKAMERA, PlayerColor.RED);\n\t\tsetPlayer(3,SpecialistType.ALLESKOENNER, PlayerColor.YELLOW);\n\t\tsetPlayer(4,SpecialistType.GEFAHRSTOFFSPEZIALIST, PlayerColor.BLUE);\n\t\tsetPlayer(5,SpecialistType.LOESCHSCHAUMSPEZIALIST, PlayerColor.ORANGE);\n\t\tstartGame();\n\t\t\n\t}", "title": "" }, { "docid": "fb44c5fcb931d0ba35afa9d44e5c4a9d", "score": "0.6430594", "text": "@Override\n public void pickFaceUpCard(int index) {\n System.out.println(\"pick face up card called on cards \" + index);\n if (cpf.isMyTurn() && !requestExecuting && cpf.isTrainCardTurn()) {\n requestExecuting = true;\n TrainCard card = null;\n switch (index) {\n case 0:\n card = trainCardDrawerView.getCard0();\n trainCardDrawerView.setCard0(null);\n break;\n case 1:\n card = trainCardDrawerView.getCard1();\n trainCardDrawerView.setCard1(null);\n break;\n case 2:\n card = trainCardDrawerView.getCard2();\n trainCardDrawerView.setCard2(null);\n break;\n case 3:\n card = trainCardDrawerView.getCard3();\n trainCardDrawerView.setCard3(null);\n break;\n case 4:\n card = trainCardDrawerView.getCard4();\n trainCardDrawerView.setCard4(null);\n break;\n }\n if (card != null) {\n pickFaceUpCardRequest pickFaceUpCardRequest = new pickFaceUpCardRequest();\n pickFaceUpCardRequest.execute(card);\n }\n return;\n }\n if (requestExecuting) {\n trainCardDrawerView.displayToast(\"Waiting for server...\");\n } else if (!cpf.isTrainCardTurn()) {\n trainCardDrawerView.displayToast(\"Destination Cards Already Drawn, Please Select your Destinations\");\n } else {\n trainCardDrawerView.displayToast(\"It's not your turn\");\n }\n }", "title": "" }, { "docid": "a19c5f74688b7daec4304bd31e0f85dd", "score": "0.64250624", "text": "public void actionPerformed(ActionEvent e) {\n \r\n score.setVisible(false);\r\n home.setVisible(false);\r\n content.setVisible(true);\r\n setContentPane(content); \r\n \r\n //set allows to yes to have the player have only 1 option to take a card from the deck \r\n allow=\"yes\";\r\n discardAllow=\"no\";\r\n allowB=\"yes\";\r\n \r\n// a1.setVisible(false);\r\n// a2.setVisible(false);\r\n// a3.setVisible(false);\r\n// a4.setVisible(false);\r\n// a5.setVisible(false);\r\n// a6.setVisible(false);\r\n// \r\n// b1.setVisible(false);\r\n// b2.setVisible(false);\r\n// b3.setVisible(false);\r\n// b4.setVisible(false);\r\n// b5.setVisible(false);\r\n// b6.setVisible(false);\r\n// deckCard.setVisible(false);\r\n \r\n \r\n \r\n//set Discard pile to nothing so you cant switch with discard pile \r\n discardPileSwitch.setIcon(null);\r\n \r\n //set all of the values in the arrays to 0 \r\n for(int i = 0; i< deck.length; i++) //go through loop while 'i' is less then the length of the array \r\n deck[i] = 0; //set each value from index 0 to 1 less then the length of the array to '0'\r\n for(int i = 0; i< usedCards.length; i++)\r\n usedCards[i] = 0;\r\n for(int i = 0; i< deckCardArray.length; i++)\r\n deckCardArray[i] = 0;\r\n for(int i = 0; i< playerHand1.length; i++)\r\n playerHand1[i] = 0;\r\n for(int i = 0; i< playerHand2.length; i++)\r\n playerHand2[i] = 0;\r\n \r\n \r\n player2Name.setBounds(640, 5, 97, 148);\r\n player2Name.setFont(new Font(\"SansSerif\", Font.BOLD,22));\r\n \r\n player1Name.setBounds(25, 5, 97, 148);\r\n player1Name.setFont(new Font(\"SansSerif\", Font.BOLD,22));\r\n \r\n //show button to start game \r\n start.setVisible(true);\r\n start();\r\n //reset the turn counter to 0\r\n turn = 0;\r\n message.setText(\"Player 1 must switch with a deck card\");\r\n //reset the score \r\n dis.setText(\"\");\r\n dis2.setText(\"\");\r\n goToScore.setVisible(false);\r\n \r\n }", "title": "" }, { "docid": "9f22150a1cb2cf5263d67d3ff2ee1c16", "score": "0.6423747", "text": "public void actionPerformed(ActionEvent e)\n {\n // clears play areas so cards dont keep adding on\n table.clearPlayArea();\n table.clearComputerHand();\n table.clearPlayerHand();\n\n // pass index of selected card to play and remove from hand\n playerCard = highCardGame.playCard(0, cardIndex);\n // call computer logic function and play returned hand\n computerCard = getComputerPlay(highCardGame, playerCard);\n\n // compares card values, declares winner in announcementBox and stores\n // won cards in appropriate winnings array(in Hand object)\n if (playerCard.compareTo(computerCard) == 1)\n {\n new AnnouncementBox(\"You win this hand!\");\n playerWinnings.takeCard(playerCard);\n playerWinnings.takeCard(computerCard);\n }\n else if (playerCard.compareTo(computerCard) == -1)\n {\n new AnnouncementBox(\"Computer wins this hand\");\n computerWinnings.takeCard(playerCard);\n computerWinnings.takeCard(computerCard);\n }\n\n // update card table with played cards in center and reduced hands\n table.addPlayPanel(playerCard, computerCard);\n table.addHandPanels(cards, computerHand, playerHand, highCardGame,\n playerWinnings, computerWinnings);\n table.revalidate();\n table.repaint();\n\n // when all cards have been played, announcementBox declares final\n // winner\n if (cards == 0)\n {\n if (playerWinnings.getNumCards() > computerWinnings.getNumCards())\n {\n new AnnouncementBox(\"You won the game!\");\n }\n else if (playerWinnings.getNumCards() < computerWinnings.getNumCards())\n {\n new AnnouncementBox(\"Sorry, you lost.\");\n\n }\n else\n {\n new AnnouncementBox(\"It's a tie!\");\n }\n }\n }", "title": "" }, { "docid": "4ec83fac5ddb5cece856282f31e2136c", "score": "0.64207846", "text": "public void drawChance(Player player){\r\n\t\tRandom randInt = new Random();\r\n\t\t//Selects the chance card to draw\r\n\r\n\t\tswitch (randInt.nextInt(CHANCE_CARD_COUNT + 1)){\r\n\r\n\t\tcase 0:\r\n\t\t\t//Advance to the nearest railroad\r\n\t\t\t//This space is Short Line RR\r\n\t\t\tGameState.addDiagWindow(\"Chance\",\"Advance to the nearest Railroad!\",Color.ORANGE);\t\t//Used to be double rent\r\n\t\t\t//waitForClose(card);\r\n\t\t\tif (player.getPosition() >= 35){\r\n\t\t\t\t//Reading Railroad\r\n\t\t\t\tplayer.setPosition(5);\r\n\t\t\t\t//passed Go\r\n\t\t\t\tplayer.addCash(200);\r\n\t\t\t\tinteract(player, spaces[5]);\r\n\t\t\t\t//interact(player, spaces[5]);\r\n\t\t\t\t//Between Short Line and B&O\r\n\t\t\t} else if (player.getPosition() >= 25){\r\n\t\t\t\tplayer.setPosition(35);\r\n\t\t\t\tinteract(player, spaces[35]);\r\n\t\t\t\t//interact(player, spaces[35]);\r\n\t\t\t\t//Between Penn. and B&O\r\n\t\t\t} else if (player.getPosition() >= 15){\r\n\t\t\t\tplayer.setPosition(25);\r\n\t\t\t\tinteract(player, spaces[25]);\r\n\t\t\t\t//interact(player, spaces[25]);\r\n\t\t\t\t//Between Reading and Penn.\r\n\t\t\t} else if (player.getPosition() >= 5){\r\n\t\t\t\tplayer.setPosition(15);\r\n\t\t\t\tinteract(player, spaces[15]);\r\n\t\t\t\t//interact(player, spaces[15]);\r\n\t\t\t\t//Between Reading and Go\r\n\t\t\t} else {\r\n\t\t\t\tplayer.setPosition(5);\r\n\t\t\t\tinteract(player, spaces[5]);\r\n\t\t\t\t//interact(player, spaces[5]);\r\n\t\t\t}\r\n\t\t\tbreak;\r\n\t\tcase 1:\r\n\t\t\t//Collect 150\r\n\t\t\tGameState.addDiagWindow(\"Chance\",\"Your building loan matures, collect $150.\",Color.ORANGE);\r\n\t\t\t//waitForClose(card);\r\n\t\t\tplayer.addCash(150);\r\n\t\t\tbreak;\r\n\t\tcase 2:\r\n\t\t\t//Go back 3 spaces\r\n\t\t\t//Luckily, no possibility of passing Go.\r\n\t\t\tGameState.addDiagWindow(\"Chance\",\"Go back 3 spaces.\",Color.ORANGE);\r\n\t\t\t//waitForClose(card);\r\n\t\t\tplayer.setPosition(player.getPosition() - 3);\r\n\t\t\tinteract(player, spaces[player.getPosition()]);\r\n\t\t\tbreak;\r\n\t\tcase 3:\r\n\t\t\t//pay $15\r\n\t\t\tGameState.addDiagWindow(\"Chance\",\"Pay poor tax of $15.\",Color.ORANGE);\r\n\t\t\t//waitForClose(card);\r\n\t\t\tcharge(player,15);\r\n\t\t\tbreak;\r\n\t\tcase 4:\r\n\t\t\t//Boardwalk\r\n\t\t\tGameState.addDiagWindow(\"Chance\",\"Advance token to Boardwalk.\",Color.ORANGE);\r\n\t\t\t//waitForClose(card);\r\n\t\t\t//Can't pass Go\r\n\t\t\t//Boardwalk\r\n\t\t\tplayer.setPosition(39);\r\n\t\t\tinteract(player, spaces[39]);\r\n\t\t\tbreak;\r\n\t\tcase 5:\r\n\t\t\t//collect 50\r\n\t\t\tGameState.addDiagWindow(\"Chance\",\"Bank pays you dividend of $50.\",Color.ORANGE);\r\n\t\t\t//waitForClose(card);\r\n\t\t\tplayer.addCash(50);\r\n\t\t\tbreak;\r\n\t\tcase 6:\r\n\t\t\t//go to jail\r\n\t\t\tGameState.addDiagWindow(\"Chance\",\"Go directly to Jail. Do not pass Go. Do not collect $200.\",Color.ORANGE);\r\n\t\t\t//waitForClose(card);\r\n\t\t\tplayer.setInJail(true);\r\n\t\t\t//Jail space\r\n\t\t\tplayer.setPosition(10);\r\n\t\t\tbreak;\r\n\t\tcase 7:\r\n\t\t\t//RRR\r\n\t\t\tGameState.addDiagWindow(\"Chance\",\"Take a ride on the Reading Railroad. If you pass Go, collect $200.\",Color.ORANGE);\r\n\t\t\t//waitForClose(card);\r\n\t\t\t//Check for passing go\r\n\t\t\tif (player.getPosition() >= 5){\r\n\t\t\t\tplayer.addCash(200);\r\n\t\t\t}\r\n\t\t\tplayer.setPosition(5);\r\n\t\t\tinteract(player, spaces[5]);\r\n\t\t\tbreak;\r\n\t\tcase 8:\r\n\t\t\t//To St. Charles\r\n\t\t\tGameState.addDiagWindow(\"Chance\",\"Advance to St. Charles Place.\",Color.ORANGE);\r\n\t\t\t//waitForClose(card);\r\n\r\n\t\t\t//check for passing Go\r\n\t\t\tif (player.getPosition() >= 11){\r\n\t\t\t\tplayer.addCash(200);\r\n\t\t\t}\r\n\t\t\t//St.Charles Place\r\n\t\t\tplayer.setPosition(11);\r\n\t\t\tinteract(player, spaces[11]);\r\n\t\t\tbreak;\r\n\t\tcase 9:\r\n\t\t\t//move to Nearest Utility.\r\n\t\t\tGameState.addDiagWindow(\"Chance\",\"Advance Token to nearest Utility.\",Color.ORANGE);\r\n\t\t\t//waitForClose(card);\r\n\t\t\t//Check for passing Go, and which Utility.\r\n\t\t\t//WaterWorks\r\n\t\t\tif (player.getPosition() >= 28){\r\n\t\t\t\tplayer.addCash(200);\r\n\t\t\t\t//Electric Co.\r\n\t\t\t\tplayer.setPosition(12);\r\n\t\t\t} else if (player.getPosition() >= 12){\r\n\t\t\t\tplayer.setPosition(28);\r\n\t\t\t} else {\r\n\t\t\t\tplayer.setPosition(12);\r\n\t\t\t}\r\n\t\t\tinteract(player, spaces[player.getPosition()]);\r\n\t\t\tbreak;\r\n\t\tcase 10:\r\n\t\t\t//pay all players 50\r\n\t\t\tGameState.addDiagWindow(\"Chance\",\"You are elected chairman of the board. \"+\r\n\t\t\t\t\t\"pay each player $50.\",Color.YELLOW);\r\n\t\t\t//waitForClose(card);\r\n\t\t\tfor (int i = 0; i < players.size(); i++){\r\n\t\t\t\tif (players.get(i) != player && ! players.get(i).getBankrupt()){\r\n\t\t\t\t\tcharge(player,50,players.get(i));\r\n\t\t\t\t\t////////////////////////////////////////////////player.charge(50, players.get(i));\t////////////////////////////////WAS player[i]\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tbreak;\r\n\t\tcase 11:\r\n\t\t\t//Get out of Jail free\r\n\t\t\tGameState.addDiagWindow(\"Chance\",\"Get out of Jail free.\",Color.ORANGE);\r\n\t\t\t//waitForClose(card);\r\n\t\t\tplayer.incrementJailFreeCards();\r\n\t\t\tbreak;\r\n\t\tcase 12:\r\n\t\t\t//Advance to Illinois ave.\r\n\t\t\tGameState.addDiagWindow(\"Chance\",\"Advance to Illinois Ave.\",Color.ORANGE);\r\n\t\t\t//waitForClose(card);\r\n\t\t\t//check for passing go\r\n\t\t\t//Illinois ave.\r\n\t\t\tif (player.getPosition() >= 24){\r\n\t\t\t\tplayer.addCash(200);\r\n\t\t\t}\r\n\t\t\tplayer.setPosition(24);\r\n\t\t\tinteract(player, spaces[player.getPosition()]);\r\n\t\t\tbreak;\r\n\t\tcase 13:\r\n\t\t\t//Advance to Go.\r\n\t\t\tGameState.addDiagWindow(\"Chance\",\"Advance to Go.\",Color.ORANGE);\r\n\t\t\t//waitForClose(card);\r\n\t\t\tplayer.addCash(200);\r\n\t\t\tbreak;\r\n\t\tdefault:\r\n\t\t\t//property repairs: 25, 100\r\n\t\t\tGameState.addDiagWindow(\"Chance\",\"Make general repairs on all your property: for each house, \" +\r\n\t\t\t\t\t\"pay $25. for each hotel, pay $100\",Color.ORANGE);\r\n\t\t\t//waitForClose(card);\r\n\t\t\tcharge(player,25*player.getHouseCount() + 100*player.getHotelCount());\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "b5b035735de6f4310c57812166f35dfa", "score": "0.64096093", "text": "@Override\n public synchronized int makePlayerChoose(MakePlayerChoose<?> makePlayerChoose) {\n List<?> toBeChosen = makePlayerChoose.getToBeChosen();\n String message = makePlayerChoose.getMessage();\n int chosen;\n\n // CHOOSING THE 4 LEADER CARDS AT THE BEGINNING\n if (toBeChosen.get(0).getClass() == LeaderCard.class) {\n Platform.runLater(new Runnable() {\n @Override\n public void run() {\n preparationLeader leader = new preparationLeader();\n leader.run(toBeChosen);\n }\n });\n } else if (toBeChosen.get(0).getClass() == Res_Enum.class) {\n // CHOOSE RESOURCES FOR ? PRODUCTIONS {QUESTION: 2 -> QUESTION: 1}\n if (message.equals(\"Choose the resource to spend\") || message.equals(\"Choose the resource to take\")) {\n Platform.runLater(new Runnable() {\n @Override\n public void run() {\n resourcesTakeSpend resources = new resourcesTakeSpend();\n resources.run(toBeChosen, message);\n }\n }\n );\n } else { // CHOOSE BONUS RESOURCES AT THE BEGINNING OF THE GAME\n Platform.runLater(new Runnable() {\n @Override\n public void run() {\n preparationBonusResources bonus = new preparationBonusResources();\n bonus.run();\n }\n }\n );\n }\n }\n // CHOOSE BETWEEN DISCARD / WAREHOUSE / LEADER SLOT\n else if (toBeChosen.get(0).getClass() == Discard.class\n || toBeChosen.get(0).getClass() == WarehouseDepots.class\n || toBeChosen.get(0).getClass() == StrongBox.class\n || toBeChosen.get(0).getClass() == PlusSlot.class)\n Platform.runLater(new Runnable() {\n @Override\n public void run() {\n resourcesWherePut ask = new resourcesWherePut();\n ask.run(toBeChosen,message);\n }\n }\n );\n // WHERE TO PUT THE DEV CARD AFTER BUYING IT\n else if (toBeChosen.get(0).getClass() == String.class)\n Platform.runLater(new Runnable() {\n @Override\n public void run() {\n devcardWherePut choose = new devcardWherePut();\n choose.run(toBeChosen, message);\n }\n }\n );\n else { // PRODUCTIONS\n Platform.runLater(new Runnable() {\n @Override\n public void run() {\n productionsSetup productions = new productionsSetup();\n productions.run(toBeChosen,message);\n }\n });\n }\n\n // CHOOSE + ANSWER\n do {\n while (input == -1) {\n try {\n System.out.println(\"[GUI] waiting for an answer: \");\n wait();\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n }\n chosen = input;\n input = -1;\n } while (chosen < 0 || chosen > (toBeChosen.size() - 1));\n\n System.out.println(\"[GUI] returning the chosen element: \" + chosen);\n return chosen;\n }", "title": "" }, { "docid": "f82dd44cc26dff50a53d227d5e36508a", "score": "0.63998455", "text": "public void czarSelectSingle(AnswerCard c) {\n\n // add a point to the user that has this card.\n czarSubmissions.forEach((key, value) -> {\n if (value == c.getCardId()) {\n key.addPoint();\n // If a player has won, set the winner.\n if (key.getPoints() >= scoreToWin) {\n winner = key;\n }\n }\n });\n\n for (Integer card : czarSubmissions.values()) { //sends all played cards to the waste pile\n AnswerCard answerCard = CardManager.getAnswerCardById(card);\n // Removes the card from the user that has this card.\n party.getUsers().stream().filter(u -> u.hasCard(answerCard)).findFirst().ifPresent(u -> u.removeCards(answerCard));\n //waste.add(card);\n }\n\n czarSubmissions.clear(); //resets czar choices\n\n\n for (int i = 0; i < party.getPartySize(); i++) { //draws each player back up to 10 cards\n if (party.getUserByIndex(i).getCurrentCards().size() < 10) {\n int chosenCard = CardManager.getAnswerCardAtRandom(waste, packs);\n party.getUserByIndex(i).addCard(chosenCard);\n waste.add(chosenCard);\n }\n }\n\n int chosenCard = CardManager.getQuestionCardAtRandom(blackWaste, packs);\n curBlackQuestionCard = CardManager.getQuestionCardById(chosenCard);\n blackWaste.add(chosenCard);\n\n shiftCzar();\n\n }", "title": "" }, { "docid": "3e93d0d512fd70c9bfa47445f36efea2", "score": "0.6378001", "text": "public static void printPick(String card) {\n\n\t\t/** Create the variable to absorb the card and manipulate this */\n\t\tString cardPicked = card;\n\n\t\t//verify the suit and rank using the substring method from the java library\n\t\tString suit = (String) cardPicked.subSequence(0, 1);\n\t\tString rank = (String) cardPicked.substring(1);\n\t\tString cardRank = \"\";\n\t\tString cardSuit = \"\";\n\n\n\t\t/** Created an switch statement in order to print the correct suit and rank */\n\t\tswitch (suit){\n\t\tcase (\"0\"):\n\t\t\tcardSuit = \"Spades\";\n\t\tbreak;\n\t\tcase (\"1\"):\n\t\t\tcardSuit = \"Hearts\";\n\t\tbreak;\n\t\tcase (\"2\"):\n\t\t\tcardSuit = \"Diamonds\";\n\t\tbreak;\n\t\tcase (\"3\"):\n\t\t\tcardSuit = \"Clubs\";\n\t\tbreak;\n\t\tdefault:\n\t\t\tSystem.out.print(\"error SUIT\");\n\t\t}\n\n\t\t/** Created an switch statement in order to print the correct suit and rank */\n\t\tswitch (rank){\n\t\tcase (\"0\"):\n\t\t\tcardRank = \"Ace\";\n\t\tbreak;\n\t\tcase (\"1\"):\n\t\t\tcardRank = \"2\";\n\t\tbreak;\n\t\tcase (\"2\"):\n\t\t\tcardRank = \"3\";\n\t\tbreak;\n\t\tcase (\"3\"):\n\t\t\tcardRank = \"4\";\n\t\tbreak;\n\t\tcase (\"4\"):\n\t\t\tcardRank = \"5\";\n\t\tbreak;\n\t\tcase (\"5\"):\n\t\t\tcardRank = \"6\";\n\t\tbreak;\n\t\tcase (\"6\"):\n\t\t\tcardRank = \"7\";\n\t\tbreak;\n\t\tcase (\"7\"):\n\t\t\tcardRank = \"8\";\n\t\tbreak;\n\t\tcase (\"8\"):\n\t\t\tcardRank = \"9\";\n\t\tbreak;\n\t\tcase (\"9\"):\n\t\t\tcardRank = \"10\";\n\t\tbreak;\n\t\tcase (\"10\"):\n\t\t\tcardRank = \"Jack\";\n\t\tbreak;\n\t\tcase (\"11\"):\n\t\t\tcardRank = \"Queen\";\n\t\tbreak;\n\t\tcase (\"12\"):\n\t\t\tcardRank = \"King\";\n\t\tbreak;\n\t\tdefault:\n\t\t\tSystem.out.print(\"error RANK\");\n\t\t}\n\n\t\tSystem.out.print(\"\\n\\t\" + cardRank + \" of \" + cardSuit);\n\t}", "title": "" }, { "docid": "9c1f7de0fdf45bbf203d05ddf72eb589", "score": "0.63649446", "text": "public void actionPerformed(ActionEvent e) {\n if(allow.equals(\"yes\") && (turn%2==0)) //check for turn & if the deck card is clicked \r\n {\r\n deckCard.setBorder(null); //keep no border \r\n discard[0] = playerHand2[0]; //set the discard pile top card numerical value to the clicked card \r\n discardPileSwitch.setIcon(new ImageIcon(playerHand2[0] + \".png\")); //set the image for the discard pile to the card clicked on \r\n playerHand2[0] = deckCardArray[0]; //set the card clicked on with the new deck card\r\n b1.setIcon(new ImageIcon(playerHand2[0] + \".png\")); //switch card with new deck card image\r\n deckCard.setIcon(null); //set the deck card placeholder to nothing (null)\r\n allow = \"no\"; //restrict other moves \r\n turn++; //increment turn counter \r\n allowB = \"yes\";\r\n discardPileSwitch.setEnabled(true);\r\n \r\n \r\n }\r\n //switch card with the discard pile card\r\n else if(discardAllow.equals(\"yes\"))\r\n {\r\n int temp = playerHand2[0]; //use temp variable to hold card value \r\n playerHand2[0] = discard[0]; //set the card clicked to the discard value \r\n b1.setIcon(new ImageIcon(playerHand2[0] + \".png\"));\r\n discard[0] = temp; //set the discard pile to the temp variable that was set previously as the card clicked on \r\n discardPileSwitch.setIcon(new ImageIcon(temp + \".png\"));\r\n turn++; //increment turn indiquator \r\n discardAllow = \"no\"; //restrict other moves \r\n }\r\n }", "title": "" }, { "docid": "f8d34469bc9da8cb20fc5d936edcbb75", "score": "0.635375", "text": "public void firstCardsInRound() {\n dealTo(player, 2);\n dealTo(dealer, 2);\n }", "title": "" }, { "docid": "5f3e19c64a8d0f038bfc8520dea22684", "score": "0.6349254", "text": "public void showCard() {}", "title": "" }, { "docid": "86613d1f54e714139e9324575013bdf9", "score": "0.6346304", "text": "public void hit() {\n\n\t\tcurrentPlayer.accept(getGameDeck().pullCard());\n\t\tcommencePlayerGame();\n\t}", "title": "" }, { "docid": "897e8ad43c27b6863d0ea76e1537193c", "score": "0.6325813", "text": "private void pickCardUpdates(ActionEvent event) throws Exception {\n\t\tfor(int i = 0; i < buttons.length;i++)\n\t\t\tfor(int j = 0; j < buttons[i].length;j++) \n\t\t\t\tif(buttons[i][j] == event.getSource()) {\n\t\t\t\t\tgame.pickCard(i, j);\n\t\t\t\t\t//Update Score\n\t\t\t\t\tscoreBlock.getPlayerOneScoreArea().setText(\"\"+game.getPlayerOneScore());\n\t\t\t\t\tscoreBlock.getPlayerTwoScoreArea().setText(\"\"+game.getPlayerTwoScore());\n\t\t\t\t\t//Update Turn\n\t\t\t\t\tString s = \"\";\n\t\t\t\t\tif(game.isPlayerOne())\n\t\t\t\t\t\ts = \"One's Turn\";\n\t\t\t\t\telse\n\t\t\t\t\t\ts = \"Two's Turn\";\n\t\t\t\t\tscoreBlock.getPlayerTurnArea().setText(s);\n\t\t\t\t\tupdateButtons();\n\t\t\t\t}\n\t\t\n\t\tif(game.isDebugging())\n\t\t\tgameInfo.setText(game.toString());\n\t\tif(game.determineFinish()) \n\t\t\tgameFinished();\n\t\t\n\t}", "title": "" }, { "docid": "746dcd7a5d104052118dff8659218cc4", "score": "0.6311353", "text": "public void choose(){}", "title": "" }, { "docid": "1c5a127fdaeea06fd5b617a5add502a2", "score": "0.63093466", "text": "@Override\n\tpublic void onClick(View v) {\n\t\tswitch (v.getId()) {\n\t\tcase R.id.Reset:\n\t\t\tt = new Player();\n\t\t\tcomp=new Player();\n\t\t\ta = new Deck();\n\t\t\tpot=0;\n\t\t\tpotVal=0;\n\t\t\tCollections.shuffle(a.deck);\n\t\t\tbar.setMax(t.getAmount());\n\t\t\tbar.setOnSeekBarChangeListener(this);\n\t\t\tstat.setText(\"\");\n\t\t\tCardDis.setText(\"\");\n\t\t\tbreak;\n case R.id.hit: \n \tif(potVal!=0){\n \t\tt.setAmount(t.getAmount()-potVal);\n \t\tLog.d(\"Game\",\"Player t added the amount of \"+potVal+\" to the pot\");\n \t\tCard temp =a.deck.remove(); \n \t\tCard compTemp = a.deck.remove(); \n \t\tt.hand.add(temp);\n \t\tcomp.hand.add(compTemp);\n \t\tpot+=potVal;\n \t\tif(t.getHandPoints()>21){\n \t\t\tstat.setText(stat.getText()+\"\\nyou got busted\");\n \t\t\tpot=0;\n \t\t\tt.hand.clear();\n \t\t\tcomp.hand.clear();\n \t\t}\n \t\tif(t.getHandPoints()==21){\n \t\t\tstat.setText(stat.getText()+\"\\n Blackjack!!!!!\");\n \t\t\tt.setAmount(t.getAmount()+(int) ((2*pot)*1.5));\n \t\t\tt.hand.clear();\n \t\t\tcomp.hand.clear();\n \t\t}\n \t\tif(comp.getHandPoints()==21){\n \t\t\tstat.setText(\"Comp have won\");\n \t\t\tpot = 0; \n \t\t\tt.hand.clear();\n \t\t\tcomp.hand.clear();\n \t\t}\n \t\tif(comp.getHandPoints()>=21){\n \t\t\tstat.setText(\"Comp busted\");\n \t\t\tt.setAmount( t.getAmount()+2*(pot));\n \t\t\tpot=0;\n \t\t\tt.hand.clear();\n \t\t\tcomp.hand.clear();\n \t\t}\n \t\tstat.setText(\"Amount of \"+potVal+\" Added to pot Card Given\\nThe pot is now\"+pot+\"\");\n \t\tbar.setMax(t.getAmount());\n \t\tCardDis.setText(temp+\" your point val is \"+t.getHandPoints()+\"\\n\"+CardDis.getText());\n \t\tif(bar.getMax()==0) potVal=0;\n \t\t\n \t}\n \telse{\n \t\tstat.setText(\"Please set the pot\");\n \t}\n \n break;\n case R.id.stay:\n // do something else\n \tif(comp.getHandPoints()>t.getHandPoints()){\n \t\tstat.setText(\"Comp have won\");\n \t\t\tpot = 0; \n \t\t\tt.hand.clear();\n \t\t\tcomp.hand.clear(); \t\t\n \t}\n \telse{\n \t\tstat.setText(\"You have won\");\n \t\tt.setAmount( t.getAmount()+(pot));\n \t\t\tpot=0;\n \t\t\tt.hand.clear();\n \t\t\tcomp.hand.clear();\n \t}\n break;\n }\n\t}", "title": "" }, { "docid": "7ec78275f5797d5a535920bb398565f7", "score": "0.63080543", "text": "static public void bankChoice() {\r\n int choice = Calculations.random(1, 3);\r\n\r\n switch (choice) {\r\n case 1: {\r\n Fresh2GoldRings.log(\"Using banker1\");\r\n Tile bankBoothTile1 = new Tile(3098,3493);\r\n GameObject banker1 = GameObjects.getTopObjectOnTile(bankBoothTile1);\r\n if(banker1 != null && banker1.hasAction(\"Bank\")){\r\n banker1.interact(\"Bank\");\r\n }\r\n break;\r\n }\r\n\r\n case 2: {\r\n Fresh2GoldRings.log(\"Using banker2\");\r\n Tile bankBoothTile2 = new Tile(3096,3493);\r\n GameObject banker2 = GameObjects.getTopObjectOnTile(bankBoothTile2);\r\n if(banker2 != null && banker2.hasAction(\"Bank\")){\r\n banker2.interact(\"Bank\");\r\n }\r\n break;\r\n\r\n }\r\n\r\n }\r\n\r\n }", "title": "" }, { "docid": "7963de6545e57063612e99107e230306", "score": "0.6297561", "text": "public void play(int cardSelection, UnoDiscardPile discardPile){\n discardPile.addCard(playerCards.remove(cardSelection-1));\n }", "title": "" }, { "docid": "ad01031d9ef430da65e72f45f13d466d", "score": "0.6296866", "text": "public void actionPerformed(ActionEvent e) {\n\t\t//Exits the program if \"Exit\" is pressed\n\t\tif(e.getSource() == exit) {\n\t\t\tSystem.exit(0);\n\t\t}\n\t\t//Displays game instructions if \"Instructions\" is pressed\n\t\telse if(e.getSource() == rules) {\n\t\t\tJOptionPane.showMessageDialog(frame, \"Rules to determine who has better cards:\\nJ, Q, K are regarded as special cards.\\nRule 1: The one with more special cards wins.\\nRule 2: If both have the same number of special cards, add the face values of the other card(s) and take the remainder after dividing the sum by 10. The one with a bigger remainder wins. (Note: Ace = 1).\\nRule 3: The dealer wins if both rule 1 and rule 2 cannot distinguish the winner.\");\n\t\t}\n\t\t//Starts the round if \"Start\" is pressed\n\t\telse if(e.getSource() == start) {\n\t\t\tif(!inputBet.getText().isEmpty()) {\n\t\t\t\tString temp = inputBet.getText();\n\t\t\t\tif(wallet != 0) {\n\t\t\t\t\tif(temp.contains(\"-\") || temp.contains(\".\")) {\n\t\t\t\t\t\tJOptionPane.showMessageDialog(frame, \"WARNING: The bet you place must be a positive integer!\");\n\t\t\t\t\t\tinputBet.setText(\"\");\n\t\t\t\t\t}\n\t\t\t\t\telse {\n\t\t\t\t\t\tbetAmt = Integer.parseInt(temp);\n\t\t\t\t\t\tif(betAmt>wallet) {\n\t\t\t\t\t\t\tJOptionPane.showMessageDialog(frame, \"WARNING: The bet you place cannot be more than the money you have!\");\n\t\t\t\t\t\t\tinputBet.setText(\"\");\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tstartGame();\n\t\t\t\t\t\t}\n\t\t\t\t\t}\t\n\t\t\t\t}\n\t\t\t}\n\t\t\telse {\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\n\t\t//Replaces the player's first card if \"Replace Card 1\" is pressed\n\t\telse if(e.getSource() == replace1) {\n\t\t\trepCounter++;\n\t\t\treplacementLimit();\n\t\t\treplace1.setEnabled(false);\n\t\t\tC1index = 2+repCounter;\n\t\t\tplayCard1.setIcon(new ImageIcon(\"card_\"+cards[2+repCounter]+\".gif\"));\n\t\t}\n\t\t//Replaces the player's second card if \"Replace Card 2\" is pressed\n\t\telse if(e.getSource() == replace2) {\n\t\t\trepCounter++;\n\t\t\treplacementLimit();\n\t\t\treplace2.setEnabled(false);\n\t\t\tC2index = 2+repCounter;\n\t\t\tplayCard2.setIcon(new ImageIcon(\"card_\"+cards[2+repCounter]+\".gif\"));\n\t\t}\n\t\t//Replaces the player's third card if \"Replace Card 3\" is pressed\n\t\telse if(e.getSource() == replace3) {\n\t\t\trepCounter++;\n\t\t\treplacementLimit();\n\t\t\treplace3.setEnabled(false);\n\t\t\tC3index = 2+repCounter;\n\t\t\tplayCard3.setIcon(new ImageIcon(\"card_\"+cards[2+repCounter]+\".gif\"));\n\t\t}\n\t\t//Determines the result of a round if \"Result\" is pressed\n\t\telse if(e.getSource() == result) {\n\t\t\tresults();\n\t\t}\n\t}", "title": "" }, { "docid": "fa2a847f24c73740bfac3d8eeaf1019a", "score": "0.6295354", "text": "public void hit(View view){\n TextView playerCard3 = (TextView) findViewById(R.id.playerCard3);\n TextView playerCard4 = (TextView) findViewById(R.id.playerCard4);\n TextView playerCard5 = (TextView) findViewById(R.id.playerCard5);\n TextView dealerCard3 = (TextView)findViewById(R.id.dealerCard3);\n TextView dealerCard4 = (TextView)findViewById(R.id.dealerCard4);\n TextView dealerCard5 = (TextView)findViewById(R.id.dealerCard5);\n\n counter+=1;\n\n //player card #3\n if(counter == 1){\n //make card 3 appear\n playerCard3.setVisibility(View.VISIBLE);\n playerCard3.setText(String.valueOf(randomNumPlayerCard3));\n if (String.valueOf(randomNumPlayerCard3).equals(\"10\")) {\n playerCard3.setText(String.valueOf(getFaceCard()));\n }\n if (String.valueOf(randomNumPlayerCard3).equals(\"11\")) {\n playerCard3.setText(\"A\");\n }\n\n //add together the sum of the players first two card + the 3rd card\n blackJack.setThreeCardsSumPlayer(addCards(blackJack.getSumTwoPlayerCards(), randomNumPlayerCard3));\n\n //as long as 1+2 is under 21 hit if not dont show the cards\n if(blackJack.getSumOfTwoDealerCards() < 21){\n dealerCard3.setVisibility(View.VISIBLE);\n dealerCard3.setText(String.valueOf(randomNumDealerCard3));\n if (String.valueOf(randomNumDealerCard3).equals(\"10\")) {\n dealerCard3.setText(String.valueOf(getFaceCard()));\n }\n if (String.valueOf(randomNumDealerCard3).equals(\"11\")) {\n dealerCard3.setText(\"A\");\n }\n blackJack.setSumOfThreeDealerCards(addCards(blackJack.getSumOfTwoDealerCards(), randomNumDealerCard3));\n }\n rules();\n dealCard();\n }\n int sumOfFourCards;\n //player card #4\n if(counter == 2){\n playerCard4.setVisibility(View.VISIBLE);\n playerCard4.setText(String.valueOf(randomNumPlayerCard4));\n if (String.valueOf(randomNumPlayerCard4).equals(\"10\")) {\n playerCard4.setText(String.valueOf(getFaceCard()));\n }\n\n if (String.valueOf(randomNumPlayerCard4).equals(\"11\")) {\n playerCard4.setText(\"A\");\n }\n\n //sum of 4 cards\n sumOfFourCards = addCards(blackJack.getSumOfThreeCards(), randomNumPlayerCard4);\n blackJack.setSumOfFourCards(sumOfFourCards);\n\n //dealer card 4\n if(blackJack.getSumOfTwoDealerCards() < 21 && blackJack.getSumOfThreeDealerCards() < 21){\n dealerCard4.setText(String.valueOf(randomNumDealerCard4));\n dealerCard4.setVisibility(View.VISIBLE);\n if (String.valueOf(randomNumDealerCard4).equals(\"10\")) {\n dealerCard4.setText(String.valueOf(getFaceCard()));\n }\n if (String.valueOf(randomNumDealerCard4).equals(\"11\")) {\n dealerCard4.setText(\"A\");\n }\n //total of 4 dealer cards\n blackJack.setSumOfFourDealerCards( addCards(blackJack.getSumOfThreeDealerCards(),randomNumDealerCard4));\n }\n rules();\n dealCard();\n }\n\n if(counter == 3){\n //5th player card\n playerCard5.setVisibility(View.VISIBLE);\n playerCard5.setText(String.valueOf(randomNumPlayerCard5));\n if (String.valueOf(randomNumPlayerCard5).equals(\"10\")) {\n playerCard5.setText(String.valueOf(getFaceCard()));\n }\n if (String.valueOf(randomNumPlayerCard5).equals(\"11\")) {\n playerCard5.setText(\"A\");\n }\n //sum of five player cards\n blackJack.setSumOfFiveCards(addCards(blackJack.getSumOfFourCards(),randomNumPlayerCard5));\n\n\n //dealer 5th card\n if(blackJack.getSumOfTwoDealerCards() < 21 && blackJack.getSumOfThreeDealerCards() < 21 && blackJack.getSumOfFiveDealerCards() < 21) {\n if (String.valueOf(randomNumDealerCard5).equals(\"10\")) {\n dealerCard5.setText(String.valueOf(getFaceCard()));\n }\n if (String.valueOf(randomNumDealerCard5).equals(\"11\")) {\n dealerCard5.setText(\"A\");\n }\n dealerCard5.setVisibility(View.VISIBLE);\n dealerCard5.setText(String.valueOf(randomNumDealerCard5));\n\n //sum of five dealer cards\n blackJack.setSumOfFiveDealerCards(addCards(blackJack.getSumOfFourDealerCards(), randomNumDealerCard5));\n }\n rules();\n }\n }", "title": "" }, { "docid": "b920871b313e15745eec3a51fca787c6", "score": "0.62793666", "text": "public void playNextMove(Card selectedCard) {\n\n GamePage.cardTouch(false);\n\n // declare three variables to hold the imageViews of the playing cards of the three players.\n final ImageView com1 = activity.findViewById(R.id.com1Card);\n final ImageView com2 = activity.findViewById(R.id.com2Card);\n final ImageView playerPlaceholder = activity.findViewById(R.id.playCard);\n\n\n // If it is the first round of the game and the start player is Human Player.\n // or is not the first round and last round winner is Human Player.\n if ((numberOfRoundsPlayed == 0 && startPlayer.getName() != \"Computer Player 1\" && startPlayer.getName() != \"Computer Player 2\") ||\n ((numberOfRoundsPlayed > 0 && playedRounds[numberOfRoundsPlayed - 1].getWinner().getName() != \"Computer Player 1\"\n && playedRounds[numberOfRoundsPlayed - 1].getWinner().getName() != \"Computer Player 2\"))) {\n\n try {\n GamePage.cardTouch(false);\n\n // Select the playing card for comPlayers and pass it to the Game round.\n Card card2 = cpu2.selectCard(selectedCard);\n Card card1 = cpu1.selectCard(selectedCard, card2);\n\n GameRound gameRound = new GameRound(cpu1, card1,\n cpu2, card2,\n humanPlayer, selectedCard, selectedCard.getCategory(), trumps);\n\n // increment the number of rounds played.\n playedRounds[numberOfRoundsPlayed++] = gameRound;\n\n invalidCardByHuman = false;\n final Player winner = playedRounds[numberOfRoundsPlayed - 1].getWinner();\n\n // Set the image resource of the selected cards to the cards that are being played and make them invisible\n com1.setImageResource(playedRounds[numberOfRoundsPlayed - 1].getCompPlayer1Card().getImageSource());\n com2.setImageResource(playedRounds[numberOfRoundsPlayed - 1].getCompPlayer2Card().getImageSource());\n com1.setVisibility(View.INVISIBLE);\n com2.setVisibility(View.INVISIBLE);\n\n // remove the Computer player 1 and Computer Player 2 selected cards from the card decks of the computer player 1 and Computer Player 2.\n // And update the number of cards remaining for Com Player 1 and Com Player 2.\n\n setRemainingAndRemoveComPlayerCards(cpu1, cpu2, card1, card2);\n\n //cpu1.displayDetails();\n //cpu2.displayDetails();\n\n // Set animations.\n final Animation animationLr = AnimationUtils.loadAnimation(activity, R.anim.lefttoright);\n final Animation animationRl = AnimationUtils.loadAnimation(activity, R.anim.righttoleft);\n\n // Allows to delay the animations associated with the particular card.\n gameHandler = new GameHandlers(\"com2\".toLowerCase(), com2, animationRl, 1000, 1500);\n\n gameHandler = new GameHandlers(\"com1\".toLowerCase(), com1, animationLr, 1000, 3000);\n\n // Update score on the score bar.\n Handler handler = new Handler();\n handler.postDelayed(new Runnable() {\n @Override\n public void run() {\n updateScore(winner);\n }\n }, 2500);\n\n // if this round's winner is a Computer Player.\n if (playedRounds[numberOfRoundsPlayed - 1].getWinner() instanceof AbComputerPlayer) {\n\n moveForwardWithCpuWin();\n\n }\n // if the round's winner is a human player.\n else {\n GameHandlers.collectCards(com1, com2, playerPlaceholder, 6000);\n }\n\n } catch (Exception e) {\n\n numberOfRoundsPlayed--; // decrement the added number of played.\n popUpDialog(Message.getMessageSelectValidCard(), \"Card Selection\");\n\n invalidCardByHuman = true;\n GamePage.cardTouch(true);\n }\n }\n\n // Else if the first round of the game and the start player is ComPlayer 1\n // Or the last round's winner is ComPlayer 1.\n else if (((numberOfRoundsPlayed == 0 && (startPlayer.getName() == \"Computer Player 1\")) ||\n ((numberOfRoundsPlayed > 0 && playedRounds[numberOfRoundsPlayed - 1].getWinner().getName() == \"Computer Player 1\")))) {\n\n try {\n\n // If human player card is valid.\n if (!invalidCardByHuman) {\n // Com Player 2 (right side). Play the smallest card from the category.\n com2Card = cpu2.selectCard(c1, selectedCard);\n }\n\n // Start game round from Com Player 2.\n // Creates new game round object.\n GameRound gameRound = new GameRound(cpu1, c1,\n cpu2, com2Card,\n humanPlayer, selectedCard, c1.getCategory(), trumps);\n\n invalidCardByHuman = false;\n\n playedRounds[numberOfRoundsPlayed++] = gameRound;\n\n // Get image source for Card played by Com Player 2 and set to Image Resource.\n com2.setImageResource(com2Card.getImageSource());\n com2.setVisibility(View.INVISIBLE);\n\n // Set Animations.\n final Animation animationRl = AnimationUtils.loadAnimation(activity, R.anim.righttoleft);\n\n GameHandlers gameHandler = new GameHandlers(\"com2\".toLowerCase(), com2, animationRl, 1000, 2500);\n\n // remove the played cards from the card decks of computer player 1 & 2.\n // update the number of remaining card for both players.\n setRemainingAndRemoveComPlayerCards(cpu1, cpu2, c1, com2Card);\n\n // get winner of the round.\n final Player winner = playedRounds[numberOfRoundsPlayed - 1].getWinner();\n\n Handler handler = new Handler();\n handler.postDelayed(new Runnable() {\n @Override\n public void run() {\n updateScore(winner);\n }\n }, 2500);\n\n if (playedRounds[numberOfRoundsPlayed - 1].getWinner() instanceof AbComputerPlayer) {\n\n moveForwardWithCpuWin();\n\n } else {\n GameHandlers.collectCards(com1, com2, playerPlaceholder, 4000);\n }\n\n } catch (Exception e) {\n\n popUpDialog(Message.getMessageSelectValidCard(), \"Card Selection\");\n invalidCardByHuman = true;\n GamePage.cardTouch(true);\n }\n }\n\n // Else if the first round of the game and the start player is ComPlayer 2\n // Or the last round's winner is ComPlayer 2.\n else {\n\n try {\n\n // Create new game round object.\n GameRound gameRound = new GameRound(cpu1, c1,\n cpu2, c2,\n humanPlayer, selectedCard, c2.getCategory(), trumps);\n\n invalidCardByHuman = false;\n playedRounds[numberOfRoundsPlayed++] = gameRound;\n\n if (numberOfRoundsPlayed == 0) {\n // calls method to set the image views of the playing cards for com players 1 & 2.\n setComputerCardsToImageView(c1, c2, com1, com2);\n }\n\n setRemainingAndRemoveComPlayerCards(cpu1, cpu2, c1, c2);\n\n // Get winner of this round.\n final Player winner = playedRounds[numberOfRoundsPlayed - 1].getWinner();\n\n Handler handler = new Handler();\n handler.postDelayed(new Runnable() {\n @Override\n public void run() {\n updateScore(winner);\n }\n }, 2500);\n\n // If this round's winner is a Computer Player.\n if (playedRounds[numberOfRoundsPlayed - 1].getWinner() instanceof AbComputerPlayer) {\n\n moveForwardWithCpuWin();\n\n } else {\n GameHandlers.collectCards(com1, com2, playerPlaceholder, 4000);\n }\n\n } catch (Exception e) {\n popUpDialog(Message.getMessageSelectValidCard(), \"Card Selection\");\n invalidCardByHuman = true;\n GamePage.cardTouch(true);\n }\n }\n }", "title": "" }, { "docid": "cdfdd5d7636c3d13ff760a6db21ed277", "score": "0.6277833", "text": "public void actionPerformed(ActionEvent e) {\n start.setVisible(false);\r\n start();\r\n playerCards1();\r\n playerCards2();\r\n hide2Cards();\r\n addCards();\r\n newDeckCard.setVisible(true);\r\n flipLast.setVisible(true);\r\n flipLast2.setVisible(true);\r\n discardPileSwitch.setVisible(true); \r\n turn = 0; //set the turn back to 0\r\n message.setText(\"Player 1 once switch with a deck card\"); \r\n allow = \"yes\";\r\n }", "title": "" }, { "docid": "abe7154cc50ac305d10bb97f09f5f79f", "score": "0.627283", "text": "private void showCards(Card c, String player){\n agents.get(leader).seeCard(c, player);\n agents.get(left).seeCard(c, player);\n agents.get(right).seeCard(c, player);\n }", "title": "" }, { "docid": "520b67010ef8a5895e5f986b34a979e0", "score": "0.6262222", "text": "private static void initialiseCards() {\n\t\t\n\t}", "title": "" }, { "docid": "955c1acecbd4b6c58060f99be9ef4472", "score": "0.6234326", "text": "public void actionPerformed (ActionEvent e) {\n \n int selected = dropDown.getSelectedIndex();\n if (e.getSource() == startButton) {\n if (selected == 0) cardLayout.show(cardPanel, \"schi\");\n if (selected == 1) cardLayout.show(cardPanel, \"dep\");\n }\n else if ((e.getSource() == schizophreniaPanel.bExitYes) ||\n (e.getSource() == schizophreniaPanel.bExitNo) ||\n (e.getSource() == majdepressivePanel.bExitYes) ||\n (e.getSource() == majdepressivePanel.bExitNo)) {\n cardLayout.first(cardPanel);\n }\n }", "title": "" }, { "docid": "dd70417315007b7c05941a165af52690", "score": "0.6228743", "text": "@Override\n public Bid chooseBid(Bid prevBid, Hand playerHand, boolean isCheat) \n {\n //Variables and objects to be used during this method\n Scanner scan = new Scanner(System.in);\n int numberToPlay;\n Hand bidHand = new Hand();\n boolean iCheat;\n Card.Rank cheatRank;\n Card.Rank honestRank = Rank.TWO;\n Bid bid = new Bid();\n \n //User prompt\n System.out.println(\"Please enter the number of cards you would like \"\n + \"to bid (between 1 and 4)...\");\n numberToPlay = scan.nextInt();\n \n //Iterate the number of times the user wants to play a card\n for (int i = 0; i < numberToPlay; i++) \n {\n //User prompt\n System.out.println(\"Please which card(s) you would like to play \"\n + \"(Select the card number): \");\n \n //Remove the selected card into a temporary card object\n Card tempCard = playerHand.remove(scan.nextInt()-1);\n \n //Add temporary card object into the bid hand\n bidHand.add(tempCard);\n \n //Check the rank of the cards being selected\n honestRank = tempCard.getRank();\n \n //Reprint the hand without the removed card, for user clarity\n System.out.println(playerHand.toString());\n \n //error handling possibility for future versions\n// if(bidHand.handSize() == 0)\n// {\n// System.out.println(\"Bid hand detected as empty. Please ensure\"\n// + \" that you are entering the Card correctly.\");\n// i = 0;\n// }\n }\n \n //Check if the user is cheating\n iCheat = cheat(prevBid, bidHand);\n \n //If the player is cheating\n if(iCheat == true)\n {\n //User prompt\n System.out.println(\"Bid detected as a cheat bid. Please decide \"\n + \"what rank you wish the bid to be. Enter a 1 (for the \"\n + \"current bid rank) or 2 (for the next rank)\");\n if(scan.nextInt() == 1)\n {\n cheatRank = prevBid.getRank();\n }\n else\n {\n cheatRank = prevBid.getRank().getNext();\n }\n \n //Make bid with cheat rank\n bid = new Bid(bidHand, cheatRank);\n }\n //If the player is not cheating \n else\n {\n //Make the bid with honest Rank\n bid = new Bid(bidHand, honestRank);\n }\n return bid;\n }", "title": "" }, { "docid": "6382329ccbeac9a1f969f6d74af38566", "score": "0.6223162", "text": "public void testManualPlay(){\r\n // Manually set the hand of cards: AS, 10C, 10H, 3D, 3S\r\n }", "title": "" }, { "docid": "e02e545fb4c84b73fe864eb9c849650a", "score": "0.621", "text": "public void changeSuit(int option) {\n boolean done = false;\n\n while (!done) {\n try {\n switch (option) {\n case 1:\n cardInPlay = new Card(CRAZY_8, \"Spades\");\n done = true;\n break;\n case 2:\n cardInPlay = new Card(CRAZY_8, \"Hearts\");\n done = true;\n break;\n case 3:\n cardInPlay = new Card(CRAZY_8, \"Clubs\");\n done = true;\n break;\n case 4:\n cardInPlay = new Card(CRAZY_8, \"Diamonds\");\n done = true;\n break;\n default:\n System.out.println(\"Invalid input.\");\n done = false;\n break;\n }\n }\n catch (Exception e) {\n System.out.println(\"Invalid input.\");\n continue;\n }\n }\n }", "title": "" }, { "docid": "83ce48fd326375ff3521fbb06963c664", "score": "0.62069374", "text": "private static void pullCard() {\n\t\tif (gameState == 1) {\n\t\t\tplayerDeck.drawCard();\n\t\t}\n\t\tif (gameState == 2) {\n\t\t\tenemyDeck.drawCard();\n\t\t}\n\t}", "title": "" }, { "docid": "f5fce2e113a16745f800f3aa9866b199", "score": "0.61998034", "text": "public void run() {\n\n\t\tshuffle();\n\n\t\tSystem.out.println(\"Playing Black Jack\");\n\t\t// Araylist <Card> dealerHand = new Arraylist<Card>();\n\n\t\tint yourNumber = 0;\n\t\tCard c1 = dealCard();\n\t\tCard c2 = dealCard();\n\t\tyourNumber = parseCard(c1) + parseCard(c2);\n\n\t\tString choice;\n\n\t\tSystem.out.println(\"Your hand is \" + c1.toString() + \" \"\n\t\t\t\t+ c2.toString());\n\t\tSystem.out.println(\"Your total Value is: \" + yourNumber);\n\t\tSystem.out.println(\"Hit or Hold\");\n\t\tchoice = sc.nextLine();\n\n\t\twhile (yourNumber < 21 && choice.equals(\"Hit\")) {\n\t\t\tCard c3 = dealCard();\n\t\t\tyourNumber += parseCard(c3);\n\t\t\tSystem.out.println(\"Your new Card is: \" + c2.toString());\n\t\t\tSystem.out.println(\"Your total Value is: \" + yourNumber);\n\t\t\tSystem.out.println(\"Hit or Hold\");\n\t\t\tchoice = sc.nextLine();\n\n\t\t}\n\n\t\tint dealersNumber = 0;\n\t\twhile (dealersNumber < 18) {\n\t\t\tCard myC = dealCard();\n\t\t\tint number = parseCard(myC);\n\t\t\tdealersNumber += number;\n\t\t}\n\t\tif (dealersNumber > 21)\n\t\t\tSystem.out.println(\"Dealer Busts with: \" + dealersNumber);\n\n\t\telse if (dealersNumber > yourNumber) {\n\t\t\tSystem.out.println(\"You Loose\");\n\t\t\tSystem.out.println(\"You got \" + yourNumber + \" \" + \"Dealer Got :\"\n\t\t\t\t\t+ dealersNumber);\n\t\t} else if (yourNumber > dealersNumber) {\n\t\t\tSystem.out.println(\"You Win\");\n\t\t\tSystem.out.println(\"You got \" + yourNumber + \" \" + \"Dealer Got :\"\n\t\t\t\t\t+ dealersNumber);\n\t\t} else {\n\t\t\tSystem.out.println(\"Tie\");\n\t\t}\n\t}", "title": "" }, { "docid": "8c4d43af55fdd218fc3f698fe17694dc", "score": "0.6195206", "text": "@Override\n public void enter(GameLogic gameLogic) {\n ArrayList<HouseCard> cards = gameLogic.getCurrentPlayer().getHouseCards();\n ArrayList<Chooseable> choices = new ArrayList<>(cards);\n String eventMessage = \"Which house would you like to sell?\";\n\n LifeGameMessageTypes requestType = LifeGameMessageTypes.LargeDecisionRequest;\n LifeGameMessage replyMessage = new DecisionRequestMessage(choices,gameLogic.getCurrentPlayer().getPlayerNumber(), eventMessage, requestType, gameLogic.getCurrentShadowPlayer());\n // Need to store both choices so that we can assign the chosen one to the\n // correct player,\n // and push the unchosen one to the bottom of the correct deck.\n gameLogic.setResponseMessage(replyMessage);\n\n }", "title": "" }, { "docid": "d5d406f7df4d9d438ee400ae0548fe17", "score": "0.6191399", "text": "private void play(BasePlayer player){\n if(player.getHandSize()>0) {\n // Get players card\n if(currentCard==null){\n // if there is no current card play chooses based on trump category only\n newCard = player.playCard(trumpCategory);\n }\n else if (currentCard.getCardType().equals(\"Trump\")) {\n // if the last card is a trump card player chooses based on trump category only\n newCard = player.playCard(trumpCategory);\n } else {\n // If last card was a play card player choose based on trump category and last card\n newCard = player.playCard(trumpCategory, currentCard);\n }\n // Check if player passed\n if (newCard == null) {\n // Pick up card if deck still has cards\n if(deck.length()>0) {\n player.setCard(deck.dealCard());\n }\n player.deactivate();\n System.out.println(player.getName() + \" passed.\\n\");\n } else if (newCard.getCardType().equals(\"Trump\")) {\n // Activate all payers\n activateAllPlayers();\n // Print played card\n System.out.println(player.getName() + \" played \" + newCard.getCardTitle()+\".\");\n // set trump category\n if (newCard.getCardTitle().equals(\"The Geologist\")) {\n trumpCategory = player.pickTrumpCategory();\n } else {\n trumpCategory = ((TrumpCard) newCard).getSubtitle();\n }\n System.out.println(newCard.getCategoryDetails(trumpCategory)+\".\\n\");\n System.out.println(\"Trump Category is now \" + trumpCategory);\n // Set current card as new card\n currentCard = newCard;\n // replay since trump card was played\n play(player);\n } else {\n System.out.println(player.getName() + \" played \" + newCard.getCardTitle()+\".\");\n System.out.println(newCard.getCategoryDetails(trumpCategory)+\".\\n\");\n // Check if round winning combination was played\n if(currentCard!=null){\n if(currentCard.getCardTitle().equals(\"The Geophysicist\")&newCard.getCardTitle().equals(\"Magnetite\")){\n System.out.println(player.getName()+\" played the round winning combination!\");\n activateAllPlayers();\n // Player restarts new round\n play(player);\n }\n }\n currentCard = newCard;\n }\n }\n }", "title": "" }, { "docid": "a300041b604037dfb44b613f05c7223e", "score": "0.61829895", "text": "public abstract void playerStatusWithCoveredCards(Player currentPlayer);", "title": "" }, { "docid": "9efa2c8170b67f3b74ee69a247ad2d7d", "score": "0.6176242", "text": "public void play() {\n boolean playerBusted = false;\n while (!playerBusted) {\n displayGameState();\n String playerChoice = inputFromPlayer().toLowerCase();\n if (playerChoice.startsWith(\"s\")) {\n break;\n }\n if (playerChoice.startsWith(\"h\")) {\n drawCardIntoPlayerHand();\n playerBusted = player.getHand().isBusted();\n } else {\n System.out.println(\"You need to [H]it or [S]tand\");\n }\n }\n\n // Dealer makes its choice automatically based on a simple heuristic (<=16, hit, 17>stand)\n if (!playerBusted) {\n dealerPlays();\n }\n\n displayFinalGameState();\n\n handleGameOutcome();\n }", "title": "" }, { "docid": "acdf40207b4a6ddeb70b0942369ad5eb", "score": "0.6175008", "text": "public static void drawCard(){\n setCard(Deck.deck[getCardsUsed()][0] + \" of \" + Deck.deck[getCardsUsed()][1]);\n cardValue = deriveValue(Deck.deck[getCardsUsed()][0]);\n setCardsInDeck(getCardsInDeck() - 1);\n //main.deck.setText(getCardsInDeck());\n setCardsUsed(getCardsUsed() - 1);\n if(getCardsUsed() == 0){\n Dealer.shuffle();\n }\n\n }", "title": "" }, { "docid": "06c3ab5194e6a7455f3ff92d9c7dd99f", "score": "0.6164975", "text": "private void _cardMenu() {\n\t\tString cardMenu[] = {\"Card:\", \"Add new card\", \"Print card information\", \"Back\"};\n\t\tGeneralHelperFunctions.generateMenu(cardMenu);\n\n\t\tint opt = GeneralHelperFunctions.inputIntegerOption(0, 2);\n\n\t\tswitch (opt) {\n\t\t\tcase 1:\n\t\t\t\tUserOperations.addNewCard(activeUser);\n\t\t\t\tbreak;\n\t\t\tcase 2:\n\t\t\t\tUserOperations.printCardInformation(activeUser);\n\t\t\t\tbreak;\n\t\t\tcase 0:\n\t\t\t\treturn;\n\t\t\tdefault:\n\t\t}\n\n\t\t_cardMenu();\n\t}", "title": "" }, { "docid": "28b4aece849e85526260f2b325a68374", "score": "0.61556107", "text": "public abstract void usedCard(Card card);", "title": "" }, { "docid": "cadd137811fdf195f60a734f97bdaf81", "score": "0.6154042", "text": "public void choosePlayers() {\n String choice;\n\n //keep choosing until all unpicked players are gone\n while(possiblePieces.size()!=0) {\n //print the possible options of players to pick\n System.out.println(\"\\nIt is Team \"+getCurrentTeam().getTeamName()+\"'s turn to pick a player\");\n System.out.println(\"Available Pieces:\");\n for (Piece myPiece : possiblePieces) {\n System.out.println(myPiece.getSymbol());\n }\n System.out.println(\"\\nChoose a piece for your team (Type name exactly as shown): \");\n Scanner scnr = new Scanner(System.in);\n choice = scnr.next(); //get what team wants to pick\n\n //convert the string into a Piece object, making sure they entered a valid name\n if (getPiece(choice)==null) {\n System.out.println(\"Invalid entry. Try again\");\n } else {\n //add piece to the team that picked, remove from possible players, and change who is picking\n getCurrentTeam().addPieceToTeam(getPiece(choice));\n possiblePieces.remove(getPiece(choice));\n changeTurn();\n }\n }\n //when they are done picking teams, make sure the teams they picked are valid (one of each Piece)\n if(!validTeam(getCurrentTeam()) || !validTeam(getOpponentTeam())) {\n System.out.println(\"Each team must pick one of each type of player. Pick teams again.\");\n restart();\n choosePlayers();\n }\n //draw board with the team members on it\n super.initializeGameBoard(gameBoard.getNumRows(),gameBoard.getNumColumns());\n }", "title": "" }, { "docid": "dd5c02c87d8afa403db59c346fa3ed07", "score": "0.6148137", "text": "@Override\n public void enter(GameLogic gameLogic) {\n ArrayList<Chooseable> choices = new ArrayList<>();\n int numPlayers = gameLogic.getNumberOfPlayers();\n for (int i = 0;i<numPlayers;i++){\n if(i != gameLogic.getCurrentPlayerIndex()){\n String string = \"Player \" + gameLogic.getPlayerByIndex(i).getPlayerNumber();\n ChooseableString cString = new ChooseableString(string);\n choices.add(cString);\n }\n }\n\n String eventMessage = ActionCardTypes.PlayersPay + \" Action: Pick a player to receive \" +\n GameConfig.players_pay_amount/1000 + \"K from\";\n\n LifeGameMessageTypes requestType = LifeGameMessageTypes.LargeDecisionRequest;\n LifeGameMessage replyMessage = new DecisionRequestMessage(choices,gameLogic.getCurrentPlayer().getPlayerNumber(), eventMessage, requestType, gameLogic.getCurrentShadowPlayer());\n\n gameLogic.setResponseMessage(replyMessage);\n }", "title": "" }, { "docid": "ad0be5325abe0050f20e6f467589d57b", "score": "0.61447763", "text": "public void dealCard(){\n\n TextView playButton = (TextView) findViewById(R.id.button);\n TextView restartButton = (TextView) findViewById(R.id.restartGame);\n TextView playerCard1 = (TextView) findViewById(R.id.playerCard1);\n TextView playerCard2 = (TextView) findViewById(R.id.playerCard2);\n TextView dealerCard1 = (TextView) findViewById(R.id.dealerCard1);\n TextView dealerCard2 = (TextView) findViewById(R.id.dealerCard2);\n TextView gameOver = (TextView) findViewById(R.id.gameOver);\n Button hitButton, stopButton;\n\n playButton.setVisibility(View.INVISIBLE);\n restartButton.setVisibility(View.VISIBLE);\n\n if (counter == 0 ) {\n //card #1 for player\n playerCard1.setVisibility(View.VISIBLE);\n playerCard1.setText(String.valueOf(randomNumPlayerCard1));\n if (String.valueOf(randomNumPlayerCard1).equals(\"11\")) {\n playerCard1.setText(\"A\");\n //player has blackjack\n if(randomNumPlayerCard1 == 'K' || randomNumPlayerCard2 == 'K') {\n blackJack.playerBlackJack();\n }\n }\n if (String.valueOf(randomNumPlayerCard1).equals(\"10\")) {\n playerCard1.setText(String.valueOf(getFaceCard()));\n }\n\n //card #2 for player\n playerCard2.setVisibility(View.VISIBLE);\n playerCard2.setText(String.valueOf(randomNumPlayerCard2));\n if (String.valueOf(randomNumPlayerCard2).equals(\"11\")) {\n playerCard2.setText(\"A\");\n\n //player has blackjack\n if(randomNumPlayerCard1 == 'K' || randomNumPlayerCard2 == 'K') {\n blackJack.playerBlackJack();\n }\n }\n if (String.valueOf(randomNumPlayerCard2).equals(\"10\")) {\n playerCard2.setText(String.valueOf(getFaceCard()));\n }\n blackJack.setSum2PlayerCards(addCards(randomNumPlayerCard1, randomNumPlayerCard2));\n\n //card #1 for dealer\n dealerCard1.setVisibility(View.VISIBLE);\n dealerCard1.setText(String.valueOf(randomNumDealerCard1));\n if (String.valueOf(randomNumDealerCard1).equals(\"11\")) {\n dealerCard1.setText(\"A\");\n\n //dealer has blackjack\n if(randomNumDealerCard1 == 'K' || randomNumDealerCard2 == 'K') {\n blackJack.dealerBlackJack();\n }\n }\n if (String.valueOf(randomNumDealerCard1).equals(\"10\")) {\n dealerCard1.setText(String.valueOf(getFaceCard()));\n }\n\n //card #2 for dealer\n dealerCard2.setVisibility(View.VISIBLE);\n dealerCard2.setText(String.valueOf(randomNumDealerCard2));\n if (String.valueOf(randomNumDealerCard2).equals(\"10\")) {\n dealerCard2.setText(String.valueOf(getFaceCard()));\n\n if(randomNumDealerCard1 == 'K' || randomNumDealerCard2 == 'K') {\n blackJack.dealerBlackJack();\n }\n }\n if (String.valueOf(randomNumDealerCard2).equals(\"11\")) {\n dealerCard2.setText(\"A\");\n }\n blackJack.setSumOfTwoDealerCards(addCards(randomNumDealerCard1, randomNumDealerCard2));\n\n if(blackJack.getSumOfTwoDealerCards() > 21){\n gameOver.setText(\"Player Won\");\n gameOver.setVisibility(View.VISIBLE);\n\n //disable the hit button if the game is over\n hitButton = (Button) findViewById(R.id.hitButton);\n hitButton.setEnabled(false);\n stopButton = (Button) findViewById(R.id.stopButton);\n stopButton.setEnabled(false);\n }\n }\n }", "title": "" }, { "docid": "b468f07bd48b3cfad1d4932c02f40dfa", "score": "0.6138786", "text": "@Override\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n if(!Core.isLocalAbleToPlay() && Core.isLocalTurn() && Core.getPlayer(Core.getLocal()).size()>0 && Core.getPhase() == Utils.PHASE_GAME){\n //si local no es capaz de jugar ninguna de sus cartas locales\n Protocol.takeCardToHand();\n Core.nextTurn();\n Core.setGrabCase(0);\n GameViewController.setLocalInfo(Utils.INFO_MESSAGE_CARD_TAKE);\n }else{\n GameViewController.setLocalInfo(Utils.INFO_MESSAGE_CARD_NOTAKE);\n }\n }", "title": "" }, { "docid": "e3e64327b53b51918c012bd3707e5987", "score": "0.61345917", "text": "public void results() {\n\t\tdealCard1.setIcon(new ImageIcon(\"card_\"+cards[5]+\".gif\"));\n\t\tdealCard2.setIcon(new ImageIcon(\"card_\"+cards[6]+\".gif\"));\n\t\tdealCard3.setIcon(new ImageIcon(\"card_\"+cards[7]+\".gif\"));\n\t\tdealerCalc();\n\t\tplayerCalc();\n\t\treplace1.setEnabled(false);\n\t\treplace2.setEnabled(false);\n\t\treplace3.setEnabled(false);\n\t\tresult.setEnabled(false);\n\t\tif(playFaces > dealFaces) {\n\t\t\tplayerWins();\n\t\t} else if(dealFaces > playFaces) {\n\t\t\tdealerWins();\n\t\t} else {\n\t\t\tif(playRem > dealRem) {\n\t\t\t\tplayerWins();\n\t\t\t} else {\n\t\t\t\tdealerWins();\n\t\t\t}\n\t\t}\n\t\tif(wallet == 0) {\n\t\t\tstart.setEnabled(false);\n\t\t\tinfo1.setText(\"You have no more monney! \");\n\t\t\tinfo2.setText(\"Please start a new game!\");\n\t\t\tJOptionPane.showMessageDialog(frame, \"Game over!\\nYou have no more money!\\nPlease start a new game!\");\n\t\t\treturn;\n\t\t}\n\t\tplayCard1.setIcon(back);\n\t\tplayCard2.setIcon(back);\n\t\tplayCard3.setIcon(back);\n\t\tdealCard1.setIcon(back);\n\t\tdealCard2.setIcon(back);\n\t\tdealCard3.setIcon(back);\n\t\tinfo1.setText(\"Please place your bet! \");\n\t\tinfo2.setText(\"Amount of money you have: $\"+wallet);\n\t\tinputBet.setText(\"\");\n\t\tstart.setEnabled(true);\n\t}", "title": "" }, { "docid": "7254fa6f6b6422f9c02966ac66bf3a07", "score": "0.6132826", "text": "void playNextCard() {\n Card myCard = myDeck.remove(0); // draw the first card\n Card cpuCard = cpuDeck.remove(0);\n // put them on the stack. when there's war, the next cards go onto the stack, too, when there's a winner\n // the stack gets cleared\n stack.add(myCard);\n stack.add(cpuCard);\n // compare results, winner gets all cards on stack\n int result = myCard.compareTo(cpuCard);\n if (result < 0) { // player rank is lower\n displayMessage(\"My card\");\n cpuDeck.addAll(stack);\n stack.clear(); // don't forget to remove copies of our virtual stacks\n } else if (result > 0) { // player rank is higher\n displayMessage(\"Your card\");\n myDeck.addAll(stack);\n stack.clear();\n } else { // draw -> a war starts\n // players with at least one card left add them to the stack\n if (!myDeck.isEmpty()) {\n stack.add(myDeck.remove(0));\n }\n if (!cpuDeck.isEmpty()) {\n stack.add(myDeck.remove(0));\n }\n displayMessage(\"Let There Be War\");\n }\n updateInfo(myCard, cpuCard); // the updateInfo method also checks if there's a winner\n }", "title": "" }, { "docid": "e8da12622ef1537443b8527bcdec755d", "score": "0.61263645", "text": "protected void playerTurns(){\n \tfor (Player player : this.players){\n \t\twhile (player.requestCard()){\n \t\t\tthis.dealer.dealCard(player);\n \t\t}\n \t}\n \twhile(((Player)this.dealer).requestCard()){\n \t\tthis.dealer.dealCard((Player) this.dealer);\n \t}\n }", "title": "" }, { "docid": "d87e6acb24295db321e1cf0d0677dd39", "score": "0.61257327", "text": "private void playingStage() {\n //TODO\n //loop until a character has been voted for the new King.\n }", "title": "" }, { "docid": "7aa1f1df1262e4c2debf547a40d59b92", "score": "0.6124107", "text": "public void update_cards ()\n\t{\n\t\tfor (int i = 0 ; i < num_cards () ; ++i)\n\t\t{\n\t\t\tPoint des_loc = new Point(location.x + i * offset.x,\n\t\t\t\t\t\t location.y + i * offset.y); \n\t\t\tif (card(i).is_selected())\n\t\t\t des_loc.translate(selset.x, selset.y);\n\t\t\tif (!card(i).get_loc().equals(des_loc))\n\t\t\t card(i).move_to_location(des_loc, 0.500);\n\t\t\tcard(i).set_face (shown);\n\t\t\tcard(i).set_layer(layer + i);\n\t\t}\n\t}", "title": "" }, { "docid": "4b15ccf2969e2516fb63b7535c7abe5f", "score": "0.61202085", "text": "public void startBlackJackGame() {\n\t\tone52CardDeck.createOne52CardDeck();\n\t\tone52CardDeck.setOneDeck(shuffleOneDeckOnly.shuffleOneDeck(one52CardDeck.getOneDeck()));\n\t\tSystem.out.println(\"Dealer is dealing... Type any keys other than 'H', 'h', 'S', 's' to quit the game at any time...\");\n\t\tSystem.out.println();\n\t\tdealerDeals();\n\t\tdisplayHands();\n\t\t\n\t if (calculateTotal(playerOne.getHand().getCardsInHand())!=21 && calculateTotal(dealerOne.getHand().getCardsInHand())!=21) {\n // System.out.println(playerOne.getName() + \" would you like to hit\n // or stay?\");\n // System.out.println(\"Please type 'H' for HIT or 'S' for STAY.\");\n playerInput();\n }\n\n\t\t// if ((playerOne.getHand().getHandValue() < 21) &&\n\t\t// (dealerOne.getHand().getHandValue() < 21)) {\n\t\t// System.out.println(playerOne.getName() + \" would you like to hit or\n\t\t// stay?\");\n\t\t// System.out.println(\"Please type 'H' for HIT or 'S' for STAY.\");\n\t\t// playerInput();\n\t\t// }\n\n\t\tif (calculateTotal(dealerOne.getHand().getCardsInHand()) == 21) {\n\t\t\tSystem.out.println(dealerOne.getName() + \" has BLACKJACK!\");\n\t\t\tif (playerOne.playerHasBlackJack()) {\n\t\t\t\tSystem.out.println(dealerOne.getName() + \" We both have BLACKJACK! Let's get to the next hand.\");\n\t\t\t\tSystem.out.println();\n//\t\t\t\tSystem.out.println(\"Going to the next hand now!\");\n\t\t\t\t// startBlackJackGame(); // to loop to the next hand --- PUSH\n\t\t\t} else if (playerOne.getHand().getHandValue() < 21) {\n\t\t\t\tSystem.out.println(dealerOne.getName() + \" Sorry, you lose this hand \" + playerOne.getName());\n\t\t\t\tSystem.out.println();\n//\t\t\t\tSystem.out.println(\"Going to the next hand now!\");\n\t\t\t\t// startBlackJackGame(); // to loop to the next hand -- insert\n\t\t\t\t// method to\n\t\t\t\t// take player's chip that they bet\n\n\t\t\t}\n\n\t\t}\n\t\tif (calculateTotal(playerOne.getHand().getCardsInHand()) == calculateTotal(dealerOne.getHand().getCardsInHand())){\n\t\t\tSystem.out.println(\"PUSH!\");\n\t\t}\n\n\t\tif (calculateTotal(playerOne.getHand().getCardsInHand()) == 21) {\n\t\t\tSystem.out.println(playerOne.getName() + \" has BLACKJACK!\");\n\t\t\tif (dealerOne.getHand().getHandValue() < 21) {\n\t\t\t\tSystem.out.println(\"You win this hand \" + playerOne.getName() + \"!\");\n\t\t\t\tSystem.out.println();\n\t\t\t\tSystem.out.println(\"Do you want to play again?\");\n\t\n\t\t\t\tString yesOrNo = kb.nextLine();\n\t\t\t\tif (yesOrNo.equals(\"y\")) {\n\t\t\t\t\t dealerOne.getHand().setCardsInHand(new ArrayList<>());\n\t\t\t\t\t playerOne.getHand().setCardsInHand(new ArrayList<>());\n\t\t\t\t}\n\t\t\t\tstartBlackJackGame();\n\t\t\t\t// insert method to add to player's chips\n\t\t\t\t// startBlackJackGame(); // to loop to the next hand\n\t\t\t}\n\t\t}\n\n\t\t// playerInput();\n\n\t}", "title": "" }, { "docid": "d651c59db363cddfb9805a58d7953d4a", "score": "0.61142176", "text": "@Override\n public void actionPerformed(ActionEvent e) {\n startGame = true;\n// player = JOptionPane.showOptionDialog(frame,\"Choose which player plays first\",\n// \"First Player\",JOptionPane.YES_NO_OPTION,JOptionPane.QUESTION_MESSAGE,null,new Object[]{\"Gold Player\",\"Silver Player\"},\n// null);\n if(r1.isSelected()) {\n s.setPlayer(true);\n agentPlayer = 1;\n }\n else if(r2.isSelected()) {\n s.setPlayer(false);\n agentPlayer = -1;\n }\n player = r3.isSelected()?0:1;\n startButton.setEnabled(false);\n createAgent();\n agentPlay();\n\n\n }", "title": "" }, { "docid": "a7c8175fd2ea164e8f0ff7c11f6db035", "score": "0.61109674", "text": "private void runGame() \n\t{\n\t\t// Print fancy start and player, bet\n\t\tprintPlayersAndBet();\n\t\t\n\t\t// Game over : Dealer has blackjack\n\t\tif ( playerHasBlackJack(getDealer()) )\n\t\t{\n\t\t\t// If other players also have blackjack, they win\n\t\t\tList<Player> playerList = getPlayersList();\n\t\t\tfor ( Player player : playerList )\n\t\t\t{\n\t\t\t\tif ( playerHasBlackJack(player) )\n\t\t\t\t{\n\t\t\t\t\tplayer.getEarnings(2.5);\n\t\t\t\t\tplayer.setActive(false);\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println(\"GAME OVER !!\");\n\t\t\t\n\t\t\t// Show the table the dealer's hand\n\t\t\tgetDealer().printHand();\n\t\t\t\n\t\t\treturn;\n\t\t}\n\t\t\n\t\t// Show the table a single dealer card\n\t\tSystem.out.println(\"DEALER HAS : \" + getDealer().getHand().get(0).toString());\n\n\t\tScanner in = new Scanner(System.in);\n\n\t\t// First check each players card to see if they have BlackJack\n\t\t// Ask each player if they want a card\n\t\tList<Player> playerList = getPlayersList();\n\t\tfor ( Player player : playerList )\n\t\t{\n\t\t\t// Only check active players\n\t\t\tif ( !player.getActive() )\n\t\t\t\tcontinue;\n\t\t\t\n\t\t\tsetCurrentPlayer(player);\n\t\t\t\n\t\t\tplayer.printHand();\n\t\t\t\n\t\t\t// Keep asking for cards until player says no\n\t\t\tBoolean playerSaysHitMe = true;\n\t\t\twhile( playerSaysHitMe )\n\t\t\t{\n\t\t\t\t// If the player has BlackJack, they get 2 point and are removed form the game\n\t\t\t\tif ( playerHasBlackJack(player) )\n\t\t\t\t{\n\t\t\t\t\t// Get the bet * 2.5\n\t\t\t\t\tplayer.getEarnings(2.5);\n\t\t\t\t\tplayer.setActive(false);\n\t\t\t\t\t\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\t// Check if player has crossed BlackJack\n\t\t\t\telse if ( hasPlayerHasCrossedBlackJack(player) )\n\t\t\t\t{\n\t\t\t\t\tplayer.setActive(false);\n\t\t\t\t\tplayer.setBet(0.0);\t\t\t// Reset the bet\n\t\t\t\t\tplayer.setTotal(Card.BLACKJACK+1);\n\t\t\t\t\t\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tSystem.out.println(\"Total : \" + getTotal(player));\n\t\t\t\tSystem.out.println(player.getName() + \", do you want a card ? <hit|hit me|yes|y|no|n|pass>\");\n\t\t\t\t\n\t\t\t\tString playerResponse = in.nextLine();\n\t\t\t\n\t\t\t\t// If player responds Yes/Hit/Hit me/Y deal a card\n\t\t\t\tif ( playerResponse.equalsIgnoreCase(\"yes\") || playerResponse.equalsIgnoreCase(\"y\") || playerResponse.equalsIgnoreCase(\"hit\") || playerResponse.equalsIgnoreCase(\"hit me\") )\n\t\t\t\t{\n\t\t\t\t\ttry \n\t\t\t\t\t{\n\t\t\t\t\t\tCard card = getDeck().drawCard();\n\t\t\t\t\t\tSystem.out.println(\"Got card : \" + card.toString());\n\t\t\t\t\t\tplayer.addToHand(card);\n\t\t\t\t\t} \n\t\t\t\t\tcatch (Exception e) \n\t\t\t\t\t{\n\t\t\t\t\t\tSystem.out.println(e.getMessage());\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t\tplayerSaysHitMe = false;\n\t\t\t}\n\t\t}\n\t\t\n\t\t// Check if there are still active players\n\t\t// If there are, deal cards to the dealer\n\t\tPlayer dealer = getDealer();\n\t\ttry \n\t\t{\n\t\t\tdealer.printHand();\n\t\t\twhile( hasActivePlayers() )\n\t\t\t{\n\t\t\t\t// Compare all players hands with dealers hands\n\t\t\t\tfor ( Player player : playerList )\n\t\t\t\t{\n\t\t\t\t\tif ( player.getActive() )\n\t\t\t\t\t\tcompareHandsWithDealer(player);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif ( hasActivePlayers() )\n\t\t\t\t{\n\t\t\t\t\tCard card = getDeck().drawCard();\n\t\t\t\t\tSystem.out.println(\"DEALER takes card : \" + card.toString());\n\t\t\t\t\tgetDealer().addToHand(card);\n\t\t\t\t\tSystem.out.println(dealer.getName() + \" : \" + getTotal(dealer));\n\t\n\t\t\t\t\t// If the dealer has BlackJack, they get a point and are removed form the game\n\t\t\t\t\tif ( playerHasBlackJack(dealer) )\n\t\t\t\t\t{\n\t\t\t\t\t\tSystem.out.println();\n\t\t\t\t\t\tSystem.out.println(\"Game Over !!\");\n\t\t\t\t\t\treturn;\n\t\t\t\t\t}\n\t\t\t\t\t// Check if dealer has crossed BlackJack\n\t\t\t\t\telse if ( hasPlayerHasCrossedBlackJack(dealer) )\n\t\t\t\t\t{\n\t\t\t\t\t\tSystem.out.println(\"Game Over... PLAYERS WIN!!\");\n\t\t\t\t\t\tfor ( Player player : playerList )\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tif (player.getActive())\n\t\t\t\t\t\t\t\tplayer.getEarnings(2);\n\t\t\t\t\t\t}\n\t\t\t\t\t\treturn;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t} \n\t\tcatch (Exception e) \n\t\t{\n\t\t\te.printStackTrace();\n\t\t}\n\n\t}", "title": "" }, { "docid": "407841b97b25f84148369fb414fedd7a", "score": "0.61106414", "text": "public void apply(ViewFacade view) {\n if (winner == 1) {\n view.send(new SetGameTitleRemote(\"Player 1 wins!\"));\n for (Card c : table.getPile(SlapjackPickupRules.PLAYER2_PILE).getCards()) {\n view.send(new RemoveFromPileRemote(table.getPile(SlapjackPickupRules.CENTER_PILE), c));\n }\n }\n //if player 2 wins\n else {\n view.send(new SetGameTitleRemote(\"Player 2 wins!\"));\n for (Card c : table.getPile(SlapjackPickupRules.PLAYER1_PILE).getCards()) {\n view.send(new RemoveFromPileRemote(table.getPile(SlapjackPickupRules.CENTER_PILE), c));\n }\n }\n //make sure the cards are evenly distributed\n if (table.getPile(SlapjackPickupRules.PLAYER1_PILE).getCards().size() >\n table.getPile(SlapjackPickupRules.PLAYER2_PILE).getCards().size()) {\n for (Card c : table.getPile(SlapjackPickupRules.PLAYER1_PILE).getCards()) {\n table.addToPile(SlapjackPickupRules.PLAYER2_PILE, c);\n table.addToPile(SlapjackPickupRules.CENTER_PILE, c);\n if (table.getPile(SlapjackPickupRules.PLAYER2_PILE).getCards().size() == 26) {\n break;\n }\n }\n for (Card c : table.getPile(SlapjackPickupRules.CENTER_PILE).getCards()) {\n table.removeFromPile(SlapjackPickupRules.PLAYER1_PILE, c);\n view.send(new RemoveFromPileRemote(table.getPile(SlapjackPickupRules.PLAYER1_PILE), c));\n }\n }\n else if (table.getPile(SlapjackPickupRules.PLAYER1_PILE).getCards().size() <\n table.getPile(SlapjackPickupRules.PLAYER2_PILE).getCards().size()) {\n for (Card c : table.getPile(SlapjackPickupRules.PLAYER2_PILE).getCards()) {\n table.addToPile(SlapjackPickupRules.PLAYER1_PILE, c);\n table.addToPile(SlapjackPickupRules.CENTER_PILE, c);\n if (table.getPile(SlapjackPickupRules.PLAYER1_PILE).getCards().size() == 26) {\n break;\n }\n }\n for (Card c : table.getPile(SlapjackPickupRules.CENTER_PILE).getCards()) {\n table.removeFromPile(SlapjackPickupRules.PLAYER2_PILE, c);\n view.send(new RemoveFromPileRemote(table.getPile(SlapjackPickupRules.PLAYER2_PILE), c));\n }\n }\n //Add one card here for checks later in event P1 size == P2 size\n for (Card c : table.getPile(SlapjackPickupRules.PLAYER1_PILE).getCards()) {\n table.addToPile(SlapjackPickupRules.PLAYER1_PILE, c);\n break;\n }\n view.send(new UpdatePileRemote(table.getPile(SlapjackPickupRules.PLAYER1_PILE)));\n view.send(new UpdatePileRemote(table.getPile(SlapjackPickupRules.PLAYER2_PILE)));\n view.send(new UpdatePileRemote(table.getPile(SlapjackPickupRules.CENTER_PILE)));\n\n SlapjackDealButton dealButton = new SlapjackDealButton(\"JackDEAL\", new Location(0, 0));\n\n view.register(dealButton);\n view.send(new CreateButtonRemote(dealButton));\n }", "title": "" }, { "docid": "c9fb071b1a44d6a43283f0f58f011edb", "score": "0.6108193", "text": "@FunctionalInterface\n interface ChooseCardsHandler{\n /**\n * handles the decision the player has made by choosing \"cards\"\n * @param cards the set of cards the player wants to chose\n */\n void onChooseCards(SortedBag<Card> cards);\n }", "title": "" }, { "docid": "d93cd700c332dab70fee5ecf238e4b55", "score": "0.608964", "text": "private void issueCards() {\n\n // checking the remaining cards in the deck\n int remainingCards = blackjackUtil.getnDeck().getnDeck().length\n - blackjackUtil.getnDeck().getIndexToServe();\n\n // when the number of cards in the deck goes below 14, the ndeck is\n // reinitialized\n if (remainingCards < 14) {\n System.out\n .println(\"\\n-----------------------------------------------------------------------------------\");\n System.out\n .println(\"########### Deck does not have enough cards, let's get it ready for you ###########\");\n System.out\n .println(\"-----------------------------------------------------------------------------------\\n\");\n blackjackUtil.reInitializeNDeck();\n }\n\n // Issue cards to participants\n blackjackUtil.issueCard(player);\n blackjackUtil.issueCard(dealer);\n blackjackUtil.issueCard(player);\n blackjackUtil.issueCard(dealer);\n }", "title": "" }, { "docid": "146269722af6b41907d18c61a7385525", "score": "0.6086714", "text": "public static void specialCard() {\n\n switch (specialType) {\n\n case \"Reverse\":\n Game.playDirection *= -1;\n break;\n\n case \"Plus 2\":\n int nextPlayer;\n\n if (Game.turn + Game.playDirection >= 4) {\n\n nextPlayer = 0;\n\n } else if (Game.turn + Game.playDirection <= 0){\n\n nextPlayer = 4;\n\n } else {\n\n nextPlayer = Game.turn + Game.playDirection;\n\n }\n\n Dealer.giveCard(Game.players[nextPlayer], Game.deck, 2);\n break;\n\n case \"Skip\":\n if (Game.turn + Game.playDirection >= 4) {\n\n Game.turn = 0;\n\n } else if (Game.turn + Game.playDirection <= 0){\n\n Game.turn = 4;\n\n } else {\n\n Game.turn = Game.turn + Game.playDirection;\n }\n break;\n\n }\n\n }", "title": "" }, { "docid": "913e335ad76d04527d6eb7c78907a202", "score": "0.6076991", "text": "public Boolean getSingleCard(DeckofCards gameDecks, int cardPos, Scanner sc)\r\n\t{\r\n\t\t// ask if player want to get a card\r\n\t\tSystem.out.println(\"Do you want to get a card (y/n)? : \");\r\n\t\tString answer = \"\";\t\t\r\n\t\tScanner letScan = sc;\r\n\t\tanswer = letScan.next();\r\n\r\n\t\tif(answer.equals(\"y\")) // handle get a card\r\n\t\t{\r\n\t\t\t/* Getting boom, handle boom using defuse */\r\n\t\t\tif(gameDecks.dealCard(cardPos).getCardName().equals(\"Exploding Kitten\"))\r\n\t\t\t{\r\n\t\t\t\tSystem.out.println(\"The drawn card is: \" + gameDecks.dealCard(cardPos).getCardName());\r\n\t\t\t\tgameDecks.removeCard(cardPos);\r\n\t\t\t\t//System.out.println(\"Temp deck AFTER GETTING BOOOOOM have:----------------------------------\\n \" + gameDecks.cardsLeft());\r\n\t\t\t\t// handle boom using defuse\r\n\t\t\t\tif(existenceOfCard(\"Defuse\"))\r\n\t\t\t\t{\r\n\t\t\t\t\tSystem.out.println(\"Do you want to use Defuse (y/n)? :\");\r\n\t\t\t\t\tanswer = letScan.next();\r\n\t\t\t\t\tif(answer.equals(\"y\"))\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tuseDefuse(sc, gameDecks);\r\n\t\t\t\t\t\treturn true;\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tthis.turns = 0;\r\n\t\t\t\t\t\tthis.aliveUsers.remove((Integer) this.id);\t\t\t\t\t\t\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\tthis.turns = 0;\r\n\t\t\t\tthis.aliveUsers.remove((Integer) this.id);\t\r\n\t\t\t\treturn true;\r\n\t\t\t}\r\n\t\t\t/* If not, take card */\r\n\t\t\tSystem.out.println(\"The drawn card is: \" + gameDecks.dealCard(cardPos).getCardName());\r\n\t\t\tthis.playerCards.add(gameDecks.dealCard(cardPos));\r\n\t\t\tgameDecks.removeCard(cardPos);\r\n\t\t\tSystem.out.println(\"Player cards AFTER GETTING a card:----------------------------------\\n \" + this.playerCards);\r\n\t\t\t//System.out.println(\"Remain cards AFTER GETTING a card:----------------------------------\\n \" + gameDecks.cardsLeft());\r\n\t\t\tthis.turns--;\t\t\t\r\n\t\t\treturn true;\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\treturn false;\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "4cab30436bbaf7cd0cd1541e05f325a6", "score": "0.607178", "text": "void playBlackJack() {\n\t\tScanner input = new Scanner(System.in);\n\t\tboolean gameover = false;\n\t\tSystem.out.println(\"Hit it or Quit it: \\nA Console-Based BlackJack Game\");\n\t\twhile (!gameover) {\n\t\t\tif (deck.size() < 10) {\n\t\t\t\tdeck.clear();\n\t\t\t\tdeck = table.newdeck().getDeck();\n\t\t\t\tDealer.shuffle(deck);\n\n\t\t\t}\n\t\t\tstatus3 = true;\n\t\t\tuser.hand.clear();\n\t\t\tDealer.hand.clear();\n\t\t\tstatus1 = 0;\n\t\t\tstatus = 0;\n\t\t\tblackjack = false;\n\t\t\tDealer.shuffle(deck);\n\t\t\tSystem.out.println(\"\\n\" + deck.size() + \" cards left in this deck\");\n\t\t\tSystem.out.println(\"\\nDeal? 1 for yes and 2 for no\");\n\t\t\tint answer = input.nextInt();\n\t\t\tswitch (answer) {\n\t\t\tcase 1:\n\t\t\t\tGame();\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\tSystem.out.println(\"\\nGoodbye\");\n\t\t\t\tSystem.exit(0);\n\t\t\t\t;\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "82a128992c5303997051cdc3617bd626", "score": "0.6069833", "text": "public void runFirstAction(GameController gameController, Card myCard, Card opponentCard) {\n\n }", "title": "" }, { "docid": "0fa8483a1fe001cb44716d7823896486", "score": "0.6059485", "text": "public void choice(int k) {\n\t\tList<Card> bo = new ArrayList<>();\n\t\tList<Card> lieng = new ArrayList<>();\n\t\tList<Card> chat = new ArrayList<>();\n\t\tbo.add(cards.get(k));\n\n\t\tlieng.add(cards.get(k));\n\n\t\tchat.add(cards.get(k));\n\t\tif (chuaxet[k]) {\n\n\t\t\tint countlieng = 1;\n\t\t\tint countchat = 1;\n\t\t\tint j = k;\n\t\t\tint c = k;\n\n\t\t\tfor (int i = 0; i < cards.size(); i++) {\n\t\t\t\tif (i != k && cards.get(i).getNumber() == cards.get(k).getNumber() && chuaxet[i]) {\n\t\t\t\t\tbo.add(cards.get(i));\n\t\t\t\t}\n\t\t\t\tif (i != k && cards.get(i).getNumber() == cards.get(j).getNumber() + 1 && countlieng <= 5 && chuaxet[i]\n\t\t\t\t\t\t&& chuaxet[j]) {\n\t\t\t\t\tcountlieng++;\n\t\t\t\t\tj = i;\n\t\t\t\t\tlieng.add(cards.get(i));\n\t\t\t\t}\n\t\t\t\tif (i != k && cards.get(i).getMeterial().equals(cards.get(c).getMeterial()) && countchat <= 5\n\t\t\t\t\t\t&& chuaxet[i] && chuaxet[c]) {\n\t\t\t\t\tcountchat++;\n\t\t\t\t\tc = i;\n\t\t\t\t\tchat.add(cards.get(i));\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tchiBo.add(bo);\n\t\tchiLieng.add(lieng);\n\t\tchiChat.add(chat);\n\t\tif (k < cards.size() - 1)\n\t\t\tchoice(++k);\n\n\t}", "title": "" }, { "docid": "56d2eb8396b3c90e0fce4a2fafee73db", "score": "0.60522205", "text": "public void onPlay(Player player) {\n player.addActions(1);\n\n boolean[] discardDecisions = new boolean[player.handSize()];\n // Asking the player for decisions\n // Setting an array value to true means the player wants to discard the card at that position\n player.onCellar(discardDecisions);\n\n // Once the player has made a decision, discard the cards they specified.\n // The number of discarded cards is kept so that you know how many to draw later.\n int numCardsDiscarded = 0;\n\n for (int i = discardDecisions.length - 1; i >= 0; i--) {\n if (discardDecisions[i]) { // i.e. you want to discard this card\n player.discardFromHand(i);\n numCardsDiscarded++;\n }\n }\n\n player.drawToHand(numCardsDiscarded);\n }", "title": "" }, { "docid": "dec8c4f653dbd579a9aa7940e210a7cd", "score": "0.60447687", "text": "private void dealCards(){\n\t\t//get the player's cards\n\t\t//Check to see if there are enough cards and, if not, get a new shuffled deck.\t\n\t\tif(deck.size()>1){\n\t\t\tplayer.setPlayersCards(deck.get(0));\n\t\t\tplayer.setPlayersCards(deck.get(1));\t\n\t\t}else{\n\t\t\tDeck newDeck = new Deck();\n\t\t\tdeck = newDeck.getShuffledDeck();\n\t\t\tplayer.setPlayersCards(deck.get(0));\n\t\t\tplayer.setPlayersCards(deck.get(1));\n\t\t}\n\t\t//Remove those cards from the deck.\n\t\tdeck.removeAll(player.getPlayersCards());\n\t\tif(deck.size()>1){\n\t\t\t dealersCards.add(deck.get(0));\n\t\t\t dealersCards.add(deck.get(1));\n\t\t}else{\n\t\t\tDeck newDeck = new Deck();\n\t\t\tdeck = newDeck.getShuffledDeck();\n\t\t\tdealersCards.add(deck.get(0));\n\t\t\tdealersCards.add(deck.get(1));\n\t\t}\n\t\tdeck.removeAll(dealersCards);//Remove those cards from the deck\t\n\t}", "title": "" }, { "docid": "179930a7d117abaf8e809b5b8d092424", "score": "0.6038624", "text": "public Result blackjackInitialization(){\n //Remove test data before the assignment is due\n //=================================================================================\n String backURL = \"assets/cards/cardback.jpg\";\n\n Hand dealerHand = new Hand();\n dealerHand.cards.add(new Card(backURL, \"assets/cards/2Clubs.png\", false));\n dealerHand.cards.add(new Card(\"assets/cards/7Clubs.png\", backURL, true));\n dealerHand.status = \"\";\n\n Hand playerHand = new Hand();\n playerHand.cards.add(new Card(\"assets/cards/14Diamonds.png\", backURL, true));\n playerHand.cards.add(new Card(\"assets/cards/6Clubs.png\", backURL, true));\n playerHand.bet = 2;\n playerHand.status = \"\";\n playerHand.handOptions.add(new Option(\"hit\", \"Hit\"));\n playerHand.handOptions.add(new Option(\"stay\", \"Stay\"));\n playerHand.handOptions.add(new Option(\"doubleDown\", \"Double Down\"));\n playerHand.handOptions.add(new Option(\"split\", \"Split\"));\n\n Hand playerHand2 = new Hand();\n playerHand2.cards.add(new Card(\"assets/cards/14Diamonds.png\", backURL, true));\n playerHand2.cards.add(new Card(\"assets/cards/7Hearts.png\", backURL, true));\n playerHand2.cards.add(new Card(\"assets/cards/12Hearts.png\", backURL, true));\n playerHand2.bet = 4;\n playerHand2.status = \"\";\n playerHand2.handOptions.add(new Option(\"hit\", \"Hit\"));\n playerHand2.handOptions.add(new Option(\"stay\", \"Stay\"));\n playerHand2.handOptions.add(new Option(\"doubleDown\", \"Double Down\"));\n playerHand2.handOptions.add(new Option(\"split\", \"Split\"));\n\n Hand playerHand3 = new Hand();\n playerHand3.cards.add(new Card(\"assets/cards/14Diamonds.png\", backURL, true));\n playerHand3.cards.add(new Card(\"assets/cards/12Diamonds.png\", backURL, true));\n playerHand3.bet = 2;\n playerHand3.status = \"\";\n playerHand3.handOptions.add(new Option(\"hit\", \"Hit\"));\n playerHand3.handOptions.add(new Option(\"stay\", \"Stay\"));\n playerHand3.handOptions.add(new Option(\"doubleDown\", \"Double Down\"));\n playerHand3.handOptions.add(new Option(\"split\", \"Split\"));\n\n Blackjack blackjack = new Blackjack();\n\n blackjack.errorState = false;\n blackjack.gameOptions.add(new Option(\"newRound\", \"Deal\"));\n blackjack.dealerTurnInProgress = false;\n blackjack.playerBalance = 1;\n blackjack.dealerHand = dealerHand;\n blackjack.playerHands.add(playerHand);\n blackjack.playerHands.add(playerHand2);\n blackjack.playerHands.add(playerHand3);\n //=================================================================================\n //Remove test data before the assignment is due\n //=================================================================================\n\n return Results.json().render(blackjack);\n }", "title": "" }, { "docid": "b428d70d9bbbc4e531a8718ecc6927bd", "score": "0.6033517", "text": "public void dealCards();", "title": "" }, { "docid": "3a11ab4242b94d671a66346b25e1765e", "score": "0.6030982", "text": "public static void main(String[] args) {\r\n\t\t\r\n\t\t//Declare needed variables\r\n\t\tgameDeck = Deck.getDeck(); //Get deck from Deck class\r\n\t\tint c = 0;\r\n\t\tint valueCount = 0;\r\n\t\tint choice = 0; //Main menu choice variable\r\n\t\tint gameChoice = 0; //Game menu choice variable\r\n\t\t\r\n\t\tdo {\r\n\t\t\tchoice = Integer.parseInt(JOptionPane.showInputDialog(\"Main Menu: \"\r\n\t\t\t\t+ \"\\n1. View the rules of Black Jack\"\r\n\t\t\t\t+ \"\\n2. Enter Player One name\"\r\n\t\t\t\t+ \"\\n3. Play Game\"\r\n\t\t\t\t+ \"\\n4. Exit Menu\"));\r\n\t\t\t\r\n\t\t\tswitch (choice) {\r\n\t\t\tcase 1:\r\n\t\t\t\tJOptionPane.showMessageDialog(null, \"Rules:\"\r\n\t\t\t\t\t\t+ \"\\n1. This is a one Player game.\"\r\n\t\t\t\t\t\t+ \"\\n2. Player attempts to beat the dealer by getting a count as close to 21 as possible, without going over 21.\"\r\n\t\t\t\t\t\t+ \"\\n3. It is up to the player if an ace is worth 1 or 11.\"\r\n\t\t\t\t\t\t+ \"\\n4. Face cards are 10 and any other card is its pip value.\"\r\n\t\t\t\t\t\t+ \"\\n5. Before the deal begins, player will place a bet.\"\r\n\t\t\t\t\t\t+ \"\\n6. Bets cannot be lower than $2 or higher than $500.\");\r\n\t\t\t\tbreak;\r\n\t\t\tcase 2:\r\n\t\t\t\tplayer1 = JOptionPane.showInputDialog(\"Enter Player 1's Name: \");\r\n\t\t\t\tplayer1 = player1.trim();\r\n\t\t\t\t\r\n\t\t\t\t//Validation loop to make sure a player name is entered\r\n\t\t\t\twhile ((player1.equals(\"\"))) {\r\n\t\t\t\t\t\tplayer1 = JOptionPane.showInputDialog(\"Please enter a name for player 1: \");\r\n\t\t\t\t}\r\n\t\t\t\t//Print out player's name in console\r\n\t\t\t\tSystem.out.println(\"Player One: \" + player1);\r\n\t\t\t\tbreak;\r\n\t\t\t\t\r\n\t\t\tcase 3:\r\n\t\t\t\tplayer1Bet = Double.parseDouble(JOptionPane.showInputDialog(player1 + \" how much would you like to bet?\"\r\n\t\t\t\t\t\t+ \"\\n You can only between $2 to $500. \"));\r\n\t\t\t\t\r\n\t\t\t\t//Validation loop to make sure user enters a number between 2 and 500\r\n\t\t\t\twhile(player1Bet < 2 || player1Bet > 500) {\r\n\t\t\t\t\tplayer1Bet = Double.parseDouble(JOptionPane.showInputDialog(player1 + \" you can only bet between $2 and $500.\"));\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\t//Turn Deck into list and then shuffle\r\n\t\t\t\tList cards = Arrays.asList(gameDeck);\r\n\t\t\t\tCollections.shuffle(cards);\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\tdo {\r\n\t\t\t\t\tgameChoice = Integer.parseInt(JOptionPane.showInputDialog(\"Make a choice: \"\r\n\t\t\t\t\t\t+ \"\\n1. Hit me.\"\r\n\t\t\t\t\t\t+ \"\\n2. Show Card.\"\r\n\t\t\t\t\t\t+ \"\\n3. Stand.\"));\r\n\t\t\t\t\r\n\t\t\t\t\tif (gameChoice == 1) {\r\n\t\t\t\t\t\tdealCardPlayer1(c); //Method to deal out cards\r\n\t\t\t\t\t\tc++; //increment c\r\n\t\t\t\t\t}else if (gameChoice == 2) {\r\n\t\t\t\t\t\tSystem.out.println(playerCards); //Print out player's cards\r\n\t\t\t\t\t\tvalue = value + cardValue(playerCards, valueCount); //running total of player's card values\r\n\t\t\t\t\t\tSystem.out.println(\"Value: \" + value); //Print out value\r\n\t\t\t\t\t\tvalueCount += 1; //Incremented count to more to next index in array\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t//If player's value ends up being over 21 they lose and dealer wins\r\n\t\t\t\t\t\tif (value > 21) {\r\n\t\t\t\t\t\t\tJOptionPane.showMessageDialog(\r\n\t\t\t\t\t\t\t\t\tnull, //parentComponent \r\n\t\t\t\t\t\t\t\t\t\"BUST!\"\r\n\t\t\t\t\t\t\t\t\t+ \"\\nYou've gone over 21 you lose $\" + player1Bet,//message, \r\n\t\t\t\t\t\t\t\t\t\"Result\", \r\n\t\t\t\t\t\t\t\t\tJOptionPane.PLAIN_MESSAGE, \r\n\t\t\t\t\t\t\t\t\tnull);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t} while (gameChoice < 3 && gameChoice > 0);\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t} while (choice > 0 && choice < 4);\r\n\r\n\t}", "title": "" }, { "docid": "48d98d52ac733f98c3dee0899e54b42f", "score": "0.60252064", "text": "public PlayGame() {\r\n//\t\tsetup Cards Info\r\n\t\tcards = new Cards();\r\n//\t\tsetup players\r\n\t\tplayers = new ArrayList<Player>();\r\n\t\tfor (int index = 0; index < 4; index++)\r\n\t\t\tplayers.add( new Player(index) );\r\n//\t\tdealing\r\n\t\tArrayList<Integer> numList = getRandNum(54);\r\n\t\tfor(int i = 0 ; i < 14 ; i++)\tplayers.get(0).addCard( numList.get(i) );\r\n\t\tfor(int i = 14 ; i < 28 ; i++)\tplayers.get(1).addCard( numList.get(i) );\r\n\t\tfor(int i = 28 ; i < 41 ; i++)\tplayers.get(2).addCard( numList.get(i) );\r\n\t\tfor(int i = 41 ; i < 54 ; i++)\tplayers.get(3).addCard( numList.get(i) );\r\n//\t\tprint deal message\r\n\t\tSystem.out.println(\"Deal cards\");\r\n\t\tfor(Player player : players) {\r\n\t\t\tSystem.out.print( String.format( Locale.getDefault(), \"Player%d:\", player.getIndex() ) );\r\n\t\t\tfor(int card : player.getCardList() )\tSystem.out.print( \" \" + cards.getCardString(card) );\r\n\t\t\tSystem.out.println();\r\n\t\t}\r\n//\t\tdropping\r\n\t\tfor(Player player : players)\tplayer.drop();\r\n//\t\tprint drop message\r\n\t\tSystem.out.println(\"Drop cards\");\r\n\t\tfor(Player player : players) {\r\n\t\t\tSystem.out.print( String.format( Locale.getDefault(), \"Player%d:\", player.getIndex() ) );\r\n\t\t\tfor(int card : player.getCardList() )\tSystem.out.print( \" \" + cards.getCardString(card) );\r\n\t\t\tSystem.out.println();\r\n\t\t}\r\n//\t\tprint start message\r\n\t\tSystem.out.println(\"Game start\");\r\n//\t\tcheck if there's a player having no cards\r\n\t\tPlayer tmp0 = players.get(0), tmp1 = players.get(1);\r\n\t\tif( tmp0.isWinner() && tmp1.isWinner() )\tSystem.out.println(\"Player0 and Player1 win\");\r\n\t\telse if( tmp0.isWinner() )\tSystem.out.println(\"Player0 wins\");\r\n\t\telse if( tmp1.isWinner() )\tSystem.out.println(\"Player1 wins\");\r\n\t\tif( tmp0.isWinner() )\tplayers.remove(tmp0);\r\n\t\tif( tmp1.isWinner() )\tplayers.remove(tmp1);\r\n\t\tstart();\r\n\t}", "title": "" }, { "docid": "d8f79aacf1e16e21b94969ec8ec6dbf5", "score": "0.6019582", "text": "private void checkHands() {\r\n ArrayList<Card> sortedHand = new ArrayList<Card>(playerHand);\r\n Collections.sort(sortedHand, new CompareCards());\r\n //System.out.println(sortedHand);\r\n int sorter = -1;\r\n if (RoyalFlush(sortedHand)) {\r\n sorter = 8;\r\n } else if (StraightFlush(sortedHand)) {\r\n sorter = 7;\r\n } else if (FourOfAKind(sortedHand)) {\r\n sorter = 6;\r\n } else if (FullHouse(sortedHand)) {\r\n sorter = 5;\r\n } else if (Flush(sortedHand)) {\r\n sorter = 4;\r\n } else if (Straight(sortedHand)) {\r\n sorter = 3;\r\n } else if (ThreeOfAKind(sortedHand)) {\r\n sorter = 2;\r\n } else if (TwoPair(sortedHand)) {\r\n sorter = 1;\r\n } else if (Pair(sortedHand)) {\r\n sorter = 0;\r\n }\r\n\r\n \r\n YourHand();\r\n\r\n switch (sorter) {\r\n\r\n case 0:\r\n System.out.println(goodHandTypes[sorter]);\r\n playerBalance +=( playerBet *= multipliers[sorter]);\r\n\r\n break;\r\n case 1:\r\n System.out.println(goodHandTypes[sorter]);\r\n playerBalance +=(playerBet *= multipliers[sorter]);\r\n \r\n break;\r\n case 2:\r\n System.out.println(goodHandTypes[sorter]);\r\n playerBalance +=(playerBet *= multipliers[sorter]);\r\n\r\n break;\r\n case 3:\r\n System.out.println(goodHandTypes[sorter]);\r\n playerBalance +=(playerBet *= multipliers[sorter]);\r\n\r\n break;\r\n case 4:\r\n System.out.println(goodHandTypes[sorter]);\r\n playerBalance +=(playerBet *= multipliers[sorter]);\r\n\r\n break;\r\n case 5:\r\n System.out.println(goodHandTypes[sorter]);\r\n playerBalance +=(playerBet *= multipliers[sorter]);\r\n\r\n break;\r\n case 6:\r\n System.out.println(goodHandTypes[sorter]);\r\n playerBalance +=(playerBet *= multipliers[sorter]);\r\n\r\n break;\r\n case 7:\r\n System.out.println(goodHandTypes[sorter]);\r\n playerBalance +=(playerBet *= multipliers[sorter]);\r\n\r\n break;\r\n case 8:\r\n System.out.println(goodHandTypes[sorter]);\r\n playerBalance +=(playerBet *= multipliers[sorter]);\r\n\r\n break;\r\n\r\n default:\r\n System.out.println(\"You lost! \");\r\n playerBet = 0;\r\n break;\r\n }\r\n\r\n }", "title": "" }, { "docid": "61760345d90050bbf3fa9002b7b81854", "score": "0.601561", "text": "private void checkForBlackJack(){\n\t\t//Get the values of each card and addthem together. If they equal 21, player has a blackjack.\n\t\tif(player.getPlayersCards().get(0).getCardValue() + player.getPlayersCards().get(1).getCardValue() == 21){\n\t\t\tmessageToPlayer(\"BLACKJACK!! \");\n\t\t\t//If player has blackjack, check to see if the card the dealer is showing is an ace or a \"10\" card. If not, player wins.\n\t\t\tif(dealersCards.get(0).getCardValue() != 14 && dealersCards.get(0).getCardValue() != 10){//Player wins because dealer cannot have a blackjack\n\t\t\t\tmessageToPlayer(\"You win! Blackjack pays 3:2.\");\n\t\t\t\tint payout = player.getCurrentWager() + (int)(1.5*player.getCurrentWager()+.5);//Calculate the payout amount based on a 3:2 payout.\n\t\t\t\tplayer.setWinnings(player.getWinnings() + payout);//pass the payout to the player to add to the total winnings.\n\t\t\t\tplayer.setCurrentWager(0);//Reset the player's current wager until the next hand.\n\t\t\t}else{//Dealer is showing either a 10 value or an ace, so turn over his other card and see if it's a blackjack\n\t\t\t\tmessageToPlayer(\"Checking dealer's hand for BlackJack\");\n\t\t\t\tdealDealerOneCard();//Give the dealer one more card\n\t\t\t\tdisplayCards(dealersCards.get(dealersCards.size()-1));//Display that card to the screen\n\t\t\t\tif(totalCards(dealersCards) == 21){\n\t\t\t\t\tmessageToPlayer(\"Push!\");\n\t\t\t\t}else{//Either the dealer has busted or he is short. Either way, player wins.\n\t\t\t\t\tmessageToPlayer(\"You win! Blackjack pays 3:2.\");\n\t\t\t\t\tint payout = player.getCurrentWager() + (int)(1.5*player.getCurrentWager()+.5);//Calculate the payout amount based on a 3:2 payout.\n\t\t\t\t\tplayer.setWinnings(player.getWinnings() + payout);//pass the payout to the player to add to the total winnings.\n\t\t\t\t\tplayer.setCurrentWager(0);//Reset the player's current wager until the next hand.\n\t\t\t\t}\n\t\t\t}\n\t\t\tif(player.getWinnings() > 0){//Check that that player has enough money to make another bet before prompting.\n\t\t\t\tchar playAgain = getYorNAnswer(\"Play again? Y/N\");\n\t\t\t\tif(playAgain == 'Y'){\n\t\t\t\t\tplayer.setCurrentWager(0);//Reset the player's current wager before restarting. Total \"winnings\" stays the same.\n\t\t\t\t\tplayer.removePlayersCards();//Clear out the players cards to start again.\n\t\t\t\t\tdealersCards.clear();//Clear out the dealers cards to start again.\n\t\t\t\t\tplayGame(player);\n\t\t\t\t}else{\n\t\t\t\t\tmessageToPlayer(\"Thanks for playing. You have \" + player.getWinnings() + \" dollars.\");\n\t\t\t\t\tSystem.exit(0);//Close game.\n\t\t\t\t}\n\t\t\t}else{\n\t\t\t\tmessageToPlayer(\"I'm sorry, but you don't have enough money.\");\n\t\t\t\t\tmessageToPlayer(\"Game OVER!\");\n\t\t\t\t\tSystem.exit(0);\n\t\t\t\t\n\t\t\t}\n\t\t}\t\n\t}", "title": "" }, { "docid": "247b4babf11bc8e90a09107fc37eb653", "score": "0.6012229", "text": "@Override\r\n public void handle(MouseEvent event) {\n player.takeCard(deck.drawCard());\r\n playerScore.setText(\"Player: \" + player.getValue());\r\n if(player.getValue() >= 21){\r\n endGame();\r\n }\r\n }", "title": "" }, { "docid": "5fcec98a2f874e1f8dc316d890c65fdf", "score": "0.6012167", "text": "public void mouseClicked(MouseEvent event)\n {\n if (b.isHit(event.getX(), event.getY()) && !CardListener.isWon())\n {\n int cardsAdded;\n do\n {\n cardsAdded = 0;\n for (Card c : cards)\n {\n //System.out.println(c.fullToString());\n if (c.isFaceUp() && c.isTopAt(c.getX() + Card.CARD_WIDTH, c.getY() + Card.CARD_HEIGHT) && (c.getLocation().equals(Card.Location.DECK) || c.getLocation().equals(Card.Location.PILE)))\n {\n //System.out.println(c.toString() + \" is eligible\");\n for (Foundation f : foundations)\n {\n if (f.canAddCard(c))\n {\n if (c.getLocation().equals(Card.Location.DECK))\n {\n Deck deck = Solitaire.getDeck();\n deck.removeTop();\n }\n else\n {\n Pile p = Solitaire.whichPileIsHit(c.getX());\n p.removeLastCard();\n p.flipLastCard();\n }\n f.addCard(c);\n cardsAdded++;\n break;\n }\n }\n }\n }\n //System.out.println(\"---------------------------------\");\n Solitaire.drawScreen();\n CardListener.checkForWin();\n } while (cardsAdded != 0);\n }\n }", "title": "" }, { "docid": "fdb48b82daf98eac9f80817099915eac", "score": "0.60050213", "text": "@Test\n public void testRequestedCards() {\n GameFactory factory = new GameFactory();\n GameClass game = new GameClass(factory);\n game.initializeGoFishGame();\n\n Rank rank = new RankClass(RANK_NAME_TWO, RANK_PIPS_TWO);\n Suit suit = new SuitClass(SUIT_NAME_DIAMONDS, SUIT_SYMBOL_DIAMONDS);\n Card card = new CardClass(rank, suit);\n\n NewHand player = new NewHandClass();\n\n player.accept(card);\n player.accept(card);\n player.accept(card);\n player.accept(card);\n\n List<Card> cardList = game.getRequestedCards(player, rank);\n\n assertEquals(4, cardList.size());\n\n }", "title": "" }, { "docid": "662fab5de31cadb8475388cefd1cdf00", "score": "0.59982806", "text": "private void askForChoice() {\n if (csModels.size() == 1) {\n String toSpeak = \"Say 1 for option 1 after the beep.\";\n String utteranceId = \"AskChoice\";\n addressSelectorTTS.speak(toSpeak, utteranceId);\n } else if (csModels.size() == 2) {\n String toSpeak = \"Choose one of the option. Say 1 for option 1, 2 for option 2 after\" +\n \" the beep.\";\n String utteranceId = \"AskChoice\";\n addressSelectorTTS.speak(toSpeak, utteranceId);\n } else {\n String toSpeak = \"Choose one of the option. Say 1 for option 1, 2 for option 2 and 3\" +\n \" for option 3 after the beep.\";\n String utteranceId = \"AskChoice\";\n addressSelectorTTS.speak(toSpeak, utteranceId);\n }\n }", "title": "" }, { "docid": "88fa564db643421a83589ebcb1ccef4e", "score": "0.5996763", "text": "@Override\n public void onClick(View v) {\n boolean temp=true;\n for(int i = 0; i<difficulty; i++){\n if(checked[i]==false)\n temp=false;\n }\n if (temp==true)\n finish();\n //Reveals all cards\n for(Button button : cards){\n button.setTextColor(Color.WHITE);\n }\n for(int i=0; i<checked.length; i++){\n checked[i]=true;\n }\n checkScore();\n\n }", "title": "" }, { "docid": "d16f0d74723a767e5560586d237f3df5", "score": "0.599532", "text": "public static boolean updateCard(Card card) {\r\n\t\tint selection = 0;\r\n\r\n\t\twhile (true) {\r\n\t\t\tdrawTitle();\r\n\t\t\tcard.displayCard(cardRow, cardCol, true, selection, true);\r\n\t\t\tdrawSaveCancel(selection - card.getNumberOfFields());\r\n\r\n\t\t\twhile (true) {\r\n\t\t\t\tint input = Util.requestChoiceBase();\r\n\t\t\t\tif (input == 0) {\r\n\t\t\t\t\tif (selection == card.getNumberOfFields()) {\r\n\t\t\t\t\t\treturn true;\r\n\t\t\t\t\t} else if (selection == card.getNumberOfFields() + 1) {\r\n\t\t\t\t\t\treturn false;\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tDisplay.setColor(Color.WHITE, Color.BLACK);\r\n\t\t\t\t\t\tcard.fillField(selection, creatorRow + 2, creatorCol);\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t}\r\n\t\t\t\t} else {\r\n\t\t\t\t\tselection = Math.max(Math.min(selection + input, card.getNumberOfFields()+1), 0);\r\n\t\t\t\t}\r\n\r\n\t\t\t\tcard.displayCard(cardRow, cardCol, false, selection, true);\r\n\t\t\t\tdrawSaveCancel(selection - card.getNumberOfFields());\r\n\t\t\t}\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "6e6e5e49fca95fd9e8eb2ef456b080e5", "score": "0.59863", "text": "public static void drawCard(int numPlayer) {\n\t\twildcards drawn = new wildcards(\"\", 'd', 0);\n\t\tCollections.shuffle(wildcards);\n\t\tdrawn = wildcards.get(0);\n\t\tswitch (drawn.getEff()) {\n\t\tcase 'g':\n\t\t\t//call method to add to or subtract from grade metric\n\t\t\tSystem.out.println(Integer.toString(drawn.getEffectVal()) + \" has been added to grades\");\n\t\t\tplayers[numPlayer].setPlayerGrades(players[numPlayer].getGrades() + drawn.getEffectVal());\n\t\t\tif(players[numPlayer].getIsAI() == false) {\n\t\t\ttry {\n\t\t\t\tnew wildcardHandler().display(drawn.getDisc(), \"grades score\", Integer.toString(drawn.getEffectVal()));\n\t\t\t} catch (IOException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t}}\n\t\t\tbreak;\n\t\tcase 's':\n\t\t\t//call method to add to or subtract from social metric\n\t\t\tSystem.out.println(Integer.toString(drawn.getEffectVal()) + \" has been added to social\");\n\t\t\tplayers[numPlayer].setPlayerSocial(players[numPlayer].getSocial() + drawn.getEffectVal());\n\t\t\tif(players[numPlayer].getIsAI() == false) {\n\t\t\ttry {\n\t\t\t\tnew wildcardHandler().display(drawn.getDisc(), \"social score\", Integer.toString(drawn.getEffectVal()));\n\t\t\t} catch (IOException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t}}\n\t\t\tbreak;\n\t\tcase 'b':\n\t\t\tSystem.out.println(Integer.toString(drawn.getEffectVal()) + \" has been added to both grades and social\");\n\t\t\tplayers[numPlayer].setPlayerGrades(players[numPlayer].getGrades() + drawn.getEffectVal());\n\t\t\tplayers[numPlayer].setPlayerSocial(players[numPlayer].getSocial() + drawn.getEffectVal());\n\t\t\tif(players[numPlayer].getIsAI() == false) {\n\t\t\ttry {\n\t\t\t\tnew wildcardHandler().display(drawn.getDisc(), \"grades and social score\", Integer.toString(drawn.getEffectVal()));\n\t\t\t} catch (IOException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\tbreak;\n\t\t}}\n\t}", "title": "" }, { "docid": "df09920d9b4d1aa77f1e538ce63bc317", "score": "0.59839785", "text": "public void setCards() {\n\t\tSystem.out.println(\"setCardQuestions method in CardsPageController class has been activated...\");\n\t\tSystem.out.println(\"method is looking for cards in the deck with id \" + deckNum);\n\t\tDb db = new Db();\n\t\tcardList = db.returnCards(deckNum);\n\t\n\t}", "title": "" }, { "docid": "fd3239a3788ccc8b41f76a1fc561cf39", "score": "0.5983873", "text": "public Command createCardCommand() {\r\n \r\n playingCard= getCurrentPlayedCard();\r\n \r\n switch (playingCard.getCardType() ) {\r\n \r\n case Card.HQCARD :\r\n {\r\n switch(playingCard.getHQType()){\r\n case Card.FORCED_MARCH : {\r\n setCardCommand( new CardCommands.ForcedMarchCommand(attachedCommand, playingCard, game.getCurrentPlayer().getName()) );\r\n return getCardCommand();\r\n }\r\n case Card.WITHDRAW : {\r\n /*\r\n We create it in 2 steps - first in attack dialog we choose withdraw action button which trigger another dialog window \r\n when we have to choose where witdraw to.\r\n */\r\n setCardCommand( new CardCommands.WithrdawCommand(attachedCommand, playingCard, game.getCurrentPlayer().getName()) );\r\n return getCardCommand();\r\n }\r\n case Card.SUPPLY : {\r\n setCardCommand( new CardCommands.ForcedMarchCommand(attachedCommand, playingCard, game.getCurrentPlayer().getName()) );\r\n return getCardCommand();\r\n }\r\n default: {\r\n setCardCommand(new CardCommands.MoveToTableCommand(playingCard, game.getCurrentPlayer().getName()));\r\n return getCardCommand();\r\n } //if any card selected temp\r\n }\r\n } \r\n case Card.UNIT :\r\n {\r\n \r\n if(game.getPhase() == Game.COMBAT)\r\n return new CardCommands.AttackCommand(\r\n getAttackedUnit(), \r\n playingCard,\r\n game.getCurrentPlayer().getName(),\r\n game.getSelectedUnit(), \r\n game.getMap().getTerrainAtPosition(game.getSelectedUnit().getPosition()), \r\n game.getMap().getTerrainAtPosition(getAttackedUnit().getPosition())\r\n );\r\n else if(game.getPhase() == Game.RESTORATION)\r\n {\r\n Command restoreCommand = new RestoreUnitCommand(game.getCurrentPlayer().getName(),\r\n game.getSelectedUnit(),\r\n playingCard);\r\n return restoreCommand;\r\n \r\n }\r\n \r\n } \r\n \r\n \r\n default: {\r\n setCardCommand(new CardCommands.MoveToTableCommand(playingCard, game.getCurrentPlayer().getName())) ;\r\n return getCardCommand();\r\n } //if any card selected temp\r\n }\r\n }", "title": "" }, { "docid": "6aa8f2eaca2ac6785fa86e0694845091", "score": "0.59829843", "text": "public void takeCard(Card card)\n {\n switch (card.getCardType())\n {\n case DEDICATION:\n ArrayList<Integer> list;\n if (dedicationTokenList.containsKey(((DedicationToken) card)\n .getColor()))\n {\n list = dedicationTokenList.get(((DedicationToken) card)\n .getColor());\n list.add(card.getIndex());\n\n } else\n {\n list = new ArrayList<Integer>();\n list.add(card.getIndex());\n\n }\n dedicationTokenList.put(((DedicationToken) card).getColor(), list);\n break;\n\n case FAVOR:\n favorTokenList.add(card.getIndex());\n break;\n case LATERN:\n ArrayList<Integer> list1;\n if (lanternList.containsKey(((LanternCard) card).getColor()))\n {\n list1 = lanternList.get(((LanternCard) card).getColor());\n list1.add(card.getIndex());\n\n } else\n {\n list1 = new ArrayList<Integer>();\n list1.add(card.getIndex());\n\n }\n lanternList.put(((LanternCard) card).getColor(), list1);\n break;\n\n case LAKETILE:\n lakeTileList.add(card.getIndex());\n // we may need to sort\n // Collections.sort(m_lakeTileList);\n break;\n }\n }", "title": "" }, { "docid": "ccacb394d4d4bae2e313c690e0e32d83", "score": "0.5976594", "text": "public void prompt(Card[][] deck, ArrayList<Card> hand, Dealer dealer, int ace_value) {\n\t\tif(playerActive) {\n\t\t\tScanner reader = new Scanner(System.in);\n\t\t\tSystem.out.print(\"Would like to hit or stay? Your total is \" + playerTotal + \" \");\n\t\t\tString answer = reader.next();\n\t\t\tif(answer.equals(\"hit\")) {\n\t\t\t\tif(playerTotal == 21) {\n\t\t\t\t\tSystem.out.println(\"You win!\");\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\tplayerHit(deck, hand, dealer, ace_value);\n\t\t\t} else if(answer.equals(\"stay\")) {\n\t\t\t\tplayerActive = false;\n\t\t\t\tif(playerTotal == 21) {\n\t\t\t\t\tSystem.out.println(\"You win!\");\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\tdealer.dealerHit(deck, hand, ace_value);\n\t\t\t\tdealer.dealerPlay(deck, hand, ace_value);\n\t\t\t\twinner(dealer);\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"I couldn't understand that, maybe try again? \");\n\t\t\t\tprompt(deck, hand, dealer, ace_value);\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "a05893202718edbfa409024fdb154190", "score": "0.5975623", "text": "@Test\r\n\tpublic void testHandCardClicked() {\n\t\tController control = new Controller();\r\n\t\tCard card = new Card(\"Teste\", \"CartaTeste\", 10, \"Descrição\", 0, null);\r\n\t\tBattlePlatform platform = new BattlePlatform(new Deck(), new Deck(),\r\n\t\t\t\tnew BattleMap(\"\"), new DefaultRules());\r\n\t\tplatform.addPlayerHandCard(card);\r\n\t\tplatform.addPlayerHandCard(card);\r\n\t\tplatform.addPlayerHandCard(card);\r\n\t\tplatform.addPlayerHandCard(card);\r\n\t\tplatform.addPlayerHandCard(card);\r\n\t\tcontrol.handCardClicked(card, true);\r\n\t\tassertEquals(card, platform.getSelectedCard());\r\n\t}", "title": "" }, { "docid": "4c06e4383008e34cda5ea3f809a365fd", "score": "0.59752035", "text": "@Override\n public boolean doAction(String value) {\n Player player = new Player();\n player.setName(\"Bree\");\n try {\n player.setExperience(20);\n } catch (ExperienceControlException ex) {\n Logger.getLogger(FairiesEncounterView.class.getName()).log(Level.SEVERE, null, ex);\n }\n if (value.toUpperCase().equals(\"W\")) {\n this.displayMessage = \"\\n*******************************************\"\n + \"\\n* There are many people who need help *\"\n + \"\\n* today. What would you like to do? *\"\n + \"\\n*******************************************\"\n + \"\\n* B- work for the blacksmith *\"\n + \"\\n* S- work in the stables *\"\n + \"\\n* C- collect materials *\"\n + \"\\n*******************************************\"\n + \"\\nPlease enter a choice: \";\n String getAnswer = this.getInput();\n if (getAnswer.toUpperCase().equals(\"B\")) {\n //Working as a blacksmith will take 5 energy points and earn 5 gold coins.\n double currentEnergy = player.getEnergy();\n player.setEnergy(currentEnergy - 5);\n double currentMoney = player.getMoney();\n player.setMoney(currentMoney + 5);\n this.console.println(\"\\n The black smith has payed you 5 gold coins. \"\n + \"\\n*Be sure to watch your energy! Doing work can be taxing.*\");\n return true;\n } else if (getAnswer.toUpperCase().equals(\"S\")) {\n //Working in the stables will take 3 energy points and earn 3 gold coins.\n double currentEnergy = player.getEnergy();\n player.setEnergy(currentEnergy - 3);\n double currentMoney = player.getMoney();\n player.setMoney(currentMoney + 3);\n this.console.println(\"\\n You have been payed 3 gold coins. \"\n + \"\\n*Be sure to watch your energy! Doing work can be taxing.*\");\n return true;\n } else if (getAnswer.toUpperCase().equals(\"C\")) {\n //Collecting materials will take 7 energy points and earn 10 gold coins.\n double currentEnergy = player.getEnergy();\n player.setEnergy(currentEnergy - 7);\n double currentMoney = player.getMoney();\n player.setMoney(currentMoney + 10);\n this.console.println(\"\\n You have been payed 10 gold coins. \"\n + \"\\n*Be sure to watch your energy! Doing work can be taxing.*\");\n return true;\n } else {\n this.console.println(\"\\nInvalid answer. You must enter either 'B', 'S', or 'C'.\");\n return false;\n }\n } else if (value.toUpperCase().equals(\"B\")) {\n \n this.displayMessage = \"\\n*******************************************\"\n + \"\\n* Welcome to the market! *\"\n + \"\\n* What would you like to buy? *\"\n + \"\\n*******************************************\"\n + \"\\n* K- knife (10 coins) *\"\n + \"\\n* S- sword (20 coins) *\"\n + \"\\n* A- armor (30 coins) *\"\n + \"\\n*******************************************\"\n + \"\\nPlease enter a choice: \";\n String getAnswer = this.getInput();\n if (getAnswer.toUpperCase().equals(\"K\")) {\n //kife costs 10 coins.\n double currentMoney = player.getMoney();\n player.setMoney(currentMoney - 10);\n this.console.println(\"\\n You have bought a knife for 10 gold coins\");\n return true;\n } else if (getAnswer.toUpperCase().equals(\"S\")) {\n //sword costs 20 coins.\n double currentMoney = player.getMoney();\n player.setMoney(currentMoney - 20);\n this.console.println(\"\\n You have bought a sword for 20 gold coins. \");\n return true;\n } else if (getAnswer.toUpperCase().equals(\"A\")) {\n //armor costs 30 coins.\n double currentMoney = player.getMoney();\n player.setMoney(currentMoney - 30);\n this.console.println(\"\\n You have bought armor for 30 gold coins. \");\n return true;\n } else {\n this.console.println(\"\\nInvalid answer. You must enter either 'K', 'S', or 'A'.\");\n return false;\n }\n } else {\n this.console.println(\"\\nInvalid answer. You must enter either 'W' or 'B'.\");\n return false;\n }\n }", "title": "" }, { "docid": "a51c49b2a48fc6f310c519524a4bf283", "score": "0.59729356", "text": "public boolean playTurn(Player cp, int selection) {\n boolean playable = Turn.playable(cp.getCard(selection), pcp.getTop());\n if (playable) {\n Card c = cp.removeCardFromHand(cp.getCard(selection));\n pcp.add(c);\n System.out.println(\"Played card!\");\n return true;\n } else {\n return false;\n }\n }", "title": "" }, { "docid": "7c3cc7d96e3364ad4d1e6f629604869e", "score": "0.5972917", "text": "public void actionPerformed(ActionEvent arg0) {\n\t\t\t\tplayerInitialHand.clear();\n\t\t\t\tdealerInitialHand.clear();\n\t\t\t\t\n\t\t\t\t// populates initial array lists with new cards so array lists can be passed as args to Hand constructors.\n\t\t\t\tdealHand(cardDeck, playerInitialHand);\n\t\t\t\tdealHand(cardDeck, dealerInitialHand);\n\t\t\t\t\n\t\t\t\tplayerHand = new PlayerHand(0, playerInitialHand);\n\t\t\t\tdealerHand = new DealerHand(0, dealerInitialHand);\n\t\t\t\t\n\t\t\t\t// resets images for the cards in dealer and player hands in gui to match table and appear empty again.\n\t\t\t\tresetHandsGui(dealerCardLabels);\n\t\t\t\tresetHandsGui(playerCardLabels);\n\t\t\t\t\n\t\t\t\tlblIndicatorText.setText(\"Game Begins!\");\n\t\t\t\tbtnDeal.setEnabled(false);\n\t\t\t\tbtnDeal.setVisible(false);\n\t\t\t\ttoggleHitAndStandVisibility(true);\n\t\t\t\tbtnQuit.setEnabled(false);\n\t\t\t\tbtnQuit.setVisible(false);\n\t\t\t\t\n\t\t\t\tstartMatch();\n\t\t\t\t\n\t\t\t}", "title": "" }, { "docid": "d79183fe14317c203e0f27d90de23c68", "score": "0.59707236", "text": "public static void choice() {\n\t\tSystem.out.println(\"\\n\\n Select mode: \");\n\t\tSystem.out.println(\"1) vs. CPU\");\n\t\tSystem.out.println(\"2) vs. Player2\");\n\t\t\t\t\n\t\tSystem.out.print(\"Enter your selection: \");\n\t\tScanner input = new Scanner(System.in);\n\t\tString a = input.next();\n\t\t\t\t\n\t\tswitch (a) {\n\t\t\tcase \"1\" : setup();; break;\n\t\t\tcase \"2\" : setupVs(); break;\n\t\t}\t\t\n\t\t\n\t\t\n\t}", "title": "" } ]
4c454535ff320d2a8a2551e953eca859
Creates a new async stub that supports all call types for the service
[ { "docid": "312a9ead37e9f3f4648908219218c631", "score": "0.0", "text": "public static SqlTranslationServiceStub newStub(io.grpc.Channel channel) {\n io.grpc.stub.AbstractStub.StubFactory<SqlTranslationServiceStub> factory =\n new io.grpc.stub.AbstractStub.StubFactory<SqlTranslationServiceStub>() {\n @java.lang.Override\n public SqlTranslationServiceStub newStub(\n io.grpc.Channel channel, io.grpc.CallOptions callOptions) {\n return new SqlTranslationServiceStub(channel, callOptions);\n }\n };\n return SqlTranslationServiceStub.newStub(factory, channel);\n }", "title": "" } ]
[ { "docid": "9bef8d4782db9a03eb0d14e92963b5b4", "score": "0.62001", "text": "public interface IThriftAsyncApiClient extends TApiService.AsyncIface {\n /**\n * Call method \"check\" (test if server is online).\n *\n * @param appId\n * @param accessToken\n * @param resultHandler\n * @throws TException\n */\n default void check(String appId, String accessToken, AsyncMethodCallback<TApiResult> resultHandler)\n throws TException {\n check(new TApiAuth().setAppId(appId).setAccessToken(accessToken), resultHandler);\n }\n\n /**\n * Call a server API, using default data encoding.\n *\n * @param apiName\n * @param appId\n * @param accessToken\n * @param params API parameters to pass to server\n * @param resultHandler\n * @throws TException\n */\n default void call(String apiName, String appId, String accessToken, Object params,\n AsyncMethodCallback<TApiResult> resultHandler) throws TException {\n call(apiName, appId, accessToken, TDataEncoding.JSON_DEFAULT, params, resultHandler);\n }\n\n /**\n * Call a server API.\n *\n * @param apiName\n * @param appId\n * @param accessToken\n * @param encoding data encoding\n * @param params API parameters to pass to server\n * @param resultHandler\n * @throws TException\n */\n void call(String apiName, String appId, String accessToken, TDataEncoding encoding, Object params,\n AsyncMethodCallback<TApiResult> resultHandler) throws TException;\n}", "title": "" }, { "docid": "7c314e8e5ea02f88d815bf65b7a4d1b5", "score": "0.6117314", "text": "void asStub();", "title": "" }, { "docid": "7dc4e5c782087042f6a115e2e2e4d1fe", "score": "0.60710704", "text": "private void createStub() {\r\n\t\tif (getVerbose())\r\n\t\t\tSystem.out.println(\"Creating stub ...\");\r\n\t\tsetService(new AsymKeysImplService());\r\n\t\tsetPort(getService().getAsymKeysImplPort());\r\n\r\n\t\tif (getWsURL() != null) {\r\n\t\t\tif (getVerbose())\r\n\t\t\t\tSystem.out.println(\"Setting endpoint address ...\");\r\n\t\t\tBindingProvider bindingProvider = (BindingProvider) getPort();\r\n\t\t\tMap<String, Object> requestContext = bindingProvider.getRequestContext();\r\n\t\t\trequestContext.put(ENDPOINT_ADDRESS_PROPERTY, getWsURL());\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "e1e6a4ee41604fa1bb5d50f6937f3ccb", "score": "0.59855586", "text": "public interface ProceduresServiceAsync {\n /**\n * Ziska mena procedur v db\n *\n * @return String[]\n * @throws sk.gryfonnlair.dissertation.dbmentor.shared.dto.RPCServiceException\n *\n */\n void getAllProceduresNames(AsyncCallback<String[]> async);\n\n /**\n * Ziska dvojice do gen formulara o procedure\n *\n * @param procedureName\n * @return Map<String, String>\n * @throws sk.gryfonnlair.dissertation.dbmentor.shared.dto.RPCServiceException\n *\n */\n void getProcedureDetails(String procedureName, AsyncCallback<Map<String, String>> async);\n\n /**\n * Vrati kod procedury\n *\n * @param procedureName\n * @return String\n * @throws sk.gryfonnlair.dissertation.dbmentor.shared.dto.RPCServiceException\n *\n */\n void getProcedureCode(String procedureName, AsyncCallback<String> async);\n\n /**\n * Vrati objekt z API kde je mapa argumentov\n *\n * @param procedurename\n * @return List<ProcedureArgInfo>\n * @throws sk.gryfonnlair.dissertation.dbmentor.shared.dto.RPCServiceException\n *\n */\n void getProcedureArguments(String procedurename, AsyncCallback<List<ProcedureArgInfo>> async);\n\n /**\n * Vrati vysledok z zavolania procedury\n *\n * @param procedureName\n * @param args pole {@link sk.gryfonnlair.dissertation.dbmentor.server.dbconnector.api.gwtdto.ProcedureArgInfo}\n * @return ProcedureCallResult alebo null\n * @throws sk.gryfonnlair.dissertation.dbmentor.shared.dto.RPCServiceException\n *\n */\n void callProcedure(String procedureName, ProcedureArgInfo[] args, AsyncCallback<ProcedureCallResult> async);\n}", "title": "" }, { "docid": "2835a7471a44f6ece449f58ed33e3164", "score": "0.597732", "text": "public interface GreetingServiceAsync {\n void checkc(String s1,String s2, AsyncCallback<String> callback)\n throws IllegalArgumentException;\n void checkf(String s1,String s2, AsyncCallback<String> callback)\n\t throws IllegalArgumentException;\n void reg(Reg k, AsyncCallback<String> callback)\n\t throws IllegalArgumentException;\n void freg(Reg m, AsyncCallback<String> callback)\n\t throws IllegalArgumentException;\n void feed(String f, AsyncCallback<String> callback)\n\t throws IllegalArgumentException;\n void land(nuti n,String f_id, AsyncCallback<String> callback)\n\t throws IllegalArgumentException;\n void det(fdet f,String fad, AsyncCallback<fdet> callback)\n\t throws IllegalArgumentException;\n void book(String f_id,String c_id,String username, AsyncCallback<String> callback)\n\t throws IllegalArgumentException;\n void fevnt(sevent l, AsyncCallback<String> callback)\n\t throws IllegalArgumentException;\n void evnt(String s, AsyncCallback<eve> callback)\n\t throws IllegalArgumentException;\n void allfar(String l, AsyncCallback<farmerslist> callback)\n\t throws IllegalArgumentException;\n void fid(String s1,String s2, AsyncCallback<String> callback)\n\t throws IllegalArgumentException;\n void cid(String s1,String s2, AsyncCallback<String> callback)\n\t throws IllegalArgumentException;\n void allcon(String f_id, AsyncCallback<consumerslist> callback)\n\t throws IllegalArgumentException;\n void condet(Cdet c,String c_id, AsyncCallback<Cdet> callback)\n\t throws IllegalArgumentException;\n void cost(String f_id, AsyncCallback<String> callback)\n\t throws IllegalArgumentException;\n void amount(String f_id,String c_id,String a, AsyncCallback<String> callback)\n\t throws IllegalArgumentException;\n}", "title": "" }, { "docid": "0147343bc52cf12eaba9d3df6dfd466f", "score": "0.586983", "text": "public interface RpcClientStubIF {\r\n\r\n /**\r\n * Invokes a remote method in a synchronous way.\r\n *\r\n * @param _remoteMethod\r\n * The method to be invoked remotely.\r\n * @return RemoteMethodResult.\r\n */\r\n RemoteMethodInvocationIF invoke(final RemoteMethodIF _remoteMethod)\r\n throws ComporCannotInvokeRemoteMethodException;\r\n\r\n /**\r\n * Invokes a remote method in an asynchronous way.\r\n *\r\n * @param _remoteMethod\r\n * The remote method invoked.\r\n * @param _callbackListener\r\n * The object that should receive the return.\r\n */\r\n void invokeAsynchronously(final RemoteMethodIF _remoteMethod,\r\n final CallbackListenerIF _callbackListener)\r\n throws ComporCannotInvokeRemoteMethodException;\r\n}", "title": "" }, { "docid": "372f3576506535a9882d10c75c838950", "score": "0.5754841", "text": "public ClientStub(int port)\n {\n this.address = Address.from(\"localhost\",port);\n\n // This address will be fixed and of my choosing\n this.toAddress = Address.from(\"localhost\", REQ_PORT);\n\n this.es = Executors.newScheduledThreadPool(1);\n this.ms = new NettyMessagingService(\"ClientStub\", this.address, new MessagingConfig());\n this.s = Serializer.builder().withTypes( ReqMessage.class,\n ResMessage.class,\n Transaction.class,\n LocalDateTime.class\n ).build();\n\n this.balance_requests = new HashMap<>();\n this.movement_requests = new HashMap<>();\n this.transfer_requests = new HashMap<>();\n this.history_requests = new HashMap<>();\n this.interest_requests = new HashMap<>();\n this.server_responses = new HashMap<>();\n\n this.lastReq = 0;\n\n // BALANCE RESPONSE\n this.ms.registerHandler(\"balance-res\", (a, m) -> {\n ResMessage<Float> rmsg = this.s.decode(m);\n\n CompletableFuture<Float> req = this.balance_requests.get(rmsg.getReqId());\n\n if (this.balance_requests.containsKey(rmsg.getReqId())) {\n\n int s_port = a.port();\n\n if (server_responses.containsKey(s_port)) {\n int i = server_responses.get(s_port);\n i++;\n server_responses.replace(s_port, i);\n } else {\n server_responses.put(a.port(), 1);\n }\n req.complete(rmsg.getResponse());\n //this.balance_requests.remove(rmsg.getReqId());\n }\n }, this.es);\n\n // MOVEMENT RESPONSE\n this.ms.registerHandler(\"movement-res\", (a, m) -> {\n ResMessage<Boolean> rmsg = this.s.decode(m);\n\n CompletableFuture<Boolean> req = this.movement_requests.get(rmsg.getReqId());\n\n if (this.movement_requests.containsKey(rmsg.getReqId())) {\n\n int s_port = a.port();\n\n if (server_responses.containsKey(s_port)) {\n int i = server_responses.get(s_port);\n i++;\n server_responses.replace(s_port, i);\n } else {\n server_responses.put(a.port(), 1);\n }\n req.complete(rmsg.getResponse());\n //this.movement_requests.remove(rmsg.getReqId());\n }\n }, this.es);\n\n // TRANSFER RESPONSE\n this.ms.registerHandler(\"transfer-res\", (a, m) -> {\n ResMessage<Boolean> rmsg = this.s.decode(m);\n\n CompletableFuture<Boolean> req = this.transfer_requests.get(rmsg.getReqId());\n\n if (this.transfer_requests.containsKey(rmsg.getReqId())) {\n\n int s_port = a.port();\n\n if (server_responses.containsKey(s_port)) {\n int i = server_responses.get(s_port);\n i++;\n server_responses.replace(s_port, i);\n } else {\n server_responses.put(a.port(), 1);\n }\n req.complete(rmsg.getResponse());\n //this.movement_requests.remove(rmsg.getReqId());\n }\n }, this.es);\n\n // INTEREST RESPONSE\n this.ms.registerHandler(\"interest-res\", (a, m) -> {\n\n ResMessage<Void> rmsg = this.s.decode(m);\n\n CompletableFuture<Long> req = this.interest_requests.get(rmsg.getReqId());\n\n if (this.interest_requests.containsKey(rmsg.getReqId())) {\n\n int s_port = a.port();\n\n if (server_responses.containsKey(s_port)) {\n int i = server_responses.get(s_port);\n i++;\n server_responses.replace(s_port, i);\n } else {\n server_responses.put(a.port(), 1);\n }\n req.complete(0L);\n }\n }, this.es);\n\n // HISTORY RESPONSE\n this.ms.registerHandler(\"history-res\", (a, m) -> {\n\n //System.out.println(\"Received a History Response\");\n\n ResMessage<List<Transaction>> rmsg = this.s.decode(m);\n\n CompletableFuture<List<Transaction>> req = this.history_requests.get(rmsg.getReqId());\n\n if (this.history_requests.containsKey(rmsg.getReqId())) {\n\n int s_port = a.port();\n\n if (server_responses.containsKey(s_port)) {\n int i = server_responses.get(s_port);\n i++;\n server_responses.replace(s_port, i);\n } else {\n server_responses.put(a.port(), 1);\n }\n req.complete(rmsg.getResponse());\n }\n }, this.es);\n\n this.ms.start();\n }", "title": "" }, { "docid": "b993b5d0deb5ce3f390b7338f8c3c870", "score": "0.57066894", "text": "public interface DEServiceAsync {\n void getServiceData(ServiceCallWrapper wrapper, AsyncCallback<String> callback);\n\n void getServiceData(MultiPartServiceWrapper wrapper, AsyncCallback<String> callback);\n}", "title": "" }, { "docid": "196524bdf4ab88a57255e12fd00106ab", "score": "0.5692084", "text": "public interface DemoServiceAsync {\n\tvoid load(AsyncCallback<Void> callback) throws IllegalArgumentException;\n\tvoid processPost(Source source, Post post, AsyncCallback<DemoResult[]> callback) throws IllegalArgumentException;\n\tvoid search(Identifier identifier, AsyncCallback<ResultInfo[]> callback) throws IllegalArgumentException;\n}", "title": "" }, { "docid": "e538ded64d42f5326848782aa15bb5ab", "score": "0.5588199", "text": "public interface PingServiceAsync {\n\n /**\n * Return the current date/time on the server\n */\n void ping(AsyncCallback<AppointmentBook> async);\n\n void getAppointmentBook(String owner, AsyncCallback<AppointmentBook> async);\n\n void searchAppointments(String owner, String beginTime, String endTime, AsyncCallback<AppointmentBook> async);\n\n void addAppointment(String owner, String description, String beginTime, String endTime, AsyncCallback<Boolean> async);\n\n void createAppointmentBook(String owner);\n}", "title": "" }, { "docid": "e8f0ee1df633dda38a5ed1a70fee62e1", "score": "0.55688834", "text": "@RequestFilters(SetVCloudTokenCookie.class)\npublic interface VAppTemplateAsyncClient {\n\n /**\n * @see VAppTemplateClient#createVAppInVDCByInstantiatingTemplate\n */\n @POST\n @Path(\"/action/instantiateVAppTemplate\")\n @Produces(\"application/vnd.vmware.vcloud.instantiateVAppTemplateParams+xml\")\n @Consumes(VAPP_XML)\n @XMLResponseParser(VAppHandler.class)\n @MapBinder(BindInstantiateVAppTemplateParamsToXmlPayload.class)\n ListenableFuture<? extends VApp> createVAppInVDCByInstantiatingTemplate(\n @PayloadParam(\"name\") @ParamValidators(DnsNameValidator.class) String appName, @EndpointParam URI vdc,\n @PayloadParam(\"template\") URI template, InstantiateVAppTemplateOptions... options);\n\n /**\n * @see VAppTemplateClient#getOvfEnvelopeForVAppTemplate\n */\n @GET\n @Consumes(MediaType.TEXT_XML)\n @Path(\"/ovf\")\n @XMLResponseParser(EnvelopeHandler.class)\n @ExceptionParser(ReturnNullOnNotFoundOr404.class)\n ListenableFuture<? extends Envelope> getOvfEnvelopeForVAppTemplate(@EndpointParam URI href);\n\n /**\n * @see VAppTemplateClient#captureVAppAsTemplateInVDC\n */\n @POST\n @Path(\"/action/captureVApp\")\n @Produces(\"application/vnd.vmware.vcloud.captureVAppParams+xml\")\n @Consumes(VAPPTEMPLATE_XML)\n @XMLResponseParser(VAppTemplateHandler.class)\n @MapBinder(BindCaptureVAppParamsToXmlPayload.class)\n ListenableFuture<? extends VAppTemplate> captureVAppAsTemplateInVDC(@PayloadParam(\"vApp\") URI toCapture,\n @PayloadParam(\"templateName\") @ParamValidators(DnsNameValidator.class) String templateName,\n @EndpointParam URI vdc, CaptureVAppOptions... options);\n\n /**\n * @see VAppTemplateClient#copyVAppTemplateToVDCAndName\n */\n @POST\n @Path(\"/action/cloneVAppTemplate\")\n @Produces(\"application/vnd.vmware.vcloud.cloneVAppTemplateParams+xml\")\n @Consumes(TASK_XML)\n @XMLResponseParser(TaskHandler.class)\n @MapBinder(BindCloneVAppTemplateParamsToXmlPayload.class)\n ListenableFuture<? extends Task> copyVAppTemplateToVDCAndName(@PayloadParam(\"Source\") URI sourceVAppTemplate,\n @EndpointParam URI vdc, @PayloadParam(\"name\") @ParamValidators(DnsNameValidator.class) String newName,\n CloneVAppTemplateOptions... options);\n\n /**\n * @see VAppTemplateClient#moveVAppTemplateToVDCAndRename\n */\n @POST\n @Path(\"/action/cloneVAppTemplate\")\n @Produces(\"application/vnd.vmware.vcloud.cloneVAppTemplateParams+xml\")\n @Consumes(TASK_XML)\n @XMLResponseParser(TaskHandler.class)\n @PayloadParams(keys = \"IsSourceDelete\", values = \"true\")\n @MapBinder(BindCloneVAppTemplateParamsToXmlPayload.class)\n ListenableFuture<? extends Task> moveVAppTemplateToVDCAndRename(@PayloadParam(\"Source\") URI toClone,\n @EndpointParam URI vdc, @PayloadParam(\"name\") @ParamValidators(DnsNameValidator.class) String newName,\n CloneVAppTemplateOptions... options);\n\n /**\n * @see VAppTemplateClient#findVAppTemplateInOrgCatalogNamed\n */\n @GET\n @Consumes(VAPPTEMPLATE_XML)\n @XMLResponseParser(VAppTemplateHandler.class)\n @ExceptionParser(ReturnNullOnNotFoundOr404.class)\n ListenableFuture<? extends VAppTemplate> findVAppTemplateInOrgCatalogNamed(\n @Nullable @EndpointParam(parser = OrgNameCatalogNameVAppTemplateNameToEndpoint.class) String orgName,\n @Nullable @EndpointParam(parser = OrgNameCatalogNameVAppTemplateNameToEndpoint.class) String catalogName,\n @EndpointParam(parser = OrgNameCatalogNameVAppTemplateNameToEndpoint.class) String itemName);\n\n /**\n * @see VAppTemplateClient#getVAppTemplate\n */\n @GET\n @Consumes(VAPPTEMPLATE_XML)\n @XMLResponseParser(VAppTemplateHandler.class)\n @ExceptionParser(ReturnNullOnNotFoundOr404.class)\n ListenableFuture<? extends VAppTemplate> getVAppTemplate(@EndpointParam URI vAppTemplate);\n\n /**\n * @see VAppTemplateClient#deleteVAppTemplate\n */\n @DELETE\n @ExceptionParser(ReturnVoidOnNotFoundOr404.class)\n @XMLResponseParser(TaskHandler.class)\n ListenableFuture<? extends Task> deleteVAppTemplate(@EndpointParam URI href);\n\n}", "title": "" }, { "docid": "46b0046e245c0c176f7e24be4e75fc78", "score": "0.55406296", "text": "public interface Service {\n\n @GET\n Call<LoginRespon> login(@Url String url);\n @GET\n Call<Void> test(@Url String url);\n @GET\n Call<AboutRespon> getAbout(@Url String url);\n @GET\n Call<VoidRespon> doiMatKhau(@Url String url);\n @GET\n Call<VoidRespon> dangxuat(@Url String url);\n @GET\n Call<ContactResponse> getDanhBa(@Url String url);\n @GET\n Call<DSCongTyResponse> getDsCongTy(@Url String url);\n\n}", "title": "" }, { "docid": "1e1eaf43c8da4300639880581c10dbcb", "score": "0.55402005", "text": "public interface AdminServiceAsync {\r\n\tvoid setDataURL(String uri, AsyncCallback<Boolean> callback);\r\n\tvoid getDataURL(AsyncCallback<String> callback);\r\n\tvoid importData(AsyncCallback<Boolean> callback);\r\n\tvoid getTitleLine(AsyncCallback<String[]> callback);\r\n\tvoid loadData(String[] params, AsyncCallback<Boolean> callback);\r\n\tvoid setTableView(String[] params, AsyncCallback<Boolean> callback);\r\n\tvoid setRacks(Rack[] racks, AsyncCallback<Boolean> asyncCallback);\r\n\tvoid userNotify(String notification, AsyncCallback<Boolean> asyncCallback);\r\n}", "title": "" }, { "docid": "066c0bba2aae87667d2a9b730ddb1cac", "score": "0.5501186", "text": "public interface RpcAsync {\n \n void getSite(AsyncCallback<Site> callback);\n \n void getPages(AsyncCallback<List<Page>> callback);\n \n void getPageArray(AsyncCallback<Page[]> callback);\n\n void getDTO(AsyncCallback<DTO> callback);\n\n void getItem(String name, AsyncCallback<Item> callback);\n}", "title": "" }, { "docid": "a8ca82383e15d5aae519ee3f99408774", "score": "0.54901844", "text": "public interface EnjinCoinAsync extends EnjinCoin {\n\n /**\n * Method to get the eventsService.\n *\n * @return - EventsAsyncService\n */\n @Override\n EventsAsyncService getEventsService();\n\n /**\n * Method to get the identitiesService.\n *\n * @return - IdentitiesAsyncService\n */\n @Override\n IdentitiesAsyncService getIdentitiesService();\n\n /**\n * Method to get the tokensService.\n *\n * @return - TokensAsyncService\n */\n @Override\n TokensAsyncService getTokensService();\n\n /**\n * Method to get the transactionRequestsService.\n *\n * @return - TransactionRequestsAsyncService\n */\n @Override\n TransactionRequestsAsyncService getTransactionRequestsService();\n\n /**\n * Method to get the notificationsService.\n *\n * @return - NotificationsAsyncService\n */\n @Override\n NotificationsAsyncService getNotificationsService();\n\n /**\n * Method to get the platformService.\n *\n * @return - PlatformAsyncService\n */\n @Override\n PlatformAsyncService getPlatformService();\n}", "title": "" }, { "docid": "01e06e1f5df86d1451e179c6bbe9c869", "score": "0.54745674", "text": "public interface IServiceCall<T> {\n void start();\n\n void onResponse(T response);\n\n void onFailure(ErrorModel error);\n}", "title": "" }, { "docid": "54f936adbdad3a965116b7ede77a8abe", "score": "0.54581183", "text": "protected HttpJsonCloudShellServiceStub(\n CloudShellServiceStubSettings settings, ClientContext clientContext) throws IOException {\n this(settings, clientContext, new HttpJsonCloudShellServiceCallableFactory());\n }", "title": "" }, { "docid": "dd64dda0a5821bb2bc9ab882845082ec", "score": "0.5458093", "text": "public static DemoServiceFutureStub newFutureStub(\n io.grpc.Channel channel) {\n return new DemoServiceFutureStub(channel);\n }", "title": "" }, { "docid": "3192dd4d42e914ed9a4b081c9ebf9b3c", "score": "0.5452969", "text": "@RequestFilters(SetVCloudTokenCookie.class)\npublic interface VmAsyncClient {\n\n /**\n * @see VmClient#getVm\n */\n @GET\n @Consumes(VM_XML)\n @XMLResponseParser(VmHandler.class)\n @ExceptionParser(ReturnNullOnNotFoundOr404.class)\n ListenableFuture<? extends Vm> getVm(@EndpointParam URI href);\n\n /**\n * @see VmClient#deployVm\n */\n @POST\n @Consumes(TASK_XML)\n @Produces(DEPLOYVAPPPARAMS_XML)\n @Path(\"/action/deploy\")\n @MapBinder(BindDeployVAppParamsToXmlPayload.class)\n @XMLResponseParser(TaskHandler.class)\n ListenableFuture<? extends Task> deployVm(@EndpointParam URI href);\n\n /**\n * @see VmClient#deployAndPowerOnVm\n */\n @POST\n @Consumes(TASK_XML)\n @Produces(DEPLOYVAPPPARAMS_XML)\n @Path(\"/action/deploy\")\n @MapBinder(BindDeployVAppParamsToXmlPayload.class)\n @PayloadParams(keys = \"powerOn\", values = \"true\")\n @XMLResponseParser(TaskHandler.class)\n ListenableFuture<? extends Task> deployAndPowerOnVm(@EndpointParam URI href);\n\n /**\n * @see VmClient#undeployVm\n */\n @POST\n @Consumes(TASK_XML)\n @Produces(UNDEPLOYVAPPPARAMS_XML)\n @Path(\"/action/undeploy\")\n @MapBinder(BindUndeployVAppParamsToXmlPayload.class)\n @XMLResponseParser(TaskHandler.class)\n ListenableFuture<? extends Task> undeployVm(@EndpointParam URI href);\n\n /**\n * @see VmClient#undeployAndSaveStateOfVm\n */\n @POST\n @Consumes(TASK_XML)\n @Produces(UNDEPLOYVAPPPARAMS_XML)\n @Path(\"/action/undeploy\")\n @MapBinder(BindUndeployVAppParamsToXmlPayload.class)\n @PayloadParams(keys = \"saveState\", values = \"true\")\n @XMLResponseParser(TaskHandler.class)\n ListenableFuture<? extends Task> undeployAndSaveStateOfVm(@EndpointParam URI href);\n\n /**\n * @see VmClient#powerOnVm\n */\n @POST\n @Consumes(TASK_XML)\n @Path(\"/power/action/powerOn\")\n @XMLResponseParser(TaskHandler.class)\n ListenableFuture<? extends Task> powerOnVm(@EndpointParam URI href);\n\n /**\n * @see VmClient#powerOffVm\n */\n @POST\n @Consumes(TASK_XML)\n @Path(\"/power/action/powerOff\")\n @XMLResponseParser(TaskHandler.class)\n ListenableFuture<? extends Task> powerOffVm(@EndpointParam URI href);\n\n /**\n * @see VmClient#shutdownVm\n */\n @POST\n @Path(\"/power/action/shutdown\")\n ListenableFuture<Void> shutdownVm(@EndpointParam URI href);\n\n /**\n * @see VmClient#resetVm\n */\n @POST\n @Consumes(TASK_XML)\n @Path(\"/power/action/reset\")\n @XMLResponseParser(TaskHandler.class)\n ListenableFuture<? extends Task> resetVm(@EndpointParam URI href);\n\n /**\n * @see VmClient#rebootVm\n */\n @POST\n @Path(\"/power/action/reboot\")\n ListenableFuture<Void> rebootVm(@EndpointParam URI href);\n\n /**\n * @see VmClient#suspendVm\n */\n @POST\n @Consumes(TASK_XML)\n @Path(\"/power/action/suspend\")\n @XMLResponseParser(TaskHandler.class)\n ListenableFuture<? extends Task> suspendVm(@EndpointParam URI href);\n\n /**\n * @see VmClient#updateCPUCountOfVm\n */\n @PUT\n @Consumes(TASK_XML)\n @Produces(RASDITEM_XML)\n @Path(\"/virtualHardwareSection/cpu\")\n @XMLResponseParser(TaskHandler.class)\n ListenableFuture<? extends Task> updateCPUCountOfVm(@BinderParam(BindCPUCountToXmlPayload.class) int cpuCount,\n @EndpointParam URI href);\n\n /**\n * @see VmClient#updateMemoryMBOfVm\n */\n @PUT\n @Consumes(TASK_XML)\n @Produces(RASDITEM_XML)\n @Path(\"/virtualHardwareSection/memory\")\n @XMLResponseParser(TaskHandler.class)\n ListenableFuture<? extends Task> updateMemoryMBOfVm(@BinderParam(BindMemoryToXmlPayload.class) int memoryInMB,\n @EndpointParam URI href);\n\n /**\n * @see VmClient#updateGuestCustomizationOfVm\n */\n @PUT\n @Consumes(TASK_XML)\n @Produces(GUESTCUSTOMIZATIONSECTION_XML)\n @Path(\"/guestCustomizationSection\")\n @XMLResponseParser(TaskHandler.class)\n ListenableFuture<? extends Task> updateGuestCustomizationOfVm(\n @BinderParam(BindGuestCustomizationSectionToXmlPayload.class) GuestCustomizationSection guestCustomizationSection,\n @EndpointParam URI href);\n\n /**\n * @see VmClient#updateNetworkConnectionOfVm\n */\n @PUT\n @Consumes(TASK_XML)\n @Produces(NETWORKCONNECTIONSECTION_XML)\n @Path(\"/networkConnectionSection\")\n @XMLResponseParser(TaskHandler.class)\n ListenableFuture<? extends Task> updateNetworkConnectionOfVm(\n @BinderParam(BindNetworkConnectionSectionToXmlPayload.class) NetworkConnectionSection networkConnectionSection,\n @EndpointParam URI href);\n\n /**\n * \n * @see VmClient#getScreenThumbnailForVm\n */\n @GET\n @Path(\"/screen\")\n @Consumes(\"image/png\")\n @ExceptionParser(ReturnNullOnNotFoundOr404.class)\n ListenableFuture<InputStream> getScreenThumbnailForVm(@EndpointParam URI vm);\n}", "title": "" }, { "docid": "4f71e02a390e3da86dddb31d69004325", "score": "0.5443967", "text": "public Response<T> invokeAsync(T msg);", "title": "" }, { "docid": "ec7337d50ce3f4c2894d0d8d70871391", "score": "0.5412631", "text": "public interface AdminServiceAsync {\r\n \r\n public void makeArtist(AdminRequest request, AsyncCallback callback);\r\n\r\n public void deleteArtist(Artist artist, AsyncCallback callback);\r\n\r\n public void deleteAlbum(Album album, AsyncCallback callback);\r\n \r\n public void deleteRecord(Record record, AsyncCallback callback);\r\n\r\n public void deleteRequest(AdminRequest request, AsyncCallback callback);\r\n\r\n public void listArtists(AsyncCallback<List<Artist>> callback);\r\n\r\n public void listArtistRequests(AsyncCallback<List<AdminRequest>> callback);\r\n\r\n}", "title": "" }, { "docid": "da3ff073ceb7d5786b2dcf36a7f9604a", "score": "0.5407055", "text": "public DaprHttpStub() {\r\n super(null, 3000, null);\r\n }", "title": "" }, { "docid": "48c0cf1f616487c8a632c66fbb6b0047", "score": "0.5398173", "text": "public interface OrganizerServiceAsync {\r\n\t\r\n\tvoid registrazione(String nome, String username, String password,\r\n\t\t\tString email, AsyncCallback<Boolean> callback);\r\n\r\n\tvoid effettuaLogin(String username, String password,\r\n\t\t\tAsyncCallback<String> callback);\r\n\r\n\tvoid effettuaLogout(AsyncCallback<Boolean> callback);\r\n\r\n\tvoid verificaLogin(AsyncCallback<String> callback);\r\n\r\n\tvoid creaEvento(String titolo, String luogo, String descrizione,\r\n\t\t\tArrayList<String> date, ArrayList<ArrayList<String>> orari,\r\n\t\t\tAsyncCallback<Boolean> callback);\r\n\t\r\n\tvoid getEventi(AsyncCallback<Evento[]> callback);\r\n\t\r\n\tvoid creaCommento(String testo, String idEvento,\r\n\t\t\tAsyncCallback<Commento> callback);\r\n\r\n\tvoid getCommenti(String eventoid, AsyncCallback<Commento[]> callback);\r\n\r\n\tvoid getPropriEventi(AsyncCallback<Evento[]> callback);\t\r\n}", "title": "" }, { "docid": "c1ea3773dbea05c86a07b7e39ad68ae1", "score": "0.5380016", "text": "public interface RpcInvoker<I extends ChannelOrderedMessage, O extends ChannelOrderedMessage> {\n\n enum InvokerState {\n INACTIVE, CONNECTING, CONNECT_FAIL, ACTIVE, INVOKED, INVOKE_FAIL, SUCCESS, TIMEOUT, FAIL\n }\n\n /**\n * Send rpc message asynchronously to the rpc channel\n */\n ChannelFuture invokeAsync(I param);\n\n /**\n * This method is invoked by the rpc channel when the request has been completed or failed.\n * Telling the http channel to handle the invokeResult put in http channel context.\n */\n void handleResult(O result);\n\n /**\n * Return the invoker state.\n * @return the current invoker state.\n */\n InvokerState getState();\n\n void setState(InvokerState state);\n\n static RpcInvoker create(RpcInvokerDef invokerDef,\n ServiceNode node,\n HttpChannelContext chanCtx,\n HttpRequestContext reqCtx) {\n switch (invokerDef.getProtocol()) {\n case thrift: return new ThriftInvoker(invokerDef, node, chanCtx, reqCtx);\n default: return null;\n }\n }\n\n}", "title": "" }, { "docid": "8a0d178804f86d7cecb07cd0b7afac5b", "score": "0.5364895", "text": "public interface TechAdvisorServiceAsync {\r\n\t\r\n\tvoid signUp(User user, AsyncCallback<String> callback);\r\n\r\n\tvoid logIn(User user, AsyncCallback<String> callback);\r\n\r\n\tvoid getLanguage(AsyncCallback<ArrayList<String>> callback);\r\n\r\n\tvoid setResult(String argument, AsyncCallback<String> callback);\r\n\r\n\tvoid loginFromSessionServer(AsyncCallback<User> callback);\r\n\t\r\n\tvoid insertLanguage(String lang_list, AsyncCallback<Void> callback);\r\n\r\n\tvoid removeLanguage(ArrayList<String> lang_list,\r\n\t\t\tAsyncCallback<Void> callback);\r\n\r\n\tvoid setSubCategory(String type, AsyncCallback<String> callback);\r\n\r\n\tvoid logout(AsyncCallback<Void> callback);\r\n\r\n\tvoid setOntology(AsyncCallback<Void> callback);\r\n\r\n\tvoid getName(AsyncCallback<String> callback);\r\n\r\n\tvoid getLanguages(String languages,\r\n\t\t\tAsyncCallback<ArrayList<String>> callback);\r\n\r\n\tvoid resultFromSessionServer(AsyncCallback<ResultSearch> callback);\r\n\r\n\tvoid setCategory(String category, AsyncCallback<String> callback);\r\n\r\n\tvoid getDetailsFromSession(AsyncCallback<Boolean> callback);\r\n}", "title": "" }, { "docid": "b71cdd0689875360ff210f4da9b675aa", "score": "0.5348453", "text": "public static ItemsServiceFutureStub newFutureStub(\n io.grpc.Channel channel) {\n return new ItemsServiceFutureStub(channel);\n }", "title": "" }, { "docid": "4e6e961046280f5b578289ee3c95ecf9", "score": "0.5346722", "text": "public interface DataServiceAsync\r\n{\r\n /**\r\n * @param username\r\n * @param password\r\n * @param block\r\n * @param callback\r\n */\r\n void addBlock(String username, String password, BlockDTO block,\r\n AsyncCallback<Boolean> callback);\r\n\r\n /**\r\n * @param username\r\n * @param password\r\n * @param callback\r\n */\r\n void getAllUsers(String username, String password,\r\n AsyncCallback<List<UserDTO>> callback);\r\n\r\n /**\r\n * @param username\r\n * @param password\r\n * @param callback\r\n */\r\n void getAllBlocks(String username, String password,\r\n AsyncCallback<List<BlockDTO>> callback);\r\n\r\n /**\r\n * @param username\r\n * @param password\r\n * @param blockId\r\n * @param callback\r\n */\r\n void deleteBlock(String username, String password, int blockId,\r\n AsyncCallback<Boolean> callback);\r\n\r\n /**\r\n * @param username\r\n * @param password\r\n * @param block\r\n * @param callback\r\n */\r\n void updateBlock(String username, String password, BlockDTO block,\r\n AsyncCallback<Boolean> callback);\r\n\r\n /**\r\n * @param username\r\n * @param password\r\n * @param user\r\n * @param callback\r\n */\r\n void addUser(String username, String password, UserDTO user,\r\n AsyncCallback<Boolean> callback);\r\n\r\n /**\r\n * @param username\r\n * @param password\r\n * @param userId\r\n * @param callback\r\n */\r\n void deleteUser(String username, String password, int userId,\r\n AsyncCallback<Boolean> callback);\r\n\r\n /**\r\n * @param username\r\n * @param password\r\n * @param user\r\n * @param callback\r\n */\r\n void updateUser(String username, String password, UserDTO user,\r\n AsyncCallback<Boolean> callback);\r\n\r\n /**\r\n * @param name \r\n * @param s\r\n * @param callback\r\n * @throws IllegalArgumentException \r\n */\r\n void greetServer(String name, AsyncCallback<String> callback) throws IllegalArgumentException;\r\n}", "title": "" }, { "docid": "49b61aa2de332bd372a001f0837c4287", "score": "0.5346105", "text": "public VirtualApplianceResourceStubImpl()\n {\n }", "title": "" }, { "docid": "46278c192d4203602ff61058c56aa845", "score": "0.53272873", "text": "public interface PromiseService extends Service<Promise> {\n\n}", "title": "" }, { "docid": "3a084ab04699e2d6b695f40793f386c5", "score": "0.52988756", "text": "public static SpeechServiceFutureStub newFutureStub(\n io.grpc.Channel channel) {\n io.grpc.stub.AbstractStub.StubFactory<SpeechServiceFutureStub> factory =\n new io.grpc.stub.AbstractStub.StubFactory<SpeechServiceFutureStub>() {\n @java.lang.Override\n public SpeechServiceFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {\n return new SpeechServiceFutureStub(channel, callOptions);\n }\n };\n return SpeechServiceFutureStub.newStub(factory, channel);\n }", "title": "" }, { "docid": "c2fc53be40c227329f9df86ac31f7314", "score": "0.5279285", "text": "public interface CallableService extends Service {\n\n\tString callDirect();\n\n\tString callOrchestrated();\n\n\tString callOrchestratedByClassExecutor();\n\n\tString callOrchestratedBySystemExecutor();\n\n\tString callWithMethodLimitsAndClassExecutor(long time, TimeUnit timeUnit);\n\n\tString callWithMethodExecutor(long time, TimeUnit timeUnit);\n\n\tvoid callOrchestratedByClassWithServiceException() throws ServiceException;\n\n\tvoid callOrchestratedByClassWithServiceRuntimeException();\n\n\tvoid callWithTimeOut(long time, TimeUnit timeUnit);\n\n\tvoid callWithTimeOutOnSmallQueue(long time, TimeUnit timeUnit);\n\n\tvoid callWithTimeOutAndConcurrentLimit(long time, TimeUnit timeUnit);\n\n\tvoid callAsyncVoid(long time, TimeUnit timeUnit);\n\n\tString callAsyncNotVoid(long time, TimeUnit timeUnit);\n\n\tvoid callAsyncWithTimeOut(long time, TimeUnit timeUnit);\n\n\tvoid callAsyncWithTimeOutOnSmallQueue(long time, TimeUnit timeUnit);\n\n\tvoid callAsyncWithTimeOutAndConcurrentLimit(long time, TimeUnit timeUnit);\n\n\tvoid callOnMaxThreads(CountDownLatch latch, AtomicInteger counter);\n\n\tCallResponce getCallResponce();\n\n\tvoid resetCallResponce();\n\n}", "title": "" }, { "docid": "9c4f6ed40bb5650180ef9a259d091955", "score": "0.52781284", "text": "@Headers(keys = GlacierHeaders.VERSION, values = \"2012-06-01\")\n@RequestFilters(RequestAuthorizeSignature.class)\n@BlobScope(CONTAINER)\npublic interface GlacierAsyncClient extends Closeable {\n\n /**\n * @see GlacierClient#createVault\n */\n @Named(\"CreateVault\")\n @PUT\n @Path(\"/-/vaults/{vault}\")\n ListenableFuture<URI> createVault(@ParamValidators(VaultNameValidator.class) @PathParam(\"vault\") String vaultName);\n\n /**\n * @see GlacierClient#deleteVaultIfEmpty\n */\n @Named(\"DeleteVault\")\n @DELETE\n @Path(\"/-/vaults/{vault}\")\n @Fallback(FalseOnIllegalArgumentException.class)\n ListenableFuture<Boolean> deleteVault(@ParamValidators(VaultNameValidator.class) @PathParam(\"vault\") String vaultName);\n\n /**\n * @see GlacierClient#describeVault\n */\n @Named(\"DescribeVault\")\n @GET\n @Path(\"/-/vaults/{vault}\")\n @ResponseParser(ParseVaultMetadataFromHttpContent.class)\n @Fallback(NullOnNotFoundOr404.class)\n ListenableFuture<VaultMetadata> describeVault(\n @ParamValidators(VaultNameValidator.class) @PathParam(\"vault\") String vaultName);\n\n /**\n * @see GlacierClient#listVaults(PaginationOptions)\n */\n @Named(\"ListVaults\")\n @GET\n @Path(\"/-/vaults\")\n @ResponseParser(ParseVaultMetadataListFromHttpContent.class)\n ListenableFuture<PaginatedVaultCollection> listVaults(PaginationOptions options);\n\n /**\n * @see GlacierClient#listVaults\n */\n @Named(\"ListVaults\")\n @GET\n @Path(\"/-/vaults\")\n @ResponseParser(ParseVaultMetadataListFromHttpContent.class)\n ListenableFuture<PaginatedVaultCollection> listVaults();\n\n /**\n * @see GlacierClient#uploadArchive\n */\n @Named(\"UploadArchive\")\n @POST\n @Path(\"/-/vaults/{vault}/archives\")\n @ResponseParser(ParseArchiveIdHeader.class)\n ListenableFuture<String> uploadArchive(\n @ParamValidators(VaultNameValidator.class) @PathParam(\"vault\") String vaultName,\n @ParamValidators(PayloadValidator.class) @BinderParam(BindHashesToHeaders.class) Payload payload,\n @ParamValidators(DescriptionValidator.class) @BinderParam(BindDescriptionToHeaders.class) String description);\n\n /**\n * @see GlacierClient#uploadArchive\n */\n @Named(\"UploadArchive\")\n @POST\n @Path(\"/-/vaults/{vault}/archives\")\n @ResponseParser(ParseArchiveIdHeader.class)\n ListenableFuture<String> uploadArchive(\n @ParamValidators(VaultNameValidator.class) @PathParam(\"vault\") String vaultName,\n @ParamValidators(PayloadValidator.class) @BinderParam(BindHashesToHeaders.class) Payload payload);\n\n /**\n * @see GlacierClient#deleteArchive\n */\n @Named(\"DeleteArchive\")\n @DELETE\n @Path(\"/-/vaults/{vault}/archives/{archive}\")\n ListenableFuture<Boolean> deleteArchive(\n @ParamValidators(VaultNameValidator.class) @PathParam(\"vault\") String vaultName,\n @PathParam(\"archive\") String archiveId);\n\n /**\n * @see GlacierClient#initiateMultipartUpload\n */\n @Named(\"InitiateMultipartUpload\")\n @POST\n @Path(\"/-/vaults/{vault}/multipart-uploads\")\n @ResponseParser(ParseMultipartUploadIdHeader.class)\n ListenableFuture<String> initiateMultipartUpload(\n @ParamValidators(VaultNameValidator.class) @PathParam(\"vault\") String vaultName,\n @ParamValidators(PartSizeValidator.class) @BinderParam(BindPartSizeToHeaders.class) long partSizeInMB,\n @ParamValidators(DescriptionValidator.class) @BinderParam(BindDescriptionToHeaders.class) String description);\n\n /**\n * @see GlacierClient#initiateMultipartUpload\n */\n @Named(\"InitiateMultipartUpload\")\n @POST\n @Path(\"/-/vaults/{vault}/multipart-uploads\")\n @ResponseParser(ParseMultipartUploadIdHeader.class)\n ListenableFuture<String> initiateMultipartUpload(\n @ParamValidators(VaultNameValidator.class) @PathParam(\"vault\") String vaultName,\n @ParamValidators(PartSizeValidator.class) @BinderParam(BindPartSizeToHeaders.class) long partSizeInMB);\n\n /**\n * @see GlacierClient#uploadPart\n */\n @Named(\"UploadPart\")\n @PUT\n @Path(\"/-/vaults/{vault}/multipart-uploads/{uploadId}\")\n @ResponseParser(ParseMultipartUploadTreeHashHeader.class)\n ListenableFuture<HashCode> uploadPart(\n @ParamValidators(VaultNameValidator.class) @PathParam(\"vault\") String vaultName,\n @PathParam(\"uploadId\") String uploadId,\n @BinderParam(BindContentRangeToHeaders.class) ContentRange range,\n @ParamValidators(PayloadValidator.class) @BinderParam(BindHashesToHeaders.class) Payload payload);\n\n /**\n * @see GlacierClient#completeMultipartUpload\n */\n @Named(\"CompleteMultipartUpload\")\n @POST\n @Path(\"/-/vaults/{vault}/multipart-uploads/{uploadId}\")\n @ResponseParser(ParseArchiveIdHeader.class)\n ListenableFuture<String> completeMultipartUpload(\n @ParamValidators(VaultNameValidator.class) @PathParam(\"vault\") String vaultName,\n @PathParam(\"uploadId\") String uploadId,\n @BinderParam(BindMultipartTreeHashToHeaders.class) Map<Integer, HashCode> hashes,\n @BinderParam(BindArchiveSizeToHeaders.class) long archiveSizeInMB);\n\n /**\n * @see GlacierClient#abortMultipartUpload\n */\n @Named(\"AbortMultipartUpload\")\n @DELETE\n @Path(\"/-/vaults/{vault}/multipart-uploads/{uploadId}\")\n ListenableFuture<Boolean> abortMultipartUpload(\n @ParamValidators(VaultNameValidator.class) @PathParam(\"vault\") String vaultName,\n @PathParam(\"uploadId\") String uploadId);\n\n /**\n * @see GlacierClient#listParts\n */\n @Named(\"ListParts\")\n @GET\n @Path(\"/-/vaults/{vault}/multipart-uploads/{uploadId}\")\n @ResponseParser(ParseMultipartUploadPartListFromHttpContent.class)\n ListenableFuture<MultipartUploadMetadata> listParts(\n @ParamValidators(VaultNameValidator.class) @PathParam(\"vault\") String vaultName,\n @PathParam(\"uploadId\") String uploadId,\n PaginationOptions options);\n\n /**\n * @see GlacierClient#listParts\n */\n @Named(\"ListParts\")\n @GET\n @Path(\"/-/vaults/{vault}/multipart-uploads/{uploadId}\")\n @ResponseParser(ParseMultipartUploadPartListFromHttpContent.class)\n ListenableFuture<MultipartUploadMetadata> listParts(\n @ParamValidators(VaultNameValidator.class) @PathParam(\"vault\") String vaultName,\n @PathParam(\"uploadId\") String uploadId);\n\n /**\n * @see GlacierClient#listMultipartUploads\n */\n @Named(\"ListMultipartUploads\")\n @GET\n @Path(\"/-/vaults/{vault}/multipart-uploads\")\n @ResponseParser(ParseMultipartUploadListFromHttpContent.class)\n ListenableFuture<PaginatedMultipartUploadCollection> listMultipartUploads(\n @ParamValidators(VaultNameValidator.class) @PathParam(\"vault\") String vaultName,\n PaginationOptions options);\n\n /**\n * @see GlacierClient#listMultipartUploads\n */\n @Named(\"ListMultipartUploads\")\n @GET\n @Path(\"/-/vaults/{vault}/multipart-uploads\")\n @ResponseParser(ParseMultipartUploadListFromHttpContent.class)\n ListenableFuture<PaginatedMultipartUploadCollection> listMultipartUploads(\n @ParamValidators(VaultNameValidator.class) @PathParam(\"vault\") String vaultName);\n\n /**\n * @see GlacierClient#initiateJob\n */\n @Named(\"InitiateJob\")\n @POST\n @Path(\"/-/vaults/{vault}/jobs\")\n @ResponseParser(ParseJobIdHeader.class)\n ListenableFuture<String> initiateJob(\n @ParamValidators(VaultNameValidator.class) @PathParam(\"vault\") String vaultName,\n @BinderParam(BindJobRequestToJsonPayload.class) JobRequest job);\n\n /**\n * @see GlacierClient#describeJob\n */\n @Named(\"DescribeJob\")\n @GET\n @Path(\"/-/vaults/{vault}/jobs/{job}\")\n @ResponseParser(ParseJobMetadataFromHttpContent.class)\n @Fallback(NullOnNotFoundOr404.class)\n ListenableFuture<JobMetadata> describeJob(\n @ParamValidators(VaultNameValidator.class) @PathParam(\"vault\") String vaultName,\n @PathParam(\"job\") String jobId);\n\n /**\n * @see GlacierClient#listJobs(PaginationOptions)\n */\n @Named(\"ListJobs\")\n @GET\n @Path(\"/-/vaults/{vault}/jobs\")\n @ResponseParser(ParseJobMetadataListFromHttpContent.class)\n ListenableFuture<PaginatedJobCollection> listJobs(\n @ParamValidators(VaultNameValidator.class) @PathParam(\"vault\") String vaultName,\n PaginationOptions options);\n\n /**\n * @see GlacierClient#listJobs\n */\n @Named(\"ListJobs\")\n @GET\n @Path(\"/-/vaults/{vault}/jobs\")\n @ResponseParser(ParseJobMetadataListFromHttpContent.class)\n ListenableFuture<PaginatedJobCollection> listJobs(\n @ParamValidators(VaultNameValidator.class) @PathParam(\"vault\") String vaultName);\n\n /**\n * @see GlacierClient#getJobOutput\n */\n @Named(\"GetJobOutput\")\n @GET\n @Path(\"/-/vaults/{vault}/jobs/{job}/output\")\n @ResponseParser(GetPayloadFromHttpContent.class)\n ListenableFuture<Payload> getJobOutput(\n @ParamValidators(VaultNameValidator.class) @PathParam(\"vault\") String vaultName,\n @PathParam(\"job\") String jobId,\n @BinderParam(BindArchiveOutputRangeToHeaders.class) ContentRange range);\n\n /**\n * @see GlacierClient#getJobOutput\n */\n @Named(\"GetJobOutput\")\n @GET\n @Path(\"/-/vaults/{vault}/jobs/{job}/output\")\n @ResponseParser(GetPayloadFromHttpContent.class)\n ListenableFuture<Payload> getJobOutput(\n @ParamValidators(VaultNameValidator.class) @PathParam(\"vault\") String vaultName,\n @PathParam(\"job\") String jobId);\n\n /**\n * @see GlacierClient#getInventoryRetrievalOutput\n */\n @Named(\"GetInventoryRetrievalOutput\")\n @GET\n @Path(\"/-/vaults/{vault}/jobs/{job}/output\")\n @ResponseParser(ParseArchiveMetadataCollectionFromHttpContent.class)\n ListenableFuture<ArchiveMetadataCollection> getInventoryRetrievalOutput(\n @ParamValidators(VaultNameValidator.class) @PathParam(\"vault\") String vaultName,\n @PathParam(\"job\") String jobId);\n}", "title": "" }, { "docid": "e8f52ac6d6d66e8a3d097866f6a453aa", "score": "0.52711296", "text": "@RequestFilters(SetVCloudTokenCookie.class)\npublic interface CommonVCloudAsyncClient {\n\n /**\n * @see CommonVCloudClient#getOrg\n */\n @GET\n @XMLResponseParser(OrgHandler.class)\n @ExceptionParser(ReturnNullOnNotFoundOr404.class)\n @Consumes(ORG_XML)\n ListenableFuture<? extends Org> getOrg(@EndpointParam URI orgId);\n\n /**\n * @see CommonVCloudClient#getOrgNamed\n */\n @GET\n @XMLResponseParser(OrgHandler.class)\n @ExceptionParser(ReturnNullOnNotFoundOr404.class)\n @Consumes(ORG_XML)\n ListenableFuture<? extends Org> findOrgNamed(\n @Nullable @EndpointParam(parser = OrgNameToEndpoint.class) String orgName);\n\n /**\n * @see CommonVCloudClient#getCatalog\n */\n @GET\n @XMLResponseParser(CatalogHandler.class)\n @ExceptionParser(ReturnNullOnNotFoundOr404.class)\n @Consumes(CATALOG_XML)\n ListenableFuture<? extends Catalog> getCatalog(@EndpointParam URI catalogId);\n\n /**\n * @see CommonVCloudClient#findCatalogInOrgNamed\n */\n @GET\n @XMLResponseParser(CatalogHandler.class)\n @ExceptionParser(ReturnNullOnNotFoundOr404.class)\n @Consumes(CATALOG_XML)\n ListenableFuture<? extends Catalog> findCatalogInOrgNamed(\n @Nullable @EndpointParam(parser = OrgNameAndCatalogNameToEndpoint.class) String orgName,\n @Nullable @EndpointParam(parser = OrgNameAndCatalogNameToEndpoint.class) String catalogName);\n\n /**\n * @see CommonVCloudClient#getCatalogItem\n */\n @GET\n @Consumes(CATALOGITEM_XML)\n @XMLResponseParser(CatalogItemHandler.class)\n @ExceptionParser(ReturnNullOnNotFoundOr404.class)\n ListenableFuture<? extends CatalogItem> getCatalogItem(@EndpointParam URI catalogItem);\n\n /**\n * @see CommonVCloudClient#getCatalogItemInOrg\n */\n @GET\n @Consumes(CATALOGITEM_XML)\n @XMLResponseParser(CatalogItemHandler.class)\n @ExceptionParser(ReturnNullOnNotFoundOr404.class)\n ListenableFuture<? extends CatalogItem> findCatalogItemInOrgCatalogNamed(\n @Nullable @EndpointParam(parser = OrgNameCatalogNameItemNameToEndpoint.class) String orgName,\n @Nullable @EndpointParam(parser = OrgNameCatalogNameItemNameToEndpoint.class) String catalogName,\n @EndpointParam(parser = OrgNameCatalogNameItemNameToEndpoint.class) String itemName);\n\n /**\n * @see CommonVCloudClient#findNetworkInOrgVDCNamed\n */\n @GET\n @Consumes(NETWORK_XML)\n @XMLResponseParser(OrgNetworkHandler.class)\n @ExceptionParser(ReturnNullOnNotFoundOr404.class)\n ListenableFuture<? extends OrgNetwork> findNetworkInOrgVDCNamed(\n @Nullable @EndpointParam(parser = OrgNameVDCNameResourceEntityNameToEndpoint.class) String orgName,\n @Nullable @EndpointParam(parser = OrgNameVDCNameResourceEntityNameToEndpoint.class) String catalogName,\n @EndpointParam(parser = OrgNameVDCNameResourceEntityNameToEndpoint.class) String networkName);\n\n /**\n * @see CommonVCloudClient#getNetwork\n */\n @GET\n @Consumes(NETWORK_XML)\n @XMLResponseParser(OrgNetworkHandler.class)\n @ExceptionParser(ReturnNullOnNotFoundOr404.class)\n ListenableFuture<? extends OrgNetwork> getNetwork(@EndpointParam URI network);\n\n /**\n * @see CommonVCloudClient#getVDC(URI)\n */\n @GET\n @XMLResponseParser(VDCHandler.class)\n @Consumes(VDC_XML)\n @ExceptionParser(ReturnNullOnNotFoundOr404.class)\n ListenableFuture<? extends VDC> getVDC(@EndpointParam URI vdc);\n\n /**\n * @see CommonVCloudClient#findVDCInOrgNamed(String, String)\n */\n @GET\n @XMLResponseParser(VDCHandler.class)\n @Consumes(VDC_XML)\n @ExceptionParser(ReturnNullOnNotFoundOr404.class)\n ListenableFuture<? extends VDC> findVDCInOrgNamed(\n @Nullable @EndpointParam(parser = OrgNameAndVDCNameToEndpoint.class) String orgName,\n @Nullable @EndpointParam(parser = OrgNameAndVDCNameToEndpoint.class) String vdcName);\n\n /**\n * @see CommonVCloudClient#getTasksList\n */\n @GET\n @Consumes(TASKSLIST_XML)\n @XMLResponseParser(TasksListHandler.class)\n @ExceptionParser(ReturnNullOnNotFoundOr404.class)\n ListenableFuture<? extends TasksList> getTasksList(@EndpointParam URI tasksListId);\n\n /**\n * @see CommonVCloudClient#findTasksListInOrgNamed\n */\n @GET\n @Consumes(TASKSLIST_XML)\n @XMLResponseParser(TasksListHandler.class)\n @ExceptionParser(ReturnNullOnNotFoundOr404.class)\n ListenableFuture<? extends TasksList> findTasksListInOrgNamed(\n @Nullable @EndpointParam(parser = OrgNameToTasksListEndpoint.class) String orgName);\n\n /**\n * @see CommonVCloudClient#getTask\n */\n @GET\n @Consumes(TASK_XML)\n @XMLResponseParser(TaskHandler.class)\n @ExceptionParser(ReturnNullOnNotFoundOr404.class)\n ListenableFuture<? extends Task> getTask(@EndpointParam URI taskId);\n\n /**\n * @see CommonVCloudClient#cancelTask\n */\n @POST\n @Path(\"/action/cancel\")\n ListenableFuture<Void> cancelTask(@EndpointParam URI taskId);\n\n}", "title": "" }, { "docid": "f6804dc805e8166db8d6f23144814573", "score": "0.5267868", "text": "@Timeout(duration = 300, timeUnit = TimeUnit.SECONDS)\npublic interface ServiceManagementClient {\n /**\n * Powers on the VM\n * <p/>\n * <h4>Pre-conditions:</h4>\n * <p/>\n * No other API operation is being performed on the VM.\n * \n * @param billingSiteId\n * billing site Id, or null for default\n * @param vpdcId\n * vpdc Id\n * @param vmId\n * vm you wish to remove\n * @return task of the power operation\n */\n Task powerOnVMInVDC(String billingSiteId, String vpdcId, String vmId);\n\n /**\n * \n * @param vm\n * href of the vm\n * @see #powerOnVMInVDC\n */\n Task powerOnVM(URI vm);\n\n /**\n * Powers off the VM\n * <p/>\n * <h4>Pre-conditions:</h4>\n * <p/>\n * No other API operation is being performed on the VM.\n * \n * @param billingSiteId\n * billing site Id, or null for default\n * @param vpdcId\n * vpdc Id\n * @param vmId\n * vm you wish to remove\n * @return task of the power operation\n */\n Task powerOffVMInVDC(String billingSiteId, String vpdcId, String vmId);\n\n /**\n * \n * @param vm\n * href of the vm\n * @see #powerOffVMInVDC\n */\n Task powerOffVM(URI vm);\n\n}", "title": "" }, { "docid": "d3c8c0565a293ecdbc8eda68bc6562f0", "score": "0.52478725", "text": "protected HttpJsonCloudShellServiceStub(\n CloudShellServiceStubSettings settings,\n ClientContext clientContext,\n HttpJsonStubCallableFactory callableFactory)\n throws IOException {\n this.callableFactory = callableFactory;\n this.httpJsonOperationsStub =\n HttpJsonOperationsStub.create(clientContext, callableFactory, typeRegistry);\n\n HttpJsonCallSettings<GetEnvironmentRequest, Environment> getEnvironmentTransportSettings =\n HttpJsonCallSettings.<GetEnvironmentRequest, Environment>newBuilder()\n .setMethodDescriptor(getEnvironmentMethodDescriptor)\n .setTypeRegistry(typeRegistry)\n .setParamsExtractor(\n request -> {\n RequestParamsBuilder builder = RequestParamsBuilder.create();\n builder.add(\"name\", String.valueOf(request.getName()));\n return builder.build();\n })\n .build();\n HttpJsonCallSettings<StartEnvironmentRequest, Operation> startEnvironmentTransportSettings =\n HttpJsonCallSettings.<StartEnvironmentRequest, Operation>newBuilder()\n .setMethodDescriptor(startEnvironmentMethodDescriptor)\n .setTypeRegistry(typeRegistry)\n .setParamsExtractor(\n request -> {\n RequestParamsBuilder builder = RequestParamsBuilder.create();\n builder.add(\"name\", String.valueOf(request.getName()));\n return builder.build();\n })\n .build();\n HttpJsonCallSettings<AuthorizeEnvironmentRequest, Operation>\n authorizeEnvironmentTransportSettings =\n HttpJsonCallSettings.<AuthorizeEnvironmentRequest, Operation>newBuilder()\n .setMethodDescriptor(authorizeEnvironmentMethodDescriptor)\n .setTypeRegistry(typeRegistry)\n .setParamsExtractor(\n request -> {\n RequestParamsBuilder builder = RequestParamsBuilder.create();\n builder.add(\"name\", String.valueOf(request.getName()));\n return builder.build();\n })\n .build();\n HttpJsonCallSettings<AddPublicKeyRequest, Operation> addPublicKeyTransportSettings =\n HttpJsonCallSettings.<AddPublicKeyRequest, Operation>newBuilder()\n .setMethodDescriptor(addPublicKeyMethodDescriptor)\n .setTypeRegistry(typeRegistry)\n .setParamsExtractor(\n request -> {\n RequestParamsBuilder builder = RequestParamsBuilder.create();\n builder.add(\"environment\", String.valueOf(request.getEnvironment()));\n return builder.build();\n })\n .build();\n HttpJsonCallSettings<RemovePublicKeyRequest, Operation> removePublicKeyTransportSettings =\n HttpJsonCallSettings.<RemovePublicKeyRequest, Operation>newBuilder()\n .setMethodDescriptor(removePublicKeyMethodDescriptor)\n .setTypeRegistry(typeRegistry)\n .setParamsExtractor(\n request -> {\n RequestParamsBuilder builder = RequestParamsBuilder.create();\n builder.add(\"environment\", String.valueOf(request.getEnvironment()));\n return builder.build();\n })\n .build();\n\n this.getEnvironmentCallable =\n callableFactory.createUnaryCallable(\n getEnvironmentTransportSettings, settings.getEnvironmentSettings(), clientContext);\n this.startEnvironmentCallable =\n callableFactory.createUnaryCallable(\n startEnvironmentTransportSettings, settings.startEnvironmentSettings(), clientContext);\n this.startEnvironmentOperationCallable =\n callableFactory.createOperationCallable(\n startEnvironmentTransportSettings,\n settings.startEnvironmentOperationSettings(),\n clientContext,\n httpJsonOperationsStub);\n this.authorizeEnvironmentCallable =\n callableFactory.createUnaryCallable(\n authorizeEnvironmentTransportSettings,\n settings.authorizeEnvironmentSettings(),\n clientContext);\n this.authorizeEnvironmentOperationCallable =\n callableFactory.createOperationCallable(\n authorizeEnvironmentTransportSettings,\n settings.authorizeEnvironmentOperationSettings(),\n clientContext,\n httpJsonOperationsStub);\n this.addPublicKeyCallable =\n callableFactory.createUnaryCallable(\n addPublicKeyTransportSettings, settings.addPublicKeySettings(), clientContext);\n this.addPublicKeyOperationCallable =\n callableFactory.createOperationCallable(\n addPublicKeyTransportSettings,\n settings.addPublicKeyOperationSettings(),\n clientContext,\n httpJsonOperationsStub);\n this.removePublicKeyCallable =\n callableFactory.createUnaryCallable(\n removePublicKeyTransportSettings, settings.removePublicKeySettings(), clientContext);\n this.removePublicKeyOperationCallable =\n callableFactory.createOperationCallable(\n removePublicKeyTransportSettings,\n settings.removePublicKeyOperationSettings(),\n clientContext,\n httpJsonOperationsStub);\n\n this.backgroundResources =\n new BackgroundResourceAggregation(clientContext.getBackgroundResources());\n }", "title": "" }, { "docid": "b8634d43b2dd24a3657973cb1250f27e", "score": "0.5237473", "text": "IMqttAsyncClient mo134643d();", "title": "" }, { "docid": "018cb934c2777b8956b8b3568ef8a57f", "score": "0.5235268", "text": "public static BalanceServiceFutureStub newFutureStub(\n io.grpc.Channel channel) {\n return new BalanceServiceFutureStub(channel);\n }", "title": "" }, { "docid": "b7b26a7d93afd75c1bf7b6a357e957c6", "score": "0.52287084", "text": "public interface RestServiceCaller {\n Future<String> callService(String url, Map<String, String> headers, Map<String, Object> parameters, HttpMethod method);\n}", "title": "" }, { "docid": "a878924ca86157eb5a64dc065f51e21f", "score": "0.52286756", "text": "RPC createRPC();", "title": "" }, { "docid": "dffec80c013e508b48cbdf0feb57f6ce", "score": "0.52230495", "text": "public interface InterOp_Service {\r\n\r\n\r\n /**\r\n * Auto generated method signature\r\n * \r\n * @param connectivityTestFL0\r\n * \r\n */\r\n\r\n\r\n public org.immregistries.smm.tester.connectors.fl.ConnectivityTestFLResponse connectivityTestFL(\r\n\r\n org.immregistries.smm.tester.connectors.fl.ConnectivityTestFL connectivityTestFL0)\r\n throws java.rmi.RemoteException;\r\n\r\n\r\n /**\r\n * Auto generated method signature for Asynchronous Invocations\r\n * \r\n * @param connectivityTestFL0\r\n * \r\n */\r\n public void startconnectivityTestFL(\r\n\r\n org.immregistries.smm.tester.connectors.fl.ConnectivityTestFL connectivityTestFL0,\r\n\r\n final org.immregistries.smm.tester.connectors.fl.InterOp_ServiceCallbackHandler callback)\r\n\r\n throws java.rmi.RemoteException;\r\n\r\n\r\n\r\n /**\r\n * Auto generated method signature\r\n * \r\n * @param submitSingleMessage2\r\n * \r\n */\r\n\r\n\r\n public org.immregistries.smm.tester.connectors.fl.SubmitSingleMessageResponse submitSingleMessage(\r\n\r\n org.immregistries.smm.tester.connectors.fl.SubmitSingleMessage submitSingleMessage2)\r\n throws java.rmi.RemoteException;\r\n\r\n\r\n /**\r\n * Auto generated method signature for Asynchronous Invocations\r\n * \r\n * @param submitSingleMessage2\r\n * \r\n */\r\n public void startsubmitSingleMessage(\r\n\r\n org.immregistries.smm.tester.connectors.fl.SubmitSingleMessage submitSingleMessage2,\r\n\r\n final org.immregistries.smm.tester.connectors.fl.InterOp_ServiceCallbackHandler callback)\r\n\r\n throws java.rmi.RemoteException;\r\n\r\n\r\n\r\n //\r\n}", "title": "" }, { "docid": "8213df8aae256510a3e58e296f18a89d", "score": "0.5219497", "text": "public interface ContentServiceAsync extends AbstractServiceAsync<Content> {\r\n}", "title": "" }, { "docid": "95c1342c282f8a5cc300b9cfc494cf2a", "score": "0.5214553", "text": "public interface QCServiceAsync {\n\tvoid performQC(AsyncCallback<String> callback) throws IllegalArgumentException;\n\tvoid NbSamplesWithoutQC(AsyncCallback<Integer> callback) throws IllegalArgumentException;\n\tvoid QCProgress(AsyncCallback<String> callback) throws IllegalArgumentException;\n}", "title": "" }, { "docid": "59d10878364bf12f41399bc5e114d1df", "score": "0.52137804", "text": "private TailClientBlockingStub getClientStub(String host, int port) {\n ManagedChannel ch = ManagedChannelBuilder.forAddress(host, port).usePlaintext().build();\n return TailClientGrpc.newBlockingStub(ch);\n }", "title": "" }, { "docid": "62ba3d050ea675e68191c56f2659beeb", "score": "0.5205498", "text": "public static AppMasterApiFutureStub newFutureStub(\n io.grpc.Channel channel) {\n return new AppMasterApiFutureStub(channel);\n }", "title": "" }, { "docid": "ee02485f2dfe7437d3cec64d9994107d", "score": "0.5188939", "text": "@SPI(alias = \"rpcResultAdapter\")\npublic interface RpcResultAdapter {\n /**\n * rpc call result处理\n *\n * @param type 服务方法返回类型\n * @param async async rpc call or not\n * @param userFuture rpc call关联的future\n * @return rpc call result\n */\n Object convert(Class<?> type, boolean async, CompletableFuture<?> userFuture);\n\n /**\n * 标识{@code type}是否由该adapter处理\n *\n * @param type 服务方法方法返回类型\n * @return true表示服务方法方法返回结果由该adapter处理\n */\n boolean match(Class<?> type);\n}", "title": "" }, { "docid": "93c37422da57b835b0a0dd85c077f305", "score": "0.5179687", "text": "public static LightningFutureStub newFutureStub(\n io.grpc.Channel channel) {\n return new LightningFutureStub(channel);\n }", "title": "" }, { "docid": "3810ea8783c5f78948145439513fa456", "score": "0.51713896", "text": "public static QuestionServiceFutureStub newFutureStub(\n io.grpc.Channel channel) {\n io.grpc.stub.AbstractStub.StubFactory<QuestionServiceFutureStub> factory =\n new io.grpc.stub.AbstractStub.StubFactory<QuestionServiceFutureStub>() {\n @java.lang.Override\n public QuestionServiceFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {\n return new QuestionServiceFutureStub(channel, callOptions);\n }\n };\n return QuestionServiceFutureStub.newStub(factory, channel);\n }", "title": "" }, { "docid": "829ac0084c133140224f8e8e8ab434ad", "score": "0.5170602", "text": "@RemoteServiceRelativePath(\"rpc-service\")\npublic interface RpcService\n extends RemoteService\n{\n /**\n * Executes some {@link RpcRequest} and returns some {@link RpcResponse}. This method\n * follows Command pattern.\n * \n * @param rpcRequest RPC request object containing data which is needed in order to\n * execute the request.\n * @return Response object which contains data which is the product of executing the RPC\n * request.\n * @throws RpcServiceException If anything goes wrong with executing the RPC request.\n */\n public <RpcRequestT extends RpcRequest<RpcResponseT>, RpcResponseT extends RpcResponse> RpcResponseT execute(RpcRequestT rpcRequest)\n throws RpcServiceException;\n}", "title": "" }, { "docid": "4b4e933e6bc10fb20b0f04216c8cc7c5", "score": "0.51652706", "text": "public static QuestionServiceStub newStub(io.grpc.Channel channel) {\n io.grpc.stub.AbstractStub.StubFactory<QuestionServiceStub> factory =\n new io.grpc.stub.AbstractStub.StubFactory<QuestionServiceStub>() {\n @java.lang.Override\n public QuestionServiceStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {\n return new QuestionServiceStub(channel, callOptions);\n }\n };\n return QuestionServiceStub.newStub(factory, channel);\n }", "title": "" }, { "docid": "a2685963f7adee0b5ffbdfdd5e952a66", "score": "0.51587737", "text": "public Stub()\n{\nthis.attachInterface(this, DESCRIPTOR);\n}", "title": "" }, { "docid": "a2685963f7adee0b5ffbdfdd5e952a66", "score": "0.51587737", "text": "public Stub()\n{\nthis.attachInterface(this, DESCRIPTOR);\n}", "title": "" }, { "docid": "a2685963f7adee0b5ffbdfdd5e952a66", "score": "0.51587737", "text": "public Stub()\n{\nthis.attachInterface(this, DESCRIPTOR);\n}", "title": "" }, { "docid": "a2685963f7adee0b5ffbdfdd5e952a66", "score": "0.51587737", "text": "public Stub()\n{\nthis.attachInterface(this, DESCRIPTOR);\n}", "title": "" }, { "docid": "a2685963f7adee0b5ffbdfdd5e952a66", "score": "0.51587737", "text": "public Stub()\n{\nthis.attachInterface(this, DESCRIPTOR);\n}", "title": "" }, { "docid": "a2685963f7adee0b5ffbdfdd5e952a66", "score": "0.51587737", "text": "public Stub()\n{\nthis.attachInterface(this, DESCRIPTOR);\n}", "title": "" }, { "docid": "a2685963f7adee0b5ffbdfdd5e952a66", "score": "0.51587737", "text": "public Stub()\n{\nthis.attachInterface(this, DESCRIPTOR);\n}", "title": "" }, { "docid": "a2685963f7adee0b5ffbdfdd5e952a66", "score": "0.51587737", "text": "public Stub()\n{\nthis.attachInterface(this, DESCRIPTOR);\n}", "title": "" }, { "docid": "a2685963f7adee0b5ffbdfdd5e952a66", "score": "0.51587737", "text": "public Stub()\n{\nthis.attachInterface(this, DESCRIPTOR);\n}", "title": "" }, { "docid": "a2685963f7adee0b5ffbdfdd5e952a66", "score": "0.51587737", "text": "public Stub()\n{\nthis.attachInterface(this, DESCRIPTOR);\n}", "title": "" }, { "docid": "a2685963f7adee0b5ffbdfdd5e952a66", "score": "0.51587737", "text": "public Stub()\n{\nthis.attachInterface(this, DESCRIPTOR);\n}", "title": "" }, { "docid": "a2685963f7adee0b5ffbdfdd5e952a66", "score": "0.51587737", "text": "public Stub()\n{\nthis.attachInterface(this, DESCRIPTOR);\n}", "title": "" }, { "docid": "a2685963f7adee0b5ffbdfdd5e952a66", "score": "0.51587737", "text": "public Stub()\n{\nthis.attachInterface(this, DESCRIPTOR);\n}", "title": "" }, { "docid": "a2685963f7adee0b5ffbdfdd5e952a66", "score": "0.51587737", "text": "public Stub()\n{\nthis.attachInterface(this, DESCRIPTOR);\n}", "title": "" }, { "docid": "a2685963f7adee0b5ffbdfdd5e952a66", "score": "0.51587737", "text": "public Stub()\n{\nthis.attachInterface(this, DESCRIPTOR);\n}", "title": "" }, { "docid": "a2685963f7adee0b5ffbdfdd5e952a66", "score": "0.51587737", "text": "public Stub()\n{\nthis.attachInterface(this, DESCRIPTOR);\n}", "title": "" }, { "docid": "a2685963f7adee0b5ffbdfdd5e952a66", "score": "0.51587737", "text": "public Stub()\n{\nthis.attachInterface(this, DESCRIPTOR);\n}", "title": "" }, { "docid": "c2f81b71c3d2b0c151ddcb8d02af2475", "score": "0.51549006", "text": "public static SqlTranslationServiceFutureStub newFutureStub(io.grpc.Channel channel) {\n io.grpc.stub.AbstractStub.StubFactory<SqlTranslationServiceFutureStub> factory =\n new io.grpc.stub.AbstractStub.StubFactory<SqlTranslationServiceFutureStub>() {\n @java.lang.Override\n public SqlTranslationServiceFutureStub newStub(\n io.grpc.Channel channel, io.grpc.CallOptions callOptions) {\n return new SqlTranslationServiceFutureStub(channel, callOptions);\n }\n };\n return SqlTranslationServiceFutureStub.newStub(factory, channel);\n }", "title": "" }, { "docid": "8b5a24aa79e884306c6d5b3c96c1529a", "score": "0.5141645", "text": "public interface FutureServce {\n\n @GET(\"coming_soon\")\n Call<MoiveListGsonBean> getState();\n}", "title": "" }, { "docid": "e21e2949c7c1f13237ee54631026515d", "score": "0.5133888", "text": "public static SpeechServiceStub newStub(io.grpc.Channel channel) {\n io.grpc.stub.AbstractStub.StubFactory<SpeechServiceStub> factory =\n new io.grpc.stub.AbstractStub.StubFactory<SpeechServiceStub>() {\n @java.lang.Override\n public SpeechServiceStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {\n return new SpeechServiceStub(channel, callOptions);\n }\n };\n return SpeechServiceStub.newStub(factory, channel);\n }", "title": "" }, { "docid": "e587257d2ef237ee32a71a524f326a30", "score": "0.51274526", "text": "public interface IServiceCallProxy {\n\n /**\n * @return Service type\n */\n public ServiceType getServiceType();\n\n /**\n * Register endpoint.\n *\n * @param appId Application identifier\n */\n public void registerEndpt(String appId);\n\n /**\n * Handle remote service call.\n *\n * @param msg Service call request\n * @param appId Application identifier\n * @param ch Channel for sending service call response\n */\n public void handleMessage(ServiceCallMsg msg, String appId, Channel ch);\n\n}", "title": "" }, { "docid": "c7509cfd9e2cb1bafc0d0b323279f724", "score": "0.51220167", "text": "@Override\n PlatformAsyncService getPlatformService();", "title": "" }, { "docid": "bdfd5b8d6c0af212c59fd32307294e93", "score": "0.5120389", "text": "public Stub()\n {\n this.attachInterface(this, DESCRIPTOR);\n }", "title": "" }, { "docid": "bdfd5b8d6c0af212c59fd32307294e93", "score": "0.5120389", "text": "public Stub()\n {\n this.attachInterface(this, DESCRIPTOR);\n }", "title": "" }, { "docid": "bdfd5b8d6c0af212c59fd32307294e93", "score": "0.5120389", "text": "public Stub()\n {\n this.attachInterface(this, DESCRIPTOR);\n }", "title": "" }, { "docid": "bdfd5b8d6c0af212c59fd32307294e93", "score": "0.5120389", "text": "public Stub()\n {\n this.attachInterface(this, DESCRIPTOR);\n }", "title": "" }, { "docid": "9ba89a267f703f5c70c39c5790ad8a42", "score": "0.5114882", "text": "public ApiCallableBuilder(MethodDescriptor<RequestT, ResponseT> grpcMethodDescriptor) {\n this.baseCallable = ApiCallable.create(grpcMethodDescriptor);\n }", "title": "" }, { "docid": "bfb0c721cd2648320a687e028dbb33f5", "score": "0.5111454", "text": "protected HttpJsonRegistrationServiceStub(\n RegistrationServiceStubSettings settings, ClientContext clientContext) throws IOException {\n this(settings, clientContext, new HttpJsonRegistrationServiceCallableFactory());\n }", "title": "" }, { "docid": "f2e792d026cb901b609490b65f5dacde", "score": "0.510869", "text": "public interface CITAj extends CITA, CITAjRx {\n\n /**\n * Construct a new CITAj instance.\n *\n * @param citajService citaj service instance - i.e. HTTP or IPC\n * @return new CITAj instance\n */\n static CITAj build(CITAjService citajService) {\n return new JsonRpc2_0CITAj(citajService);\n }\n\n static CITAj build(CITAjService citajService, long pollingInterval) {\n return new JsonRpc2_0CITAj(citajService, pollingInterval);\n }\n\n /**\n * Construct a new CITAj instance.\n *\n * @param citajService citaj service instance - i.e. HTTP or IPC\n * @param pollingInterval polling interval for responses from network nodes\n * @param scheduledExecutorService executor service to use for scheduled tasks.\n * <strong>You are responsible for terminating this thread\n * pool</strong>\n * @return new CITAj instance\n */\n static CITAj build(\n CITAjService citajService, long pollingInterval,\n ScheduledExecutorService scheduledExecutorService) {\n return new JsonRpc2_0CITAj(citajService, pollingInterval, scheduledExecutorService);\n }\n}", "title": "" }, { "docid": "bfb1ce232cc80f9edcee0079acd71384", "score": "0.51055616", "text": "@RemoteServiceRelativePath(\"DoSomethingServiceClient\")\npublic interface DoSomethingServiceClient extends RemoteService {\n String doWork();\n\n /**\n * Utility/Convenience class.\n * Use DoSomethingServiceClient.App.getInstance() to access static instance of TestServiceAsync\n */\n public static class App {\n private static final DoSomethingServiceClientAsync ourInstance =\n (DoSomethingServiceClientAsync) GWT.create(DoSomethingServiceClient.class);\n\n public static DoSomethingServiceClientAsync getInstance() {\n return ourInstance;\n }\n }\n}", "title": "" }, { "docid": "6686be95b5356ce65f1cfd955e02ef5f", "score": "0.5099479", "text": "public interface ZeroRequestHandler {\n ListenableFuture<ZeroIndicatorData> mo3440a(FetchZeroIndicatorRequestParams fetchZeroIndicatorRequestParams, FutureCallback<ZeroIndicatorData> futureCallback);\n\n ListenableFuture<FetchZeroInterstitialContentResult> mo3441a(FetchZeroInterstitialContentParams fetchZeroInterstitialContentParams, FutureCallback<FetchZeroInterstitialContentResult> futureCallback);\n\n ListenableFuture<FetchZeroInterstitialEligibilityResult> mo3442a(FetchZeroInterstitialEligibilityParams fetchZeroInterstitialEligibilityParams, FutureCallback<FetchZeroInterstitialEligibilityResult> futureCallback);\n\n ListenableFuture<FetchZeroOptinContentRequestResult> mo3443a(FetchZeroOptinContentRequestParams fetchZeroOptinContentRequestParams, FutureCallback<FetchZeroOptinContentRequestResult> futureCallback);\n\n ListenableFuture<ZeroToken> mo3444a(FetchZeroTokenRequestParams fetchZeroTokenRequestParams, FutureCallback<ZeroToken> futureCallback);\n\n ListenableFuture<ZeroOptinResult> mo3445a(ZeroOptinParams zeroOptinParams, FutureCallback<ZeroOptinResult> futureCallback);\n\n ListenableFuture<ZeroOptoutResult> mo3446a(ZeroOptoutParams zeroOptoutParams, FutureCallback<ZeroOptoutResult> futureCallback);\n}", "title": "" }, { "docid": "603fd101ff2739223543887f879ad13c", "score": "0.5096739", "text": "public static AddressBookFutureStub newFutureStub(\n io.grpc.Channel channel) {\n return new AddressBookFutureStub(channel);\n }", "title": "" }, { "docid": "434bb26e01e311e31a3b8d21b44e0c3f", "score": "0.5087472", "text": "@Override\n public <REQ, RES> RES invokeMethod(REQ grpcRequest, Class<RES> grpcResponseType) {\n return null;\n }", "title": "" }, { "docid": "927c3d04c785c970b9f269efee614607", "score": "0.5080919", "text": "public interface Dispatch<T> extends BindingProvider {\n\n /** Invoke a service operation synchronously.\n *\n * The client is responsible for ensuring that the <code>msg</code> object\n * when marshalled is formed according to the requirements of the protocol\n * binding in use.\n *\n * @param msg An object that will form the message or payload of\n * the message used to invoke the operation.\n * @return The response message or message payload to the\n * operation invocation.\n * @throws WebServiceException If a fault occurs during communication with\n * the service\n * @throws WebServiceException If there is any error in the configuration of\n * the <code>Dispatch</code> instance\n **/\n public T invoke(T msg);\n\n /** Invoke a service operation asynchronously. The\n * method returns without waiting for the response to the operation\n * invocation, the results of the operation are obtained by polling the\n * returned <code>Response</code>.\n * <p>\n * The client is responsible for ensuring that the <code>msg</code> object\n * when marshalled is formed according to the requirements of the protocol\n * binding in use.\n *\n * @param msg An object that will form the message or payload of\n * the message used to invoke the operation.\n * @return The response message or message payload to the\n * operation invocation.\n * @throws WebServiceException If there is any error in the configuration of\n * the <code>Dispatch</code> instance\n **/\n public Response<T> invokeAsync(T msg);\n\n /** Invoke a service operation asynchronously. The\n * method returns without waiting for the response to the operation\n * invocation, the results of the operation are communicated to the client\n * via the passed in <code>handler</code>.\n * <p>\n * The client is responsible for ensuring that the <code>msg</code> object\n * when marshalled is formed according to the requirements of the protocol\n * binding in use.\n *\n * @param msg An object that will form the message or payload of\n * the message used to invoke the operation.\n * @param handler The handler object that will receive the\n * response to the operation invocation.\n * @return A <code>Future</code> object that may be used to check the status\n * of the operation invocation. This object MUST NOT be used to try to\n * obtain the results of the operation - the object returned from\n * <code>Future&lt;?>.get()</code> is implementation dependent\n * and any use of it will result in non-portable behaviour.\n * @throws WebServiceException If there is any error in the configuration of\n * the <code>Dispatch</code> instance\n **/\n public Future<?> invokeAsync(T msg, AsyncHandler<T> handler);\n\n /** Invokes a service operation using the one-way\n * interaction mode. The operation invocation is logically non-blocking,\n * subject to the capabilities of the underlying protocol, no results\n * are returned. When\n * the protocol in use is SOAP/HTTP, this method MUST block until\n * an HTTP response code has been received or an error occurs.\n * <p>\n * The client is responsible for ensuring that the <code>msg</code> object\n * when marshalled is formed according to the requirements of the protocol\n * binding in use.\n *\n * @param msg An object that will form the message or payload of\n * the message used to invoke the operation.\n * @throws WebServiceException If there is any error in the configuration of\n * the <code>Dispatch</code> instance or if an error occurs during the\n * invocation.\n **/\n public void invokeOneWay(T msg);\n}", "title": "" }, { "docid": "0f35699cee7e4158ae451afea31afe80", "score": "0.50806457", "text": "public static CalculateServiceFutureStub newFutureStub(\n io.grpc.Channel channel) {\n return new CalculateServiceFutureStub(channel);\n }", "title": "" }, { "docid": "fb085bc90e5f620cae09fd390b34ae21", "score": "0.5073446", "text": "public static ProduceServiceFutureStub newFutureStub(\n io.grpc.Channel channel) {\n return new ProduceServiceFutureStub(channel);\n }", "title": "" }, { "docid": "fea4eff25a0ca1b1a052ef04c8b29ecf", "score": "0.5067996", "text": "public interface IRemoteService extends android.os.IInterface\n{\n/** Local-side IPC implementation stub class. */\npublic static abstract class Stub extends android.os.Binder implements org.spontaneous.trackservice.IRemoteService\n{\nprivate static final java.lang.String DESCRIPTOR = \"org.spontaneous.trackservice.IRemoteService\";\n/** Construct the stub at attach it to the interface. */\npublic Stub()\n{\nthis.attachInterface(this, DESCRIPTOR);\n}\n/**\n * Cast an IBinder object into an org.spontaneous.trackservice.IRemoteService interface,\n * generating a proxy if needed.\n */\npublic static org.spontaneous.trackservice.IRemoteService asInterface(android.os.IBinder obj)\n{\nif ((obj==null)) {\nreturn null;\n}\nandroid.os.IInterface iin = obj.queryLocalInterface(DESCRIPTOR);\nif (((iin!=null)&&(iin instanceof org.spontaneous.trackservice.IRemoteService))) {\nreturn ((org.spontaneous.trackservice.IRemoteService)iin);\n}\nreturn new org.spontaneous.trackservice.IRemoteService.Stub.Proxy(obj);\n}\n@Override public android.os.IBinder asBinder()\n{\nreturn this;\n}\n@Override public boolean onTransact(int code, android.os.Parcel data, android.os.Parcel reply, int flags) throws android.os.RemoteException\n{\nswitch (code)\n{\ncase INTERFACE_TRANSACTION:\n{\nreply.writeString(DESCRIPTOR);\nreturn true;\n}\ncase TRANSACTION_registerCallback:\n{\ndata.enforceInterface(DESCRIPTOR);\norg.spontaneous.trackservice.IRemoteServiceCallback _arg0;\n_arg0 = org.spontaneous.trackservice.IRemoteServiceCallback.Stub.asInterface(data.readStrongBinder());\nthis.registerCallback(_arg0);\nreply.writeNoException();\nreturn true;\n}\ncase TRANSACTION_unregisterCallback:\n{\ndata.enforceInterface(DESCRIPTOR);\norg.spontaneous.trackservice.IRemoteServiceCallback _arg0;\n_arg0 = org.spontaneous.trackservice.IRemoteServiceCallback.Stub.asInterface(data.readStrongBinder());\nthis.unregisterCallback(_arg0);\nreply.writeNoException();\nreturn true;\n}\ncase TRANSACTION_loggingState:\n{\ndata.enforceInterface(DESCRIPTOR);\nint _result = this.loggingState();\nreply.writeNoException();\nreply.writeInt(_result);\nreturn true;\n}\ncase TRANSACTION_startLogging:\n{\ndata.enforceInterface(DESCRIPTOR);\nandroid.location.Location _arg0;\nif ((0!=data.readInt())) {\n_arg0 = android.location.Location.CREATOR.createFromParcel(data);\n}\nelse {\n_arg0 = null;\n}\nlong _result = this.startLogging(_arg0);\nreply.writeNoException();\nreply.writeLong(_result);\nreturn true;\n}\ncase TRANSACTION_pauseLogging:\n{\ndata.enforceInterface(DESCRIPTOR);\nthis.pauseLogging();\nreply.writeNoException();\nreturn true;\n}\ncase TRANSACTION_resumeLogging:\n{\ndata.enforceInterface(DESCRIPTOR);\nlong _arg0;\n_arg0 = data.readLong();\nlong _result = this.resumeLogging(_arg0);\nreply.writeNoException();\nreply.writeLong(_result);\nreturn true;\n}\ncase TRANSACTION_stopLogging:\n{\ndata.enforceInterface(DESCRIPTOR);\nthis.stopLogging();\nreply.writeNoException();\nreturn true;\n}\n}\nreturn super.onTransact(code, data, reply, flags);\n}\nprivate static class Proxy implements org.spontaneous.trackservice.IRemoteService\n{\nprivate android.os.IBinder mRemote;\nProxy(android.os.IBinder remote)\n{\nmRemote = remote;\n}\n@Override public android.os.IBinder asBinder()\n{\nreturn mRemote;\n}\npublic java.lang.String getInterfaceDescriptor()\n{\nreturn DESCRIPTOR;\n}\n/**\n\t* Often you want to allow a service to call back to its clients.\n\t* This shows how to do so, by registering a callback interface with\n\t* the service.\n\t*/\n@Override public void registerCallback(org.spontaneous.trackservice.IRemoteServiceCallback cb) throws android.os.RemoteException\n{\nandroid.os.Parcel _data = android.os.Parcel.obtain();\nandroid.os.Parcel _reply = android.os.Parcel.obtain();\ntry {\n_data.writeInterfaceToken(DESCRIPTOR);\n_data.writeStrongBinder((((cb!=null))?(cb.asBinder()):(null)));\nmRemote.transact(Stub.TRANSACTION_registerCallback, _data, _reply, 0);\n_reply.readException();\n}\nfinally {\n_reply.recycle();\n_data.recycle();\n}\n}\n/**\n\t* Remove a previously registered callback interface.\n\t*/\n@Override public void unregisterCallback(org.spontaneous.trackservice.IRemoteServiceCallback cb) throws android.os.RemoteException\n{\nandroid.os.Parcel _data = android.os.Parcel.obtain();\nandroid.os.Parcel _reply = android.os.Parcel.obtain();\ntry {\n_data.writeInterfaceToken(DESCRIPTOR);\n_data.writeStrongBinder((((cb!=null))?(cb.asBinder()):(null)));\nmRemote.transact(Stub.TRANSACTION_unregisterCallback, _data, _reply, 0);\n_reply.readException();\n}\nfinally {\n_reply.recycle();\n_data.recycle();\n}\n}\n@Override public int loggingState() throws android.os.RemoteException\n{\nandroid.os.Parcel _data = android.os.Parcel.obtain();\nandroid.os.Parcel _reply = android.os.Parcel.obtain();\nint _result;\ntry {\n_data.writeInterfaceToken(DESCRIPTOR);\nmRemote.transact(Stub.TRANSACTION_loggingState, _data, _reply, 0);\n_reply.readException();\n_result = _reply.readInt();\n}\nfinally {\n_reply.recycle();\n_data.recycle();\n}\nreturn _result;\n}\n@Override public long startLogging(android.location.Location startLocation) throws android.os.RemoteException\n{\nandroid.os.Parcel _data = android.os.Parcel.obtain();\nandroid.os.Parcel _reply = android.os.Parcel.obtain();\nlong _result;\ntry {\n_data.writeInterfaceToken(DESCRIPTOR);\nif ((startLocation!=null)) {\n_data.writeInt(1);\nstartLocation.writeToParcel(_data, 0);\n}\nelse {\n_data.writeInt(0);\n}\nmRemote.transact(Stub.TRANSACTION_startLogging, _data, _reply, 0);\n_reply.readException();\n_result = _reply.readLong();\n}\nfinally {\n_reply.recycle();\n_data.recycle();\n}\nreturn _result;\n}\n@Override public void pauseLogging() throws android.os.RemoteException\n{\nandroid.os.Parcel _data = android.os.Parcel.obtain();\nandroid.os.Parcel _reply = android.os.Parcel.obtain();\ntry {\n_data.writeInterfaceToken(DESCRIPTOR);\nmRemote.transact(Stub.TRANSACTION_pauseLogging, _data, _reply, 0);\n_reply.readException();\n}\nfinally {\n_reply.recycle();\n_data.recycle();\n}\n}\n@Override public long resumeLogging(long trackId) throws android.os.RemoteException\n{\nandroid.os.Parcel _data = android.os.Parcel.obtain();\nandroid.os.Parcel _reply = android.os.Parcel.obtain();\nlong _result;\ntry {\n_data.writeInterfaceToken(DESCRIPTOR);\n_data.writeLong(trackId);\nmRemote.transact(Stub.TRANSACTION_resumeLogging, _data, _reply, 0);\n_reply.readException();\n_result = _reply.readLong();\n}\nfinally {\n_reply.recycle();\n_data.recycle();\n}\nreturn _result;\n}\n@Override public void stopLogging() throws android.os.RemoteException\n{\nandroid.os.Parcel _data = android.os.Parcel.obtain();\nandroid.os.Parcel _reply = android.os.Parcel.obtain();\ntry {\n_data.writeInterfaceToken(DESCRIPTOR);\nmRemote.transact(Stub.TRANSACTION_stopLogging, _data, _reply, 0);\n_reply.readException();\n}\nfinally {\n_reply.recycle();\n_data.recycle();\n}\n}\n}\nstatic final int TRANSACTION_registerCallback = (android.os.IBinder.FIRST_CALL_TRANSACTION + 0);\nstatic final int TRANSACTION_unregisterCallback = (android.os.IBinder.FIRST_CALL_TRANSACTION + 1);\nstatic final int TRANSACTION_loggingState = (android.os.IBinder.FIRST_CALL_TRANSACTION + 2);\nstatic final int TRANSACTION_startLogging = (android.os.IBinder.FIRST_CALL_TRANSACTION + 3);\nstatic final int TRANSACTION_pauseLogging = (android.os.IBinder.FIRST_CALL_TRANSACTION + 4);\nstatic final int TRANSACTION_resumeLogging = (android.os.IBinder.FIRST_CALL_TRANSACTION + 5);\nstatic final int TRANSACTION_stopLogging = (android.os.IBinder.FIRST_CALL_TRANSACTION + 6);\n}\n/**\n\t* Often you want to allow a service to call back to its clients.\n\t* This shows how to do so, by registering a callback interface with\n\t* the service.\n\t*/\npublic void registerCallback(org.spontaneous.trackservice.IRemoteServiceCallback cb) throws android.os.RemoteException;\n/**\n\t* Remove a previously registered callback interface.\n\t*/\npublic void unregisterCallback(org.spontaneous.trackservice.IRemoteServiceCallback cb) throws android.os.RemoteException;\npublic int loggingState() throws android.os.RemoteException;\npublic long startLogging(android.location.Location startLocation) throws android.os.RemoteException;\npublic void pauseLogging() throws android.os.RemoteException;\npublic long resumeLogging(long trackId) throws android.os.RemoteException;\npublic void stopLogging() throws android.os.RemoteException;\n}", "title": "" }, { "docid": "4ce4e1c956a6ab3caa38e59c0c349662", "score": "0.5063881", "text": "@WebService(name = \"SoapAsyncWs\", targetNamespace = \"http://ws/\")\n@XmlSeeAlso({\n ObjectFactory.class\n})\npublic interface SoapAsyncWs {\n\n\n /**\n * \n * @param arg0\n * @return\n * returns cliente.Factura\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"obtenerFactura\", targetNamespace = \"http://ws/\", className = \"cliente.ObtenerFactura\")\n @ResponseWrapper(localName = \"obtenerFacturaResponse\", targetNamespace = \"http://ws/\", className = \"cliente.ObtenerFacturaResponse\")\n @Action(input = \"http://ws/SoapAsyncWs/obtenerFacturaRequest\", output = \"http://ws/SoapAsyncWs/obtenerFacturaResponse\")\n public Factura obtenerFactura(\n @WebParam(name = \"arg0\", targetNamespace = \"\")\n Long arg0);\n\n /**\n * \n * @param arg0\n * @return\n * returns java.lang.Long\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"procesarFactura\", targetNamespace = \"http://ws/\", className = \"cliente.ProcesarFactura\")\n @ResponseWrapper(localName = \"procesarFacturaResponse\", targetNamespace = \"http://ws/\", className = \"cliente.ProcesarFacturaResponse\")\n @Action(input = \"http://ws/SoapAsyncWs/procesarFacturaRequest\", output = \"http://ws/SoapAsyncWs/procesarFacturaResponse\")\n public Long procesarFactura(\n @WebParam(name = \"arg0\", targetNamespace = \"\")\n Factura arg0);\n\n}", "title": "" }, { "docid": "f0f4650892505929c04a25c678e8ac99", "score": "0.5062461", "text": "public static TicketServiceFutureStub newFutureStub(\n io.grpc.Channel channel) {\n return new TicketServiceFutureStub(channel);\n }", "title": "" }, { "docid": "83b052ba4a5d2fbdbf01cad3fa324d26", "score": "0.50611633", "text": "public static UserClientFutureStub newFutureStub(\n io.grpc.Channel channel) {\n io.grpc.stub.AbstractStub.StubFactory<UserClientFutureStub> factory =\n new io.grpc.stub.AbstractStub.StubFactory<UserClientFutureStub>() {\n @java.lang.Override\n public UserClientFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {\n return new UserClientFutureStub(channel, callOptions);\n }\n };\n return UserClientFutureStub.newStub(factory, channel);\n }", "title": "" }, { "docid": "45d42610bfd7b6d2a2cd50803f61873f", "score": "0.5060881", "text": "public static FileSystemMasterJobServiceFutureStub newFutureStub(\n io.grpc.Channel channel) {\n return new FileSystemMasterJobServiceFutureStub(channel);\n }", "title": "" }, { "docid": "b7c275b7a0d7a751af554a74c4ef76c2", "score": "0.5055633", "text": "@SuppressWarnings(\"SameParameterValue\")\npublic interface ApiHelper\n{\n /**\n * Issue GET request. The call is asynchronous.\n * @param query fully formed request URL including query string\n * @param responseType type of object to convert the response to\n * @param onSuccessF action handler upon successful execution or null to ignore\n * @param onFailureF action handler upon failed execution or null to ignore\n * @param <T> type ot response object. This must match the type of object passed in responseType param\n */\n <T extends BaseResponse> void requestGET(@NonNull String query,\n Type responseType,\n ParametricRunnable<T> onSuccessF,\n ParametricRunnable<RequestRetryHandle> onFailureF);\n\n\n /**\n * Install general error action handler for failed requests. The action will be performed upon any failure except\n * network related. The action is executed on the UI thread.<br/>\n * {@link ParametricRunnable} param passed to the action contains response information enclosed in\n * {@link RequestRetryHandle}, such as last associated exception and retry action.\n * @param genericErrorHandler instance of action handler or null to ignore\n */\n void setGenericErrorHandler(ParametricRunnable<RequestRetryHandle> genericErrorHandler);\n\n /**\n * Install network error action handler for failed requests. The action will be performed upon any network related\n * failure, such as lack of internet connection. The action is executed on the UI thread.<br/>\n * {@link ParametricRunnable} param passed to the action contains response information enclosed in\n * {@link RequestRetryHandle}, such as last associated exception and retry action.\n * @param networkErrorHandler instance of action handler or null to ignore\n */\n void setNetworkErrorHandler(ParametricRunnable<RequestRetryHandle> networkErrorHandler);\n\n /**\n * Cancel all active requests. Cancelled requests will not execute any associated actions, such as onSuccess or onFailure.\n * This call is asynchronous.\n * @param remove clear requests queue. Normally must be set to true.\n */\n void cancelAllRequests(boolean remove);\n\n /**\n * @return underlying network client object\n */\n Object getApiClient();\n}", "title": "" }, { "docid": "22cc30df6d2cb0ccf037243fa4ed7460", "score": "0.505199", "text": "protected interface HttpMethodCall {\n ClientResponse call();\n }", "title": "" }, { "docid": "f7d85176e2f4ddff96c9b30ac7463cab", "score": "0.50464183", "text": "public static MicrogramFutureStub newFutureStub(\n io.grpc.Channel channel) {\n return new MicrogramFutureStub(channel);\n }", "title": "" }, { "docid": "e6c8aa3960be87088299ec9480f50df2", "score": "0.5043354", "text": "public static ExchangeServiceFutureStub newFutureStub(\n io.grpc.Channel channel) {\n return new ExchangeServiceFutureStub(channel);\n }", "title": "" }, { "docid": "8b395586dc1fedf5163d3244e1854ba0", "score": "0.50368756", "text": "public interface HelloService {\n\n static HelloService create(String url) {\n if (new org.lealone.db.ConnectionInfo(url).isEmbedded())\n return new org.lealone.demo.HelloServiceImpl();\n else;\n return new Proxy(url);\n }\n\n String sayHello(String name);\n\n static class Proxy implements HelloService {\n\n private final String url;\n\n private Proxy(String url) {\n this.url = url;\n }\n\n @Override\n public String sayHello(String name) {\n JsonArray ja = new JsonArray();\n ja.add(name);\n String result = ClientServiceProxy.executeWithReturnValue(url, \"HELLO_SERVICE.SAY_HELLO\", ja.encode());\n if (result != null) {\n return result;\n }\n return null;\n }\n }\n}", "title": "" }, { "docid": "e8081be83871fe1aa4b2bf1103249a1b", "score": "0.5032456", "text": "public static TicketServiceStub newStub(io.grpc.Channel channel) {\n return new TicketServiceStub(channel);\n }", "title": "" }, { "docid": "bd6bd3afd425ca0ef4a8eaa5a3717cb0", "score": "0.5030392", "text": "@Override\n protected RpcService createRpcService(\n AkkaRpcServiceConfiguration akkaRpcServiceConfig, boolean remoteEnabled, String bindAddress) {\n final Config akkaConfig =\n AkkaUtils.getAkkaConfig(akkaRpcServiceConfig.getConfiguration(), bindAddress, 0);\n\n final Config effectiveAkkaConfig = AkkaUtils.testDispatcherConfig().withFallback(akkaConfig);\n\n final ActorSystem actorSystem = AkkaUtils.createActorSystem(effectiveAkkaConfig);\n\n final AkkaRpcService akkaRpcService = new AkkaRpcService(actorSystem, akkaRpcServiceConfig);\n this.port = akkaRpcService.getPort();\n\n return akkaRpcService;\n }", "title": "" }, { "docid": "bb7f9c9dfc1b00497035824e4c826510", "score": "0.5013376", "text": "public Stub() {\n this.attachInterface(this, DESCRIPTOR);\n }", "title": "" }, { "docid": "bb7f9c9dfc1b00497035824e4c826510", "score": "0.5013376", "text": "public Stub() {\n this.attachInterface(this, DESCRIPTOR);\n }", "title": "" }, { "docid": "bb7f9c9dfc1b00497035824e4c826510", "score": "0.5013376", "text": "public Stub() {\n this.attachInterface(this, DESCRIPTOR);\n }", "title": "" }, { "docid": "0a077a27c6c57c8829a66706ae9350fd", "score": "0.5009895", "text": "@RequestFilters(BasicAuthentication.class)\n@Consumes(MediaType.TEXT_PLAIN)\npublic interface ElasticHostsAsyncClient {\n\n /**\n * @see ElasticHostsClient#listDrives()\n */\n @GET\n @Path(\"/drives/list\")\n @ResponseParser(SplitNewlines.class)\n ListenableFuture<Set<String>> listDrives();\n\n /**\n * @see ElasticHostsClient#listStandardDrives()\n */\n @GET\n @Path(\"/drives/standard/list\")\n @ResponseParser(SplitNewlines.class)\n ListenableFuture<Set<String>> listStandardDrives();\n\n /**\n * @see ElasticHostsClient#listStandardCds()\n */\n @GET\n @Path(\"/drives/standard/cd/list\")\n @ResponseParser(SplitNewlines.class)\n ListenableFuture<Set<String>> listStandardCds();\n\n /**\n * @see ElasticHostsClient#listStandardImages()\n */\n @GET\n @Path(\"/drives/standard/img/list\")\n @ResponseParser(SplitNewlines.class)\n ListenableFuture<Set<String>> listStandardImages();\n\n /**\n * @see ElasticHostsClient#listDriveInfo()\n */\n @GET\n @Path(\"/drives/info\")\n @ResponseParser(ListOfKeyValuesDelimitedByBlankLinesToDriveInfoSet.class)\n ListenableFuture<Set<DriveInfo>> listDriveInfo();\n\n /**\n * @see ElasticHostsClient#getDriveInfo\n */\n @GET\n @ExceptionParser(ReturnNullOnNotFoundOr404.class)\n @ResponseParser(KeyValuesDelimitedByBlankLinesToDriveInfo.class)\n @Path(\"/drives/{uuid}/info\")\n ListenableFuture<DriveInfo> getDriveInfo(@PathParam(\"uuid\") String uuid);\n\n /**\n * @see ElasticHostsClient#createDrive\n */\n @POST\n @ExceptionParser(ReturnNullOnNotFoundOr404.class)\n @ResponseParser(KeyValuesDelimitedByBlankLinesToDriveInfo.class)\n @Path(\"/drives/create\")\n ListenableFuture<DriveInfo> createDrive(\n @BinderParam(BindCreateDriveRequestToPlainTextString.class) CreateDriveRequest createDrive);\n\n /**\n * @see ElasticHostsClient#setDriveData\n */\n @POST\n @ExceptionParser(ReturnNullOnNotFoundOr404.class)\n @ResponseParser(KeyValuesDelimitedByBlankLinesToDriveInfo.class)\n @Path(\"/drives/{uuid}/set\")\n ListenableFuture<DriveInfo> setDriveData(@PathParam(\"uuid\") String uuid,\n @BinderParam(BindDriveDataToPlainTextString.class) DriveData createDrive);\n\n /**\n * @see ElasticHostsClient#destroyDrive\n */\n @POST\n @Path(\"/drives/{uuid}/destroy\")\n @ExceptionParser(ReturnVoidOnNotFoundOr404.class)\n ListenableFuture<Void> destroyDrive(@PathParam(\"uuid\") String uuid);\n\n /**\n * @see ElasticHostsClient#imageDrive(String,String)\n */\n @POST\n @Path(\"/drives/{destination}/image/{source}\")\n @ExceptionParser(ReturnVoidOnNotFoundOr404.class)\n ListenableFuture<Void> imageDrive(@PathParam(\"source\") String source, @PathParam(\"destination\") String destination);\n\n /**\n * @see ElasticHostsClient#imageDrive(String,String,ImageConversionType)\n */\n @POST\n @Path(\"/drives/{destination}/image/{source}/{conversion}\")\n @ExceptionParser(ReturnVoidOnNotFoundOr404.class)\n ListenableFuture<Void> imageDrive(@PathParam(\"source\") String source, @PathParam(\"destination\") String destination,\n @PathParam(\"conversion\") ImageConversionType conversionType);\n\n /**\n * @see ElasticHostsClient#readDrive(String)\n */\n @GET\n @Consumes(MediaType.APPLICATION_OCTET_STREAM)\n @Path(\"/drives/{uuid}/read\")\n @ResponseParser(ReturnPayload.class)\n @ExceptionParser(ReturnNullOnNotFoundOr404.class)\n ListenableFuture<Payload> readDrive(@PathParam(\"uuid\") String uuid);\n\n /**\n * @see ElasticHostsClient#readDrive(String,ReadDriveOptions)\n */\n @POST\n @Consumes(MediaType.APPLICATION_OCTET_STREAM)\n @Path(\"/drives/{uuid}/read\")\n @ResponseParser(ReturnPayload.class)\n @ExceptionParser(ReturnNullOnNotFoundOr404.class)\n ListenableFuture<Payload> readDrive(@PathParam(\"uuid\") String uuid,\n @BinderParam(BindReadDriveOptionsToPath.class) ReadDriveOptions options);\n\n /**\n * @see ElasticHostsClient#writeDrive(String, Payload)\n */\n @POST\n @Produces(MediaType.APPLICATION_OCTET_STREAM)\n @Path(\"/drives/{uuid}/write\")\n @ExceptionParser(ReturnVoidOnNotFoundOr404.class)\n ListenableFuture<Void> writeDrive(@PathParam(\"uuid\") String uuid, Payload content);\n\n /**\n * @see ElasticHostsClient#writeDrive(String, Payload, long)\n */\n @POST\n @Produces(MediaType.APPLICATION_OCTET_STREAM)\n @Path(\"/drives/{uuid}/write/{offset}\")\n @ExceptionParser(ReturnVoidOnNotFoundOr404.class)\n ListenableFuture<Void> writeDrive(@PathParam(\"uuid\") String uuid, Payload content, @PathParam(\"offset\") long offset);\n}", "title": "" } ]
618ad07c89b4e753a9d245ce8dbe47fa
Disconnects the player from the hub. The username remains, but the associated socket is set to null
[ { "docid": "b184e29d5ee7e364c8aa86e49f949020", "score": "0.650232", "text": "public synchronized void disconnectClient(String username){\n if(username == null)\n throw new NullPointerException();\n\n if(!usernames.contains(username))\n throw new NoSuchElementException(\"No player with the username \\\"\" + username +\"\\\"\");\n\n clientHandlers.set(usernames.indexOf(username), null);\n }", "title": "" } ]
[ { "docid": "13e944ea5d742b6a996ec73b262e2c9b", "score": "0.71725535", "text": "public void disconnect() {\n users.remove(username);\n RequestContext.getCurrentInstance().update(\"form:users\");\n \n //push leave information\n eventBus.publish(CHANNEL + \"*\", username + \" left the channel.\");\n \n //reset state\n propogate = false;\n loggedIn = false;\n username = null;\n }", "title": "" }, { "docid": "fc6ec3d8d9ab1e8c0055f2686ad6be47", "score": "0.7158191", "text": "public void disconnect() {\n users.remove(username);\r\n RequestContext.getCurrentInstance().update(\"pruebaForm:users\");\r\n \r\n //push leave information\r\n eventBus.publish(CHANNEL + \"*\", username.getUsrNickName() + \" left the channel.\");\r\n \r\n //reset state\r\n loggedIn = false;\r\n username = new User();\r\n }", "title": "" }, { "docid": "2ca102df521a639af56ea11a28859b37", "score": "0.6959868", "text": "@EventHandler(priority=127)\r\n\tpublic void onDisconnect(PlayerDisconnectEvent e)\r\n\t{\r\n String playername=e.getPlayer().getName();\r\n \r\n User u=getUser(playername);\r\n users.remove(u);\r\n\t}", "title": "" }, { "docid": "2f6d4db1d4fe1abfa0a371398cbb3320", "score": "0.6939653", "text": "@Override\n public void disconnect(String message) {\n if(!connection.isOpen()) return;\n timeout.cancel();\n if(status.equals(PlayerStatus.INIT)) lobby.kickPlayer(this);\n status = PlayerStatus.OFFLINE;\n playerView.updateStatus(status);\n sendCommand(new DisconnectRequest(message));\n connection.destroy();\n logger.info(\"Player \" + name + \" has been disconnected. Reason: \" + message);\n }", "title": "" }, { "docid": "cc18ac694362de76f8a219d9dead980b", "score": "0.6900037", "text": "public synchronized void hardDisconnectClient(String username){\n if(username == null)\n throw new NullPointerException();\n if(!usernames.contains(username))\n throw new NoSuchElementException(\"No player with the username \\\"\" + username +\"\\\"\");\n\n int index = usernames.indexOf(username);\n usernames.remove(index);\n clientHandlers.remove(index);\n }", "title": "" }, { "docid": "88194ba7a43165ef119416c17d975da8", "score": "0.6886178", "text": "public void disconnect()\n {\n\n try {\n in.close();\n out.close();\n server.close();\n connected = false;\n } catch (IOException e) {\n System.out.println(\"Could not disconnect player for unknown reason. (?)\");\n }\n }", "title": "" }, { "docid": "2da3edf1cb19970d06ee1a8163e5ec4e", "score": "0.6869644", "text": "public void disconnect()\r\n {\r\n\r\n Main.getConsole().appendLine(\"CLIENT :: Disconnected\");\r\n\r\n Main.getWorldMap().getCurrentArea().getPlayerList().clear();\r\n Main.getWorldMap().getCurrentArea().getPlayerList().add(Main.getHero());\r\n\r\n clientConnected = false;\r\n interrupt();\r\n\r\n }", "title": "" }, { "docid": "4234dc0576ceaf384d1706b23b6e9bb2", "score": "0.67338616", "text": "public void disconnect() {\n connection.write(\"disconnect\");\n isConnected = false;\n }", "title": "" }, { "docid": "74b8b79ca4b520356e956ce34ac24251", "score": "0.6672568", "text": "public void disconnectDevice(){\n mChatService.write(\"Sair\".getBytes());\n\n // Para a conexão\n mChatService.stop();\n\n // Altera o estado de conexão para não conectado\n connection = false;\n\n // Para o serviço\n stopSelf();\n }", "title": "" }, { "docid": "55fdac3620025eda25d601d41d699e6b", "score": "0.6620035", "text": "public void disconnect() {\n SocketWrapper.getInstance(mContext).disConnect();\n }", "title": "" }, { "docid": "299fe9a12b44eb53b38d9d8ae9ee08f1", "score": "0.65329313", "text": "@Listener\n\tpublic void onPlayerDisconnect(ClientConnectionEvent.Disconnect ev) {\n\t\tif (ev.getTargetEntity().equals(this.owningPlayer)) {\n\t\t\tthis.serverState = ServerState.SHUTTING_DOWN;\n\n\t\t\tSponge.getServer().getOnlinePlayers().forEach(player -> {\n\t\t\t\tif (player.equals(this.owningPlayer))\n\t\t\t\t\treturn;\n\n\t\t\t\tSponge.getChannelRegistrar().getOrCreateRaw(this, \"BungeeCord\")\n\t\t\t\t\t\t.sendTo(player, buf -> buf.writeUTF(\"admin\").writeUTF(\"moveToLobby\")\n\t\t\t\t\t\t\t\t.writeUTF(player.getUniqueId().toString()));\n\t\t\t});\n\n\t\t\tTask.builder().execute(() -> Sponge.getServer().shutdown()).delay(5, TimeUnit.SECONDS)\n\t\t\t\t\t.name(\"Shutdown\").submit(this);\n\t\t} else {\n\t\t\tev.setMessageCancelled(true);\n\t\t}\n\t}", "title": "" }, { "docid": "967e12f9f3034c770e43051139c2740c", "score": "0.6475204", "text": "@Override\n\t\tpublic void onDisconnect() {\n\t\t\tCommonTcpServer.this.removeReceiver(mTcpCommonReceiver);\n\t\t\tprintReceiverInfo(mTcpCommonReceiver, \"onDisconnect\");\n\t\t}", "title": "" }, { "docid": "525f3ad05efd85f210fb14a6b41ede0e", "score": "0.6472222", "text": "private void disconnect() {\n\t\tif (isDebugMode) {\n\t\t\ttestServer.stop();\n\t\t}\n\t\tnetworkDaemon.disconnect();\n\t\tconnectionLive = false;\n\t\tuserInterface.updateConnectionStatus(false);\n\t\tuserInterface.clearAllPotentiometerLights();\n\t\tpauseJoystickStream();\n\t}", "title": "" }, { "docid": "b4543aa43e5a08ebb9cb3507d34dce7d", "score": "0.64709586", "text": "public void disconnect()\n {\n if (socket == null) return;\n\n try\n {\n socket.close();\n socket = null;\n } catch (IOException e)\n {\n e.printStackTrace();\n }\n }", "title": "" }, { "docid": "31879839628602ae4fa12250c7839a46", "score": "0.644501", "text": "public void playerDisconnection();", "title": "" }, { "docid": "5aaf2c7581b51c30b95d3d8207f13740", "score": "0.640726", "text": "public void Disconnect() {\n _comm.Disconnect();\n }", "title": "" }, { "docid": "5016c769df169fc2fb0c77a7649c43f7", "score": "0.6366796", "text": "public void disconnectFromServer() {\n\n\t}", "title": "" }, { "docid": "281f8d02d36799c6409d1f37c533d4eb", "score": "0.6355555", "text": "public void disconnect() {\n\t\tconnected = false;\n\t}", "title": "" }, { "docid": "835e29c18e0909793fe02aa2f8e8cb5f", "score": "0.63380706", "text": "public void disconnect() {\n if (isConnected()) {\n try {\n connection.close();\n } catch (IOException ex) {\n Logger.getLogger(RobotClient.class.getName()).log(Level.SEVERE, null, ex);\n }\n }\n }", "title": "" }, { "docid": "bcb51d0d2b88e9c3e3a6e7d36bd584fb", "score": "0.6294302", "text": "@Localize(value=\"Internet.disconnectServer\")\r\n\tpublic void disconnectServer() {\r\n\t\tif (connected == false) {\r\n\t\t\tString message = MessageFormat.format(getMessage(\"userAlreadyDisconnected\"), username); //$NON-NLS-1$\r\n\t\t\tProgram.instance().printError(message);\r\n\t\t\treturn;\r\n\t\t}\r\n\t\texchangeMgr.shutdown();\r\n\t\tconnected = false;\r\n\t\tUserRegistrationCommand connectCmd = new UserRegistrationCommand();\r\n\r\n\t\ttry {\r\n\t\t\tconnectCmd.unregister(conn, connectID);\r\n\t\t} catch (CommandException e) {\r\n\t\t\tString message = MessageFormat.format(getMessage(\"error\"), username); //$NON-NLS-1$\r\n\t\t\tProgram.instance().printError(message);\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tString message = MessageFormat\r\n\t\t\t\t.format(\r\n\t\t\t\t\t\tgetMessage(\"disconnected\"), username, conn.getServerURL()); //$NON-NLS-1$\r\n\t\tProgram.instance().printOutputMessage(message);\r\n\t}", "title": "" }, { "docid": "adae1082a95395421c592341871eb463", "score": "0.62293166", "text": "public void removeConnection(Player plr){\r\n \t\r\n \tSocket sc = plr.getID(); \t\r\n \t\r\n \ttry {\r\n \t\tgameLobby.disconnectPlayer(plr);\r\n \t\tplr.getOutput().close();\r\n \t\tsc.close();\r\n \t\tSystem.out.println(\"Removed connection from \"+sc.getInetAddress());\r\n\t\t} catch (IOException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t\tSystem.err.println(\"Error closing \"+sc.getInetAddress());\r\n\t\t} catch (NullPointerException e){\r\n\t\t\te.printStackTrace();\r\n\t\t\tSystem.err.println(\"Connection already closed\");\r\n\t\t}\t\t \t \t\r\n }", "title": "" }, { "docid": "e7cd91b7af4b78e2922ba887ccbeac79", "score": "0.6209465", "text": "public void disconnectFromServer() {\n System.out.println(isServerPlay());\n if (isServerPlay()) {\n setServerPlay(false);\n try {\n socket.close();\n in.close();\n out.close();\n } catch (IOException e) {\n setServerPlay(false);\n }\n }\n }", "title": "" }, { "docid": "3de7a5396dec97df53f62d5cf29949f8", "score": "0.6199603", "text": "private void disconnect() {\n SmartDashboard.putBoolean(\"Connected\", false);\n connected = false;\n System.out.println(\"Disconnect Method Complete\");\n }", "title": "" }, { "docid": "bcd47861d6524a507c700186fafd32a9", "score": "0.6190289", "text": "@Override\n\tpublic void channelDisconnected(ChannelHandlerContext ctx, ChannelStateEvent e) throws Exception\n\t{\n\t\t\n\t\tif (_client != null && _client._user != null)\n\t\t{\n\t\t\tif (_client._user.userInfo != null && _client._user._is_login) // avoid throwing exception at running broadcast task or restarting server\n\t\t\t{\n\t\t\t\tremoveUser(_client._user.GetUserDeviceID(), ReturnCode.RESPONSE_FORCE_QUIT);\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "5b850610bb7cf53946030be96520c38e", "score": "0.61895347", "text": "public void disconnect(String clientName) {\n\t\ttry {\n\t\t\toutputs.get(clientName).close();\n\t\t\toutputs.remove(clientName);\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "title": "" }, { "docid": "57bfa55ec162a010d2f38563315e7cc6", "score": "0.6187499", "text": "private static void onDisconnect() {\n /**\n * Disconnecting a user from the server - clientActor send Ask message to manager to disconnect\n **/\n Future<Object> rt = Patterns.ask(manager, new DisconnectMessage(clientUserName), timeout);\n try {\n Object result = Await.result(rt, timeout.duration());\n if (result.getClass() == TextMessage.class) {\n connect = false;\n clientRef.tell(PoisonPill.getInstance(), ActorRef.noSender());\n System.out.println(((TextMessage) result).text);\n } else\n System.out.println(((ErrorMessage) result).error);\n\n } catch (Exception e) {\n// e.printStackTrace();\n System.out.println(Constants.ERROR_PRINTING(Constants.SERVER_IS_OFFLINE_DISCONN));\n }\n }", "title": "" }, { "docid": "6e9a9dd350206a2e8917fbb9768b289a", "score": "0.6179672", "text": "public void userDisconnect() {\n\t\tdisconnect();\n\t\tString connectedServer = isDebugMode ? \"Test Server\" : \"Robot\";\n\t\taddMessageToUserInterface(\"Successfully disconnected from \" + connectedServer);\n\t}", "title": "" }, { "docid": "c93d1e649a2448d88dcd6cc09a947d43", "score": "0.6176438", "text": "public void disconnect() {\r\n\t\ttry {\r\n\t\t\tsetChanged();\r\n\t\t\tnotifyObservers(DISCONNECT);\r\n\t\t\tclearChanged();\r\n\t\t\t\r\n\t\t\tinStream.close();\r\n\t\t\toutStream.close();\r\n\t\t\tclient.close();\r\n\t\t\t\r\n\t\t\tif(log != null)\r\n\t\t\t\tlog.shutdown();\r\n\t\t\t\r\n\t\t\trun = false;\r\n\t\t\tServer.instance().disconnect(this);\r\n\t\t\tSystem.out.println(\"+++ CLIENT \" + getClientId().toUpperCase() + \" DISCONNECTED +++\\n\");\r\n\t\t\t\r\n\t\t} catch (IOException e) {\r\n\t\t\tSystem.err.println(\"+++ CLIENT \" + getClientId().toUpperCase() \r\n\t\t\t\t\t+ \" WAS UNEXCPECTEDLY DISCONNECTED +++\\n\");\r\n\t\t\tServer.instance().disconnect(this);\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "884d59b8f3f318993550439e0cadad1d", "score": "0.6168332", "text": "public void sessionDisconnect() {\n Log.i(\"yuyong_video\", \"sessionDisconnect: \");\n MyLog.writeLog(\"OkHttp\", \"sessionDisconnect=================================== \");\n if (mSession != null) mSession.disconnect();\n }", "title": "" }, { "docid": "46c2ea095a621566ee12ef654535e3d9", "score": "0.61673945", "text": "public void disconnect() throws RemoteException {\r\n\t\tserver.disconnect(this);\r\n\t\tLOG.info(String.format(\"'%s' disconnected from '%s'.\", this.nickName, this.serverHost));\r\n\t}", "title": "" }, { "docid": "e2826502c484712afaf10a485836f664", "score": "0.6151409", "text": "public void chatLogout(Player player) {\n spies.remove(player);\n guildsPlugin.getChatListener().getPlayerChatMap().remove(player.getUniqueId());\n }", "title": "" }, { "docid": "48263a0a435ab4275cf93bc202f0540a", "score": "0.61363524", "text": "public void sendQuittingDisconnectingPacket()\n {\n }", "title": "" }, { "docid": "fe8384e17ca006a614ff0eb599f35153", "score": "0.61332875", "text": "public void disconnect(String userName, String roomName) {\n\t\t// Quita al usuario de la lista\n\t\tnames.remove(userName);\n\t\t// Envia el mensaje de desconeccion al chas\n\t\tmessageLogs.add(roomName + \" @\" + userName + \" ha salido de la sala.\");\n\t}", "title": "" }, { "docid": "6baadebb91a46b164db40a40498507b8", "score": "0.61199975", "text": "@Override\n public void disconnect() {\n if (messageSender != null) {\n messageSender.cancel(true);\n messageSender.disconnect();\n messageSender = null;\n }\n if (messageReceiver != null) {\n messageReceiver.cancel(true);\n messageReceiver.disconnect();\n messageReceiver = null;\n }\n }", "title": "" }, { "docid": "5016ddb82797f599d5ba67910b6047dd", "score": "0.61064535", "text": "public final void disconnect() {\n\t\tdisconnect(0);\n\t}", "title": "" }, { "docid": "4985e48f41e91066ae979f4560854960", "score": "0.6075321", "text": "public void disconnect() {\n tilkobling.disconnect();\n }", "title": "" }, { "docid": "6e8b5e308fe3cd3b659021e6ee96d032", "score": "0.6070417", "text": "@Override\n\t\tpublic void disconnect() {\n\t\t\tSystem.out.println(\"Disconnected at \"+System.currentTimeMillis());\n\t\t\tconsole = null;\n\t\t}", "title": "" }, { "docid": "134c9314fa473b210034a994a4b437d5", "score": "0.6068553", "text": "public void closeSocket() {\n\t\t// Prevent double closings\n\t\tif (!connected) {\n\t\t\treturn;\n\t\t}\n\t\t\n\t\t// Remove user from game session\n\t\tif (inGame) {\n\t\t\tgameSession.removeUser(this);\n\t\t\tgameSession = null;\n\t\t\tinGame = false;\n\t\t}\n\t\t\n\t\t// We are no longer connected\n\t\tconnected = false;\n\t\t// Remove the client from the server\n\t\tserver.removeUser(this);\n\t\t\n\t\t// Close input/output\n\t\tif (out != null) {\n\t\t\tout.close();\n\t\t\tout = null;\n\t\t}\n\t\tif (in != null) {\n\t\t\tin.close();\n\t\t\tin = null;\n\t\t}\n\t\t\n\t\t// Close the socket\n\t\ttry {\n\t\t\tif (socket != null) {\n\t\t\t\tsocket.close();\n\t\t\t\tsocket = null;\n\t\t\t}\n\t\t} catch (IOException e) {\n\t\t\tlog.log(Level.SEVERE, e.toString(), e);\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t}", "title": "" }, { "docid": "82dcd75f46c9f51c3cbd092826e42d2e", "score": "0.6065683", "text": "private void disconnect() {\n try {\n info(\"Disconnecting from \" + formatAddress(config.host, config.port));\n blockingChannel.disconnect();\n } catch (Throwable e) {\n error(\"Error on disconnect: \", e);\n }\n }", "title": "" }, { "docid": "6cf38013f4078e323be9bae205b866f7", "score": "0.60618347", "text": "public void logout(){\r\n\t\tif(localUser.isConnected()){\r\n\t\t\tnetwork.signal_Bye();\r\n\t\t\tlocalUser.setConnected(false);\r\n\t\t\tlocalUser.removeAllRemoteUser();\r\n\t\t}\r\n\t\telse{\r\n\t\t\tSystem.out.println(\"User already disconnected !!\");\r\n\t\t} \t\r\n\t}", "title": "" }, { "docid": "2ed3adf77a7ede1dc94360e167831d1e", "score": "0.6061302", "text": "private void disconnectClient() {\n try {\n clientSocket.close();\n } catch (IOException ioe) {\n ioe.printStackTrace();\n }\n connected = false;\n }", "title": "" }, { "docid": "2d8189d36a881b05eec7a98ca6663c75", "score": "0.6058851", "text": "public void onDisconnect();", "title": "" }, { "docid": "cc4d767b8306085181bac6d7e310ea66", "score": "0.60548335", "text": "public void disconnect() throws IOException {\r\n running = false;\r\n if(ishost == true) {\r\n if (serverSocket != null){\r\n serverSocket.close();\r\n }\r\n } else {\r\n if (clientSocket != null){\r\n clientSocket.close();\r\n }\r\n }\r\n ishost = false;\r\n playing = false; \r\n }", "title": "" }, { "docid": "c28d233e3d719d55b66cc55bea1e3fbc", "score": "0.60091585", "text": "public void disconnect() {\n // do nothing by default\n }", "title": "" }, { "docid": "7ac5a36e7ccfb268d20dd83de3220af3", "score": "0.6000898", "text": "public final void disconnect() {\n this.session.disconnect();\n }", "title": "" }, { "docid": "3c414cb91969179f29439ef83660e1e6", "score": "0.5988166", "text": "public void disconnect() {\n\t\tthis.currentDirection = Direction.NONE;\n\t\ttry {\n\t\t\tthis.out.close();\n\t\t} catch (IOException e) {\n\t\t}\n\t\ttry {\n\t\t\tthis.in.close();\n\t\t} catch (IOException e) {\n\t\t}\n\t\ttry {\n\t\t\tthis.client.close();\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\tSystem.out.println(\"Client \" + this.client + \" disconnected!\");\n\t}", "title": "" }, { "docid": "6a2e815be4950aabe86a0ae114a9e188", "score": "0.59735036", "text": "@Override\n\tpublic void disconnect() {\n\t\tthis.local = true;\n\t}", "title": "" }, { "docid": "8902e2b61cba11fd98ad6dbb982ba32e", "score": "0.59718186", "text": "public void disconnect() {\n\t\tif (client instanceof Client)\n\t\t\tclient.close();\n\t\tif (server instanceof Server)\n\t\t\tserver.close();\n\t}", "title": "" }, { "docid": "84458f50ce4be60693088580949e9c3f", "score": "0.5970233", "text": "public void disconnect(){\n Log.d(TAG, \"disconnect\");\n synchronized (mConnection) {\n if (mPSM != null) {\n try {\n mPSM.unRegisterObserver(mProfileObserver);\n ctx.unbindService(mConnection);\n } catch (RemoteException re) {\n Log.d(TAG, \"error in unRegisterObserver\");\n re.printStackTrace();\n } catch (Exception e) {\n Log.d(TAG, \"error in disconnect\");\n e.printStackTrace();\n }\n }\n }\n }", "title": "" }, { "docid": "90e2b8e64f18b05da11635944861580b", "score": "0.5967577", "text": "public void logout() {\n\t\tchannel.disconnect();\n\t\tconnector = null;\n\t\treset();\n\t\tlogin();\n\n\t}", "title": "" }, { "docid": "3a4288009a5fe963d75ae626f9ff7959", "score": "0.5961521", "text": "public void removePlayer(String username) {\n \t\tthis.sgPlayerData.remove(username);\n \t}", "title": "" }, { "docid": "eacebf5af1fb390226b0eaffa9edda15", "score": "0.5943458", "text": "public void disconnect()\n {\n if(sock != null)\n {\n try {\n ma.stop();\n dis.close();\n dos.close();\n sock.close();\n dispose();\n if(!exit)\n new LoginWindow();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n }", "title": "" }, { "docid": "de15e5ea0203165fe349104415c4c3bf", "score": "0.594289", "text": "public void disconnectFromServer() throws IOException {\n\t\tthis.messageSendRecieve.sendMessage(StringLiterals.DISCONNECT + \":\");\n\t}", "title": "" }, { "docid": "85f4002923e9083583db94852bbde776", "score": "0.5933451", "text": "void disconnect() {\n\t\t\n\t\tif (!disconnected) {\n\t\t\t\n\t\t\tdisconnected = true;\n\t\t\t\n\t\t\tif (dataSender.isServing())\n\t\t\t\tdataSender.stop();\n\t\t\t\n\t\t\tif (commandsReceiver.isServing())\n\t\t\t\tcommandsReceiver.stop();\n\t\t\t\n\t\t\tmanager.notifyDisconnect(this);\n\t\t\t\n\t\t}\n\t\t\n\t}", "title": "" }, { "docid": "39c940332c712dc9cf5c4d2b9bf5b1a3", "score": "0.59321326", "text": "public void logout(final String username) throws NotConnectedException;", "title": "" }, { "docid": "97b2ff0e5063b90240a0990d80f92749", "score": "0.59314305", "text": "public void disconnectFromServer() {\n\t\tstate = ConnectionState.DISCONNECTING;\n\t}", "title": "" }, { "docid": "19cae3ab6d95425df24b66a2a4499227", "score": "0.5926011", "text": "public void disconnect() {\n try {\n socket.close();\n } catch (IOException e) {\n ccb.onError(e.getMessage());\n }\n }", "title": "" }, { "docid": "2ac5d58134e000ae8a25af49cb70af6f", "score": "0.59167415", "text": "public void disconnected(DisconnectedEvent e) {\n Connection conn = e.getConnection();\n \n // write something in the log\n System.out.println(\"s: connection \" + conn.getId()+ \" disconnected\");\n\n connections.removeElement(conn);\n connectionsPending.removeElement(conn);\n connectionIds.remove(new Integer(conn.getId()));\n\n // if there's a player for this connection, remove it too\n Player player = getPlayer(conn.getId());\n if (null != player) {\n Server.this.disconnected( player );\n }\n \n }", "title": "" }, { "docid": "1885afc6d22974141aa775a0d7a074f5", "score": "0.5915506", "text": "protected void disconnect() {\n\t\tSystem.out.format(\"disconnect from %s was called\\n\", ip);\n\t\tif (input != null) {\n\t\t\ttry {\n\t\t\t\tinput.close();\n\t\t\t} catch (Exception e) {\n\t\t\t\tif (!isShuttingDown)\n\t\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t\tif (output != null) {\n\t\t\ttry {\n\t\t\t\toutput.close();\n\t\t\t} catch (Exception e) {\n\t\t\t\tif (!isShuttingDown)\n\t\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t\tif (sock != null && !sock.isClosed()) {\n\t\t\ttry {\n\t\t\t\tsock.close();\n\t\t\t} catch (Exception e) {\n\t\t\t\tif (!isShuttingDown)\n\t\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t\tdelegate.peerDidDisconnect(this);\n\t}", "title": "" }, { "docid": "f80f10ea89953f19444d984430699a17", "score": "0.59140885", "text": "public void disconnectFromDevice() {\n try {\n connector.sendString(\"\\n\");\n connector.cancel();\n } catch (IOException e) {\n e.printStackTrace();\n Log.d(TAG, e.getMessage());\n }\n }", "title": "" }, { "docid": "dd50f5ee92de832986314169d727c7fc", "score": "0.5902468", "text": "public void killMe(){\n\t\tSystem.out.println(\"Removing Connection\" );\n\t\tstillRunning = false;\n\t\tJEAGIServer.removeMe(this);\n\t}", "title": "" }, { "docid": "d8ce4d229e0a933f6d68afa2b10d1b76", "score": "0.58882093", "text": "@Override\n\t\tpublic void disconnect() {\n\n\t\t}", "title": "" }, { "docid": "e6660809bca8505f47d0ad663afc3d49", "score": "0.58873993", "text": "public void disconnect() {\n\t\t\n\t}", "title": "" }, { "docid": "6922dc97fc2a465a4dadcd7cf4031a71", "score": "0.5885336", "text": "void removeConnectedUser();", "title": "" }, { "docid": "90e453ee31ab0fc40f3a40836d4695b0", "score": "0.5883157", "text": "public void disconnect(int sessionId) throws ConnectionFailedException;", "title": "" }, { "docid": "a00c1101431c5e97f540e0c718afa808", "score": "0.5875721", "text": "public void deconnecter(Joueur j);", "title": "" }, { "docid": "f325465ba5603e3220ea3c8e7c6a8bad", "score": "0.5872837", "text": "public void disconnect() throws RemoteException {\r\n\t\tgetRMIServerInterface().removeClient(this);\r\n\t}", "title": "" }, { "docid": "cc59d23399c72e9c31405a04885a69b8", "score": "0.5872528", "text": "public void logout(String userName) throws RemoteException{\n\t\t\tplayer_info.remove(userName);\n\t\t\t//Remove the client object as it is no longer required.\n\t\t\tclientList.remove(userName);\n\t\t\t//Update the latest players information to all other clients.\n\t\t\tdoCallbacks();\n\t\t}", "title": "" }, { "docid": "7783e999881ca542d0ffe68567cf3077", "score": "0.5868947", "text": "public static void disconnect() {\n\t\tmIotManager.disconnect();\n\t}", "title": "" }, { "docid": "37b3196cf9dac7ec24fcb2a64be80257", "score": "0.5858958", "text": "@Override\r\n\tpublic void disconnect() {\n\t\ttry {\r\n\t\t\tconnection.close();\r\n\t\t} catch (Exception ex ) {\r\n\t\t\tex.printStackTrace();\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "48cceb4e9794a39a49319188361b54db", "score": "0.5852145", "text": "public void disconnect() throws Exception\n {\n if (itsSocket != null) {\n itsSocket.close();\n }\n itsSocket = null;\n itsConnected = false;\n }", "title": "" }, { "docid": "15dda55dbc87b7e15ae277401b780667", "score": "0.5846315", "text": "void disconnected(Player player) {\n int phase = game.getPhase();\n\n // in the lounge, just remove all entities for that player\n if (phase == IGame.PHASE_LOUNGE) {\n removeAllEntitesOwnedBy(player);\n }\n\n // if a player has active entities, he becomes a ghost\n // except the VICTORY_PHASE when the dosconnected \n // player is most likely the Bot disconnected after receiving\n // the COMMAND_END_OF_GAME command \n // see the Bug 1225949.\n // TODO Perhaps there is a better solution to handle the Bot disconnect\n if (game.getEntitiesOwnedBy(player) > 0 && phase != IGame.PHASE_VICTORY) {\n player.setGhost(true);\n player.setDone(true);\n send(createPlayerUpdatePacket(player.getId()));\n } else {\n game.removePlayer(player.getId());\n send(new Packet(Packet.COMMAND_PLAYER_REMOVE,\n new Integer(player.getId())));\n }\n\n // make sure the game advances\n if ( game.phaseHasTurns(game.getPhase()) && null != game.getTurn() ) {\n if ( game.getTurn().isValid( player.getId(), game ) ) {\n sendGhostSkipMessage( player );\n }\n } else {\n checkReady();\n }\n\n // notify other players\n sendServerChat(player.getName() + \" disconnected.\");\n\n // log it\n System.out.println(\"s: removed player \" + player.getName());\n\n // Reset the game after Elvis has left the building.\n if ( 0 == game.getNoOfPlayers() ) {\n resetGame();\n }\n }", "title": "" }, { "docid": "f9516646a5de959c61ea8bd443add249", "score": "0.5840001", "text": "@Override\n\tpublic void unchannel(String arg0) {\n\n\t}", "title": "" }, { "docid": "a9389fa20ccbd4db0d02e24f2e72c59b", "score": "0.5835789", "text": "public Status disconnect();", "title": "" }, { "docid": "f94afffe7d68a330c59b68263b7cd8c0", "score": "0.5827685", "text": "void disconnect(Connection connection);", "title": "" }, { "docid": "a76772482e2381b152a80a652c7a0fa5", "score": "0.5825343", "text": "@Override\n public void disconnect() {\n softDetach();\n\n }", "title": "" }, { "docid": "2838c2e8c3b870489c31b815d0ca043d", "score": "0.58227694", "text": "@Override\n public void call(Object... args) {\n socket.disconnect();\n resetState = true;\n }", "title": "" }, { "docid": "1c53a3c747b2f28fa116a32e869e03a0", "score": "0.581916", "text": "public void disconnect() {\n try {\n client.disconnect();\n } catch (MqttException me) {\n Log.e(TAG, me.getMessage());\n }\n }", "title": "" }, { "docid": "2ba6ca872922bd43b021199cbb2c104e", "score": "0.5805444", "text": "public void disconnect();", "title": "" }, { "docid": "2ba6ca872922bd43b021199cbb2c104e", "score": "0.5805444", "text": "public void disconnect();", "title": "" }, { "docid": "2ba6ca872922bd43b021199cbb2c104e", "score": "0.5805444", "text": "public void disconnect();", "title": "" }, { "docid": "c73495f609e758cb5fdfcc97d7e12f9e", "score": "0.5802873", "text": "public boolean disconnect() {\n\t\treturn disconnect(\"\");\n\t}", "title": "" }, { "docid": "4ea115201f7ae033885544f0c10ed600", "score": "0.5791159", "text": "public void disconnect() {\n\t\t\n\t\ttry {\n\t\t\ttelnetSocket.disconnect();\n\t\t} catch (IOException e) {\n\t\t\t// nothing to do\n\t\t}\n\t}", "title": "" }, { "docid": "eb4aa1d6f7c3e8c96028bb33d4d5917a", "score": "0.57885176", "text": "public void disconnect()\n {\n try\n {\n writeData(0, 0);\n\n serialPort.removeEventListener();\n serialPort.close();\n input.close();\n output.close();\n setConnected(false);\n\n logText = \"Disconnected.\";\n window.txtLog.setForeground(Color.red);\n window.txtLog.append(logText + \"\\n\");\n }\n catch (Exception e)\n {\n logText = \"Failed to close \" + serialPort.getName()\n + \"(\" + e.toString() + \")\";\n window.txtLog.setForeground(Color.red);\n window.txtLog.append(logText + \"\\n\");\n }\n }", "title": "" }, { "docid": "5559b2a1da0c9e5080939808842f770f", "score": "0.5785078", "text": "@Override\n public void disconnect() throws IOException {\n if (isConnect) {\n writer.printf(RouletteV1Protocol.CMD_BYE + \"\\n\");\n writer.flush();\n writer.close();\n reader.close();\n socket.close();\n isConnect = false;\n\n } \n }", "title": "" }, { "docid": "06590f6ed526fabe56c832ea2da5a300", "score": "0.57778925", "text": "@Override\n\tpublic void onPlayerLogout(Player player) {\n\n\t}", "title": "" }, { "docid": "66bc6426bfa967eb072384f496f8e146", "score": "0.57747173", "text": "@Override\r\n\tpublic void disconnect() {\n\t\t\r\n\t}", "title": "" }, { "docid": "cec79fdefe6c04135cefebbc9e4cf648", "score": "0.577226", "text": "public void onDisconnect(int connection);", "title": "" }, { "docid": "a15460577a8f8c7c14637e69676414aa", "score": "0.5772172", "text": "public void disconnect() {\n\t\toocsi.disconnect();\n\t}", "title": "" }, { "docid": "d86091da0c59df1d75dbe4629fb0e3d2", "score": "0.57596207", "text": "public void disconnect() {\r\n if (baCtrackAPI != null) {\r\n Log.d(TAG, \"baCtrackAPI disconnect\");\r\n baCtrackAPI.disconnect();\r\n } else {\r\n Log.d(TAG, \"baCtrackAPI was null. Cant disconnect\");\r\n }\r\n }", "title": "" }, { "docid": "06ef04cb8bd42b66896d4448f698ecb8", "score": "0.5748774", "text": "protected void disconnected() {\n \t\t// TODO currently this just immediately dereigsters user. \n \t\t// This must be modified for fail-over when we support multiple stacks\n \t\trouter.deregisterUser(this);\t\t\n \t}", "title": "" }, { "docid": "c9d971a8b556c37ccbc959d801c3aac5", "score": "0.57452327", "text": "protected abstract void rawDisconnect();", "title": "" }, { "docid": "c4d148a0b7513af731aceee77ed7b3f3", "score": "0.5742118", "text": "void disconnect(byte[] key) {\n logins.remove(key);\n }", "title": "" }, { "docid": "7999f6b753e9f4e14e5459d10fd0e40b", "score": "0.5741895", "text": "@Override\n public void disconnect() {\n try {\n if (socket != null) {\n socket.close();\n socket = null;\n }\n if (outputStream != null) {\n outputStream.close();\n outputStream = null;\n }\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "title": "" }, { "docid": "03867c52c02db35898f6fcb2488d3d05", "score": "0.57405686", "text": "@Override\n public void disconnect() {\n }", "title": "" }, { "docid": "472a37b1701915d4c0788461cbcb5924", "score": "0.57339877", "text": "public void disconnect() {\n\t\tif (bluetoothDevice.getConnected()) {\n\t\t\tbluetoothDevice.disableConnectedNotifications();\n\t\t\twriteCharacteristic.writeValue(Message.disconnectMessage());\n\t\t\tbluetoothDevice.disconnect();\n\t\t} else {\n\t\t\tLogger.log(LogType.CONNECTED_NOTIFICATION, toShortString() + \" not connected\" );\n\t\t}\n\t}", "title": "" }, { "docid": "ae96985d3f4bbc650797c643b6c8b09f", "score": "0.57315856", "text": "public void disconnect() {\n synchronized (eventSync) {\n if (inEvent) {\n disconnectAfterEvent = true;\n return;\n }\n }\n\n synchronized (binderSync) {\n if (ipc != null) {\n try {\n ipc.bye(self);\n } catch (RemoteException e) {\n // peer left without saying bye, rude!\n }\n }\n clearBinder();\n }\n }", "title": "" }, { "docid": "08d50b84c583cf863632e785ef36b4f1", "score": "0.57258713", "text": "@OnClose\n public void onClose(Session session) throws IOException{\n \tlogger.info(\"Entered into Close\");\n \t\n \tString username = sessionUsernameMap.get(session);\n \tsessionUsernameMap.remove(session);\n \tusernameSessionMap.remove(username);\n \t\n String message=\"Disconnected\";\n broadcast(message);\n }", "title": "" }, { "docid": "db0627e9de9e00f30600fa8251070b16", "score": "0.5712343", "text": "public void onDisconnect(Controller controller) {\n System.out.println(\"Disconnected\");\n }", "title": "" }, { "docid": "9f9d04416acd954e28238aad35231bf5", "score": "0.5710496", "text": "public void disconnect() {\n ProjectLogger.Log(\"MQTT Client: disconnecting from broker\");\n try {\n client.disconnect();\n } catch(MqttException exception) {\n ProjectLogger.Log(\"MQTT Client: Exception encountered when trying to disconnect\");\n exception.printStackTrace();\n }\n }", "title": "" } ]
71bce73b1c652eb6b7d15769782ffc11
getters and setters Final
[ { "docid": "07fee2909efacc691188f6bb49089f9d", "score": "0.0", "text": "public String toString() {\r\n\t\treturn String.format(\"{Trecho id:%d, origem:%s, destino:%s}\", id, origem, destino);\r\n\t}", "title": "" } ]
[ { "docid": "c32d5131bbf330c6e417879c6af42e9b", "score": "0.65104324", "text": "@Override\r\n\tpublic void set() {\n\t\t\r\n\t}", "title": "" }, { "docid": "7c88399b6fa6353a7df5174df4736bb9", "score": "0.6379147", "text": "public SetterAndGetter() {\n\t\tname = \"Jack\";\n\t\tcolor = \"Blue\";\n\t}", "title": "" }, { "docid": "0b7d5da34ce86a3669b4abee4a90e2df", "score": "0.6107578", "text": "Method getSetter();", "title": "" }, { "docid": "11ae3f676ce42a2333721001c6d26290", "score": "0.59833616", "text": "@Override\r\n\tpublic void get() {\n\t\t\r\n\t}", "title": "" }, { "docid": "54b3a3de962d328c36bd22e133219bbf", "score": "0.5928691", "text": "protected BaseValue() {\n entityId = null;\n _primaryKey = null;\n }", "title": "" }, { "docid": "a88fde9a49dacfbe9c5e1cbc2a0ee57b", "score": "0.5827015", "text": "private EntityValueMessage() {\n\t\t\tinitFields();\n\t\t}", "title": "" }, { "docid": "854eed5cd42ddab579fa9d2406b004b9", "score": "0.58015275", "text": "Object finalValue();", "title": "" }, { "docid": "bd6e93b2ba1d899a4b9b2902b3558490", "score": "0.5795827", "text": "private void value() {\n data();\n path();\n domain();\n }", "title": "" }, { "docid": "c8a0b2d4aa2ed724f87b079dc725e710", "score": "0.57648563", "text": "protected Change() {}", "title": "" }, { "docid": "6621d1d6ea58d7b5e639ef178c78df12", "score": "0.574884", "text": "private Values() {\n // Hide the constructor\n }", "title": "" }, { "docid": "63a51b9825ac81396e1d7ad0b9f3ed82", "score": "0.57271445", "text": "@Override\n\tpublic void 군무() {\n\t\t\n\t}", "title": "" }, { "docid": "1fe3655d9ecd52cb0037e8e33321488a", "score": "0.5643679", "text": "private Change() {\n }", "title": "" }, { "docid": "263e33857607103d73fe0da32acfcb07", "score": "0.5628471", "text": "Poolable get();", "title": "" }, { "docid": "7e38b8680b8b129631ca3831496696fe", "score": "0.5628469", "text": "protected Life getLife() {\n\treturn objLife;\n}", "title": "" }, { "docid": "15ae679aae74424c73fde647cf4332f6", "score": "0.56162554", "text": "@Override\r\n\t\t\tpublic void hissetmek() {\n\r\n\t\t\t}", "title": "" }, { "docid": "17bf02581340f31de8adae5e6436bffe", "score": "0.555687", "text": "public ResourceChange() {\n fModificationStamp = IResource.NULL_STAMP;\n fReadOnly = false;\n fValidationMethod = VALIDATE_DEFAULT;\n }", "title": "" }, { "docid": "958663dc976180cba7b91b2a4ebcb522", "score": "0.55534923", "text": "@Override\n\tpublic void atualiza() {\n\n\t}", "title": "" }, { "docid": "ea4046ab9b8d08932dc2ceb98002f120", "score": "0.55524147", "text": "public static void main(String[] args) throws IllegalArgumentException, IllegalAccessException {\n\t\n\t\t/**\n\t\t * final\n\t\t * \t\tfinal field\n\t\t * \t\tblank final field\n\t\t * \n\t\t */\n\t\t\n\t\tA a1= new A();\n\t\tA a2= new A();\n\t\tSystem.out.println(a1);\n\t\tSystem.out.println(a2);\n\t\tField[] fields = a1.getClass().getDeclaredFields();\n\t\tfor (Field field : fields) {\n\t\t\tfield.setAccessible(true);//permit access for time being\n\t\t\tSystem.out.println(a1);\n\t\t\tfield.set(a1,200);\n\t\t\tSystem.out.println(a1);\n\t\t\tfield.set(a1,300);\n\t\t\tSystem.out.println(a1);\n\t\t\tfield.set(a1,400);\n\t\t\tSystem.out.println(a1);\n\t\t\tfield.set(a1,500);\n\t\t\tSystem.out.println(a1);\n\t\t}\n\n\t\t\n\t\tSystem.out.println(a1);\n\t\tSystem.out.println(a2);\n\t\t\n\t\tSystem.exit(0);\n\t\t//primitive -- final -- immutable\n\t\t//string-- final -- value--self-- ref--final\n\t\t//wrappers --finall -- value--self--ref--final\n\t\t\n\t\t\n\t\t\n\t\tString s1=\"abc\";\n\t\ts1=\"pqr\";\n\t\t\n\n\t\tAuthor a11= new Author(1122333, \"Amit\");\n\t\tfinal Book b1 = new Book(1100,\"AAA\",a11,new Date(2019, 12, 10));\n\t\tSystem.out.println(b1);\n\t}", "title": "" }, { "docid": "2ca03152c97df4cbb73238cb18ab9f3d", "score": "0.5542523", "text": "private Accessors()\r\n {\r\n // Private constructor to prevent instantiation\r\n }", "title": "" }, { "docid": "f87e5d051792b5fd3b3ca012aef81e4e", "score": "0.5517242", "text": "public void release() {\n super.release();\n name = Constants.BEAN_KEY;\n property = null;\n text = null;\n value = null;\n }", "title": "" }, { "docid": "5c3d0db00918d1d990840aae3df755fa", "score": "0.5511038", "text": "public Object get() {\n\treturn null;\n }", "title": "" }, { "docid": "b3e1496e88eaa273eecb4663a7a115ce", "score": "0.55068636", "text": "public World getWorld(){ return world; }", "title": "" }, { "docid": "2bf9d8331194d368f8b2e9b5dc81cacc", "score": "0.5492745", "text": "public Thing getGoal(){ return goal; }", "title": "" }, { "docid": "edf377f03250c28c266b873c577d54a5", "score": "0.5488831", "text": "private VyhozeniVyjimky() {}", "title": "" }, { "docid": "06eece5a624842a1bb34e967688a3aa0", "score": "0.54677564", "text": "public int getAmount(){return this.amount;}", "title": "" }, { "docid": "76a80470fd21f5a9092c258ed3a8a632", "score": "0.5459973", "text": "private static void 로또번호리스트() {\n\t\t\r\n\t}", "title": "" }, { "docid": "eb6e2b8449cb7346ca56f9b485a0e167", "score": "0.5454406", "text": "public Empresa getEmpresa()\r\n/* 204: */ {\r\n/* 205:195 */ return this.empresa;\r\n/* 206: */ }", "title": "" }, { "docid": "f09a42e2149ca75ad8dffdc312357d5b", "score": "0.5432112", "text": "protected Incidencia(){\n }", "title": "" }, { "docid": "479f364fb386d9f92ef4be9c5641e6b6", "score": "0.54256284", "text": "public Avertissemnt() {\r\n }", "title": "" }, { "docid": "3e8e7eb881e60346d54e29daa905fad1", "score": "0.54242814", "text": "private KimAttributeField() {\r\n this.attributeField = null;\r\n this.id = null;\r\n this.unique = false;\r\n }", "title": "" }, { "docid": "8303b501d6c02c32230d5c51ff52da1b", "score": "0.5421922", "text": "public JClass setPublic(){\r\n\t\t\r\n\t\tthis.vissibilityModifier = \"public\";\r\n\t\treturn this;\r\n\t}", "title": "" }, { "docid": "9d9399f7958df0b110bc3b93267f5d89", "score": "0.54058367", "text": "AbstractPlayer() {\n titleDeeds = new ArrayList<>();\n bailOutOfJailCards = new ArrayList<>();\n bankrupt = false;\n consecutiveDoubleCount = 0;\n numberOfTurnsSpentInJail = 0;\n isInJail = false;\n totalWorth = 0;\n liquidTotalWorth = 0;\n getOutOfJailChoice = BailOutChoice.WAIT;\n taxOption = TaxOption.UNDETERMINED;\n\n setChanged();\n notifyObservers();\n\n }", "title": "" }, { "docid": "9beead09f0da4c5d2b86cb3c748b4fa1", "score": "0.5390964", "text": "public GameDataImpl(){\n set();\n }", "title": "" }, { "docid": "e31f520fcd53b19270e5ed46465f1794", "score": "0.53823966", "text": "public void setIncome(double income){this.income=income;}", "title": "" }, { "docid": "e67d20ff51787d7d939d46aabd890295", "score": "0.53789055", "text": "public Mt_set(){\r\n\r\n }", "title": "" }, { "docid": "077bfdacc73872789abf7a6c36b7cda0", "score": "0.53782684", "text": "private PropertyValueMessage() {\n\t\t\t\tinitFields();\n\t\t\t}", "title": "" }, { "docid": "ea2b99da17d919ad52072dfe4748e5d1", "score": "0.5378055", "text": "public void setFinal() {\n\t\tfinalState = true;\n\t}", "title": "" }, { "docid": "24947332e0269ab0cbc8152ed1e88568", "score": "0.5377402", "text": "public Propertybidfinalize() {\n\t}", "title": "" }, { "docid": "c402712543468983131c2eb256eb818c", "score": "0.5374975", "text": "public String getNome(){ return this.nome; }", "title": "" }, { "docid": "99570966654f5fa10d47c9eb99ce900e", "score": "0.53740835", "text": "@Override\n\tpublic void initValue() {\n\n\t}", "title": "" }, { "docid": "d92d5fe4c6efcfe66d53457e76817518", "score": "0.5362439", "text": "@Override\r\n\t\t\tprotected void init() {\n\t\t\t\t\r\n\t\t\t}", "title": "" }, { "docid": "82fa4524a3d5fc1e7a52ff73f6723c09", "score": "0.53624237", "text": "public OpbValueWrapperImpl() {\r\n logger.entering(CLASS_NAME, \"OpbValueWrapperImpl()\");\r\n\r\n }", "title": "" }, { "docid": "50ae3868c65f66b65e63221251809f6f", "score": "0.53586036", "text": "protected abstract Set method_751();", "title": "" }, { "docid": "65cca502e480c41cc9849928a48ede79", "score": "0.5358152", "text": "@Override\n public void set(E e) {\n // Not going to be implemented. \n }", "title": "" }, { "docid": "0b1e229f0dbbd8e9daa0a655357ee120", "score": "0.5351224", "text": "@Override\n\tpublic void getData() {\n\t\t\n\t}", "title": "" }, { "docid": "0b1e229f0dbbd8e9daa0a655357ee120", "score": "0.5351224", "text": "@Override\n\tpublic void getData() {\n\t\t\n\t}", "title": "" }, { "docid": "4918a223b50647304aa776228957dc24", "score": "0.5342881", "text": "private AccountSetAccess() {}", "title": "" }, { "docid": "d0ad89d61a3ade26f39c0447831864a1", "score": "0.53413105", "text": "public int getAge() { return age; }", "title": "" }, { "docid": "c4a4caabc67b57637e049b1b86cfcf5f", "score": "0.53410137", "text": "private FundAnno() {\n initFields();\n }", "title": "" }, { "docid": "061705457c942fc6f287fc086418892b", "score": "0.5337186", "text": "private CalendarEntity() {\n this.itemType = ITEM_TYPE_DIVIDER;\n this.date = null;\n this.special = null;\n this.week = -1;\n this.isToday = false;\n this.isPresent = false;\n this.isSpecial = false;\n this.isDisable = false;\n this.isEnabled = false;\n this.isWeekend = false;\n this.isLastSundayOfMonth = false;\n this.monthString = null;\n this.dayString = null;\n this.specialString = null;\n this.selectedType = SELECTED_TYPE_UNSELECTED;\n }", "title": "" }, { "docid": "289b8c09c62a41640dcf6bda4a268eb8", "score": "0.5333397", "text": "public int get () {\n\t}", "title": "" }, { "docid": "4e9f54e296508d605b06d61c08862e64", "score": "0.5332793", "text": "@Override\n\tpublic void release() {\n\t\tsuper.release();\t\n\t\t\n\t\tthis.datasetId = null;\n\t\tthis.type = null;\n\t\tthis.readOnly = null;\n\t\tthis.editable = null;\n\t\tthis.autoLoadPage = null;\n\t\tthis.pageSize = null;\n\t\t\n\t\tthis.pageIndex = null;\n\t\tthis.pageCount = null;\n\t\tthis.recordCount = null;\n\t\tthis.async = null;\n\t\tthis.loadDataAction = null;\n\t\t\n\t\tthis.loadDataActionMethod = null;\n\t\tthis._queryType = null;\n\t\tthis.paginate = null;\n\t\tthis.staticDataSource = null;\n\t\tthis.xmlFormat = null;\n\t\t\n\t\tthis.loadAsNeeded = null;\n\t\tthis.masterDataset = null;\n\t\tthis.masterKeyFields = null;\n\t\tthis.detailKeyFields = null;\t\t\n\t\t\n\t\tthis.dataset = null;\n\t\t\n\t\tthis.needFetchDBField = null;\t\n\t\tthis.dbObject = null;\n\t\t\n\t\tthis.excel = null;\n\t\tthis.excelName = null;\n\t\tthis.maskControl = null;\n\t\tthis.scope = null ;\n\t}", "title": "" }, { "docid": "0b3fe0bfc146e24315d2b9321e87a8bf", "score": "0.53301406", "text": "abstract public void escribir();", "title": "" }, { "docid": "65c867486f7fccb6e053bcadc2fb1fbf", "score": "0.5328302", "text": "@Override\n\tpublic void getData() {\n\n\t}", "title": "" }, { "docid": "f6fc2c4dd1cbb078e28428be29968b55", "score": "0.5324169", "text": "public abstract void setData();", "title": "" }, { "docid": "254006cbdb7ffa7b8eb79c7db4bdca05", "score": "0.5319976", "text": "protected abstract void setSpecificFields();", "title": "" }, { "docid": "b4c88e1360d21e07bffebecbb55d95e7", "score": "0.53176254", "text": "private entitler(){}", "title": "" }, { "docid": "14d28a32412e9608a87d073dee0d8755", "score": "0.5304122", "text": "private void limpiar() {\r\n setDescripcion(null);\r\n setDescuento(Short.MAX_VALUE);\r\n setFechafin(null);\r\n setPreciofinal(0);\r\n setId(0);\r\n\r\n }", "title": "" }, { "docid": "da5d6729c824881fe0d6fc256d1984cb", "score": "0.5297108", "text": "public Money() { this.money = 400;}", "title": "" }, { "docid": "0ba675c754e4bf739f55de4d3fe78937", "score": "0.528901", "text": "@Override\n\tpublic void getData() {\n\t}", "title": "" }, { "docid": "4293f2afeda42889f0ef396d1189c5d5", "score": "0.5286465", "text": "protected GeometricObject() {\r\n\t dateCreated = new java.util.Date();\r\n\t }", "title": "" }, { "docid": "1a52fd8d0986e6e1dd404f0e1f44c2a3", "score": "0.5285538", "text": "private ColaSoldOutState() {\r\n\r\n\t}", "title": "" }, { "docid": "c632ad46128bc07dcb1655a3b1316273", "score": "0.5285041", "text": "@Override\n\tpublic void set(IObj obj)\n\t{\n\t\tthrow new RuntimeException(\"Not implemented yet.\");\n\t}", "title": "" }, { "docid": "29c96ce42cff6b44793f6c6d081a0b7d", "score": "0.52847147", "text": "public World getWorld(){ return w; }", "title": "" }, { "docid": "e9f234ed50b700ba3278d89faaf1a62a", "score": "0.52782404", "text": "public Empleado getEmpleado()\r\n/* 223: */ {\r\n/* 224:321 */ return this.empleado;\r\n/* 225: */ }", "title": "" }, { "docid": "8a60ed25cdc88ff65b3fec4da4a7d129", "score": "0.5274815", "text": "public Object getNewValue() {\n/* 124 */ return this.newValue;\n/* */ }", "title": "" }, { "docid": "13f44df5b1a3165e5e17f0cb86ef540c", "score": "0.5273423", "text": "public Var() {\n super(\"set\", \"&rest\", \"bindings\");\n }", "title": "" }, { "docid": "87ec3cb1eebaf9a3fb74e82ad13d12b3", "score": "0.5272684", "text": "public Empleado getEmpleado()\r\n/* 208: */ {\r\n/* 209:230 */ return this.empleado;\r\n/* 210: */ }", "title": "" }, { "docid": "0b9ad8b33cfb1b4b08ff4bfd5508d903", "score": "0.52715456", "text": "protected synchronized java.lang.Object getValue()\n { \n return value; \n }", "title": "" }, { "docid": "589f08c40cd94a980eb13a5fde7a563d", "score": "0.5267107", "text": "@Override\n\tpublic void getAge() {\n\n\t}", "title": "" }, { "docid": "0246d090e4dc30dbab1a1a470087fe21", "score": "0.526477", "text": "public int getAge(){\r\n return age;\r\n }", "title": "" }, { "docid": "85af6e125084d9992aa637031f2b3dcc", "score": "0.5260547", "text": "public Pref()\n \t{\n \t\tsuper();\n \t}", "title": "" }, { "docid": "1efb243f956002f40c8c017058316c0b", "score": "0.5255611", "text": "void properties();", "title": "" }, { "docid": "aa032e1962fcf17bf4df286dedafe140", "score": "0.52496755", "text": "protected AccessLevel(){\n name = null;\n this.users = new LinkedHashSet<>();\n this.layers = new LinkedHashSet<>();\n }", "title": "" }, { "docid": "3e95cf354f1b89b767e2476c8ed8c016", "score": "0.5247192", "text": "public void setPublic(Boolean isPublic)\r\n/* */ {\r\n/* 171 */ this.isPublic = isPublic;\r\n/* */ }", "title": "" }, { "docid": "cb827098f2e9b9e405f1313432a23e4a", "score": "0.5247165", "text": "protected GeometricObject() {\n\t\tdateCreated = new java.util.Date();\n\t}", "title": "" }, { "docid": "fbcd962e9ccf30bb0b8b2d2843d9b52e", "score": "0.5242566", "text": "@Override\n\tpublic void setDob() {\n\t\t\n\t}", "title": "" }, { "docid": "8d26e3ccfcefaf1d3a43504e05a18172", "score": "0.5238589", "text": "public Change() {\r\n }", "title": "" }, { "docid": "cef8fd91d7e1564d18744c43a537e46d", "score": "0.5237939", "text": "private SwephData() {\n\t}", "title": "" }, { "docid": "9ff4721c26f620d592aeae62b1bbcf3d", "score": "0.52351815", "text": "private UserAccessor() {\n throw new IllegalStateException(\"Utility class\");\n }", "title": "" }, { "docid": "62a143424630293986df494dff4126bd", "score": "0.5234131", "text": "public int getAmount(){\n return this.amount;\n }", "title": "" }, { "docid": "36e8277220f4f3b61252f41379e9d501", "score": "0.523264", "text": "public SameIDCClass()\n\t{\n\t\t\t\t//System.out.println(\"PRIVATE ----:>\"+pri);\n\t\t\t\tSystem.out.println(\"DEFAULT ----:>\" +ob.def);\n\t\t\t\tSystem.out.println(\"PUBLIC ----:>\" +ob.pub);\n\t\t\t\tSystem.out.println(\"PROTECTED ----:>\" +ob.pro);\n\t\t\t\tSystem.out.println(\"\");\n\t\t\t\n\t\t\t}", "title": "" }, { "docid": "174f5ae27b9255259887950fe9db8110", "score": "0.5222695", "text": "private Store() {\n initFields();\n }", "title": "" }, { "docid": "27c725838f280928d869cc973588317c", "score": "0.52216697", "text": "@Override\r\n\tpublic void doSelfOpertion() {\n\t\t\r\n\t}", "title": "" }, { "docid": "6f51fd10cde9b0c8ef933d88875d7b2e", "score": "0.5219353", "text": "private Memento() throws IllegalAccessException {\n\t\t\ttry {\n\t\t\t\tthis.values = values().clone();\n\t\t\t\tfor (final Field switchField : EnumReflection.this.switchFields) {\n\t\t\t\t\tswitchField.setAccessible(true);\n\t\t\t\t\tfinal int[] switchArray = (int[]) switchField.get(null);\n\t\t\t\t\tthis.savedSwitchFieldValues.put(switchField, switchArray.clone());\n\t\t\t\t}\n\t\t\t} catch (final Exception e) {\n\t\t\t\tthrow new IllegalArgumentException(\"Could not create the class\", e);\n\t\t\t}\n\t\t}", "title": "" }, { "docid": "d5213a5a7ac100f3bb30676e3e3aa9dd", "score": "0.52158034", "text": "private Params() {\n\t throw new AssertionError();\n\t}", "title": "" }, { "docid": "c607b9ba2351e7ffd8376253567208bc", "score": "0.52131164", "text": "public int getvalue(){\n\n return value;\n\n }", "title": "" }, { "docid": "5ca1dc8cb9b20f438ebb3a45dbecd237", "score": "0.52096915", "text": "protected GeometricObject() {\r\n dateCreated = new Date();\r\n }", "title": "" }, { "docid": "c063dd87048155af53fed3061a8fe2a6", "score": "0.52094", "text": "private Property() {}", "title": "" }, { "docid": "3197560ad6fb8b3f005dcac8d7cecea9", "score": "0.5208194", "text": "private EditorData() {\n }", "title": "" }, { "docid": "e6068dca5d5c242e861b998b28499eed", "score": "0.52081615", "text": "public int getAge() \n {\n return age;\n }", "title": "" }, { "docid": "059b87b45b9fde1cfbb0d0f61e217b49", "score": "0.5204915", "text": "private ObjectStateUtilities() {}", "title": "" }, { "docid": "aa1a358232f3aeadc2be107f037a8c77", "score": "0.520376", "text": "public Set(){\r\n\t\t//constructor\r\n\t}", "title": "" }, { "docid": "30658f68542b96a67ae3edc29f4f50d3", "score": "0.5203482", "text": "private Complejo() {\r\n\t\tsuper();\r\n\t\tthis.misQuesos = new ArrayList<Queso>();\r\n\t\tthis.misClientes = new ArrayList<Cliente>();\r\n\t\tthis.misFacturaciones = new ArrayList<Factura>();\r\n\t\tthis.misUsuarios = new ArrayList<Usuario>();\r\n\t\t//misUsuarios.add(admin);\r\n\t}", "title": "" }, { "docid": "4a7d685c6f239618ab5ad4071eba107b", "score": "0.51994735", "text": "public String getCodigo()\r\n/* 80: */ {\r\n/* 81: 98 */ return this.codigo;\r\n/* 82: */ }", "title": "" }, { "docid": "217c7611bbaf5dceee3a3db2964cf5bd", "score": "0.5197688", "text": "public Accessory () {\n\t\tsuper();\n\t}", "title": "" }, { "docid": "069fa67df41f25887e94b41f31e97c6f", "score": "0.5197332", "text": "Object getObject() {return valor; }", "title": "" }, { "docid": "095e6ff8bab7af049b3fedcf55fc5bad", "score": "0.5196301", "text": "private LieferungModul() {\r\n\t}", "title": "" }, { "docid": "1b06e5030808a8968e34d1a74e630d5a", "score": "0.5194526", "text": "public int age(){\r\n return _age;\r\n }", "title": "" }, { "docid": "ffdf0116aae729513bd232b3fa4e2e79", "score": "0.5193522", "text": "public int getHealth(){ return health; }", "title": "" }, { "docid": "cb33997ab542f5c0a75ccae48eaa341f", "score": "0.5190889", "text": "public CommissioneBean() {\n\t\tNome=null;\n\t\tCognome=null;\n\t\tProvenienza=null;\n\t\tRuolo=null;\n }", "title": "" } ]
6f1c058ec1853280d297d3c949b6a44f
Test case number: 126 /Coverage entropy=2.8456384931342567
[ { "docid": "a426251543ad8b5385e0398d4088657a", "score": "0.0", "text": "@Test(timeout = 4000)\n public void test126() throws Throwable {\n Range range0 = Range.ofLength(4294967294L);\n // Undeclared exception!\n try { \n range0.complement((Range) null);\n fail(\"Expecting exception: IllegalArgumentException\");\n \n } catch(IllegalArgumentException e) {\n //\n // Null Range used in intersection operation.\n //\n verifyException(\"org.jcvi.jillion.core.Range\", e);\n }\n }", "title": "" } ]
[ { "docid": "09ddf7d6deb78bd2f34137112ee50c64", "score": "0.6997897", "text": "@Test\n public void testEntropy() {\n System.out.println(\"entropy\");\n ChiSquareDistribution instance = new ChiSquareDistribution(20);\n instance.rand();\n assertEquals(3.229201359, instance.entropy(), 1E-7);\n }", "title": "" }, { "docid": "e2299bc88d024040c7aed4e8f8faed62", "score": "0.6662105", "text": "double entropy();", "title": "" }, { "docid": "4ea9ba2d490015115f983155d859094e", "score": "0.6479815", "text": "@Test\n public void test147() throws Throwable {\n double double0 = MathUtils.binomialCoefficientLog(63, (byte)11);\n }", "title": "" }, { "docid": "d134158701c0db7f9e296fc4fbb74fa0", "score": "0.64512527", "text": "@Test\n public void test133() throws Throwable {\n double double0 = MathUtils.binomialCoefficientDouble((byte)106, 61);\n }", "title": "" }, { "docid": "a4ee6865e63520ea00c0a7fa1e455433", "score": "0.6412246", "text": "@Test\n public void testCalculateEntropy()\n {\n System.out.println(\"Test of guessEntropy method, of class RepeatMatch\");\n\n HashMap<String, Double> entropyMap = new HashMap<>();\n HashMap<String, String> repeatMap = new HashMap<>();\n entropyMap.put(\"a\", 4.700439718141093);\n repeatMap.put(\"a\", \"a\");\n entropyMap.put(\"aaaaaaaaaa\", 8.022367813028454);\n repeatMap.put(\"aaaaaaaaaa\", \"a\");\n entropyMap.put(\"aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa\", 10.022367813028454);\n repeatMap.put(\"aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa\", \"a\");\n entropyMap.put(\"A\", 4.700439718141093);\n repeatMap.put(\"A\", \"A\");\n entropyMap.put(\"AAAAAAAAAA\", 8.022367813028454);\n repeatMap.put(\"AAAAAAAAAA\", \"A\");\n entropyMap.put(\"AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA\", 10.022367813028454);\n repeatMap.put(\"AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA\", \"A\");\n entropyMap.put(\"0\", 3.3219280948873626);\n repeatMap.put(\"0\", \"0\");\n entropyMap.put(\"0000000000\", 6.643856189774725);\n repeatMap.put(\"0000000000\", \"0\");\n entropyMap.put(\"0000000000000000000000000000000000000000\", 8.643856189774725);\n repeatMap.put(\"0000000000000000000000000000000000000000\", \"0\");\n entropyMap.put(\"@\", 5.044394119358453);\n repeatMap.put(\"@\", \"@\");\n entropyMap.put(\"@@@@@@@@@@\", 8.366322214245816);\n repeatMap.put(\"@@@@@@@@@@\", \"@\");\n entropyMap.put(\"@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@\", 10.366322214245816);\n repeatMap.put(\"@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@\", \"@\");\n entropyMap.put(\"é\", 6.643856189774725);\n repeatMap.put(\"é\", \"é\");\n entropyMap.put(\"éééééééééé\", 9.965784284662087);\n repeatMap.put(\"éééééééééé\", \"é\");\n entropyMap.put(\"éééééééééééééééééééééééééééééééééééééééé\", 11.965784284662087);\n repeatMap.put(\"éééééééééééééééééééééééééééééééééééééééé\", \"é\");\n entropyMap.put(\"igfigf\", 7.285402218862249);\n repeatMap.put(\"igfigf\", \"igf\");\n entropyMap.put(\"igfigfigf\", 6.285402218862249);\n repeatMap.put(\"igfigfigf\", \"igf\");\n entropyMap.put(\"6p\", 6.169925001442312);\n repeatMap.put(\"6p\", \"6p\");\n entropyMap.put(\"6p6p\", 6.169925001442312);\n repeatMap.put(\"6p6p\", \"6p\");\n entropyMap.put(\"6p6p6p\", 7.754887502163469);\n repeatMap.put(\"6p6p6p\", \"6p\");\n entropyMap.put(\"6p6p6p6p6p6p6p6p6p6p6p6p6p6p6p6p6p6p\", 10.339850002884624);\n repeatMap.put(\"6p6p6p6p6p6p6p6p6p6p6p6p6p6p6p6p6p6p\", \"6p\");\n\n // Test the fixture\n Configuration configuration = new ConfigurationBuilder().createConfiguration();\n for (Map.Entry<String, Double> entry : entropyMap.entrySet())\n {\n String password = entry.getKey();\n double expected = entry.getValue();\n double computed = new RepeatMatch(password, configuration, repeatMap.get(password), 0, password.length() - 1).calculateEntropy();\n Assert.assertEquals(password, expected, computed, 0.000000000000001);\n }\n }", "title": "" }, { "docid": "eb46527b547fdb1838ff32f5b4423f90", "score": "0.63862514", "text": "public double entropy ();", "title": "" }, { "docid": "9f7253ced0488d5bbbeaa1625cf9c158", "score": "0.6368179", "text": "@Test\n public void test135() throws Throwable {\n double double0 = MathUtils.binomialCoefficientDouble(728, (byte)1);\n }", "title": "" }, { "docid": "93c3ef4813f999b4c029b01e92bae771", "score": "0.63317", "text": "@Test\n public void test127() throws Throwable {\n double double0 = MathUtils.binomialCoefficientLog(3513, 341);\n }", "title": "" }, { "docid": "91a66ea86998d9c52f727783b48bc275", "score": "0.62973046", "text": "public double entropy();", "title": "" }, { "docid": "3113f0d985e5dc977668c1cb28ce34e1", "score": "0.61646485", "text": "@Test\n public void longCodeWeightTest() {\n // TODO: test longCodeWeight\n }", "title": "" }, { "docid": "a64fe39c6faf931eb1c837c60a8f1370", "score": "0.61606556", "text": "@Test\n public void test128() throws Throwable {\n double double0 = MathUtils.binomialCoefficientLog((short)5, (short)1);\n }", "title": "" }, { "docid": "e3dfc2c3dad3a2e4a370f1d1601c8399", "score": "0.61248296", "text": "public void testCoverage() {\r\n\t\tBowlingGame bowlingGame = new BowlingGame(\"[9,5][3,6][7,2][3,6][4,4][5,3][3,3][4,5][8,1][2,8][10]\");\r\n\t\tassertEquals(-1, bowlingGame.getScore());\r\n\t}", "title": "" }, { "docid": "130ab3b4f15d2b6a9f42121848a1ed52", "score": "0.611811", "text": "@Test\n public void test126() throws Throwable {\n double double0 = MathUtils.binomialCoefficientLog(2052, 1954);\n }", "title": "" }, { "docid": "6c7d366520333482b113a928e27330ef", "score": "0.6039574", "text": "@Test(timeout = 4000)\n public void test59() throws Throwable {\n JRip jRip0 = new JRip();\n LinkedList<String> linkedList0 = new LinkedList<String>();\n linkedList0.add(\"!<jJ:'Gy6kK2\");\n Attribute attribute0 = new Attribute(\"!<jJ:'Gy6kK2\", linkedList0, 102);\n ArrayList<Attribute> arrayList0 = new ArrayList<Attribute>(102);\n attribute0.enumerateValues();\n Instances instances0 = new Instances(\"\", arrayList0, 0);\n CostMatrix costMatrix0 = new CostMatrix(1);\n Attribute attribute1 = new Attribute(\"VCJb&Rj:gpc+^HBo\", linkedList0, (-56));\n JRip.NominalAntd jRip_NominalAntd0 = jRip0.new NominalAntd(attribute1);\n jRip_NominalAntd0.maxInfoGain = (-2375.012016501596);\n jRip_NominalAntd0.splitData(instances0, 4, 3);\n FileSystemHandling.shouldAllThrowIOExceptions();\n System.setCurrentTimeMillis(0L);\n }", "title": "" }, { "docid": "d5250672c1ac521f2c0173f5348c6926", "score": "0.60393816", "text": "public static float entropy1(String c,Examples ex,int property){\r\n\t\tfloat sum=0;\r\n\t\tfloat prob=0;\r\n\t\tfor(int i=0; i==Integer.parseInt(c) ;i++){\r\n\t\t\tprob=probability1(c,ex,property);\r\n\t\t\tsum+=prob*Math.log(prob)/Math.log(2);\r\n\t\t}\r\n\t\r\n\t\treturn -sum;\r\n\t\r\n\t}", "title": "" }, { "docid": "f3bc79efac57f79470cfeb2085c868e4", "score": "0.59890705", "text": "@Test(timeout = 4000)\n public void test36() throws Throwable {\n JRip jRip0 = new JRip();\n LinkedList<String> linkedList0 = new LinkedList<String>();\n Attribute attribute0 = new Attribute(\"\", linkedList0);\n JRip.NominalAntd jRip_NominalAntd0 = jRip0.new NominalAntd(attribute0);\n BinarySparseInstance binarySparseInstance0 = new BinarySparseInstance(3);\n boolean boolean0 = jRip_NominalAntd0.covers(binarySparseInstance0);\n assertFalse(jRip0.getDebug());\n assertEquals(Double.NaN, jRip_NominalAntd0.getAccu(), 0.01);\n assertEquals(Double.NaN, jRip_NominalAntd0.getAccuRate(), 0.01);\n assertEquals(Double.NaN, jRip_NominalAntd0.getCover(), 0.01);\n assertEquals(2.0, jRip0.getMinNo(), 0.01);\n assertEquals(0.0, jRip_NominalAntd0.getMaxInfoGain(), 0.01);\n assertEquals(3, jRip0.getFolds());\n assertEquals(2, jRip0.getOptimizations());\n assertEquals(Double.NaN, jRip_NominalAntd0.getAttrValue(), 0.01);\n assertTrue(jRip0.getCheckErrorRate());\n assertTrue(jRip0.getUsePruning());\n assertTrue(boolean0);\n assertEquals(1L, jRip0.getSeed());\n }", "title": "" }, { "docid": "c053c1d83352d9e71a1ea6d0c99f0441", "score": "0.5968431", "text": "@Test\n public void test142() throws Throwable {\n double double0 = MathUtils.binomialCoefficientDouble((byte)1, (-1));\n }", "title": "" }, { "docid": "475b2e4bda8cf3f57b8e6c4277bbe889", "score": "0.59659606", "text": "@Test\n public void test058() throws Throwable {\n long long0 = MathUtils.binomialCoefficient(0, (-95));\n }", "title": "" }, { "docid": "8431e8f031f8c021eb01638e46219b42", "score": "0.5959149", "text": "@Test\n public void test140() throws Throwable {\n long long0 = MathUtils.binomialCoefficient(2775, (-558));\n }", "title": "" }, { "docid": "735d82d119152aa951c0aa2cc2019969", "score": "0.59459805", "text": "@Test(timeout = 4000)\n public void test43() throws Throwable {\n JRip jRip0 = new JRip();\n Attribute attribute0 = new Attribute(\"lVit+X\", \"\", 1);\n JRip.NominalAntd jRip_NominalAntd0 = jRip0.new NominalAntd(attribute0);\n double[] doubleArray0 = new double[5];\n doubleArray0[0] = (double) 2;\n doubleArray0[1] = (double) 4;\n doubleArray0[2] = (double) 4;\n doubleArray0[4] = (double) 0;\n DenseInstance denseInstance0 = new DenseInstance(3, doubleArray0);\n boolean boolean0 = jRip_NominalAntd0.covers(denseInstance0);\n assertEquals(0.0, jRip_NominalAntd0.getMaxInfoGain(), 0.01);\n assertEquals(Double.NaN, jRip_NominalAntd0.getAccuRate(), 0.01);\n assertEquals(1L, jRip0.getSeed());\n assertEquals(Double.NaN, jRip_NominalAntd0.getAccu(), 0.01);\n assertTrue(jRip0.getCheckErrorRate());\n assertTrue(jRip0.getUsePruning());\n assertEquals(2.0, jRip0.getMinNo(), 0.01);\n assertEquals(2, jRip0.getOptimizations());\n assertEquals(Double.NaN, jRip_NominalAntd0.getAttrValue(), 0.01);\n assertEquals(Double.NaN, jRip_NominalAntd0.getCover(), 0.01);\n assertEquals(3, jRip0.getFolds());\n assertFalse(boolean0);\n assertFalse(jRip0.getDebug());\n }", "title": "" }, { "docid": "acec71903611099e69d5d7d59a34d64a", "score": "0.5940672", "text": "@Test(timeout = 4000)\n public void test11() throws Throwable {\n JRip jRip0 = new JRip();\n FileSystemHandling.shouldThrowIOException((EvoSuiteFile) null);\n LinkedList<String> linkedList0 = new LinkedList<String>();\n linkedList0.add(\"\\nNo pruning: growing a rule ...\");\n Attribute attribute0 = new Attribute(\"!<jJ:'Gy6kK2\", linkedList0, 102);\n ArrayList<Attribute> arrayList0 = new ArrayList<Attribute>(102);\n attribute0.enumerateValues();\n Instances instances0 = new Instances(\"\", arrayList0, 0);\n CostMatrix costMatrix0 = new CostMatrix(1);\n Attribute attribute1 = new Attribute(\"VCJb&Rj:gpc+^HBo\", linkedList0, (-56));\n JRip.NominalAntd jRip_NominalAntd0 = jRip0.new NominalAntd(attribute1);\n InputMappedClassifier inputMappedClassifier0 = new InputMappedClassifier();\n jRip_NominalAntd0.accu = 3.0;\n inputMappedClassifier0.getModelHeader(instances0);\n jRip_NominalAntd0.splitData(instances0, 4, 3);\n jRip_NominalAntd0.copy();\n assertEquals(3.0, jRip_NominalAntd0.getAccu(), 0.01);\n }", "title": "" }, { "docid": "8f13b652050fc497e4fcd1a822bfcd24", "score": "0.59312713", "text": "@Test\n public void test27() throws Throwable {\n Discretize discretize0 = new Discretize();\n String string0 = discretize0.findNumBinsTipText();\n assertEquals(\"Optimize number of equal-width bins using leave-one-out. Doesn't work for equal-frequency binning\", string0);\n assertFalse(discretize0.getMakeBinary());\n assertEquals((-1.0), discretize0.getDesiredWeightOfInstancesPerInterval(), 0.01D);\n assertEquals(10, discretize0.getBins());\n assertFalse(discretize0.getUseBinNumbers());\n }", "title": "" }, { "docid": "8e0ad0bbbdd35a3119bf7d70b7183791", "score": "0.5894667", "text": "@Test(timeout = 4000)\n public void test27() throws Throwable {\n JRip jRip0 = new JRip();\n LinkedList<String> linkedList0 = new LinkedList<String>();\n Attribute attribute0 = new Attribute(\"!j9ZajF#\\\"Y*\");\n JRip.NumericAntd jRip_NumericAntd0 = jRip0.new NumericAntd(attribute0);\n JRip.NumericAntd jRip_NumericAntd1 = (JRip.NumericAntd)jRip_NumericAntd0.copy();\n assertTrue(jRip0.getCheckErrorRate());\n assertEquals(1L, jRip0.getSeed());\n assertTrue(jRip0.getUsePruning());\n assertEquals(2.0, jRip0.getMinNo(), 0.01);\n assertEquals(0.0, jRip_NumericAntd1.getMaxInfoGain(), 0.01);\n assertNotSame(jRip_NumericAntd1, jRip_NumericAntd0);\n assertEquals(3, jRip0.getFolds());\n assertEquals(Double.NaN, jRip_NumericAntd1.getAttrValue(), 0.01);\n assertEquals(2, jRip0.getOptimizations());\n assertFalse(jRip0.getDebug());\n assertEquals(Double.NaN, jRip_NumericAntd1.getSplitPoint(), 0.01);\n assertEquals(Double.NaN, jRip_NumericAntd1.getCover(), 0.01);\n assertEquals(Double.NaN, jRip_NumericAntd1.getAccu(), 0.01);\n assertEquals(Double.NaN, jRip_NumericAntd1.getAccuRate(), 0.01);\n }", "title": "" }, { "docid": "52b24f39508ef7e3302d761673ed24ef", "score": "0.58744913", "text": "@Test\n public void test136() throws Throwable {\n double double0 = MathUtils.binomialCoefficientDouble((short)1, 0);\n }", "title": "" }, { "docid": "1768b1fc3a22fe210038602d19549a76", "score": "0.586684", "text": "@Test\n public void test13() throws Throwable {\n Discretize discretize0 = new Discretize(\"-NTAG\");\n discretize0.setIgnoreClass(true);\n String[] stringArray0 = discretize0.getOptions();\n assertFalse(discretize0.getMakeBinary());\n assertFalse(discretize0.getFindNumBins());\n assertEquals((-1.0), discretize0.getDesiredWeightOfInstancesPerInterval(), 0.01D);\n assertEquals(10, discretize0.getBins());\n assertFalse(discretize0.getUseEqualFrequency());\n assertFalse(discretize0.getUseBinNumbers());\n }", "title": "" }, { "docid": "7448c2783d42207e034faf836abe076b", "score": "0.58576137", "text": "@Test\n public void test129() throws Throwable {\n double double0 = MathUtils.binomialCoefficientLog(1933, 0);\n }", "title": "" }, { "docid": "4c3b69294a603183959a8a1bc0b9aa78", "score": "0.58453125", "text": "@Test\n public void test21() throws Throwable {\n Discretize discretize0 = new Discretize(\"impel\");\n String string0 = discretize0.getRevision();\n assertFalse(discretize0.getMakeBinary());\n assertEquals((-1.0), discretize0.getDesiredWeightOfInstancesPerInterval(), 0.01D);\n assertEquals(\"8964\", string0);\n assertEquals(10, discretize0.getBins());\n assertFalse(discretize0.getUseBinNumbers());\n }", "title": "" }, { "docid": "47c07d61f5fa8da572cfc618bd9aaeee", "score": "0.5844235", "text": "@Test(timeout = 4000)\n public void test32() throws Throwable {\n JRip jRip0 = new JRip();\n Attribute attribute0 = new Attribute(\"\", \"\");\n JRip.NominalAntd jRip_NominalAntd0 = jRip0.new NominalAntd(attribute0);\n double[] doubleArray0 = new double[7];\n doubleArray0[1] = (double) 2;\n double double0 = jRip_NominalAntd0.getAccu();\n assertEquals(Double.NaN, jRip_NominalAntd0.getCover(), 0.01);\n assertEquals(Double.NaN, jRip_NominalAntd0.getAccuRate(), 0.01);\n assertEquals(Double.NaN, double0, 0.01);\n assertEquals(0.0, jRip_NominalAntd0.getMaxInfoGain(), 0.01);\n assertEquals(Double.NaN, jRip_NominalAntd0.getAttrValue(), 0.01);\n \n String string0 = jRip0.toString();\n assertFalse(jRip0.getDebug());\n assertEquals(2, jRip0.getOptimizations());\n assertEquals(1L, jRip0.getSeed());\n assertTrue(jRip0.getCheckErrorRate());\n assertTrue(jRip0.getUsePruning());\n assertEquals(3, jRip0.getFolds());\n assertEquals(2.0, jRip0.getMinNo(), 0.01);\n assertEquals(\"JRIP: No model built yet.\", string0);\n }", "title": "" }, { "docid": "7a805fa66b31f70b0ab42a1a42f7a8aa", "score": "0.58412135", "text": "@Test\n public void testCauchy_1()\n throws Exception {\n\n double result = StdRandom.cauchy();\n\n }", "title": "" }, { "docid": "d3ae4d271d2beb9969c2717fc474b34c", "score": "0.583337", "text": "public static void main(String[] args) throws Exception {\n String imageDir = \"D:/Temp/MAGISTR/TABLE/IMAGES\";\n String outputDir = \"D:/Temp/MAGISTR/TABLE/RESULTS\";\n\n double[][] filterSet = new double[][] { { 1, 0, 0, 0 } };\n \n File castle = new File(imageDir, \"Castle.jpg\");\n double[][] imageData = getGrayscaleData(castle);\n \n TransformResultHolder holder = TransformResultHolder.createHolder(imageData);\n //holder = holder.transformNextLevel();//.transformNextLevel();\n \n double entropy;\n \n int[][] LL = ArrayUtils.convert(holder.getLL());\n entropy = AnalyzeUtils.calculateEntropy(LL, 0, 0, LL.length, LL.length);\n System.out.println(\"LL before: \" + entropy);\n LLPredictioner predictionerLL = new LLPredictioner(LL, filterSet);\n predictionerLL.setDispersionThreshold(4);\n int[][] differenceLL = predictionerLL.buildDifference();\n entropy = AnalyzeUtils.calculateEntropy(differenceLL, 0, 0, differenceLL.length, differenceLL.length);\n System.out.println(\"LL after: \" + entropy);\n \n ZonesRescaler rescaler = new ZonesRescaler();\n// int[][] resc = rescaler.rescaleZones(predictionerLL.getZones(), 1);\n// CommonUtils.prettyPrint(resc,\"D:/Temp/MAGISTR/TABLE/RESULTS/resc1\");\n /*\n int[][] LH = ArrayUtils.convert(holder.getLH());\n entropy = AnalyzeUtils.calculateEntropy(LH, 0, 0, LH.length, LH.length);\n System.out.println(\"LH before: \" + entropy);\n CommonUtils.prettyPrint(LH, \"D:/Temp/MAGISTR/TABLE/RESULTS/LH\");\n OtherPredictioner predictionerLH = new OtherPredictioner(LH, filterSet, LL, predictionerLL.getZones());\n int[][] differenceLH = predictionerLH.buildDifference();\n entropy = AnalyzeUtils.calculateEntropy(differenceLH, 0, 0, LH.length, LH.length);\n \n int[][] HL = ArrayUtils.convert(holder.getHL());\n entropy = AnalyzeUtils.calculateEntropy(HL, 0, 0, HL.length, HL.length);\n System.out.println(\"HL before: \" + entropy);\n OtherPredictioner predictionerHL = new OtherPredictioner(HL, filterSet, LL, predictionerLL.getZones());\n int[][] differenceHL = predictionerHL.buildDifference();\n entropy = AnalyzeUtils.calculateEntropy(differenceHL, 0, 0, HL.length, HL.length);\n \n int[][] HH = ArrayUtils.convert(holder.getHH());\n entropy = AnalyzeUtils.calculateEntropy(HH, 0, 0, HH.length, HH.length);\n System.out.println(\"HH before: \" + entropy);\n OtherPredictioner predictionerHH = new OtherPredictioner(HH, filterSet, LL, predictionerLL.getZones());\n int[][] differenceHH = predictionerHH.buildDifference();\n entropy = AnalyzeUtils.calculateEntropy(differenceHH, 0, 0, HH.length, HH.length);\n */\n// double[][] normalized = ImageUtils.grayscaleNormalize3(difference);\n// \n// BufferedImage normalizedImage = ImageUtils.createNewGrayscaleImage(normalized);\n// ImageUtils.setNewGrayscaleImageData(normalizedImage, normalized);\n// ImageUtils.saveAsBitmap(normalizedImage, \"D:/Temp/MAGISTR/TABLE/RESULTS/normalized.bmp\");\n// CommonUtils.prettyPrint(normalized, \"D:/Temp/MAGISTR/TABLE/RESULTS/normalized\");\n// CommonUtils.prettyPrint(predictionerLH.edges, \"D:/Temp/MAGISTR/TABLE/RESULTS/edges\");\n \n// Restorator restorator = new Restorator(difference, predictioner.zones, predictioner.passiveFilter, predictioner.activeFilter);\n// int[][] restored = restorator.buildOriginal();\n// \n// for (int row = 0; row < original.length; row++) {\n//\t\t\tfor (int col = 0; col < original.length; col++) {\n//\t\t\t\tif (original[row][col] != restored[row][col]) {\n//\t\t\t\t\tSystem.out.println(row + \" \" + col);\n//\t\t\t\t}\n//\t\t\t}\n//\t\t}\n// difference = predictioner.zones;\n// CommonUtils.prettyPrint(restored, \"D:/Temp/MAGISTR/TABLE/RESULTS/res2.txt\");\n// new TableGenerator().analyze(imageDir, outputDir);\n }", "title": "" }, { "docid": "0e198b82af6dc4a4e20c67d66a325f0f", "score": "0.58277124", "text": "@Test\n public void test144() throws Throwable {\n long long0 = MathUtils.binomialCoefficient(3109, 0);\n }", "title": "" }, { "docid": "248a5c878a81ba2267b85c8f422d4972", "score": "0.581993", "text": "@Test\n public void test145() throws Throwable {\n long long0 = MathUtils.binomialCoefficient(0, (byte)0);\n }", "title": "" }, { "docid": "82d98bb3cf9dc4ab7eb536489de5f673", "score": "0.58187497", "text": "HitTestResult mo71152u();", "title": "" }, { "docid": "afc2daa7b4c83143c4252daee854cf4d", "score": "0.57985705", "text": "@Ignore\n @Test\n public void testAllRecordingsWithLogistic() throws Exception {\n List<Recording> trainList = recordingService.findAll();\n List<Gesture> gestures = gestureService.findAll();\n double pctCorrect = classifyAllRecordings(trainList, gestures, new Logistic(), 19, 12);\n detailWriter.println(\"testAllRecordingsWithLogistic pctCorrect: \" + pctCorrect);\n System.out.println(\"testAllRecordingsWithLogistic pctCorrect: \" + pctCorrect); //46.875%\n\n }", "title": "" }, { "docid": "e0c48a2806f4b96bb5e36defa057d798", "score": "0.57938737", "text": "@Test\n public void test057() throws Throwable {\n double double0 = MathUtils.binomialCoefficientDouble(1393, 4);\n }", "title": "" }, { "docid": "e046e271f330683264dcd858b3434a59", "score": "0.57891315", "text": "@Test(timeout = 4000)\n public void test107() throws Throwable {\n ResultMatrixSignificance resultMatrixSignificance0 = new ResultMatrixSignificance();\n ResultMatrixSignificance resultMatrixSignificance1 = new ResultMatrixSignificance(resultMatrixSignificance0);\n int int0 = 1314;\n String[] stringArray0 = new String[22];\n stringArray0[0] = \"(\";\n stringArray0[1] = \"*\";\n stringArray0[2] = \"(\";\n stringArray0[3] = \"v\";\n stringArray0[4] = \" \";\n int[][] intArray0 = new int[9][8];\n resultMatrixSignificance1.setStdDev(0, 1, 1314);\n ResultMatrixPlainText.main(stringArray0);\n resultMatrixSignificance1.getRevision();\n ResultMatrixCSV resultMatrixCSV0 = new ResultMatrixCSV(46, 1314);\n }", "title": "" }, { "docid": "7587661e398a3d92b3b56435d1f10c75", "score": "0.577455", "text": "@Test\n public void test130() throws Throwable {\n double double0 = MathUtils.binomialCoefficientLog(0, 0);\n }", "title": "" }, { "docid": "b5bb145913bb99a43fb839b4920bc12e", "score": "0.57467514", "text": "@Test\n\tpublic void testAccuracy() {\n\n\t}", "title": "" }, { "docid": "518865ad1eb833d8c08d79053c182996", "score": "0.57306343", "text": "@Test\n public void test114() throws Throwable {\n double double0 = MathUtils.factorialLog(0);\n }", "title": "" }, { "docid": "87e5e942902edd4bf95e5bcd69c89aa7", "score": "0.5730108", "text": "@Test(timeout = 4000)\n public void test21() throws Throwable {\n JRip jRip0 = new JRip();\n Attribute attribute0 = new Attribute(\"115-123\", 0);\n JRip.NumericAntd jRip_NumericAntd0 = jRip0.new NumericAntd(attribute0);\n double double0 = jRip_NumericAntd0.getSplitPoint();\n assertTrue(jRip0.getUsePruning());\n assertTrue(jRip0.getCheckErrorRate());\n assertEquals(Double.NaN, jRip_NumericAntd0.getAccu(), 0.01);\n assertEquals(Double.NaN, jRip_NumericAntd0.getAccuRate(), 0.01);\n assertEquals(2.0, jRip0.getMinNo(), 0.01);\n assertEquals(3, jRip0.getFolds());\n assertEquals(Double.NaN, double0, 0.01);\n assertEquals(Double.NaN, jRip_NumericAntd0.getAttrValue(), 0.01);\n assertEquals(Double.NaN, jRip_NumericAntd0.getCover(), 0.01);\n assertEquals(2, jRip0.getOptimizations());\n assertEquals(1L, jRip0.getSeed());\n assertFalse(jRip0.getDebug());\n assertEquals(0.0, jRip_NumericAntd0.getMaxInfoGain(), 0.01);\n }", "title": "" }, { "docid": "5ad71cb061939035ab86efa8f02b306e", "score": "0.5707526", "text": "@Test\n public void test055() throws Throwable {\n double double0 = MathUtils.factorialLog(1123);\n }", "title": "" }, { "docid": "4d05265381901b9f9fb40f39cda5232e", "score": "0.5694885", "text": "@Test(timeout = 4000)\n public void test19() throws Throwable {\n JRip jRip0 = new JRip();\n Attribute attribute0 = new Attribute(\"\", 1290);\n JRip.NumericAntd jRip_NumericAntd0 = jRip0.new NumericAntd(attribute0);\n String string0 = jRip_NumericAntd0.getRevision();\n assertEquals(Double.NaN, jRip_NumericAntd0.getCover(), 0.01);\n assertEquals(3, jRip0.getFolds());\n assertEquals(Double.NaN, jRip_NumericAntd0.getSplitPoint(), 0.01);\n assertEquals(2.0, jRip0.getMinNo(), 0.01);\n assertEquals(Double.NaN, jRip_NumericAntd0.getAccu(), 0.01);\n assertTrue(jRip0.getCheckErrorRate());\n assertEquals(1L, jRip0.getSeed());\n assertEquals(Double.NaN, jRip_NumericAntd0.getAccuRate(), 0.01);\n assertEquals(0.0, jRip_NumericAntd0.getMaxInfoGain(), 0.01);\n assertFalse(jRip0.getDebug());\n assertEquals(2, jRip0.getOptimizations());\n assertEquals(Double.NaN, jRip_NumericAntd0.getAttrValue(), 0.01);\n assertEquals(\"8118\", string0);\n assertTrue(jRip0.getUsePruning());\n }", "title": "" }, { "docid": "f0e57a38388d729c930c61e06fbb4017", "score": "0.56890786", "text": "private static void collectCoverageInformation(OpTestCase testCase) {\n\tsingleOpTestCountPerClass.put(testCase.op().getClass(),\n\t\tsingleOpTestCountPerClass.get(testCase.op().getClass()) + 1);\n }", "title": "" }, { "docid": "8cdb0176d7891086563499f9773ffa7f", "score": "0.5684685", "text": "@Test(timeout = 4000)\n public void test18() throws Throwable {\n JRip jRip0 = new JRip();\n jRip0.setDebug(false);\n jRip0.getDebug();\n Attribute attribute0 = new Attribute(\"rOEBC,|Nf0wG!I,GR\");\n attribute0.copy(\"\");\n int int0 = jRip0.getFolds();\n assertEquals(3, int0);\n assertFalse(jRip0.getDebug());\n assertEquals(2, jRip0.getOptimizations());\n assertTrue(jRip0.getCheckErrorRate());\n assertEquals(1L, jRip0.getSeed());\n assertEquals(2.0, jRip0.getMinNo(), 0.01);\n assertTrue(jRip0.getUsePruning());\n }", "title": "" }, { "docid": "68428324945208deb29f187b46201c22", "score": "0.5666261", "text": "int getNoisySampleCount();", "title": "" }, { "docid": "8cac722882cc170b9174a4a2ec517002", "score": "0.5665788", "text": "@Test ( groups = { \"CHDiskCapacity\" })\n\tpublic void TC9908() throws Exception {\n\t\trun_test();\n\t}", "title": "" }, { "docid": "92c10e6c8e5c164421841e395bc2d36e", "score": "0.5665458", "text": "@Test(timeout = 4000)\n public void test61() throws Throwable {\n JRip jRip0 = new JRip();\n int int0 = 102;\n String[] stringArray0 = new String[7];\n stringArray0[0] = \"!<jJ:'Gy6kKI 2\";\n stringArray0[1] = \"!<jJ:'Gy6kKI 2\";\n stringArray0[2] = \"!<jJ:'Gy6kKI 2\";\n stringArray0[3] = \"!<jJ:'Gy6kKI 2\";\n stringArray0[4] = \"!<jJ:'Gy6kKI 2\";\n stringArray0[5] = \"!<jJ:'Gy6kKI 2\";\n stringArray0[6] = \"!<jJ:'Gy6kKI 2\";\n JRip.main(stringArray0);\n Utils.SMALL = (-1522.821059816662);\n FileSystemHandling.setPermissions((EvoSuiteFile) null, true, true, true);\n jRip0.setUsePruning(false);\n ArrayList<Attribute> arrayList0 = new ArrayList<Attribute>();\n Instances instances0 = new Instances(\"!<jJ:'Gy6kKI 2\", arrayList0, 102);\n FileSystemHandling.appendStringToFile((EvoSuiteFile) null, \"@data\");\n Instances instances1 = new Instances(instances0);\n Instances instances2 = new Instances(instances1);\n try { \n jRip0.rulesetForOneClass(1513.0, instances2, (-3556.065387276), 1.0);\n fail(\"Expecting exception: RuntimeException\");\n \n } catch(RuntimeException e) {\n //\n // Class index is negative (not set)!\n //\n verifyException(\"weka.core.Instances\", e);\n }\n }", "title": "" }, { "docid": "6d6494abf5472bb080e9fce66d1e509b", "score": "0.5651925", "text": "@Test(timeout = 4000)\n public void test09() throws Throwable {\n JRip jRip0 = new JRip();\n LinkedList<String> linkedList0 = new LinkedList<String>();\n linkedList0.add(\"\\nNo pruning: growing a rule ...\");\n Attribute attribute0 = new Attribute(\"!<jJ:'Gy6kK2\", linkedList0, 102);\n FileSystemHandling.appendStringToFile((EvoSuiteFile) null, \"tokenizer\");\n ArrayList<Attribute> arrayList0 = new ArrayList<Attribute>(102);\n attribute0.enumerateValues();\n Instances instances0 = new Instances(\"\", arrayList0, 0);\n CostMatrix costMatrix0 = new CostMatrix(1);\n Attribute attribute1 = new Attribute(\"VCJb&Rj:gpc+^HBo\", linkedList0, (-56));\n JRip.NominalAntd jRip_NominalAntd0 = jRip0.new NominalAntd(attribute1);\n InputMappedClassifier inputMappedClassifier0 = new InputMappedClassifier();\n inputMappedClassifier0.getModelHeader(instances0);\n Instances[] instancesArray0 = jRip_NominalAntd0.splitData(instances0, 4, 3);\n assertEquals(1, instancesArray0.length);\n \n String string0 = jRip_NominalAntd0.toString();\n assertEquals(Double.NaN, jRip_NominalAntd0.getCover(), 0.01);\n assertEquals(Double.NaN, jRip_NominalAntd0.getAttrValue(), 0.01);\n assertEquals(\"VCJb&Rj:gpc+^HBo = \\nNo pruning: growing a rule ...\", string0);\n assertEquals(2, jRip0.getOptimizations());\n assertEquals(2.0, jRip0.getMinNo(), 0.01);\n assertEquals(0.0, jRip_NominalAntd0.getMaxInfoGain(), 0.01);\n assertEquals(3, jRip0.getFolds());\n assertEquals(Double.NaN, jRip_NominalAntd0.getAccuRate(), 0.01);\n assertEquals(Double.NaN, jRip_NominalAntd0.getAccu(), 0.01);\n assertTrue(jRip0.getCheckErrorRate());\n assertTrue(jRip0.getUsePruning());\n assertEquals(1L, jRip0.getSeed());\n assertFalse(jRip0.getDebug());\n }", "title": "" }, { "docid": "20b79d0cd4b33e0a28b24a8437cb3bc0", "score": "0.56433046", "text": "public abstract int getAdditionalEntropyAmountForFinish();", "title": "" }, { "docid": "b6a3712763e15e5785566aabdf31bfeb", "score": "0.5619055", "text": "@Test(timeout = 4000)\n public void test097() throws Throwable {\n ResultMatrixHTML resultMatrixHTML0 = new ResultMatrixHTML();\n resultMatrixHTML0.doubleToString(0.0, 1561);\n resultMatrixHTML0.toStringMatrix();\n resultMatrixHTML0.m_PrintRowNames = false;\n resultMatrixHTML0.m_ShowStdDev = true;\n resultMatrixHTML0.getStdDev((-2388), 97);\n resultMatrixHTML0.getSignificanceWidth();\n resultMatrixHTML0.getSummaryTitle((-1256));\n resultMatrixHTML0.setRowName(0, \"Y\");\n resultMatrixHTML0.padString(\"Y\", 0, true);\n resultMatrixHTML0.toStringRanking();\n assertFalse(resultMatrixHTML0.getPrintRowNames());\n }", "title": "" }, { "docid": "5cf95ed1314f7a1d7297e1bc99eb80b8", "score": "0.5605346", "text": "@Test(timeout = 4000)\n public void test34() throws Throwable {\n JRip jRip0 = new JRip();\n String string0 = jRip0.toString();\n assertEquals(\"JRIP: No model built yet.\", string0);\n \n LinkedList<String> linkedList0 = new LinkedList<String>();\n Properties properties0 = new Properties();\n ProtectedProperties protectedProperties0 = new ProtectedProperties(properties0);\n Attribute attribute0 = new Attribute(\"1:n%C)K-b'BTX.Ml\", linkedList0, protectedProperties0);\n JRip.NumericAntd jRip_NumericAntd0 = jRip0.new NumericAntd(attribute0);\n jRip_NumericAntd0.getCover();\n double double0 = jRip_NumericAntd0.getCover();\n assertEquals(0.0, jRip_NumericAntd0.getMaxInfoGain(), 0.01);\n assertFalse(jRip0.getDebug());\n assertEquals(Double.NaN, jRip_NumericAntd0.getAttrValue(), 0.01);\n assertEquals(Double.NaN, double0, 0.01);\n assertEquals(Double.NaN, jRip_NumericAntd0.getAccuRate(), 0.01);\n assertTrue(jRip0.getCheckErrorRate());\n assertEquals(2, jRip0.getOptimizations());\n assertEquals(Double.NaN, jRip_NumericAntd0.getAccu(), 0.01);\n assertEquals(1L, jRip0.getSeed());\n assertTrue(jRip0.getUsePruning());\n assertEquals(2.0, jRip0.getMinNo(), 0.01);\n assertEquals(3, jRip0.getFolds());\n assertEquals(Double.NaN, jRip_NumericAntd0.getSplitPoint(), 0.01);\n }", "title": "" }, { "docid": "c991f0fbb0cc6a36fa8ca56d797d94d9", "score": "0.560221", "text": "@Test\n public void test18() throws Throwable {\n Discretize discretize0 = new Discretize();\n String string0 = discretize0.globalInfo();\n assertFalse(discretize0.getMakeBinary());\n assertEquals((-1.0), discretize0.getDesiredWeightOfInstancesPerInterval(), 0.01D);\n assertEquals(\"An instance filter that discretizes a range of numeric attributes in the dataset into nominal attributes. Discretization is by simple binning. Skips the class attribute if set.\", string0);\n assertEquals(10, discretize0.getBins());\n assertFalse(discretize0.getUseBinNumbers());\n }", "title": "" }, { "docid": "4a90d30b57648d2317b589f6dc897e25", "score": "0.5591648", "text": "public static float entropy2(String c,Examples ex,int property1,String x,int property2){\r\n\t\tfloat sum=0;\r\n\t\tfloat prob=0;\r\n\t\tfor(int i=0; i==Integer.parseInt(c) ;i++){\r\n\t\t\tprob=probability2(c,ex,property1,x,property2);\r\n\t\t\tsum+=prob*Math.log(prob)/Math.log(2);\r\n\t\t}\r\n\t\r\n\t\treturn -sum;\r\n\t\r\n\t}", "title": "" }, { "docid": "a1012f2b459c61569b55ded2f2c513cd", "score": "0.5583864", "text": "@Test\n public void test11() throws Throwable {\n Discretize discretize0 = new Discretize();\n discretize0.setFindNumBins(true);\n String[] stringArray0 = discretize0.getOptions();\n assertTrue(discretize0.getFindNumBins());\n }", "title": "" }, { "docid": "eda5790f36c4980869d2cdd02a088477", "score": "0.5579229", "text": "@Test\n public void testMiningExtraction() {\n // TODO: test MiningExtraction\n }", "title": "" }, { "docid": "35c1c7eba9604f64cf85b3ae55305a6c", "score": "0.55704397", "text": "@Test\n public void costTest() {\n // TODO: test cost\n }", "title": "" }, { "docid": "541b106a096e6ceb73b794cf823c60ee", "score": "0.55669034", "text": "@Test public void test_positive_sha256()\n {\n byte seed[] = {\n (byte)0xff, (byte)0xfd, (byte)0x12, (byte)0xf6, (byte)0x59,\n (byte)0xca, (byte)0xe6, (byte)0x34, (byte)0x89, (byte)0x32,\n (byte)0x79, (byte)0xe5, (byte)0x07, (byte)0x6d, (byte)0xde,\n (byte)0xc2, (byte)0xf0, (byte)0x6c, (byte)0x21, (byte)0x8f\n };\n byte expectedOut[] = {\n (byte)0x98, (byte)0xc1, (byte)0xa4, (byte)0xfc, (byte)0xb9,\n (byte)0x40, (byte)0x71, (byte)0x15, (byte)0x9b, (byte)0x17,\n (byte)0x6e, (byte)0xa7, (byte)0x01, (byte)0x1e, (byte)0xb6,\n (byte)0x48, (byte)0x57, (byte)0xca, (byte)0xe3, (byte)0xff,\n (byte)0x27, (byte)0x5a, (byte)0xb6, (byte)0x6f, (byte)0xa7,\n (byte)0x38, (byte)0xe8, (byte)0xcb, (byte)0xf7, (byte)0x7a,\n (byte)0x51, (byte)0xe7, (byte)0xd8, (byte)0xa2, (byte)0x17,\n (byte)0x48, (byte)0x0b, (byte)0x78, (byte)0x39, (byte)0x66,\n (byte)0x45, (byte)0x8a, (byte)0x44, (byte)0x59, (byte)0x0a,\n (byte)0xe8, (byte)0x7d, (byte)0x9a, (byte)0x49, (byte)0xd1,\n (byte)0x92, (byte)0xe3, (byte)0xae, (byte)0x7d, (byte)0xb2,\n (byte)0x57, (byte)0xf0, (byte)0xff, (byte)0x94, (byte)0xdd,\n (byte)0xc2, (byte)0xda, (byte)0x35, (byte)0x72, (byte)0x72,\n (byte)0xe5, (byte)0x67, (byte)0x9f, (byte)0x92, (byte)0xb7,\n (byte)0x67, (byte)0x7d, (byte)0x13, (byte)0x23, (byte)0x41,\n (byte)0xac, (byte)0xd2, (byte)0x55, (byte)0x44, (byte)0xd3,\n (byte)0xe6, (byte)0x21, (byte)0xcb, (byte)0xaa, (byte)0xeb,\n (byte)0x80, (byte)0x9d, (byte)0x09, (byte)0x5d, (byte)0x65,\n (byte)0xbb, (byte)0x72, (byte)0x9a, (byte)0x81, (byte)0xa5,\n (byte)0xd8, (byte)0x25, (byte)0x17, (byte)0xba, (byte)0x41,\n (byte)0xd2, (byte)0x52, (byte)0x3b, (byte)0xb2, (byte)0x3a,\n (byte)0x00, (byte)0xae\n };\n\n MGF1 mgf = new MGF1(sha256, 1, false, seed, 0, seed.length);\n byte out[] = new byte[expectedOut.length];\n int offset = 0;\n\n out[offset++] = (byte) mgf.read();\n out[offset++] = (byte) mgf.read();\n out[offset++] = (byte) mgf.read();\n mgf.read(out, offset, 4);\n offset += 4;\n out[offset++] = (byte) mgf.read();\n out[offset++] = (byte) mgf.read();\n out[offset++] = (byte) mgf.read();\n mgf.read(out, offset, 4);\n offset += 4;\n mgf.read(out, offset, out.length-offset);\n assertArrayEquals(expectedOut, out);\n }", "title": "" }, { "docid": "231acff727f5808de466eea68dcaa8f3", "score": "0.5557007", "text": "@Test(timeout = 4000)\n public void test13() throws Throwable {\n JRip jRip0 = new JRip();\n String string0 = jRip0.checkErrorRateTipText();\n assertFalse(jRip0.getDebug());\n assertEquals(\"Whether check for error rate >= 1/2 is included in stopping criterion.\", string0);\n assertEquals(3, jRip0.getFolds());\n assertEquals(1L, jRip0.getSeed());\n assertTrue(jRip0.getUsePruning());\n assertTrue(jRip0.getCheckErrorRate());\n assertEquals(2.0, jRip0.getMinNo(), 0.01);\n assertEquals(2, jRip0.getOptimizations());\n }", "title": "" }, { "docid": "c05893e54ae34b62a8afb5b5ee60fd55", "score": "0.5546074", "text": "@Override\n @Test\n public void testHahn1()\n throws IOException {\n try{\n super.testHahn1();\n fail(optimizer);\n } catch (ConvergenceException e){\n //expected for LU\n } catch (TooManyEvaluationsException e){\n //expected for QR\n }\n }", "title": "" }, { "docid": "96e5d8df99d919c6090dd1f975d06391", "score": "0.55455303", "text": "@Test\n public void test153() throws Throwable {\n double double0 = MathUtils.cosh((byte)0);\n }", "title": "" }, { "docid": "e80d82f02cb7300f80c074be5dd83d0a", "score": "0.55441946", "text": "@Test\n public void test16() throws Throwable {\n Discretize discretize0 = new Discretize(\"-NTAG\");\n String string0 = discretize0.useEqualFrequencyTipText();\n assertEquals(\"If set to true, equal-frequency binning will be used instead of equal-width binning.\", string0);\n assertFalse(discretize0.getMakeBinary());\n assertEquals((-1.0), discretize0.getDesiredWeightOfInstancesPerInterval(), 0.01D);\n assertEquals(10, discretize0.getBins());\n assertFalse(discretize0.getUseBinNumbers());\n }", "title": "" }, { "docid": "6abb1142e3a5a0462c294414cd984093", "score": "0.55437917", "text": "@Test(timeout = 4000)\n public void test096() throws Throwable {\n ResultMatrixLatex resultMatrixLatex0 = new ResultMatrixLatex();\n String[] stringArray0 = new String[6];\n stringArray0[0] = \"$circ$\";\n stringArray0[1] = \"(\";\n ResultMatrixHTML resultMatrixHTML0 = new ResultMatrixHTML();\n double double0 = resultMatrixHTML0.getStdDev(2, 3063);\n assertEquals(0.0, double0, 0.01);\n \n int int0 = resultMatrixHTML0.getSignificanceWidth();\n assertEquals(0, int0);\n \n String string0 = resultMatrixHTML0.getSummaryTitle(10);\n assertEquals(\"k\", string0);\n \n resultMatrixHTML0.setRowName(10, \"$circ$\");\n resultMatrixHTML0.setShowStdDev(false);\n ResultMatrixSignificance resultMatrixSignificance0 = new ResultMatrixSignificance();\n String string1 = resultMatrixSignificance0.toStringKey();\n assertEquals(\"Key:\\n(1) col0\\n\", string1);\n \n resultMatrixSignificance0.getDefaultShowStdDev();\n assertEquals(0, resultMatrixSignificance0.getDefaultColNameWidth());\n assertEquals(1, resultMatrixSignificance0.getVisibleRowCount());\n assertEquals(2, resultMatrixSignificance0.getDefaultStdDevPrec());\n assertFalse(resultMatrixSignificance0.getRemoveFilterName());\n }", "title": "" }, { "docid": "f8d931d3e7aa29e95e3f40c4ba9081a5", "score": "0.55307657", "text": "@Test\n public void testMean() {\n System.out.println(\"mean\");\n ChiSquareDistribution instance = new ChiSquareDistribution(20);\n instance.rand();\n assertEquals(20, instance.mean(), 1E-7);\n }", "title": "" }, { "docid": "62c77f15e20ed2f8077a7de811656135", "score": "0.5528465", "text": "@Test\n public void test143() throws Throwable {\n long long0 = MathUtils.binomialCoefficient((short)102, (short)1);\n }", "title": "" }, { "docid": "8a2b88bd08af9ac5d1702e130aca048e", "score": "0.5524859", "text": "@Test\r\n public void testGetSensorData() throws IOException {\r\n System.out.println(\"getSensorData\");\r\n SensorData sensorData = new SensorData(0.5d, 3d, 7.25d);\r\n \r\n byte[] expResult = {5, 63, -32, 0, 0, 0, 0, 0, 0, -122, 64, 8, 0, 0, 0, 0, 0, 0, 7, 64, 29, 0, 0, 0, 0, 0, 0, -120};\r\n ByteArrayOutputStream result = SensorData.getSensorData(sensorData);\r\n \r\n byte[] resultBytes = result.toByteArray();\r\n \r\n if(resultBytes.length != expResult.length)\r\n fail(\"The test case result had incorrect length\");\r\n else{\r\n for(int i = 0; i < resultBytes.length; i++)\r\n assertEquals(expResult[i], resultBytes[i]); \r\n }\r\n }", "title": "" }, { "docid": "0c4ccfc5211a169f444e7ca5762c7a0a", "score": "0.5519799", "text": "@Test(timeout = 4000)\n public void test63() throws Throwable {\n JRip jRip0 = new JRip();\n String[] stringArray0 = new String[7];\n stringArray0[1] = \"!<jJ:'Gy6kKI 2\";\n stringArray0[3] = \"!<jJ:'Gy6kKI 2\";\n JRip.main(stringArray0);\n Utils.SMALL = (-1522.821059816662);\n jRip0.setUsePruning(false);\n JRip jRip1 = new JRip();\n jRip1.setUsePruning(false);\n FileSystemHandling fileSystemHandling0 = new FileSystemHandling();\n ArrayList<Attribute> arrayList0 = new ArrayList<Attribute>();\n Attribute attribute0 = new Attribute(\"!<jJ:'Gy6kKI 2\", 91);\n arrayList0.add(attribute0);\n Instances instances0 = new Instances(stringArray0[6], arrayList0, 2);\n FileSystemHandling.appendStringToFile((EvoSuiteFile) null, \"\");\n FileSystemHandling.appendStringToFile((EvoSuiteFile) null, \"b!Va\");\n Instances instances1 = new Instances(instances0);\n Instances instances2 = new Instances(instances1);\n try { \n jRip1.rulesetForOneClass(2, instances0, 0, 2);\n fail(\"Expecting exception: RuntimeException\");\n \n } catch(RuntimeException e) {\n //\n // Class index is negative (not set)!\n //\n verifyException(\"weka.core.Instances\", e);\n }\n }", "title": "" }, { "docid": "ac90024a0a2b7a63bbacfb33fc725fd5", "score": "0.55148244", "text": "@Test(timeout = 4000)\n public void test16() throws Throwable {\n JRip jRip0 = new JRip();\n String string0 = jRip0.debugTipText();\n assertTrue(jRip0.getCheckErrorRate());\n assertEquals(1L, jRip0.getSeed());\n assertEquals(\"Whether debug information is output to the console.\", string0);\n assertFalse(jRip0.getDebug());\n assertEquals(3, jRip0.getFolds());\n assertEquals(2, jRip0.getOptimizations());\n assertEquals(2.0, jRip0.getMinNo(), 0.01);\n assertTrue(jRip0.getUsePruning());\n }", "title": "" }, { "docid": "3852b34f53c6d7b7139835b827c35092", "score": "0.55087054", "text": "@Test\n public void test137() throws Throwable {\n double double0 = MathUtils.binomialCoefficientDouble(0, 0);\n }", "title": "" }, { "docid": "36ed9833b1517dfaf2fc67af394ed5a6", "score": "0.55052346", "text": "@Test()\n\t\n\tpublic void sprint14_US1200_TC2529()\n\t{\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t}", "title": "" }, { "docid": "fbff86f31b4e90bb0dc698d9b6f817ae", "score": "0.55030423", "text": "@Test(timeout = 4000)\n public void test24() throws Throwable {\n JRip jRip0 = new JRip();\n Attribute attribute0 = new Attribute(\"weka.core.logging.Logger$Level\");\n JRip.NominalAntd jRip_NominalAntd0 = jRip0.new NominalAntd(attribute0);\n String string0 = jRip_NominalAntd0.getRevision();\n assertEquals(Double.NaN, jRip_NominalAntd0.getAccuRate(), 0.01);\n assertEquals(Double.NaN, jRip_NominalAntd0.getAccu(), 0.01);\n assertFalse(jRip0.getDebug());\n assertEquals(1L, jRip0.getSeed());\n assertTrue(jRip0.getUsePruning());\n assertEquals(\"8118\", string0);\n assertEquals(2, jRip0.getOptimizations());\n assertEquals(2.0, jRip0.getMinNo(), 0.01);\n assertTrue(jRip0.getCheckErrorRate());\n assertEquals(3, jRip0.getFolds());\n assertEquals(Double.NaN, jRip_NominalAntd0.getAttrValue(), 0.01);\n assertEquals(Double.NaN, jRip_NominalAntd0.getCover(), 0.01);\n assertEquals(0.0, jRip_NominalAntd0.getMaxInfoGain(), 0.01);\n }", "title": "" }, { "docid": "8626e480b092794c9622f5347daceafd", "score": "0.55029076", "text": "@Test\r\n @ScoringWeight(2)\r\n public void _78testCorrectness0() throws Throwable { checkCorrectness(0); }", "title": "" }, { "docid": "43d2f75c598afd0905b3bf66f3b5db20", "score": "0.54999465", "text": "@Ignore\n @Test\n public void testAllRecordingsWithLibSVM() throws Exception {\n List<Recording> trainList = recordingService.findAll();\n List<Gesture> gestures = gestureService.findAll();\n double pctCorrect = classifyAllRecordings(trainList, gestures, new LibSVM(), 19, 12);\n detailWriter.println(\"testAllRecordingsWithLogistic pctCorrect: \" + pctCorrect);\n System.out.println(\"testAllRecordingsWithLogistic pctCorrect: \" + pctCorrect); //46.875%\n\n }", "title": "" }, { "docid": "5f06c3bd6e189b3bf913af783613d27c", "score": "0.5499263", "text": "@Test\n public void testAllRecordingsWithJ48() throws Exception {\n List<Recording> trainList = recordingService.findAll();\n List<Gesture> gestures = gestureService.findAll();\n double pctCorrect = classifyAllRecordings(trainList, gestures, new J48(), 5, 18);\n detailWriter.println(\"testAllRecordingsWithJ48 pctCorrect: \" + pctCorrect);\n System.out.println(\"testAllRecordingsWithJ48 pctCorrect: \" + pctCorrect); //42.7083%\n }", "title": "" }, { "docid": "a90936bc3b96f15bed8efa24935e96cd", "score": "0.5498097", "text": "@Test(timeout = 4000)\n public void test58() throws Throwable {\n ArrayList<Attribute> arrayList0 = new ArrayList<Attribute>();\n Instances instances0 = new Instances(\"FyfPi~?m7-H\", arrayList0, 1);\n FileSystemHandling.shouldAllThrowIOExceptions();\n JRip jRip0 = new JRip();\n Utils.SMALL = (-1798.3428954705182);\n JRip.RipperRule jRip_RipperRule0 = jRip0.new RipperRule();\n jRip_RipperRule0.prune(instances0, true);\n jRip_RipperRule0.prune(instances0, true);\n assertTrue(jRip0.getUsePruning());\n assertEquals(1L, jRip0.getSeed());\n assertEquals(2.0, jRip0.getMinNo(), 0.01);\n assertTrue(jRip0.getCheckErrorRate());\n assertEquals(2, jRip0.getOptimizations());\n assertEquals(3, jRip0.getFolds());\n assertFalse(jRip0.getDebug());\n assertEquals((-1.0), jRip_RipperRule0.getConsequent(), 0.01);\n }", "title": "" }, { "docid": "8f0e04af16dcd88e22ac6bc50aee5777", "score": "0.54969954", "text": "@Test(timeout = 4000)\n public void test046() throws Throwable {\n ResultMatrixSignificance resultMatrixSignificance0 = new ResultMatrixSignificance();\n assertFalse(resultMatrixSignificance0.getShowAverage());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixSignificance0.significanceWidthTipText());\n assertFalse(resultMatrixSignificance0.getShowStdDev());\n assertTrue(resultMatrixSignificance0.getDefaultEnumerateColNames());\n assertEquals(2, resultMatrixSignificance0.getStdDevPrec());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixSignificance0.meanWidthTipText());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixSignificance0.stdDevWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getSignificanceWidth());\n assertTrue(resultMatrixSignificance0.getEnumerateColNames());\n assertEquals(1, resultMatrixSignificance0.getRowCount());\n assertEquals(\"Only outputs the significance indicators. Can be used for spotting patterns.\", resultMatrixSignificance0.globalInfo());\n assertEquals(0, resultMatrixSignificance0.getStdDevWidth());\n assertEquals(\"Significance only\", resultMatrixSignificance0.getDisplayName());\n assertFalse(resultMatrixSignificance0.getDefaultShowAverage());\n assertEquals(0, resultMatrixSignificance0.getDefaultCountWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultStdDevWidth());\n assertFalse(resultMatrixSignificance0.getRemoveFilterName());\n assertFalse(resultMatrixSignificance0.getDefaultEnumerateRowNames());\n assertFalse(resultMatrixSignificance0.getEnumerateRowNames());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateRowNamesTipText());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixSignificance0.showStdDevTipText());\n assertTrue(resultMatrixSignificance0.getDefaultPrintRowNames());\n assertEquals(1, resultMatrixSignificance0.getColCount());\n assertEquals(40, resultMatrixSignificance0.getRowNameWidth());\n assertEquals(2, resultMatrixSignificance0.getDefaultStdDevPrec());\n assertEquals(0, resultMatrixSignificance0.getDefaultSignificanceWidth());\n assertFalse(resultMatrixSignificance0.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixSignificance0.getDefaultColNameWidth());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixSignificance0.rowNameWidthTipText());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixSignificance0.meanPrecTipText());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixSignificance0.printRowNamesTipText());\n assertEquals(1, resultMatrixSignificance0.getVisibleRowCount());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixSignificance0.countWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getCountWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixSignificance0.colNameWidthTipText());\n assertFalse(resultMatrixSignificance0.getDefaultPrintColNames());\n assertTrue(resultMatrixSignificance0.getPrintRowNames());\n assertEquals(1, resultMatrixSignificance0.getVisibleColCount());\n assertEquals(2, resultMatrixSignificance0.getDefaultMeanPrec());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixSignificance0.showAverageTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateColNamesTipText());\n assertEquals(2, resultMatrixSignificance0.getMeanPrec());\n assertEquals(0, resultMatrixSignificance0.getColNameWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixSignificance0.printColNamesTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixSignificance0.stdDevPrecTipText());\n assertFalse(resultMatrixSignificance0.getDefaultShowStdDev());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixSignificance0.removeFilterNameTipText());\n assertEquals(40, resultMatrixSignificance0.getDefaultRowNameWidth());\n assertFalse(resultMatrixSignificance0.getPrintColNames());\n assertEquals(0, resultMatrixSignificance0.getMeanWidth());\n assertNotNull(resultMatrixSignificance0);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n \n String string0 = resultMatrixSignificance0.padString(\"::cG3]6y073E$\", 2);\n assertFalse(resultMatrixSignificance0.getShowAverage());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixSignificance0.significanceWidthTipText());\n assertFalse(resultMatrixSignificance0.getShowStdDev());\n assertTrue(resultMatrixSignificance0.getDefaultEnumerateColNames());\n assertEquals(2, resultMatrixSignificance0.getStdDevPrec());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixSignificance0.meanWidthTipText());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixSignificance0.stdDevWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getSignificanceWidth());\n assertTrue(resultMatrixSignificance0.getEnumerateColNames());\n assertEquals(1, resultMatrixSignificance0.getRowCount());\n assertEquals(\"Only outputs the significance indicators. Can be used for spotting patterns.\", resultMatrixSignificance0.globalInfo());\n assertEquals(0, resultMatrixSignificance0.getStdDevWidth());\n assertEquals(\"Significance only\", resultMatrixSignificance0.getDisplayName());\n assertFalse(resultMatrixSignificance0.getDefaultShowAverage());\n assertEquals(0, resultMatrixSignificance0.getDefaultCountWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultStdDevWidth());\n assertFalse(resultMatrixSignificance0.getRemoveFilterName());\n assertFalse(resultMatrixSignificance0.getDefaultEnumerateRowNames());\n assertFalse(resultMatrixSignificance0.getEnumerateRowNames());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateRowNamesTipText());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixSignificance0.showStdDevTipText());\n assertTrue(resultMatrixSignificance0.getDefaultPrintRowNames());\n assertEquals(1, resultMatrixSignificance0.getColCount());\n assertEquals(40, resultMatrixSignificance0.getRowNameWidth());\n assertEquals(2, resultMatrixSignificance0.getDefaultStdDevPrec());\n assertEquals(0, resultMatrixSignificance0.getDefaultSignificanceWidth());\n assertFalse(resultMatrixSignificance0.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixSignificance0.getDefaultColNameWidth());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixSignificance0.rowNameWidthTipText());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixSignificance0.meanPrecTipText());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixSignificance0.printRowNamesTipText());\n assertEquals(1, resultMatrixSignificance0.getVisibleRowCount());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixSignificance0.countWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getCountWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixSignificance0.colNameWidthTipText());\n assertFalse(resultMatrixSignificance0.getDefaultPrintColNames());\n assertTrue(resultMatrixSignificance0.getPrintRowNames());\n assertEquals(1, resultMatrixSignificance0.getVisibleColCount());\n assertEquals(2, resultMatrixSignificance0.getDefaultMeanPrec());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixSignificance0.showAverageTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateColNamesTipText());\n assertEquals(2, resultMatrixSignificance0.getMeanPrec());\n assertEquals(0, resultMatrixSignificance0.getColNameWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixSignificance0.printColNamesTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixSignificance0.stdDevPrecTipText());\n assertFalse(resultMatrixSignificance0.getDefaultShowStdDev());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixSignificance0.removeFilterNameTipText());\n assertEquals(40, resultMatrixSignificance0.getDefaultRowNameWidth());\n assertFalse(resultMatrixSignificance0.getPrintColNames());\n assertEquals(0, resultMatrixSignificance0.getMeanWidth());\n assertNotNull(string0);\n assertEquals(\"::\", string0);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n \n resultMatrixSignificance0.clear();\n assertFalse(resultMatrixSignificance0.getShowAverage());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixSignificance0.significanceWidthTipText());\n assertFalse(resultMatrixSignificance0.getShowStdDev());\n assertTrue(resultMatrixSignificance0.getDefaultEnumerateColNames());\n assertEquals(2, resultMatrixSignificance0.getStdDevPrec());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixSignificance0.meanWidthTipText());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixSignificance0.stdDevWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getSignificanceWidth());\n assertTrue(resultMatrixSignificance0.getEnumerateColNames());\n assertEquals(1, resultMatrixSignificance0.getRowCount());\n assertEquals(\"Only outputs the significance indicators. Can be used for spotting patterns.\", resultMatrixSignificance0.globalInfo());\n assertEquals(0, resultMatrixSignificance0.getStdDevWidth());\n assertEquals(\"Significance only\", resultMatrixSignificance0.getDisplayName());\n assertFalse(resultMatrixSignificance0.getDefaultShowAverage());\n assertEquals(0, resultMatrixSignificance0.getDefaultCountWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultStdDevWidth());\n assertFalse(resultMatrixSignificance0.getRemoveFilterName());\n assertFalse(resultMatrixSignificance0.getDefaultEnumerateRowNames());\n assertFalse(resultMatrixSignificance0.getEnumerateRowNames());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateRowNamesTipText());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixSignificance0.showStdDevTipText());\n assertTrue(resultMatrixSignificance0.getDefaultPrintRowNames());\n assertEquals(1, resultMatrixSignificance0.getColCount());\n assertEquals(40, resultMatrixSignificance0.getRowNameWidth());\n assertEquals(2, resultMatrixSignificance0.getDefaultStdDevPrec());\n assertEquals(0, resultMatrixSignificance0.getDefaultSignificanceWidth());\n assertFalse(resultMatrixSignificance0.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixSignificance0.getDefaultColNameWidth());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixSignificance0.rowNameWidthTipText());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixSignificance0.meanPrecTipText());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixSignificance0.printRowNamesTipText());\n assertEquals(1, resultMatrixSignificance0.getVisibleRowCount());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixSignificance0.countWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getCountWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixSignificance0.colNameWidthTipText());\n assertFalse(resultMatrixSignificance0.getDefaultPrintColNames());\n assertTrue(resultMatrixSignificance0.getPrintRowNames());\n assertEquals(1, resultMatrixSignificance0.getVisibleColCount());\n assertEquals(2, resultMatrixSignificance0.getDefaultMeanPrec());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixSignificance0.showAverageTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateColNamesTipText());\n assertEquals(2, resultMatrixSignificance0.getMeanPrec());\n assertEquals(0, resultMatrixSignificance0.getColNameWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixSignificance0.printColNamesTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixSignificance0.stdDevPrecTipText());\n assertFalse(resultMatrixSignificance0.getDefaultShowStdDev());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixSignificance0.removeFilterNameTipText());\n assertEquals(40, resultMatrixSignificance0.getDefaultRowNameWidth());\n assertFalse(resultMatrixSignificance0.getPrintColNames());\n assertEquals(0, resultMatrixSignificance0.getMeanWidth());\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n \n resultMatrixSignificance0.m_StdDevWidth = 2;\n assertFalse(resultMatrixSignificance0.getShowAverage());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixSignificance0.significanceWidthTipText());\n assertFalse(resultMatrixSignificance0.getShowStdDev());\n assertTrue(resultMatrixSignificance0.getDefaultEnumerateColNames());\n assertEquals(2, resultMatrixSignificance0.getStdDevPrec());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixSignificance0.meanWidthTipText());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixSignificance0.stdDevWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getSignificanceWidth());\n assertTrue(resultMatrixSignificance0.getEnumerateColNames());\n assertEquals(1, resultMatrixSignificance0.getRowCount());\n assertEquals(\"Only outputs the significance indicators. Can be used for spotting patterns.\", resultMatrixSignificance0.globalInfo());\n assertEquals(\"Significance only\", resultMatrixSignificance0.getDisplayName());\n assertFalse(resultMatrixSignificance0.getDefaultShowAverage());\n assertEquals(0, resultMatrixSignificance0.getDefaultCountWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultStdDevWidth());\n assertFalse(resultMatrixSignificance0.getRemoveFilterName());\n assertFalse(resultMatrixSignificance0.getDefaultEnumerateRowNames());\n assertFalse(resultMatrixSignificance0.getEnumerateRowNames());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateRowNamesTipText());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixSignificance0.showStdDevTipText());\n assertTrue(resultMatrixSignificance0.getDefaultPrintRowNames());\n assertEquals(1, resultMatrixSignificance0.getColCount());\n assertEquals(40, resultMatrixSignificance0.getRowNameWidth());\n assertEquals(2, resultMatrixSignificance0.getDefaultStdDevPrec());\n assertEquals(0, resultMatrixSignificance0.getDefaultSignificanceWidth());\n assertFalse(resultMatrixSignificance0.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixSignificance0.getDefaultColNameWidth());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixSignificance0.rowNameWidthTipText());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixSignificance0.meanPrecTipText());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixSignificance0.printRowNamesTipText());\n assertEquals(1, resultMatrixSignificance0.getVisibleRowCount());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixSignificance0.countWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getCountWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixSignificance0.colNameWidthTipText());\n assertFalse(resultMatrixSignificance0.getDefaultPrintColNames());\n assertTrue(resultMatrixSignificance0.getPrintRowNames());\n assertEquals(1, resultMatrixSignificance0.getVisibleColCount());\n assertEquals(2, resultMatrixSignificance0.getDefaultMeanPrec());\n assertEquals(2, resultMatrixSignificance0.getStdDevWidth());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixSignificance0.showAverageTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateColNamesTipText());\n assertEquals(2, resultMatrixSignificance0.getMeanPrec());\n assertEquals(0, resultMatrixSignificance0.getColNameWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixSignificance0.printColNamesTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixSignificance0.stdDevPrecTipText());\n assertFalse(resultMatrixSignificance0.getDefaultShowStdDev());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixSignificance0.removeFilterNameTipText());\n assertEquals(40, resultMatrixSignificance0.getDefaultRowNameWidth());\n assertFalse(resultMatrixSignificance0.getPrintColNames());\n assertEquals(0, resultMatrixSignificance0.getMeanWidth());\n \n resultMatrixSignificance0.m_PrintColNames = true;\n assertFalse(resultMatrixSignificance0.getShowAverage());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixSignificance0.significanceWidthTipText());\n assertFalse(resultMatrixSignificance0.getShowStdDev());\n assertTrue(resultMatrixSignificance0.getDefaultEnumerateColNames());\n assertEquals(2, resultMatrixSignificance0.getStdDevPrec());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixSignificance0.meanWidthTipText());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixSignificance0.stdDevWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getSignificanceWidth());\n assertTrue(resultMatrixSignificance0.getEnumerateColNames());\n assertEquals(1, resultMatrixSignificance0.getRowCount());\n assertEquals(\"Only outputs the significance indicators. Can be used for spotting patterns.\", resultMatrixSignificance0.globalInfo());\n assertEquals(\"Significance only\", resultMatrixSignificance0.getDisplayName());\n assertFalse(resultMatrixSignificance0.getDefaultShowAverage());\n assertEquals(0, resultMatrixSignificance0.getDefaultCountWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultStdDevWidth());\n assertFalse(resultMatrixSignificance0.getRemoveFilterName());\n assertFalse(resultMatrixSignificance0.getDefaultEnumerateRowNames());\n assertFalse(resultMatrixSignificance0.getEnumerateRowNames());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateRowNamesTipText());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixSignificance0.showStdDevTipText());\n assertTrue(resultMatrixSignificance0.getDefaultPrintRowNames());\n assertEquals(1, resultMatrixSignificance0.getColCount());\n assertEquals(40, resultMatrixSignificance0.getRowNameWidth());\n assertEquals(2, resultMatrixSignificance0.getDefaultStdDevPrec());\n assertEquals(0, resultMatrixSignificance0.getDefaultSignificanceWidth());\n assertFalse(resultMatrixSignificance0.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixSignificance0.getDefaultColNameWidth());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixSignificance0.rowNameWidthTipText());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixSignificance0.meanPrecTipText());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixSignificance0.printRowNamesTipText());\n assertEquals(1, resultMatrixSignificance0.getVisibleRowCount());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixSignificance0.countWidthTipText());\n assertTrue(resultMatrixSignificance0.getPrintColNames());\n assertEquals(0, resultMatrixSignificance0.getCountWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixSignificance0.colNameWidthTipText());\n assertFalse(resultMatrixSignificance0.getDefaultPrintColNames());\n assertTrue(resultMatrixSignificance0.getPrintRowNames());\n assertEquals(1, resultMatrixSignificance0.getVisibleColCount());\n assertEquals(2, resultMatrixSignificance0.getDefaultMeanPrec());\n assertEquals(2, resultMatrixSignificance0.getStdDevWidth());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixSignificance0.showAverageTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateColNamesTipText());\n assertEquals(2, resultMatrixSignificance0.getMeanPrec());\n assertEquals(0, resultMatrixSignificance0.getColNameWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixSignificance0.printColNamesTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixSignificance0.stdDevPrecTipText());\n assertFalse(resultMatrixSignificance0.getDefaultShowStdDev());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixSignificance0.removeFilterNameTipText());\n assertEquals(40, resultMatrixSignificance0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixSignificance0.getMeanWidth());\n \n String string1 = resultMatrixSignificance0.getRevision();\n assertFalse(resultMatrixSignificance0.getShowAverage());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixSignificance0.significanceWidthTipText());\n assertFalse(resultMatrixSignificance0.getShowStdDev());\n assertTrue(resultMatrixSignificance0.getDefaultEnumerateColNames());\n assertEquals(2, resultMatrixSignificance0.getStdDevPrec());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixSignificance0.meanWidthTipText());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixSignificance0.stdDevWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getSignificanceWidth());\n assertTrue(resultMatrixSignificance0.getEnumerateColNames());\n assertEquals(1, resultMatrixSignificance0.getRowCount());\n assertEquals(\"Only outputs the significance indicators. Can be used for spotting patterns.\", resultMatrixSignificance0.globalInfo());\n assertEquals(\"Significance only\", resultMatrixSignificance0.getDisplayName());\n assertFalse(resultMatrixSignificance0.getDefaultShowAverage());\n assertEquals(0, resultMatrixSignificance0.getDefaultCountWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultStdDevWidth());\n assertFalse(resultMatrixSignificance0.getRemoveFilterName());\n assertFalse(resultMatrixSignificance0.getDefaultEnumerateRowNames());\n assertFalse(resultMatrixSignificance0.getEnumerateRowNames());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateRowNamesTipText());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixSignificance0.showStdDevTipText());\n assertTrue(resultMatrixSignificance0.getDefaultPrintRowNames());\n assertEquals(1, resultMatrixSignificance0.getColCount());\n assertEquals(40, resultMatrixSignificance0.getRowNameWidth());\n assertEquals(2, resultMatrixSignificance0.getDefaultStdDevPrec());\n assertEquals(0, resultMatrixSignificance0.getDefaultSignificanceWidth());\n assertFalse(resultMatrixSignificance0.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixSignificance0.getDefaultColNameWidth());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixSignificance0.rowNameWidthTipText());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixSignificance0.meanPrecTipText());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixSignificance0.printRowNamesTipText());\n assertEquals(1, resultMatrixSignificance0.getVisibleRowCount());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixSignificance0.countWidthTipText());\n assertTrue(resultMatrixSignificance0.getPrintColNames());\n assertEquals(0, resultMatrixSignificance0.getCountWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixSignificance0.colNameWidthTipText());\n assertFalse(resultMatrixSignificance0.getDefaultPrintColNames());\n assertTrue(resultMatrixSignificance0.getPrintRowNames());\n assertEquals(1, resultMatrixSignificance0.getVisibleColCount());\n assertEquals(2, resultMatrixSignificance0.getDefaultMeanPrec());\n assertEquals(2, resultMatrixSignificance0.getStdDevWidth());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixSignificance0.showAverageTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateColNamesTipText());\n assertEquals(2, resultMatrixSignificance0.getMeanPrec());\n assertEquals(0, resultMatrixSignificance0.getColNameWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixSignificance0.printColNamesTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixSignificance0.stdDevPrecTipText());\n assertFalse(resultMatrixSignificance0.getDefaultShowStdDev());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixSignificance0.removeFilterNameTipText());\n assertEquals(40, resultMatrixSignificance0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixSignificance0.getMeanWidth());\n assertFalse(string1.equals((Object)string0));\n assertNotNull(string1);\n assertEquals(\"8034\", string1);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n \n int[] intArray0 = resultMatrixSignificance0.getColOrder();\n assertFalse(resultMatrixSignificance0.getShowAverage());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixSignificance0.significanceWidthTipText());\n assertFalse(resultMatrixSignificance0.getShowStdDev());\n assertTrue(resultMatrixSignificance0.getDefaultEnumerateColNames());\n assertEquals(2, resultMatrixSignificance0.getStdDevPrec());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixSignificance0.meanWidthTipText());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixSignificance0.stdDevWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getSignificanceWidth());\n assertTrue(resultMatrixSignificance0.getEnumerateColNames());\n assertEquals(1, resultMatrixSignificance0.getRowCount());\n assertEquals(\"Only outputs the significance indicators. Can be used for spotting patterns.\", resultMatrixSignificance0.globalInfo());\n assertEquals(\"Significance only\", resultMatrixSignificance0.getDisplayName());\n assertFalse(resultMatrixSignificance0.getDefaultShowAverage());\n assertEquals(0, resultMatrixSignificance0.getDefaultCountWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultStdDevWidth());\n assertFalse(resultMatrixSignificance0.getRemoveFilterName());\n assertFalse(resultMatrixSignificance0.getDefaultEnumerateRowNames());\n assertFalse(resultMatrixSignificance0.getEnumerateRowNames());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateRowNamesTipText());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixSignificance0.showStdDevTipText());\n assertTrue(resultMatrixSignificance0.getDefaultPrintRowNames());\n assertEquals(1, resultMatrixSignificance0.getColCount());\n assertEquals(40, resultMatrixSignificance0.getRowNameWidth());\n assertEquals(2, resultMatrixSignificance0.getDefaultStdDevPrec());\n assertEquals(0, resultMatrixSignificance0.getDefaultSignificanceWidth());\n assertFalse(resultMatrixSignificance0.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixSignificance0.getDefaultColNameWidth());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixSignificance0.rowNameWidthTipText());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixSignificance0.meanPrecTipText());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixSignificance0.printRowNamesTipText());\n assertEquals(1, resultMatrixSignificance0.getVisibleRowCount());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixSignificance0.countWidthTipText());\n assertTrue(resultMatrixSignificance0.getPrintColNames());\n assertEquals(0, resultMatrixSignificance0.getCountWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixSignificance0.colNameWidthTipText());\n assertFalse(resultMatrixSignificance0.getDefaultPrintColNames());\n assertTrue(resultMatrixSignificance0.getPrintRowNames());\n assertEquals(1, resultMatrixSignificance0.getVisibleColCount());\n assertEquals(2, resultMatrixSignificance0.getDefaultMeanPrec());\n assertEquals(2, resultMatrixSignificance0.getStdDevWidth());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixSignificance0.showAverageTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateColNamesTipText());\n assertEquals(2, resultMatrixSignificance0.getMeanPrec());\n assertEquals(0, resultMatrixSignificance0.getColNameWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixSignificance0.printColNamesTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixSignificance0.stdDevPrecTipText());\n assertFalse(resultMatrixSignificance0.getDefaultShowStdDev());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixSignificance0.removeFilterNameTipText());\n assertEquals(40, resultMatrixSignificance0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixSignificance0.getMeanWidth());\n assertNull(intArray0);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n \n String string2 = resultMatrixSignificance0.meanPrecTipText();\n assertFalse(resultMatrixSignificance0.getShowAverage());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixSignificance0.significanceWidthTipText());\n assertFalse(resultMatrixSignificance0.getShowStdDev());\n assertTrue(resultMatrixSignificance0.getDefaultEnumerateColNames());\n assertEquals(2, resultMatrixSignificance0.getStdDevPrec());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixSignificance0.meanWidthTipText());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixSignificance0.stdDevWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getSignificanceWidth());\n assertTrue(resultMatrixSignificance0.getEnumerateColNames());\n assertEquals(1, resultMatrixSignificance0.getRowCount());\n assertEquals(\"Only outputs the significance indicators. Can be used for spotting patterns.\", resultMatrixSignificance0.globalInfo());\n assertEquals(\"Significance only\", resultMatrixSignificance0.getDisplayName());\n assertFalse(resultMatrixSignificance0.getDefaultShowAverage());\n assertEquals(0, resultMatrixSignificance0.getDefaultCountWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultStdDevWidth());\n assertFalse(resultMatrixSignificance0.getRemoveFilterName());\n assertFalse(resultMatrixSignificance0.getDefaultEnumerateRowNames());\n assertFalse(resultMatrixSignificance0.getEnumerateRowNames());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateRowNamesTipText());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixSignificance0.showStdDevTipText());\n assertTrue(resultMatrixSignificance0.getDefaultPrintRowNames());\n assertEquals(1, resultMatrixSignificance0.getColCount());\n assertEquals(40, resultMatrixSignificance0.getRowNameWidth());\n assertEquals(2, resultMatrixSignificance0.getDefaultStdDevPrec());\n assertEquals(0, resultMatrixSignificance0.getDefaultSignificanceWidth());\n assertFalse(resultMatrixSignificance0.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixSignificance0.getDefaultColNameWidth());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixSignificance0.rowNameWidthTipText());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixSignificance0.meanPrecTipText());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixSignificance0.printRowNamesTipText());\n assertEquals(1, resultMatrixSignificance0.getVisibleRowCount());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixSignificance0.countWidthTipText());\n assertTrue(resultMatrixSignificance0.getPrintColNames());\n assertEquals(0, resultMatrixSignificance0.getCountWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixSignificance0.colNameWidthTipText());\n assertFalse(resultMatrixSignificance0.getDefaultPrintColNames());\n assertTrue(resultMatrixSignificance0.getPrintRowNames());\n assertEquals(1, resultMatrixSignificance0.getVisibleColCount());\n assertEquals(2, resultMatrixSignificance0.getDefaultMeanPrec());\n assertEquals(2, resultMatrixSignificance0.getStdDevWidth());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixSignificance0.showAverageTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateColNamesTipText());\n assertEquals(2, resultMatrixSignificance0.getMeanPrec());\n assertEquals(0, resultMatrixSignificance0.getColNameWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixSignificance0.printColNamesTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixSignificance0.stdDevPrecTipText());\n assertFalse(resultMatrixSignificance0.getDefaultShowStdDev());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixSignificance0.removeFilterNameTipText());\n assertEquals(40, resultMatrixSignificance0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixSignificance0.getMeanWidth());\n assertFalse(string2.equals((Object)string1));\n assertFalse(string2.equals((Object)string0));\n assertNotNull(string2);\n assertEquals(\"The number of decimals after the decimal point for the mean.\", string2);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n \n // Undeclared exception!\n try { \n resultMatrixSignificance0.toStringHeader();\n fail(\"Expecting exception: ArrayIndexOutOfBoundsException\");\n \n } catch(ArrayIndexOutOfBoundsException e) {\n //\n // 0\n //\n verifyException(\"weka.experiment.ResultMatrix\", e);\n }\n }", "title": "" }, { "docid": "0cfd0a78dd6a87d6742f262bf410d636", "score": "0.5490137", "text": "public void testGetMeasurementPoints() {\n\t\t\n\t\t\n\t\t\n\t\t\n\t}", "title": "" }, { "docid": "f27f296b481a84a1b5323b0a5d61eedb", "score": "0.54778063", "text": "public abstract int getAdditionalEntropyAmountForBegin();", "title": "" }, { "docid": "285a001efcf8fc826b79d7a64e62c33c", "score": "0.5476058", "text": "@Test\n public void reducingSate() {\n }", "title": "" }, { "docid": "4960c2e392f5518889fdd05fb1ee4314", "score": "0.547579", "text": "@Test(timeout = 4000)\n public void test080() throws Throwable {\n ResultMatrixSignificance resultMatrixSignificance0 = new ResultMatrixSignificance();\n ResultMatrixSignificance resultMatrixSignificance1 = new ResultMatrixSignificance(resultMatrixSignificance0);\n resultMatrixSignificance1.setStdDev(0, 1, 1314);\n resultMatrixSignificance1.getRevision();\n assertEquals(0, resultMatrixSignificance1.getStdDevWidth());\n assertEquals(40, resultMatrixSignificance1.getRowNameWidth());\n assertTrue(resultMatrixSignificance1.getPrintRowNames());\n assertEquals(0, resultMatrixSignificance1.getSignificanceWidth());\n assertEquals(2, resultMatrixSignificance1.getStdDevPrec());\n assertTrue(resultMatrixSignificance1.getEnumerateColNames());\n assertEquals(0, resultMatrixSignificance1.getMeanWidth());\n \n resultMatrixSignificance0.setCount(1314, 0);\n assertEquals(0, resultMatrixSignificance0.getColNameWidth());\n assertEquals(1, resultMatrixSignificance0.getColCount());\n }", "title": "" }, { "docid": "b97f74141e6455f79e4eaa8ca7c3fca4", "score": "0.5471719", "text": "@Test(timeout = 4000)\n public void test28() throws Throwable {\n JRip jRip0 = new JRip();\n String string0 = jRip0.seedTipText();\n assertEquals(2.0, jRip0.getMinNo(), 0.01);\n assertEquals(3, jRip0.getFolds());\n assertEquals(1L, jRip0.getSeed());\n assertFalse(jRip0.getDebug());\n assertTrue(jRip0.getUsePruning());\n assertTrue(jRip0.getCheckErrorRate());\n assertEquals(\"The seed used for randomizing the data.\", string0);\n assertEquals(2, jRip0.getOptimizations());\n }", "title": "" }, { "docid": "4c353f5f2670a5e713da9a8ab56e99ad", "score": "0.54702437", "text": "private double calcEntropy (Instances data)\r\n\t{\t\r\n\t\tdouble entropy = 0;\r\n\t\tint firstClassSize = 0;\r\n\t\tint secondClassSize = 0;\r\n\t\t\r\n\t\tfor (int i = 0; i < data.size(); i++)\r\n\t\t{\r\n\t\t\tif (data.instance(i).classValue() == 0)\r\n\t\t\t\tfirstClassSize++;\r\n\t\t\telse secondClassSize++;\r\n\t\t}\r\n\t\t\r\n\t\tif (firstClassSize == 0 | secondClassSize == 0)\treturn 0;\r\n\t\t\r\n\t\tentropy -= (double)firstClassSize/data.size()*Math.log((double)firstClassSize/data.size());\r\n\t\tentropy -= (double)secondClassSize/data.size()*Math.log((double)secondClassSize/data.size());\t\t\r\n\t\t\r\n\t\treturn entropy;\r\n\t}", "title": "" }, { "docid": "e0c7924b17a6e92ed92e07138363a568", "score": "0.5466373", "text": "@Test\n @Ignore(\"for profiling\")\n public void test_large_cases_just_running_them() {\n for (int n = 11; n < 16; n++) {\n numberOfSolutionsFor(n, n);\n }\n }", "title": "" }, { "docid": "3cb558b3f313f127cdfeface981ef3a8", "score": "0.5457121", "text": "@Test\n public void testAscertainedJC69Likelihood() throws Exception {\n Alignment data = BEASTTestCase.getAscertainedAlignment();\n Tree tree = BEASTTestCase.getTree(data);\n\n Frequencies freqs = new Frequencies();\n freqs.initByName(\"data\", data,\n \"estimate\", false);\n\n HKY hky = new HKY();\n hky.initByName(\"kappa\", \"1.0\", \"frequencies\", freqs);\n\n SiteModel siteModel = new SiteModel();\n siteModel.initByName(\"mutationRate\", \"1.0\", \"gammaCategoryCount\", 1, \"substModel\", hky);\n\n TreeLikelihood likelihood = newTreeLikelihood();\n likelihood.initByName(\"data\", data, \"tree\", tree, \"siteModel\", siteModel);\n\n double logP = 0;\n logP = likelihood.calculateLogP();\n // the following number comes from Beast 1.6 \n assertEquals(logP, -737.7140695360017, BEASTTestCase.PRECISION);\n }", "title": "" }, { "docid": "a05bbafc880c2c7f2eee5661afb86b2d", "score": "0.5456934", "text": "@Test(timeout = 4000)\n public void test05() throws Throwable {\n JRip jRip0 = new JRip();\n String string0 = jRip0.getRevision();\n assertEquals(1L, jRip0.getSeed());\n assertTrue(jRip0.getCheckErrorRate());\n assertTrue(jRip0.getUsePruning());\n assertEquals(2, jRip0.getOptimizations());\n assertEquals(3, jRip0.getFolds());\n assertEquals(\"8118\", string0);\n assertFalse(jRip0.getDebug());\n assertEquals(2.0, jRip0.getMinNo(), 0.01);\n }", "title": "" }, { "docid": "d5b7713fdfa862f864911e104f8fa7e9", "score": "0.545463", "text": "@Test\n public void test106() throws Throwable {\n byte byte0 = MathUtils.indicator((byte)61);\n }", "title": "" }, { "docid": "75f79200524aaee27104a1218ecbbe97", "score": "0.54522115", "text": "@Test public void test_positive_sha1()\n {\n byte seed[] = {\n (byte)0xaa, (byte)0xfd, (byte)0x12, (byte)0xf6, (byte)0x59,\n (byte)0xca, (byte)0xe6, (byte)0x34, (byte)0x89, (byte)0xb4,\n (byte)0x79, (byte)0xe5, (byte)0x07, (byte)0x6d, (byte)0xde,\n (byte)0xc2, (byte)0xf0, (byte)0x6c, (byte)0xb5, (byte)0x8f\n };\n byte expectedOut[] = {\n (byte)0x06, (byte)0xe1, (byte)0xde, (byte)0xb2, (byte)0x36,\n (byte)0x9a, (byte)0xa5, (byte)0xa5, (byte)0xc7, (byte)0x07,\n (byte)0xd8, (byte)0x2c, (byte)0x8e, (byte)0x4e, (byte)0x93,\n (byte)0x24, (byte)0x8a, (byte)0xc7, (byte)0x83, (byte)0xde,\n (byte)0xe0, (byte)0xb2, (byte)0xc0, (byte)0x46, (byte)0x26,\n (byte)0xf5, (byte)0xaf, (byte)0xf9, (byte)0x3e, (byte)0xdc,\n (byte)0xfb, (byte)0x25, (byte)0xc9, (byte)0xc2, (byte)0xb3,\n (byte)0xff, (byte)0x8a, (byte)0xe1, (byte)0x0e, (byte)0x83,\n (byte)0x9a, (byte)0x2d, (byte)0xdb, (byte)0x4c, (byte)0xdc,\n (byte)0xfe, (byte)0x4f, (byte)0xf4, (byte)0x77, (byte)0x28,\n (byte)0xb4, (byte)0xa1, (byte)0xb7, (byte)0xc1, (byte)0x36,\n (byte)0x2b, (byte)0xaa, (byte)0xd2, (byte)0x9a, (byte)0xb4,\n (byte)0x8d, (byte)0x28, (byte)0x69, (byte)0xd5, (byte)0x02,\n (byte)0x41, (byte)0x21, (byte)0x43, (byte)0x58, (byte)0x11,\n (byte)0x59, (byte)0x1b, (byte)0xe3, (byte)0x92, (byte)0xf9,\n (byte)0x82, (byte)0xfb, (byte)0x3e, (byte)0x87, (byte)0xd0,\n (byte)0x95, (byte)0xae, (byte)0xb4, (byte)0x04, (byte)0x48,\n (byte)0xdb, (byte)0x97, (byte)0x2f, (byte)0x3a, (byte)0xc1,\n (byte)0x4e, (byte)0xaf, (byte)0xf4, (byte)0x9c, (byte)0x8c,\n (byte)0x3b, (byte)0x7c, (byte)0xfc, (byte)0x95, (byte)0x1a,\n (byte)0x51, (byte)0xec, (byte)0xd1, (byte)0xdd, (byte)0xe6,\n (byte)0x12, (byte)0x64\n };\n\n MGF1 mgf = new MGF1(sha1, 1, false, seed, 0, seed.length);\n byte out[] = new byte[expectedOut.length];\n int offset = 0;\n\n out[offset++] = (byte) mgf.read();\n out[offset++] = (byte) mgf.read();\n out[offset++] = (byte) mgf.read();\n mgf.read(out, offset, 4);\n offset += 4;\n mgf.read(out, offset, out.length-offset);\n assertArrayEquals(expectedOut, out);\n }", "title": "" }, { "docid": "5c156a31ef69817c30def298d312f5a5", "score": "0.5450765", "text": "public double[] calcEntropy(int n) {\r\n \r\n // Hilfsvariable deklarieren:\r\n \r\n String ntupel; // das aktuell zu bearbeitende n-Tupel wird hier zwischengespeichert.\r\n \r\n // hier wird die Auftrittswahrscheinlichkeit des gefundenen n-Tupel gespeichert:\r\n double rf; // = relative frequency\r\n \r\n // bedingte Wahrscheinlichkeit des n-ten Buchstabens eines n-tupels\r\n // wird hier zwischengespeichert werden:\r\n double crf; // = conditional relative frequency\r\n \r\n // Zaehler zum ermitteln Anzahl unterschiedlcher vorkommender n-tupel:\r\n double numDifTupels = 0.0; // = number of different tupels\r\n \r\n // Rueckgabearray deklarieren und mit 0 initalisieren:\r\n double[] result = new double[EntropyCalc.MATRIXCOLUMS];\r\n for (int j = 0; j < result.length; j++) {\r\n result[j] = 0.0;\r\n }\r\n \r\n // Hashtable relFreq und absFreq \"leeren\" (alle evtl. vorhandenen Werte loeschen).\r\n // Zweck: bei inkrementeller Rechnung wird die eventuell sehr hohe Anzahl an\r\n // n-tupeln, die nicht mehr benoetigt werden, geloescht.\r\n relFreq.clear();\r\n absFreq.clear();\r\n \r\n // Bestimme absolute Haeufigkeit aller n-Tupel und (n-1)-Tupel sowie deren\r\n // Auftrittswahrscheinlichkeit:\r\n if (n > 1) {\r\n countAbsFreq(n - 1);\r\n }\r\n countAbsFreq(n);\r\n if (n > 1) {\r\n countRelFreq(n - 1, this.filteredText.length());\r\n }\r\n countRelFreq(n, this.filteredText.length());\r\n \r\n // berechne Entropiewerte:\r\n Enumeration<String> e = relFreq.keys();\r\n while (e.hasMoreElements()) {\r\n // waehle das naechste Element:\r\n ntupel = e.nextElement().toString();\r\n // beachte nur Tupel der Laenge n:\r\n if (ntupel.length() == n) {\r\n rf = Double.parseDouble(relFreq.get(ntupel).toString());\r\n // crf = bedingte Wahrscheinlichkeit des n-ten Buchstabens eines n-tupels\r\n crf = calcCondProb(ntupel);\r\n // absolute und bedingte Wahrscheinlichkeiten ausgeben:\r\n \r\n // bedingte Entropie unter Beachtung von n-Tupel berechnen:\r\n result[0] += (rf * EntropyData.log2(crf));\r\n // absolute Entropie ueber n-tupel berechnen:\r\n result[1] += (rf * EntropyData.log2(rf));\r\n \r\n numDifTupels += (double) 1;\r\n }\r\n }\r\n \r\n if (n == 1) {\r\n letterFreqTable = new EntropyTupelFreq(this.lengthAlphabet, 1, relFreq);\r\n }\r\n \r\n \r\n // Anzahl unterschiedlicher Tupel der Laenge n speichern:\r\n result[2] = numDifTupels;\r\n // Anzahl moeglicher Tupel der Laenge n berechnen und speichern:\r\n result[3] = Math.pow((double) this.lengthAlphabet, (double) n);\r\n // berechne max Entropie per Definition:\r\n result[4] = EntropyData.log2((double) this.lengthAlphabet);\r\n \r\n // Betrag der bedingten, absoluten u max Entropiewert setzen: (Grund: siehe Studienarbeit)\r\n result[0] = Math.abs(result[0]);\r\n result[4] = Math.abs(result[4]);\r\n \r\n result[1] = Math.abs(result[1]);\r\n \r\n // relative Entropie bezueglich F_n, sowie G_n/n berechnen:\r\n result[5] = result[0] / result[4]; // rel-F_n\r\n result[6] = (result[1] / n); // (G_n)/n\r\n \r\n // Redundanzen berechnen:\r\n result[7] = 1.0 - result[5];\r\n result[8] = 1.0 - ((result[1] / n) / result[4]);\r\n \r\n // prozentuale Zunahme von G_(n-1) auf G_n berechnen:\r\n if (n == 1) {\r\n result[9] = 0.0;\r\n } else {\r\n result[9] = (result[1] - (result[1] - result[0])) / (result[1] - result[0]);\r\n // = ( G_n - G_(n-1) ) / G_(n-1)\r\n }\r\n \r\n return result;\r\n }", "title": "" }, { "docid": "68865c20744df9ca6b39173b2fb3c40f", "score": "0.5449794", "text": "@Test\r\n public void testWasShotOverHalfCourt() {\r\n }", "title": "" }, { "docid": "ad60410ccbb928e2278bd010c4f1d403", "score": "0.5446061", "text": "@Test(timeout = 4000)\n public void test26() throws Throwable {\n JRip jRip0 = new JRip();\n String string0 = jRip0.foldsTipText();\n assertTrue(jRip0.getCheckErrorRate());\n assertEquals(1L, jRip0.getSeed());\n assertEquals(\"Determines the amount of data used for pruning. One fold is used for pruning, the rest for growing the rules.\", string0);\n assertFalse(jRip0.getDebug());\n assertEquals(3, jRip0.getFolds());\n assertEquals(2, jRip0.getOptimizations());\n assertEquals(2.0, jRip0.getMinNo(), 0.01);\n assertTrue(jRip0.getUsePruning());\n }", "title": "" }, { "docid": "c4e14ccfce69d88512ac5d94855332ab", "score": "0.54425657", "text": "@Test(timeout = 4000)\n public void test46() throws Throwable {\n JRip jRip0 = new JRip();\n LinkedList<Locale.LanguageRange> linkedList0 = new LinkedList<Locale.LanguageRange>();\n LinkedList<String> linkedList1 = new LinkedList<String>();\n Locale.FilteringMode locale_FilteringMode0 = Locale.FilteringMode.REJECT_EXTENDED_RANGES;\n List<String> list0 = Locale.filterTags((List<Locale.LanguageRange>) linkedList0, (Collection<String>) linkedList1, locale_FilteringMode0);\n Attribute attribute0 = new Attribute(\"Dda%bT`mxKsZl7j\", list0, 1425);\n SparseInstance sparseInstance0 = new SparseInstance(3648);\n SparseInstance sparseInstance1 = new SparseInstance(sparseInstance0);\n double[] doubleArray0 = new double[3];\n doubleArray0[0] = (double) 2;\n sparseInstance0.copy();\n doubleArray0[1] = (double) 0;\n doubleArray0[2] = (double) 1;\n SparseInstance sparseInstance2 = new SparseInstance((-3), doubleArray0);\n BinarySparseInstance binarySparseInstance0 = new BinarySparseInstance((Instance) sparseInstance1);\n FileSystemHandling.shouldAllThrowIOExceptions();\n attribute0.addStringValue(\"real\");\n sparseInstance0.setWeight((-2.022));\n JRip.RipperRule jRip_RipperRule0 = jRip0.new RipperRule();\n assertEquals((-1.0), jRip_RipperRule0.getConsequent(), 0.01);\n \n boolean boolean0 = jRip0.getCheckErrorRate();\n JRip jRip1 = new JRip();\n JRip.NominalAntd jRip_NominalAntd0 = jRip1.new NominalAntd(attribute0);\n boolean boolean1 = jRip_NominalAntd0.covers(sparseInstance1);\n assertEquals(0.0, jRip_NominalAntd0.getMaxInfoGain(), 0.01);\n assertEquals(Double.NaN, jRip_NominalAntd0.getAccuRate(), 0.01);\n assertEquals(Double.NaN, jRip_NominalAntd0.getAccu(), 0.01);\n assertFalse(boolean1 == boolean0);\n assertEquals(Double.NaN, jRip_NominalAntd0.getAttrValue(), 0.01);\n assertEquals(Double.NaN, jRip_NominalAntd0.getCover(), 0.01);\n \n String string0 = jRip1.toString();\n assertEquals(\"JRIP: No model built yet.\", string0);\n assertEquals(3, jRip1.getFolds());\n assertEquals(1L, jRip1.getSeed());\n assertTrue(jRip1.getUsePruning());\n assertEquals(2.0, jRip1.getMinNo(), 0.01);\n assertEquals(2, jRip1.getOptimizations());\n assertFalse(jRip1.getDebug());\n }", "title": "" }, { "docid": "937b210db620b5072b25ee55c4cc6b7c", "score": "0.5442205", "text": "@Test(timeout = 4000)\n public void test058() throws Throwable {\n ResultMatrixSignificance resultMatrixSignificance0 = new ResultMatrixSignificance();\n assertEquals(2, resultMatrixSignificance0.getMeanPrec());\n assertFalse(resultMatrixSignificance0.getDefaultShowAverage());\n assertEquals(0, resultMatrixSignificance0.getDefaultCountWidth());\n assertFalse(resultMatrixSignificance0.getEnumerateRowNames());\n assertFalse(resultMatrixSignificance0.getDefaultEnumerateRowNames());\n assertTrue(resultMatrixSignificance0.getDefaultPrintRowNames());\n assertEquals(0, resultMatrixSignificance0.getSignificanceWidth());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixSignificance0.showStdDevTipText());\n assertFalse(resultMatrixSignificance0.getPrintColNames());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixSignificance0.meanWidthTipText());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateRowNamesTipText());\n assertEquals(40, resultMatrixSignificance0.getRowNameWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixSignificance0.significanceWidthTipText());\n assertFalse(resultMatrixSignificance0.getShowStdDev());\n assertEquals(0, resultMatrixSignificance0.getDefaultSignificanceWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultColNameWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixSignificance0.countWidthTipText());\n assertFalse(resultMatrixSignificance0.getDefaultRemoveFilterName());\n assertTrue(resultMatrixSignificance0.getPrintRowNames());\n assertEquals(1, resultMatrixSignificance0.getVisibleColCount());\n assertEquals(2, resultMatrixSignificance0.getDefaultMeanPrec());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixSignificance0.colNameWidthTipText());\n assertFalse(resultMatrixSignificance0.getDefaultShowStdDev());\n assertEquals(0, resultMatrixSignificance0.getDefaultStdDevWidth());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateColNamesTipText());\n assertEquals(0, resultMatrixSignificance0.getColNameWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultMeanWidth());\n assertFalse(resultMatrixSignificance0.getRemoveFilterName());\n assertEquals(0, resultMatrixSignificance0.getCountWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixSignificance0.printColNamesTipText());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixSignificance0.removeFilterNameTipText());\n assertEquals(0, resultMatrixSignificance0.getMeanWidth());\n assertEquals(40, resultMatrixSignificance0.getDefaultRowNameWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixSignificance0.stdDevPrecTipText());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixSignificance0.rowNameWidthTipText());\n assertEquals(1, resultMatrixSignificance0.getColCount());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixSignificance0.stdDevWidthTipText());\n assertEquals(2, resultMatrixSignificance0.getDefaultStdDevPrec());\n assertEquals(\"Significance only\", resultMatrixSignificance0.getDisplayName());\n assertEquals(2, resultMatrixSignificance0.getStdDevPrec());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixSignificance0.meanPrecTipText());\n assertEquals(1, resultMatrixSignificance0.getVisibleRowCount());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixSignificance0.printRowNamesTipText());\n assertTrue(resultMatrixSignificance0.getDefaultEnumerateColNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixSignificance0.showAverageTipText());\n assertTrue(resultMatrixSignificance0.getEnumerateColNames());\n assertEquals(1, resultMatrixSignificance0.getRowCount());\n assertFalse(resultMatrixSignificance0.getDefaultPrintColNames());\n assertFalse(resultMatrixSignificance0.getShowAverage());\n assertEquals(0, resultMatrixSignificance0.getStdDevWidth());\n assertEquals(\"Only outputs the significance indicators. Can be used for spotting patterns.\", resultMatrixSignificance0.globalInfo());\n assertNotNull(resultMatrixSignificance0);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n \n ResultMatrixSignificance resultMatrixSignificance1 = new ResultMatrixSignificance(resultMatrixSignificance0);\n assertEquals(2, resultMatrixSignificance0.getMeanPrec());\n assertFalse(resultMatrixSignificance0.getDefaultShowAverage());\n assertEquals(0, resultMatrixSignificance0.getDefaultCountWidth());\n assertFalse(resultMatrixSignificance0.getEnumerateRowNames());\n assertFalse(resultMatrixSignificance0.getDefaultEnumerateRowNames());\n assertTrue(resultMatrixSignificance0.getDefaultPrintRowNames());\n assertEquals(0, resultMatrixSignificance0.getSignificanceWidth());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixSignificance0.showStdDevTipText());\n assertFalse(resultMatrixSignificance0.getPrintColNames());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixSignificance0.meanWidthTipText());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateRowNamesTipText());\n assertEquals(40, resultMatrixSignificance0.getRowNameWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixSignificance0.significanceWidthTipText());\n assertFalse(resultMatrixSignificance0.getShowStdDev());\n assertEquals(0, resultMatrixSignificance0.getDefaultSignificanceWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultColNameWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixSignificance0.countWidthTipText());\n assertFalse(resultMatrixSignificance0.getDefaultRemoveFilterName());\n assertTrue(resultMatrixSignificance0.getPrintRowNames());\n assertEquals(1, resultMatrixSignificance0.getVisibleColCount());\n assertEquals(2, resultMatrixSignificance0.getDefaultMeanPrec());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixSignificance0.colNameWidthTipText());\n assertFalse(resultMatrixSignificance0.getDefaultShowStdDev());\n assertEquals(0, resultMatrixSignificance0.getDefaultStdDevWidth());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateColNamesTipText());\n assertEquals(0, resultMatrixSignificance0.getColNameWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultMeanWidth());\n assertFalse(resultMatrixSignificance0.getRemoveFilterName());\n assertEquals(0, resultMatrixSignificance0.getCountWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixSignificance0.printColNamesTipText());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixSignificance0.removeFilterNameTipText());\n assertEquals(0, resultMatrixSignificance0.getMeanWidth());\n assertEquals(40, resultMatrixSignificance0.getDefaultRowNameWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixSignificance0.stdDevPrecTipText());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixSignificance0.rowNameWidthTipText());\n assertEquals(1, resultMatrixSignificance0.getColCount());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixSignificance0.stdDevWidthTipText());\n assertEquals(2, resultMatrixSignificance0.getDefaultStdDevPrec());\n assertEquals(\"Significance only\", resultMatrixSignificance0.getDisplayName());\n assertEquals(2, resultMatrixSignificance0.getStdDevPrec());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixSignificance0.meanPrecTipText());\n assertEquals(1, resultMatrixSignificance0.getVisibleRowCount());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixSignificance0.printRowNamesTipText());\n assertTrue(resultMatrixSignificance0.getDefaultEnumerateColNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixSignificance0.showAverageTipText());\n assertTrue(resultMatrixSignificance0.getEnumerateColNames());\n assertEquals(1, resultMatrixSignificance0.getRowCount());\n assertFalse(resultMatrixSignificance0.getDefaultPrintColNames());\n assertFalse(resultMatrixSignificance0.getShowAverage());\n assertEquals(0, resultMatrixSignificance0.getStdDevWidth());\n assertEquals(\"Only outputs the significance indicators. Can be used for spotting patterns.\", resultMatrixSignificance0.globalInfo());\n assertEquals(40, resultMatrixSignificance1.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixSignificance1.getCountWidth());\n assertEquals(1, resultMatrixSignificance1.getColCount());\n assertFalse(resultMatrixSignificance1.getRemoveFilterName());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixSignificance1.printRowNamesTipText());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixSignificance1.countWidthTipText());\n assertEquals(0, resultMatrixSignificance1.getDefaultSignificanceWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixSignificance1.printColNamesTipText());\n assertEquals(0, resultMatrixSignificance1.getDefaultStdDevWidth());\n assertEquals(2, resultMatrixSignificance1.getDefaultMeanPrec());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixSignificance1.meanPrecTipText());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixSignificance1.colNameWidthTipText());\n assertFalse(resultMatrixSignificance1.getDefaultPrintColNames());\n assertTrue(resultMatrixSignificance1.getPrintRowNames());\n assertEquals(1, resultMatrixSignificance1.getVisibleColCount());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixSignificance1.showAverageTipText());\n assertEquals(2, resultMatrixSignificance1.getDefaultStdDevPrec());\n assertTrue(resultMatrixSignificance1.getEnumerateColNames());\n assertEquals(0, resultMatrixSignificance1.getMeanWidth());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixSignificance1.removeFilterNameTipText());\n assertFalse(resultMatrixSignificance1.getShowStdDev());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance1.enumerateColNamesTipText());\n assertEquals(0, resultMatrixSignificance1.getColNameWidth());\n assertEquals(2, resultMatrixSignificance1.getMeanPrec());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixSignificance1.stdDevPrecTipText());\n assertFalse(resultMatrixSignificance1.getDefaultShowStdDev());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixSignificance1.rowNameWidthTipText());\n assertEquals(1, resultMatrixSignificance1.getRowCount());\n assertEquals(\"Only outputs the significance indicators. Can be used for spotting patterns.\", resultMatrixSignificance1.globalInfo());\n assertTrue(resultMatrixSignificance1.getDefaultPrintRowNames());\n assertFalse(resultMatrixSignificance1.getEnumerateRowNames());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixSignificance1.meanWidthTipText());\n assertEquals(2, resultMatrixSignificance1.getStdDevPrec());\n assertEquals(0, resultMatrixSignificance1.getSignificanceWidth());\n assertFalse(resultMatrixSignificance1.getPrintColNames());\n assertFalse(resultMatrixSignificance1.getShowAverage());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixSignificance1.stdDevWidthTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixSignificance1.significanceWidthTipText());\n assertEquals(0, resultMatrixSignificance1.getStdDevWidth());\n assertEquals(0, resultMatrixSignificance1.getDefaultCountWidth());\n assertEquals(\"Significance only\", resultMatrixSignificance1.getDisplayName());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance1.enumerateRowNamesTipText());\n assertTrue(resultMatrixSignificance1.getDefaultEnumerateColNames());\n assertFalse(resultMatrixSignificance1.getDefaultEnumerateRowNames());\n assertFalse(resultMatrixSignificance1.getDefaultShowAverage());\n assertEquals(1, resultMatrixSignificance1.getVisibleRowCount());\n assertFalse(resultMatrixSignificance1.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixSignificance1.getDefaultColNameWidth());\n assertEquals(40, resultMatrixSignificance1.getRowNameWidth());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixSignificance1.showStdDevTipText());\n assertEquals(0, resultMatrixSignificance1.getDefaultMeanWidth());\n assertFalse(resultMatrixSignificance1.equals((Object)resultMatrixSignificance0));\n assertNotNull(resultMatrixSignificance1);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n \n String[] stringArray0 = new String[9];\n stringArray0[1] = \"*\";\n stringArray0[2] = \"v\";\n stringArray0[3] = \"v\";\n stringArray0[4] = \")\";\n stringArray0[5] = \" \";\n stringArray0[6] = \"*\";\n stringArray0[7] = \"(\";\n stringArray0[8] = \"v\";\n resultMatrixSignificance0.m_RowNames = stringArray0;\n assertEquals(2, resultMatrixSignificance0.getMeanPrec());\n assertFalse(resultMatrixSignificance0.getDefaultShowAverage());\n assertEquals(0, resultMatrixSignificance0.getDefaultCountWidth());\n assertFalse(resultMatrixSignificance0.getEnumerateRowNames());\n assertFalse(resultMatrixSignificance0.getDefaultEnumerateRowNames());\n assertEquals(9, resultMatrixSignificance0.getRowCount());\n assertTrue(resultMatrixSignificance0.getDefaultPrintRowNames());\n assertEquals(0, resultMatrixSignificance0.getSignificanceWidth());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixSignificance0.showStdDevTipText());\n assertFalse(resultMatrixSignificance0.getPrintColNames());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixSignificance0.meanWidthTipText());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateRowNamesTipText());\n assertEquals(40, resultMatrixSignificance0.getRowNameWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixSignificance0.significanceWidthTipText());\n assertFalse(resultMatrixSignificance0.getShowStdDev());\n assertEquals(0, resultMatrixSignificance0.getDefaultSignificanceWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultColNameWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixSignificance0.countWidthTipText());\n assertFalse(resultMatrixSignificance0.getDefaultRemoveFilterName());\n assertTrue(resultMatrixSignificance0.getPrintRowNames());\n assertEquals(1, resultMatrixSignificance0.getVisibleColCount());\n assertEquals(2, resultMatrixSignificance0.getDefaultMeanPrec());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixSignificance0.colNameWidthTipText());\n assertFalse(resultMatrixSignificance0.getDefaultShowStdDev());\n assertEquals(0, resultMatrixSignificance0.getDefaultStdDevWidth());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateColNamesTipText());\n assertEquals(0, resultMatrixSignificance0.getColNameWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultMeanWidth());\n assertFalse(resultMatrixSignificance0.getRemoveFilterName());\n assertEquals(0, resultMatrixSignificance0.getCountWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixSignificance0.printColNamesTipText());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixSignificance0.removeFilterNameTipText());\n assertEquals(0, resultMatrixSignificance0.getMeanWidth());\n assertEquals(40, resultMatrixSignificance0.getDefaultRowNameWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixSignificance0.stdDevPrecTipText());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixSignificance0.rowNameWidthTipText());\n assertEquals(1, resultMatrixSignificance0.getColCount());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixSignificance0.stdDevWidthTipText());\n assertEquals(2, resultMatrixSignificance0.getDefaultStdDevPrec());\n assertEquals(\"Significance only\", resultMatrixSignificance0.getDisplayName());\n assertEquals(2, resultMatrixSignificance0.getStdDevPrec());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixSignificance0.meanPrecTipText());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixSignificance0.printRowNamesTipText());\n assertTrue(resultMatrixSignificance0.getDefaultEnumerateColNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixSignificance0.showAverageTipText());\n assertTrue(resultMatrixSignificance0.getEnumerateColNames());\n assertFalse(resultMatrixSignificance0.getDefaultPrintColNames());\n assertFalse(resultMatrixSignificance0.getShowAverage());\n assertEquals(0, resultMatrixSignificance0.getStdDevWidth());\n assertEquals(\"Only outputs the significance indicators. Can be used for spotting patterns.\", resultMatrixSignificance0.globalInfo());\n \n resultMatrixSignificance1.setStdDev(747, 1314, 0.0);\n assertEquals(2, resultMatrixSignificance0.getMeanPrec());\n assertFalse(resultMatrixSignificance0.getDefaultShowAverage());\n assertEquals(0, resultMatrixSignificance0.getDefaultCountWidth());\n assertFalse(resultMatrixSignificance0.getEnumerateRowNames());\n assertFalse(resultMatrixSignificance0.getDefaultEnumerateRowNames());\n assertEquals(9, resultMatrixSignificance0.getRowCount());\n assertTrue(resultMatrixSignificance0.getDefaultPrintRowNames());\n assertEquals(0, resultMatrixSignificance0.getSignificanceWidth());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixSignificance0.showStdDevTipText());\n assertFalse(resultMatrixSignificance0.getPrintColNames());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixSignificance0.meanWidthTipText());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateRowNamesTipText());\n assertEquals(40, resultMatrixSignificance0.getRowNameWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixSignificance0.significanceWidthTipText());\n assertFalse(resultMatrixSignificance0.getShowStdDev());\n assertEquals(0, resultMatrixSignificance0.getDefaultSignificanceWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultColNameWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixSignificance0.countWidthTipText());\n assertFalse(resultMatrixSignificance0.getDefaultRemoveFilterName());\n assertTrue(resultMatrixSignificance0.getPrintRowNames());\n assertEquals(1, resultMatrixSignificance0.getVisibleColCount());\n assertEquals(2, resultMatrixSignificance0.getDefaultMeanPrec());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixSignificance0.colNameWidthTipText());\n assertFalse(resultMatrixSignificance0.getDefaultShowStdDev());\n assertEquals(0, resultMatrixSignificance0.getDefaultStdDevWidth());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateColNamesTipText());\n assertEquals(0, resultMatrixSignificance0.getColNameWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultMeanWidth());\n assertFalse(resultMatrixSignificance0.getRemoveFilterName());\n assertEquals(0, resultMatrixSignificance0.getCountWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixSignificance0.printColNamesTipText());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixSignificance0.removeFilterNameTipText());\n assertEquals(0, resultMatrixSignificance0.getMeanWidth());\n assertEquals(40, resultMatrixSignificance0.getDefaultRowNameWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixSignificance0.stdDevPrecTipText());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixSignificance0.rowNameWidthTipText());\n assertEquals(1, resultMatrixSignificance0.getColCount());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixSignificance0.stdDevWidthTipText());\n assertEquals(2, resultMatrixSignificance0.getDefaultStdDevPrec());\n assertEquals(\"Significance only\", resultMatrixSignificance0.getDisplayName());\n assertEquals(2, resultMatrixSignificance0.getStdDevPrec());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixSignificance0.meanPrecTipText());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixSignificance0.printRowNamesTipText());\n assertTrue(resultMatrixSignificance0.getDefaultEnumerateColNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixSignificance0.showAverageTipText());\n assertTrue(resultMatrixSignificance0.getEnumerateColNames());\n assertFalse(resultMatrixSignificance0.getDefaultPrintColNames());\n assertFalse(resultMatrixSignificance0.getShowAverage());\n assertEquals(0, resultMatrixSignificance0.getStdDevWidth());\n assertEquals(\"Only outputs the significance indicators. Can be used for spotting patterns.\", resultMatrixSignificance0.globalInfo());\n assertEquals(40, resultMatrixSignificance1.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixSignificance1.getCountWidth());\n assertEquals(1, resultMatrixSignificance1.getColCount());\n assertFalse(resultMatrixSignificance1.getRemoveFilterName());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixSignificance1.printRowNamesTipText());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixSignificance1.countWidthTipText());\n assertEquals(0, resultMatrixSignificance1.getDefaultSignificanceWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixSignificance1.printColNamesTipText());\n assertEquals(0, resultMatrixSignificance1.getDefaultStdDevWidth());\n assertEquals(2, resultMatrixSignificance1.getDefaultMeanPrec());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixSignificance1.meanPrecTipText());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixSignificance1.colNameWidthTipText());\n assertFalse(resultMatrixSignificance1.getDefaultPrintColNames());\n assertTrue(resultMatrixSignificance1.getPrintRowNames());\n assertEquals(1, resultMatrixSignificance1.getVisibleColCount());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixSignificance1.showAverageTipText());\n assertEquals(2, resultMatrixSignificance1.getDefaultStdDevPrec());\n assertTrue(resultMatrixSignificance1.getEnumerateColNames());\n assertEquals(0, resultMatrixSignificance1.getMeanWidth());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixSignificance1.removeFilterNameTipText());\n assertFalse(resultMatrixSignificance1.getShowStdDev());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance1.enumerateColNamesTipText());\n assertEquals(0, resultMatrixSignificance1.getColNameWidth());\n assertEquals(2, resultMatrixSignificance1.getMeanPrec());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixSignificance1.stdDevPrecTipText());\n assertFalse(resultMatrixSignificance1.getDefaultShowStdDev());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixSignificance1.rowNameWidthTipText());\n assertEquals(1, resultMatrixSignificance1.getRowCount());\n assertEquals(\"Only outputs the significance indicators. Can be used for spotting patterns.\", resultMatrixSignificance1.globalInfo());\n assertTrue(resultMatrixSignificance1.getDefaultPrintRowNames());\n assertFalse(resultMatrixSignificance1.getEnumerateRowNames());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixSignificance1.meanWidthTipText());\n assertEquals(2, resultMatrixSignificance1.getStdDevPrec());\n assertEquals(0, resultMatrixSignificance1.getSignificanceWidth());\n assertFalse(resultMatrixSignificance1.getPrintColNames());\n assertFalse(resultMatrixSignificance1.getShowAverage());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixSignificance1.stdDevWidthTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixSignificance1.significanceWidthTipText());\n assertEquals(0, resultMatrixSignificance1.getStdDevWidth());\n assertEquals(0, resultMatrixSignificance1.getDefaultCountWidth());\n assertEquals(\"Significance only\", resultMatrixSignificance1.getDisplayName());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance1.enumerateRowNamesTipText());\n assertTrue(resultMatrixSignificance1.getDefaultEnumerateColNames());\n assertFalse(resultMatrixSignificance1.getDefaultEnumerateRowNames());\n assertFalse(resultMatrixSignificance1.getDefaultShowAverage());\n assertEquals(1, resultMatrixSignificance1.getVisibleRowCount());\n assertFalse(resultMatrixSignificance1.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixSignificance1.getDefaultColNameWidth());\n assertEquals(40, resultMatrixSignificance1.getRowNameWidth());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixSignificance1.showStdDevTipText());\n assertEquals(0, resultMatrixSignificance1.getDefaultMeanWidth());\n assertFalse(resultMatrixSignificance0.equals((Object)resultMatrixSignificance1));\n assertFalse(resultMatrixSignificance1.equals((Object)resultMatrixSignificance0));\n assertNotSame(resultMatrixSignificance0, resultMatrixSignificance1);\n assertNotSame(resultMatrixSignificance1, resultMatrixSignificance0);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n \n String[] stringArray1 = new String[5];\n assertFalse(stringArray1.equals((Object)stringArray0));\n \n resultMatrixSignificance0.m_ColNames = null;\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixSignificance0.colNameWidthTipText());\n assertFalse(resultMatrixSignificance0.getDefaultShowStdDev());\n assertEquals(0, resultMatrixSignificance0.getDefaultStdDevWidth());\n assertEquals(2, resultMatrixSignificance0.getMeanPrec());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateColNamesTipText());\n assertEquals(0, resultMatrixSignificance0.getColNameWidth());\n assertFalse(resultMatrixSignificance0.getDefaultShowAverage());\n assertEquals(0, resultMatrixSignificance0.getDefaultCountWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultMeanWidth());\n assertFalse(resultMatrixSignificance0.getEnumerateRowNames());\n assertFalse(resultMatrixSignificance0.getRemoveFilterName());\n assertEquals(0, resultMatrixSignificance0.getCountWidth());\n assertFalse(resultMatrixSignificance0.getDefaultEnumerateRowNames());\n assertEquals(9, resultMatrixSignificance0.getRowCount());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixSignificance0.printColNamesTipText());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixSignificance0.removeFilterNameTipText());\n assertTrue(resultMatrixSignificance0.getDefaultPrintRowNames());\n assertEquals(0, resultMatrixSignificance0.getMeanWidth());\n assertEquals(0, resultMatrixSignificance0.getSignificanceWidth());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixSignificance0.showStdDevTipText());\n assertFalse(resultMatrixSignificance0.getPrintColNames());\n assertEquals(40, resultMatrixSignificance0.getDefaultRowNameWidth());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixSignificance0.meanWidthTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixSignificance0.stdDevPrecTipText());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixSignificance0.rowNameWidthTipText());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateRowNamesTipText());\n assertEquals(40, resultMatrixSignificance0.getRowNameWidth());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixSignificance0.stdDevWidthTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixSignificance0.significanceWidthTipText());\n assertFalse(resultMatrixSignificance0.getShowStdDev());\n assertEquals(2, resultMatrixSignificance0.getDefaultStdDevPrec());\n assertEquals(\"Significance only\", resultMatrixSignificance0.getDisplayName());\n assertEquals(0, resultMatrixSignificance0.getDefaultSignificanceWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultColNameWidth());\n assertEquals(2, resultMatrixSignificance0.getStdDevPrec());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixSignificance0.countWidthTipText());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixSignificance0.meanPrecTipText());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixSignificance0.printRowNamesTipText());\n assertFalse(resultMatrixSignificance0.getDefaultRemoveFilterName());\n assertTrue(resultMatrixSignificance0.getDefaultEnumerateColNames());\n assertTrue(resultMatrixSignificance0.getPrintRowNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixSignificance0.showAverageTipText());\n assertTrue(resultMatrixSignificance0.getEnumerateColNames());\n assertFalse(resultMatrixSignificance0.getDefaultPrintColNames());\n assertFalse(resultMatrixSignificance0.getShowAverage());\n assertEquals(2, resultMatrixSignificance0.getDefaultMeanPrec());\n assertEquals(0, resultMatrixSignificance0.getStdDevWidth());\n assertEquals(\"Only outputs the significance indicators. Can be used for spotting patterns.\", resultMatrixSignificance0.globalInfo());\n \n stringArray1[0] = \")\";\n stringArray1[1] = \"*\";\n stringArray1[2] = \")\";\n stringArray1[3] = \")\";\n stringArray1[4] = \"d)I]\";\n resultMatrixSignificance1.LEFT_PARENTHESES = \"Cp@q%bCL_=m5hi(8B\";\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixSignificance0.colNameWidthTipText());\n assertFalse(resultMatrixSignificance0.getDefaultShowStdDev());\n assertEquals(0, resultMatrixSignificance0.getDefaultStdDevWidth());\n assertEquals(2, resultMatrixSignificance0.getMeanPrec());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateColNamesTipText());\n assertEquals(0, resultMatrixSignificance0.getColNameWidth());\n assertFalse(resultMatrixSignificance0.getDefaultShowAverage());\n assertEquals(0, resultMatrixSignificance0.getDefaultCountWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultMeanWidth());\n assertFalse(resultMatrixSignificance0.getEnumerateRowNames());\n assertFalse(resultMatrixSignificance0.getRemoveFilterName());\n assertEquals(0, resultMatrixSignificance0.getCountWidth());\n assertFalse(resultMatrixSignificance0.getDefaultEnumerateRowNames());\n assertEquals(9, resultMatrixSignificance0.getRowCount());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixSignificance0.printColNamesTipText());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixSignificance0.removeFilterNameTipText());\n assertTrue(resultMatrixSignificance0.getDefaultPrintRowNames());\n assertEquals(0, resultMatrixSignificance0.getMeanWidth());\n assertEquals(0, resultMatrixSignificance0.getSignificanceWidth());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixSignificance0.showStdDevTipText());\n assertFalse(resultMatrixSignificance0.getPrintColNames());\n assertEquals(40, resultMatrixSignificance0.getDefaultRowNameWidth());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixSignificance0.meanWidthTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixSignificance0.stdDevPrecTipText());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixSignificance0.rowNameWidthTipText());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateRowNamesTipText());\n assertEquals(40, resultMatrixSignificance0.getRowNameWidth());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixSignificance0.stdDevWidthTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixSignificance0.significanceWidthTipText());\n assertFalse(resultMatrixSignificance0.getShowStdDev());\n assertEquals(2, resultMatrixSignificance0.getDefaultStdDevPrec());\n assertEquals(\"Significance only\", resultMatrixSignificance0.getDisplayName());\n assertEquals(0, resultMatrixSignificance0.getDefaultSignificanceWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultColNameWidth());\n assertEquals(2, resultMatrixSignificance0.getStdDevPrec());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixSignificance0.countWidthTipText());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixSignificance0.meanPrecTipText());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixSignificance0.printRowNamesTipText());\n assertFalse(resultMatrixSignificance0.getDefaultRemoveFilterName());\n assertTrue(resultMatrixSignificance0.getDefaultEnumerateColNames());\n assertTrue(resultMatrixSignificance0.getPrintRowNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixSignificance0.showAverageTipText());\n assertTrue(resultMatrixSignificance0.getEnumerateColNames());\n assertFalse(resultMatrixSignificance0.getDefaultPrintColNames());\n assertFalse(resultMatrixSignificance0.getShowAverage());\n assertEquals(2, resultMatrixSignificance0.getDefaultMeanPrec());\n assertEquals(0, resultMatrixSignificance0.getStdDevWidth());\n assertEquals(\"Only outputs the significance indicators. Can be used for spotting patterns.\", resultMatrixSignificance0.globalInfo());\n assertEquals(40, resultMatrixSignificance1.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixSignificance1.getCountWidth());\n assertEquals(1, resultMatrixSignificance1.getColCount());\n assertFalse(resultMatrixSignificance1.getRemoveFilterName());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixSignificance1.printRowNamesTipText());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixSignificance1.countWidthTipText());\n assertEquals(0, resultMatrixSignificance1.getDefaultSignificanceWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixSignificance1.printColNamesTipText());\n assertEquals(0, resultMatrixSignificance1.getDefaultStdDevWidth());\n assertEquals(2, resultMatrixSignificance1.getDefaultMeanPrec());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixSignificance1.meanPrecTipText());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixSignificance1.colNameWidthTipText());\n assertFalse(resultMatrixSignificance1.getDefaultPrintColNames());\n assertTrue(resultMatrixSignificance1.getPrintRowNames());\n assertEquals(1, resultMatrixSignificance1.getVisibleColCount());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixSignificance1.showAverageTipText());\n assertEquals(2, resultMatrixSignificance1.getDefaultStdDevPrec());\n assertTrue(resultMatrixSignificance1.getEnumerateColNames());\n assertEquals(0, resultMatrixSignificance1.getMeanWidth());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixSignificance1.removeFilterNameTipText());\n assertFalse(resultMatrixSignificance1.getShowStdDev());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance1.enumerateColNamesTipText());\n assertEquals(0, resultMatrixSignificance1.getColNameWidth());\n assertEquals(2, resultMatrixSignificance1.getMeanPrec());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixSignificance1.stdDevPrecTipText());\n assertFalse(resultMatrixSignificance1.getDefaultShowStdDev());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixSignificance1.rowNameWidthTipText());\n assertEquals(1, resultMatrixSignificance1.getRowCount());\n assertEquals(\"Only outputs the significance indicators. Can be used for spotting patterns.\", resultMatrixSignificance1.globalInfo());\n assertTrue(resultMatrixSignificance1.getDefaultPrintRowNames());\n assertFalse(resultMatrixSignificance1.getEnumerateRowNames());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixSignificance1.meanWidthTipText());\n assertEquals(2, resultMatrixSignificance1.getStdDevPrec());\n assertEquals(0, resultMatrixSignificance1.getSignificanceWidth());\n assertFalse(resultMatrixSignificance1.getPrintColNames());\n assertFalse(resultMatrixSignificance1.getShowAverage());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixSignificance1.stdDevWidthTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixSignificance1.significanceWidthTipText());\n assertEquals(0, resultMatrixSignificance1.getStdDevWidth());\n assertEquals(0, resultMatrixSignificance1.getDefaultCountWidth());\n assertEquals(\"Significance only\", resultMatrixSignificance1.getDisplayName());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance1.enumerateRowNamesTipText());\n assertTrue(resultMatrixSignificance1.getDefaultEnumerateColNames());\n assertFalse(resultMatrixSignificance1.getDefaultEnumerateRowNames());\n assertFalse(resultMatrixSignificance1.getDefaultShowAverage());\n assertEquals(1, resultMatrixSignificance1.getVisibleRowCount());\n assertFalse(resultMatrixSignificance1.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixSignificance1.getDefaultColNameWidth());\n assertEquals(40, resultMatrixSignificance1.getRowNameWidth());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixSignificance1.showStdDevTipText());\n assertEquals(0, resultMatrixSignificance1.getDefaultMeanWidth());\n \n double[][] doubleArray0 = new double[3][9];\n double[] doubleArray1 = new double[3];\n doubleArray1[0] = 0.0;\n doubleArray1[1] = (double) 1;\n doubleArray1[2] = (double) 1;\n doubleArray0[0] = doubleArray1;\n double[] doubleArray2 = new double[0];\n assertFalse(doubleArray2.equals((Object)doubleArray1));\n \n doubleArray0[1] = doubleArray2;\n double[] doubleArray3 = new double[8];\n assertFalse(doubleArray3.equals((Object)doubleArray1));\n assertFalse(doubleArray3.equals((Object)doubleArray2));\n \n doubleArray3[0] = (double) 0;\n doubleArray3[1] = (double) 1;\n doubleArray3[2] = (double) 1314;\n doubleArray3[3] = (double) 1314;\n doubleArray3[4] = (-663.956582871608);\n doubleArray3[5] = (double) 2;\n doubleArray3[6] = (double) 747;\n doubleArray3[7] = (double) 1314;\n doubleArray0[2] = doubleArray3;\n resultMatrixSignificance1.m_StdDev = doubleArray0;\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixSignificance0.colNameWidthTipText());\n assertFalse(resultMatrixSignificance0.getDefaultShowStdDev());\n assertEquals(0, resultMatrixSignificance0.getDefaultStdDevWidth());\n assertEquals(2, resultMatrixSignificance0.getMeanPrec());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateColNamesTipText());\n assertEquals(0, resultMatrixSignificance0.getColNameWidth());\n assertFalse(resultMatrixSignificance0.getDefaultShowAverage());\n assertEquals(0, resultMatrixSignificance0.getDefaultCountWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultMeanWidth());\n assertFalse(resultMatrixSignificance0.getEnumerateRowNames());\n assertFalse(resultMatrixSignificance0.getRemoveFilterName());\n assertEquals(0, resultMatrixSignificance0.getCountWidth());\n assertFalse(resultMatrixSignificance0.getDefaultEnumerateRowNames());\n assertEquals(9, resultMatrixSignificance0.getRowCount());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixSignificance0.printColNamesTipText());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixSignificance0.removeFilterNameTipText());\n assertTrue(resultMatrixSignificance0.getDefaultPrintRowNames());\n assertEquals(0, resultMatrixSignificance0.getMeanWidth());\n assertEquals(0, resultMatrixSignificance0.getSignificanceWidth());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixSignificance0.showStdDevTipText());\n assertFalse(resultMatrixSignificance0.getPrintColNames());\n assertEquals(40, resultMatrixSignificance0.getDefaultRowNameWidth());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixSignificance0.meanWidthTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixSignificance0.stdDevPrecTipText());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixSignificance0.rowNameWidthTipText());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateRowNamesTipText());\n assertEquals(40, resultMatrixSignificance0.getRowNameWidth());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixSignificance0.stdDevWidthTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixSignificance0.significanceWidthTipText());\n assertFalse(resultMatrixSignificance0.getShowStdDev());\n assertEquals(2, resultMatrixSignificance0.getDefaultStdDevPrec());\n assertEquals(\"Significance only\", resultMatrixSignificance0.getDisplayName());\n assertEquals(0, resultMatrixSignificance0.getDefaultSignificanceWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultColNameWidth());\n assertEquals(2, resultMatrixSignificance0.getStdDevPrec());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixSignificance0.countWidthTipText());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixSignificance0.meanPrecTipText());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixSignificance0.printRowNamesTipText());\n assertFalse(resultMatrixSignificance0.getDefaultRemoveFilterName());\n assertTrue(resultMatrixSignificance0.getDefaultEnumerateColNames());\n assertTrue(resultMatrixSignificance0.getPrintRowNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixSignificance0.showAverageTipText());\n assertTrue(resultMatrixSignificance0.getEnumerateColNames());\n assertFalse(resultMatrixSignificance0.getDefaultPrintColNames());\n assertFalse(resultMatrixSignificance0.getShowAverage());\n assertEquals(2, resultMatrixSignificance0.getDefaultMeanPrec());\n assertEquals(0, resultMatrixSignificance0.getStdDevWidth());\n assertEquals(\"Only outputs the significance indicators. Can be used for spotting patterns.\", resultMatrixSignificance0.globalInfo());\n assertEquals(40, resultMatrixSignificance1.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixSignificance1.getCountWidth());\n assertEquals(1, resultMatrixSignificance1.getColCount());\n assertFalse(resultMatrixSignificance1.getRemoveFilterName());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixSignificance1.printRowNamesTipText());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixSignificance1.countWidthTipText());\n assertEquals(0, resultMatrixSignificance1.getDefaultSignificanceWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixSignificance1.printColNamesTipText());\n assertEquals(0, resultMatrixSignificance1.getDefaultStdDevWidth());\n assertEquals(2, resultMatrixSignificance1.getDefaultMeanPrec());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixSignificance1.meanPrecTipText());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixSignificance1.colNameWidthTipText());\n assertFalse(resultMatrixSignificance1.getDefaultPrintColNames());\n assertTrue(resultMatrixSignificance1.getPrintRowNames());\n assertEquals(1, resultMatrixSignificance1.getVisibleColCount());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixSignificance1.showAverageTipText());\n assertEquals(2, resultMatrixSignificance1.getDefaultStdDevPrec());\n assertTrue(resultMatrixSignificance1.getEnumerateColNames());\n assertEquals(0, resultMatrixSignificance1.getMeanWidth());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixSignificance1.removeFilterNameTipText());\n assertFalse(resultMatrixSignificance1.getShowStdDev());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance1.enumerateColNamesTipText());\n assertEquals(0, resultMatrixSignificance1.getColNameWidth());\n assertEquals(2, resultMatrixSignificance1.getMeanPrec());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixSignificance1.stdDevPrecTipText());\n assertFalse(resultMatrixSignificance1.getDefaultShowStdDev());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixSignificance1.rowNameWidthTipText());\n assertEquals(1, resultMatrixSignificance1.getRowCount());\n assertEquals(\"Only outputs the significance indicators. Can be used for spotting patterns.\", resultMatrixSignificance1.globalInfo());\n assertTrue(resultMatrixSignificance1.getDefaultPrintRowNames());\n assertFalse(resultMatrixSignificance1.getEnumerateRowNames());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixSignificance1.meanWidthTipText());\n assertEquals(2, resultMatrixSignificance1.getStdDevPrec());\n assertEquals(0, resultMatrixSignificance1.getSignificanceWidth());\n assertFalse(resultMatrixSignificance1.getPrintColNames());\n assertFalse(resultMatrixSignificance1.getShowAverage());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixSignificance1.stdDevWidthTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixSignificance1.significanceWidthTipText());\n assertEquals(0, resultMatrixSignificance1.getStdDevWidth());\n assertEquals(0, resultMatrixSignificance1.getDefaultCountWidth());\n assertEquals(\"Significance only\", resultMatrixSignificance1.getDisplayName());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance1.enumerateRowNamesTipText());\n assertTrue(resultMatrixSignificance1.getDefaultEnumerateColNames());\n assertFalse(resultMatrixSignificance1.getDefaultEnumerateRowNames());\n assertFalse(resultMatrixSignificance1.getDefaultShowAverage());\n assertEquals(1, resultMatrixSignificance1.getVisibleRowCount());\n assertFalse(resultMatrixSignificance1.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixSignificance1.getDefaultColNameWidth());\n assertEquals(40, resultMatrixSignificance1.getRowNameWidth());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixSignificance1.showStdDevTipText());\n assertEquals(0, resultMatrixSignificance1.getDefaultMeanWidth());\n \n ResultMatrixPlainText.main(stringArray1);\n assertFalse(stringArray1.equals((Object)stringArray0));\n assertNotSame(stringArray1, stringArray0);\n assertEquals(5, stringArray1.length);\n \n String string0 = resultMatrixSignificance1.showAverageTipText();\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixSignificance0.colNameWidthTipText());\n assertFalse(resultMatrixSignificance0.getDefaultShowStdDev());\n assertEquals(0, resultMatrixSignificance0.getDefaultStdDevWidth());\n assertEquals(2, resultMatrixSignificance0.getMeanPrec());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateColNamesTipText());\n assertEquals(0, resultMatrixSignificance0.getColNameWidth());\n assertFalse(resultMatrixSignificance0.getDefaultShowAverage());\n assertEquals(0, resultMatrixSignificance0.getDefaultCountWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultMeanWidth());\n assertFalse(resultMatrixSignificance0.getEnumerateRowNames());\n assertFalse(resultMatrixSignificance0.getRemoveFilterName());\n assertEquals(0, resultMatrixSignificance0.getCountWidth());\n assertFalse(resultMatrixSignificance0.getDefaultEnumerateRowNames());\n assertEquals(9, resultMatrixSignificance0.getRowCount());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixSignificance0.printColNamesTipText());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixSignificance0.removeFilterNameTipText());\n assertTrue(resultMatrixSignificance0.getDefaultPrintRowNames());\n assertEquals(0, resultMatrixSignificance0.getMeanWidth());\n assertEquals(0, resultMatrixSignificance0.getSignificanceWidth());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixSignificance0.showStdDevTipText());\n assertFalse(resultMatrixSignificance0.getPrintColNames());\n assertEquals(40, resultMatrixSignificance0.getDefaultRowNameWidth());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixSignificance0.meanWidthTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixSignificance0.stdDevPrecTipText());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixSignificance0.rowNameWidthTipText());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateRowNamesTipText());\n assertEquals(40, resultMatrixSignificance0.getRowNameWidth());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixSignificance0.stdDevWidthTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixSignificance0.significanceWidthTipText());\n assertFalse(resultMatrixSignificance0.getShowStdDev());\n assertEquals(2, resultMatrixSignificance0.getDefaultStdDevPrec());\n assertEquals(\"Significance only\", resultMatrixSignificance0.getDisplayName());\n assertEquals(0, resultMatrixSignificance0.getDefaultSignificanceWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultColNameWidth());\n assertEquals(2, resultMatrixSignificance0.getStdDevPrec());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixSignificance0.countWidthTipText());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixSignificance0.meanPrecTipText());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixSignificance0.printRowNamesTipText());\n assertFalse(resultMatrixSignificance0.getDefaultRemoveFilterName());\n assertTrue(resultMatrixSignificance0.getDefaultEnumerateColNames());\n assertTrue(resultMatrixSignificance0.getPrintRowNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixSignificance0.showAverageTipText());\n assertTrue(resultMatrixSignificance0.getEnumerateColNames());\n assertFalse(resultMatrixSignificance0.getDefaultPrintColNames());\n assertFalse(resultMatrixSignificance0.getShowAverage());\n assertEquals(2, resultMatrixSignificance0.getDefaultMeanPrec());\n assertEquals(0, resultMatrixSignificance0.getStdDevWidth());\n assertEquals(\"Only outputs the significance indicators. Can be used for spotting patterns.\", resultMatrixSignificance0.globalInfo());\n assertEquals(40, resultMatrixSignificance1.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixSignificance1.getCountWidth());\n assertEquals(1, resultMatrixSignificance1.getColCount());\n assertFalse(resultMatrixSignificance1.getRemoveFilterName());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixSignificance1.printRowNamesTipText());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixSignificance1.countWidthTipText());\n assertEquals(0, resultMatrixSignificance1.getDefaultSignificanceWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixSignificance1.printColNamesTipText());\n assertEquals(0, resultMatrixSignificance1.getDefaultStdDevWidth());\n assertEquals(2, resultMatrixSignificance1.getDefaultMeanPrec());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixSignificance1.meanPrecTipText());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixSignificance1.colNameWidthTipText());\n assertFalse(resultMatrixSignificance1.getDefaultPrintColNames());\n assertTrue(resultMatrixSignificance1.getPrintRowNames());\n assertEquals(1, resultMatrixSignificance1.getVisibleColCount());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixSignificance1.showAverageTipText());\n assertEquals(2, resultMatrixSignificance1.getDefaultStdDevPrec());\n assertTrue(resultMatrixSignificance1.getEnumerateColNames());\n assertEquals(0, resultMatrixSignificance1.getMeanWidth());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixSignificance1.removeFilterNameTipText());\n assertFalse(resultMatrixSignificance1.getShowStdDev());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance1.enumerateColNamesTipText());\n assertEquals(0, resultMatrixSignificance1.getColNameWidth());\n assertEquals(2, resultMatrixSignificance1.getMeanPrec());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixSignificance1.stdDevPrecTipText());\n assertFalse(resultMatrixSignificance1.getDefaultShowStdDev());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixSignificance1.rowNameWidthTipText());\n assertEquals(1, resultMatrixSignificance1.getRowCount());\n assertEquals(\"Only outputs the significance indicators. Can be used for spotting patterns.\", resultMatrixSignificance1.globalInfo());\n assertTrue(resultMatrixSignificance1.getDefaultPrintRowNames());\n assertFalse(resultMatrixSignificance1.getEnumerateRowNames());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixSignificance1.meanWidthTipText());\n assertEquals(2, resultMatrixSignificance1.getStdDevPrec());\n assertEquals(0, resultMatrixSignificance1.getSignificanceWidth());\n assertFalse(resultMatrixSignificance1.getPrintColNames());\n assertFalse(resultMatrixSignificance1.getShowAverage());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixSignificance1.stdDevWidthTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixSignificance1.significanceWidthTipText());\n assertEquals(0, resultMatrixSignificance1.getStdDevWidth());\n assertEquals(0, resultMatrixSignificance1.getDefaultCountWidth());\n assertEquals(\"Significance only\", resultMatrixSignificance1.getDisplayName());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance1.enumerateRowNamesTipText());\n assertTrue(resultMatrixSignificance1.getDefaultEnumerateColNames());\n assertFalse(resultMatrixSignificance1.getDefaultEnumerateRowNames());\n assertFalse(resultMatrixSignificance1.getDefaultShowAverage());\n assertEquals(1, resultMatrixSignificance1.getVisibleRowCount());\n assertFalse(resultMatrixSignificance1.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixSignificance1.getDefaultColNameWidth());\n assertEquals(40, resultMatrixSignificance1.getRowNameWidth());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixSignificance1.showStdDevTipText());\n assertEquals(0, resultMatrixSignificance1.getDefaultMeanWidth());\n assertFalse(resultMatrixSignificance0.equals((Object)resultMatrixSignificance1));\n assertFalse(resultMatrixSignificance1.equals((Object)resultMatrixSignificance0));\n assertNotSame(resultMatrixSignificance0, resultMatrixSignificance1);\n assertNotSame(resultMatrixSignificance1, resultMatrixSignificance0);\n assertNotNull(string0);\n assertEquals(\"Whether to show the row with averages.\", string0);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n \n ResultMatrixCSV resultMatrixCSV0 = new ResultMatrixCSV(2, 2);\n assertEquals(25, resultMatrixCSV0.getRowNameWidth());\n assertFalse(resultMatrixCSV0.getPrintColNames());\n assertEquals(0, resultMatrixCSV0.getSignificanceWidth());\n assertEquals(2, resultMatrixCSV0.getStdDevPrec());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixCSV0.meanWidthTipText());\n assertFalse(resultMatrixCSV0.getShowStdDev());\n assertFalse(resultMatrixCSV0.getShowAverage());\n assertTrue(resultMatrixCSV0.getDefaultPrintRowNames());\n assertEquals(2, resultMatrixCSV0.getVisibleRowCount());\n assertFalse(resultMatrixCSV0.getDefaultEnumerateRowNames());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixCSV0.showStdDevTipText());\n assertEquals(2, resultMatrixCSV0.getRowCount());\n assertTrue(resultMatrixCSV0.getDefaultEnumerateColNames());\n assertFalse(resultMatrixCSV0.getDefaultPrintColNames());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixCSV0.removeFilterNameTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixCSV0.stdDevPrecTipText());\n assertEquals(2, resultMatrixCSV0.getMeanPrec());\n assertEquals(0, resultMatrixCSV0.getDefaultStdDevWidth());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixCSV0.enumerateColNamesTipText());\n assertEquals(0, resultMatrixCSV0.getCountWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixCSV0.printColNamesTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixCSV0.significanceWidthTipText());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixCSV0.showAverageTipText());\n assertTrue(resultMatrixCSV0.getPrintRowNames());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixCSV0.printRowNamesTipText());\n assertEquals(2, resultMatrixCSV0.getDefaultMeanPrec());\n assertFalse(resultMatrixCSV0.getDefaultShowStdDev());\n assertEquals(\"CSV\", resultMatrixCSV0.getDisplayName());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixCSV0.countWidthTipText());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixCSV0.rowNameWidthTipText());\n assertFalse(resultMatrixCSV0.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixCSV0.getDefaultSignificanceWidth());\n assertEquals(2, resultMatrixCSV0.getVisibleColCount());\n assertEquals(0, resultMatrixCSV0.getColNameWidth());\n assertEquals(\"Generates the matrix in CSV ('comma-separated values') format.\", resultMatrixCSV0.globalInfo());\n assertEquals(0, resultMatrixCSV0.getDefaultColNameWidth());\n assertEquals(0, resultMatrixCSV0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixCSV0.getMeanWidth());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixCSV0.enumerateRowNamesTipText());\n assertFalse(resultMatrixCSV0.getDefaultShowAverage());\n assertTrue(resultMatrixCSV0.getEnumerateColNames());\n assertEquals(2, resultMatrixCSV0.getColCount());\n assertEquals(0, resultMatrixCSV0.getStdDevWidth());\n assertEquals(25, resultMatrixCSV0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixCSV0.getDefaultCountWidth());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixCSV0.stdDevWidthTipText());\n assertEquals(2, resultMatrixCSV0.getDefaultStdDevPrec());\n assertFalse(resultMatrixCSV0.getEnumerateRowNames());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixCSV0.colNameWidthTipText());\n assertFalse(resultMatrixCSV0.getRemoveFilterName());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixCSV0.meanPrecTipText());\n assertNotNull(resultMatrixCSV0);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n \n String string1 = resultMatrixCSV0.getRevision();\n assertEquals(25, resultMatrixCSV0.getRowNameWidth());\n assertFalse(resultMatrixCSV0.getPrintColNames());\n assertEquals(0, resultMatrixCSV0.getSignificanceWidth());\n assertEquals(2, resultMatrixCSV0.getStdDevPrec());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixCSV0.meanWidthTipText());\n assertFalse(resultMatrixCSV0.getShowStdDev());\n assertFalse(resultMatrixCSV0.getShowAverage());\n assertTrue(resultMatrixCSV0.getDefaultPrintRowNames());\n assertEquals(2, resultMatrixCSV0.getVisibleRowCount());\n assertFalse(resultMatrixCSV0.getDefaultEnumerateRowNames());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixCSV0.showStdDevTipText());\n assertEquals(2, resultMatrixCSV0.getRowCount());\n assertTrue(resultMatrixCSV0.getDefaultEnumerateColNames());\n assertFalse(resultMatrixCSV0.getDefaultPrintColNames());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixCSV0.removeFilterNameTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixCSV0.stdDevPrecTipText());\n assertEquals(2, resultMatrixCSV0.getMeanPrec());\n assertEquals(0, resultMatrixCSV0.getDefaultStdDevWidth());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixCSV0.enumerateColNamesTipText());\n assertEquals(0, resultMatrixCSV0.getCountWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixCSV0.printColNamesTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixCSV0.significanceWidthTipText());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixCSV0.showAverageTipText());\n assertTrue(resultMatrixCSV0.getPrintRowNames());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixCSV0.printRowNamesTipText());\n assertEquals(2, resultMatrixCSV0.getDefaultMeanPrec());\n assertFalse(resultMatrixCSV0.getDefaultShowStdDev());\n assertEquals(\"CSV\", resultMatrixCSV0.getDisplayName());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixCSV0.countWidthTipText());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixCSV0.rowNameWidthTipText());\n assertFalse(resultMatrixCSV0.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixCSV0.getDefaultSignificanceWidth());\n assertEquals(2, resultMatrixCSV0.getVisibleColCount());\n assertEquals(0, resultMatrixCSV0.getColNameWidth());\n assertEquals(\"Generates the matrix in CSV ('comma-separated values') format.\", resultMatrixCSV0.globalInfo());\n assertEquals(0, resultMatrixCSV0.getDefaultColNameWidth());\n assertEquals(0, resultMatrixCSV0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixCSV0.getMeanWidth());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixCSV0.enumerateRowNamesTipText());\n assertFalse(resultMatrixCSV0.getDefaultShowAverage());\n assertTrue(resultMatrixCSV0.getEnumerateColNames());\n assertEquals(2, resultMatrixCSV0.getColCount());\n assertEquals(0, resultMatrixCSV0.getStdDevWidth());\n assertEquals(25, resultMatrixCSV0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixCSV0.getDefaultCountWidth());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixCSV0.stdDevWidthTipText());\n assertEquals(2, resultMatrixCSV0.getDefaultStdDevPrec());\n assertFalse(resultMatrixCSV0.getEnumerateRowNames());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixCSV0.colNameWidthTipText());\n assertFalse(resultMatrixCSV0.getRemoveFilterName());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixCSV0.meanPrecTipText());\n assertFalse(string1.equals((Object)string0));\n assertNotNull(string1);\n assertEquals(\"8034\", string1);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n \n resultMatrixSignificance1.setCount(2, (-1008.393551180478));\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixSignificance0.colNameWidthTipText());\n assertFalse(resultMatrixSignificance0.getDefaultShowStdDev());\n assertEquals(0, resultMatrixSignificance0.getDefaultStdDevWidth());\n assertEquals(2, resultMatrixSignificance0.getMeanPrec());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateColNamesTipText());\n assertEquals(0, resultMatrixSignificance0.getColNameWidth());\n assertFalse(resultMatrixSignificance0.getDefaultShowAverage());\n assertEquals(0, resultMatrixSignificance0.getDefaultCountWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultMeanWidth());\n assertFalse(resultMatrixSignificance0.getEnumerateRowNames());\n assertFalse(resultMatrixSignificance0.getRemoveFilterName());\n assertEquals(0, resultMatrixSignificance0.getCountWidth());\n assertFalse(resultMatrixSignificance0.getDefaultEnumerateRowNames());\n assertEquals(9, resultMatrixSignificance0.getRowCount());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixSignificance0.printColNamesTipText());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixSignificance0.removeFilterNameTipText());\n assertTrue(resultMatrixSignificance0.getDefaultPrintRowNames());\n assertEquals(0, resultMatrixSignificance0.getMeanWidth());\n assertEquals(0, resultMatrixSignificance0.getSignificanceWidth());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixSignificance0.showStdDevTipText());\n assertFalse(resultMatrixSignificance0.getPrintColNames());\n assertEquals(40, resultMatrixSignificance0.getDefaultRowNameWidth());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixSignificance0.meanWidthTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixSignificance0.stdDevPrecTipText());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixSignificance0.rowNameWidthTipText());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateRowNamesTipText());\n assertEquals(40, resultMatrixSignificance0.getRowNameWidth());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixSignificance0.stdDevWidthTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixSignificance0.significanceWidthTipText());\n assertFalse(resultMatrixSignificance0.getShowStdDev());\n assertEquals(2, resultMatrixSignificance0.getDefaultStdDevPrec());\n assertEquals(\"Significance only\", resultMatrixSignificance0.getDisplayName());\n assertEquals(0, resultMatrixSignificance0.getDefaultSignificanceWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultColNameWidth());\n assertEquals(2, resultMatrixSignificance0.getStdDevPrec());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixSignificance0.countWidthTipText());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixSignificance0.meanPrecTipText());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixSignificance0.printRowNamesTipText());\n assertFalse(resultMatrixSignificance0.getDefaultRemoveFilterName());\n assertTrue(resultMatrixSignificance0.getDefaultEnumerateColNames());\n assertTrue(resultMatrixSignificance0.getPrintRowNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixSignificance0.showAverageTipText());\n assertTrue(resultMatrixSignificance0.getEnumerateColNames());\n assertFalse(resultMatrixSignificance0.getDefaultPrintColNames());\n assertFalse(resultMatrixSignificance0.getShowAverage());\n assertEquals(2, resultMatrixSignificance0.getDefaultMeanPrec());\n assertEquals(0, resultMatrixSignificance0.getStdDevWidth());\n assertEquals(\"Only outputs the significance indicators. Can be used for spotting patterns.\", resultMatrixSignificance0.globalInfo());\n assertEquals(40, resultMatrixSignificance1.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixSignificance1.getCountWidth());\n assertEquals(1, resultMatrixSignificance1.getColCount());\n assertFalse(resultMatrixSignificance1.getRemoveFilterName());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixSignificance1.printRowNamesTipText());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixSignificance1.countWidthTipText());\n assertEquals(0, resultMatrixSignificance1.getDefaultSignificanceWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixSignificance1.printColNamesTipText());\n assertEquals(0, resultMatrixSignificance1.getDefaultStdDevWidth());\n assertEquals(2, resultMatrixSignificance1.getDefaultMeanPrec());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixSignificance1.meanPrecTipText());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixSignificance1.colNameWidthTipText());\n assertFalse(resultMatrixSignificance1.getDefaultPrintColNames());\n assertTrue(resultMatrixSignificance1.getPrintRowNames());\n assertEquals(1, resultMatrixSignificance1.getVisibleColCount());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixSignificance1.showAverageTipText());\n assertEquals(2, resultMatrixSignificance1.getDefaultStdDevPrec());\n assertTrue(resultMatrixSignificance1.getEnumerateColNames());\n assertEquals(0, resultMatrixSignificance1.getMeanWidth());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixSignificance1.removeFilterNameTipText());\n assertFalse(resultMatrixSignificance1.getShowStdDev());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance1.enumerateColNamesTipText());\n assertEquals(0, resultMatrixSignificance1.getColNameWidth());\n assertEquals(2, resultMatrixSignificance1.getMeanPrec());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixSignificance1.stdDevPrecTipText());\n assertFalse(resultMatrixSignificance1.getDefaultShowStdDev());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixSignificance1.rowNameWidthTipText());\n assertEquals(1, resultMatrixSignificance1.getRowCount());\n assertEquals(\"Only outputs the significance indicators. Can be used for spotting patterns.\", resultMatrixSignificance1.globalInfo());\n assertTrue(resultMatrixSignificance1.getDefaultPrintRowNames());\n assertFalse(resultMatrixSignificance1.getEnumerateRowNames());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixSignificance1.meanWidthTipText());\n assertEquals(2, resultMatrixSignificance1.getStdDevPrec());\n assertEquals(0, resultMatrixSignificance1.getSignificanceWidth());\n assertFalse(resultMatrixSignificance1.getPrintColNames());\n assertFalse(resultMatrixSignificance1.getShowAverage());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixSignificance1.stdDevWidthTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixSignificance1.significanceWidthTipText());\n assertEquals(0, resultMatrixSignificance1.getStdDevWidth());\n assertEquals(0, resultMatrixSignificance1.getDefaultCountWidth());\n assertEquals(\"Significance only\", resultMatrixSignificance1.getDisplayName());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance1.enumerateRowNamesTipText());\n assertTrue(resultMatrixSignificance1.getDefaultEnumerateColNames());\n assertFalse(resultMatrixSignificance1.getDefaultEnumerateRowNames());\n assertFalse(resultMatrixSignificance1.getDefaultShowAverage());\n assertEquals(1, resultMatrixSignificance1.getVisibleRowCount());\n assertFalse(resultMatrixSignificance1.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixSignificance1.getDefaultColNameWidth());\n assertEquals(40, resultMatrixSignificance1.getRowNameWidth());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixSignificance1.showStdDevTipText());\n assertEquals(0, resultMatrixSignificance1.getDefaultMeanWidth());\n assertFalse(resultMatrixSignificance0.equals((Object)resultMatrixSignificance1));\n assertFalse(resultMatrixSignificance1.equals((Object)resultMatrixSignificance0));\n assertNotSame(resultMatrixSignificance0, resultMatrixSignificance1);\n assertNotSame(resultMatrixSignificance1, resultMatrixSignificance0);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n \n // Undeclared exception!\n try { \n resultMatrixSignificance1.toStringHeader();\n fail(\"Expecting exception: ArrayIndexOutOfBoundsException\");\n \n } catch(ArrayIndexOutOfBoundsException e) {\n //\n // 0\n //\n verifyException(\"weka.experiment.ResultMatrix\", e);\n }\n }", "title": "" }, { "docid": "bf0cbff5292a20d979722c9932f732f8", "score": "0.543459", "text": "@Test(timeout = 4000)\n public void test064() throws Throwable {\n int int0 = 2647;\n ResultMatrixHTML resultMatrixHTML0 = new ResultMatrixHTML(0, 2647);\n resultMatrixHTML0.setEnumerateColNames(true);\n ResultMatrixGnuPlot resultMatrixGnuPlot0 = new ResultMatrixGnuPlot(resultMatrixHTML0);\n // Undeclared exception!\n resultMatrixGnuPlot0.toStringSummary();\n }", "title": "" }, { "docid": "623aff586293a124aa7950f36858ba67", "score": "0.54278487", "text": "@Test\n public void testCoverageClassTestBC2Test1() {\n\n int a = 5;\n int b = 5;\n double r = 2500.0;\n\n tcc = new TestCoverageClass();\n double result = tcc.testCoverageMethod2(a, b);\n assertEquals(\"Unexpected calculation result!\", r, result, 0.0);\n }", "title": "" }, { "docid": "7f69a7dd02a5b665a1334f90895fa234", "score": "0.5427152", "text": "@Test\n public void qualityTest() {\n // TODO: test quality\n }", "title": "" }, { "docid": "9d227099353ac101d2b8c8c47a4f74b9", "score": "0.5422736", "text": "@Test\n public void testLogP() {\n System.out.println(\"logP\");\n ChiSquareDistribution instance = new ChiSquareDistribution(20);\n instance.rand();\n assertEquals(Math.log(2.559896e-18), instance.logp(0.1), 1E-5);\n assertEquals(Math.log(1.632262e-09), instance.logp(1), 1E-5);\n assertEquals(Math.log(0.01813279), instance.logp(10), 1E-5);\n assertEquals(Math.log(0.0625550), instance.logp(20), 1E-5);\n assertEquals(Math.log(7.2997e-05), instance.logp(50), 1E-5);\n assertEquals(Math.log(5.190544e-13), instance.logp(100), 1E-5);\n }", "title": "" }, { "docid": "ef767752adb36d0a10832f47e9372900", "score": "0.54169035", "text": "@Test\n public void test01() throws Throwable {\n Discretize discretize0 = new Discretize();\n String string0 = discretize0.getBinRangesString((-3745));\n assertEquals(10, discretize0.getBins());\n assertEquals((-1.0), discretize0.getDesiredWeightOfInstancesPerInterval(), 0.01D);\n assertFalse(discretize0.getUseBinNumbers());\n assertFalse(discretize0.getMakeBinary());\n }", "title": "" }, { "docid": "88f02cc28d254c8e214c8f6ab5adae41", "score": "0.5412683", "text": "@Test\n public void test20() throws Throwable {\n Discretize discretize0 = new Discretize();\n String string0 = discretize0.makeBinaryTipText();\n assertEquals((-1.0), discretize0.getDesiredWeightOfInstancesPerInterval(), 0.01D);\n assertFalse(discretize0.getUseBinNumbers());\n assertEquals(10, discretize0.getBins());\n assertFalse(discretize0.getMakeBinary());\n assertEquals(\"Make resulting attributes binary.\", string0);\n }", "title": "" }, { "docid": "2cbb97e2870b4f80699367022fa04bd0", "score": "0.5412178", "text": "int getCurrentCoverageAmount();", "title": "" }, { "docid": "ce399b14157f4c9c10db862ede81789a", "score": "0.5407293", "text": "@Test\n public void test_08() {\n Log.debug(\"Test\");\n CompareEffects comp = new CompareEffects(genomeName, randSeed, verbose);\n comp.initSnpEffPredictor();\n\n // Read CDS (hg37, chromosome Y) from a file and store them indexed by transcript ID\n HashMap<String, String> cdsByTrId = new HashMap<>();\n String cdsY = Gpr.readFile(path(\"cds_hg37_chrY.txt\"));\n String[] lines = cdsY.split(\"\\n\");\n for (String line : lines) {\n String[] recs = line.split(\"\\t\");\n cdsByTrId.put(recs[0], recs[1]);\n }\n\n // Calculate CDS from chromosome Y and compare\n int totalOk = 0;\n for (Gene gint : comp.config.getGenome().getGenes()) {\n for (Transcript tint : gint) {\n String seqOri = cdsByTrId.get(tint.getId());\n\n if (seqOri != null) {\n String seq = tint.cds();\n // Compare CDS sequences\n if (!seqOri.equalsIgnoreCase(seq))\n throw new RuntimeException(\"CDS do not match:\\nTranscipt:\" + tint.getId() + \" \" + tint.isStrandMinus() + \"\\n\\t\" + seq + \"\\n\\t\" + seqOri + \"\\n\");\n else {\n if (verbose) Log.info(\"CDS compare:\\n\\t\" + seqOri + \"\\n\\t\" + seq);\n totalOk++;\n }\n }\n }\n }\n if (totalOk == 0) throw new RuntimeException(\"No sequences compared!\");\n }", "title": "" }, { "docid": "7c203bc2076378550baa2a0e828413c7", "score": "0.5406096", "text": "public static void main(String[] args) throws Exception {\n // Some variables for sizing test numbers in bits\n int order1 = 100;\n int order2 = 60;\n int order3 = 1800; // #bits for testing Karatsuba and Burnikel-Ziegler\n int order4 = 3000; // #bits for testing Toom-Cook\n int order5 = 1000000; // #bits for testing Schoenhage-Strassen\n int order6 = 3500000; // #bits for testing Barrett\n \n if (args.length >0)\n order1 = (int)((Integer.parseInt(args[0]))* 3.333);\n if (args.length >1)\n order2 = (int)((Integer.parseInt(args[1]))* 3.333);\n if (args.length >2)\n order3 = (int)((Integer.parseInt(args[2]))* 3.333);\n if (args.length >3)\n order4 = (int)((Integer.parseInt(args[3]))* 3.333);\n if (args.length >4)\n order5 = (int)((Integer.parseInt(args[4]))* 3.333);\n if (args.length >5)\n order6 = (int)((Integer.parseInt(args[5]))* 3.333);\n \n prime();\n nextProbablePrime();\n \n arithmetic(order1); // small numbers\n arithmetic(order3); // Karatsuba / Burnikel-Ziegler range\n arithmetic(order4); // Toom-Cook range\n arithmetic(order5); // SS range\n arithmetic(order6); // Barrett range\n \n divideAndRemainder(order1); // small numbers\n divideAndRemainder(order3); // Karatsuba / Burnikel-Ziegler range\n divideAndRemainder(order4); // Toom-Cook range\n divideAndRemainder(order5); // SS range\n divideAndRemainder(order6); // Barrett range\n \n pow(order1);\n \n bitCount();\n bitLength();\n bitOps(order1);\n bitwise(order1);\n \n shift(order1);\n \n byteArrayConv(order1);\n \n modInv(order1); // small numbers\n modInv(order3); // Karatsuba / Burnikel-Ziegler range\n modInv(order4); // Toom-Cook range\n \n modExp(order1, order2);\n modExp2(order1);\n \n stringConv();\n serialize();\n \n if (failure)\n throw new RuntimeException(\"Failure in BigIntegerTest.\");\n }", "title": "" }, { "docid": "bfb7f89310a1911c28aa22df6173bf2b", "score": "0.5405477", "text": "@Test\n public void testCPU() {\n System.out.println(\"CPU\");\n ArffParser parser = new ArffParser();\n parser.setResponseIndex(6);\n try {\n AttributeDataset data = parser.parse(this.getClass().getResourceAsStream(\"/smile/data/weka/cpu.arff\"));\n double[] datay = data.toArray(new double[data.size()]);\n double[][] datax = data.toArray(new double[data.size()][]);\n\n int n = datax.length;\n int m = 3 * n / 4;\n int[] index = Math.permutate(n);\n \n double[][] trainx = new double[m][];\n double[] trainy = new double[m]; \n for (int i = 0; i < m; i++) {\n trainx[i] = datax[index[i]];\n trainy[i] = datay[index[i]];\n }\n \n double[][] testx = new double[n-m][];\n double[] testy = new double[n-m]; \n for (int i = m; i < n; i++) {\n testx[i-m] = datax[index[i]];\n testy[i-m] = datay[index[i]]; \n }\n\n RegressionTree tree = new RegressionTree(data.attributes(), trainx, trainy, 20);\n System.out.format(\"RMSE = %.4f\\n\", Validation.test(tree, testx, testy));\n \n double[] importance = tree.importance();\n index = QuickSort.sort(importance);\n for (int i = importance.length; i-- > 0; ) {\n System.out.format(\"%s importance is %.4f\\n\", data.attributes()[index[i]], importance[i]);\n }\n } catch (Exception ex) {\n System.err.println(ex);\n }\n }", "title": "" } ]
a4ee958400a6a01c81bcd5e1c9490739
Adds a value to property HasEmailAddress as an RDF2Go node
[ { "docid": "da1ba207455da699237c3454e967e394", "score": "0.8410624", "text": "public void addHasEmailAddress( org.ontoware.rdf2go.model.node.Node value) {\r\n\t\tBase.add(this.model, this.getResource(), HASEMAILADDRESS, value);\r\n\t}", "title": "" } ]
[ { "docid": "a3ad650bbd6a17c8b7cad8b6039d2c91", "score": "0.7881771", "text": "public void setHasEmailAddress( org.ontoware.rdf2go.model.node.Node value) {\r\n\t\tBase.set(this.model, this.getResource(), HASEMAILADDRESS, value);\r\n\t}", "title": "" }, { "docid": "b399fe8d20067cd8766c014f37a71dba", "score": "0.7673813", "text": "public void addHasEmailAddress(EmailAddress value) {\r\n\t\tBase.add(this.model, this.getResource(), HASEMAILADDRESS, value);\r\n\t}", "title": "" }, { "docid": "4594a864332c382d4f63256cce1e1d7b", "score": "0.74698305", "text": "public static void addHasEmailAddress( Model model, org.ontoware.rdf2go.model.node.Resource instanceResource, org.ontoware.rdf2go.model.node.Node value) {\r\n\t\tBase.add(model, instanceResource, HASEMAILADDRESS, value);\r\n\t}", "title": "" }, { "docid": "9150a3c060ef5746a2f92a50c339da6a", "score": "0.7295688", "text": "public static void addHasEmailAddress(Model model, org.ontoware.rdf2go.model.node.Resource instanceResource, EmailAddress value) {\r\n\t\tBase.add(model, instanceResource, HASEMAILADDRESS, value);\r\n\t}", "title": "" }, { "docid": "fdede289ab19a25d51349f695b239393", "score": "0.701355", "text": "public void setHasEmailAddress(EmailAddress value) {\r\n\t\tBase.set(this.model, this.getResource(), HASEMAILADDRESS, value);\r\n\t}", "title": "" }, { "docid": "5c5072b6dc7dd430d7d505acc910c7d0", "score": "0.69604266", "text": "public static void setHasEmailAddress( Model model, org.ontoware.rdf2go.model.node.Resource instanceResource, org.ontoware.rdf2go.model.node.Node value) {\r\n\t\tBase.set(model, instanceResource, HASEMAILADDRESS, value);\r\n\t}", "title": "" }, { "docid": "44a4880a63ee1d8fa39b2a6f9f2a845f", "score": "0.66703796", "text": "public static void setHasEmailAddress(Model model, org.ontoware.rdf2go.model.node.Resource instanceResource, EmailAddress value) {\r\n\t\tBase.set(model, instanceResource, HASEMAILADDRESS, value);\r\n\t}", "title": "" }, { "docid": "9fcdb7696343a93045967947c03db7b6", "score": "0.63276297", "text": "public ReactorResult<org.ontoware.rdf2go.model.node.Node> getAllHasEmailAddress_asNode_() {\r\n\t\treturn Base.getAll_as(this.model, this.getResource(), HASEMAILADDRESS, org.ontoware.rdf2go.model.node.Node.class);\r\n\t}", "title": "" }, { "docid": "d657c9be63e9b4c923400917c078c286", "score": "0.6230034", "text": "public com.vshare.engine.avro.model.AvroDummData.Builder setEmailAddress(java.lang.CharSequence value) {\n validate(fields()[2], value);\n this.email_address = value;\n fieldSetFlags()[2] = true;\n return this;\n }", "title": "" }, { "docid": "22d315ea0b6a8dc97604623d35c79fd2", "score": "0.60636234", "text": "public static ReactorResult<org.ontoware.rdf2go.model.node.Node> getAllHasEmailAddress_asNode_(Model model, org.ontoware.rdf2go.model.node.Resource instanceResource) {\r\n\t\treturn Base.getAll_as(model, instanceResource, HASEMAILADDRESS, org.ontoware.rdf2go.model.node.Node.class);\r\n\t}", "title": "" }, { "docid": "00a497e75e83b5c21a8272684ad500ee", "score": "0.6022559", "text": "public void addHasPostalAddress( org.ontoware.rdf2go.model.node.Node value) {\r\n\t\tBase.add(this.model, this.getResource(), HASPOSTALADDRESS, value);\r\n\t}", "title": "" }, { "docid": "48a629e9345e4b70b813539f0da8164d", "score": "0.60207134", "text": "public void setEmailAddress(java.lang.CharSequence value) {\n this.email_address = value;\n }", "title": "" }, { "docid": "4d99d6774074a703306ccc8f4b03f032", "score": "0.6011702", "text": "public boolean hasEmailAddress() {\n return fieldSetFlags()[2];\n }", "title": "" }, { "docid": "dfb1af284d8f6e1489e8bb8ff465fdf7", "score": "0.59853595", "text": "@ApiModelProperty(example = \"johns@mylib.org\", value = \"The email address. Mandatory.\")\n @JsonProperty(JSON_PROPERTY_EMAIL_ADDRESS)\n @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)\n @JacksonXmlProperty(localName = \"email_address\")\n\n public String getEmailAddress() {\n return emailAddress;\n }", "title": "" }, { "docid": "7fc4aa3a7edbb25b5fe378f1c22f8472", "score": "0.59794956", "text": "public ClosableIterator<org.ontoware.rdf2go.model.node.Node> getAllHasEmailAddress_asNode() {\r\n\t\treturn Base.getAll_asNode(this.model, this.getResource(), HASEMAILADDRESS);\r\n\t}", "title": "" }, { "docid": "8b3a640a04a470cd039eef5034820c5e", "score": "0.5914704", "text": "java.lang.String getEmailAddress();", "title": "" }, { "docid": "b5237c42f1ceb9795dbce9c4899fba5d", "score": "0.5839378", "text": "public void removeHasEmailAddress( org.ontoware.rdf2go.model.node.Node value) {\r\n\t\tBase.remove(this.model, this.getResource(), HASEMAILADDRESS, value);\r\n\t}", "title": "" }, { "docid": "fc959731872262f051c4ae4760e36fd7", "score": "0.5782161", "text": "public void setEmailAddress( String email )\n {\n emailAddress = email;\n }", "title": "" }, { "docid": "084b94400f36728a2f45e731d159a763", "score": "0.5765248", "text": "String getEmailAddress();", "title": "" }, { "docid": "3dce62cfad1bc6f5ee02f98e851fc880", "score": "0.5726892", "text": "public void setEmailAddress(String strEmailAddress)\n {\n emailAddress = strEmailAddress;\n }", "title": "" }, { "docid": "72bc93e4c6b44efc1b84388c5b8ae597", "score": "0.5701549", "text": "public static ClosableIterator<org.ontoware.rdf2go.model.node.Node> getAllHasEmailAddress_asNode(Model model, org.ontoware.rdf2go.model.node.Resource instanceResource) {\r\n\t\treturn Base.getAll_asNode(model, instanceResource, HASEMAILADDRESS);\r\n\t}", "title": "" }, { "docid": "f0dd9f42f134ee965f5e53dfb105b5d1", "score": "0.5688679", "text": "public static void addHasPostalAddress( Model model, org.ontoware.rdf2go.model.node.Resource instanceResource, org.ontoware.rdf2go.model.node.Node value) {\r\n\t\tBase.add(model, instanceResource, HASPOSTALADDRESS, value);\r\n\t}", "title": "" }, { "docid": "879d7f65a381412ccef747f98267ae9f", "score": "0.56369317", "text": "public String getEmailAddress()\n {\n return emailAddress;\n }", "title": "" }, { "docid": "26a455c979b33ad777aedccea24e66fd", "score": "0.56338316", "text": "public void setHasPostalAddress( org.ontoware.rdf2go.model.node.Node value) {\r\n\t\tBase.set(this.model, this.getResource(), HASPOSTALADDRESS, value);\r\n\t}", "title": "" }, { "docid": "8915429818f3c6d544900549c83e2669", "score": "0.56168354", "text": "public void setEmailAddress(java.lang.String param){\r\n \r\n this.localEmailAddress=param;\r\n \r\n\r\n }", "title": "" }, { "docid": "c1ede87262a892832b75c656ae988b20", "score": "0.5588681", "text": "public void setEmailAddress(String emailAddress)\r\n\t{\r\n\t\tthis.emailAddress=emailAddress;\r\n\t}", "title": "" }, { "docid": "5974dbc2df94f248e187b9856b2ade6b", "score": "0.5586803", "text": "public String getEmailAddress() {\r\n return this.emailAddress;\r\n }", "title": "" }, { "docid": "ce15215d12eb82f3bb4272b317e995c6", "score": "0.55780524", "text": "@javax.annotation.Nullable\n @ApiModelProperty(value = \"Email address of the user\")\n @JsonProperty(JSON_PROPERTY_EMAIL_ADDRESS)\n @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)\n\n public String getEmailAddress() {\n return emailAddress;\n }", "title": "" }, { "docid": "a4111cddaae5b21d58f13bd0f9accf32", "score": "0.5546663", "text": "public String getEmailAddress()\n\t{\n\t\treturn emailAddress;\n\t}", "title": "" }, { "docid": "e146b139e1a27ee90f3ea4170d2e8dee", "score": "0.5523936", "text": "public void setPersonEmailAddress(String emailAddress) {\r\n this.emailAddress = emailAddress;\r\n }", "title": "" }, { "docid": "af9384d1ea16cf8a8275675c6a6ec620", "score": "0.5523739", "text": "public String getEmailAddress()\n {\n return emailAddress;\n }", "title": "" }, { "docid": "8fbdf131564c11339c78e6eae2502941", "score": "0.5504703", "text": "public java.lang.String getEmailAddress(){\r\n return localEmailAddress;\r\n }", "title": "" }, { "docid": "68911b7d64a4377de76c470bbf393ef3", "score": "0.5485285", "text": "public void addHasPostalAddress(PostalAddress value) {\r\n\t\tBase.add(this.model, this.getResource(), HASPOSTALADDRESS, value);\r\n\t}", "title": "" }, { "docid": "8f1d140f823d1d1453f62a08990783ae", "score": "0.5477186", "text": "public String getEmailAddress() {\n return this.emailAddress;\n }", "title": "" }, { "docid": "d14b673ab39dc8fe4498c9b330273106", "score": "0.5468883", "text": "public java.lang.CharSequence getEmailAddress() {\n return email_address;\n }", "title": "" }, { "docid": "96cb0ffe140f74860b5b38218bcae20e", "score": "0.5463982", "text": "public void setEmailAddress(String emailAddress) {\n this.emailAddress = emailAddress;\n }", "title": "" }, { "docid": "96cb0ffe140f74860b5b38218bcae20e", "score": "0.5463982", "text": "public void setEmailAddress(String emailAddress) {\n this.emailAddress = emailAddress;\n }", "title": "" }, { "docid": "96cb0ffe140f74860b5b38218bcae20e", "score": "0.5463982", "text": "public void setEmailAddress(String emailAddress) {\n this.emailAddress = emailAddress;\n }", "title": "" }, { "docid": "69f3faa5bd19a75d497d1bb527432c19", "score": "0.5461919", "text": "public void setEmail(String newEmailAddress) \n {\n this.email = newEmailAddress;\n\n }", "title": "" }, { "docid": "8328b74a37f4ee94aba55619f396833b", "score": "0.5461781", "text": "public String getEmailAddress() {\n\t\treturn emailAddress;\n\t}", "title": "" }, { "docid": "8328b74a37f4ee94aba55619f396833b", "score": "0.5461781", "text": "public String getEmailAddress() {\n\t\treturn emailAddress;\n\t}", "title": "" }, { "docid": "c045b906cb4dda00d05588b41e50ae5c", "score": "0.54583603", "text": "public String getEmailAddress() {\n return emailAddress;\n }", "title": "" }, { "docid": "c045b906cb4dda00d05588b41e50ae5c", "score": "0.54583603", "text": "public String getEmailAddress() {\n return emailAddress;\n }", "title": "" }, { "docid": "976f0831f7f9ed67b70d2dd26e5159e1", "score": "0.5447409", "text": "public void removeHasEmailAddress(EmailAddress value) {\r\n\t\tBase.remove(this.model, this.getResource(), HASEMAILADDRESS, value);\r\n\t}", "title": "" }, { "docid": "38b8ce5fbf3fcf3f55ec36c2a6c05d7a", "score": "0.54038477", "text": "public void setEmailAddress(String emailAddress)\n\t{\n\t\tthis.emailAddress = emailAddress;\n\t}", "title": "" }, { "docid": "0bcb7054984f8f474346b55d7f255cd1", "score": "0.537707", "text": "public void setEmailAddress(java.lang.String emailAddress) {\n this.emailAddress = emailAddress;\n }", "title": "" }, { "docid": "815773b0f0f650a4a360ee4ae3ed32df", "score": "0.5351143", "text": "public static void setHasPostalAddress( Model model, org.ontoware.rdf2go.model.node.Resource instanceResource, org.ontoware.rdf2go.model.node.Node value) {\r\n\t\tBase.set(model, instanceResource, HASPOSTALADDRESS, value);\r\n\t}", "title": "" }, { "docid": "3d63d4231502ef9a70f6cb1da70f094c", "score": "0.5343817", "text": "public static void removeHasEmailAddress( Model model, org.ontoware.rdf2go.model.node.Resource instanceResource, org.ontoware.rdf2go.model.node.Node value) {\r\n\t\tBase.remove(model, instanceResource, HASEMAILADDRESS, value);\r\n\t}", "title": "" }, { "docid": "414f0b7c7a67854d612fddad3758018f", "score": "0.5342072", "text": "boolean hasMailAddress();", "title": "" }, { "docid": "414f0b7c7a67854d612fddad3758018f", "score": "0.5342072", "text": "boolean hasMailAddress();", "title": "" }, { "docid": "b671bb45a9843250ab3a9b6391262d12", "score": "0.5341177", "text": "public java.lang.CharSequence getEmailAddress() {\n return email_address;\n }", "title": "" }, { "docid": "53cc1fca46aed3478e69e81543221e37", "score": "0.53392345", "text": "public void setEmailAddress(String emailAddress) {\n\t\tthis.emailAddress = emailAddress;\n\t}", "title": "" }, { "docid": "53cc1fca46aed3478e69e81543221e37", "score": "0.53392345", "text": "public void setEmailAddress(String emailAddress) {\n\t\tthis.emailAddress = emailAddress;\n\t}", "title": "" }, { "docid": "6520ad063d45f0481dfda95f46371ddb", "score": "0.5337738", "text": "public static void removeHasEmailAddress(Model model, org.ontoware.rdf2go.model.node.Resource instanceResource, EmailAddress value) {\r\n\t\tBase.remove(model, instanceResource, HASEMAILADDRESS, value);\r\n\t}", "title": "" }, { "docid": "0104f42d023d873f7107154e01410cd4", "score": "0.5320595", "text": "public com.vshare.engine.avro.model.AvroDummData.Builder clearEmailAddress() {\n email_address = null;\n fieldSetFlags()[2] = false;\n return this;\n }", "title": "" }, { "docid": "c864ec896db4c8237febbf760cdff240", "score": "0.53136706", "text": "public void setEmailAddress (java.lang.String emailAddress) {\n\t\tthis.emailAddress = emailAddress;\n\t}", "title": "" }, { "docid": "06170c08b897e5b965f393042f9f4c24", "score": "0.5297941", "text": "public java.lang.String getEmailAddress () {\n\t\treturn emailAddress;\n\t}", "title": "" }, { "docid": "9840471d5384d92995710aa8f62b16ef", "score": "0.52713585", "text": "public boolean addNewFriendEntryByName(String email);", "title": "" }, { "docid": "833672d0096aeb10907ec4c7fd68218f", "score": "0.5249508", "text": "public String getEmailAddress() {\n return email;\n }", "title": "" }, { "docid": "03e2b90ec8838292d9bff3a91e3fe049", "score": "0.52348024", "text": "public void setEmail( String address )\r\n {\r\n email = address;\r\n }", "title": "" }, { "docid": "44b8662d388839454b43d87961ca12d8", "score": "0.52308273", "text": "public static void addHasPostalAddress(Model model, org.ontoware.rdf2go.model.node.Resource instanceResource, PostalAddress value) {\r\n\t\tBase.add(model, instanceResource, HASPOSTALADDRESS, value);\r\n\t}", "title": "" }, { "docid": "b1ca5da43a84ad7536fcd8e926e0f35f", "score": "0.52242345", "text": "@DefaultStringValue(\"Your email address\")\n @Key(\"YourEmailAddress\")\n String YourEmailAddress();", "title": "" }, { "docid": "db8f21ca2c5d37d15721be2a11ee496c", "score": "0.5206111", "text": "public void addId(String newEmailAddress) throws Exception {\n if (newEmailAddress.indexOf(\" \")>=0) {\n throw new ProgramLogicError(\"an email with a space in it was passed to UserProfile.addID: (\"+newEmailAddress+\")\");\n }\n if (!looksLikeEmail(newEmailAddress)) {\n throw new ProgramLogicError(\"Attempt to set non-email address on user: (\"+newEmailAddress+\"). Only email addresses are allowed\");\n }\n\n //check if this user already has the ID, and do nothing if true\n for (String idval : emailAddresses) {\n if (newEmailAddress.equalsIgnoreCase(idval)) {\n //nothing to do, there is already an ID in there\n return;\n }\n }\n\n //search all users for others that might have it\n for(UserProfile otherUser : UserManager.getStaticUserManager().getAllUserProfiles()) {\n \n if (otherUser.getKey().equals(getKey())) {\n //we found ourselves! Skip this user from list\n continue;\n }\n if (!otherUser.hasAnyId(newEmailAddress)) {\n //ignore users that do not have this email address\n continue;\n }\n\n //found at least one on this user, remove it.\n otherUser.removeId(newEmailAddress);\n }\n emailAddresses.add(newEmailAddress);\n \n //refresh the tables that find user profiles by name and email\n UserManager.refreshHashtables();\n }", "title": "" }, { "docid": "d4bfd8665bc8ae40016e6426747d0bb5", "score": "0.5190583", "text": "public void setEmailAddress(String emailAddress) {\n\t\tSystem.out.println(\"CricketCoach: Inside setter method - setEmailAddress\");\n\t\tthis.EmailAddress = emailAddress;\n\t}", "title": "" }, { "docid": "579e18ea284e06f1183ab099c1d2c38f", "score": "0.5186281", "text": "public void addHasPhoneNumber( org.ontoware.rdf2go.model.node.Node value) {\r\n\t\tBase.add(this.model, this.getResource(), HASPHONENUMBER, value);\r\n\t}", "title": "" }, { "docid": "701dfa750f9351fbcfdef7f743c7439a", "score": "0.51785785", "text": "public boolean addRecipient(String address) throws IOException\r\n {\r\n return SMTPReply.isPositiveCompletion(this.rcpt(\"<\" + address + \">\"));\r\n }", "title": "" }, { "docid": "88a8de5f54509bd129b750bca485602e", "score": "0.5174024", "text": "public void setEmailAddress_sec( String email )\n {\n emailAddress_sec = email;\n }", "title": "" }, { "docid": "580201e5f674b97ae0ba74e4faa7d8e8", "score": "0.51637083", "text": "@Override\n\tpublic void setEmailAddress(java.lang.String emailAddress) {\n\t\t_employer.setEmailAddress(emailAddress);\n\t}", "title": "" }, { "docid": "adb32a51c4853a3cb5fb3f9cb07547a5", "score": "0.5161951", "text": "public java.lang.String getEmailAddress() {\n return emailAddress;\n }", "title": "" }, { "docid": "b408b9afbee3cbdb184d5e07127bb223", "score": "0.5157407", "text": "public ReactorResult<EmailAddress> getAllHasEmailAddress_as() {\r\n\t\treturn Base.getAll_as(this.model, this.getResource(), HASEMAILADDRESS, EmailAddress.class);\r\n\t}", "title": "" }, { "docid": "9febc852d6465087f95ba885425e9e05", "score": "0.51507527", "text": "public void addAddress(Address address) {\n\t\t\r\n\t}", "title": "" }, { "docid": "68719de7a32e517f6fe006d1f53eaad8", "score": "0.51482415", "text": "@Transient\r\n\tpublic String getEmailAddressString() {\r\n\t\tif (getPerson() == null) {\r\n\t\t\treturn null;\r\n\t\t}\r\n\t\treturn getPerson().getEmailAddressString();\r\n\t}", "title": "" }, { "docid": "1063e626bc85c80b6179fb3361672fc5", "score": "0.50900555", "text": "public static ReactorResult<EmailAddress> getAllHasEmailAddress_as(Model model, org.ontoware.rdf2go.model.node.Resource instanceResource) {\r\n\t\treturn Base.getAll_as(model, instanceResource, HASEMAILADDRESS, EmailAddress.class);\r\n\t}", "title": "" }, { "docid": "83ec3108c99ece8a5714b338fb968845", "score": "0.5073551", "text": "com.google.protobuf.ByteString\n getEmailAddressBytes();", "title": "" }, { "docid": "a35c91a8cdc5d28fa38a52e316919eb0", "score": "0.5073303", "text": "public void setYourEmailAddress () {\n waitUntilElementToBeClickable(yourEmailAddress,15);\n enterText(yourEmailAddress, loadProperties.getProperty(\"swami\") + dateStemp() + \"gmail.com\");\n //enterText(yourEmailAddress,\"Swami\" + dateStemp() + \"@gmail.com\");\n }", "title": "" }, { "docid": "1d4f51f31d0c1e74166abb5331ce636c", "score": "0.5066551", "text": "public Builder setAddress(org.tron.tronj.proto.Response.NodeList.Node.Address value) {\n if (addressBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n address_ = value;\n onChanged();\n } else {\n addressBuilder_.setMessage(value);\n }\n\n return this;\n }", "title": "" }, { "docid": "9842836c938f72580e1455edf2201f92", "score": "0.5065862", "text": "public String getEmailAddress_sec()\n {\n return emailAddress_sec;\n }", "title": "" }, { "docid": "b278de4cd9f4388b1394f99181af5ce6", "score": "0.5064388", "text": "@Override\n\tpublic String adaptToJson(EmailAddress obj) throws Exception {\n\t\treturn EmailAddress.toString(obj);\n\t}", "title": "" }, { "docid": "23252eae5e4177e0166ab4a0c8339f09", "score": "0.50427306", "text": "public StringProperty emailProperty()\r\n {\r\n return email;\r\n }", "title": "" }, { "docid": "a344d109a3471cf74e3059b37b2e5abf", "score": "0.5018096", "text": "public void addEmailSubscriberToUsers(String email);", "title": "" }, { "docid": "3e0aa1e60723e836776c878a5971a59c", "score": "0.5006423", "text": "public void setEmailAddress(String emailAddress) {\n \tthis.emailAddress = emailAddress.toLowerCase();\n }", "title": "" }, { "docid": "d09f6e9513f842304c2e70939e2caba4", "score": "0.49988186", "text": "public Criteria andEmailEqualTo(String value) {\r\n addCriterion(\"sysMerchantInfo.EMAIL =\", value, \"email\");\r\n return this;\r\n }", "title": "" }, { "docid": "3ad78d03cfceb7b489e28d372cd45afa", "score": "0.49859318", "text": "public Party registerNewAddress(Party party, Mailbox newAddress, Kind kind);", "title": "" }, { "docid": "01046f2138bdfe04da67ccf496ed091c", "score": "0.4974036", "text": "public void setHasPostalAddress(PostalAddress value) {\r\n\t\tBase.set(this.model, this.getResource(), HASPOSTALADDRESS, value);\r\n\t}", "title": "" }, { "docid": "9cc2f1ea5df3c43339c9c124b79e9da3", "score": "0.49739835", "text": "public void setEmailAddress(String emailAddress) {\n\t\tif(this.emailAddress != emailAddress){\n\t\t\tif(FormatChecker.isValidEmail(emailAddress))\n\t\t\t{\n\t\t\t\tthis.emailAddress = emailAddress;\n\t\t\t\tMarkDirty();\n\t\t\t}\n\t\t\telse \n\t\t\t{\n\t\t\t\tLog.writeLogSevere(\"Invalid email format. Failed to set email address.\");\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "a9c5eb3f51744075b36d6a822f0f082a", "score": "0.49607655", "text": "boolean hasEmail();", "title": "" }, { "docid": "a9c5eb3f51744075b36d6a822f0f082a", "score": "0.49607655", "text": "boolean hasEmail();", "title": "" }, { "docid": "ca94ac52bf6d5f3f14dab9919ec9e6f9", "score": "0.49521446", "text": "public void setEmail(String email)\n {\n setEmailPerson(email);\n }", "title": "" }, { "docid": "832c87fee3acdd00657eef7fa0d69d19", "score": "0.49455583", "text": "public java.lang.String getFromEmailAddress() {\n return fromEmailAddress;\n }", "title": "" }, { "docid": "96bd2c76a7aef38bb393d7d5c0e58e20", "score": "0.49304864", "text": "public String getUserEmailAddress(){\n return this.adresse_mail;\n }", "title": "" }, { "docid": "9a78415013035cca39776b5542df7df2", "score": "0.4902419", "text": "org.tron.tronj.proto.Response.NodeList.Node.AddressOrBuilder getAddressOrBuilder();", "title": "" }, { "docid": "8d7788cc6f8f70c8d2f2aec2bd813b73", "score": "0.48953593", "text": "public Builder mergeAddress(org.tron.tronj.proto.Response.NodeList.Node.Address value) {\n if (addressBuilder_ == null) {\n if (address_ != null) {\n address_ =\n org.tron.tronj.proto.Response.NodeList.Node.Address.newBuilder(address_).mergeFrom(value).buildPartial();\n } else {\n address_ = value;\n }\n onChanged();\n } else {\n addressBuilder_.mergeFrom(value);\n }\n\n return this;\n }", "title": "" }, { "docid": "58d4185bbac85642b46fd70b44245d6c", "score": "0.48932427", "text": "public void altEmail(String alternateEmail){\n this.altEmail = alternateEmail;\n }", "title": "" }, { "docid": "0e2b66ee75e6918013a7bb0b6e7895b5", "score": "0.48931727", "text": "@Override\n public boolean isValid(String value,\n ConstraintValidatorContext context)\n {\n boolean result = true;\n try {\n InternetAddress emailAddr = new InternetAddress(value);\n emailAddr.validate();\n } catch (AddressException ex) {\n result = false;\n }\n return result;\n }", "title": "" }, { "docid": "4be1afa72194fda13d13c093d54504e9", "score": "0.48905277", "text": "public void setEmail(String n){\n this.email = n;\n }", "title": "" }, { "docid": "41bb26a9e310eb86bf80faf6cc089210", "score": "0.4883052", "text": "public void setEmail(String emailAddress) {\n this.emailAddress = emailAddress;\n }", "title": "" }, { "docid": "26ae05b22dfac48042dcb38913f19372", "score": "0.48800954", "text": "@DISPID(236)\r\n @PropPut\r\n void setAddress(\r\n java.lang.String rhs);", "title": "" }, { "docid": "74e479be9918b865b689bb28c48f17b6", "score": "0.48784205", "text": "boolean hasOrgPostalAddress();", "title": "" }, { "docid": "74b790cba36a14357aa54c8f39bd082e", "score": "0.4874783", "text": "void setEmail(String email);", "title": "" }, { "docid": "74b790cba36a14357aa54c8f39bd082e", "score": "0.4874783", "text": "void setEmail(String email);", "title": "" } ]
25197b4cf814864ecd440f23b9149cb3
TODO Autogenerated method stub
[ { "docid": "bac0cb10706ed8f761ffda2ff95eb14c", "score": "0.0", "text": "@Override\n\tpublic boolean remove(Object o) {\n\t\treturn false;\n\t}", "title": "" } ]
[ { "docid": "da34ed11fe7c5649b3cd0bdad6dca5df", "score": "0.7115143", "text": "@Override\n\t\tpublic void 비행() {\n\t\t\t\n\t\t}", "title": "" }, { "docid": "99cfe01c5035e9a9ca6dafada0e4a005", "score": "0.67343336", "text": "@Override\r\n\tpublic void caminar() {\r\n\t\t// TODO Auto-generated method stub\r\n\t\t\r\n\t}", "title": "" }, { "docid": "93de84d0e77a5e19e12e7d0655c39af3", "score": "0.67339545", "text": "@Override\n\tpublic void agit() {\n\t\t\n\t}", "title": "" }, { "docid": "f8d94fd3a365ff0f8b293a42b581cc33", "score": "0.6584661", "text": "@Override\r\n public void caminar() {\r\n }", "title": "" }, { "docid": "80d20df1cc75d8fa96c12c49a757fc43", "score": "0.65278774", "text": "@Override\n\tprotected void getExras() {\n\t\t\n\t}", "title": "" }, { "docid": "b256767990570c27f4f2479e85bd7f03", "score": "0.64964134", "text": "@Override\r\n\tpublic void otkazi() {\n\t\t\r\n\t}", "title": "" }, { "docid": "2104f557428f6e269f61b8f05a73cc43", "score": "0.6485333", "text": "@Override\n\tpublic void repare() {\n\t\t\n\t}", "title": "" }, { "docid": "2dcda7054abb2ac593302e39a2284f12", "score": "0.64569044", "text": "@Override\n\tprotected void getExras() {\n\n\t}", "title": "" }, { "docid": "0a93ae79a871bc2bb8787223c8b043a4", "score": "0.6412003", "text": "@Override\n\tpublic void interogare() {\n\t\t\n\t}", "title": "" }, { "docid": "16c30d73c1df796c0e31e93eb0f6e02e", "score": "0.6404783", "text": "@Override\r\n\tpublic void atacar() {\n\t\t\r\n\t}", "title": "" }, { "docid": "2e18c1d20c67735ba2db1c70042e02d7", "score": "0.6337855", "text": "@Override\r\n\tpublic void embalar() {\n\t\t\r\n\t}", "title": "" }, { "docid": "83c17378086426b4324c4ea8c160e29d", "score": "0.626611", "text": "@Override\r\n\tpublic void provjeri() {\n\r\n\t}", "title": "" }, { "docid": "1f7c82e188acf30d59f88faf08cf24ac", "score": "0.6237362", "text": "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "title": "" }, { "docid": "289f89533edfafac14fcf50ce6d1dcfb", "score": "0.62031794", "text": "@Override\n\t\t\t\t\tpublic void accionSi() {\n\n\t\t\t\t\t}", "title": "" }, { "docid": "7c4f2f94b290de5507eb56a649c4fab9", "score": "0.6193997", "text": "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "title": "" }, { "docid": "038aba0c2804848e5fbdbafd6a794e97", "score": "0.6188789", "text": "@Override\r\n\tpublic void genererFacture() {\n\t\t\r\n\t}", "title": "" }, { "docid": "10ead2e988bf977cb8edb2bacf974891", "score": "0.6158877", "text": "@Override\n\tprotected void init() {\n\t\t\n\t}", "title": "" }, { "docid": "10ead2e988bf977cb8edb2bacf974891", "score": "0.6158877", "text": "@Override\n\tprotected void init() {\n\t\t\n\t}", "title": "" }, { "docid": "9da42c54ca8fb8825afce96ad2d2781c", "score": "0.61519784", "text": "@Override\r\n\tpublic void comenzar() {\n\t\t\r\n\t}", "title": "" }, { "docid": "29cde3f10dab87cebafdd9412ef4b29f", "score": "0.60600275", "text": "@Override\r\n\tpublic void embala() {\n\t\t\r\n\t}", "title": "" }, { "docid": "7aa6963c647c1b2028e2058b152485e1", "score": "0.60484", "text": "@Override\n\tpublic void generate() {\n\t\t\n\t}", "title": "" }, { "docid": "7aa6963c647c1b2028e2058b152485e1", "score": "0.60484", "text": "@Override\n\tpublic void generate() {\n\t\t\n\t}", "title": "" }, { "docid": "d18a5453cb937c44d51c46c967f1f4f6", "score": "0.60443264", "text": "protected void method_3848() {}", "title": "" }, { "docid": "63d27d2836275ed0fc981c7cfae8e737", "score": "0.6031051", "text": "@Override\n\tprotected void init(){\n\t}", "title": "" }, { "docid": "d49d17272b1c32563649e99191745398", "score": "0.6026582", "text": "@Override\n\tpublic void inchide() {\n\t\t\n\t}", "title": "" }, { "docid": "b7d3c2b49702a5ed673b243bf8d2b7c0", "score": "0.6023586", "text": "@Override\n\tprotected void funcionario() {\n\t\t\n\t}", "title": "" }, { "docid": "770d423e40bf5782a700bc181e8b8a1e", "score": "0.6020569", "text": "@Override\n\tvoid init() {\n\t\t\n\t}", "title": "" }, { "docid": "770d423e40bf5782a700bc181e8b8a1e", "score": "0.6020569", "text": "@Override\n\tvoid init() {\n\t\t\n\t}", "title": "" }, { "docid": "85245b1c9026959162e61e0473f9cf29", "score": "0.5962836", "text": "@Override\n\t\t\t\t\tpublic void accionNo() {\n\n\t\t\t\t\t}", "title": "" }, { "docid": "f0512ddbeb7af0b9d9405114f8362f5d", "score": "0.59361994", "text": "private void recupererPliPrecedent() {\n\t}", "title": "" }, { "docid": "66f76462eb0121053379289c39650179", "score": "0.5929797", "text": "public void mo19333b() {\n }", "title": "" }, { "docid": "2d61391fe8770661f25917f3770f2a26", "score": "0.592505", "text": "@Override\n\t\tpublic void init(){\n\t\t\t\n\t\t}", "title": "" }, { "docid": "da5f753a7cd33da8d5581d14337c059f", "score": "0.5909544", "text": "@Override\n\tpublic void tauchen() {\n\t\t\n\t}", "title": "" }, { "docid": "21e83e0c6fdd60581bc05b6e8f682d1e", "score": "0.59009665", "text": "public void mo7875c() {\n }", "title": "" }, { "docid": "cad86041007c052466e6525bc7dcd8c8", "score": "0.5898701", "text": "@Override\r\n\tpublic void trasation() {\n\t\t\r\n\t}", "title": "" }, { "docid": "cfd10238a4f026fdd414282790c4920f", "score": "0.58981574", "text": "@Override\r\n\t\tprotected void initData() {\n\t\t\t\r\n\t\t}", "title": "" }, { "docid": "5477922fce309be487fa552d27c3bf32", "score": "0.5887271", "text": "public void mo7873a() {\n }", "title": "" }, { "docid": "7f91c82c66ced12c5b193d3c89d68e4c", "score": "0.5886334", "text": "@Override\n\tprotected void init() {\n\t}", "title": "" }, { "docid": "7f91c82c66ced12c5b193d3c89d68e4c", "score": "0.5886334", "text": "@Override\n\tprotected void init() {\n\t}", "title": "" }, { "docid": "69b1247a4afd513b9853da385d6f2d24", "score": "0.5865623", "text": "@Override\n\tpublic void resta() {\n\t\t\n\t}", "title": "" }, { "docid": "4967494f628119c8d3a4740e09278944", "score": "0.5858707", "text": "@Override\r\n\tprotected void initData() {\n\r\n\t}", "title": "" }, { "docid": "5aa237d31e744d1e0729621e464fcfb2", "score": "0.5854053", "text": "@Override\r\n\tprotected void DataInit() {\n\r\n\t}", "title": "" }, { "docid": "c5648e3463d069bbd00252aa57baecf9", "score": "0.58529", "text": "@Override\r\n\r\n\t\t\tpublic void init() {\n\r\n\t\t\t\t\r\n\r\n\t\t\t\t\r\n\r\n\t\t\t}", "title": "" }, { "docid": "9a2bf99ecbc04ed75ccb3e865d3d8a64", "score": "0.5851984", "text": "@Override\n public void vypisSudy() {\n }", "title": "" }, { "docid": "9a2bf99ecbc04ed75ccb3e865d3d8a64", "score": "0.5851984", "text": "@Override\n public void vypisSudy() {\n }", "title": "" }, { "docid": "2a6c59f221c7c146ab9267197b8cf257", "score": "0.58494717", "text": "@Override\n\tpublic void prnt() {\n\t\t\n\t}", "title": "" }, { "docid": "451aac44b51bc834350309c1b94be619", "score": "0.5846654", "text": "@Override\r\n\tprotected void speichereSonderwuensche() {\n\t\t\r\n\t}", "title": "" }, { "docid": "39c15addb7f9cae9284ae4af01c5a911", "score": "0.5836237", "text": "@Override\r\n\tpublic void cortar() {\n\t\t\r\n\t}", "title": "" }, { "docid": "fab6f4103beb4667b90da1eb3672a4fa", "score": "0.5820677", "text": "@Override\n\tprotected void update() {\n\n\t}", "title": "" }, { "docid": "97c456611a497fb152db478124462615", "score": "0.5805655", "text": "public void mo7874b() {\n }", "title": "" }, { "docid": "ecd084bf055d602fdedf08fab1e19a33", "score": "0.58032876", "text": "@Override\n\tvoid emi() {\n\t\t\n\t}", "title": "" }, { "docid": "ecd084bf055d602fdedf08fab1e19a33", "score": "0.58032876", "text": "@Override\n\tvoid emi() {\n\t\t\n\t}", "title": "" }, { "docid": "ecd084bf055d602fdedf08fab1e19a33", "score": "0.58032876", "text": "@Override\n\tvoid emi() {\n\t\t\n\t}", "title": "" }, { "docid": "b14d9313b224be37257260448fc816d3", "score": "0.58025044", "text": "@Override\n\tpublic void breathes()\n\t{\n\n\t}", "title": "" }, { "docid": "63519e7beede7b06dcebbca99514f5c5", "score": "0.5800136", "text": "@Override\n\tprotected void salirsePorXIzq() {\n\t\t\n\t}", "title": "" }, { "docid": "c60781d66bd146683572dce40076140d", "score": "0.5792193", "text": "private LIDAR() \n\t\t{\n\n\t\t}", "title": "" }, { "docid": "3138943fc1f99b10746b6218fb0522fe", "score": "0.5788738", "text": "@Override\n public int order() {\n return 1;\n }", "title": "" }, { "docid": "f93772ae3050679cb5cad45b34d90052", "score": "0.5785588", "text": "public void mo36368c() {\n }", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5773198", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5773198", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5773198", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5773198", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5773198", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5773198", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5773198", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5773198", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5773198", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5773198", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "4049f356224496e4636627d70f5c0e9a", "score": "0.5765812", "text": "@Override\n\tpublic void generateData() \n\t{\n\t}", "title": "" }, { "docid": "518a761521ca9f5cb8a8055b32b72cda", "score": "0.57589173", "text": "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "title": "" }, { "docid": "8843ebe8d692b94536f16d5f07fdff4f", "score": "0.57587487", "text": "@Override\n public void update() {\n // TODO Auto-generated method stub\n }", "title": "" }, { "docid": "3013650e7b02771c88bbeb22d93b2660", "score": "0.57571363", "text": "@Override\r\n public String toString(){\n return null;\r\n }", "title": "" }, { "docid": "ebfe1bb4dd1c0618c0fad36d9f7674b4", "score": "0.57514423", "text": "@Override\n protected void initialize() {\n\n }", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.57491463", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.57491463", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.57491463", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.57491463", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.57491463", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.57491463", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.57491463", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.57491463", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.57491463", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "b6c53604ad2f38e9cacf958a442de4cf", "score": "0.57416445", "text": "@Override\n\tprotected void initAfterData() {\n\n\t}", "title": "" }, { "docid": "5485c75c53fb64a169034dd96e00cb59", "score": "0.57348526", "text": "@Override\n public void init() { \n }", "title": "" }, { "docid": "b143ffd983be4c8f41702b8f934b6f32", "score": "0.57341826", "text": "@Override\r\n\tpublic void init() {\n\r\n\t}", "title": "" }, { "docid": "b143ffd983be4c8f41702b8f934b6f32", "score": "0.57341826", "text": "@Override\r\n\tpublic void init() {\n\r\n\t}", "title": "" }, { "docid": "b143ffd983be4c8f41702b8f934b6f32", "score": "0.57341826", "text": "@Override\r\n\tpublic void init() {\n\r\n\t}", "title": "" }, { "docid": "b143ffd983be4c8f41702b8f934b6f32", "score": "0.57341826", "text": "@Override\r\n\tpublic void init() {\n\r\n\t}", "title": "" }, { "docid": "b143ffd983be4c8f41702b8f934b6f32", "score": "0.57341826", "text": "@Override\r\n\tpublic void init() {\n\r\n\t}", "title": "" }, { "docid": "c8c5ebd68bae88ac49f0df82efdf5eac", "score": "0.5719438", "text": "@Override\n\tprotected void body()\n\t{\n\t\t\n\t\t\n\t}", "title": "" }, { "docid": "5a8ab197ccef743fd48bf5cf5814c8e3", "score": "0.5714109", "text": "public void atacar(){\n\t\t\r\n\t}", "title": "" }, { "docid": "10ec55a5c701bead54e2106675e8d0e2", "score": "0.5702788", "text": "@Override\n\tpublic void somma() {\n\t\t\n\t}", "title": "" }, { "docid": "ad9858643cb51c92112f1a2ed05ea34e", "score": "0.5702442", "text": "public void mo7876d() {\n }", "title": "" }, { "docid": "7aadbda143e84de0144f7a8dadde423d", "score": "0.5701947", "text": "@Override\n protected void initData() {\n\n }", "title": "" }, { "docid": "cc445ddeaecb385fbe47df8b7c49ffc4", "score": "0.56983995", "text": "@Override\r\n\tpublic void effectuerRemboursement() {\n\t\t\r\n\t}", "title": "" }, { "docid": "57dab2b5051a2a184d855564327c4b1a", "score": "0.5698314", "text": "@Override\n\tpublic void init() \n\t{\n\n\t}", "title": "" }, { "docid": "01841f81ab35e62f2bd0f7128634a0ab", "score": "0.56905705", "text": "@Override\n\tpublic void laufen() {\n\t\t\n\t}", "title": "" }, { "docid": "20b42a0c3fee6c140a112d40354f4298", "score": "0.5688991", "text": "@Override\r\n\tpublic void prepara() {\n\t\t\r\n\t}", "title": "" }, { "docid": "4dff52b2278f26ec5d11e194ed9cf5a6", "score": "0.5688383", "text": "@Override\n public String toString() {\n return null;\n }", "title": "" }, { "docid": "e77a68a99f5bd2a047671668b77c1854", "score": "0.567911", "text": "@Override\n public void generate() {\n }", "title": "" }, { "docid": "2a0ef0804fb04e99e4054007df8500da", "score": "0.56778574", "text": "public void mo11098e() {\n }", "title": "" } ]
68c79288197be266a72d432762144005
Setting values to object using StringTokenizer with passing delimiter
[ { "docid": "7637814a368a2bd34c59fb67a596301e", "score": "0.0", "text": "public Reconcile calculateReconDiff(String line, String delims)\r\n\t{\r\n\t\tReconcile objr1 = new Reconcile();\r\n\t\tStringTokenizer st = new StringTokenizer(line, delims);\r\n\t\tobjr1.setConBranch(st.nextToken());\r\n\t\tobjr1.setConDate(st.nextToken());\r\n\t\tobjr1.setConBranchCode(st.nextToken());\r\n\t\tobjr1.setConTotRecon(Double.parseDouble(st.nextToken()));\r\n\t\tobjr1.setConReconDiff(Double.parseDouble(st.nextToken()));\r\n\t\tobjr1.setComCompany(st.nextToken());\r\n\t\treturn objr1;\r\n\t}", "title": "" } ]
[ { "docid": "aeb07e89fe0418e60e65882ea5145588", "score": "0.6193679", "text": "public void setDelimiter(String delim) {\n delimiter=delim;\n }", "title": "" }, { "docid": "9c05bcc9faaf4bc78f7b7ccaab2cefeb", "score": "0.6057848", "text": "public void setDelim(String delim)\n {\n this.delim = delim;\n }", "title": "" }, { "docid": "253e9070dffde1b23895c0e9ff8bddde", "score": "0.585129", "text": "public void setTokenizer(Tokenizer tokenizer);", "title": "" }, { "docid": "2669313accfe9be887f9bb55b9890da0", "score": "0.56831896", "text": "public String getValue(String s, String delim) {\r\n StringTokenizer st = new StringTokenizer(s, delim, true); // return delimiter\r\n String key;\r\n String value = \"\";\r\n String v = \"\";\r\n key = st.nextToken();\r\n int eqCt = 0;\r\n \r\n // change this to a value array ??\r\n // \t\tor let let item parse value with \",\" as the delimiter\r\n while (st.hasMoreTokens()) { \r\n \tv = st.nextToken();\r\n \t// System.out.print(\"[\"+v+\"]\");\r\n \tif (v.equals(\"=\")){\r\n \t eqCt++; \r\n \t if (eqCt > 1 ) {\r\n \t \t// System.out.print(\"<\"+eqCt+\"-\"+v+\">\");\r\n \t\t value += v;\r\n \t }\r\n \t}\r\n \telse {\r\n \t\t// System.out.print(\"{\"+eqCt+\"-\"+v+\"}\");\r\n \t\tvalue += v;\r\n \t}\r\n }\r\n // System.out.println(\" #\");\r\n return value;\r\n}", "title": "" }, { "docid": "0ec869c95c8567686c54eff263cebc1c", "score": "0.5664894", "text": "public StrSubstitutor setValueDelimiter(String valueDelimiter) {\n/* 1287 */ if (Strings.isEmpty(valueDelimiter)) {\n/* 1288 */ setValueDelimiterMatcher(null);\n/* 1289 */ return this;\n/* */ } \n/* 1291 */ return setValueDelimiterMatcher(StrMatcher.stringMatcher(valueDelimiter));\n/* */ }", "title": "" }, { "docid": "a4f57ca47d19c89bdd112f7418ceabb3", "score": "0.56208456", "text": "@Override\n public void tokenize(String s) {\n\n m_CurrentPosition = 0;\n m_String = s;\n m_N = m_NMin;\n }", "title": "" }, { "docid": "afb30c9a3ec7d872f46b7ccedc4b71ac", "score": "0.556881", "text": "public TokenizingValue() {}", "title": "" }, { "docid": "daedca11e9bd6eeee1217577d35f25b7", "score": "0.55325484", "text": "private Vector<String> parseData(String line, String delimiter) {\r\n Vector<String> data_vec = new Vector<String>();\r\n StringTokenizer st = new StringTokenizer(line, delimiter);\r\n while (st.hasMoreTokens()) {\r\n String value = st.nextToken();\r\n data_vec.add(value);\r\n }\r\n return data_vec;\r\n }", "title": "" }, { "docid": "313ffea0e97e6a92111eec9b59a5b9ed", "score": "0.5530638", "text": "public void parse(String line) {\n if (line == null) {\n return;\n }\n values = Strings.split('|', line);\n }", "title": "" }, { "docid": "6964c0c98174a4fe1122d38608409312", "score": "0.55153155", "text": "public String getKey(String s, String delim) {\r\n StringTokenizer st = new StringTokenizer(s, delim);\r\n String key, value;\r\n key = st.nextToken();\r\n // if (st.hasMoreTokens()) {\r\n value = st.nextToken();\r\n return key;\r\n}", "title": "" }, { "docid": "8cfb58470441bc4ba507da89c6d7b7c6", "score": "0.55081594", "text": "public ReplacementSet(String templateValue, String objectValue,\n\t\t\tString objName, String subObjName, List<Replacement> subPlacements,\n\t\t\tString delim) {\n\t\tsuper(templateValue, objectValue, objName);\n\t\tthis.subObjName = subObjName;\n\t\tthis.subPlacemnets = subPlacements;\n\t\tthis.deilm = delim;\n\t\tif (this.deilm == null)\n\t\t\tthis.deilm = \"\";\n\t}", "title": "" }, { "docid": "57261ca3c9a65a814564e42ef3825cde", "score": "0.54672056", "text": "public StrSubstitutor setValueDelimiter(char valueDelimiter) {\n/* 1268 */ return setValueDelimiterMatcher(StrMatcher.charMatcher(valueDelimiter));\n/* */ }", "title": "" }, { "docid": "e98bf1fb7cd07d9c97ec2d55e52fd8b1", "score": "0.54641616", "text": "protected Object handleDelimiters(Object value) {\n if (value instanceof String) {\n final Collection<String> values = getListDelimiterHandler().split((String) value, true);\n value = values.size() > 1 ? values : values.iterator().next();\n }\n\n return value;\n }", "title": "" }, { "docid": "5cf6f1dcbc77325e170bfd2969983edd", "score": "0.54440635", "text": "public void parse(String info){\n\t\tString[] infoArray = info.split(\"\\\\|\");\n\t\tthis.ID = Integer.parseInt(infoArray[0].trim());\n\t\tthis.name = infoArray[1].trim();\n\t\tnextID = this.ID + 1;\n\t}", "title": "" }, { "docid": "eec87f902a5104fc78a679465dd11087", "score": "0.5410704", "text": "public Value(String valuestring) throws Exception,EmptyValueException{\n\n\tthis(new StringTokenizer(valuestring,\"[(,:)]\",true));\n }", "title": "" }, { "docid": "6caca0efbe129eace4133a0c33d1862a", "score": "0.54014003", "text": "Node setDelimiter(String c);", "title": "" }, { "docid": "ee7017417a883a44eda24da208fb1565", "score": "0.53854644", "text": "public void setDelimiter(String s) {\n this.delimiter = s;\n }", "title": "" }, { "docid": "455373c483ca96558333444c7919f637", "score": "0.53846025", "text": "public void setDelimiter(String delimiter) {\n this.delimiter = delimiter;\n }", "title": "" }, { "docid": "abc923949140b19bcf9285a8145ef250", "score": "0.5365225", "text": "public void setSplitter( LineString splitter );", "title": "" }, { "docid": "2fe2ebb961f41b9b02aeb2827e1ac392", "score": "0.53421956", "text": "public void setFieldDelimiter(String str)\n {\n m_fieldDelimiter = str;\n }", "title": "" }, { "docid": "f657970c2d54599a868c0ae75ae32dd5", "score": "0.53248817", "text": "public void initialise(String input)\n\t{\n\t\tString[] holdTokens = split(input);\n\n\t\tList<String> collectedTokens = new ArrayList<String>();\n\n\t\tString lastToken = null;\n\t\tboolean inQuotes = false;\n\n\t\tfor(int i=0;i<holdTokens.length;i++) {\n\t\t\tString currentToken = holdTokens[i];\n\t\t\tif(inQuotes) {\n\t\t\t\tif(currentToken.endsWith(\"\\\"\")) {\n\t\t\t\t\tlastToken+=\",\"+currentToken.substring(0,currentToken.length()-1);\n\t\t\t\t\tcollectedTokens.add(lastToken);\n\t\t\t\t\tinQuotes = false;\n\t\t\t\t} else {\n\t\t\t\t\tlastToken+=\",\"+currentToken;\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tif(currentToken.startsWith(\"\\\"\")) {\n\t\t\t\t\tif(currentToken.equals(\"\\\"\")) {\n\t\t\t\t\t\tlastToken = \"\";\n\t\t\t\t\t\tinQuotes = true;\n\t\t\t\t\t} else if(currentToken.endsWith(\"\\\"\")) {\n\t\t\t\t\t\tcollectedTokens.add(currentToken.substring(1,currentToken.length()-1));\n\t\t\t\t\t} else {\n\t\t\t\t\t\tlastToken = currentToken.substring(1);\n\t\t\t\t\t\tinQuotes = true;\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tcollectedTokens.add(currentToken);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\ttokens = new String[collectedTokens.size()];\n\n\t\tfor(int i=0;i<collectedTokens.size();i++) {\n\t\t\ttokens[i] = collectedTokens.get(i).replaceAll(\"\\\"\\\"\",\"\\\"\");\n\t\t}\n\n\t\tpoint = 0;\n\t}", "title": "" }, { "docid": "d4a8cbdccb99d26b186e5e3bca0cabca", "score": "0.52758276", "text": "public void setValuePairDelim(final String valuePairDelim) {\r\n this.valuePairDelim = valuePairDelim;\r\n }", "title": "" }, { "docid": "d3456d0f9f88c424d97dd84a657f8376", "score": "0.5261947", "text": "public SplitObj(String inStr)\n {\n prefix_ = inStr;\n }", "title": "" }, { "docid": "22645c758234924d78a2d00f16fb0366", "score": "0.521814", "text": "public Tet(String tetstring) throws Exception{\n\n\tthis(new StringTokenizer(tetstring,\"[(,)]\",true));\n }", "title": "" }, { "docid": "d13bc3627994c309e75dadc2fdc1fd8a", "score": "0.5215786", "text": "public void setDelimeter(String delimiter) {\n\t\tthis.delimiter = delimiter;\n\t}", "title": "" }, { "docid": "0b43f096e8a439898673a00a24b9b76c", "score": "0.5200717", "text": "@Override\n public void parseLineIntoObject(FlatFileObjectSpecification parseSpecification, String lineToParse, Object parseIntoObject, int lineNumber) {\n String[] lineSegments = StringUtils.splitPreserveAllTokens(lineToParse, delimiter);\n for (FlatFilePropertySpecification propertySpecification : parseSpecification.getParseProperties()) {\n try {\n propertySpecification.setProperty(lineSegments[((DelimitedFlatFilePropertySpecification) propertySpecification).getLineSegmentIndex()], parseIntoObject, lineNumber);\n }\n catch (ArrayIndexOutOfBoundsException e) {\n LOG.debug(\"Unable to set property \" + propertySpecification.getPropertyName() + \" since lineSegmentIndex does not exist for line\");\n }\n }\n }", "title": "" }, { "docid": "50b00e11dd429667538153e88ba0f10a", "score": "0.5101581", "text": "void split(String statement);", "title": "" }, { "docid": "41427c87cdc52edf0471dd34e144da38", "score": "0.50969756", "text": "public ParamNode(ArrayList<Token> tokens) {\n ArrayList<Token> tokensClone = new ArrayList<>();\n for (Token token: tokens) {\n tokensClone.add(new Token(token.token, token.string));\n }\n Token head = tokensClone.get(0);\n tokensClone.remove(head);\n int splitIndex = splitIndex(tokensClone, head.token);\n ArrayList<Token> thisTokens = new ArrayList<>();\n ArrayList<Token> nextTokens = new ArrayList<>();\n name = head.string;\n if (splitIndex < 0) {\n nextTokens.addAll(tokensClone);\n } else {\n for (int i = 0; i < tokensClone.size(); i++) {\n if (i <= splitIndex) {\n thisTokens.add(tokensClone.get(i));\n } else {\n nextTokens.add(tokensClone.get(i));\n }\n }\n }\n if (thisTokens.size() > 0) {\n thisData = new ParamNode(thisTokens);\n } else {\n thisData = null;\n }\n if (nextTokens.size() > 0) {\n Token endToken = nextTokens.get(0);\n while (endToken.token.equals(Types.END)) {\n nextTokens.remove(endToken);\n if (nextTokens.size() > 0) {\n endToken = nextTokens.get(0);\n } else {\n break;\n }\n }\n }\n if (nextTokens.size() > 0) {\n nextData = new ParamNode(nextTokens);\n } else {\n nextData = null;\n }\n }", "title": "" }, { "docid": "9b3ce17d1b04ded371fbfe13f43b33d8", "score": "0.5089879", "text": "Token(String tok) {\n token = TokenType.NUMBER;\n number = Long.parseLong(tok);\n string = tok;\n }", "title": "" }, { "docid": "0c07fe9d8945a53f1531fe69c665a744", "score": "0.5085812", "text": "public void Tokenize() {\n //if its an empty string\n if (token.isEmpty()) return;\n\n //get command name\n int i = token.indexOf(\" \");\n if (i != -1) {\n commandname = token.substring(0, i);\n token = token.substring(i + 1);\n } else {\n commandname = token;\n return;\n }\n\n boolean endOfToken=false;\n int counter = 0;\n String next;\n\n while(!endOfToken) {\n\n counter++;\n i = token.indexOf(\" \");\n if (i == -1) {\n endOfToken = true;\n next=token;\n token=\"\";\n }\n else{\n next = token.substring(0, i);\n token = token.substring(i + 1);\n }\n\n switch (commandname) {\n\n case \"REGISTER\":\n if(counter==1)name=next;\n if(counter==2)password=next;\n if(counter==3 && token.equals(\"\"))parseDatablock(next);\n else if(counter==3)parseDatablock(next + \" \" + token);\n break;\n case \"LOGIN\":\n if(counter==1)name=next;\n if(counter==2)password=next;\n break;\n case \"REQUEST\":\n if(counter==1)name=next;\n if(counter==2 && token.equals(\"\"))parseDatablock(next);\n else if(counter==2)parseDatablock(next + \" \" + token);\n break;\n }\n\n\n }\n }", "title": "" }, { "docid": "c3b66cc796cf9d506d76087d9dff9944", "score": "0.5074377", "text": "private void init(String paramString) {\n/* 112 */ StringTokenizer stringTokenizer = null;\n/* 113 */ if (!paramString.startsWith(\"\\\"\")) {\n/* 114 */ throw new IllegalArgumentException(\"service principal [\" + paramString + \"] syntax invalid: improperly quoted\");\n/* */ }\n/* */ \n/* */ \n/* */ \n/* 119 */ stringTokenizer = new StringTokenizer(paramString, \"\\\"\", false);\n/* 120 */ this.subordinate = stringTokenizer.nextToken();\n/* 121 */ if (stringTokenizer.countTokens() == 2) {\n/* 122 */ stringTokenizer.nextToken();\n/* 123 */ this.service = stringTokenizer.nextToken();\n/* 124 */ } else if (stringTokenizer.countTokens() > 0) {\n/* 125 */ throw new IllegalArgumentException(\"service principal [\" + stringTokenizer\n/* 126 */ .nextToken() + \"] syntax invalid: improperly quoted\");\n/* */ } \n/* */ }", "title": "" }, { "docid": "89b93289692a110c8712e182e0561e3e", "score": "0.5065269", "text": "List<Token> tokenize(String input);", "title": "" }, { "docid": "7fb20c447ad5d8c0edbb2c7b0b6c8f37", "score": "0.50588846", "text": "private void setTokenVector(Tokenizer tokenizer) {\n\t\tthis.tokenVector = tokenizer.execute(filePath);\n\t}", "title": "" }, { "docid": "a94d657cfb4153553355bccd2a482528", "score": "0.50478184", "text": "public String[] splitter(String obj){\n String x[] = obj.split(\" \");\n return x;\n \n }", "title": "" }, { "docid": "583ebc95d1a99ffff5b926c9fe9a748f", "score": "0.5045902", "text": "public static void tokenize(String str){\n\t\t//Base case break.\n\t\tif(str.equals(\"\"))\n\t\t\treturn;\n\t\t\n\t\tString interest=\"\";\n\t\t//Search for pattern match\n\t\tfor(int i = 0; i < patterns.size(); i++){\n\t\t\tMatcher matcher = patterns.get(i).matcher(str);\n\t\t\tif(matcher.find()){\n\t\t\t\t//Make interest the token in question\n\t\t\t\tinterest = matcher.group();\n\t\t\t\t//Add it to tokens, thne strip string of that token\n\t\t\t\ttokens.add(interest);\n\t\t\t\tstr=str.substring(interest.length());\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\t//Pass new string through tokenize again. \n\t\ttokenize(str);\n\t}", "title": "" }, { "docid": "bafe0c3465edc57074b15d2e3963bfc7", "score": "0.5038102", "text": "public void setInfo(String values){\n\t\tinstrumentInfo = StringUtils.tokenizeString(\"|\", values);\n\t\t\n\t\tinstrument.setType(instrumentInfo.poll());\n\t\tinstrument.setManufacturer(instrumentInfo.poll());\n\t\tinstrument.setModel(instrumentInfo.poll());\n\t\tinstrument.setCatalogNumber(Integer.parseInt(instrumentInfo.poll()));\n\t\tinstrument.setPrice(Double.parseDouble(instrumentInfo.poll()));\n\t}", "title": "" }, { "docid": "2a14310c4ff248e63150a1463ef660b1", "score": "0.5038006", "text": "@Test\n\tpublic void testParseSimpleLine() {\n\t\tString line = \"first,second,third,fourth,fifth\";\n\t\tString[] tokens = Parser.parseLine(line);\n\t\t\n\t\tassertEquals(5, tokens.length);\n\t\tassertEquals(\"first\", tokens[0]);\n\t\tassertEquals(\"fifth\", tokens[4]);\t\t\n\t}", "title": "" }, { "docid": "c219914f40ea41c7df12b3cc2727f0ae", "score": "0.5037739", "text": "public void Parse(){\n for(String s : buffer){\n data.add(new ArrayList<String>());\n int firstindex = 0;\n for(int i = 0; i < s.length(); i++){\n if(s.charAt(i) == ','){\n data.get(data.size()-1).add(s.substring(firstindex,i));\n firstindex = i + 1;\n }\n }\n data.get(data.size()-1).add(s.substring(firstindex,s.length()));\n }\n }", "title": "" }, { "docid": "1b18db40e67071b39ea1a4e1631d29b1", "score": "0.4997937", "text": "@Override\n public void init(String s) {\n log.debug(\"Executing init()\");\n log.debug(\"Parameter data=[{}]\", s);\n String[] values = s.split(\",\");\n coinsList = new ArrayList<>();\n Arrays.stream(values)\n .map(String::trim)\n .forEach(this::register);\n }", "title": "" }, { "docid": "f8612300eb6f730b6c4deb9da64a56f7", "score": "0.49967337", "text": "private Set<IRecord> entitiesParse() {\n Set<IRecord> entities = new LinkedHashSet<>();\n for (String current : this.strings) {\n entities.add(new Record(current.split(this.delimiter)));\n }\n return entities;\n }", "title": "" }, { "docid": "b6a35bae1433dc8a47d6d22999302cff", "score": "0.49880517", "text": "public MyTokenizer(String text) {\n _buffer = text;\t\t// save input text (string)\n next();\t\t// extracts the first token.\n }", "title": "" }, { "docid": "2527a23cccd195a57d99884061088ce6", "score": "0.4983189", "text": "public void setDelimiter(char delimiter) {\n \t\tthis.delimiter = delimiter;\n \t}", "title": "" }, { "docid": "b5c04dc7aab3472678727fb67be251e8", "score": "0.49820328", "text": "static InputTokenizer spaceSplitString() {\n\t\treturn SpaceSplitInputTokenizer.INSTANCE;\n\t}", "title": "" }, { "docid": "9e25da9515901e48db2dbc8013683adb", "score": "0.4977212", "text": "public StrSubstitutor setValueDelimiterMatcher(StrMatcher valueDelimiterMatcher) {\n/* 1252 */ this.valueDelimiterMatcher = valueDelimiterMatcher;\n/* 1253 */ return this;\n/* */ }", "title": "" }, { "docid": "fac0b4c8fadb1c404bd624f22a7de2c4", "score": "0.49764192", "text": "private void splitParameters(String proccessedParameterString){\n\t\t\t\n\t\t\n\t//\tString[] parametersAsStrings = proccessedParameterString.split(\",\");\t\t\n\t\t\n\n\t\t//TODO: SpiffyTextUti.splitNotWithinBrackets could probably be optimized to speed up loading\n\t\tArrayList<String> parametersAsStrings = SpiffyTextUti.splitNotWithinBrackets(proccessedParameterString, \",\", '\"', '\"');\n\t\t\n\t//\tparams = new CommandParameter[parametersAsStrings.length];\n\t\tparams = new CommandParameter[parametersAsStrings.size()];\n\t\t\n\t\t\n\t\t//We might want to use; SpiffyTextUti.splitNotWithinBrackets(tempsplit[2], \";\", '\"', '\"');\n\t\t//Instead. Slower, but would allow commas in other commands more easily.\n\t\t//(currently stuff like Message has its own split for this purpose, which isn't saved like this one is)\n\n\t\t\n\t\t//trim them all! trim trim trim!\n\t\t//(yes,I used a for loop! any decade now they will be back in fashion)\n\t\t\n\t\tfor(int x=0;x<parametersAsStrings.size();x++){\t\t\t\t\n\t\t//\tLog.info(\"storing parameter picked =\"+parametersAsStrings[x]);\n\t\t\tparams[x] = new CommandParameter(parametersAsStrings.get(x).trim());\t\n\n\t\t//\tLog.info(\"CommandParameter =\"+parametersAsStrings.get(x));\n\t\t}\n\t\t\n\t\t\n\t\t\n\t}", "title": "" }, { "docid": "e4b11921199bc8bec7c1def734327233", "score": "0.497638", "text": "public static Queue<String> tokenizeString(String separator, String strToTokenize){\n\t\tStringTokenizer tokenizer = new StringTokenizer(strToTokenize, separator);\n\t\tQueue<String> tokenQueue = new LinkedList<String>();\t\t\n\t\t\n\t\twhile(tokenizer.hasMoreTokens()){\n\t\t\t\ttokenQueue.add(tokenizer.nextToken());\n\t\t}\n\t\t\n\t\treturn tokenQueue;\n\t}", "title": "" }, { "docid": "6d77b63261122f7b6b74e938fcbed929", "score": "0.49527338", "text": "private static JwList<String> getStringsFromDelimitedString(String s)\n {\n if ( JwUtility.isEmpty(s) )\n return new JwList<String>();\n return JwUtility.tokenize(s, ',', true);\n }", "title": "" }, { "docid": "1be4b032efcc14ebc2e9cb5c25ea368b", "score": "0.49486458", "text": "public interface Tokenizer {\n\n /**\n * Tokenizes the input string according to the rules imposed by the tokenizer implementation. Note that if the number of tokens is larger than zero, at least\n * one token created by the tokenizer implementation must have set the isFirst flag to true.\n * \n * @param input\n * the input string to be tokenized.\n * @return a list of tokens.\n */\n List<Token> tokenize(String input);\n\n /**\n * Returns the delimiter used to join single tokens to a complete sequence.\n * \n * @return a string which is used the join the tokens.\n */\n String getDelimiter();\n\n}", "title": "" }, { "docid": "1b80abdd6b8bf20b8c660f126284bcd6", "score": "0.4947132", "text": "TokenizerExpression getTokenize();", "title": "" }, { "docid": "cd665783e1608345b77b935106727698", "score": "0.494571", "text": "@SuppressWarnings({ \"rawtypes\", \"unchecked\" })\n\tpublic static List getTokens(String lst, String separator) {\n List tokens = new ArrayList();\n\n if (lst != null) {\n StringTokenizer st = new StringTokenizer(lst, separator);\n while (st.hasMoreTokens()) {\n try {\n String en = st.nextToken().trim();\n tokens.add(en);\n } catch (Exception e) {\n e.printStackTrace();\n }\n }\n }\n\n return tokens;\n }", "title": "" }, { "docid": "51758448a15ceffce77fc993055ef5b9", "score": "0.49405313", "text": "private void initTokensArray(String str) throws Exception {\n\t\tint lines_num,i;\n\t\tstr= removeComplexComments(str);\n\t\tstr= removeSimpleComments(str);\t\t\n\t\tstr = str.replaceAll(\"\\\"(.+)\\\"\", \"\\n\\\"$1\\n\");\n\t\tstr=handleSpaces(str);\n\t\tstr=handleSymbols(str);\n\t\t\n\t\tstr=joinLines(str.split(\"\\n\"),\"\\n\");\n\t\ttokens= str.split(\"\\n\");\n\t\tlines_num = tokens.length;\n\t\ttokens_type = new int[lines_num];\n\t\tfor (i=0;i<lines_num;i++){\n\t\t\ttokens_type[i]=returnTokenType(tokens[i]);\n\t\t\tif(tokens_type[i]==ERROR){\n\t\t\t\tthrow new Exception(\"token:\"+tokens[i]+\" was not identified\");\n\t\t\t}\n\t\t\tif(tokens_type[i]==SYMBOL || tokens_type[i]==STRINGCONSTANT){\n\t\t\t\ttokens[i]=tokens[i].substring(1); \n\t\t\t\tif(tokens[i].matches(\"\\\\>\")){\n\t\t\t\t\ttokens[i]=\"&gt;\";\n\t\t\t\t}\n\t\t\t\telse if(tokens[i].matches(\"\\\\<\")){\n\t\t\t\t\ttokens[i]=\"&lt;\";\n\t\t\t\t}\n\t\t\t\telse if(tokens[i].matches(\"\\\\&\")){\n\t\t\t\t\ttokens[i]=\"&amp;\";\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t}\n\n\t}", "title": "" }, { "docid": "04f83c7da8738c1e0e88443a49f7c4f2", "score": "0.49363106", "text": "private void tokenize(Set<String> packages, String line) {\n StringTokenizer iter = new StringTokenizer(line, \",\");\n while (iter.hasMoreTokens()) {\n String name = iter.nextToken().trim();\n if (name.length() > 0) {\n packages.add(name);\n }\n }\n }", "title": "" }, { "docid": "00dd9102dbe5a74d881477def67a51c8", "score": "0.4935635", "text": "public TreeNode deserialize(String data) {\n String[] split = data.split(\",\");\n LinkedList<String> list = new LinkedList<>( Arrays.asList(split));\n return reserialize(list);\n }", "title": "" }, { "docid": "64bfcabd912a9a1634f2fd9191712234", "score": "0.49218702", "text": "public void setDelimiter(final char delimiter) {\n this.delimiter = delimiter;\n }", "title": "" }, { "docid": "26ce51f55af80f1675c768ff81fe84f6", "score": "0.49191287", "text": "protected void initDelimiterParserElement()\n\t{\n\t\tif ( realParserElement != null )\n\t\t{\n\t\t\treturn;\n\t\t}\n\n\t\tDelimiterParserElement realElement = new DelimiterParserElement( DelimiterParserElement.FULL_PREFIX, plugins );\n\t\trealElement.setType( type );\n\t\tfor ( int i = 0; i < propertyElements.size(); i++ )\n\t\t{\n\t\t\trealElement.addConfiguredProperty( (PropertyElement) propertyElements.get(i) );\n\t\t}\n\t\tthis.realParserElement = realElement;\n\t}", "title": "" }, { "docid": "cea4ba023770310095f886373bb980a7", "score": "0.49075255", "text": "void addTokens(String aStrRep)\n {\n final String trimmed = aStrRep.trim();\n if (trimmed.length() == 0) {\n return;\n }\n\n final StringTokenizer st = new StringTokenizer(trimmed, \",\");\n while (st.hasMoreTokens()) {\n mTokens.add(st.nextToken().trim());\n }\n }", "title": "" }, { "docid": "f05938e9086cdf600c0b23022ece193b", "score": "0.49066415", "text": "@Override\n public void parse(String st) {\n\n String[] ss1 = split(st,\"[ ,]{1,}\");\n instName = ss1[0];\n irType = ss1[1];\n operand = new IrVariable(irType, ss1[2]);\n lab1 = ss1[4].replace(\"%\", \"\");\n lab2 = ss1[6].replace(\"%\", \"\");\n }", "title": "" }, { "docid": "d67b9c11b4efb116b7cd8ec90572b074", "score": "0.49010277", "text": "Token(String tok) {\r\n\t token = TokenType.NUMBER;\r\n\t try {\r\n\t \tnumber = Long.parseLong(tok);\r\n\t }\r\n\t catch(NumberFormatException e)\r\n\t {\r\n\t \tSystem.out.println(\"Invalid Input for token: \\\"\" + tok + \"\\\"\");\r\n\t \tthrow new NumberFormatException();\r\n\t }\r\n\t string = tok;\r\n\t}", "title": "" }, { "docid": "868ef325db7d5114f9783ec487cb86be", "score": "0.48971242", "text": "protected abstract T parse(String value);", "title": "" }, { "docid": "cdca173066d471784707a3867d0cde3a", "score": "0.4893473", "text": "public MyScanner (String s)\n {\n this.tokens = s.trim().split(\"\\\\s+\");\n this.index = 0;\n }", "title": "" }, { "docid": "007896c0b5ade9c6f92c27a80ea6564b", "score": "0.48915017", "text": "protected StringTokenizer newSynonymTokenizer(String pattern)\r\n {\r\n return new StringTokenizer(pattern, \" ,;\\\"\");\r\n }", "title": "" }, { "docid": "a4857fca5eceace57b9492b9e7e312b4", "score": "0.48828033", "text": "SplittedString createSplittedString();", "title": "" }, { "docid": "798ed125d387936c85437f2d288d59aa", "score": "0.48609012", "text": "public static void testQuotedStringTokenizer()\n {\n TestCase test = new TestCase(\"org.mortbay.util.QuotedStringTokenizer\");\n try\n {\n QuotedStringTokenizer tok;\n \n tok=new QuotedStringTokenizer\n (\"aaa, bbb, 'ccc, \\\"ddd\\\", \\\\'eee\\\\''\",\", \");\n test.check(tok.hasMoreTokens(),\"hasMoreTokens\");\n test.check(tok.hasMoreTokens(),\"hasMoreTokens\");\n test.checkEquals(tok.nextToken(),\"aaa\",\"aaa\");\n test.check(tok.hasMoreTokens(),\"hasMoreTokens\");\n test.checkEquals(tok.nextToken(),\"bbb\",\"bbb\");\n test.check(tok.hasMoreTokens(),\"hasMoreTokens\");\n test.checkEquals(tok.nextToken(),\"ccc, \\\"ddd\\\", 'eee'\",\"quoted\");\n test.check(!tok.hasMoreTokens(),\"hasMoreTokens\");\n test.check(!tok.hasMoreTokens(),\"hasMoreTokens\");\n \n tok=new QuotedStringTokenizer\n (\"aaa, bbb, 'ccc, \\\"ddd\\\", \\\\'eee\\\\''\",\", \",false,true);\n test.checkEquals(tok.nextToken(),\"aaa\",\"aaa\");\n test.checkEquals(tok.nextToken(),\"bbb\",\"bbb\");\n test.checkEquals(tok.nextToken(),\"'ccc, \\\"ddd\\\", \\\\'eee\\\\''\",\"quoted\");\n \n tok=new QuotedStringTokenizer\n (\"aa,bb;\\\"cc\\\",,'dd',;'',',;','\\\\''\",\";,\");\n test.checkEquals(tok.nextToken(),\"aa\",\"aa\");\n test.checkEquals(tok.nextToken(),\"bb\",\"bb\");\n test.checkEquals(tok.nextToken(),\"cc\",\"cc\");\n test.checkEquals(tok.nextToken(),\"dd\",\"dd\");\n test.checkEquals(tok.nextToken(),\"\",\"empty\");\n test.checkEquals(tok.nextToken(),\",;\",\"delimiters\");\n test.checkEquals(tok.nextToken(),\"'\",\"escaped\");\n \n tok=new QuotedStringTokenizer\n (\"xx,bb;\\\"cc\\\",,'dd',;'',',;','\\\\''\",\";,\",true);\n test.checkEquals(tok.nextToken(),\"xx\",\"xx\");\n test.checkEquals(tok.nextToken(),\",\",\",\");\n test.checkEquals(tok.nextToken(),\"bb\",\"bb\");\n test.checkEquals(tok.nextToken(),\";\",\";\");\n test.checkEquals(tok.nextToken(),\"cc\",\"cc\");\n test.checkEquals(tok.nextToken(),\",\",\",\");\n test.checkEquals(tok.nextToken(),\",\",\",\");\n test.checkEquals(tok.nextToken(),\"dd\",\"dd\");\n test.checkEquals(tok.nextToken(),\",\",\",\");\n test.checkEquals(tok.nextToken(),\";\",\";\");\n test.checkEquals(tok.nextToken(),\"\",\"empty\");\n test.checkEquals(tok.nextToken(),\",\",\",\");\n test.checkEquals(tok.nextToken(),\",;\",\"delimiters\");\n test.checkEquals(tok.nextToken(),\",\",\",\");\n test.checkEquals(tok.nextToken(),\"'\",\"escaped\");\n \n tok=new QuotedStringTokenizer\n (\"aaa;bbb,ccc;ddd\",\";\");\n test.checkEquals(tok.nextToken(),\"aaa\",\"aaa\");\n test.check(tok.hasMoreTokens(),\"hasMoreTokens\");\n test.checkEquals(tok.nextToken(\",\"),\"bbb\",\"bbb\");\n test.checkEquals(tok.nextToken(),\"ccc;ddd\",\"ccc;ddd\");\n \n test.checkEquals(QuotedStringTokenizer.quote(\"aaa\",\" \"),\"aaa\",\"no quote\");\n test.checkEquals(QuotedStringTokenizer.quote(\"a a\",\" \"),\"\\\"a a\\\"\",\"quote\");\n test.checkEquals(QuotedStringTokenizer.quote(\"a'a\",\" \"),\"\\\"a'a\\\"\",\"quote\");\n test.checkEquals(QuotedStringTokenizer.quote(\"a,a\",\",\"),\"\\\"a,a\\\"\",\"quote\");\n test.checkEquals(QuotedStringTokenizer.quote(\"a\\\\a\",\"\"),\"\\\"a\\\\\\\\a\\\"\",\"quote\");\n \n }\n catch(Exception e)\n {\n log.warn(LogSupport.EXCEPTION,e);\n test.check(false,e.toString());\n }\n }", "title": "" }, { "docid": "802ab9858f33e2785a884e31ad31c4bd", "score": "0.48560968", "text": "public LightStringTokenizerCharArray(String source, char delimiter)\n {\n this.source = source.toCharArray();\n this.delimiter = delimiter;\n\n sourceLength = source.length();\n }", "title": "" }, { "docid": "7dc9fcf62e78e330ce0e752653575696", "score": "0.48548335", "text": "public void setSeparator(String s) {\n separator = s;\n }", "title": "" }, { "docid": "c3e1c69723249a2d49a0e9a6c0df489f", "score": "0.4851185", "text": "private void parseValues() {\n\t}", "title": "" }, { "docid": "b62380d579a2d853ea6c5479b4740a8b", "score": "0.48510656", "text": "ListBuilder<T> delimitedBy(final String delimiter);", "title": "" }, { "docid": "8204521d3f6133d8c626cdfeb13144b2", "score": "0.48440146", "text": "@Override\r\n\tpublic void handle(){\r\n\t\t/*\r\n\t\t * _humanQuery will be tokenized into token using StringTokenizer class that divides \r\n\t\t * the Strings in to tokens by considering the <space> delim\r\n\t\t */\r\n\t\t_stringTokenizer = new StringTokenizer(_humanQuery);\r\n\t\t_tempStringTokenizer = _stringTokenizer;\r\n\t\ttrigger();\t\t\t\t\t\t\t\t\t\t\t//trigger the tokenization process\r\n\t}", "title": "" }, { "docid": "8ad49648443c467b28b8203fc867709b", "score": "0.48407254", "text": "public void setToken(String value) { token = value; }", "title": "" }, { "docid": "a36a6c337c7543a13d729a1ea129c208", "score": "0.48376393", "text": "Object parseString(final Class<?> impl, final String value);", "title": "" }, { "docid": "bf20c2cff7192f7e3fc07964056a0dde", "score": "0.48343793", "text": "private BeanTokenizer() {\n super();\n }", "title": "" }, { "docid": "0f04109db0e317f47f4d89eee44193b9", "score": "0.48269367", "text": "public OpenNLPTokenizer(String path){\n\t\tpathToTokenizer=path;\n\t}", "title": "" }, { "docid": "11247064e1414dcd61a829a084eb4a6f", "score": "0.48235613", "text": "public void setFromListString(String liststring) {\n setConstructorString(Operation_new.FROM_LIST_PREFIX, liststring); \n }", "title": "" }, { "docid": "64d2fc249cef61116c3a8a8921b05763", "score": "0.4822233", "text": "public static void main(String[] args) {\n StringTokenizer s = new StringTokenizer(\"Dharmendra Namdev MCA UOH\");\n while (s.hasMoreTokens()) {\n Object data = s.nextToken();\n System.out.println(data);\n \n }\n System.out.println();\n \n s = new StringTokenizer(\"COA OS TOC DBMS AI BDS\");\n while (s.hasMoreElements()) {\n Object nextElement = s.nextElement();\n System.out.println(nextElement);\n }\n \n System.out.println();\n \n s = new StringTokenizer(\"31-March-1997\",\"-\"); //here '-' hyphen = Pattern / RE / Delim\n while (s.hasMoreElements()) {\n System.out.println(s.nextElement());\n }\n \n \n }", "title": "" }, { "docid": "db4282494a3199bae2fc1dd9aa586f44", "score": "0.48218936", "text": "protected abstract void split();", "title": "" }, { "docid": "8a1691fe755bd917085568953f3bb1d6", "score": "0.48174366", "text": "private static List getTokens(String str, String delimiter) {\r\n\t\tList tokens = new ArrayList();\r\n\t\tboolean flag = true;\r\n\t\t\r\n\t\twhile (flag) {\r\n\t\t\tint delimitIndex = str.indexOf(delimiter);\r\n\t\t\tif (delimitIndex < 0){\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t\tString token = str.substring(0,delimitIndex);\r\n\t\t\tif (token.length() == 0)\r\n\t\t\t\ttoken = null;\r\n\t\t\tstr = str.substring(delimitIndex+1);\r\n\t\t\ttokens.add(token);\r\n\t\t}\r\n\t\treturn tokens;\r\n\t}", "title": "" }, { "docid": "1ccfe65f2e4fc2e0a520b9f344de9a68", "score": "0.48113978", "text": "@Test\n\tpublic void testParseQuotedCommas() {\n\t\tString line = \"Austin House Fish & Chips,\\\"# 1, 32650 Logan Avenue\\\",Food Primary,94\";\n\t\tString[] tokens = Parser.parseLine(line);\n\t\t\n\t\tassertEquals(\"Austin House Fish & Chips\", tokens[0]);\n\t\tassertEquals(\"# 1, 32650 Logan Avenue\", tokens[1]);\n\t\tassertEquals(\"Food Primary\", tokens[2]);\n\t\tassertEquals(\"94\", tokens[3]);\n\t\tassertEquals(4, tokens.length);\n\t}", "title": "" }, { "docid": "7d88e96d2647ccea3e3a62c71db8fdd2", "score": "0.48091298", "text": "static ArrayList<String> parseLineData(String lineData) {\n\t\tArrayList<String> tokens = new ArrayList<String>();\n\t\tint beginIndex = 0;\n\t\tboolean inQuotes = false;\n\t\tfor (int i = 0; i < lineData.length(); i++) {\n\t\t\tif(lineData.charAt(i) == '\\\"') {\n\t\t\t\tinQuotes = !inQuotes;\n\t\t\t}\n\t\t\telse if (lineData.charAt(i) == ',' && !inQuotes) {\n\t\t\t\ttokens.add(lineData.substring(beginIndex, i));\n\t\t\t\tbeginIndex = i + 1;\n\t\t\t}\n\t\t}\n\t\ttokens.add(lineData.substring(beginIndex));\n\t\t\n\t\t// removing quotes from definitions with commas\n\t\tif(tokens.get(2).charAt(0) == '\"') {\n\t\t\ttokens.set(2, tokens.get(2).substring(1, tokens.get(2).length()-1));\n\t\t}\n\t\treturn tokens;\n\t}", "title": "" }, { "docid": "f69370a5ddd3f195f2040b8dd931120d", "score": "0.48075858", "text": "public static void main(String[] args) {\n\t\tStringTokenizer st = new StringTokenizer(\"Welcome to JAVA planet!!\");\r\n\t\twhile(st.hasMoreTokens()) {\r\n\t\t\t System.out.println(st.nextToken());\r\n\t\t}\r\n\t\t\r\n\t\t// Sample 2 (Delimiter is \",\")\r\n\t\tStringTokenizer st2= new StringTokenizer(\"Red,Orange,Blue,Green\", \",\");\r\n\t\twhile(st2.hasMoreTokens()) {\r\n\t\t\tSystem.out.println(st2.nextToken());\r\n\t\t}\r\n\t\t\r\n\t\t// Sample 3 (Delimiter is \"+\" and \"=\")\r\n\t\tStringTokenizer st3= new StringTokenizer(\"1+3=4\", \"+=\");\r\n\t\twhile(st3.hasMoreTokens()) {\r\n\t\t\tSystem.out.println(st3.nextToken());\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "c8cb4b5762aa6aeb9b1907208d6224b9", "score": "0.48015836", "text": "public static void main(String[] args) {\n\tint nm1,nm2;\n\n\tSystem.out.println(\"enter the number\");\n\tScanner sc = new Scanner(System.in);\n\tString str = sc.next();\n\tStringTokenizer stok = new StringTokenizer(str,\"+\",true);\n\tString temp = stok.nextToken();\n\tSystem.out.println(temp);\n\ttemp = stok.nextToken();\n\tSystem.out.println(temp);\n\ttemp = stok.nextToken();\n\tSystem.out.println(temp);\n\tSystem.out.println(\"=\");\n\t}", "title": "" }, { "docid": "3350cc066ea294537fa9dad99409075b", "score": "0.48012164", "text": "private void separar(String texto) {\n\t\tString[] aux = texto.split(\",\"); // separa toda a linha por virgulas\n\t\tint tam = aux.length;\n\t\tString ajuda = \"\";\n\t\t\n\t\t//System.out.println(\"###################################\");\n\t\tRegistro r = new MensagemProcessada(); // cria um objeto do tipo Registo\n\t\t\n\t\tr.setId(aux[0]);\n\t\tr.setLink(aux[tam-2]);\n\t\tr.setTimestamp(aux[tam-1]);\n\t\t\n\t\t//cocatena todo o conteudo.\n\t\tfor(int i = 1; i < tam -2;i++) {\n\t\t\tajuda = ajuda.concat(aux[i] + \" \"); \n\t\t}\n\t\t\n\t\tr.setConteudo(ajuda); // armazena o conteudo original\n\t\t\n\t\tr.setMensagemProcessada(ProcessarConteudo(r.getConteudo())); // aramazena o conteudo processado\n\t\t\n\t\tbd.Adicionar(criarHash(r.getMensagemProcessada()), r);\t// aramazena no BancoDeDados o registro da noticia.\t\n\t}", "title": "" }, { "docid": "554cd4d212ee654503c9225ce34e71a3", "score": "0.4800262", "text": "protected void parseStationLine(String unparsedLine) {\r\n\t\tif (DEBUG)\r\n\t\t\tSystem.out.println(\"station line = \" + unparsedLine);\r\n\r\n\t\tStringTokenizer t = new StringTokenizer(unparsedLine, \" ,:\");\r\n\t\tint numTokens = 0;\r\n\t\tString nextToken = t.nextToken();\r\n\r\n\t\tif (nextToken.indexOf(\"station\") < 0) {\r\n\t\t\tSystem.out.println(\"ERROR in XsectAsciiInput.parseStationLine: \");\r\n\t\t\tSystem.out.println(\"First token should be 'station' but it's actually \" + nextToken);\r\n\t\t}\r\n\t\twhile (t.hasMoreTokens()) {\r\n\t\t\t_station.put(numTokens, Float.parseFloat(t.nextToken()));\r\n\t\t\tnumTokens++;\r\n\t\t}\r\n\t\t_numStationValues = numTokens;\r\n\t}", "title": "" }, { "docid": "d48690b0f2991a8037740de99acb8899", "score": "0.47957194", "text": "public static @NonNull StsPolicy getStsPolicyFromString(@NonNull String delimiter, @NonNull String str) {\n Sanity.nullCheck(delimiter, \"Need a valid delimiter.\");\n Sanity.nullCheck(str, \"Need a valid string to parse.\");\n\n String[] components = str.split(delimiter);\n // each component looks like:\n // \"foo=bar\" OR \"foo\"\n Map<String, String> options = new HashMap<>();\n Set<String> flags = new HashSet<>();\n for (String component : components) {\n if (!component.contains(\"=\")) {\n flags.add(component);\n } else {\n String[] innerComponents = component.split(\"=\");\n options.put(innerComponents[0], innerComponents[1]);\n }\n }\n return new StsPolicy(options, flags);\n }", "title": "" }, { "docid": "5fb93bf2493a58870b3a23a7ab3c6292", "score": "0.47941417", "text": "public abstract Object parseValue(String value);", "title": "" }, { "docid": "8e0fe64c1ba754c5e9a1d08268999f71", "score": "0.4787943", "text": "@Test\n public void test1() {\n String text = \"thelordofthering\";\n List<String> expected = Arrays.asList(\"lord\", \"ring\");\n WordBreakTokenizer tokenizer = new WordBreakTokenizer();\n\n assertEquals(expected, tokenizer.tokenize(text));\n\n }", "title": "" }, { "docid": "b813994e18e2608a154980670e305d55", "score": "0.4786852", "text": "private static void parseLine(String str, Digraph graph) throws IOException{\n\n Scanner scanner = new Scanner(str);\n scanner.useDelimiter(\"\\t\");\n while (scanner.hasNext()) {\n\n String a = scanner.next();\n String b = scanner.next();\n if (!a.equals(\"NONE\")){\n graph.addVertex(a);\n } \n graph.addVertex(b);\n graph.addSuccessor(a, b);\n }\n scanner.close();\n }", "title": "" }, { "docid": "11add7d6dbcb8d0ecf1e9aa480e1a536", "score": "0.4782771", "text": "private void parseObjectLine(StreamTokenizer tokenizer, \n URL baseUrl) throws IOException {\n if (\"v\".equals(tokenizer.sval)) {\n // Read vertex v x y z\n float x = parseNumber(tokenizer);\n skipBackSlash(tokenizer);\n float y = parseNumber(tokenizer);\n skipBackSlash(tokenizer);\n float z = parseNumber(tokenizer);\n this.vertices.add(new Point3f(x, y, z));\n // Skip next number if it exists\n if (tokenizer.nextToken() == StreamTokenizer.TT_EOL) {\n tokenizer.pushBack();\n }\n } else if (\"vn\".equals(tokenizer.sval)) {\n // Read normal vn x y z\n float x = parseNumber(tokenizer);\n skipBackSlash(tokenizer);\n float y = parseNumber(tokenizer);\n skipBackSlash(tokenizer);\n float z = parseNumber(tokenizer);\n this.normals.add(new Vector3f(x, y, z)); \n } else if (\"vt\".equals(tokenizer.sval)) {\n // Read texture coordinate vt x y \n // or vt x y z\n float x = parseNumber(tokenizer);\n skipBackSlash(tokenizer);\n float y = parseNumber(tokenizer);\n this.textureCoordinates.add(new TexCoord2f(x, y)); \n // Skip next number if it exists\n if (tokenizer.nextToken() == StreamTokenizer.TT_EOL) {\n tokenizer.pushBack();\n }\n } else if (\"l\".equals(tokenizer.sval)) {\n tokenizer.ordinaryChar('/');\n // Read line l v v v ...\n // or l v/vt v/vt v/vt ...\n List<Integer> vertexIndices = new ArrayList<Integer>(2);\n List<Integer> textureCoordinateIndices = new ArrayList<Integer>(2); \n boolean first = true;\n while (true) { \n if (first) {\n first = false;\n } else {\n skipBackSlash(tokenizer);\n }\n if (tokenizer.nextToken() == StreamTokenizer.TT_EOL) {\n break;\n } else {\n tokenizer.pushBack();\n }\n // Read vertex index\n int vertexIndex = parseInteger(tokenizer) - 1;\n if (vertexIndex < 0) {\n vertexIndex += this.vertices.size() + 1;\n }\n vertexIndices.add(vertexIndex);\n \n if (tokenizer.nextToken() != '/') {\n // l v \n tokenizer.pushBack(); \n } else {\n // l v/vt : read texture coordinate index \n int textureCoordinateIndex = parseInteger(tokenizer) - 1;\n if (textureCoordinateIndex < 0) {\n textureCoordinateIndex += this.textureCoordinates.size() + 1;\n } \n textureCoordinateIndices.add(textureCoordinateIndex);\n }\n }\n tokenizer.pushBack(); \n tokenizer.wordChars('/', '/');\n if (textureCoordinateIndices.size() != 0\n && textureCoordinateIndices.size() != vertexIndices.size()) {\n // Ignore unconsistent texture coordinate \n textureCoordinateIndices.clear();\n } \n if (vertexIndices.size() > 1) {\n this.currentGroup.addGeometry(new Line(vertexIndices, textureCoordinateIndices, \n this.currentMaterial));\n }\n } else if (\"f\".equals(tokenizer.sval)) {\n tokenizer.ordinaryChar('/');\n // Read face f v v v ...\n // or f v//vn v//vn v//vn ...\n // or f v/vt v/vt v/vt ...\n // or f v/vt/vn v/vt/vn v/vt/vn ...\n List<Integer> vertexIndices = new ArrayList<Integer>(4);\n List<Integer> textureCoordinateIndices = new ArrayList<Integer>(4); \n List<Integer> normalIndices = new ArrayList<Integer>(4);\n boolean first = true;\n while (true) {\n if (first) {\n first = false;\n } else {\n skipBackSlash(tokenizer);\n }\n if (tokenizer.nextToken() == StreamTokenizer.TT_EOL) {\n break;\n } else {\n tokenizer.pushBack();\n }\n // Read vertex index\n int vertexIndex = parseInteger(tokenizer) - 1;\n if (vertexIndex < 0) {\n vertexIndex += this.vertices.size() + 1;\n }\n vertexIndices.add(vertexIndex);\n \n if (tokenizer.nextToken() != '/') {\n // f v \n tokenizer.pushBack(); \n } else {\n if (tokenizer.nextToken() != '/') {\n // f v/vt : read texture coordinate index \n tokenizer.pushBack(); \n int textureCoordinateIndex = parseInteger(tokenizer) - 1;\n if (textureCoordinateIndex < 0) {\n textureCoordinateIndex += this.textureCoordinates.size() + 1;\n } \n textureCoordinateIndices.add(textureCoordinateIndex);\n tokenizer.nextToken();\n }\n if (tokenizer.ttype == '/') {\n // f v//vn \n // or f v/vt/vn : read normal index\n int normalIndex = parseInteger(tokenizer) - 1;\n if (normalIndex < 0) {\n normalIndex += this.normals.size() + 1;\n }\n normalIndices.add(normalIndex);\n } else {\n tokenizer.pushBack();\n }\n }\n }\n tokenizer.pushBack(); \n tokenizer.wordChars('/', '/');\n if (textureCoordinateIndices.size() != 0\n && textureCoordinateIndices.size() != vertexIndices.size()) {\n // Ignore unconsistent texture coordinate \n textureCoordinateIndices.clear();\n } \n if (normalIndices.size() != 0\n && normalIndices.size() != vertexIndices.size()) {\n // Ignore unconsistent normals \n normalIndices.clear();\n }\n if (vertexIndices.size() > 2) {\n this.currentGroup.addGeometry(new Face(vertexIndices, textureCoordinateIndices, normalIndices, \n this.currentSmooth, this.currentMaterial));\n }\n } else if (\"g\".equals(tokenizer.sval)\n || \"o\".equals(tokenizer.sval)) {\n // Read group name g name \n // or object name o name\n if (tokenizer.nextToken() == StreamTokenizer.TT_WORD) {\n this.currentGroup = this.groups.get(tokenizer.sval);\n if (this.currentGroup == null) {\n this.currentGroup = new Group(tokenizer.sval);\n this.groups.put(this.currentGroup.getName(), this.currentGroup);\n }\n } else if (tokenizer.ttype == StreamTokenizer.TT_EOL) {\n // Use default group\n this.currentGroup = this.groups.get(\"default\");\n tokenizer.pushBack();\n } else { \n throw new IncorrectFormatException(\"Expected group or object name at line \" + tokenizer.lineno());\n }\n // Skip other names\n while (tokenizer.nextToken() == StreamTokenizer.TT_WORD) { \n }\n tokenizer.pushBack(); \n } else if (\"s\".equals(tokenizer.sval)) {\n // Read smoothing group s n \n // or s off\n if (tokenizer.nextToken() == StreamTokenizer.TT_WORD) {\n this.currentSmooth = !\"off\".equals(tokenizer.sval);\n } else {\n throw new IncorrectFormatException(\"Expected smoothing group or off at line \" + tokenizer.lineno());\n }\n } else if (\"usemtl\".equals(tokenizer.sval)) {\n // Read the material name usemtl name (tolerating space in the name)\n tokenizer.wordChars(' ', ' ');\n int usemtlToken = tokenizer.nextToken();\n tokenizer.whitespaceChars(' ', ' ');\n if (usemtlToken == StreamTokenizer.TT_WORD) {\n this.currentMaterial = tokenizer.sval;\n } else {\n throw new IncorrectFormatException(\"Expected material name at line \" + tokenizer.lineno());\n }\n } else if (\"mtllib\".equals(tokenizer.sval)) {\n // Read characters following mtllib in case they contain a file name with spaces \n tokenizer.wordChars(' ', ' ');\n int mtllibToken = tokenizer.nextToken();\n tokenizer.whitespaceChars(' ', ' ');\n if (mtllibToken == StreamTokenizer.TT_WORD) {\n String mtllibString = tokenizer.sval.trim();\n // First try to parse space separated library files\n int validLibCount = 0;\n String [] libs = mtllibString.split(\" \");\n for (String lib : libs) {\n if (parseMaterial(lib, baseUrl)) {\n validLibCount++;\n }\n }\n if (libs.length > 1 && validLibCount == 0) {\n // Even if not in format specifications, give a chance to file names with spaces\n parseMaterial(mtllibString, baseUrl);\n }\n } else {\n throw new IncorrectFormatException(\"Expected material library at line \" + tokenizer.lineno());\n }\n } else {\n // Skip other lines (including comment lines starting by #)\n int token;\n do {\n token = tokenizer.nextToken();\n } while (token != StreamTokenizer.TT_EOL && token != StreamTokenizer.TT_EOF);\n tokenizer.pushBack(); \n }\n \n int token = tokenizer.nextToken();\n if (token != StreamTokenizer.TT_EOL && token != StreamTokenizer.TT_EOF) {\n throw new IncorrectFormatException(\"Expected end of line at line \" + tokenizer.lineno());\n }\n }", "title": "" }, { "docid": "0c947d1975c38c0dffdaad9b14d923f8", "score": "0.47599646", "text": "public void setTokenizer(Tokenizer t) {\n/* 67 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "title": "" }, { "docid": "f6d8a4c8f3ffde4e0c1bba150724708d", "score": "0.47579047", "text": "public Builder<T> seperatedBy(String seperator) {\n this.seperator = seperator;\n return this;\n }", "title": "" }, { "docid": "0a5877c783966607bbedf12ece992675", "score": "0.4752618", "text": "private void setGroup(StringTokenizer tokenizer) {\n currentGroups = new java.util.ArrayList<String>();\n while(tokenizer.hasMoreTokens())\n currentGroups.add(tokenizer.nextToken());\n }", "title": "" }, { "docid": "610e84664ed06d197fd61b2393c27fa1", "score": "0.47525883", "text": "private static List<List<String>> getSynList(String str, String separator,\r\n\t\t\tTokenizerFactory tokFactory) throws IOException\r\n\t{\r\n\t\tList<String> strList = splitSmart(str, separator, false);\r\n\t\t// now split on whitespace to get a list of token strings\r\n\t\tList<List<String>> synList = new ArrayList<List<String>>();\r\n\t\tfor (String toks : strList)\r\n\t\t{\r\n\t\t\tList<String> tokList = tokFactory == null ? splitWS(toks, true)\r\n\t\t\t\t\t: splitByTokenizer(toks, tokFactory);\r\n\t\t\tsynList.add(tokList);\r\n\t\t}\r\n\t\treturn synList;\r\n\t}", "title": "" }, { "docid": "2e277b54f5bc7746c5708a5ad83a25de", "score": "0.47469294", "text": "private void parseValue(String value, Resource resource) {\n String[] values = value.split(\";\");\n\n // for each value create a tag and type, if appropriate\n for (String value1 : values) {\n resource.addProperty(MCA_GEO.hasTag, value1);\n }\n }", "title": "" }, { "docid": "40d0ac5abd934b8120167e557b33f992", "score": "0.47450078", "text": "public void parser(String[] strings) {\n this.ExhibitionId = Integer.valueOf(strings[0]);\n this.BoothNum = strings[1];\n this.NewNav = strings[2];\n this.Sharp = strings[3];\n this.NewSPC = strings[4];\n this.Hall = strings[5];\n this.Fx = strings[6];\n\n separateNav();\n }", "title": "" }, { "docid": "96b48d03168df8841176d39acbdbd2f7", "score": "0.47346562", "text": "@Override\n public boolean setValue(String value) {\n StringBuilder sb = new StringBuilder();\n boolean isFirst = true;\n for (String s:value.toString().split(fDelimeter)) {\n if (!isFirst) {\n sb.append(\",\");\n }\n isFirst = false;\n sb.append(s);\n }\n String s = sb.toString();\n return super.setValue(s);\n }", "title": "" }, { "docid": "05473f1d07cd23ee5128d29151a75750", "score": "0.473137", "text": "private void parseDatObject(String datObject) {\n int currentIndex = 0;\n while(datObject.length() > currentIndex) {\n if ('\\\"' != datObject.charAt(currentIndex)) {\n break;\n }\n int index = datObject.indexOf('\\\"', currentIndex + 1);\n if (-1 == index) {\n break;\n }\n String mapKey = datObject.substring(currentIndex + 1, index);\n if (datObject.length() < index + 2) {\n break;\n }\n int endIndex = datObject.indexOf(\"}]\", index + 2);\n if (-1 == endIndex) {\n break;\n }\n String mapValue = datObject.substring(index + 2, endIndex + 2);\n mHosts.put(mapKey, mapValue);\n currentIndex = endIndex + 3;\n }\n }", "title": "" }, { "docid": "3a4c96f927e8bbcc40351d0924709155", "score": "0.47307634", "text": "public String getDelimString();", "title": "" }, { "docid": "41ed605b3676fbf15b255408a8d6c2ca", "score": "0.47262922", "text": "void setSeparator(char separator);", "title": "" }, { "docid": "4ff0bf71924bd67d56d8b96903974c72", "score": "0.4723898", "text": "public Object construct(Token paramToken, FileParser parser);", "title": "" }, { "docid": "8f30397bddff98d634a15de8f76c15f1", "score": "0.47238737", "text": "@Override\n public Theta map(String value) throws Exception {\n\n Theta t = new Theta();\n\n String[] split = value.split(\",\");\n double[] features = new double[split.length];\n\n for (int i = 0; i < split.length; i++) {\n features[i] = Double.parseDouble(split[i].replaceAll(\"[^0-9.,-]+\", \"\"));\n }\n\n t.setComponents(features);\n return t;\n }", "title": "" }, { "docid": "4a744592671e57462b5eaa023b7979eb", "score": "0.47233889", "text": "@Test\n\tpublic void testParseExampleLine() {\n\t\tString line = \"The View Winery ,#1 - 2287 Ward Road,,KELOWNA,V1W4R5,1-2287 WARD RD,,KELOWNA,BC,V1W4R5,250 2151331,Winery,0\";\n\t\tString[] tokens = Parser.parseLine(line);\n\t\t\n\t\tassertEquals(\"The View Winery\", tokens[0]);\n\t\tassertEquals(\"#1 - 2287 Ward Road\", tokens[1]);\n\t\tassertEquals(\"\", tokens[2]);\n\t\tassertEquals(\"0\", tokens[12]);\n\t\tassertEquals(13, tokens.length);\n\t}", "title": "" }, { "docid": "7173feb3e62f6e881fd5fe4829d6be5a", "score": "0.4719583", "text": "public static Person ParseInput(String input) {\n\t\tString[] tokens = input.split(\",\");\n\t\treturn new Person(tokens[0], tokens[1], tokens[2]);\n\t}", "title": "" } ]
d7fce4c06e554242392c3c1947037e32
/ access modifiers changed from: private / renamed from: a
[ { "docid": "faec71d4fafb808f3891c182842861c2", "score": "0.0", "text": "public void accept(Throwable th) {\n C8444d.m25673b();\n C7573i.m23582a((Object) th, \"t\");\n C8444d.m11969a(5, th.getStackTrace());\n if (this.f16406c > 0) {\n PortalWidget portalWidget = this.f16404a;\n C7321c f = C7492s.m23295b(5, TimeUnit.SECONDS).mo19294a(C47549a.m148327a()).mo19325f((C7326g<? super T>) new C7326g<Long>(this) {\n\n /* renamed from: a */\n final /* synthetic */ C5525w f16407a;\n\n {\n this.f16407a = r1;\n }\n\n /* access modifiers changed from: private */\n /* renamed from: a */\n public void accept(Long l) {\n this.f16407a.f16404a.mo13982a(this.f16407a.f16405b, this.f16407a.f16406c - 1);\n }\n });\n C7573i.m23582a((Object) f, \"Observable.timer(INITIAL… }\");\n portalWidget.mo13985a(f);\n }\n }", "title": "" } ]
[ { "docid": "55c46b869b6d786d8df5e3524b6bb6a9", "score": "0.7062775", "text": "@Override\n\tpublic void a() {\n\t\t\n\t}", "title": "" }, { "docid": "55c46b869b6d786d8df5e3524b6bb6a9", "score": "0.7062775", "text": "@Override\n\tpublic void a() {\n\t\t\n\t}", "title": "" }, { "docid": "55c46b869b6d786d8df5e3524b6bb6a9", "score": "0.7062775", "text": "@Override\n\tpublic void a() {\n\t\t\n\t}", "title": "" }, { "docid": "55c46b869b6d786d8df5e3524b6bb6a9", "score": "0.7062775", "text": "@Override\n\tpublic void a() {\n\t\t\n\t}", "title": "" }, { "docid": "55c46b869b6d786d8df5e3524b6bb6a9", "score": "0.7062775", "text": "@Override\n\tpublic void a() {\n\t\t\n\t}", "title": "" }, { "docid": "3fa4fd2138d74c541b033538d5790802", "score": "0.7036943", "text": "protected oa a(agi paramagi)\r\n/* 21: */ {\r\n/* 22:27 */ return a;\r\n/* 23: */ }", "title": "" }, { "docid": "53e341f0a65f5f2314974705ff4b401c", "score": "0.6931188", "text": "private Ab(){\n\t\t\n\t}", "title": "" }, { "docid": "45e3c105f171ec06147529faea4dac24", "score": "0.69202906", "text": "@Override\r\n\tvoid a() {\n\t\t\r\n\t}", "title": "" }, { "docid": "6970f3058f2856f3c7f6df66714797c7", "score": "0.6917294", "text": "public void func_152634_a() {}", "title": "" }, { "docid": "808d11b28e09a38a0bf8c2ed145ec005", "score": "0.6578409", "text": "protected oa a(adv paramadv)\r\n/* 56: */ {\r\n/* 57:74 */ return cua.g;\r\n/* 58: */ }", "title": "" }, { "docid": "03548ef8ac3d14f656c0614efb82dcc4", "score": "0.6501085", "text": "public void a() {\n }", "title": "" }, { "docid": "03548ef8ac3d14f656c0614efb82dcc4", "score": "0.6501085", "text": "public void a() {\n }", "title": "" }, { "docid": "278bfeb2dfcfe8c458b9116c836a7fd4", "score": "0.644439", "text": "public String a()\r\n/* 9: */ {\r\n/* 10:2247 */ return this.a.y.a ? this.a.y.c() : \"N/A (disabled)\";\r\n/* 11: */ }", "title": "" }, { "docid": "bac3b9c82d7fc9e503d0b4436472dff0", "score": "0.6433554", "text": "interface C1297d {\n /* renamed from: a */\n void m5230a();\n }", "title": "" }, { "docid": "c2b1e81a080804916a788413031e651f", "score": "0.63555443", "text": "public void mo39596a() {\n }", "title": "" }, { "docid": "c2b1e81a080804916a788413031e651f", "score": "0.63555443", "text": "public void mo39596a() {\n }", "title": "" }, { "docid": "9928c37d10a8c9336e9e86223ddf51bd", "score": "0.6332152", "text": "protected azo()\r\n/* 7: */ {\r\n/* 8:14 */ super(false);\r\n/* 9:15 */ j(this.L.b().a(b, atl.a));\r\n/* 10: */ }", "title": "" }, { "docid": "3dec4739787395aa7630bcb544fc6a37", "score": "0.63169736", "text": "public void b() {\r\n }", "title": "" }, { "docid": "a0406e5fa13581af198a732a7f3bc350", "score": "0.6304341", "text": "private interface C12634d extends C12630f {\n /* renamed from: a */\n void mo43668a(Appendable appendable, int i) throws IOException;\n }", "title": "" }, { "docid": "cc45b8f65a6a457ffb7c68d3fe791ce0", "score": "0.6295978", "text": "protected oa a(ads paramads)\r\n/* 106: */ {\r\n/* 107:116 */ return null;\r\n/* 108: */ }", "title": "" }, { "docid": "45a1bf271c7577bedaedf1a58906627b", "score": "0.6283377", "text": "public abstract aa a();", "title": "" }, { "docid": "ae4048f417bf94dfd212d61cfae413ce", "score": "0.6278958", "text": "public interface C25752e {\n /* renamed from: a */\n void mo66812a();\n }", "title": "" }, { "docid": "fda9102600415cac206b6cbee11d033a", "score": "0.6267138", "text": "public interface C2747a {\n /* renamed from: a */\n void mo2032a();\n }", "title": "" }, { "docid": "3591cdf9e5727233d437e1972b8f12cb", "score": "0.6266013", "text": "protected abstract void mo5419a();", "title": "" }, { "docid": "e75e894b8ad86a61a010b971209fdd74", "score": "0.62282157", "text": "public int a()\r\n/* 13: */ {\r\n/* 14:382 */ return this.c;\r\n/* 15: */ }", "title": "" }, { "docid": "a6f7cd02bd4bdb86dafcd6ca7760a547", "score": "0.6225462", "text": "public interface C0229a {\n /* renamed from: a */\n void mo4268a(MenuItem menuItem);\n }", "title": "" }, { "docid": "a45e2c193ad73fcb743d1e251e2fe925", "score": "0.621073", "text": "public interface C1953a {\n /* renamed from: a */\n void mo3297a(int i);\n }", "title": "" }, { "docid": "da0c4ac2bb0ebbc548180f9ebaee4c39", "score": "0.61869967", "text": "@Override\n\tpublic void b() {\n\t\t\n\t}", "title": "" }, { "docid": "da0c4ac2bb0ebbc548180f9ebaee4c39", "score": "0.61869967", "text": "@Override\n\tpublic void b() {\n\t\t\n\t}", "title": "" }, { "docid": "da0c4ac2bb0ebbc548180f9ebaee4c39", "score": "0.61869967", "text": "@Override\n\tpublic void b() {\n\t\t\n\t}", "title": "" }, { "docid": "da0c4ac2bb0ebbc548180f9ebaee4c39", "score": "0.61869967", "text": "@Override\n\tpublic void b() {\n\t\t\n\t}", "title": "" }, { "docid": "fe8012b343faddff85308376f5dab44d", "score": "0.6186757", "text": "public interface C14008c {\n /* renamed from: a */\n void mo33668a();\n }", "title": "" }, { "docid": "cca0ce061ec6427ddace067d637e1e30", "score": "0.6185375", "text": "public aab(EntityWalkingMob paramxu)\r\n/* 7: */ {\r\n/* 8:10 */ this.a = paramxu;\r\n/* 9: */ }", "title": "" }, { "docid": "1afb0f05133358ef7efeafbd5acc3141", "score": "0.6170117", "text": "public interface C2311a {\n /* renamed from: a */\n void mo27986a();\n\n /* renamed from: a */\n void mo27987a(int i);\n }", "title": "" }, { "docid": "646fc516e875fa2461934966c5400dff", "score": "0.61543494", "text": "interface C4045a {\n /* renamed from: a */\n void mo9445a(int i, boolean z);\n }", "title": "" }, { "docid": "6575bb2e40b92b7e378d5d71b5551f39", "score": "0.6144472", "text": "public void mo383a() {\n }", "title": "" }, { "docid": "865e3a8e83a9a438022cc8747cd13c9b", "score": "0.61444134", "text": "private interface C5852a {\n /* renamed from: a */\n void mo18221a(C5830g gVar);\n }", "title": "" }, { "docid": "f943bb2ffaee2df762380fef16996f83", "score": "0.6136776", "text": "a(int i2) {\n this.e = i2;\n }", "title": "" }, { "docid": "5e16f885e7acd2b7081ec1c7fe73301c", "score": "0.6119536", "text": "private interface C1412b {\n /* renamed from: a */\n void mo1161a(C1400e c1400e);\n }", "title": "" }, { "docid": "f0c3f6e6e746150596aafb9625aca312", "score": "0.611861", "text": "public interface AbstractC0467a {\n /* renamed from: a */\n void mo1213a(String str);\n }", "title": "" }, { "docid": "3f2992e6b797c2700993efbec2eb8cf7", "score": "0.60991955", "text": "public void mo2110a() {\n }", "title": "" }, { "docid": "f13a29996996a34a710d85285e104a7f", "score": "0.6085904", "text": "public void mo5201a() {\n }", "title": "" }, { "docid": "62f4c9887de9d57d76d578f987bb26c4", "score": "0.6061006", "text": "public interface C1114a {\n /* renamed from: a */\n void mo929a(int i);\n }", "title": "" }, { "docid": "afad8999ad242028a092a07078328021", "score": "0.60571367", "text": "public void mo55240a() {\n }", "title": "" }, { "docid": "e6436dd2f737795115cd656de2490b9b", "score": "0.6047059", "text": "public interface a {\n }", "title": "" }, { "docid": "2f94396f38aef49408f6ead7caff308a", "score": "0.6045954", "text": "public interface C24924a {\n /* renamed from: a */\n void mo65177a(int i, boolean z, Exception exc);\n }", "title": "" }, { "docid": "4c3b3d975dd112cd0977aeae3ca50081", "score": "0.6039593", "text": "public void mo12930a() {\n }", "title": "" }, { "docid": "835bdd7f1af94a291de4950bdc22fff7", "score": "0.60373306", "text": "public abstract void a();", "title": "" }, { "docid": "b707b998ac1924297f0ac56b2aba37a0", "score": "0.60360026", "text": "public void a(aer ☃) {\r\n/* 93 */ if (☃ instanceof afb) {\r\n/* 94 */ this.a.add(((afb)☃).t());\r\n/* */ }", "title": "" }, { "docid": "314d37804125c09ba942fe5ea2b308ee", "score": "0.603007", "text": "public static b a() {\n }", "title": "" }, { "docid": "154c0594cf14290586eefd3057c66980", "score": "0.6027117", "text": "private interface C4514a {\n /* renamed from: a */\n void mo18594a(C4522e eVar);\n\n int getState();\n }", "title": "" }, { "docid": "179da997ebb3a1e55d02a6e5d65695bc", "score": "0.60207593", "text": "public interface C9318b {\n /* renamed from: a */\n void mo11991a(PlayerMessage playerMessage, Object obj);\n }", "title": "" }, { "docid": "013f8be1f521cfb88ce5d293f849058c", "score": "0.60101783", "text": "public interface C0230b {\n /* renamed from: a */\n boolean mo4269a(MenuItem menuItem);\n }", "title": "" }, { "docid": "04b19640a9efae06dee3a45573c9bc78", "score": "0.6005622", "text": "public interface AbstractC0485a {\n /* renamed from: a */\n void mo7045a();\n\n /* renamed from: b */\n void mo7046b();\n\n /* renamed from: c */\n void mo7047c();\n }", "title": "" }, { "docid": "c568e596b55c8c2e35893932dbfd915f", "score": "0.59985864", "text": "@Override\n public IEntity a() {\n return a;\n }", "title": "" }, { "docid": "8ab0215a1b21bef3b89340a2004e8d3f", "score": "0.5995885", "text": "public interface C8571b {\n /* renamed from: a */\n void mo25151a(int i, Object obj) throws ExoPlaybackException;\n }", "title": "" }, { "docid": "8d7772a24d0c246ec6550039e4edc41e", "score": "0.5991755", "text": "public void mo24527a_() {\n }", "title": "" }, { "docid": "3dfa47a88afa660765feb75614fc5b36", "score": "0.598923", "text": "public void mo42785a() {\n }", "title": "" }, { "docid": "1f09971cfa8d3e61bb9e06d9ada00c0f", "score": "0.5984905", "text": "public abstract void mo4628a();", "title": "" }, { "docid": "39150e3080b6b725967b850d3afab2a1", "score": "0.5981471", "text": "public interface C5829b {\n /* renamed from: a */\n void mo11544a(String str);\n }", "title": "" }, { "docid": "90e9be10c2c69543036119c8db74189e", "score": "0.5977733", "text": "public void mo6944a() {\n }", "title": "" }, { "docid": "63540154d3be39e052087327f2335fdd", "score": "0.5959339", "text": "public void mo1803ab() {\n }", "title": "" }, { "docid": "52d9215672e53adc01990d6dafa85fcd", "score": "0.5953173", "text": "public int a() {\n/* 49 */ return this.d.length;\n/* */ }", "title": "" }, { "docid": "a66ea1004175e4ee90835287538aa2e8", "score": "0.59423685", "text": "public void mo104408a() {\n }", "title": "" }, { "docid": "95720e931780a27934de279ec1293e30", "score": "0.5938192", "text": "public void ap() {\n\t}", "title": "" }, { "docid": "d902d278135faa422055f44c5d2cc2e9", "score": "0.5929088", "text": "public boolean a() {\n/* 72 */ return this.l;\n/* */ }", "title": "" }, { "docid": "854135270ae178c67f8833ef9d980385", "score": "0.5925926", "text": "public interface C42770c {\n /* renamed from: a */\n void mo22852a(C42771c c42771c);\n }", "title": "" }, { "docid": "854c8ea5dff0d230f8fcbab88b01016b", "score": "0.5923229", "text": "public interface C3640a {\n /* renamed from: a */\n void mo29716a(int i);\n }", "title": "" }, { "docid": "a805ab59e5b20390e987632385788f7c", "score": "0.5914896", "text": "public void a() {\n d.a.a0.a.c.f(this);\n }", "title": "" }, { "docid": "c8787991f1b44c6176662eb34047db2e", "score": "0.5909173", "text": "public interface AbstractC24286a {\n /* renamed from: a */\n void mo106554a(View view, int i, int i2, int i3, int i4);\n }", "title": "" }, { "docid": "a8ddbf60ce062f6865133d0b3677cfde", "score": "0.5906998", "text": "androidx.h.a.b a() {\n }", "title": "" }, { "docid": "f488c7d1491779ab2b4c39bc5c2f7463", "score": "0.5903598", "text": "private static Boolean a() {\n }", "title": "" }, { "docid": "312b15d1f9e086d64350305b01a37e1e", "score": "0.5903471", "text": "public a(byte[] b, ByteOrder bo) {\n/* 40 */ super(bo);\n/* 41 */ this.d = b;\n/* */ }", "title": "" }, { "docid": "b28546cb17fae332c692995f3209a9dc", "score": "0.59021455", "text": "public A sender()\r\n/* 39: */ {\r\n/* 40: 70 */ return this.sender;\r\n/* 41: */ }", "title": "" }, { "docid": "a21047eaafcc2c1ada6326bfbe33e0ad", "score": "0.5900413", "text": "@Override\r\n public void alquilar() {\n }", "title": "" }, { "docid": "d714244e32c09f3c280262106e608d73", "score": "0.5889072", "text": "public final void a() {\n /*\n r7 = this;\n int r0 = r7.z\n r1 = 0\n if (r0 >= 0) goto L_0x000c\n r7.x = r1\n r0 = 0\n r7.A = r0\n goto L_0x0093\n L_0x000c:\n h.o.b r0 = r7.C\n int r0 = r0.f1389c\n r2 = -1\n r3 = 1\n if (r0 <= 0) goto L_0x001b\n int r4 = r7.B\n int r4 = r4 + r3\n r7.B = r4\n if (r4 >= r0) goto L_0x0027\n L_0x001b:\n int r0 = r7.z\n h.o.b r4 = r7.C\n java.lang.CharSequence r4 = r4.a\n int r4 = r4.length()\n if (r0 <= r4) goto L_0x003b\n L_0x0027:\n int r0 = r7.y\n h.l.c r1 = new h.l.c\n h.o.b r4 = r7.C\n java.lang.CharSequence r4 = r4.a\n int r4 = h.o.g.a(r4)\n r1.<init>(r0, r4)\n r7.A = r1\n r7.z = r2\n goto L_0x0091\n L_0x003b:\n h.o.b r0 = r7.C\n h.k.a.p<java.lang.CharSequence, java.lang.Integer, h.c<java.lang.Integer, java.lang.Integer>> r4 = r0.f1390d\n java.lang.CharSequence r0 = r0.a\n int r5 = r7.z\n java.lang.Integer r5 = java.lang.Integer.valueOf(r5)\n java.lang.Object r0 = r4.a(r0, r5)\n h.c r0 = (h.c) r0\n if (r0 != 0) goto L_0x0063\n int r0 = r7.y\n h.l.c r1 = new h.l.c\n h.o.b r4 = r7.C\n java.lang.CharSequence r4 = r4.a\n int r4 = h.o.g.a(r4)\n r1.<init>(r0, r4)\n r7.A = r1\n r7.z = r2\n goto L_0x0091\n L_0x0063:\n A r2 = r0.x\n java.lang.Number r2 = (java.lang.Number) r2\n int r2 = r2.intValue()\n B r0 = r0.y\n java.lang.Number r0 = (java.lang.Number) r0\n int r0 = r0.intValue()\n int r4 = r7.y\n r5 = -2147483648(0xffffffff80000000, float:-0.0)\n if (r2 > r5) goto L_0x007e\n h.l.c r4 = h.l.c.B\n h.l.c r4 = h.l.c.A\n goto L_0x0086\n L_0x007e:\n h.l.c r5 = new h.l.c\n int r6 = r2 + -1\n r5.<init>(r4, r6)\n r4 = r5\n L_0x0086:\n r7.A = r4\n int r2 = r2 + r0\n r7.y = r2\n if (r0 != 0) goto L_0x008e\n r1 = 1\n L_0x008e:\n int r2 = r2 + r1\n r7.z = r2\n L_0x0091:\n r7.x = r3\n L_0x0093:\n return\n */\n throw new UnsupportedOperationException(\"Method not decompiled: h.o.b.a.a():void\");\n }", "title": "" }, { "docid": "e07dccee76bb327d48d3be20c8e63cc5", "score": "0.58846647", "text": "public void a(ng paramng)\r\n/* 75: */ {\r\n/* 76:90 */ this.d.a(paramng.a());\r\n/* 77: */ }", "title": "" }, { "docid": "f5fd4f1b89ecbb54b8b64a1b9e40552c", "score": "0.5884488", "text": "protected void mo7431b() {\n }", "title": "" }, { "docid": "6cf76165ce19fd73e8435dfccfcc93c1", "score": "0.5879712", "text": "b(a aVar, String str) {\n super(str);\n this.f25063a = aVar;\n }", "title": "" }, { "docid": "c4113cb95b9be5fd037ff46e350e3ba7", "score": "0.5879567", "text": "public interface AbstractC23920a {\n /* renamed from: a */\n void mo105467a(View view, RecyclerView.ViewHolder viewHolder, int i);\n\n /* renamed from: b */\n boolean mo105468b(View view, RecyclerView.ViewHolder viewHolder, int i);\n }", "title": "" }, { "docid": "168fe8179c0b4616234b7ecdd8d0afe5", "score": "0.58761543", "text": "protected boolean ak() {\r\n/* 84 */ return false;\r\n/* */ }", "title": "" }, { "docid": "2cc97f340071c93ab12395f2981731ee", "score": "0.5869615", "text": "public void mo25307b() {\n }", "title": "" }, { "docid": "cdaac566bc5fc6bc3fdaceeefbbd937f", "score": "0.58674186", "text": "public interface b {\n void a(com.xunlei.downloadprovider.vod.recordpublish.topicsearch.a aVar);\n }", "title": "" }, { "docid": "3efb2afc40984dab01cfa70a9c25b3d2", "score": "0.5863732", "text": "public interface C3827b {\n /* renamed from: a */\n void mo15352a(boolean z);\n }", "title": "" }, { "docid": "a0a6709d61f9bfa97ff4584c610d274e", "score": "0.58564985", "text": "interface C12689c extends C12704d {\n /* renamed from: a */\n void mo42356a(long j, Throwable th);\n }", "title": "" }, { "docid": "aa49ae8e324a0afef88288df7037c822", "score": "0.58555436", "text": "private AB(){}", "title": "" }, { "docid": "15cfd6857f15f4476554e8efdf62b29d", "score": "0.5851474", "text": "public interface a {\n void a();\n\n void a(com.umeng.common.net.o.a aVar);\n }", "title": "" }, { "docid": "c1db3a3e757643d924475491fb7434d6", "score": "0.5849307", "text": "public abstract void a(Object obj);", "title": "" }, { "docid": "0e3d487cd4546e7a22a416601e4afc82", "score": "0.58482456", "text": "@Override\n\tpublic void Breche_AP_Anlage_ab() {\n\t\t\n\t}", "title": "" }, { "docid": "636a445bc7f8ddda37ba4f40ef352b41", "score": "0.5847709", "text": "public interface C0568b {\n /* renamed from: a */\n void mo3778a(String str);\n}", "title": "" }, { "docid": "6deb3727f704206c6e3aa5ccdd397b1c", "score": "0.58437794", "text": "protected void a(g paramg, d paramd, f paramf, c paramc) {\n/* 74 */ m.a(paramg, paramd, paramf, \n/* 75 */ b(paramc), (d)this, a(), \n/* 76 */ j(), i(), \n/* 77 */ getSubscriptshift(), getSuperscriptshift());\n/* */ }", "title": "" }, { "docid": "5e2c98798e2da89d535494c93b9e34e4", "score": "0.5835296", "text": "public interface C5535b {\n /* renamed from: a */\n void mo20155a(C5534a aVar);\n }", "title": "" }, { "docid": "c5c24c12a0dcd520bb073ed1749fda1d", "score": "0.5834196", "text": "public void mo19423b() {\n }", "title": "" }, { "docid": "b749a660cd9fc79d92d951c410c7fb06", "score": "0.5823374", "text": "@Override\r\n\tpublic void a() {\n\t\tSystem.out.println(\"A...\");\r\n\t\t\r\n\t}", "title": "" }, { "docid": "d29095a477b1287bc9bd973b9bc34337", "score": "0.58192647", "text": "public abstract z b();", "title": "" }, { "docid": "41f0da8994f9e0a2614b6055b28bd554", "score": "0.58163774", "text": "private interface C12630f {\n /* renamed from: a */\n int mo43647a();\n\n /* renamed from: a */\n void mo43648a(Appendable appendable, Calendar calendar) throws IOException;\n }", "title": "" }, { "docid": "62f37a5fb6916628b9e05f46e4e1c16c", "score": "0.5810342", "text": "public interface C9352a {\n /* renamed from: b */\n void mo9570b();\n }", "title": "" }, { "docid": "bcbe42e2bc947327312269263e6d22f7", "score": "0.5806434", "text": "private interface C0608a<T> {\n /* renamed from: a */\n boolean mo3678a(T t);\n\n /* renamed from: b */\n int mo3679b(T t);\n }", "title": "" }, { "docid": "deb3f8bbf2e97581ecbe1193a37df3d2", "score": "0.57980853", "text": "public interface C0102a {\n void a(int i);\n\n void a(long j, long j2);\n\n boolean a();\n\n void b();\n\n void c();\n }", "title": "" }, { "docid": "5a73d20ec2202ced4b6d0fc2fbe25069", "score": "0.5797815", "text": "interface C0379e {\n /* renamed from: a */\n Intent mo387a();\n\n /* renamed from: b */\n void mo388b();\n }", "title": "" }, { "docid": "ce01e16cbc1fc0a29d28a4365b63f79d", "score": "0.5795071", "text": "@Override\n\tprotected void specialFuntion() {\n\t\t\n\t}", "title": "" } ]
a2e49e959ae740f68c9cdde550204fc3
Returns a short description of the servlet.
[ { "docid": "38031b328568f91cb87f39aa9c416396", "score": "0.0", "text": "@Override\n public String getServletInfo() {\n return \"Punto de entrada general a la aplicación web\";\n }", "title": "" } ]
[ { "docid": "5c7fb21a323dda3a295820457693bbed", "score": "0.87897027", "text": "public String getServletInfo() {\n return \"Short description\";\n }", "title": "" }, { "docid": "63004d59b4ffcaf2437e8692fcd9ab59", "score": "0.87322754", "text": "public String getServletInfo() {\n return \"Short description\";\n }", "title": "" }, { "docid": "63004d59b4ffcaf2437e8692fcd9ab59", "score": "0.87322754", "text": "public String getServletInfo() {\n return \"Short description\";\n }", "title": "" }, { "docid": "63004d59b4ffcaf2437e8692fcd9ab59", "score": "0.87322754", "text": "public String getServletInfo() {\n return \"Short description\";\n }", "title": "" }, { "docid": "63004d59b4ffcaf2437e8692fcd9ab59", "score": "0.87322754", "text": "public String getServletInfo() {\n return \"Short description\";\n }", "title": "" }, { "docid": "63004d59b4ffcaf2437e8692fcd9ab59", "score": "0.87322754", "text": "public String getServletInfo() {\n return \"Short description\";\n }", "title": "" }, { "docid": "63004d59b4ffcaf2437e8692fcd9ab59", "score": "0.87322754", "text": "public String getServletInfo() {\n return \"Short description\";\n }", "title": "" }, { "docid": "63004d59b4ffcaf2437e8692fcd9ab59", "score": "0.87322754", "text": "public String getServletInfo() {\n return \"Short description\";\n }", "title": "" }, { "docid": "63004d59b4ffcaf2437e8692fcd9ab59", "score": "0.87322754", "text": "public String getServletInfo() {\n return \"Short description\";\n }", "title": "" }, { "docid": "e4d1cc2a3bd3487b36c918fba0d4a8d7", "score": "0.8725212", "text": "public String getServletInfo()\r\n {\r\n return \"Short description\";\r\n }", "title": "" }, { "docid": "94392563bc3f7a09b991852dfe51edc6", "score": "0.8699043", "text": "public String getServletInfo() {\r\n return \"Short description\";\r\n }", "title": "" }, { "docid": "94392563bc3f7a09b991852dfe51edc6", "score": "0.8699043", "text": "public String getServletInfo() {\r\n return \"Short description\";\r\n }", "title": "" }, { "docid": "94392563bc3f7a09b991852dfe51edc6", "score": "0.8699043", "text": "public String getServletInfo() {\r\n return \"Short description\";\r\n }", "title": "" }, { "docid": "94392563bc3f7a09b991852dfe51edc6", "score": "0.8699043", "text": "public String getServletInfo() {\r\n return \"Short description\";\r\n }", "title": "" }, { "docid": "3055226edca1f64b3bb70005b06f0dc5", "score": "0.86765563", "text": "public String getServletInfo() { \n\t return \"Short description\"; \n\t }", "title": "" }, { "docid": "08fc1b6db721d6a483b67ca4b522c893", "score": "0.8558434", "text": "@Override\r\n public String getServletInfo()\r\n {\r\n return \"Short description\";\r\n }", "title": "" }, { "docid": "a4acfa548a46d38b36711dedbd78686b", "score": "0.85314643", "text": "@Override\r\n public String getServletInfo() {\r\n return \"Short description\";\r\n }", "title": "" }, { "docid": "abfc417c353de0adcaf0474a19dbe975", "score": "0.8529319", "text": "@Override\n public String getServletInfo() {\n return \"Short description\";\n }", "title": "" }, { "docid": "abfc417c353de0adcaf0474a19dbe975", "score": "0.8529319", "text": "@Override\n public String getServletInfo() {\n return \"Short description\";\n }", "title": "" }, { "docid": "abfc417c353de0adcaf0474a19dbe975", "score": "0.8529319", "text": "@Override\n public String getServletInfo() {\n return \"Short description\";\n }", "title": "" }, { "docid": "abfc417c353de0adcaf0474a19dbe975", "score": "0.8529319", "text": "@Override\n public String getServletInfo() {\n return \"Short description\";\n }", "title": "" }, { "docid": "7c89ac28953948a9e1f224c369d17aaf", "score": "0.8526363", "text": "@Override\n\tpublic String getServletInfo() {\n\t\treturn \"Short description\";\n\t}", "title": "" }, { "docid": "7c89ac28953948a9e1f224c369d17aaf", "score": "0.8526363", "text": "@Override\n\tpublic String getServletInfo() {\n\t\treturn \"Short description\";\n\t}", "title": "" }, { "docid": "7c89ac28953948a9e1f224c369d17aaf", "score": "0.8526363", "text": "@Override\n\tpublic String getServletInfo() {\n\t\treturn \"Short description\";\n\t}", "title": "" }, { "docid": "7c89ac28953948a9e1f224c369d17aaf", "score": "0.8526363", "text": "@Override\n\tpublic String getServletInfo() {\n\t\treturn \"Short description\";\n\t}", "title": "" }, { "docid": "7c89ac28953948a9e1f224c369d17aaf", "score": "0.8526363", "text": "@Override\n\tpublic String getServletInfo() {\n\t\treturn \"Short description\";\n\t}", "title": "" }, { "docid": "7c89ac28953948a9e1f224c369d17aaf", "score": "0.8526363", "text": "@Override\n\tpublic String getServletInfo() {\n\t\treturn \"Short description\";\n\t}", "title": "" }, { "docid": "7c89ac28953948a9e1f224c369d17aaf", "score": "0.8526363", "text": "@Override\n\tpublic String getServletInfo() {\n\t\treturn \"Short description\";\n\t}", "title": "" }, { "docid": "7c89ac28953948a9e1f224c369d17aaf", "score": "0.8526363", "text": "@Override\n\tpublic String getServletInfo() {\n\t\treturn \"Short description\";\n\t}", "title": "" }, { "docid": "441cec5657295165a0603454f301a938", "score": "0.8525206", "text": "@Override\r\n public String getServletInfo() {\r\n\treturn \"Short description\";\r\n }", "title": "" }, { "docid": "06c169c4de9fb1f021b4a3a2e46ac36c", "score": "0.85169274", "text": "@Override\r\n public String getServletInfo()\r\n {\r\n return \"Short description\";\r\n }", "title": "" }, { "docid": "06c169c4de9fb1f021b4a3a2e46ac36c", "score": "0.85169274", "text": "@Override\r\n public String getServletInfo()\r\n {\r\n return \"Short description\";\r\n }", "title": "" }, { "docid": "06c169c4de9fb1f021b4a3a2e46ac36c", "score": "0.85169274", "text": "@Override\r\n public String getServletInfo()\r\n {\r\n return \"Short description\";\r\n }", "title": "" }, { "docid": "06c169c4de9fb1f021b4a3a2e46ac36c", "score": "0.85169274", "text": "@Override\r\n public String getServletInfo()\r\n {\r\n return \"Short description\";\r\n }", "title": "" }, { "docid": "ee285031e78e5d2eb682a8e19fddbacb", "score": "0.8510647", "text": "@Override\n public String getServletInfo()\n {\n return \"Short description\";\n }", "title": "" }, { "docid": "ee285031e78e5d2eb682a8e19fddbacb", "score": "0.8510647", "text": "@Override\n public String getServletInfo()\n {\n return \"Short description\";\n }", "title": "" }, { "docid": "ee285031e78e5d2eb682a8e19fddbacb", "score": "0.8510647", "text": "@Override\n public String getServletInfo()\n {\n return \"Short description\";\n }", "title": "" }, { "docid": "ee285031e78e5d2eb682a8e19fddbacb", "score": "0.8510647", "text": "@Override\n public String getServletInfo()\n {\n return \"Short description\";\n }", "title": "" }, { "docid": "48fbb38d61b5ca857fc14e13faead75e", "score": "0.85089445", "text": "@Override\r\n public String getServletInfo()\r\n {\r\n return \"Short description\";\r\n }", "title": "" }, { "docid": "48fbb38d61b5ca857fc14e13faead75e", "score": "0.85089445", "text": "@Override\r\n public String getServletInfo()\r\n {\r\n return \"Short description\";\r\n }", "title": "" }, { "docid": "48a92e2842c19379b60792769308aaad", "score": "0.8508422", "text": "@Override\r\n\tpublic String getServletInfo() {\r\n\t\treturn \"Short description\";\r\n\t}", "title": "" }, { "docid": "48a92e2842c19379b60792769308aaad", "score": "0.8508422", "text": "@Override\r\n\tpublic String getServletInfo() {\r\n\t\treturn \"Short description\";\r\n\t}", "title": "" }, { "docid": "48a92e2842c19379b60792769308aaad", "score": "0.8508422", "text": "@Override\r\n\tpublic String getServletInfo() {\r\n\t\treturn \"Short description\";\r\n\t}", "title": "" }, { "docid": "48a92e2842c19379b60792769308aaad", "score": "0.8508422", "text": "@Override\r\n\tpublic String getServletInfo() {\r\n\t\treturn \"Short description\";\r\n\t}", "title": "" }, { "docid": "890a8450c623aca2369e07f9cc10d03a", "score": "0.85069877", "text": "@Override\n public String getServletInfo() \n {\n return \"Short description\";\n }", "title": "" }, { "docid": "11342e24e0ff0b637f33594f3379868c", "score": "0.85040027", "text": "@Override\n public String getServletInfo()\n {\n\treturn \"Short description\";\n }", "title": "" }, { "docid": "584f6922490ff2e202eface2709f587f", "score": "0.8491018", "text": "@Override\n public String getServletInfo() {\n return \"Short description\";\n }", "title": "" }, { "docid": "584f6922490ff2e202eface2709f587f", "score": "0.8491018", "text": "@Override\n public String getServletInfo() {\n return \"Short description\";\n }", "title": "" }, { "docid": "584f6922490ff2e202eface2709f587f", "score": "0.8491018", "text": "@Override\n public String getServletInfo() {\n return \"Short description\";\n }", "title": "" }, { "docid": "584f6922490ff2e202eface2709f587f", "score": "0.8491018", "text": "@Override\n public String getServletInfo() {\n return \"Short description\";\n }", "title": "" }, { "docid": "584f6922490ff2e202eface2709f587f", "score": "0.8491018", "text": "@Override\n public String getServletInfo() {\n return \"Short description\";\n }", "title": "" }, { "docid": "584f6922490ff2e202eface2709f587f", "score": "0.8491018", "text": "@Override\n public String getServletInfo() {\n return \"Short description\";\n }", "title": "" }, { "docid": "584f6922490ff2e202eface2709f587f", "score": "0.8491018", "text": "@Override\n public String getServletInfo() {\n return \"Short description\";\n }", "title": "" }, { "docid": "584f6922490ff2e202eface2709f587f", "score": "0.8491018", "text": "@Override\n public String getServletInfo() {\n return \"Short description\";\n }", "title": "" }, { "docid": "584f6922490ff2e202eface2709f587f", "score": "0.8491018", "text": "@Override\n public String getServletInfo() {\n return \"Short description\";\n }", "title": "" }, { "docid": "584f6922490ff2e202eface2709f587f", "score": "0.8491018", "text": "@Override\n public String getServletInfo() {\n return \"Short description\";\n }", "title": "" }, { "docid": "584f6922490ff2e202eface2709f587f", "score": "0.8491018", "text": "@Override\n public String getServletInfo() {\n return \"Short description\";\n }", "title": "" }, { "docid": "584f6922490ff2e202eface2709f587f", "score": "0.8491018", "text": "@Override\n public String getServletInfo() {\n return \"Short description\";\n }", "title": "" }, { "docid": "584f6922490ff2e202eface2709f587f", "score": "0.8491018", "text": "@Override\n public String getServletInfo() {\n return \"Short description\";\n }", "title": "" }, { "docid": "584f6922490ff2e202eface2709f587f", "score": "0.8491018", "text": "@Override\n public String getServletInfo() {\n return \"Short description\";\n }", "title": "" }, { "docid": "584f6922490ff2e202eface2709f587f", "score": "0.8491018", "text": "@Override\n public String getServletInfo() {\n return \"Short description\";\n }", "title": "" }, { "docid": "584f6922490ff2e202eface2709f587f", "score": "0.8491018", "text": "@Override\n public String getServletInfo() {\n return \"Short description\";\n }", "title": "" }, { "docid": "584f6922490ff2e202eface2709f587f", "score": "0.8491018", "text": "@Override\n public String getServletInfo() {\n return \"Short description\";\n }", "title": "" }, { "docid": "584f6922490ff2e202eface2709f587f", "score": "0.8491018", "text": "@Override\n public String getServletInfo() {\n return \"Short description\";\n }", "title": "" }, { "docid": "584f6922490ff2e202eface2709f587f", "score": "0.8491018", "text": "@Override\n public String getServletInfo() {\n return \"Short description\";\n }", "title": "" }, { "docid": "584f6922490ff2e202eface2709f587f", "score": "0.8491018", "text": "@Override\n public String getServletInfo() {\n return \"Short description\";\n }", "title": "" }, { "docid": "584f6922490ff2e202eface2709f587f", "score": "0.8491018", "text": "@Override\n public String getServletInfo() {\n return \"Short description\";\n }", "title": "" }, { "docid": "584f6922490ff2e202eface2709f587f", "score": "0.8491018", "text": "@Override\n public String getServletInfo() {\n return \"Short description\";\n }", "title": "" }, { "docid": "584f6922490ff2e202eface2709f587f", "score": "0.8491018", "text": "@Override\n public String getServletInfo() {\n return \"Short description\";\n }", "title": "" }, { "docid": "584f6922490ff2e202eface2709f587f", "score": "0.8491018", "text": "@Override\n public String getServletInfo() {\n return \"Short description\";\n }", "title": "" }, { "docid": "584f6922490ff2e202eface2709f587f", "score": "0.8491018", "text": "@Override\n public String getServletInfo() {\n return \"Short description\";\n }", "title": "" }, { "docid": "584f6922490ff2e202eface2709f587f", "score": "0.8491018", "text": "@Override\n public String getServletInfo() {\n return \"Short description\";\n }", "title": "" }, { "docid": "584f6922490ff2e202eface2709f587f", "score": "0.8491018", "text": "@Override\n public String getServletInfo() {\n return \"Short description\";\n }", "title": "" }, { "docid": "584f6922490ff2e202eface2709f587f", "score": "0.8491018", "text": "@Override\n public String getServletInfo() {\n return \"Short description\";\n }", "title": "" }, { "docid": "584f6922490ff2e202eface2709f587f", "score": "0.8491018", "text": "@Override\n public String getServletInfo() {\n return \"Short description\";\n }", "title": "" }, { "docid": "584f6922490ff2e202eface2709f587f", "score": "0.8491018", "text": "@Override\n public String getServletInfo() {\n return \"Short description\";\n }", "title": "" }, { "docid": "584f6922490ff2e202eface2709f587f", "score": "0.8491018", "text": "@Override\n public String getServletInfo() {\n return \"Short description\";\n }", "title": "" }, { "docid": "584f6922490ff2e202eface2709f587f", "score": "0.8491018", "text": "@Override\n public String getServletInfo() {\n return \"Short description\";\n }", "title": "" }, { "docid": "584f6922490ff2e202eface2709f587f", "score": "0.8491018", "text": "@Override\n public String getServletInfo() {\n return \"Short description\";\n }", "title": "" }, { "docid": "584f6922490ff2e202eface2709f587f", "score": "0.8491018", "text": "@Override\n public String getServletInfo() {\n return \"Short description\";\n }", "title": "" }, { "docid": "584f6922490ff2e202eface2709f587f", "score": "0.8491018", "text": "@Override\n public String getServletInfo() {\n return \"Short description\";\n }", "title": "" }, { "docid": "584f6922490ff2e202eface2709f587f", "score": "0.8491018", "text": "@Override\n public String getServletInfo() {\n return \"Short description\";\n }", "title": "" }, { "docid": "584f6922490ff2e202eface2709f587f", "score": "0.8491018", "text": "@Override\n public String getServletInfo() {\n return \"Short description\";\n }", "title": "" }, { "docid": "584f6922490ff2e202eface2709f587f", "score": "0.8491018", "text": "@Override\n public String getServletInfo() {\n return \"Short description\";\n }", "title": "" }, { "docid": "584f6922490ff2e202eface2709f587f", "score": "0.8491018", "text": "@Override\n public String getServletInfo() {\n return \"Short description\";\n }", "title": "" }, { "docid": "584f6922490ff2e202eface2709f587f", "score": "0.8491018", "text": "@Override\n public String getServletInfo() {\n return \"Short description\";\n }", "title": "" }, { "docid": "584f6922490ff2e202eface2709f587f", "score": "0.8491018", "text": "@Override\n public String getServletInfo() {\n return \"Short description\";\n }", "title": "" }, { "docid": "584f6922490ff2e202eface2709f587f", "score": "0.8491018", "text": "@Override\n public String getServletInfo() {\n return \"Short description\";\n }", "title": "" }, { "docid": "584f6922490ff2e202eface2709f587f", "score": "0.8491018", "text": "@Override\n public String getServletInfo() {\n return \"Short description\";\n }", "title": "" }, { "docid": "584f6922490ff2e202eface2709f587f", "score": "0.8491018", "text": "@Override\n public String getServletInfo() {\n return \"Short description\";\n }", "title": "" }, { "docid": "584f6922490ff2e202eface2709f587f", "score": "0.8491018", "text": "@Override\n public String getServletInfo() {\n return \"Short description\";\n }", "title": "" }, { "docid": "584f6922490ff2e202eface2709f587f", "score": "0.8491018", "text": "@Override\n public String getServletInfo() {\n return \"Short description\";\n }", "title": "" }, { "docid": "584f6922490ff2e202eface2709f587f", "score": "0.8491018", "text": "@Override\n public String getServletInfo() {\n return \"Short description\";\n }", "title": "" }, { "docid": "584f6922490ff2e202eface2709f587f", "score": "0.8491018", "text": "@Override\n public String getServletInfo() {\n return \"Short description\";\n }", "title": "" }, { "docid": "584f6922490ff2e202eface2709f587f", "score": "0.8491018", "text": "@Override\n public String getServletInfo() {\n return \"Short description\";\n }", "title": "" }, { "docid": "584f6922490ff2e202eface2709f587f", "score": "0.8491018", "text": "@Override\n public String getServletInfo() {\n return \"Short description\";\n }", "title": "" }, { "docid": "584f6922490ff2e202eface2709f587f", "score": "0.8491018", "text": "@Override\n public String getServletInfo() {\n return \"Short description\";\n }", "title": "" }, { "docid": "584f6922490ff2e202eface2709f587f", "score": "0.8491018", "text": "@Override\n public String getServletInfo() {\n return \"Short description\";\n }", "title": "" }, { "docid": "584f6922490ff2e202eface2709f587f", "score": "0.8491018", "text": "@Override\n public String getServletInfo() {\n return \"Short description\";\n }", "title": "" }, { "docid": "584f6922490ff2e202eface2709f587f", "score": "0.8491018", "text": "@Override\n public String getServletInfo() {\n return \"Short description\";\n }", "title": "" }, { "docid": "584f6922490ff2e202eface2709f587f", "score": "0.8491018", "text": "@Override\n public String getServletInfo() {\n return \"Short description\";\n }", "title": "" } ]
aa71f95ae4766582f7128e994b1b3440
optional string idcardbackimage = 7;
[ { "docid": "35b3b06ae0c4e3ddfa325c88a2a0e23d", "score": "0.69698274", "text": "boolean hasIdcardbackimage();", "title": "" } ]
[ { "docid": "1862ffa15e673366721f20c8e5240252", "score": "0.8678093", "text": "java.lang.String getIdcardbackimage();", "title": "" }, { "docid": "5b2c7d099fc805faf235617f3497a4ec", "score": "0.79208344", "text": "java.lang.String getIdcardfrontimage();", "title": "" }, { "docid": "6e397bfd8da4fd408c088cfcbb67e0a0", "score": "0.7679137", "text": "public Builder setIdcardbackimage(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000040;\n idcardbackimage_ = value;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "8ac2ec5ffba7278c319d6c20a4466274", "score": "0.7371894", "text": "public java.lang.String getIdcardbackimage() {\n java.lang.Object ref = idcardbackimage_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n if (bs.isValidUtf8()) {\n idcardbackimage_ = s;\n }\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "title": "" }, { "docid": "f3eeea54bacaa189f73a3a18ffd9022e", "score": "0.7361562", "text": "public java.lang.String getIdcardbackimage() {\n java.lang.Object ref = idcardbackimage_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n if (bs.isValidUtf8()) {\n idcardbackimage_ = s;\n }\n return s;\n }\n }", "title": "" }, { "docid": "b1ddc85cf534d4389790150aca695c0e", "score": "0.7113212", "text": "public com.google.protobuf.ByteString\n getIdcardbackimageBytes() {\n java.lang.Object ref = idcardbackimage_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b =\n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n idcardbackimage_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "title": "" }, { "docid": "66be48a1d61f5b2a31479e73696d621a", "score": "0.70755374", "text": "public com.google.protobuf.ByteString\n getIdcardbackimageBytes() {\n java.lang.Object ref = idcardbackimage_;\n if (ref instanceof java.lang.String) {\n com.google.protobuf.ByteString b =\n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n idcardbackimage_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "title": "" }, { "docid": "69f523b74285efba461b0b6c4e831ffc", "score": "0.6974387", "text": "com.google.protobuf.ByteString\n getIdcardbackimageBytes();", "title": "" }, { "docid": "09b9752ffda884a74bd23b100a20f995", "score": "0.69475406", "text": "public Builder setIdcardbackimageBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000040;\n idcardbackimage_ = value;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "6ded08e11b743c4ecc2c95c6c9634a82", "score": "0.645464", "text": "com.google.protobuf.ByteString\n getIdcardfrontimageBytes();", "title": "" }, { "docid": "fb7e95e0c0586278b55b9623edb8d404", "score": "0.6421827", "text": "public Builder clearIdcardbackimage() {\n bitField0_ = (bitField0_ & ~0x00000040);\n idcardbackimage_ = getDefaultInstance().getIdcardbackimage();\n onChanged();\n return this;\n }", "title": "" }, { "docid": "09df136a51ddfd80b632a675bca57225", "score": "0.6403297", "text": "public java.lang.String getIdcardfrontimage() {\n java.lang.Object ref = idcardfrontimage_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n if (bs.isValidUtf8()) {\n idcardfrontimage_ = s;\n }\n return s;\n }\n }", "title": "" }, { "docid": "64f679fafbc2c9efba6877bc61ab9045", "score": "0.6398714", "text": "public java.lang.String getIdcardfrontimage() {\n java.lang.Object ref = idcardfrontimage_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n if (bs.isValidUtf8()) {\n idcardfrontimage_ = s;\n }\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "title": "" }, { "docid": "7ebbf0feb03458360cee5c37de6428cf", "score": "0.63807076", "text": "public Builder setIdcardfrontimage(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000020;\n idcardfrontimage_ = value;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "5ee5fff5df2325c7a7add23ea7bef276", "score": "0.6134268", "text": "private void setCardImage(ImageButton card, int rank, int suit){\n if(suit == 0){\n switch (rank){\n case 1:\n card.setBackgroundResource(R.drawable.banana_0001);\n break;\n case 2:\n card.setBackgroundResource(R.drawable.banana_0010);\n break;\n case 3:\n card.setBackgroundResource(R.drawable.banana_0011);\n break;\n case 4:\n card.setBackgroundResource(R.drawable.banana_0100);\n break;\n case 5:\n card.setBackgroundResource(R.drawable.banana_0101);\n break;\n case 6:\n card.setBackgroundResource(R.drawable.banana_0110);\n break;\n case 7:\n card.setBackgroundResource(R.drawable.banana_0111);\n break;\n case 8:\n card.setBackgroundResource(R.drawable.banana_1000);\n break;\n case 9:\n card.setBackgroundResource(R.drawable.banana_1001);\n break;\n case 10:\n card.setBackgroundResource(R.drawable.banana_a);\n break;\n case 11:\n card.setBackgroundResource(R.drawable.banana_b);\n break;\n case 12:\n card.setBackgroundResource(R.drawable.banana_c);\n break;\n case 13:\n card.setBackgroundResource(R.drawable.banana_d);\n break;\n case 14:\n card.setBackgroundResource(R.drawable.banana_e);\n break;\n case 15:\n card.setBackgroundResource(R.drawable.banana_f);\n break;\n }\n }\n\n else if(suit == 1){\n switch (rank){\n case 1:\n card.setBackgroundResource(R.drawable.cat_0001);\n break;\n case 2:\n card.setBackgroundResource(R.drawable.cat_0010);\n break;\n case 3:\n card.setBackgroundResource(R.drawable.cat_0011);\n break;\n case 4:\n card.setBackgroundResource(R.drawable.cat_0100);\n break;\n case 5:\n card.setBackgroundResource(R.drawable.cat_0101);\n break;\n case 6:\n card.setBackgroundResource(R.drawable.cat_0110);\n break;\n case 7:\n card.setBackgroundResource(R.drawable.cat_0111);\n break;\n case 8:\n card.setBackgroundResource(R.drawable.cat_1000);\n break;\n case 9:\n card.setBackgroundResource(R.drawable.cat_1001);\n break;\n case 10:\n card.setBackgroundResource(R.drawable.cat_a);\n break;\n case 11:\n card.setBackgroundResource(R.drawable.cat_b);\n break;\n case 12:\n card.setBackgroundResource(R.drawable.cat_c);\n break;\n case 13:\n card.setBackgroundResource(R.drawable.cat_d);\n break;\n case 14:\n card.setBackgroundResource(R.drawable.cat_e);\n break;\n case 15:\n card.setBackgroundResource(R.drawable.cat_f);\n break;\n }\n }\n else if(suit == 2){\n switch (rank){\n case 1:\n card.setBackgroundResource(R.drawable.philosoraptor_0001);\n break;\n case 2:\n card.setBackgroundResource(R.drawable.philosoraptor_0010);\n break;\n case 3:\n card.setBackgroundResource(R.drawable.philosoraptor_0011);\n break;\n case 4:\n card.setBackgroundResource(R.drawable.philosoraptor_0100);\n break;\n case 5:\n card.setBackgroundResource(R.drawable.philosoraptor_0101);\n break;\n case 6:\n card.setBackgroundResource(R.drawable.philosoraptor_0110);\n break;\n case 7:\n card.setBackgroundResource(R.drawable.philosoraptor_0111);\n break;\n case 8:\n card.setBackgroundResource(R.drawable.philosoraptor_1000);\n break;\n case 9:\n card.setBackgroundResource(R.drawable.philosoraptor_1001);\n break;\n case 10:\n card.setBackgroundResource(R.drawable.philosoraptor_a);\n break;\n case 11:\n card.setBackgroundResource(R.drawable.philosoraptor_b);\n break;\n case 12:\n card.setBackgroundResource(R.drawable.philosoraptor_c);\n break;\n case 13:\n card.setBackgroundResource(R.drawable.philosoraptor_d);\n break;\n case 14:\n card.setBackgroundResource(R.drawable.philosoraptor_e);\n break;\n case 15:\n card.setBackgroundResource(R.drawable.philosoraptor_f);\n break;\n }\n }\n else if(suit == 3){\n switch (rank){\n case 1:\n card.setBackgroundResource(R.drawable.cursor_0001);\n break;\n case 2:\n card.setBackgroundResource(R.drawable.cursor_0010);\n break;\n case 3:\n card.setBackgroundResource(R.drawable.cursor_0011);\n break;\n case 4:\n card.setBackgroundResource(R.drawable.cursor_0100);\n break;\n case 5:\n card.setBackgroundResource(R.drawable.cursor_0101);\n break;\n case 6:\n card.setBackgroundResource(R.drawable.cursor_0110);\n break;\n case 7:\n card.setBackgroundResource(R.drawable.cursor_0111);\n break;\n case 8:\n card.setBackgroundResource(R.drawable.cursor_1000);\n break;\n case 9:\n card.setBackgroundResource(R.drawable.cursor_1001);\n break;\n case 10:\n card.setBackgroundResource(R.drawable.cursor_a);\n break;\n case 11:\n card.setBackgroundResource(R.drawable.cursor_b);\n break;\n case 12:\n card.setBackgroundResource(R.drawable.cursor_c);\n break;\n case 13:\n card.setBackgroundResource(R.drawable.cursor_d);\n break;\n case 14:\n card.setBackgroundResource(R.drawable.cursor_e);\n break;\n case 15:\n card.setBackgroundResource(R.drawable.cursor_f);\n break;\n }\n }\n }", "title": "" }, { "docid": "601ecb4e3dd438ad362827b7a9ce7665", "score": "0.61156183", "text": "boolean hasIdcardfrontimage();", "title": "" }, { "docid": "01edd5f504bc7fca54d13f5ddb765771", "score": "0.6096904", "text": "public void setIdPhotoBack(String idPhotoBack) {\n this.idPhotoBack = idPhotoBack == null ? null : idPhotoBack.trim();\n }", "title": "" }, { "docid": "3861e670b6620c07ca642baf55d6bfa6", "score": "0.60380894", "text": "public void setPicture(FlashcardItem item){\n }", "title": "" }, { "docid": "6ae3932146d61836d475d3031b6556c8", "score": "0.60252005", "text": "public com.google.protobuf.ByteString\n getIdcardfrontimageBytes() {\n java.lang.Object ref = idcardfrontimage_;\n if (ref instanceof java.lang.String) {\n com.google.protobuf.ByteString b =\n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n idcardfrontimage_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "title": "" }, { "docid": "212d2702f6ecbd53420bbbb58a8b050d", "score": "0.6024623", "text": "public void setCardImage(String cardFace) {\n\t\tcardImage[0] = \"Images/GC-tent.png\";\n\t\tcardImage[1] = cardFace;\n\t\tsetImageIcon();\n\t}", "title": "" }, { "docid": "3a0b43bcbcb254ed23634599a1627379", "score": "0.59966844", "text": "public com.google.protobuf.ByteString\n getIdcardfrontimageBytes() {\n java.lang.Object ref = idcardfrontimage_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b =\n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n idcardfrontimage_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "title": "" }, { "docid": "4098f153658b52138f1cf63f04593eda", "score": "0.59927255", "text": "private String getPicParameter() {\n return \"999572294\";\n }", "title": "" }, { "docid": "d35b351037100da02fb823d65eec23a6", "score": "0.58799636", "text": "public Builder setIdcardfrontimageBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000020;\n idcardfrontimage_ = value;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "ee72fbc7189e90f352e20ef411084601", "score": "0.5872674", "text": "public boolean hasIdcardbackimage() {\n return ((bitField0_ & 0x00000040) == 0x00000040);\n }", "title": "" }, { "docid": "34ea2ac1d72d7b882743c47a1c9c78a4", "score": "0.5866863", "text": "public String getIdPhotoBack() {\n return idPhotoBack;\n }", "title": "" }, { "docid": "12403d2302b7309d460c15f961a4af6e", "score": "0.57698643", "text": "java.lang.String getCardHolder();", "title": "" }, { "docid": "e98ca2f8e4d65d19b3af550ab8114834", "score": "0.57616895", "text": "private void addFaceDownCard(){ // only used for dealer so no parameters needed\n dealerHiddenCard = gameDeck.getTopCard();\n ImageButton tempCardImage = new ImageButton(this); // MAKE NEW IMAGE SHOWING THE BACK OF A CARD\n tempCardImage.setBackground(getResources().getDrawable(R.drawable.red_card_back));\n\n LinearLayout.LayoutParams tempParams = new LinearLayout.LayoutParams(0, LinearLayout.LayoutParams.MATCH_PARENT);\n tempParams.weight = (float) 1.0;\n\n String drawableName = dealerHiddenCard.getSuite() + \"_\" + dealerHiddenCard.getStringValue() + \"_suite\" + gameDeck.getCurrentSuite();\n hiddenDrawable = getResources().getDrawable(getResources().getIdentifier(drawableName, \"drawable\", getPackageName()));\n\n tempCardImage.setLayoutParams(tempParams);\n\n dealerCardLayout.addView(tempCardImage);\n\n dealerScore += dealerHiddenCard.getIntValue();\n\n currentDealerCards.add(dealerHiddenCard);\n\n tempCardImage.startAnimation(pushLeftIn);\n\n\n\n// dealerHandScoreText.setText(getResources().getString(R.string.dealer) + dealerScore); // don't set this new value since user can't know what dealer's second card is\n\n }", "title": "" }, { "docid": "b261bad38318dca4a5af8bc88a7eedd8", "score": "0.57566607", "text": "public boolean hasIdcardbackimage() {\n return ((bitField0_ & 0x00000040) == 0x00000040);\n }", "title": "" }, { "docid": "3633d400088a4d53c88d42b0d6797fd6", "score": "0.5707439", "text": "@Override\n public void onClick(View v) {\n\n Bitmap icon = BitmapFactory.decodeResource(MobiletActivity.this.getResources(),\n R.mipmap.ic_launcher);\n\n flipCard();\n\n\n }", "title": "" }, { "docid": "f16a8df6d96f23ed3192dbd94dcd91d6", "score": "0.5696561", "text": "public void setImage(String image);", "title": "" }, { "docid": "2fe7c6ac562279aa1f24026908a1e652", "score": "0.56959325", "text": "public static String card_image_name(String card_name) {\n String card_image_name = card_name + \".png\";\t\t\t\t\t\t// creates formatted names based on value and suit of card\n return card_image_name;\t\t\t\t\t\t\t\t\t\t\t\t// returns 'nice' name\n }", "title": "" }, { "docid": "47638e150cc1634000f1539b030cab16", "score": "0.56131727", "text": "static public Icon getBackCardIcon() {\n return iconBack;\n }", "title": "" }, { "docid": "5ce7eb5bca81d35aa5cd2016a33f0126", "score": "0.5601847", "text": "public Rectangle imageCard(Suit suit, Rank rank)\n {\n // create the actual card rectangle, card.setFill() puts the image into the rectangle\n Rectangle card = new Rectangle(80,100);\n\n // Sets club cards pictures\n if(suit == Suit.CLUBS && rank == Rank.ACE)\n {\n Image c1 = new Image(\"/images/c1.png\");\n card.setFill(new ImagePattern(c1));\n }\n if(suit == Suit.CLUBS && rank == Rank.TWO)\n {\n Image c2 = new Image(\"/images/c2.png\");\n card.setFill(new ImagePattern(c2));\n }\n if(suit == Suit.CLUBS && rank == Rank.THREE)\n {\n Image c3 = new Image(\"/images/c3.png\");\n card.setFill(new ImagePattern(c3));\n }\n if(suit == Suit.CLUBS && rank == Rank.FOUR)\n {\n Image c4 = new Image(\"/images/c4.png\");\n card.setFill(new ImagePattern(c4));\n }\n if(suit == Suit.CLUBS && rank == Rank.FIVE)\n {\n Image c5 = new Image(\"/images/c5.png\");\n card.setFill(new ImagePattern(c5));\n }\n if(suit == Suit.CLUBS && rank == Rank.SIX)\n {\n Image c6= new Image(\"/images/c6.png\");\n card.setFill(new ImagePattern(c6));\n }\n if(suit == Suit.CLUBS && rank == Rank.SEVEN)\n {\n Image c7 = new Image(\"/images/c7.png\");\n card.setFill(new ImagePattern(c7));\n }\n if(suit == Suit.CLUBS && rank == Rank.EIGHT)\n {\n Image c8 = new Image(\"/images/c8.png\");\n card.setFill(new ImagePattern(c8));\n }\n if(suit == Suit.CLUBS && rank == Rank.NINE)\n {\n Image c9 = new Image(\"/images/c9.png\");\n card.setFill(new ImagePattern(c9));\n }\n if(suit == Suit.CLUBS && rank == Rank.TEN)\n {\n Image c10 = new Image(\"/images/c10.png\");\n card.setFill(new ImagePattern(c10));\n }\n if(suit == Suit.CLUBS && rank == Rank.JACK)\n {\n Image cj = new Image(\"/images/cj.png\");\n card.setFill(new ImagePattern(cj));\n }\n if(suit == Suit.CLUBS && rank == Rank.KING)\n {\n Image ck = new Image(\"/images/ck.png\");\n card.setFill(new ImagePattern(ck));\n }\n if(suit == Suit.CLUBS && rank == Rank.QUEEN)\n {\n Image cq = new Image(\"/images/cq.png\");\n card.setFill(new ImagePattern(cq));\n }\n\n //Sets Heart Pictures\n\n if(suit == Suit.HEARTS && rank == Rank.ACE)\n {\n Image h1 = new Image(\"/images/h1.png\");\n card.setFill(new ImagePattern(h1));\n }\n if(suit == Suit.HEARTS && rank == Rank.TWO)\n {\n Image h2 = new Image(\"/images/h2.png\");\n card.setFill(new ImagePattern(h2));\n }\n if(suit == Suit.HEARTS && rank == Rank.THREE)\n {\n Image h3 = new Image(\"/images/h3.png\");\n card.setFill(new ImagePattern(h3));\n }\n if(suit == Suit.HEARTS && rank == Rank.FOUR)\n {\n Image h4 = new Image(\"/images/h4.png\");\n card.setFill(new ImagePattern(h4));\n }\n if(suit == Suit.HEARTS && rank == Rank.FIVE)\n {\n Image h5 = new Image(\"/images/h5.png\");\n card.setFill(new ImagePattern(h5));\n }\n if(suit == Suit.HEARTS && rank == Rank.SIX)\n {\n Image h6= new Image(\"/images/h6.png\");\n card.setFill(new ImagePattern(h6));\n }\n if(suit == Suit.HEARTS && rank == Rank.SEVEN)\n {\n Image h7 = new Image(\"/images/h7.png\");\n card.setFill(new ImagePattern(h7));\n }\n if(suit == Suit.HEARTS && rank == Rank.EIGHT)\n {\n Image h8 = new Image(\"/images/h8.png\");\n card.setFill(new ImagePattern(h8));\n }\n if(suit == Suit.HEARTS && rank == Rank.NINE)\n {\n Image h9 = new Image(\"/images/h9.png\");\n card.setFill(new ImagePattern(h9));\n }\n if(suit == Suit.HEARTS && rank == Rank.TEN)\n {\n Image h10 = new Image(\"/images/h10.png\");\n card.setFill(new ImagePattern(h10));\n }\n if(suit == Suit.HEARTS && rank == Rank.JACK)\n {\n Image hj = new Image(\"/images/hj.png\");\n card.setFill(new ImagePattern(hj));\n }\n if(suit == Suit.HEARTS && rank == Rank.KING)\n {\n Image hk = new Image(\"/images/hk.png\");\n card.setFill(new ImagePattern(hk));\n }\n if(suit == Suit.HEARTS && rank == Rank.QUEEN)\n {\n Image hq = new Image(\"/images/hq.png\");\n card.setFill(new ImagePattern(hq));\n }\n\n // Set spade card pictures\n if(suit == Suit.SPADES && rank == Rank.ACE)\n {\n Image s1 = new Image(\"/images/s1.png\");\n card.setFill(new ImagePattern(s1));\n }\n if(suit == Suit.SPADES && rank == Rank.TWO)\n {\n Image s2 = new Image(\"/images/s2.png\");\n card.setFill(new ImagePattern(s2));\n }\n if(suit == Suit.SPADES && rank == Rank.THREE)\n {\n Image s3 = new Image(\"/images/s3.png\");\n card.setFill(new ImagePattern(s3));\n }\n if(suit == Suit.SPADES && rank == Rank.FOUR)\n {\n Image s4 = new Image(\"/images/s4.png\");\n card.setFill(new ImagePattern(s4));\n }\n if(suit == Suit.SPADES && rank == Rank.FIVE)\n {\n Image s5 = new Image(\"/images/s5.png\");\n card.setFill(new ImagePattern(s5));\n }\n if(suit == Suit.SPADES && rank == Rank.SIX)\n {\n Image s6= new Image(\"/images/s6.png\");\n card.setFill(new ImagePattern(s6));\n }\n if(suit == Suit.SPADES && rank == Rank.SEVEN)\n {\n Image s7 = new Image(\"/images/s7.png\");\n card.setFill(new ImagePattern(s7));\n }\n if(suit == Suit.SPADES && rank == Rank.EIGHT)\n {\n Image s8 = new Image(\"/images/s8.png\");\n card.setFill(new ImagePattern(s8));\n }\n if(suit == Suit.SPADES && rank == Rank.NINE)\n {\n Image s9 = new Image(\"/images/s9.png\");\n card.setFill(new ImagePattern(s9));\n }\n if(suit == Suit.SPADES && rank == Rank.TEN)\n {\n Image s10 = new Image(\"/images/s10.png\");\n card.setFill(new ImagePattern(s10));\n }\n if(suit == Suit.SPADES && rank == Rank.JACK)\n {\n Image sj = new Image(\"/images/sj.png\");\n card.setFill(new ImagePattern(sj));\n }\n if(suit == Suit.SPADES && rank == Rank.KING)\n {\n Image sk = new Image(\"/images/sk.png\");\n card.setFill(new ImagePattern(sk));\n }\n if(suit == Suit.SPADES && rank == Rank.QUEEN)\n {\n Image sq = new Image(\"/images/sq.png\");\n card.setFill(new ImagePattern(sq));\n }\n\n // Set Diamond pictures for cards\n\n if(suit == Suit.DIAMONDS && rank == Rank.ACE)\n {\n Image d1 = new Image(\"/images/d1.png\");\n card.setFill(new ImagePattern(d1));\n }\n if(suit == Suit.DIAMONDS && rank == Rank.TWO)\n {\n Image d2 = new Image(\"/images/d2.png\");\n card.setFill(new ImagePattern(d2));\n }\n if(suit == Suit.DIAMONDS && rank == Rank.THREE)\n {\n Image d3 = new Image(\"/images/d3.png\");\n card.setFill(new ImagePattern(d3));\n }\n if(suit == Suit.DIAMONDS && rank == Rank.FOUR)\n {\n Image d4 = new Image(\"/images/d4.png\");\n card.setFill(new ImagePattern(d4));\n }\n if(suit == Suit.DIAMONDS && rank == Rank.FIVE)\n {\n Image d5 = new Image(\"/images/d5.png\");\n card.setFill(new ImagePattern(d5));\n }\n if(suit == Suit.DIAMONDS && rank == Rank.SIX)\n {\n Image d6= new Image(\"/images/d6.png\");\n card.setFill(new ImagePattern(d6));\n }\n if(suit == Suit.DIAMONDS && rank == Rank.SEVEN)\n {\n Image d7 = new Image(\"/images/d7.png\");\n card.setFill(new ImagePattern(d7));\n }\n if(suit == Suit.DIAMONDS && rank == Rank.EIGHT)\n {\n Image d8 = new Image(\"/images/d8.png\");\n card.setFill(new ImagePattern(d8));\n }\n if(suit == Suit.DIAMONDS && rank == Rank.NINE)\n {\n Image d9 = new Image(\"/images/d9.png\");\n card.setFill(new ImagePattern(d9));\n }\n if(suit == Suit.DIAMONDS && rank == Rank.TEN)\n {\n Image d10 = new Image(\"/images/d10.png\");\n card.setFill(new ImagePattern(d10));\n }\n if(suit == Suit.DIAMONDS && rank == Rank.JACK)\n {\n Image dj = new Image(\"/images/dj.png\");\n card.setFill(new ImagePattern(dj));\n }\n if(suit == Suit.DIAMONDS && rank == Rank.KING)\n {\n Image dk = new Image(\"/images/dk.png\");\n card.setFill(new ImagePattern(dk));\n }\n if(suit == Suit.DIAMONDS && rank == Rank.QUEEN)\n {\n Image dq = new Image(\"/images/dq.png\");\n card.setFill(new ImagePattern(dq));\n }\n getChildren().add(new StackPane(card));\n\n return card;\n }", "title": "" }, { "docid": "f8dffcbc12afd56ae3b0272dd3d90478", "score": "0.5590395", "text": "java.lang.String getIdcard();", "title": "" }, { "docid": "d570738125988122acad269a70b9faac", "score": "0.5589677", "text": "public String findCardImg(String card)\n\t{\n\t\tboolean cardFound = false;\n\t\tint index = 0;\n\t\t\n\t\twhile(!cardFound)\n\t\t{\n\t\t\tcardFound = (deckImg[index].indexOf(card) >= 0);\n\t\t\t\n\t\t\tif(!cardFound)\n\t\t\t\tindex++;\n\t\t}\n\t\t\n\t\treturn deckImg[index];\n\t}", "title": "" }, { "docid": "576364bcedc48930d5f187e3c8ef0aff", "score": "0.5564639", "text": "private void setImageComment(){\n\n\n }", "title": "" }, { "docid": "b019155ed3b49aaa08e69c7cf54896bc", "score": "0.5564394", "text": "private String[] createDeckImg()\n\t{\n\t\tdeckImg = new String[TOTAL_CARDS+1];\n\t\t\n\t\tint count = 0;\n\t\tfor (int j = 0; j < Card.suit.length; j++)\n\t\t{\n\t\t\tfor (int i = 0; i < Card.face.length; i++)\n\t\t\t{\n\t\t\t\tdeckImg[count] = \"classic-cards/\" + Card.face[i] + Card.suit[j] + \".png\";\n\t\t\t\tcount++;\n\t\t\t}\n\t\t}\n\t\tdeckImg[deckImg.length-1] = \"classic-cards/BackVertical.png\";\n\n\t\treturn deckImg;\n\t}", "title": "" }, { "docid": "3de2a6403d28802c3e0a101b04ba7dd1", "score": "0.55606717", "text": "public String dealDeckImg()\n\t{\t\t\n\t\treturn Arrays.toString(deckImg);\n\t}", "title": "" }, { "docid": "f9e32e4f68c79300e61bb19be5255cda", "score": "0.5557091", "text": "public static Drawable imageDrawableCard(String string2) {\n try {\n if (mDrawables_button == null) {\n mDrawables_button = new HashMap();\n }\n if (mDrawables_button.containsKey((Object)string2)) return (Drawable)mDrawables_button.get((Object)string2);\n Log.v((String)\"test\", (String)(\"file name \" + string2 + \" \" + (Object)baseContext));\n int n = baseContext.getResources().getIdentifier(string2, \"drawable\", baseContext.getPackageName());\n Drawable drawable2 = baseContext.getResources().getDrawable(n);\n Log.v((String)\"test\", (String)(\"get base \" + string2 + \" \" + (Object)drawable2));\n mDrawables_button.put((Object)string2, (Object)drawable2);\n }\n catch (Exception var1_3) {\n var1_3.printStackTrace();\n return (Drawable)mDrawables_button.get((Object)string2);\n }\n return (Drawable)mDrawables_button.get((Object)string2);\n }", "title": "" }, { "docid": "fc022aa5753c5941a3d73ddcdcfa44b2", "score": "0.55555296", "text": "public NumberTenCard(String name, String image){\r\n\t\tsuper(name, 10, image);\r\n\t}", "title": "" }, { "docid": "d46981c00516e194d69ee0d6fc54c41a", "score": "0.5539694", "text": "public void setCardId(String cardId)\n/* */ {\n/* 90 */ this.cardId = cardId;\n/* */ }", "title": "" }, { "docid": "a3776a665dfd92b095b32350f60b7c78", "score": "0.5532733", "text": "@ApiModelProperty(value = \"The ID of the card image. This is the image that will be printed on the full front of the card.\")\n @JsonProperty(JSON_PROPERTY_CARD_IMAGE_ID)\n @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)\n\n public String getCardImageId() {\n return cardImageId;\n }", "title": "" }, { "docid": "391a9074137a47c9730c8a26a4c118c2", "score": "0.5528875", "text": "public void displayAddedCardInHand(int card) {\n LayoutInflater inflator = LayoutInflater.from(this);\n LinearLayout gallery = findViewById(R.id.gallery);\n View view2 = inflator.inflate(R.layout.card, gallery, false);\n gallery.addView(view2);\n // creates an unique id for each card\n ImageView kaart = findViewById(R.id.kaart);\n assignCards(card, kaart);\n kaart.setId(card);\n //cardid += 1;\n }", "title": "" }, { "docid": "05f019774072d6db0bb061d75ff2e640", "score": "0.551527", "text": "String getCardId();", "title": "" }, { "docid": "9131ec77554528a2a04216ac33ead4ac", "score": "0.5513106", "text": "public void setImage(ImageBvr img) { _img = img; }", "title": "" }, { "docid": "37c990fec15860539f779aed8da23092", "score": "0.5509286", "text": "public static Bitmap m16106rk(String str) {\n boolean z = false;\n AppMethodBeat.m2504i(11428);\n if (!C5046bo.isNullOrNil(str) && C1720g.m3536RP().isSDCardAvailable() && C1720g.m3534RN().mo5161QY()) {\n Bitmap rl = C41747z.afb().mo20356rl(str);\n String str2 = \"MicroMsg.BrandLogic\";\n String str3 = \"get verify user icon = %s, is null ? %s\";\n Object[] objArr = new Object[2];\n objArr[0] = str;\n if (rl == null) {\n z = true;\n }\n objArr[1] = String.valueOf(z);\n C4990ab.m7417i(str2, str3, objArr);\n AppMethodBeat.m2505o(11428);\n return rl;\n }\n AppMethodBeat.m2505o(11428);\n return null;\n }", "title": "" }, { "docid": "0334f80c1e379157e936180776a65f93", "score": "0.5508399", "text": "public String _setimageandposition(anywheresoftware.b4a.objects.LabelWrapper _l) throws Exception{\n_l.SetBackgroundImageNew((android.graphics.Bitmap)(_pickrandomimage().getObject()));\n //BA.debugLineNum = 232;BA.debugLine=\"l.Tag = lastPickedInt\";\n_l.setTag((Object)(_lastpickedint));\n //BA.debugLineNum = 234;BA.debugLine=\"End Sub\";\nreturn \"\";\n}", "title": "" }, { "docid": "896112b80a7da5c656c81d333e8cf49c", "score": "0.5484531", "text": "public void assignCards(int card, ImageView cardView) {\n //hearts\n switch (card) {\n case 101:\n cardView.setImageResource(R.drawable.ah);\n }\n switch (card) {\n case 102:\n cardView.setImageResource(R.drawable.c2h);\n }\n switch (card) {\n case 103:\n cardView.setImageResource(R.drawable.c3h);\n }\n switch (card) {\n case 104:\n cardView.setImageResource(R.drawable.c4h);\n }\n switch (card) {\n case 105:\n cardView.setImageResource(R.drawable.c5h);\n }\n switch (card) {\n case 106:\n cardView.setImageResource(R.drawable.c6h);\n }\n switch (card) {\n case 107:\n cardView.setImageResource(R.drawable.c7h);\n }\n switch (card) {\n case 108:\n cardView.setImageResource(R.drawable.c8h);\n }\n switch (card) {\n case 109:\n cardView.setImageResource(R.drawable.c9h);\n }\n switch (card) {\n case 110:\n cardView.setImageResource(R.drawable.c10h);\n }\n switch (card) {\n case 111:\n cardView.setImageResource(R.drawable.jh);\n }\n switch (card) {\n case 112:\n cardView.setImageResource(R.drawable.qh);\n }\n switch (card) {\n case 113:\n cardView.setImageResource(R.drawable.kh);\n }\n\n //diamonds\n switch (card) {\n case 201:\n cardView.setImageResource(R.drawable.ad);\n }\n switch (card) {\n case 202:\n cardView.setImageResource(R.drawable.c2d);\n }\n switch (card) {\n case 203:\n cardView.setImageResource(R.drawable.c3d);\n }\n switch (card) {\n case 204:\n cardView.setImageResource(R.drawable.c4d);\n }\n switch (card) {\n case 205:\n cardView.setImageResource(R.drawable.c5d);\n }\n switch (card) {\n case 206:\n cardView.setImageResource(R.drawable.c6d);\n }\n switch (card) {\n case 207:\n cardView.setImageResource(R.drawable.c7d);\n }\n switch (card) {\n case 208:\n cardView.setImageResource(R.drawable.c8d);\n }\n switch (card) {\n case 209:\n cardView.setImageResource(R.drawable.c9d);\n }\n switch (card) {\n case 210:\n cardView.setImageResource(R.drawable.c10d);\n }\n switch (card) {\n case 211:\n cardView.setImageResource(R.drawable.jd);\n }\n switch (card) {\n case 212:\n cardView.setImageResource(R.drawable.qd);\n }\n switch (card) {\n case 213:\n cardView.setImageResource(R.drawable.kd);\n }\n\n //spades\n switch (card) {\n case 301:\n cardView.setImageResource(R.drawable.as);\n }\n switch (card) {\n case 302:\n cardView.setImageResource(R.drawable.c2s);\n }\n switch (card) {\n case 303:\n cardView.setImageResource(R.drawable.c3s);\n }\n switch (card) {\n case 304:\n cardView.setImageResource(R.drawable.c4s);\n }\n switch (card) {\n case 305:\n cardView.setImageResource(R.drawable.c5s);\n }\n switch (card) {\n case 306:\n cardView.setImageResource(R.drawable.c6s);\n }\n switch (card) {\n case 307:\n cardView.setImageResource(R.drawable.c7s);\n }\n switch (card) {\n case 308:\n cardView.setImageResource(R.drawable.c8s);\n }\n switch (card) {\n case 309:\n cardView.setImageResource(R.drawable.c9s);\n }\n switch (card) {\n case 310:\n cardView.setImageResource(R.drawable.c10s);\n }\n switch (card) {\n case 311:\n cardView.setImageResource(R.drawable.js);\n }\n switch (card) {\n case 312:\n cardView.setImageResource(R.drawable.qs);\n }\n switch (card) {\n case 313:\n cardView.setImageResource(R.drawable.ks);\n }\n\n //clubs\n switch (card) {\n case 401:\n cardView.setImageResource(R.drawable.ac);\n }\n switch (card) {\n case 402:\n cardView.setImageResource(R.drawable.c2c);\n }\n switch (card) {\n case 403:\n cardView.setImageResource(R.drawable.c3c);\n }\n switch (card) {\n case 404:\n cardView.setImageResource(R.drawable.c4c);\n }\n switch (card) {\n case 405:\n cardView.setImageResource(R.drawable.c5c);\n }\n switch (card) {\n case 406:\n cardView.setImageResource(R.drawable.c6c);\n }\n switch (card) {\n case 407:\n cardView.setImageResource(R.drawable.c7c);\n }\n switch (card) {\n case 408:\n cardView.setImageResource(R.drawable.c8c);\n }\n switch (card) {\n case 409:\n cardView.setImageResource(R.drawable.c9c);\n }\n switch (card) {\n case 410:\n cardView.setImageResource(R.drawable.c10c);\n }\n switch (card) {\n case 411:\n cardView.setImageResource(R.drawable.jc);\n }\n switch (card) {\n case 412:\n cardView.setImageResource(R.drawable.qc);\n }\n switch (card) {\n case 413:\n cardView.setImageResource(R.drawable.kc);\n }\n // we add 1000 to a card if its facedown\n if(card >= 1000){\n cardView.setImageResource(R.drawable.gray_back);\n }\n }", "title": "" }, { "docid": "5b51b55bfa158229d7605c3d92d8baeb", "score": "0.5473264", "text": "public String getCardId()\n/* */ {\n/* 81 */ return this.cardId;\n/* */ }", "title": "" }, { "docid": "2cd811f2e7ba9cd13c80699cde6a2152", "score": "0.54677224", "text": "public void setBackImageUrl(String backImageUrl) {\n\t\tthis.mBackImageUrl = backImageUrl;\n\t}", "title": "" }, { "docid": "dc5e8c45c8e9678ee428a52079346aef", "score": "0.5458973", "text": "int getCardId();", "title": "" }, { "docid": "6948130b4b59d3f5b0c3e906fecb207a", "score": "0.5447947", "text": "public int get_imageId() { return _imageId; }", "title": "" }, { "docid": "beb857e0592c555d8e1e2bb40d598cab", "score": "0.54437464", "text": "java.lang.String getProfileImage();", "title": "" }, { "docid": "2c9b3116232fb2565a79586e8f0cbda7", "score": "0.5439105", "text": "private void LoadCards() {\n\t\tImageContainersFront[0]= R.id.BirdView01;\r\n\t\tImageContainersFront[1]= R.id.BirdView02;\r\n\t\tImageContainersFront[2]= R.id.BirdView03;\r\n\t\tImageContainersFront[3]= R.id.BirdView04;\r\n\t\tImageContainersFront[4]= R.id.FlagView01;\r\n\t\tImageContainersFront[5]= R.id.FlagView02;\r\n\t\tImageContainersFront[6]= R.id.FlagView03;\r\n\t\tImageContainersFront[7]= R.id.FlagView04;\r\n\t\t\r\n\t\t //birds backview\r\n\t\tImageContainersBack[0] = R.id.BackView01;\r\n\t\tImageContainersBack[1] = R.id.BackView02;\r\n\t\tImageContainersBack[2] = R.id.BackView03;\r\n\t\tImageContainersBack[3] = R.id.BackView04;\r\n\t\tImageContainersBack[4] = R.id.BackView05;\r\n\t\tImageContainersBack[5] = R.id.BackView06;\r\n\t\tImageContainersBack[6] = R.id.BackView07;\r\n\t\tImageContainersBack[7] = R.id.BackView08;\r\n\t\t\r\n\t\t// load the drawable ids to the cards\r\n\t\tint back= getResources().getIdentifier(\"com.fyp.birdfun:drawable/birdfun_background\", null, null);\r\n\t\tfor(int i=0;i<NO_OF_CARDS;i++)\r\n\t\t{\r\n\t\t\tint front= getResources().getIdentifier(\"com.fyp.birdfun:drawable/theweapon_card\"+i, null, null);\r\n\t\t\t\r\n\t\t\tif(front==0)\r\n\t\t\t{\r\n\t\t\t\t//error to log\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\telse\r\n\t\t\t cards[i]=new Card(i,front,back);\r\n\t\t\r\n\t\t}\r\n\t\t\r\n\t}", "title": "" }, { "docid": "c1a4fadcf8fb6164e54aa31e7e6ad3ab", "score": "0.54268444", "text": "public Builder clearIdcardfrontimage() {\n bitField0_ = (bitField0_ & ~0x00000020);\n idcardfrontimage_ = getDefaultInstance().getIdcardfrontimage();\n onChanged();\n return this;\n }", "title": "" }, { "docid": "167030243336575a5ccbe2b7a05187bf", "score": "0.5419953", "text": "public void getCard(Integer id) {\n\t\t\r\n\t}", "title": "" }, { "docid": "90185350d5d72b4a8c7ddc158feb991d", "score": "0.54156834", "text": "String getImg();", "title": "" }, { "docid": "ef6fea3db60b6dd8d39c5a89280fea30", "score": "0.5409845", "text": "java.lang.String getPixId();", "title": "" }, { "docid": "75d9bcec9b708a2a42ffed143c00419b", "score": "0.54088837", "text": "public Deck() \r\n {\r\n ImageIcon card1 = new ImageIcon(\"aces.jpg\");\r\n Card aces = new Card(card1, 1, \"spade\", \"Ace\");\r\n\r\n ImageIcon card2 = new ImageIcon(\"aceh.jpg\");\r\n Card aceh = new Card(card2, 1, \"heart\", \"Ace\");\r\n\r\n ImageIcon card3 = new ImageIcon(\"aced.jpg\");\r\n Card aced = new Card(card3, 1,\"diamond\", \"Ace\");\r\n\r\n ImageIcon card4 = new ImageIcon(\"acec.jpg\");\r\n Card acec = new Card(card4, 1,\"club\", \"Ace\");\r\n\r\n \r\n deckSet.add(aces);\r\n deckSet.add(aceh);\r\n deckSet.add(aced);\r\n deckSet.add(acec);\r\n \r\n //... finish remind codes\r\n\r\n }", "title": "" }, { "docid": "f55ae36693fe9b2892b57a49fbe6f445", "score": "0.54019547", "text": "public String getBanner_img() {\n return banner_img;\n }", "title": "" }, { "docid": "a26c62fd7b3669187e80cd86f5f764f6", "score": "0.5390283", "text": "@Override\r\n\tprotected void onActivityResult(int requestCode, int resultCode, Intent data) {\n\t\tsuper.onActivityResult(requestCode, resultCode, data);\r\n\t\t if (requestCode == UpdateUserActivity.REQUSET && resultCode == RESULT_OK) { \r\n head=data.getIntExtra(HeadActivity.KEY_USER_HEAD,1);\r\n System.out.println(head+\"_----------------------------\");\r\n chead.setImageResource(AllStatic.imageclub[head]); \r\n } }", "title": "" }, { "docid": "8ee5161f733669a74a8035fefa3dcee2", "score": "0.5385934", "text": "public Card getBackCard() {\n return backCard;\n }", "title": "" }, { "docid": "4755775719a7815a8e0b627685f2a8a9", "score": "0.53753644", "text": "private void resetView() {\r\n try {\r\n FileInputStream back = new FileInputStream(GameUtil.cardPicBack());\r\n Image backPic = new Image(back);\r\n this.cmnCard1.setImage(backPic);\r\n this.cmnCard2.setImage(backPic);\r\n this.cmnCard3.setImage(backPic);\r\n this.cmnCard4.setImage(backPic);\r\n this.cmnCard5.setImage(backPic);\r\n try {\r\n back.close();\r\n } catch (IOException ex) {\r\n Alert alert = new Alert(AlertType.ERROR);\r\n alert.setTitle(\"Error Dialog\");\r\n alert.setHeaderText(\"IO Exception\");\r\n alert.setContentText(\"Sorry, we have an IO Exception\");\r\n alert.showAndWait();\r\n\r\n }\r\n } catch (FileNotFoundException ex) {\r\n Alert alert = new Alert(AlertType.ERROR);\r\n alert.setTitle(\"Error Dialog\");\r\n alert.setHeaderText(\"File Not Found Exception\");\r\n alert.setContentText(\"Sorry, You might need to reinstall the program\");\r\n alert.showAndWait();\r\n }\r\n }", "title": "" }, { "docid": "316dc99bd9555446bf485e8279bcf5ed", "score": "0.5374069", "text": "public void setFacultyBg(String imageUrl) {\n this.imageUrl = imageUrl;\n if (imageUrl == \"0\") facultyBg.setImageResource(R.drawable.faculty_1);\n else if (imageUrl == \"1\") facultyBg.setImageResource(R.drawable.faculty_2);\n else if (imageUrl == \"2\") facultyBg.setImageResource(R.drawable.faculty_3);\n else facultyBg.setImageResource(R.drawable.faculty_2);\n\n }", "title": "" }, { "docid": "d31e06c060fd0ccf4133f932de24ec2d", "score": "0.53542453", "text": "java.lang.String getImg();", "title": "" }, { "docid": "d31e06c060fd0ccf4133f932de24ec2d", "score": "0.53542453", "text": "java.lang.String getImg();", "title": "" }, { "docid": "7c3a66be17ccefed301b7cccd779561e", "score": "0.53409266", "text": "public void setImage(String image) {\n this.image = image;\n }", "title": "" }, { "docid": "4cc5be30e0e2cc0c3d12ec1509f759fa", "score": "0.53384805", "text": "public String changeprofileimage(Profile profile);", "title": "" }, { "docid": "8994607ed7061f596a564b76c8a7f351", "score": "0.53219765", "text": "public void setImage(String image) {\r\n this.image = image;\r\n }", "title": "" }, { "docid": "bb4b6a30a9e900086b0cccb7607bf83e", "score": "0.53207237", "text": "public String getBackImageUrl() {\n\t\treturn mBackImageUrl;\n\t}", "title": "" }, { "docid": "4ae2d7ca003e5ee705bb396c4d2c7021", "score": "0.5317175", "text": "private int getImg(int index){\n switch (index){\n case 0: return R.drawable.hangman10;\n case 1: return R.drawable.hangman9;\n case 2: return R.drawable.hangman8;\n case 3: return R.drawable.hangman7;\n case 4: return R.drawable.hangman6;\n case 5: return R.drawable.hangman5;\n case 6: return R.drawable.hangman4;\n case 7: return R.drawable.hangman3;\n case 8: return R.drawable.hangman2;\n case 9: return R.drawable.hangman1;\n case 10: return R.drawable.hangman0;\n default: return -1;\n }\n }", "title": "" }, { "docid": "19daad747636103a5d371d6927e8d335", "score": "0.53135186", "text": "public void setImg(String img) {\n this.img = img;\n }", "title": "" }, { "docid": "19daad747636103a5d371d6927e8d335", "score": "0.53135186", "text": "public void setImg(String img) {\n this.img = img;\n }", "title": "" }, { "docid": "550a18604e0eb4fe7d47ffecd125cc86", "score": "0.53129655", "text": "public void addImage(int id, String image);", "title": "" }, { "docid": "982a9917066c543479b2bbbad4983dca", "score": "0.5311567", "text": "public void setImageName();", "title": "" }, { "docid": "1aac947013fe49419ff1a4132b47ecd9", "score": "0.5302169", "text": "public static String getCardValueFromImage (String key, String image)\n\t\t{\n\t\tImagePlus img = null;\n\t\tif (image == null || image.equals(\"\"))\n\t\t\timg = WindowManager.getCurrentImage();\n\t\telse\n\t\t\timg = WindowManager.getImage(image);\n\t\tif (img == null)\n\t\t\t{\n\t\t\tIJ.log(\"FitsJ.getCardValueFromFile: no image \"+image);\n\t\t\treturn null;\n\t\t\t}\n\n\t\tString[] cards = FitsJ.getHeader(img);\n\t\tif (cards == null)\n\t\t\t{\n\t\t\tIJ.log(\"FitsJ.getCardValueFromFile: no FITS header for \"+image);\n\t\t\treturn null;\n\t\t\t}\n\n\t\tint icard = FitsJ.findCardWithKey (key, cards);\n\t\tif (icard < 0) return null;\n\n\t\tString ctype = getCardType(cards[icard]);\n\t\tif (ctype.equals(\"S\"))\n\t\t\treturn getCardStringValue(cards[icard]);\n\t\telse\n\t\t\treturn getCardValue(cards[icard]);\n\t\t}", "title": "" }, { "docid": "f6a0272801877e1e746ba790be44651a", "score": "0.5295298", "text": "public void setImage();", "title": "" }, { "docid": "96509fcbe4f1eb4491f6bc3eefe798d6", "score": "0.5286087", "text": "private void m9417c() {\n this.f8092g.setImageURI(C2436c.m9320i() + C2380c.m9070a().m9085f().m9135d());\n }", "title": "" }, { "docid": "d505de9ef74108973ab36c4dfc9bb174", "score": "0.5284999", "text": "void getFaceupCards();", "title": "" }, { "docid": "c76a7914abc5b6fa0c2cb18763f37f3d", "score": "0.5275031", "text": "public void setCardgid(String cardgid) {\n this.cardgid = cardgid;\n }", "title": "" }, { "docid": "805230b4455a49aebc51c1d61d9f3c73", "score": "0.52731097", "text": "@Override\r\n\tpublic void backCard(String apid, String card1, String card2, String card3, String card4) {\n\t\tDate d = new Date();\r\n\t\tSimpleDateFormat sd = new SimpleDateFormat(\"yyyy-MM-dd\");\r\n\t\tString format = sd.format(d);\r\n\t\t//删除卡片,isshow=0\r\n\t\tif(card1!=null){\r\n\t\t\tCard c =cardDao.findById(card1);\r\n\t\t\tif(c!=null){\r\n\t\t\t\tc.setIsshow(0);\r\n\t\t\t\tc.setIsreturn(1);\r\n\t\t\t\tc.setReturntime(format);\r\n\t\t\t}\r\n\t\t}\r\n\t\tif(card2!=null){\r\n\t\t\tCard c =cardDao.findById(card2);\r\n\t\t\tif(c!=null){\r\n\t\t\t\tc.setIsshow(0);\r\n\t\t\t\tc.setIsreturn(1);\r\n\t\t\t\tc.setReturntime(format);\r\n\t\t\t}\r\n\t\t}\r\n\t\tif(card3!=null){\r\n\t\t\tCard c =cardDao.findById(card3);\r\n\t\t\tif(c!=null){\r\n\t\t\t\tc.setIsshow(0);\r\n\t\t\t\tc.setIsreturn(1);\r\n\t\t\t\tc.setReturntime(format);\r\n\t\t\t}\r\n\t\t}\r\n\t\tif(card4!=null){\r\n\t\t\tCard c =cardDao.findById(card4);\r\n\t\t\tif(c!=null){\r\n\t\t\t\tc.setIsshow(0);\r\n\t\t\t\tc.setIsreturn(1);\r\n\t\t\t\tc.setReturntime(format);\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\tCardApply backById = cardDao.getBackById(apid);\r\n\t\tbackById.setIsdeal(1);//更改处理状态,已处理\t\t\r\n\t}", "title": "" }, { "docid": "55761ae8df0afcf2aee62dbdeb43a925", "score": "0.52671486", "text": "public String getImage(){\n return itemImg[getNum()];\n }", "title": "" }, { "docid": "041a85f80a7bc89a2bc5409130c0bba2", "score": "0.5260231", "text": "public void setImageIcon(){\n\t\tcardIcon[0]= new ImageIcon(cardImage[0]);\n\t\tcardIcon[1]= new ImageIcon(cardImage[1]);\n\t}", "title": "" }, { "docid": "b6e89fc401fdd9dcbcc442919c820f11", "score": "0.52510184", "text": "private String convert(String imageId){\n String chessId = \"\";\n switch (imageId.charAt(1)){\n case '1': chessId += \"a\"; break;\n case '2': chessId += \"b\"; break;\n case '3': chessId += \"c\"; break;\n case '4': chessId += \"d\"; break;\n case '5': chessId += \"e\"; break;\n case '6': chessId += \"f\"; break;\n case '7': chessId += \"g\"; break;\n case '8': chessId += \"h\"; break;\n }\n switch (imageId.charAt(0)){\n case '1': chessId += \"8\"; break;\n case '2': chessId += \"7\"; break;\n case '3': chessId += \"6\"; break;\n case '4': chessId += \"5\"; break;\n case '5': chessId += \"4\"; break;\n case '6': chessId += \"3\"; break;\n case '7': chessId += \"2\"; break;\n case '8': chessId += \"1\"; break;\n }\n return chessId;\n }", "title": "" }, { "docid": "ebd9b2ca19bf59b6a02973cc4e9dab7e", "score": "0.5249013", "text": "public void setIdCard (java.lang.String idCard) {\n\t\tthis.idCard = idCard;\n\t}", "title": "" }, { "docid": "90ebb6b95bed4911abb965efdfa3be45", "score": "0.52454495", "text": "public void createFirstCards() {\n int i = 0;\r\n for(int x = 1; x < 25; x++) {\r\n int resID = MainActivity.this.getResources().getIdentifier(\"imageButton\" + Integer.toString(x),\r\n \"id\", getPackageName()); //iterates through all the ImageButtons\r\n ImageButton genButton = findViewById(resID);\r\n if(x <=12) { //first 12 cards that are shown on the field\r\n genButton.setBackground(getDrawable(deck[cardCounter].getPicture()));\r\n cardCounter++;\r\n genButton.setTag(deck[cardCounter -1]);\r\n i++;\r\n buttons[i-1] = genButton;\r\n } else { //invisible Buttons that are added by AddThreeCards function\r\n genButton.setVisibility(View.INVISIBLE);\r\n i++;\r\n buttons[i-1] = genButton;\r\n }\r\n }\r\n }", "title": "" }, { "docid": "92c3bbf1822a6169a94db3dc7e9815d1", "score": "0.5239642", "text": "@Override\n protected void onActivityResult(int id, int result, Intent data) {\n if(result == RESULT_OK)\n {\n //check if its the choose image activity\n if(id == CHOOSE_IMAGE_ID)\n {\n Uri imageAddress = data.getData();\n //used to read image data\n InputStream inStream;\n\n try\n {\n inStream = getContentResolver().openInputStream(imageAddress);\n\n leagueLogo = BitmapFactory.decodeStream(inStream);\n imageButton.setImageBitmap(leagueLogo);\n }\n catch (FileNotFoundException e)\n {\n e.printStackTrace();\n }\n }\n }\n }", "title": "" }, { "docid": "6874effbdbda0b232745d6d3c6752455", "score": "0.5238411", "text": "@Test\n public void defaultCardIdTest() {\n assertEquals(\"2U1XV3PJSeUXFNzXidACn2TyCzAK\", cha.getDefaultCardId());\n }", "title": "" }, { "docid": "f8f362fb81ae9ed4d640e2efe6bc12ea", "score": "0.5236923", "text": "public int getAD_Image_ID() \n{\nInteger ii = (Integer)get_Value(\"AD_Image_ID\");\nif (ii == null) return 0;\nreturn ii.intValue();\n}", "title": "" }, { "docid": "7c1980bb4622aafaf5ea2543c92c20eb", "score": "0.5236625", "text": "private void setFaceImage(int row, int column) {\n int cardData = game.getCardData(row, column);\n String iconPath;\n try {\n if (cardData < 14) {\n iconPath = \"Resources/Images/\" + cardData + \".png\"; // Path to image file in src\n if (debugModeEnabled) {\n System.out.print(\"\\n> Opening image file from location: \\\"\" + iconPath + \"\\\".\");\n } ImageIcon faceIcon = getImgResource(iconPath);\n getGridButton(row, column).setIcon(faceIcon);\n } else {\n getGridButton(row, column).setIcon(null);\n getGridButton(row, column).setFont(this.getFont().deriveFont(Font.BOLD, 28.0f));\n getGridButton(row, column).setText(String.valueOf(game.getCardData(row, column)));\n }\n } catch (Exception e) {\n e.printStackTrace();\n JOptionPane.showMessageDialog(null, e.getMessage());\n }\n }", "title": "" }, { "docid": "2465c5e3a1169e5afbb7b8f8f5089288", "score": "0.52343875", "text": "private void updateImageId()\n\t{\n\t\timageId=new int[resList.length];\n\t\t\n\t\tfor(int i=0; i<resList.length;i++)\n\t\t{\n\t\t\timageId[i]=R.drawable.restaurant_;\n\t\t}\n\t\tupdateGridView();\n\t}", "title": "" }, { "docid": "fcd15f048bd77f6c304fc555df0810a2", "score": "0.523119", "text": "public void setImage(String image) {\n this.image = image;\n }", "title": "" }, { "docid": "fcd15f048bd77f6c304fc555df0810a2", "score": "0.523119", "text": "public void setImage(String image) {\n this.image = image;\n }", "title": "" }, { "docid": "fcd15f048bd77f6c304fc555df0810a2", "score": "0.523119", "text": "public void setImage(String image) {\n this.image = image;\n }", "title": "" }, { "docid": "f6e2733342f8f28fb60754a5fc740e41", "score": "0.52199566", "text": "public void setIdcard(String idcard) {\n this.idcard = idcard == null ? null : idcard.trim();\n }", "title": "" }, { "docid": "f6e2733342f8f28fb60754a5fc740e41", "score": "0.52199566", "text": "public void setIdcard(String idcard) {\n this.idcard = idcard == null ? null : idcard.trim();\n }", "title": "" }, { "docid": "6ac726e94dc0ee6ce9357d9447cea329", "score": "0.52194476", "text": "public void CardGenerator(BufferedImage checkMarkBufferedImage,CardInfo cardInfo) throws Exception {\n String errorMessage = cardInfo.getFirstName() == null ? \"first name\" :\n (cardInfo.getLastName() == null ? \"last name\" : (cardInfo.getBirthDay() == null ? \"birth date\" :\n (cardInfo.getPhone() == null ? \"phone\" : (cardInfo.getQrCode() == null ? \"Qr code\" :\n (cardInfo.getPicHash() == null ? \"picture hash\" : \"true\")))));\n if (errorMessage.equals(\"true\")) {\n String fullName;\n InputStream templateInputStream = new FileInputStream(new File(Main.CONFIG.getPptpTemplatePath()));\n Presentation presentation = new Presentation();\n presentation.loadFromStream(templateInputStream, FileFormat.PPTX_2013);\n ISlide slide = presentation.getSlides().get(0);\n Map<String, String> map = new HashMap<>();\n fullName = replaceCharacters(cardInfo.getFirstName().concat(\" \").concat(cardInfo.getLastName()));\n\n String farsiTel = this.replaceWithPersian(cardInfo.getPhone());\n String farsiNationalId = this.replaceWithPersian(cardInfo.getNationalCode());\n String farsiBirthDate = this.replaceWithPersian(cardInfo.getBirthDay());\n\n\n map.put(TEMPLATE_NAME_KEY, fullName);\n map.put(TEMPLATE_TEL_KEY, farsiTel);\n map.put(TEMPLATE_BIRTH_DATE_KEY, farsiBirthDate);\n map.put(TEMPLATE_NATIONAL_ID_KEY, farsiNationalId);\n\n\n for (Object shape : slide.getShapes()) {\n if (shape instanceof IAutoShape) {\n ParagraphEx paragraphEx = ((IAutoShape) shape).getTextFrame().getParagraphs().get(0);\n for (Object key : map.keySet()) {\n if (paragraphEx.getText().contains((String) key)) {\n String key1 = (String) key;\n paragraphEx.setText(paragraphEx.getText().replace(key1, map.get(key1)));\n\n }\n }\n }\n }\n\n //set QR code picture\n InputStream qrCodeStream = new ByteArrayInputStream(cardInfo.getQrCode());\n BufferedImage qrBufferedImage = ImageIO.read(qrCodeStream);\n IImageData qrImage = presentation.getImages().append(qrBufferedImage);\n ShapeCollection shapes = slide.getShapes();\n if (shapes.get(4) instanceof SlidePicture) {\n ((SlidePicture) shapes.get(4)).getPictureFill().getPicture().setEmbedImage(qrImage);\n }\n\n ByteArrayInputStream profilePictureStream = new ByteArrayInputStream(cardInfo.getPicture());\n BufferedImage profileBufferedImage = ImageIO.read(profilePictureStream);\n IImageData userImage = presentation.getImages().append(profileBufferedImage);\n shapes.get(5).getFill().getPictureFill().getPicture().setEmbedImage(userImage);\n\n //set check-mark\n\n IImageData checkMarkImage = presentation.getImages().append(checkMarkBufferedImage);\n if (cardInfo.isSeizure() && shapes.get(6) instanceof SlidePicture) {\n ((SlidePicture) shapes.get(6)).getPictureFill().getPicture().setEmbedImage(checkMarkImage);\n\n }\n\n if (cardInfo.isCommunicationProblem() && shapes.get(7) instanceof SlidePicture)\n ((SlidePicture) shapes.get(7)).getPictureFill().getPicture().setEmbedImage(checkMarkImage);\n if (cardInfo.isADHD() && shapes.get(8) instanceof SlidePicture)\n ((SlidePicture) shapes.get(8)).getPictureFill().getPicture().setEmbedImage(checkMarkImage);\n\n\n// presentation.saveToFile(path + nationalId + \".pptx\", FileFormat.PPTX_2013);\n //converting pptx to image//\n presentation.setAutoCompressPictures(false);\n BufferedImage image = presentation.getSlides().get(0).saveAsImage(1075, 673);\n String fileName = Main.CONFIG.getPptpDestination().concat(\"/\").concat(cardInfo.getNationalCode() + \".jpg\");\n\n // Image writer\n JPEGImageWriter imageWriter = (JPEGImageWriter) ImageIO.getImageWritersBySuffix(\"jpg\").next();\n ImageOutputStream ios = ImageIO.createImageOutputStream(new File(fileName));\n imageWriter.setOutput(ios);\n\n // Compression\n JPEGImageWriteParam jpegParams = (JPEGImageWriteParam) imageWriter.getDefaultWriteParam();\n jpegParams.setCompressionMode(JPEGImageWriteParam.MODE_EXPLICIT);\n jpegParams.setCompressionQuality(1);\n\n // Metadata (dpi)\n IIOMetadata data = imageWriter.getDefaultImageMetadata(new ImageTypeSpecifier(image), jpegParams);\n Element tree = (Element) data.getAsTree(\"javax_imageio_jpeg_image_1.0\");\n Element jfif = (Element) tree.getElementsByTagName(\"app0JFIF\").item(0);\n jfif.setAttribute(\"Xdensity\", Integer.toString(600));\n jfif.setAttribute(\"Ydensity\", Integer.toString(600));\n jfif.setAttribute(\"resUnits\", \"1\"); // density is dots per inch\n data.setFromTree(\"javax_imageio_jpeg_image_1.0\", tree);\n\n // Write and clean up\n imageWriter.write(null, new IIOImage(image, null, data), jpegParams);\n ios.close();\n imageWriter.dispose();\n }\n if (!errorMessage.equals(\"true\")){\n throw new RuntimeException(errorMessage.concat(\" is fetched null from database\"));\n }\n }", "title": "" }, { "docid": "d5365e5b103f5a1605b4c17e9cf7e61e", "score": "0.5213888", "text": "public String getAvatarid() {\n return avatarid;\n }", "title": "" }, { "docid": "c9b5e4225498607885bd5e6ceaaf4607", "score": "0.52131814", "text": "public String image() {\n StringBuffer imageCode = new StringBuffer();\n imageCode.append(\"<a href=\\\"http://captchas.net\\\"><img style=\\\"border: none; vertical-align: bottom\\\" \");\n imageCode.append(\"id=\\\"captchas.net\\\" src=\\\"\" + imageUrl() + \"\\\" \"); \n imageCode.append(\"width=\\\"\" + width + \"\\\" height=\\\"\" + height + \"\\\" \"); \n imageCode.append(\"alt=\\\"The CAPTCHA image\\\" /></a> \\n\");\n imageCode.append(\"<script type=\\\"text/javascript\\\">\\n\");\n imageCode.append(\" <!--\\n\");\n imageCode.append(\" function captchas_image_error (image)\\n\");\n imageCode.append(\" {\\n\");\n imageCode.append(\" if (!image.timeout) return true;\\n\");\n imageCode.append(\" image.src = image.src.replace (/^http:\\\\/\\\\/image\\\\.captchas\\\\.net/,\\n\");\n imageCode.append(\" 'http://image.backup.captchas.net');\\n\");\n imageCode.append(\" return captchas_image_loaded (image);\\n\");\n imageCode.append(\" }\\n\\n\");\n imageCode.append(\" function captchas_image_loaded (image)\\n\");\n imageCode.append(\" {\\n\");\n imageCode.append(\" if (!image.timeout) return true;\\n\");\n imageCode.append(\" window.clearTimeout (image.timeout);\\n\");\n imageCode.append(\" image.timeout = false;\\n\");\n imageCode.append(\" return true;\\n\");\n imageCode.append(\" }\\n\\n\");\n imageCode.append(\" var image = document.getElementById ('captchas.net');\\n\");\n imageCode.append(\" image.onerror = function() {return captchas_image_error (image);};\\n\");\n imageCode.append(\" image.onload = function() {return captchas_image_loaded (image);};\\n\");\n imageCode.append(\" image.timeout \\n\");\n imageCode.append(\" = window.setTimeout(\\n\");\n imageCode.append(\" \\\"captchas_image_error (document.getElementById ('captchas.net'))\\\",\\n\");\n imageCode.append(\" 10000);\\n\");\n imageCode.append(\" image.src = image.src;\\n\");\n imageCode.append(\" //--> \\n\");\n imageCode.append(\"</script>\\n\");\n return imageCode.toString();\n }", "title": "" }, { "docid": "6fb8802a98784f101af3dc9f8cf6a159", "score": "0.5210186", "text": "public void setImageID(int imageID) {\n this.imageID = imageID;\n }", "title": "" } ]
58d94b6ba4a1c7e60a5d10b90d7291d8
Line between l1p1 and l1p2
[ { "docid": "cbb81ac47358346791fffed2494b4923", "score": "0.0", "text": "protected double llix(double x1, double y1, double x2, double y2, double cy) {\n\t\tdouble a1 = y2 - y1;\r\n\t\tdouble b1 = x1 - x2;\r\n\t\tdouble c1 = a1 * x1 + b1 * y1;\r\n\t\t// Intersection point\r\n\t\tdouble x = (c1 - b1 * cy) / a1;\r\n\t\treturn x;\r\n\t}", "title": "" } ]
[ { "docid": "64bbbc2647cf42a5857f0d286106e14d", "score": "0.7621242", "text": "public static void drawLine2(int x1, int y1, int x2, int y2, TypeLine l) {\r\n\t\tint step = hyp(x1 - x2, y1 - y2);\r\n\t\tdouble countX = x1;\r\n\t\tdouble countY = y1;\r\n\t\tfor (int i = 0; i <= step; i++) {\r\n\t\t\t\r\n\t\t\tl.doLocationAction((int)countX, (int)countY);\r\n\t\t\t\r\n\t\t\tcountX += (double)(x2 - x1) / step;\r\n\t\t\tcountY += (double)(y2 - y1) / step;\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "6f85e94afb29f6934fc52eac4efc1160", "score": "0.75294554", "text": "public Line add(Line l1, Line l2) {\n\t\tPoint newPt1 = l1.getPoint1().add(l2.getPoint1());\n\t\tPoint newPt2 = l1.getPoint2().add(l2.getPoint2());\n\t\treturn new Line(newPt1, newPt2);\n\t\t\n\t}", "title": "" }, { "docid": "47efa543ad97337aa659ee7d114ed8d5", "score": "0.7505066", "text": "public Line (Point p1, Point p2) {\n\t\tthis.p1 = p1;\n\t\tthis.p2 = p2;\n\t}", "title": "" }, { "docid": "a80d291baf455e1edae41903c6ca6b86", "score": "0.7301839", "text": "public CParallelLine ( GeoPoint l1p1, GeoPoint l1p2,\r\n\t\t\t\t\t\t\t GeoPoint l2p1, GeoPoint l2p2)\r\n\t\t{\r\n\t\t\tthis.l1p1 = l1p1;\r\n\t\t\tthis.l1p2 = l1p2;\r\n\t\t\tthis.l2p1 = l2p1;\r\n\t\t\tthis.l2p2 = l2p2;\r\n\t\t}", "title": "" }, { "docid": "14e67652181f38988a4bff49bf9827c5", "score": "0.72497773", "text": "private static LatLng getLine(LatLng p1, LatLng p2) {\n\t\tif (Math.abs(p1.lng - p2.lng) <= Euclidean.EPS) return null;\n\t\tdouble m = - (p1.lat - p2.lat) / (p1.lng - p2.lng);\n\t\tdouble k = (Math.pow(p1.lat, 2) - Math.pow(p2.lat, 2)) / (2 * (p1.lng - p2.lng)) +\n\t\t\t\t(p1.lng + p2.lng) / 2;\n\t\treturn new LatLng(m, k);\n\t}", "title": "" }, { "docid": "217f1f2bafafd753bc67ce53af6ae156", "score": "0.70916337", "text": "protected void lineTo(float paramFloat1, float paramFloat2) {\n/* 1438 */ this.mPSStream.println(trunc(paramFloat1) + \" \" + trunc(paramFloat2) + \" L\");\n/* */ \n/* 1440 */ this.mPenX = paramFloat1;\n/* 1441 */ this.mPenY = paramFloat2;\n/* */ }", "title": "" }, { "docid": "08b8bb676d5d836139156bc4750cba29", "score": "0.703666", "text": "public Line( PApplet p, float x1, float y1, float x2, float y2 ) {\r\n\t this.p = p;\r\n a = new Vector2D( x1, y1 );\r\n b = new Vector2D( x2, y2 );\r\n color = p.color(0, 0, 255);\r\n }", "title": "" }, { "docid": "9e56aa2230cf92af05377a4e0a5e3e70", "score": "0.7026783", "text": "public Line(int x1, int y1, int x2, int y2){\n\t\tsuper(0,0,0);\n\t\tset_type(ObstructionType.LINE);\n\t\tp1 = new Point(x1, y1);\n\t\tp2 = new Point(x2, y2);\n\t}", "title": "" }, { "docid": "7b19e0d2a8798273e3c22cb651da275e", "score": "0.6985353", "text": "public Line(double x1, double y1, double x2, double y2) {\r\n this.start = new Point(x1, y1);\r\n this.end = new Point(x2, y2);\r\n this.slope = calculateSlope(this.start, this.end);\r\n }", "title": "" }, { "docid": "95676d70aa18b53a122f13913ad418ef", "score": "0.6912148", "text": "public CLine addIndependentLine(IPoint2D point1, IPoint2D point2) {\n\t\treturn addLine(point1, point2);\n\t}", "title": "" }, { "docid": "183eaa46339336731cabd6445e45e73a", "score": "0.6821614", "text": "public void Line(int x1, int y1, int x2, int y2)\n {\n Line2D shape = new Line2D.Double(x1, y1, x2, y2);\n colorsFill.add(null);\n shapes.add(shape);\n colors.add(LineColor);\n String text = \"LINE \"+dF.format((float)x1/canvas.getHeight())+\" \"+dF.format((float)y1/canvas.getHeight())\n +\" \"+dF.format((float)x2/canvas.getHeight())+\" \"+dF.format((float)y2/canvas.getHeight());\n VECText.add(text);\n canvas.repaint();\n }", "title": "" }, { "docid": "2bbb5b66f55a89bf8fbbd7901d764f98", "score": "0.67977273", "text": "public Line(Point firstPoint, Point secondPoint) {\r\n\t\tsuper(false);\r\n\t\tthis.firstPoint = firstPoint;\r\n\t\tthis.secondPoint = secondPoint;\t\r\n\t}", "title": "" }, { "docid": "72502f95a8b5564da0b2764ff489ee86", "score": "0.67577934", "text": "public CLine addLine(IPoint2D point1, IPoint2D point2) {\n CLine line = CLine.makeUnordered(point1, point2);\n if (!containsLine(line))\n _lines.add(line);\n addPoint(point1);\n addPoint(point2);\n return line;\n }", "title": "" }, { "docid": "70b0b76151bfb67fcfe99965e8ff1d20", "score": "0.6742649", "text": "public void gridLineProperty(ILocation l1, ILocation l2) {\n List<ILocation> line = l1.gridLineTo(l2);\n assertEquals(l1.gridDistanceTo(l2), line.size());\n ILocation last = l1;\n for (ILocation l : line) {\n assertEquals(1, last.gridDistanceTo(l));\n last = l;\n }\n assertEquals(l2, last);\n }", "title": "" }, { "docid": "50d21ddc6d4de01db874db3822be1bce", "score": "0.673172", "text": "public NscLine(int x1, int y1, int x2, int y2) {\n setEndPoints(x1, y1, x2, y2);\n setForeground(Color.black);\n }", "title": "" }, { "docid": "60b8129cc3c9f0eb0fb9307ddfe7a3fc", "score": "0.6717266", "text": "public Line() {\n p1 = new Point();\n p2 = new Point();\n }", "title": "" }, { "docid": "d212043ae5f13e44f286657c54da5240", "score": "0.66947436", "text": "public Point intersectionWith(Line other) {\r\n // Check if the two lines are points.\r\n if ((isApoint(this.start, this.end)) && isApoint(other.start, other.end)) {\r\n // If the points equal\r\n if (this.equals(other)) {\r\n // return the point.\r\n return other.start;\r\n }\r\n // If it isn't the same point return null.\r\n return null;\r\n // If the first line is a point.\r\n } else if (isApoint(this.start, this.end)) {\r\n // Check if the point exits on the other line.\r\n if (other.pointExists(this.start)) {\r\n // Return the point.\r\n return this.start;\r\n }\r\n // Else the point is not on the line.\r\n return null;\r\n // If the other line is a point.\r\n } else if (isApoint(other.start, other.end)) {\r\n // Check if the point exits on the first line.\r\n if (this.pointExists(other.start)) {\r\n // Return the point.\r\n return other.start;\r\n }\r\n // Else the point is not on the line.\r\n return null;\r\n // if the lines are parallel\r\n } else if (this.slope == other.slope) {\r\n return (null);\r\n // if one is parallel to axis x and one to axis y\r\n } else if ((this.slope == null) && (other.slope != 0)) {\r\n return (verticalIntersection(new Line(this.start, this.end), new Line(other.start, other.end)));\r\n } else if ((other.slope == null) && (this.slope != 0)) {\r\n return (verticalIntersection(new Line(other.start, other.end), new Line(this.start, this.end)));\r\n\r\n } else if ((this.slope == null) && (other.slope == 0)) {\r\n /* Return the point of intersection or\r\n null if it isn't exits.*/\r\n return (vertical(new Line(this.start, this.end), new Line(other.start, other.end)));\r\n // if one is parallel to axis x and one to axis y\r\n } else if ((this.slope == 0) && (other.slope == null)) {\r\n /* Return the point of intersection or\r\n null if it isn't exits.*/\r\n return (vertical(new Line(other.start, other.end), new Line(this.start, this.end)));\r\n }\r\n // The slope of the first line.\r\n double a = this.slope;\r\n // Calculate b from y=ax+b.\r\n double b = this.start.getY() - a * this.start.getX();\r\n // The slope of the other line.\r\n double c = other.slope();\r\n // Calculate b from y=cx+d.\r\n double d = other.start.getY() - c * other.start.getX();\r\n // Find the coordinate of the intersection.\r\n double x = ((d - b) / (a - c));\r\n double y = (a * x) + b;\r\n // Create the new point.\r\n Point newPoint = new Point(x, y);\r\n // Check if the point is om both sections.\r\n if ((this.pointExists(newPoint))\r\n && (other.pointExists(newPoint))) {\r\n // If so return the point.\r\n return newPoint;\r\n }\r\n // There is no intersection.\r\n return null;\r\n }", "title": "" }, { "docid": "c395df9672a5284cc1fc70200b25a8b6", "score": "0.6694167", "text": "public TGLineOp(TGPoint pt1, TGPoint pt2, Color color, int width, float[] pattern, int lineCap) {\r\n if (pt1.xDoubleValue() <= pt2.xDoubleValue()) {\r\n this.endPt1 = pt1;\r\n this.endPt2 = pt2;\r\n } else {\r\n this.endPt1 = pt2;\r\n this.endPt2 = pt1;\r\n }\r\n this.penColor = color;\r\n this.penWidth = width;\r\n this.penPattern = pattern;\r\n this.typeLineCap = lineCap;\r\n }", "title": "" }, { "docid": "40cdd3935a75091670a2f1273a821572", "score": "0.66660035", "text": "public void drawOneLine(int x1, int y1, int x2, int y2) {\n\n x1 = x1 + size.width / 2;\n x2 = x2 + size.width / 2;\n\n y1 = size.height / 2 - y1;\n y2 = size.height / 2 - y2;\n\n g2d.drawLine(x1, y1, x2, y2);\n }", "title": "" }, { "docid": "6e52e4d5d13f68749b80791ed72380ab", "score": "0.6662011", "text": "void drawLine(int x1, int y1, int x2, int y2);", "title": "" }, { "docid": "a8e18e059bc404e3eeeb4694510b4eb2", "score": "0.66592884", "text": "MyLine(int x1, int y1, int x2, int y2, MyColor color){\n\t\tsuper(color);\n\t\tthis.x1=x1;\n\t\tthis.x2=x2;\n\t\tthis.y1=y1;\n\t\tthis.y2=y2;\n\t}", "title": "" }, { "docid": "0b183721fde8ca3ef286a7f5f03b3615", "score": "0.6655768", "text": "public Line(double x1, double y1, double x2, double y2) {\r\n\t\tsuper(x1, y1);\r\n\t\tthis.x2 = x2;\r\n\t\tthis.y2 = y2;\r\n\t\t\r\n\t}", "title": "" }, { "docid": "1e2764ddf57c8c0f36de7a41bfa601e0", "score": "0.6650859", "text": "public Line(){\n\t\tsuper(0,0,0);\n\t\tset_type(ObstructionType.LINE);\n\t\tp1 = new Point();\n\t\tp2 = new Point();\n\t}", "title": "" }, { "docid": "224a20afeabfc386819c7d3878b28fb7", "score": "0.66160774", "text": "public void addLine(Line l1) {\n\t\tlines[index] = l1;\n\t\tindex++;\n\t}", "title": "" }, { "docid": "a7edf0ea795822bd013ca6593f642ddf", "score": "0.6606759", "text": "LinePoint( LinePoint lp )\n { \n x = lp.x;\n y = lp.y;\n x1 = lp.x1;\n y1 = lp.y1;\n x2 = lp.x2;\n y2 = lp.y2;\n has_cp = false;\n mNext = null;\n mPrev = null;\n }", "title": "" }, { "docid": "49882305e32be17d9ab57813dbeb3bc3", "score": "0.65765697", "text": "public void drawLine(int x1, int y1, int x2, int y2, int color);", "title": "" }, { "docid": "9d5324bfa5ca7ec2a52550f60ff621aa", "score": "0.65674186", "text": "Line(Point point1, Point point2, Color strokeColor, double strokeWidth) {\n this.point1 = point1;\n this.point2 = point2;\n this.strokeColor = strokeColor;\n this.strokeWidth = strokeWidth;\n }", "title": "" }, { "docid": "e2480fe4f26fc78211ddfcbb31f2cb05", "score": "0.6526602", "text": "private LineView getIntersectingLine(int x1, int y1, int x2, int y2) {\n\t\tfor (int i = 0; i < lines.size(); i++) {\n\t\t\tPoint p1 = lines.get(i).getPoint(time, 0);\n\t\t\tPoint p2 = null;\n\t\t\tfor (int j = 1; j < lines.get(i).getArraySize(time); j++) {\n\t\t\t\tp2 = lines.get(i).getPoint(time, j);\n\t\t\t\tint x3 = (int)p1.getX();\n\t\t\t\tint y3 = (int)p1.getY();\n\t\t\t\tint x4 = (int)p2.getX();\n\t\t\t\tint y4 = (int)p2.getY();\n\t\t\t\tif (Line2D.linesIntersect(x1, y1, x2, y2, x3, y3, x4, y4)) {\n\t\t\t\t\treturn lines.get(i);\n\t\t\t\t}\n\t\t\t\tp1 = p2;\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}", "title": "" }, { "docid": "eb4d3d5cf80cef63beed4eb9a2ee00ca", "score": "0.6517763", "text": "public void drawLine(int x1, int y1, int x2, int y2) {\r\n if (!prePrimitiveWork()) {\r\n return;\r\n }\r\n x1 += translateX;\r\n y1 += translateY;\r\n x2 += translateX;\r\n y2 += translateY;\r\n g.drawLine(x1, y1, x2, y2);\r\n postPrimitiveWork();\r\n }", "title": "" }, { "docid": "e97d23e2632d455e0ce989e759647a78", "score": "0.64648056", "text": "public Position intersectsAt(Line l)\r\n\t\t{\r\n\t\t\tdouble x, y, a1, a2, b1, b2;\r\n\r\n\t\t\tif(y2 == y1 && l.y2 == l.y1)\r\n\t\t\t{\r\n\t\t\t\treturn null; // horizontal parallel\r\n\t\t\t}\r\n\t\t\tif(x2 == x1 && l.x2 == l.x1)\r\n\t\t\t{\r\n\t\t\t\treturn null; // vertical parallel\r\n\t\t\t}\r\n\r\n\t\t\t// Find the point of intersection of the lines extended to infinity\r\n\t\t\tif(x1 == x2 && l.y1 == l.y2)\r\n\t\t\t{ // perpendicular\r\n\t\t\t\tx = x1;\r\n\t\t\t\ty = l.y1;\r\n\t\t\t}\r\n\t\t\telse if(y1 == y2 && l.x1 == l.x2)\r\n\t\t\t{ // perpendicular\r\n\t\t\t\tx = l.x1;\r\n\t\t\t\ty = y1;\r\n\t\t\t}\r\n\t\t\telse if(y2 == y1 || l.y2 == l.y1)\r\n\t\t\t{ // one line is horizontal\r\n\t\t\t\ta1 = (y2 - y1) / (x2 - x1);\r\n\t\t\t\tb1 = y1 - a1 * x1;\r\n\t\t\t\ta2 = (l.y2 - l.y1) / (l.x2 - l.x1);\r\n\t\t\t\tb2 = l.y1 - a2 * l.x1;\r\n\r\n\t\t\t\tif(a1 == a2)\r\n\t\t\t\t{\r\n\t\t\t\t\treturn null; // parallel\r\n\t\t\t\t}\r\n\t\t\t\tx = (b2 - b1) / (a1 - a2);\r\n\t\t\t\ty = a1 * x + b1;\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t{\r\n\t\t\t\ta1 = (x2 - x1) / (y2 - y1);\r\n\t\t\t\tb1 = x1 - a1 * y1;\r\n\t\t\t\ta2 = (l.x2 - l.x1) / (l.y2 - l.y1);\r\n\t\t\t\tb2 = l.x1 - a2 * l.y1;\r\n\r\n\t\t\t\tif(a1 == a2)\r\n\t\t\t\t{\r\n\t\t\t\t\treturn null; // parallel\r\n\t\t\t\t}\r\n\t\t\t\ty = (b2 - b1) / (a1 - a2);\r\n\t\t\t\tx = a1 * y + b1;\r\n\t\t\t}\r\n\r\n\t\t\t// Check that the point of intersection is within both line segments\r\n\t\t\tif(!between(x, x1, x2))\r\n\t\t\t{\r\n\t\t\t\treturn null;\r\n\t\t\t}\r\n\t\t\tif(!between(y, y1, y2))\r\n\t\t\t{\r\n\t\t\t\treturn null;\r\n\t\t\t}\r\n\t\t\tif(!between(x, l.x1, l.x2))\r\n\t\t\t{\r\n\t\t\t\treturn null;\r\n\t\t\t}\r\n\t\t\tif(!between(y, l.y1, l.y2))\r\n\t\t\t{\r\n\t\t\t\treturn null;\r\n\t\t\t}\r\n\r\n\t\t\treturn new Position(x, y);\r\n\t\t}", "title": "" }, { "docid": "194453ad4b76ad23e21ec9bc8c322bc2", "score": "0.6453155", "text": "public Linea(int x1,int y1,int x2, int y2)\n {\n isVisible=true;\n this.x1=x1;\n this.y1=y1;\n this.x2=x2;\n this.y2=y2;\n color=\"black\";\n makeVisible();\n }", "title": "" }, { "docid": "9be8eb5ad5929574e185cb755260bf7b", "score": "0.64382505", "text": "public void createlines()\n\t{\n\t\t a=y1-y2;\n\t b=x2-x1;\n\t c=(((x1-x2)*(y1)) + (y2-y1)*(x1));\n\t System.out.println(\"a , b ,c:\" +a +\" \" +b +\" \" +c);\n\t}", "title": "" }, { "docid": "a77fe83d1c6f3f56d1e2c553bb47d53e", "score": "0.64303994", "text": "public static Line line(Point a, Point b) {\n\t\treturn a.compareTo(b) == 0 ? null : new Line(a.x, a.y, b.x, b.y);\n\t}", "title": "" }, { "docid": "6d3160d26c2a5f75a36ceac8a481523e", "score": "0.6418575", "text": "public Point verticalIntersection(Line line1, Line line2) {\r\n // The slope of the line.\r\n double a = line2.slope();\r\n // b from y=ax+b.\r\n double b = -a * line2.start.getX() + line2.start.getY();\r\n // y from y=ax+b.\r\n double y = line1.start.getX() * a + b;\r\n // Check if the point exists on the line1.\r\n if ((((line2.start.getX() <= line1.start.getX()) && (line1.start.getX() <= line2.end.getX()))\r\n || ((line2.end.getX() <= line1.start.getX()) && (line1.start.getX() <= line2.start.getX())))\r\n && (((line2.start.getY() <= y) && (y <= line2.end.getY()))\r\n || ((line2.end.getY() <= y) && (y <= line2.start.getY())))\r\n && (((line1.start.getY() <= y) && (y <= line1.end.getY()))\r\n || ((line1.end.getY() <= y) && (y <= line1.start.getY())))) {\r\n return (new Point(line1.start.getX(), y));\r\n }\r\n // If the point does'nt exists return null.\r\n return null;\r\n }", "title": "" }, { "docid": "42be33e3f2daef00fe711ddcef58c056", "score": "0.6400502", "text": "public Model addL2(Line l){\r\n links.add(l);\r\n this.setChanged();\r\n this.notifyObservers(null); // parametro no usado por ahora \r\n return this;\r\n \r\n }", "title": "" }, { "docid": "6615c63cd90a931a2b431db81a9f157d", "score": "0.63949245", "text": "@Override\r\n\t\tpublic double calculateError() {\n\t\t\tdouble m1, m2;\r\n\t\t\t// the values of the line function\r\n\t\t\tdouble res1, res2;\r\n\t\t\t\r\n\t\t\t// the coordinates of the point and line segment\r\n\t\t\tdouble line1X, line1Y;\r\n\t\t\tdouble line2X, line2Y;\r\n\t\t\tdouble pointX, pointY;\r\n\t\t\t\r\n\t\t\tpointX = p1.getX();\r\n\t\t\tpointY = p1.getY();\r\n\t\t\tline1X = lp1.getX();\r\n\t\t\tline1Y = lp1.getY();\r\n\t\t\tline2X = lp2.getX();\r\n\t\t\tline2Y = lp2.getY();\r\n\t\t\t\r\n\t\t\t// calculate slopes\r\n\t\t\tm1 = ( line1Y - line2Y) / ( line1X - line2X);\r\n\t\t\tm2 = -1 / m1;\r\n\t\t\t\r\n\t\t\t// first, find which side the point is on\r\n\t\t\t// calculate the results for the perpendicular functions\r\n\t\t\tres1 = pointY - m2 * ( pointX - line1X) - line1Y;\r\n\t\t\tres2 = pointY - m2 * ( pointX - line2X) - line2Y;\r\n\t\t\t\r\n\t\t\t// decide where the point is:\r\n\t\t\tif ( res1 * res2 > 0) // outside the perpendiculars\r\n\t\t\t{\r\n\t\t\t\t// compute distance to both points\r\n\t\t\t\tdouble dist1, dist2;\r\n\t\t\t\t\r\n\t\t\t\tdist1 = ( pointX - line1X) * ( pointX - line1X) + ( pointY - line1Y) * ( pointY - line1Y);\r\n\t\t\t\tdist2 = ( pointX - line2X) * ( pointX - line2X) + ( pointY - line2Y) * ( pointY - line2Y);\r\n\t\t\t\t\r\n\t\t\t\t// return the distance to the closest point\r\n\t\t\t\treturn Math.min( dist1, dist2) / 10;\r\n\t\t\t}\r\n\t\t\telse // between the perpendiculars\r\n\t\t\t{\r\n\t\t\t\t// return the distance to the infinite line\r\n\t\t\t\treturn ( m1 * ( pointX - line1X) + line1Y - pointY) * ( m1 * ( pointX - line1X) + line1Y - pointY)\r\n\t\t\t\t\t\t / ( ( m1 * m1 + 1) * 10);\r\n\t\t\t}\r\n\t\t}", "title": "" }, { "docid": "3236bbc0a0dce6dcdd3e55b4619f14f8", "score": "0.6375089", "text": "public void drawLine( float x1, float y1, float x2, float y2 ) {\n\n\t\tline2D.setLine( x1, y1, x2, y2 );\n\t\tg2.draw( line2D );\n\t}", "title": "" }, { "docid": "7d374536589db110ecc85ad99a823715", "score": "0.63243055", "text": "void setLnL(org.openxmlformats.schemas.drawingml.x2006.main.CTLineProperties lnL);", "title": "" }, { "docid": "a9167cf6447b309ee6b9deae9ac07dae", "score": "0.6320244", "text": "public synchronized static boolean checkCollision(Line l1, Line l2) {\n double y1, y2, x1, x2, m1, m2;\n\n //Line One properties\n x1 = l1.getPnt1().getX();\n y1 = l1.getPnt1().getY();\n try {\n m1 = l1.getSlope();\n } catch (ArithmeticException arithmeticException) {\n m1 = Double.MAX_VALUE;\n }\n\n //Line Two Properties\n x2 = l2.getPnt1().getX();\n y2 = l2.getPnt1().getY();\n try {\n m2 = l2.getSlope();\n } catch (ArithmeticException arithmeticException) {\n m2 = Double.MAX_VALUE;\n }\n\n\n //check parallel lines\n if (m1 - m2 == 0) {\n //if b is same...\n //then this is the same line, now check for overlap in domain\n if (y1 - m1 * x1 == y2 - m2 * x2 && l1.checkBounds(y2) && l2.checkBounds(y1)) {\n return true;\n } else {\n //otherwise it time to kill this sucker.\n return false;\n }\n }\n\n //calc intersection x\n double x = (y2 - y1 + m1 * x1 - m2 * x2) / (m1 - m2);\n\n if (SASLib.Header._DEBUG) {\n System.out.println(\"Values : y1 \" + y1 + \", y2 \" + y2 + \", x1 \" + x1 + \", x2 \" +\n x2 + \", m1 \" + m1 + \", m2 \" + m2);\n System.out.println(\"The X intersevtion value is \" + x + \" l1 y \" +\n l1.evatulate(x) + \" l2 y \" + l2.evatulate(x));\n }\n\n if (l1.checkBounds(x) && l2.checkBounds(x)) {\n return true;\n }\n\n return false;\n }", "title": "" }, { "docid": "b16fdd67f63a078525f3d657304bb041", "score": "0.6319928", "text": "protected abstract void drawConnectingLine(Canvas canvas, PointF firstPoint, PointF secondPoint);", "title": "" }, { "docid": "9784c0b0a49f560c59733355b3e456f8", "score": "0.63163", "text": "public void drawLine(WritableRaster raster, Point p1, Point p2, int[] colour) {\n\t\tint x0 = p1.x;\n\t\tint y0 = p1.y;\n\t\tint x1 = p2.x;\n\t\tint y1 = p2.y;\n\t\tint dx = x1 - x0;\n\t\tint dy = y1 - y0;\n\t\tdrawPixel(raster, new Point(x0, y0), colour);\n\t\tif (dx != 0) {\n\t\t\tfloat m = (float) dy / (float) dx;\n\t\t\tfloat b = y0 - m * x0;\n\t\t\tdx = (x1 > x0) ? 1 : -1;\n\t\t\twhile (x0 != x1) {\n\t\t\t\tx0 += dx;\n\t\t\t\ty0 = Math.round(m * x0 + b);\n\t\t\t\tdrawPixel(raster, new Point(x0, y0), colour);\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "51bf05f998564f01bfeaa5bb9986e778", "score": "0.6293392", "text": "private static void createLine(SolarSystem solarSystem1,\n SolarSystem solarSystem2, Pane pane) {\n double system1Size = solarSystem1.getSize();\n double system2Size = solarSystem2.getSize();\n Line connection = new Line(solarSystem1.getX() + system1Size,\n solarSystem1.getY() + system1Size, solarSystem2.getX() + system2Size,\n solarSystem2.getY() + system2Size);\n connection.setStroke(Color.web(LINE_TINT_COLOR, 1));\n pane.getChildren().add(0, connection);\n }", "title": "" }, { "docid": "9030502989dc44695ee19fe584a1e16a", "score": "0.6279236", "text": "public TGLineOp(TGPoint pt1, TGPoint pt2, Color color, int width) {\r\n this(pt1, pt2, color, width, null);\r\n }", "title": "" }, { "docid": "9f8597f1ebaa9a8dc0c24ed1685d123b", "score": "0.62638587", "text": "public Line(Point start, Point end) {\r\n\r\n this.start = start;\r\n this.end = end;\r\n this.slope = calculateSlope(start, end);\r\n }", "title": "" }, { "docid": "732e2f584fc5e303b6b4fbb11e2a4a64", "score": "0.62453", "text": "public void drawLine(int x1, int y1, int x2, int y2) {\r\n\t\tcG.drawLine(x1, y1, x2, y2);\r\n\t}", "title": "" }, { "docid": "08e1b3d5936fe5143a014ad94b4e9127", "score": "0.62346965", "text": "Line(long a, long b, long m) {\n this.a = a;\n this.b = b;\n this.m = m;\n }", "title": "" }, { "docid": "0c5100fb3d9570419bc5fd4f2fc2e576", "score": "0.62337697", "text": "public static double shortestDistanceToLineSegment(ILocated2D p1, ILocated2D l1, ILocated2D l2) {\n\t\treturn shortestDistanceToLineSegment(p1.getX(), p1.getY(), l1.getX(), l2.getX(), l1.getY(), l2.getY());\n\t}", "title": "" }, { "docid": "120691819055c5bef98cecd65f6c26c5", "score": "0.6225222", "text": "protected abstract void lineTo(final float x, final float y);", "title": "" }, { "docid": "d02e2a540490dd3292a1c9209439ee50", "score": "0.62217724", "text": "@Override\n public void viewShape(GraphicsContext graphics) {\n GraphicsFacade.viewLine(graphics, point1, point2, strokeColor, strokeWidth);\n\n }", "title": "" }, { "docid": "9264a5ea2518175b5a0d3272d7d2ab9d", "score": "0.61828953", "text": "@Override\r\n\tpublic void execute(GraphicsContext g) {\r\n\t\tint x1 = this.firstPoint.getX();\r\n\t\tint y1 = this.firstPoint.getY();\r\n\t\tint x2 = this.secondPoint.getX();\r\n\t\tint y2 = this.secondPoint.getY();\r\n\t\tg.strokeLine(x1, y1, x2, y2);\r\n\t}", "title": "" }, { "docid": "b984e7550d3bcca72d3f90d8b7a44922", "score": "0.6182697", "text": "public static void drawLine(double x1, double y1, double x2, double y2) {\n theUI.canvas.draw(new Line2D.Double(x1, y1, x2, y2));\n }", "title": "" }, { "docid": "24f361ad4014e12fe239f7609d7a8b89", "score": "0.61543626", "text": "public TGLineOp(TGPoint pt1, TGPoint pt2, Color color, int width, int lineCap) {\r\n this(pt1, pt2, color, width, null, lineCap);\r\n }", "title": "" }, { "docid": "1340b0b1555fb054a99d8211041062ce", "score": "0.6148162", "text": "public void lineTo(int x, int y){\n //1: draw line\n int point[] = {1, x, y};\n path.add(point);\n }", "title": "" }, { "docid": "c9df67108722cd268f8c6a3d0ca02e1d", "score": "0.61328566", "text": "public Point vertical(Line line1, Line line2) {\r\n // If the point of the intersection exits\r\n if ((line1.pointExists(new Point(line1.start.getX(), line2.start.getY())))\r\n && (line2.pointExists(new Point(line1.start.getX(), line2.start.getY())))) {\r\n //return the new point\r\n return (new Point(line1.start.getX(), line2.start.getY()));\r\n }\r\n //If the point doesn't exists return null.\r\n return null;\r\n }", "title": "" }, { "docid": "65f96eb8217177b7c3eda5dad57cf857", "score": "0.6124243", "text": "public Point intersect(Line l) {\n\t\tdouble d = a*l.b - b*l.a;\n\t\treturn d == 0 ? null : new Point ((c*l.b - b*l.c) / d, (a*l.c - c*l.a) / d);\n\t}", "title": "" }, { "docid": "5c27a1dd1257f137702f4d76e6ea2e71", "score": "0.61188275", "text": "public static JFILine startToEndLine(ArrayList<Point2D> pointSet){\r\n float a,b,c;\r\n \r\n Point2D firstPoint = pointSet.get(0);\r\n Point2D lastPoint = pointSet.get(pointSet.size()-1);\r\n \r\n if (firstPoint.getX() == lastPoint.getX()){ //Vertical line\r\n a = (float) 1.0;\r\n b = (float) 0.0;\r\n c = (float) -firstPoint.getX();\r\n }\r\n else if (firstPoint.getY() == lastPoint.getY()){//Horizontal line\r\n \r\n a = (float) 0.0;\r\n b = (float) 1.0;\r\n c = (float) -firstPoint.getY();\r\n }\r\n else{\r\n a = (float) 1.0;\r\n b = (float)((float) (lastPoint.getX()-firstPoint.getX())/(firstPoint.getY()-lastPoint.getY()));\r\n c = (float)((float) -a*firstPoint.getX()-b*firstPoint.getY());\r\n }\r\n if (c < 0) {\r\n a = -a;\r\n b = -b;\r\n c = -c;\r\n } \r\n JFILine regressionLine = new JFILine(a,b,c);\r\n return regressionLine;\r\n }", "title": "" }, { "docid": "1a21f9ee8430d1de6cd227f28141aef7", "score": "0.6110667", "text": "public void paintLine(Graphics g) {\r\n\r\n\t\tconnect();\r\n\r\n\t\tLine2D.Double line = new Line2D.Double(getX1(), getY1(), getX2(),\r\n\t\t\t\tgetY2());\r\n\t\tGraphics2D g2 = (Graphics2D) g;\r\n\t\tg2.setRenderingHint(RenderingHints.KEY_ANTIALIASING,\r\n\t\t\t\tRenderingHints.VALUE_ANTIALIAS_ON);\r\n\t\tg2.draw(line);\r\n\t}", "title": "" }, { "docid": "a4a20df3dcbff6d5845908f713388d73", "score": "0.61049503", "text": "private CPoint cutLineLine(CPoint p1,CPoint p2,CPoint p3,CPoint p4) {\n\tdouble a=p2.x-p1.x;\n\tdouble b=p3.x-p4.x;\n\tdouble c=p2.y-p1.y;\n\tdouble d=p3.y-p4.y;\n\tdouble e=p3.x-p1.x;\n\tdouble f=p3.y-p1.y;\n\tdouble det=a*d-b*c;\n\n\tif (det==0) {\n\t return null;\n\t} else {\n\t double t=1/det*(d*e-b*f);\n\t return new CPoint((int) (p1.x+t*(p2.x-p1.x)),\n\t\t\t (int) (p1.y+t*(p2.y-p1.y)));\n\t}\n }", "title": "" }, { "docid": "b3c0744d4fb085ab49441b362b8c040d", "score": "0.60939074", "text": "static public Polygon line(float width, float x1, float y1, float x2, float y2) {\n float halfWidth = 0.5f * width;\n float length = (float) Math.sqrt((x2 - x1) * (x2 - x1) + (y2 - y1) * (y2 - y1));\n if (length > MathU.epsilon) {\n float ex = (x2 - x1) / length * halfWidth;\n float ey = (y2 - y1) / length * halfWidth;\n float[] coordinates = {x1 - ey, y1 + ex, x1 + ey, y1 - ex, x2 + ey, y2 - ex, x2 - ey, y2 + ex};\n return new Polygon(coordinates);\n }\n return null;\n }", "title": "" }, { "docid": "22c587d432b32e14c70ec598d6241ceb", "score": "0.60590893", "text": "LWCLocationSolidLine createLWCLocationSolidLine();", "title": "" }, { "docid": "f758766cf58f47b9bbc4dd7b0a692ec6", "score": "0.604318", "text": "public static double getLineSlope(double x1, double y1, double x2, double y2)\r\n {\r\n double div = (x2 - x1);\r\n \r\n if(div == 0)\r\n {\r\n div += 1;\r\n }\r\n \r\n return ((y2 - y1) / (div));\r\n }", "title": "" }, { "docid": "7765f6bc8e26f0dbb51fb255698f3585", "score": "0.60299677", "text": "org.openxmlformats.schemas.drawingml.x2006.main.CTLineProperties addNewLnL();", "title": "" }, { "docid": "c36a6cbfcbf920acc4b6172797525ee2", "score": "0.60067797", "text": "public abstract Point2D getIntersection(Line2D other);", "title": "" }, { "docid": "53a8dc61598edd1866b9c1b9f181d234", "score": "0.60044515", "text": "@Override\n\tpublic void LineTo(Point3D p) {\n\n\t}", "title": "" }, { "docid": "9599c43c8bc3ca13383a28a32cb999e4", "score": "0.5997664", "text": "private boolean isSameLine(PointT startP, PointT endP){\n mHorizontal = false;\n mVertical = false;\n int startRow = getIndex(startP.getY());\n int endRow = getIndex(endP.getY());\n int startColum = getIndex(startP.getX());\n int endColum = getIndex(endP.getX());\n if(startRow == endRow && !(startColum == endColum)) mHorizontal = true;\n if(startColum == endColum && !(startRow == endRow)) mVertical = true;\n return mHorizontal || mVertical;\n }", "title": "" }, { "docid": "461906e74ae628d20013ee62d71b0b42", "score": "0.5982176", "text": "private Polyline addPolylineBetweenLegEndpoints(Leg leg, int width) {\n List<LatLng> latLngs = new ArrayList<LatLng>();\n latLngs.add(leg.getBegin().getLatLng());\n latLngs.add(leg.getEnd().getLatLng());\n // add just a straight line between the two points\n Polyline line = drawPolyLine(latLngs,\n Color.parseColor(\"#AA\" + leg.getMainColor()), width);\n return line;\n }", "title": "" }, { "docid": "3eb24faac9743842e4fa49d290f7e0ec", "score": "0.5976926", "text": "public Line(Point p, Point q, double distance) {//constructor dari kelas\n this.p = p;\n this.q = q;\n this.distance = distance;\n }", "title": "" }, { "docid": "bc749cce88ddf1a003cb4c6d28ba661c", "score": "0.59686553", "text": "@Override\n\tpublic void drawShape(GraphicsContext gc){\n\t\tgc.setStroke(Color.WHITE);\n\t\tgc.setLineWidth(3.0);\n\t\tgc.strokeLine(p1.getX(), p1.getY(), p2.getX(), p2.getY());\n\t}", "title": "" }, { "docid": "07e8f354ab260d5743811b1a181885f3", "score": "0.5939189", "text": "private float getLineThroughOriginCrossProduct(Line line) {\n\t\tfloat thisY = Constants.WND_HEIGHT - y,\n\t\t\t\tlineY1 = Constants.WND_HEIGHT - line.getY1(),\n\t\t\t\tlineY2 = Constants.WND_HEIGHT - line.getY2();\n\t\t// move line to origin\n\t\tLine lineThroughOrigin = new Line(\n\t\t\t\t0,\n\t\t\t\t0,\n\t\t\t\tline.getX2() - line.getX1(),\n\t\t\t\tlineY2 - lineY1\n\t\t);\n\t\tVector2 adjustedPoint = new Vector2(x - line.getX1(), thisY - lineY1); // move point relative to the adjusted line\n\t\tVector2[] lineEndPoints = lineThroughOrigin.getEndPoints();\n\t\tfloat cross = lineEndPoints[1].cross(adjustedPoint); \t// cross product of the second line endpoint and \n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// the point in question adjusted relative to it\n\t\treturn cross;\n\t}", "title": "" }, { "docid": "ee4eda8ffae0b53fc006d2fb6e65a9fe", "score": "0.59233445", "text": "private GLine createLine(int i){\n int x = GRAPH_SIDE_MARGIN + (getWidth()/12 * i);\n int y = getHeight();\n int x1= x;\n int y1= 0;\n \n GLine line = new GLine(x, y, x1, y1);\n return line;\n }", "title": "" }, { "docid": "f1498e56f6e2dc5b772043cbc26cd96d", "score": "0.59225875", "text": "private void drawLine(Line aLine, Graphics g) {\n Point2D startPoint = aLine.getStart();\n Point2D endPoint = aLine.getEnd();\n g.drawLine((int) startPoint.getX(), (int) startPoint.getY(),\n (int) endPoint.getX(), (int) endPoint.getY());\n }", "title": "" }, { "docid": "cdb717ae730f0131a9bef02ee5a40f7a", "score": "0.5914285", "text": "org.openxmlformats.schemas.drawingml.x2006.main.CTLineProperties getLnL();", "title": "" }, { "docid": "580d848fbc044e73b12b9751f88e54a5", "score": "0.5894341", "text": "boolean LineOfSight(point2 p1, point2 p2, point2 direction)\r\n {\r\n //bounding box testing; seems to be a cut the cost to 60%\r\n if (p1.x > largestX && p2.x > largestX)\r\n {\r\n return true;\r\n }\r\n if (p1.y > largestY && p2.y > largestY)\r\n {\r\n return true;\r\n }\r\n if (p1.x < smallestX && p2.x < smallestX)\r\n {\r\n return true;\r\n }\r\n if (p1.y < smallestY && p2.y < smallestY)\r\n {\r\n return true;\r\n }\r\n\r\n if (vertices.size() == 0)\r\n { //It's empty, so it can block nothing.\r\n return true;\r\n }\r\n else\r\n { \r\n \t//TODO: a line can actually intersect with an obstacle in two places. We should return the closest direction\r\n \t//instead of the first one detected.\r\n point2 previousPoint = vertices.get(vertices.size() - 1);\r\n for (int i = 0; i < vertices.size(); i++)\r\n {\r\n if (HasIntersection(p1, p2, vertices.get(i), previousPoint))\r\n {\r\n //direction = point2.minus(vertices.get(i), previousPoint);\r\n direction.x = point2.minus(vertices.get(i), previousPoint).x;\r\n direction.y = point2.minus(vertices.get(i), previousPoint).y;\r\n return false;\r\n }\r\n else\r\n {\r\n previousPoint = vertices.get(i);\r\n }\r\n }\r\n\r\n return true;\r\n }\r\n }", "title": "" }, { "docid": "56a73d14aee521efe2081a087f6a4eda", "score": "0.587385", "text": "public Line(int x1, int y1, int x2, int y2, Color c, String name) {\n this.c = c;\n this.x1 = x1;\n this.y1 = y1;\n this.x2 = x2;\n this.y2 = y2;\n\n this.name = name;\n }", "title": "" }, { "docid": "87c10aab7b66a6746ce8e132e9c43ddc", "score": "0.58719003", "text": "public Double calculateSlope(Point start1, Point end1) {\r\n // if the line vertical to axis x or that the line is a point.\r\n if ((start1.equals(end1)) || (start1.getX() == end1.getX())) {\r\n // there is no slope.\r\n return null;\r\n }\r\n // Calculate the slope and return it.\r\n return ((end.getY() - start.getY()) / (end.getX() - start.getX()));\r\n }", "title": "" }, { "docid": "e49404f4955c091775f13f963f482747", "score": "0.5871601", "text": "protected CLine addIndependentLine(CLine line) {\n return addLine(line);\n }", "title": "" }, { "docid": "31c0b076c3a55bdaed6455cc97e90d40", "score": "0.5869256", "text": "@Override\n\t\tpublic Point2D getIntersection(Line2D other)\n\t\t{\n\t\t\treturn null;\n\t\t}", "title": "" }, { "docid": "31c0b076c3a55bdaed6455cc97e90d40", "score": "0.5869256", "text": "@Override\n\t\tpublic Point2D getIntersection(Line2D other)\n\t\t{\n\t\t\treturn null;\n\t\t}", "title": "" }, { "docid": "31c0b076c3a55bdaed6455cc97e90d40", "score": "0.5869256", "text": "@Override\n\t\tpublic Point2D getIntersection(Line2D other)\n\t\t{\n\t\t\treturn null;\n\t\t}", "title": "" }, { "docid": "260373b554e0b080e7cfc0f53abf7b55", "score": "0.5867842", "text": "public void test_determine_linesegment_intersection_with_line()\r\n\t\t{\n\t\t\tVector2d p1 = new Vector2d(0,0), p2 = new Vector2d(2,2), a = new Vector2d(1,-1);\r\n\t\t\tVector2d v = new Vector2d(0,1);\r\n\t\t\tPair<Vector2d,Boolean> intersect = determine_linesegment_intersection_with_line(p1, p2, a, v);\r\n\t\t\toutput(intersect, \"((1.0, 1.0), true)\");\r\n\r\n\t\t\t// Test a limit case variation on it by shortening the line segment.\r\n\t\t\tp2 = new Vector2d(1,1);\r\n\t\t\tintersect = determine_linesegment_intersection_with_line(p1, p2, a, v);\r\n\t\t\toutput(intersect, \"((1.0, 1.0), false)\");\r\n\r\n\t\t\t// Test example 2 from the method documentation.\r\n\t\t\tp1 = new Vector2d(1,0); p2 = new Vector2d(1,2); a = new Vector2d(0,0); v = new Vector2d(1,1);\r\n\t\t\tintersect = determine_linesegment_intersection_with_line(p1, p2, a, v);\r\n\t\t\toutput(intersect, \"((1.0, 1.0), true)\");\r\n\r\n\t\t\t// Turn that one into a limit case variation as well.\r\n\t\t\ta = new Vector2d(0,1);\r\n\t\t\tintersect = determine_linesegment_intersection_with_line(p1, p2, a, v);\r\n\t\t\toutput(intersect, \"((1.0, 2.0), false)\");\r\n\r\n\t\t\t// Let's test some cases which shouldn't work.\r\n\r\n\t\t\t// Test a case where the endpoints of the line segment are identical.\r\n\t\t\tp1 = new Vector2d(23,9); p2 = new Vector2d(23,9); a = new Vector2d(3,4); v = new Vector2d(5,6);\r\n\t\t\ttry\r\n\t\t\t{\r\n\t\t\t\tintersect = determine_linesegment_intersection_with_line(p1, p2, a, v);\r\n\t\t\t\toutput(intersect, \"Error\");\r\n\t\t\t}\r\n\t\t\tcatch(Error e)\r\n\t\t\t{\r\n\t\t\t\toutput(\"\", \"\");\r\n\t\t\t}\r\n\r\n\t\t\t// Test a case where the line segment and the other line are parallel.\r\n\t\t\tp1 = new Vector2d(0,0); p2 = new Vector2d(3,5); a = new Vector2d(-1,0); v = new Vector2d(6,10);\r\n\t\t\ttry\r\n\t\t\t{\r\n\t\t\t\tintersect = determine_linesegment_intersection_with_line(p1, p2, a, v);\r\n\t\t\t\toutput(intersect, \"Error\");\r\n\t\t\t}\r\n\t\t\tcatch(Error e)\r\n\t\t\t{\r\n\t\t\t\toutput(\"\", \"\");\r\n\t\t\t}\r\n\r\n\t\t\t// Test another parallel case, which happens to follow a different execution path before\r\n\t\t\t// throwing an error (this is an example of testing based on what we know about how the\r\n\t\t\t// code works - it's not black-box testing).\r\n\t\t\tp1 = new Vector2d(0,0); p2 = new Vector2d(0,17); a = new Vector2d(10,7); v = new Vector2d(0,8);\r\n\t\t\ttry\r\n\t\t\t{\r\n\t\t\t\tintersect = determine_linesegment_intersection_with_line(p1, p2, a, v);\r\n\t\t\t\toutput(intersect, \"Error\");\r\n\t\t\t}\r\n\t\t\tcatch(Error e)\r\n\t\t\t{\r\n\t\t\t\toutput(\"\", \"\");\r\n\t\t\t}\r\n\r\n\t\t\t// TESTME: I suppose more tests could be done here. I'm fairly sure it works though.\r\n\t\t}", "title": "" }, { "docid": "9efd55196da337bb19410a38778f34cb", "score": "0.58632296", "text": "private void animateLines(int x1, int y1, int x2, int y2) {\n\t\tint dx = x2 - x1;\n\t\tint dy = y2 - y1;\n\t\t// Loop through selected lines, move them by dx, dy\n\t\tfor (int i = 0; i < selectedLines.size(); i++) {\n\t\t\tif (selectedLines.get(i).timeExists(time)) {\n\t\t\t\tfor (int j = 0; j < selectedLines.get(i).getArraySize(time); j++) {\n\t\t\t\t\tPoint p = selectedLines.get(i).getPoint(time, j);\n\t\t\t\t\tif (p != null) {\n\t\t\t\t\t\tp.x = p.x + dx;\n\t\t\t\t\t\tp.y = p.y + dy;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tfor (int j = 0; j < selectedLines.get(i).getArraySize(time - 1); j++) {\n\t\t\t\t\tPoint p = selectedLines.get(i).getPoint(time - 1, j);\n\t\t\t\t\tif (p != null) {\n\t\t\t\t\t\tselectedLines.get(i).addPoint((int)p.getX() + dx, (int)p.getY() + dy, time);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "c0be42c7206507869dc4fae2cf474ecf", "score": "0.5846088", "text": "private double getDistanceFromPointToLine(double x4, double y3, double x1, double y1, double x2, double y2){\n // line: ax+by+c=0\n\tdouble a = y2-y1;\n\tdouble b = x1-x2;\n\tdouble c = x2*y1-x1*y2;\n\tdouble distance = Math.abs(((a * x4 + b * y3 + c)) / (Math.sqrt(a * a + b * b))); \n\treturn distance;\n }", "title": "" }, { "docid": "493c8b130192cf14e8fc15e5f210eac6", "score": "0.5833896", "text": "public void setLine2(String line2) {\n this.line2 = line2;\n }", "title": "" }, { "docid": "4908ead60df06568c5cbbd5b56f274bd", "score": "0.5832529", "text": "public static native int icvGetAngleLine(@ByVal CvPoint2D64f startPoint,\n @ByVal CvSize imageSize, CvPoint2D64f point1, CvPoint2D64f point2);", "title": "" }, { "docid": "f2498e6e9f047ddfccc2e855558eb401", "score": "0.582404", "text": "public Line(Collection<Point> c) {\n line = new TreeSet<Point>();\n Iterator<Point> itr = c.iterator();\n Point firstPoint = itr.next();\n Point secondPoint = itr.next();\n double slope = firstPoint.slopeTo(secondPoint);\n this.line.add(firstPoint);\n this.line.add(secondPoint);\n while (itr.hasNext()) {\n Point nextPoint = itr.next();\n if (firstPoint.slopeTo(nextPoint) == slope) {\n this.line.add(nextPoint);\n }\n }\n }", "title": "" }, { "docid": "fa46a03b62a41847fdaefc2a8d90aec3", "score": "0.58178633", "text": "public static void rLine(int[] x, int[] y) {\n\n String rx = \"x <- c(\";\n String ry = \"y <- c(\";\n\n for (int i = 0; i < x.length; i++) {\n rx = rx + x[i] + \", \";\n ry = ry + y[i] + \", \";\n }\n rx = rx.substring(0, rx.length() - 2) + \")\";\n ry = ry.substring(0, ry.length() - 2) + \")\";\n System.out.println(rx);\n System.out.println(ry);\n System.out.println(\"lines(x,y, lwd = 2, col = \\\"orange\\\")\");\n }", "title": "" }, { "docid": "7cbc5d67b7b23a149a5d7cec67da236c", "score": "0.5816554", "text": "@Override\r\n\tpublic void draw() {\n\t\tSystem.out.println(\"Line is drawn in : \"+x1+\" \"+y1+\" \"+x2+\" \"+y2);\r\n\t}", "title": "" }, { "docid": "ad3878cfc5d525ec37084fe3a25a8883", "score": "0.5804435", "text": "public void followLine2(){\n\t\tfloat[] couleur = null;\n\t\t//float[] couleur2 = null;\n\t\tColor previousColor = Color.BLACK;\n\n\t\tfloat v = 0;\n\t\tint angle = 100;\n\n\t\tcouleur = this.robotSensors.getColor();\n\t\tColor c = Sensor.determineColor(couleur);\n\t\t\n\t\tLCD.clear(1);\n\t\tLCD.drawString(\"couleur \"+c ,0,1); //$NON-NLS-1$\n\t\tUtils.sauvegardeMesure(\"couleur \"+couleur[0] +\" -- \"+\" \"+couleur[1]+\"--\"+couleur[2]+\"---\"+c, \"couleur_test.txt\");\n\t\t\n\t\tv = this.speedByColor(c);\n\t\tif (v == -1){\n\t\t\tv = this.speedByColor(previousColor);\n\t\t\tc = previousColor;\n\t\t}\n\t\t\n\t\tif (c == Color.ORANGE ){\n\t\t\tLCD.clear(2);\n\t\t\tLCD.drawString(\"zone stockage \"+c ,0,2);\n\t\t}else{\n\t\t\tLCD.clear(2);\n\t\t\tLCD.drawString(\"hors zone stockage \"+c ,0,2);\n\t\t}\n\t\tif (c == Color.BLACK){\t\t\t\t\n\t\t\tthis.robotMotors.rotationForwardLeft(angle, 0.5f);\n\t\t\n\t\t}else if(c == Color.WHITE){\n\t\t\tthis.robotMotors.rotationForwardRight(angle, 0.5f);\t\t\t\t\n\t\t}\n\t\t\n\t\tthis.robotMotors.moveSpeed(v);\n\t\tthis.robotMotors.moveForward();\n\t\t\t\n\t\t\t\t\t\t\n\t\t\n\t}", "title": "" }, { "docid": "d62a8f1a7df144811fb9fc6e2fc48d73", "score": "0.580165", "text": "@Override\n\tpublic void draw (GraphicsContext gc) {\n\t\t//sets the width of line to 5\n\t\tgc.setLineWidth(5);\n\t\tgc.setFill(this.getColor().myColor);\n\t\tgc.strokeLine(x1, y1, x2, y2);\n\t}", "title": "" }, { "docid": "f4ce16fc21a5e69039cef34a37fad2b8", "score": "0.5798944", "text": "public void paintComponent(Graphics g)\r\n {\n \tg.drawLine(x1, y1, x2, y2);\r\n }", "title": "" }, { "docid": "238ce4d3b0e35d3c301e476345984c07", "score": "0.57890207", "text": "private void drawLineEdges(){\n\t\tstrokeWeight(4);\n\t\tint[] numberLinesPerEdge=new int[ptn.getEdges().size()];\n\t\tIterator<Integer> lineIter = null;\n\t\tif (show_step ==1)\n\t\t\tlineIter = lp.getLines().keySet().iterator();\n\t\telse if(show_step > 1)\n\t\t\tlineIter = lc.getLines().keySet().iterator();\n\t\tdouble dirX=0.0;\n\t\tdouble dirY=0.0;\n\t\tdouble factor=0.0;\n\t\tdouble x1, x2, y1, y2;\n\t\tLine line = null;\n\t\twhile(lineIter.hasNext()){\n\t\t\tif (show_step ==1)\n\t\t\t\tline = lp.getLines().get(lineIter.next());\n\t\t\telse if(show_step > 1)\n\t\t\t\tline = lc.getLines().get(lineIter.next());\n\t\t\tif(line.getFrequency()>0 && line.isHighlighted()){\n\t\t\t\tfor(Edge edge:line.getEdges()){\n\t\t\t\t\tdirY = Math.pow(-1,numberLinesPerEdge[edge.getIndex()-1])* (screenPositionOfStops.get(edge.getRight_stop().getIndex()-1).x - screenPositionOfStops.get(edge.getLeft_stop().getIndex()-1).y);\n\t\t\t\t\tdirX = Math.pow(-1,numberLinesPerEdge[edge.getIndex()-1])* (screenPositionOfStops.get(edge.getRight_stop().getIndex()-1).x - screenPositionOfStops.get(edge.getLeft_stop().getIndex()-1).y);\n\t\t\t\t\tfactor = Math.sqrt(Math.pow(dirX,2) + Math.pow(dirY,2))*2 / (5*numberLinesPerEdge[edge.getIndex()-1]+2);\n\t\t\t\t\tdirY = dirY/factor;\n\t\t\t\t\tdirX = dirX/factor;\n\t\t\t\t\tx1 = screenPositionOfStops.get(edge.getLeft_stop().getIndex()-1).x+dirX;\n\t\t\t\t\tx2 = screenPositionOfStops.get(edge.getRight_stop().getIndex()-1).x+dirX;\n\t\t\t\t\ty1 = screenPositionOfStops.get(edge.getLeft_stop().getIndex()-1).y+dirY;\n\t\t\t\t\ty2 = screenPositionOfStops.get(edge.getRight_stop().getIndex()-1).y + dirY;\n\t\t\t\t\tstroke(line.getColor().getRed(),line.getColor().getGreen(),line.getColor().getBlue());\n\t\t\t\t\tline((float)x1,(float)y1,(float)x2,(float)y2);\n\t\t\t\t\tnumberLinesPerEdge[edge.getIndex()-1]+=1;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "bb69a06a297e9fad8b112b068b2fefbe", "score": "0.57873416", "text": "private double distanceToLine(double x1, double y1, double x2, double y2, double x3, double y3) {\n\n double dLineX = x2 - x1;\n double dLineY = y2 - y1;\n double temp = (dLineX * dLineX) + (dLineY * dLineY);\n double u = ((x3 - x1) * dLineX + (y3 - y1) * dLineY) / (temp);\n\n //if this is > 0 then its outside the line segment\n\n if (u <= 0.0) {\n\n return circleDistanceTwoPoints(y3,x3, y1, x1);\n\n } else if (u >= 1.0) {\n return circleDistanceTwoPoints(y3,x3, y2, x2);\n\n } else {\n\n double x = u * dLineX;\n double y = u * dLineY;\n\n double dx = x3 - x1;\n double dy = y3 - y1;\n return circleDistanceTwoPoints(dy,dx,y,x);\n\n }\n }", "title": "" }, { "docid": "b916eadc93325da881bc4eafecbe2311", "score": "0.5772094", "text": "private static Line2D loadLine(String line_name) {\n\n LogUtils.printGeneralMessage(\"MapUtils is loading line \" + line_name + \".\");\n\n double x1 = ParseUtils.parseDouble(Definitions.DLC_1.getPath(), line_name + \"X1\");\n double x2 = ParseUtils.parseDouble(Definitions.DLC_1.getPath(), line_name + \"X2\");\n\n double y1 = ParseUtils.parseDouble(Definitions.DLC_1.getPath(), line_name + \"Y1\");\n double y2 = ParseUtils.parseDouble(Definitions.DLC_1.getPath(), line_name + \"Y2\");\n\n return new Line2D.Double(x1, y1, x2, y2);\n\n }", "title": "" }, { "docid": "7fcc1115b4a1dba40b9a28ed8d61e668", "score": "0.5756137", "text": "public String getLine2() {\n return line2;\n }", "title": "" }, { "docid": "21e09d8884983147a5e97ea5e484b495", "score": "0.57510775", "text": "private boolean checkTowLine(Point p1, Point p2) {\n if (p1.x < p2.x) {\n if (p1.y < p2.y) {\n if (checkLineX(p1.x, p1.y, p2.y + 1) && checkLineY(p1.x - 1, p2.x, p2.y)) {\n StaticFinalvariable.p1 = p1;\n StaticFinalvariable.p2 = new Point(p1.x, p2.y);\n StaticFinalvariable.p3 = p2;\n return true;\n } else if (checkLineX(p2.x, p1.y - 1, p2.y) && checkLineY(p1.x, p2.x + 1, p1.y)) {\n StaticFinalvariable.p1 = p1;\n StaticFinalvariable.p2 = new Point(p2.x, p1.y);\n StaticFinalvariable.p3 = p2;\n return true;\n } else {\n return false;\n }\n } else {\n if (checkLineX(p1.x, p1.y, p2.y - 1) && checkLineY(p1.x - 1, p2.x, p2.y)) {\n StaticFinalvariable.p1 = p1;\n StaticFinalvariable.p2 = new Point(p1.x, p2.y);\n StaticFinalvariable.p3 = p2;\n return true;\n } else if (checkLineX(p2.x, p1.y + 1, p2.y) && checkLineY(p1.x, p2.x + 1, p1.y)) {\n StaticFinalvariable.p1 = p1;\n StaticFinalvariable.p2 = new Point(p2.x, p1.y);\n StaticFinalvariable.p3 = p2;\n return true;\n } else {\n return false;\n }\n }\n } else {\n if (p1.y < p2.y) {\n if (checkLineX(p1.x, p1.y, p2.y + 1) && checkLineY(p1.x + 1, p2.x, p2.y)) {\n StaticFinalvariable.p1 = p1;\n StaticFinalvariable.p2 = new Point(p1.x, p2.y);\n StaticFinalvariable.p3 = p2;\n return true;\n } else if (checkLineX(p2.x, p1.y - 1, p2.y) && checkLineY(p1.x, p2.x - 1, p1.y)) {\n StaticFinalvariable.p1 = p1;\n StaticFinalvariable.p2 = new Point(p2.x, p1.y);\n StaticFinalvariable.p3 = p2;\n return true;\n } else {\n return false;\n }\n } else {\n if (checkLineX(p1.x, p1.y, p2.y - 1) && checkLineY(p1.x + 1, p2.x, p2.y)) {\n StaticFinalvariable.p1 = p1;\n StaticFinalvariable.p2 = new Point(p1.x, p2.y);\n StaticFinalvariable.p3 = p2;\n return true;\n } else if (checkLineX(p2.x, p1.y + 1, p2.y) && checkLineY(p1.x, p2.x - 1, p1.y)) {\n StaticFinalvariable.p1 = p1;\n StaticFinalvariable.p2 = new Point(p2.x, p1.y);\n StaticFinalvariable.p3 = p2;\n return true;\n } else {\n return false;\n }\n }\n }\n\n }", "title": "" }, { "docid": "4eebb19f1743d04d0e9428676cdda6d8", "score": "0.5750679", "text": "@Override\n\tpublic void draw(Graphics g, World world) {\n\t\tint xloc1 = world.getCoordX(this.p1.getX());\n int yloc1 = world.getCoordY(this.p1.getY());\n int xloc2 = world.getCoordX(this.p2.getX());\n int yloc2 = world.getCoordY(this.p2.getY());\n g.setColor(color);\n g.drawLine(xloc1, yloc1, xloc2, yloc2);\n\t}", "title": "" }, { "docid": "4ecbcd358a2c8bcf5ebeab63253c96cb", "score": "0.57464874", "text": "public boolean OnLine(Point a, Point b, Point c) {\n\t\t//if PDP < Epsilon then the point is on the line\n\t\treturn (Math.abs(PDP(a,b,c)) < this.getEpsilon(a,b));\n\t}", "title": "" }, { "docid": "e93360ab7a4ad3628367b11b85701c8b", "score": "0.57426643", "text": "public Line3D(Point3D p1, Point3D p2, ScalarOperator sop) {\n\t\tthis.origin = p1;\n\t\tthis.dvec = new Vector3D(p1, p2);\n\t\tthis.dvec.normalize(sop);\n\t}", "title": "" }, { "docid": "d1e8feb2072d3dd59f0d46da1a920327", "score": "0.5736726", "text": "public TGLineOp(TGPoint pt1, TGPoint pt2, Color color, int width, float[] pattern) {\r\n this(pt1, pt2, color, width, pattern, BasicStroke.CAP_BUTT);\r\n }", "title": "" }, { "docid": "ab8677c5fd762a71d6ab57797299dae7", "score": "0.5731289", "text": "public LineSegment (Point startPoint, Point endPoint) {\n\t\tthis.name = \"LineSegment\";\n\t\tthis.startPoint = startPoint;\n\t\tthis.endPoint = endPoint;\n\t}", "title": "" }, { "docid": "fb5c830e4dfe014b058b34ae68c907ae", "score": "0.5720626", "text": "public Pnt2d getClosestLinePoint(Pnt2d p) {\n\t\tfinal double s = 1.0; // 1.0 / (sqr(a) + sqr(b)); // assumed to be normalized\n\t\tfinal double xr = this.getXref();\n\t\tfinal double yr = this.getYref();\n\t\tdouble xx = p.getX() - xr;\n\t\tdouble yy = p.getY() - yr;\n\t\tdouble x0 = xr + s * (sqr(B) * xx - A * B * yy - A * C);\n\t\tdouble y0 = yr + s * (sqr(A) * yy - A * B * xx - B * C);\n\t\treturn PntDouble.from(x0, y0);\n\t}", "title": "" } ]
1d90b6f742585b1621eada3a15160028
Parses an annotation which is an atsign followed by a fully qualified interface name.
[ { "docid": "352a02b43b524294adadee7a1dbdf049", "score": "0.7244676", "text": "protected String parseAnnotation() throws IOException, ParseException {\n String t;\n // parse stored token if any\n if ((t = getLookAhead()) != null) {\n if (t.charAt(0) != '@') {\n setLookAhead(t); // not a annotation\n return null;\n }\n } else if ((t = scanAtSign()) != null) {\n } else {\n return null;\n }\n\n final String identifier = demandIdentifier();\n if (identifier == null) {\n throw new ParseException(msgUnexpectedToken(parseToken()), 0);\n }\n\n return identifier;\n }", "title": "" } ]
[ { "docid": "421ad641b5824a208739cbfd4d15431d", "score": "0.65843284", "text": "Annotation getAnnotation(String iri) throws WapException;", "title": "" }, { "docid": "a40441de3a3ad1aef33c93ea8a2e65e7", "score": "0.60261875", "text": "private String getAnnotationValue(MethodDeclaration n, String a) {\n\t \tfor (AnnotationExpr ae : n.getAnnotations()) \n\t \t\tif (ae.toString().contains(\"@\" + a)) {\n\t \t\t\treturn ae.toString().substring(ae.toString().indexOf(\"\\\"\") + 1, ae.toString().lastIndexOf(\"\\\"\"));\n\t \t\t}\n\t \treturn null;\n\t }", "title": "" }, { "docid": "26594eb39fe4e0726a5262ae80aadafa", "score": "0.59627914", "text": "public interface AnnotationProvider {\n\n String sayAnnotation();\n}", "title": "" }, { "docid": "f876770fe27878ea3084dcb1edbf0729", "score": "0.59176683", "text": "String getAnnotationString();", "title": "" }, { "docid": "5f80e8fa1b42aa89d855b3deddc8f776", "score": "0.58332294", "text": "Annotation getAnnotation();", "title": "" }, { "docid": "5f80e8fa1b42aa89d855b3deddc8f776", "score": "0.58332294", "text": "Annotation getAnnotation();", "title": "" }, { "docid": "cad8f248a4a1ed64900d5ab9a8008695", "score": "0.5830432", "text": "public ASMifier visitAnnotation(String desc, boolean visible) {\n/* 888 */ this.buf.setLength(0);\n/* 889 */ this.buf.append(\"{\\n\").append(\"av0 = \").append(this.name)\n/* 890 */ .append(\".visitAnnotation(\");\n/* 891 */ appendConstant(desc);\n/* 892 */ this.buf.append(\", \").append(visible).append(\");\\n\");\n/* 893 */ this.text.add(this.buf.toString());\n/* 894 */ ASMifier a = createASMifier(\"av\", 0);\n/* 895 */ this.text.add(a.getText());\n/* 896 */ this.text.add(\"}\\n\");\n/* 897 */ return a;\n/* */ }", "title": "" }, { "docid": "20ae4b2d49d25f926baf45c198732afa", "score": "0.57500815", "text": "boolean isAnnotation();", "title": "" }, { "docid": "70d63f40e37c6714df861652b8ab82ae", "score": "0.56723505", "text": "public AnnotationVisitor visitAnnotation(String arg0, boolean arg1) {\r\n if (arg0.equals(\"Lorg/apache/felix/ipojo/annotations/Requires;\")) {\r\n return new RequiresAnnotationParser(m_field);\r\n }\r\n if (arg0.equals(\"Lorg/apache/felix/ipojo/annotations/Controller;\")) {\r\n Element elem = new Element(\"controller\", \"\");\r\n elem.addAttribute(new Attribute(\"field\", m_field));\r\n m_collector.getElements().put(elem, null);\r\n return null;\r\n }\r\n if (arg0.equals(\"Lorg/apache/felix/ipojo/annotations/ServiceProperty;\")) {\r\n if (! m_collector.getIds().containsKey(\"provides\")) { // The provides annotation is already computed.\r\n System.err.println(\"The component does not provide services, skip ServiceProperty for \" + m_field);\r\n return null;\r\n } else {\r\n // Get the provides element\r\n Element parent = (Element) m_collector.getIds().get(\"provides\");\r\n return new PropertyAnnotationParser(m_field, parent);\r\n } \r\n }\r\n if (arg0.equals(\"Lorg/apache/felix/ipojo/annotations/ServiceController;\")) {\r\n if (! m_collector.getIds().containsKey(\"provides\")) { // The provides annotation is already computed.\r\n System.err.println(\"The component does not provide services, skip ServiceController for \" + m_field);\r\n return null;\r\n } else {\r\n // Get the provides element\r\n Element parent = (Element) m_collector.getIds().get(\"provides\");\r\n return new ServiceControllerAnnotationParser(m_field, parent);\r\n } \r\n }\r\n if (arg0.equals(\"Lorg/apache/felix/ipojo/annotations/Property;\")) {\r\n Element parent = null;\r\n if (! m_collector.getIds().containsKey(\"properties\")) {\r\n parent = new Element(\"Properties\", \"\");\r\n m_collector.getIds().put(\"properties\", parent);\r\n m_collector.getElements().put(parent, null);\r\n } else {\r\n parent = (Element) m_collector.getIds().get(\"properties\");\r\n }\r\n return new PropertyAnnotationParser(m_field, parent);\r\n }\r\n \r\n if (CustomAnnotationVisitor.isCustomAnnotation(arg0)) {\r\n Element elem = CustomAnnotationVisitor.buildElement(arg0);\r\n elem.addAttribute(new Attribute(\"field\", m_field)); // Add a field attribute\r\n return new CustomAnnotationVisitor(elem, m_collector, true, false);\r\n }\r\n \r\n return null;\r\n \r\n }", "title": "" }, { "docid": "761ca07288363f8f19092eb86a459c3d", "score": "0.5658554", "text": "public boolean isAnnotation();", "title": "" }, { "docid": "ebee6d749ab04d4b166337c9ec64cc79", "score": "0.56149787", "text": "@Override\n public AnnotationVisitor visitAnnotation(String name, String desc) {\n return this;\n }", "title": "" }, { "docid": "ce5eab0ddea1211cf3aebd9dd5a682f2", "score": "0.5591427", "text": "T visitAnnotationType(Class<? extends Annotation> annotationType);", "title": "" }, { "docid": "5a6006f6223ff68be99877ff2f3c22dd", "score": "0.5492291", "text": "private static void parse_arc_ainfo()\n\t{\n\t\tPrintTools.println(\"ACCParser is parsing [ainfo] directive\", 3);\n\t\taddToMap(\"ainfo\", \"_directive\");\n\n\t\twhile (end_of_token() == false) \n\t\t{\n\t\t\tString token = get_token();\n\t\t\tif( token.equals(\"\") ) continue; //Skip empty string, which may occur due to macro.\n\t\t\tString clause = \"token_\" + token;\n\t\t\tif( token.equals(\",\") ) continue; //Skip comma between clauses, if existing.\n\t\t\tPrintTools.println(\"clause=\" + clause, 3);\n\t\t\ttry {\n\t\t\t\tswitch (ainfo_clause.valueOf(clause)) {\n\t\t\t\tcase token_procname\t\t:\tparse_acc_stringargclause(token); break;\n\t\t\t\tcase token_kernelid\t\t:\tparse_acc_confclause(token); break;\n\t\t\t\tdefault : ACCParserError(\"NoSuchAinfoConstruct : \" + clause);\n\t\t\t\t}\n\t\t\t} catch( Exception e) {\n\t\t\t\tACCParserError(\"unexpected or wrong token found (\" + token + \")\");\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "38079edee267e7df37c98b11b7b5ba75", "score": "0.5445528", "text": "public abstract void process(A annotation);", "title": "" }, { "docid": "463eb6412511bec052e400db1652579e", "score": "0.53528047", "text": "@Override\n public Void visitAnnotation(AnnotationTree tree,\n SourceFormatter target)\n {\n target.printSpecial(\"@\");\n this.scanType(tree.getAnnotationType(), target);\n this.printList(tree.getArguments(), target, \"(\", \",\", \")\");\n return null;\n }", "title": "" }, { "docid": "aa3c73535551ec3a85b4c674a92638ab", "score": "0.531176", "text": "public interface AbstractC0830i {\n /* renamed from: a */\n <T extends Annotation> T mo9737a(Class<T> cls);\n}", "title": "" }, { "docid": "99cb731ef946397bc720f12820ae0b48", "score": "0.5307706", "text": "public AnnotationVisitor visitAnnotation(String desc, boolean visible) {\n/* 529 */ ByteVector bv = new ByteVector();\n/* */ \n/* 531 */ bv.putShort(this.cw.newUTF8(desc)).putShort(0);\n/* 532 */ AnnotationWriter aw = new AnnotationWriter(this.cw, true, bv, bv, 2);\n/* 533 */ if (visible) {\n/* 534 */ aw.next = this.anns;\n/* 535 */ this.anns = aw;\n/* */ } else {\n/* 537 */ aw.next = this.ianns;\n/* 538 */ this.ianns = aw;\n/* */ } \n/* 540 */ return aw;\n/* */ }", "title": "" }, { "docid": "0a4eea19d4ce65cde5e77cd3b1abf79b", "score": "0.5270768", "text": "T visitAnnotationInstance(Annotation annotation);", "title": "" }, { "docid": "bc07c80d0a9cb5257386791c5db07777", "score": "0.52691793", "text": "public interface C1394b extends C1600d {\n @C1447d(a = \"/adCycle\")\n /* renamed from: a */\n JSONObject m5840a();\n}", "title": "" }, { "docid": "6cbc8ea32d4fffe028b5eca4f3e660a6", "score": "0.5227526", "text": "public ASMifier visitTypeAnnotation(String method, int typeRef, TypePath typePath, String desc, boolean visible) {\n/* 908 */ this.buf.setLength(0);\n/* 909 */ this.buf.append(\"{\\n\").append(\"av0 = \").append(this.name).append(\".\")\n/* 910 */ .append(method).append(\"(\");\n/* 911 */ this.buf.append(typeRef);\n/* 912 */ if (typePath == null) {\n/* 913 */ this.buf.append(\", null, \");\n/* */ } else {\n/* 915 */ this.buf.append(\", TypePath.fromString(\\\"\").append(typePath).append(\"\\\"), \");\n/* */ } \n/* 917 */ appendConstant(desc);\n/* 918 */ this.buf.append(\", \").append(visible).append(\");\\n\");\n/* 919 */ this.text.add(this.buf.toString());\n/* 920 */ ASMifier a = createASMifier(\"av\", 0);\n/* 921 */ this.text.add(a.getText());\n/* 922 */ this.text.add(\"}\\n\");\n/* 923 */ return a;\n/* */ }", "title": "" }, { "docid": "0cc8d45c10bdd23e81233bff57a345d4", "score": "0.5215379", "text": "@Test\n public void testInterfaceWithAuthenticatedAndAuthenticationAccessCustomNamespace() throws Exception {\n String intfSource = \"<aura:interface access='AUTHENTICATED,AUTHENTICATED'/>\";\n DefDescriptor<InterfaceDef> descriptor = \n getAuraTestingUtil().addSourceAutoCleanup(InterfaceDef.class,\n intfSource, StringSourceLoader.DEFAULT_CUSTOM_NAMESPACE+\":testInterface\",\n NamespaceAccess.CUSTOM);\n Source<InterfaceDef> source = stringSourceLoader.getSource(descriptor);\n \n Parser<InterfaceDef> parser = parserFactory.getParser(Format.XML, descriptor);\n Definition def = parser.parse(descriptor, source);\n try {\n def.validateDefinition();\n fail(\"expect to see InvalidAccessValueException\");\n } catch(InvalidAccessValueException e) {\n String expectedMsg = \"Invalid access attribute value \\\"AUTHENTICATED\\\"\";\n assertTrue(\"Getting this message instead:\"+e.getMessage(), e.getMessage().contains(expectedMsg));\n }\n }", "title": "" }, { "docid": "2f3fe381365eab15a026a18e1eec2b29", "score": "0.52081937", "text": "@Test\n public void testInterfaceWithAuthenticatedAndUnAuthenticationAccessCustomNamespace() throws Exception {\n String intfSource = \"<aura:interface access='AUTHENTICATED,UNAUTHENTICATED'/>\";\n DefDescriptor<InterfaceDef> descriptor = \n getAuraTestingUtil().addSourceAutoCleanup(InterfaceDef.class,\n intfSource, StringSourceLoader.DEFAULT_CUSTOM_NAMESPACE+\":testInterface\",\n NamespaceAccess.CUSTOM);\n Source<InterfaceDef> source = stringSourceLoader.getSource(descriptor);\n \n Parser<InterfaceDef> parser = parserFactory.getParser(Format.XML, descriptor);\n Definition def = parser.parse(descriptor, source);\n try {\n def.validateDefinition();\n fail(\"Expect to die with InvalidAccessValueException\");\n } catch(InvalidAccessValueException e) {\n String expectedMsg = \"Access attribute cannot specify both AUTHENTICATED and UNAUTHENTICATED\";\n assertTrue(\"Getting this message instead:\"+e.getMessage(), e.getMessage().contains(expectedMsg));\n }\n }", "title": "" }, { "docid": "94ff8cfc0c0f33649a01b0be9073945a", "score": "0.51907855", "text": "void callInterfaceAnnotatedMethod();", "title": "" }, { "docid": "e2fe2d7fecbf0fe76804b7b2d30e526d", "score": "0.5162748", "text": "public ASMifier visitClassAnnotation(String desc, boolean visible) {\n/* 266 */ return visitAnnotation(desc, visible);\n/* */ }", "title": "" }, { "docid": "fe3c46288f264691176cf64834c2a796", "score": "0.51592666", "text": "@Override\npublic void startElement(String uri, String name, String qName, Attributes atts)\n{\n\n Map<String, String> attributes = new TreeMap<String, String>();\n\n for (int i = 0; i < atts.getLength(); i++) {\n String n = atts.getQName(i);\n String val = atts.getValue(i);\n attributes.put(n, val);\n }\n\n int id = markups.add(offset, 0, qName, attributes);\n Annotation cur = markups.get(id);\n anStack.push(cur);\n}", "title": "" }, { "docid": "c13cc6b4713015273ae71b7a2427e422", "score": "0.51336426", "text": "@Test\n public void testInterfaceWithAuthenticationCustomNamespace() throws Exception {\n String intfSource = \"<aura:interface access='AUTHENTICATED'/>\";\n DefDescriptor<InterfaceDef> descriptor = \n getAuraTestingUtil().addSourceAutoCleanup(InterfaceDef.class,\n intfSource, StringSourceLoader.DEFAULT_CUSTOM_NAMESPACE+\":testInterface\",\n NamespaceAccess.CUSTOM);\n Source<InterfaceDef> source = stringSourceLoader.getSource(descriptor);\n \n Parser<InterfaceDef> parser = parserFactory.getParser(Format.XML, descriptor);\n Definition def = parser.parse(descriptor, source);\n try {\n def.validateDefinition();\n fail(\"Expect to die with InvalidAccessValueException\");\n } catch (InvalidAccessValueException e) {\n //expected\n String expectedMsg = \"Invalid access attribute value \\\"AUTHENTICATED\\\"\";\n assertTrue(e.getMessage().contains(expectedMsg));\n }\n }", "title": "" }, { "docid": "f9da68ba786f840d8c340d8d66a65654", "score": "0.51325977", "text": "@Test\n public void testInterfaceWithInvalidAndValidAccessCustomNamespace() throws Exception {\n String intfSource = \"<aura:interface access='GLOBAL, BLAH, GLOBAL'/>\";\n DefDescriptor<InterfaceDef> descriptor = \n getAuraTestingUtil().addSourceAutoCleanup(InterfaceDef.class,\n intfSource, StringSourceLoader.DEFAULT_CUSTOM_NAMESPACE+\":testInterface\",\n NamespaceAccess.CUSTOM);\n Source<InterfaceDef> source = stringSourceLoader.getSource(descriptor);\n \n Parser<InterfaceDef> parser = parserFactory.getParser(Format.XML, descriptor);\n Definition def = parser.parse(descriptor, source);\n try {\n def.validateDefinition();\n fail(\"Expect to die with InvalidAccessValueException\");\n } catch (InvalidAccessValueException e) {\n //expected\n String expectedMsg = \"Invalid access attribute value \\\"BLAH\\\"\";\n assertTrue(e.getMessage().contains(expectedMsg));\n }\n }", "title": "" }, { "docid": "5256b8029aeebc3df4c291fe87e83b69", "score": "0.51259434", "text": "@Test\n public void testInterfaceWithAuthenticatedAndGlobalAccessCustomNamespace() throws Exception {\n String intfSource = \"<aura:interface access='AUTHENTICATED,GLOBAL'/>\";\n DefDescriptor<InterfaceDef> descriptor = \n getAuraTestingUtil().addSourceAutoCleanup(InterfaceDef.class,\n intfSource, StringSourceLoader.DEFAULT_CUSTOM_NAMESPACE+\":testInterface\",\n NamespaceAccess.CUSTOM);\n Source<InterfaceDef> source = stringSourceLoader.getSource(descriptor);\n \n Parser<InterfaceDef> parser = parserFactory.getParser(Format.XML, descriptor);\n Definition def = parser.parse(descriptor, source);\n try {\n def.validateDefinition();\n fail(\"Expect to die with InvalidAccessValueException\");\n } catch (InvalidAccessValueException e) {\n String expectedMsg = \"Invalid access attribute value \\\"AUTHENTICATED\\\"\";\n assertTrue(\"Getting this message instead:\"+e.getMessage(), e.getMessage().contains(expectedMsg));\n }\n }", "title": "" }, { "docid": "c3f471bb435c0ff1a46e85fa98276072", "score": "0.5124767", "text": "public void testDeclaredAnnotation() throws Exception {\n Class<?> c = AnnotatedClass.class;\n\n Class<? extends Annotation> repeated = Repeated.class;\n checkDeclaredAnnotation(c, \"noAnnotation\", repeated, null);\n checkDeclaredAnnotation(c, \"multipleAnnotationOddity\", repeated, \"@Repeated(1)\");\n checkDeclaredAnnotation(c, \"multipleAnnotationExplicitSingle\", repeated, null);\n checkDeclaredAnnotation(c, \"multipleAnnotation\", repeated, null);\n checkDeclaredAnnotation(c, \"singleAnnotation\", repeated, \"@Repeated(1)\");\n\n Class<? extends Annotation> container = Container.class;\n checkDeclaredAnnotation(c, \"noAnnotation\", container, null);\n checkDeclaredAnnotation(c, \"multipleAnnotationOddity\", container,\n \"@Container({@Repeated(2), @Repeated(3)})\");\n checkDeclaredAnnotation(c, \"multipleAnnotationExplicitSingle\", container,\n \"@Container({@Repeated(1)})\");\n checkDeclaredAnnotation(c, \"multipleAnnotation\", container,\n \"@Container({@Repeated(1), @Repeated(2)})\");\n checkDeclaredAnnotation(c, \"singleAnnotation\", container, null);\n }", "title": "" }, { "docid": "0276bf99269df2f17d23bc6579f53f24", "score": "0.5119616", "text": "@Test\n public void testInterfaceWithAuthenticatedAndAuthenticatedAccessInternalNamespace() throws Exception {\n String intfSource = \"<aura:interface access='AUTHENTICATED,AUTHENTICATED'/>\";\n DefDescriptor<InterfaceDef> descriptor = \n getAuraTestingUtil().addSourceAutoCleanup(InterfaceDef.class,\n intfSource, StringSourceLoader.DEFAULT_NAMESPACE+\":testInterface\",\n NamespaceAccess.INTERNAL);\n Source<InterfaceDef> source = stringSourceLoader.getSource(descriptor);\n \n Parser<InterfaceDef> parser = parserFactory.getParser(Format.XML, descriptor);\n Definition def = parser.parse(descriptor, source);\n try {\n \tdef.validateDefinition();\n fail(\"Expect to die with InvalidAccessValueException\");\n } catch (InvalidAccessValueException e) {\n //expected\n assertTrue(e.getMessage().contains(\"Invalid access attribute value \\\"AUTHENTICATED\\\"\"));\n }\n }", "title": "" }, { "docid": "084d3c956f7fa61193bd7a5aa2058e74", "score": "0.51023966", "text": "@Demo(str = \"Demo Annotation\", val = 100)\r\n // a method to call in the main\r\n public static void example() {\r\n Test ob = new Test();\r\n try {\r\n Class c = ob.getClass();\r\n // get the method example\r\n Method m = c.getMethod(\"example\");\r\n // get the annotations\r\n Annotation[] annotation = m.getDeclaredAnnotations();\r\n\r\n // print the annotation\r\n for (int i = 0; i < annotation.length; i++) {\r\n System.out.println(annotation[i]);\r\n }\r\n } catch (NoSuchMethodException exc) {\r\n exc.printStackTrace();\r\n }\r\n }", "title": "" }, { "docid": "4f213115ab4e5a95d1b858a4afa914ef", "score": "0.50808555", "text": "@Test\r\n public void testInlineAnnotations() throws ExceptionState, IOException, JDOMException {\r\n\t\ttest=\"PEPTIDE1{A.A.A.A.A.A.A.A.A.A.A.A.A.A.A.A.A.A.A.A.A.C\\\"mutation\\\".D.D.D.D.D.D.D.D.D.D.D.D.D.D.D.D.D.D.D.D.E.E.E.E.E.E.E.E.E.E.E.E.E.E.E.E.E.E.E.E.E.E.E}$$$$V2.0\";\r\n\t\tparser.parse(test);\r\n Assert.assertTrue(parser.getHELM2Notation().getListOfPolymers().get(0).getPolymerElements().getListOfElements().get(21).getAnnotation().equals(\"mutation\"));\r\n Assert.assertTrue(parser.getHELM2Notation().getListOfPolymers().get(0).getPolymerElements().getListOfElements().get(20).isAnnotationTrue() == false);\r\n Assert.assertTrue(parser.getHELM2Notation().getListOfPolymers().size() == 1);\r\n Assert.assertTrue(parser.getHELM2Notation().getListOfPolymers().get(0).getPolymerElements().getListOfElements().size() == 65);\r\n }", "title": "" }, { "docid": "ac0399e73ac2859f4deefc006783c2db", "score": "0.5073863", "text": "public Printer visitLocalVariableAnnotation(int typeRef, TypePath typePath, Label[] start, Label[] end, int[] index, String desc, boolean visible) {\n/* 826 */ this.buf.setLength(0);\n/* 827 */ this.buf.append(\"{\\n\").append(\"av0 = \").append(this.name)\n/* 828 */ .append(\".visitLocalVariableAnnotation(\");\n/* 829 */ this.buf.append(typeRef);\n/* 830 */ if (typePath == null) {\n/* 831 */ this.buf.append(\", null, \");\n/* */ } else {\n/* 833 */ this.buf.append(\", TypePath.fromString(\\\"\").append(typePath).append(\"\\\"), \");\n/* */ } \n/* 835 */ this.buf.append(\"new Label[] {\"); int i;\n/* 836 */ for (i = 0; i < start.length; i++) {\n/* 837 */ this.buf.append((i == 0) ? \" \" : \", \");\n/* 838 */ appendLabel(start[i]);\n/* */ } \n/* 840 */ this.buf.append(\" }, new Label[] {\");\n/* 841 */ for (i = 0; i < end.length; i++) {\n/* 842 */ this.buf.append((i == 0) ? \" \" : \", \");\n/* 843 */ appendLabel(end[i]);\n/* */ } \n/* 845 */ this.buf.append(\" }, new int[] {\");\n/* 846 */ for (i = 0; i < index.length; i++) {\n/* 847 */ this.buf.append((i == 0) ? \" \" : \", \").append(index[i]);\n/* */ }\n/* 849 */ this.buf.append(\" }, \");\n/* 850 */ appendConstant(desc);\n/* 851 */ this.buf.append(\", \").append(visible).append(\");\\n\");\n/* 852 */ this.text.add(this.buf.toString());\n/* 853 */ ASMifier a = createASMifier(\"av\", 0);\n/* 854 */ this.text.add(a.getText());\n/* 855 */ this.text.add(\"}\\n\");\n/* 856 */ return a;\n/* */ }", "title": "" }, { "docid": "5d147de85d7a54c5b9a35b4b05f4bf0d", "score": "0.50597906", "text": "protected String scanAtSign() throws IOException, ParseException {\n // parse stored token if any\n String t;\n if ((t = getLookAhead()) != null) {\n if (t.charAt(0) != '@') {\n setLookAhead(t); // not an at-sign\n return null;\n }\n return t;\n }\n\n // parse first char\n if (!skip()) {\n throw new ParseException(msgUnexpectedEOF(), 0);\n }\n ir.mark(1);\n char c = (char) ir.read();\n if (c != '@') {\n ir.reset(); // not an at-sign\n return null;\n }\n\n return \"@\";\n }", "title": "" }, { "docid": "b188e3744556b260a99b0d833f6a5191", "score": "0.5040553", "text": "@Test\n public void testInterfaceWithAuthenticatedAndUnAuthenticationAccessInternalNamespace() throws Exception {\n String intfSource = \"<aura:interface access='AUTHENTICATED,UNAUTHENTICATED'/>\";\n DefDescriptor<InterfaceDef> descriptor = \n getAuraTestingUtil().addSourceAutoCleanup(InterfaceDef.class,\n intfSource, StringSourceLoader.DEFAULT_NAMESPACE+\":testInterface\",\n NamespaceAccess.INTERNAL);\n Source<InterfaceDef> source = stringSourceLoader.getSource(descriptor);\n \n Parser<InterfaceDef> parser = parserFactory.getParser(Format.XML, descriptor);\n Definition def = parser.parse(descriptor, source);\n try {\n def.validateDefinition();\n fail(\"Expect to die with InvalidAccessValueException\");\n } catch(InvalidAccessValueException e) {\n String expectedMsg = \"Access attribute cannot specify both AUTHENTICATED and UNAUTHENTICATED\";\n assertTrue(\"Getting this message instead:\"+e.getMessage(), e.getMessage().contains(expectedMsg));\n }\n }", "title": "" }, { "docid": "23c21fa14e765865c2814e0536e1132f", "score": "0.5039852", "text": "G_Annotation createG_Annotation();", "title": "" }, { "docid": "3e9a17003ca1582a9be46d08354a2465", "score": "0.50342804", "text": "@Test\n public void testInterfaceWithPublicAndPublicAccessCustomNamespace() throws Exception {\n String intfSource = \"<aura:interface access='PUBLIC, PUBLIC'/>\";\n DefDescriptor<InterfaceDef> descriptor = \n getAuraTestingUtil().addSourceAutoCleanup(InterfaceDef.class,\n intfSource, StringSourceLoader.DEFAULT_CUSTOM_NAMESPACE+\":testInterface\",\n NamespaceAccess.CUSTOM);\n Source<InterfaceDef> source = stringSourceLoader.getSource(descriptor);\n \n Parser<InterfaceDef> parser = parserFactory.getParser(Format.XML, descriptor);\n Definition def = parser.parse(descriptor, source);\n def.validateDefinition();\n }", "title": "" }, { "docid": "0667331ad22e8497a260a011d5002613", "score": "0.50316405", "text": "public boolean isAnnotation() {\n \treturn false;\n }", "title": "" }, { "docid": "5b31abb34a04e12235834704d5a8e5f8", "score": "0.50153005", "text": "@Test\n public void testInterfaceWithGlobalAndPrivateAccessCustomNamespace() throws Exception {\n String intfSource = \"<aura:interface access='GLOBAL, PRIVATE'/>\";\n DefDescriptor<InterfaceDef> descriptor = \n getAuraTestingUtil().addSourceAutoCleanup(InterfaceDef.class,\n intfSource, StringSourceLoader.DEFAULT_CUSTOM_NAMESPACE+\":testInterface\",\n NamespaceAccess.CUSTOM);\n Source<InterfaceDef> source = stringSourceLoader.getSource(descriptor);\n \n Parser<InterfaceDef> parser = parserFactory.getParser(Format.XML, descriptor);\n Definition def = parser.parse(descriptor, source);\n try {\n def.validateDefinition();\n fail(\"Expect to die with InvalidAccessValueException\");\n } catch (InvalidAccessValueException e) {\n String expectedMsg = \"Access attribute can only specify one of GLOBAL, PUBLIC, or PRIVATE\";\n assertTrue(\"Getting this message instead:\"+e.getMessage(), e.getMessage().contains(expectedMsg));\n }\n }", "title": "" }, { "docid": "8475aad542ae94c1c3bc8aec2939da15", "score": "0.50084126", "text": "public void testReservedWordAsAnnotationConstructorParameter() throws IOException {\n String translation = translateSourceFile(\n \"package foo; import java.lang.annotation.*; @Retention(RetentionPolicy.RUNTIME) \"\n + \"public @interface Bar { String namespace() default \\\"\\\"; } \"\n + \"@Bar(namespace=\\\"mynames\\\") class Test {}\",\n \"Bar\", \"foo/Bar.m\");\n assertTranslatedLines(translation,\n \"IOSObjectArray *FooTest__Annotations$0() {\",\n \"return [IOSObjectArray arrayWithObjects:(id[]){ create_FooBar(@\\\"mynames\\\") } \"\n + \"count:1 type:JavaLangAnnotationAnnotation_class_()];\");\n }", "title": "" }, { "docid": "a5923846ab28421b161f5a1eac3c0338", "score": "0.49882296", "text": "public String getAnnotation() {\n return this.annotation;\n }", "title": "" }, { "docid": "3922ff138cec005e8452e66bafca11b1", "score": "0.49841973", "text": "public String getAnnotation(int i) {\n\t\treturn annotations.get(i);\n\t}", "title": "" }, { "docid": "7d208de2b85e523759a5fabcbeaf8748", "score": "0.49703258", "text": "@Test\r\n final void testAddAnnotationIri() {\r\n // DOTEST write the test for this method\r\n }", "title": "" }, { "docid": "50e8d9ab24b126b3419efb2191df9a9f", "score": "0.49647468", "text": "@Test\n public void testInterfaceWithAuthenticatedAndGlobalAccessInternalNamespace() throws Exception {\n String intfSource = \"<aura:interface access='AUTHENTICATED,GLOBAL'/>\";\n DefDescriptor<InterfaceDef> descriptor = \n getAuraTestingUtil().addSourceAutoCleanup(InterfaceDef.class,\n intfSource, StringSourceLoader.DEFAULT_NAMESPACE+\":testInterface\",\n NamespaceAccess.INTERNAL);\n Source<InterfaceDef> source = stringSourceLoader.getSource(descriptor);\n \n Parser<InterfaceDef> parser = parserFactory.getParser(Format.XML, descriptor);\n Definition def = parser.parse(descriptor, source);\n try {\n \tdef.validateDefinition();\n fail(\"Expect to die with InvalidAccessValueException\");\n } catch (InvalidAccessValueException e) {\n //expected\n assertTrue(e.getMessage().contains(\"Invalid access attribute value \\\"AUTHENTICATED\\\"\"));\n }\n }", "title": "" }, { "docid": "4d7e16d1426f2417d6344e5c2a4a7de1", "score": "0.49641445", "text": "R process(T annotation, AE annotatedElement);", "title": "" }, { "docid": "2d9742be822f7b948849cce84d3296b9", "score": "0.49622163", "text": "public AnnotationHandle getAnnotation(String key) {\n/* 158 */ Object value = getValue(key);\n/* 159 */ if (value instanceof AnnotationMirror)\n/* 160 */ return of((AnnotationMirror)value); \n/* 161 */ if (value instanceof AnnotationValue) {\n/* 162 */ Object mirror = ((AnnotationValue)value).getValue();\n/* 163 */ if (mirror instanceof AnnotationMirror) {\n/* 164 */ return of((AnnotationMirror)mirror);\n/* */ }\n/* */ } \n/* 167 */ return null;\n/* */ }", "title": "" }, { "docid": "f9d06c27d926ef03c006ad716ebc44d7", "score": "0.49612623", "text": "static Matcher<TypeLiteral> isAnnotatedWith(final Class<? extends Annotation> annotation) {\n return new AbstractMatcher<TypeLiteral>() {\n @Override\n public boolean matches(TypeLiteral type) {\n return type.getRawType().isAnnotationPresent(annotation);\n }\n };\n }", "title": "" }, { "docid": "9cc4faabc2c41a96aaf83c95c072a5a9", "score": "0.49561268", "text": "protected String getSpecificAnnotation (Sequence annotations, Symbol interestedAnnotationName) {\n for (Enumeration e = annotations.elements ();\n\t e.hasMoreElements ();) {\n Structure annotation = (Structure) e.nextElement ();\n Symbol annotationName_ = (Symbol) annotation.getAttributeValue (ANNOTATION_NAME_, null);\n if (annotationName_.equals (interestedAnnotationName)) { // can never be null?\n\tObject annotationValue = annotation.getAttributeValue (ANNOTATION_VALUE_, null);\n\tif (annotationValue instanceof String)\n\t return (String)annotationValue;\n\telse\n\t return null;\n }\n }\n return null;\n }", "title": "" }, { "docid": "90644e5e6f159b75f3f17fd3e36cbaf3", "score": "0.49545673", "text": "public Annotation annotation() {\n return annotation;\n }", "title": "" }, { "docid": "62a34577ce7a489c2a7d93c2d96e028a", "score": "0.49531662", "text": "private AnnotationHandle(AnnotationMirror annotation) {\n/* 60 */ this.annotation = annotation;\n/* */ }", "title": "" }, { "docid": "22c307a49d3849eecb46225bea698c4b", "score": "0.495175", "text": "public interface atf extends esc {\n atj a();\n\n void a(String str, String str2, String str3, String str4);\n}", "title": "" }, { "docid": "9780abe6c493e665123422d3e4f3bfa4", "score": "0.49431804", "text": "@Test\n public void testInterfaceWithAuthenticationPrivilegedNamespace() throws Exception {\n String intfSource = \"<aura:interface access='AUTHENTICATED'/>\";\n DefDescriptor<InterfaceDef> descriptor = \n getAuraTestingUtil().addSourceAutoCleanup(InterfaceDef.class,\n intfSource, \"privilegedNS:testInterface\",\n NamespaceAccess.PRIVILEGED);\n Source<InterfaceDef> source = stringSourceLoader.getSource(descriptor);\n \n Parser<InterfaceDef> parser = parserFactory.getParser(Format.XML, descriptor);\n Definition def = parser.parse(descriptor, source);\n try {\n def.validateDefinition();\n fail(\"Expect to die with InvalidAccessValueException\");\n } catch (InvalidAccessValueException e) {\n String expectedMsg = \"Invalid access attribute value \\\"AUTHENTICATED\\\"\";\n assertTrue(\"Getting this message instead:\"+e.getMessage(), e.getMessage().contains(expectedMsg));\n }\n }", "title": "" }, { "docid": "fb66c4d7b2da2208baa0e265d96bd0fe", "score": "0.49409378", "text": "@Test\n public void testInterfaceWithDefaultAccessCustomNamespace() throws Exception {\n String intfSource = \"<aura:interface/>\";\n DefDescriptor<InterfaceDef> descriptor = \n getAuraTestingUtil().addSourceAutoCleanup(InterfaceDef.class,\n intfSource, StringSourceLoader.DEFAULT_CUSTOM_NAMESPACE+\":testInterface\",\n NamespaceAccess.CUSTOM);\n Source<InterfaceDef> source = stringSourceLoader.getSource(descriptor);\n \n Parser<InterfaceDef> parser = parserFactory.getParser(Format.XML, descriptor);\n Definition def = parser.parse(descriptor, source);\n def.validateDefinition();\n }", "title": "" }, { "docid": "f9226bea10fd167f59573779c0a9839e", "score": "0.49379784", "text": "@Test\n public void testInterfaceWithInvalidAndValidAccessInternalNamespace() throws Exception {\n String intfSource = \"<aura:interface access='GLOBAL, BLAH, GLOBAL'/>\";\n DefDescriptor<InterfaceDef> descriptor = \n getAuraTestingUtil().addSourceAutoCleanup(InterfaceDef.class,\n intfSource, StringSourceLoader.DEFAULT_NAMESPACE+\":testInterface\",\n NamespaceAccess.INTERNAL);\n Source<InterfaceDef> source = stringSourceLoader.getSource(descriptor);\n \n Parser<InterfaceDef> parser = parserFactory.getParser(Format.XML, descriptor);\n Definition def = parser.parse(descriptor, source);\n try {\n def.validateDefinition();\n fail(\"Expect to die with InvalidAccessValueException\");\n } catch (InvalidAccessValueException e) {\n //expected\n String expectedMsg = \"Invalid access attribute value \\\"BLAH\\\"\";\n assertTrue(e.getMessage().contains(expectedMsg));\n }\n }", "title": "" }, { "docid": "6d307cee082f7d7427b4b6018c8ca648", "score": "0.4929871", "text": "public interface KeywordAnnotation extends XmlElement {\n\n /**\n * Enumeration defining possible types for a keyword annotation.\n */\n enum Type {\n main, secondary, other\n };\n\n /**\n * Returns the keyword.\n *\n * @return the keyword\n */\n String getKeyword();\n\n /**\n * Returns the type of this keyword annotation. The default value is <code>main</code>.\n *\n * @return the keyword type\n */\n Type getType();\n\n}", "title": "" }, { "docid": "baed9a5b2835b6275750d59c6fb75856", "score": "0.49257752", "text": "@Test\n public void testInterfaceWithAuthenticatedAndAuthenticationAccessPrivilegedNamespace() throws Exception {\n String intfSource = \"<aura:interface access='AUTHENTICATED,AUTHENTICATED'/>\";\n DefDescriptor<InterfaceDef> descriptor = \n getAuraTestingUtil().addSourceAutoCleanup(InterfaceDef.class,\n intfSource, \"privilegedNS:testInterface\",\n NamespaceAccess.PRIVILEGED);\n Source<InterfaceDef> source = stringSourceLoader.getSource(descriptor);\n \n Parser<InterfaceDef> parser = parserFactory.getParser(Format.XML, descriptor);\n Definition def = parser.parse(descriptor, source);\n try {\n def.validateDefinition();\n fail(\"expect to see InvalidAccessValueException\");\n } catch(InvalidAccessValueException e) {\n String expectedMsg = \"Invalid access attribute value \\\"AUTHENTICATED\\\"\";\n assertTrue(\"Getting this message instead:\"+e.getMessage(), e.getMessage().contains(expectedMsg));\n }\n }", "title": "" }, { "docid": "d3424a8d2abf49a28fc9665612193799", "score": "0.49232477", "text": "@Test\n public void testInterfaceWithUnAuthenticationMethodCustomNamespace() throws Exception {\n String intfSource = \"<aura:interface access='org.auraframework.impl.test.util.TestAccessMethods.allowAuthenticated'/>\";\n DefDescriptor<InterfaceDef> descriptor = \n getAuraTestingUtil().addSourceAutoCleanup(InterfaceDef.class,\n intfSource, StringSourceLoader.DEFAULT_CUSTOM_NAMESPACE+\":testInterface\",\n NamespaceAccess.CUSTOM);\n Source<InterfaceDef> source = stringSourceLoader.getSource(descriptor);\n \n Parser<InterfaceDef> parser = parserFactory.getParser(Format.XML, descriptor);\n Definition def = parser.parse(descriptor, source);\n try {\n def.validateDefinition();\n fail(\"Expect to die with InvalidAccessValueException\");\n } catch(InvalidAccessValueException e) {\n String expectedMsg = \"\\\"org.auraframework.impl.test.util.TestAccessMethods.allowAuthenticated\\\" must return a result of type org.auraframework.system.AuraContext$Access\";\n assertTrue(\"Getting this message instead:\"+e.getMessage(), e.getMessage().contains(expectedMsg));\n }\n }", "title": "" }, { "docid": "24ad496aafaaf0e24df6a45fa3044cc4", "score": "0.49109417", "text": "@Test\n public void testInterfaceWithInvalidAndValidAccessPrivilegedNamespace() throws Exception {\n String intfSource = \"<aura:interface access='GLOBAL, BLAH, GLOBAL'/>\";\n DefDescriptor<InterfaceDef> descriptor = \n getAuraTestingUtil().addSourceAutoCleanup(InterfaceDef.class,\n intfSource, \"privilegedNS:testInterface\",\n NamespaceAccess.PRIVILEGED);\n Source<InterfaceDef> source = stringSourceLoader.getSource(descriptor);\n \n Parser<InterfaceDef> parser = parserFactory.getParser(Format.XML, descriptor);\n Definition def = parser.parse(descriptor, source);\n try {\n def.validateDefinition();\n fail(\"Expect to die with InvalidAccessValueException\");\n } catch (InvalidAccessValueException e) {\n //expected\n String expectedMsg = \"Invalid access attribute value \\\"BLAH\\\"\";\n assertTrue(e.getMessage().contains(expectedMsg));\n }\n }", "title": "" }, { "docid": "8503d6152b2d073e3d20b613be84ea3d", "score": "0.49085087", "text": "@Test\n public void testInterfaceWithAuthenticatedAndUnAuthenticationAccessPrivilegedNamespace() throws Exception {\n String intfSource = \"<aura:interface access='AUTHENTICATED,UNAUTHENTICATED'/>\";\n DefDescriptor<InterfaceDef> descriptor = \n getAuraTestingUtil().addSourceAutoCleanup(InterfaceDef.class,\n intfSource, \"privilegedNS:testInterface\",\n NamespaceAccess.PRIVILEGED);\n Source<InterfaceDef> source = stringSourceLoader.getSource(descriptor);\n \n Parser<InterfaceDef> parser = parserFactory.getParser(Format.XML, descriptor);\n Definition def = parser.parse(descriptor, source);\n try {\n def.validateDefinition();\n fail(\"Expect to die with InvalidAccessValueException\");\n } catch(InvalidAccessValueException e) {\n String expectedMsg = \"Access attribute cannot specify both AUTHENTICATED and UNAUTHENTICATED\";\n assertTrue(\"Getting this message instead:\"+e.getMessage(), e.getMessage().contains(expectedMsg));\n }\n }", "title": "" }, { "docid": "424c8f5d2175402fb1983a92364b5cd6", "score": "0.4898567", "text": "public ASMifier visitInsnAnnotation(int typeRef, TypePath typePath, String desc, boolean visible) {\n/* 773 */ return visitTypeAnnotation(\"visitInsnAnnotation\", typeRef, typePath, desc, visible);\n/* */ }", "title": "" }, { "docid": "18691a866e6c8a2c1aef9a52afd9d278", "score": "0.48966095", "text": "public AnnotationVisitor visitInsnAnnotation(int typeRef, TypePath typePath, String desc, boolean visible) {\n/* 1315 */ ByteVector bv = new ByteVector();\n/* */ \n/* 1317 */ typeRef = typeRef & 0xFF0000FF | this.lastCodeOffset << 8;\n/* 1318 */ AnnotationWriter.putTarget(typeRef, typePath, bv);\n/* */ \n/* 1320 */ bv.putShort(this.cw.newUTF8(desc)).putShort(0);\n/* 1321 */ AnnotationWriter aw = new AnnotationWriter(this.cw, true, bv, bv, bv.length - 2);\n/* */ \n/* 1323 */ if (visible) {\n/* 1324 */ aw.next = this.ctanns;\n/* 1325 */ this.ctanns = aw;\n/* */ } else {\n/* 1327 */ aw.next = this.ictanns;\n/* 1328 */ this.ictanns = aw;\n/* */ } \n/* 1330 */ return aw;\n/* */ }", "title": "" }, { "docid": "bcf836e8f1b8d43f0ddba90ab6a8da82", "score": "0.48841146", "text": "@Test\n public void testInterfaceWithGlobalAccessCustomNamespace() throws Exception {\n String intfSource = \"<aura:interface access='GLOBAL'/>\";\n DefDescriptor<InterfaceDef> descriptor = \n getAuraTestingUtil().addSourceAutoCleanup(InterfaceDef.class,\n intfSource, StringSourceLoader.DEFAULT_CUSTOM_NAMESPACE+\":testInterface\",\n NamespaceAccess.CUSTOM);\n Source<InterfaceDef> source = stringSourceLoader.getSource(descriptor);\n \n Parser<InterfaceDef> parser = parserFactory.getParser(Format.XML, descriptor);\n Definition def = parser.parse(descriptor, source);\n def.validateDefinition();\n }", "title": "" }, { "docid": "efe5ffb22a6aa5c39c634e11fa974f87", "score": "0.4875881", "text": "public AnnotationVisitor visitAnnotation(String descriptor, boolean visible) {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "64577de1cbb90de2ef7a54382230f9d0", "score": "0.48647696", "text": "public AnnotationElements getAnnotationAccess() {\n\t\treturn pAnnotation;\n\t}", "title": "" }, { "docid": "0f67999654532084d233dbf04c839220", "score": "0.4856062", "text": "@Test\n public void testInterfaceWithAuthenticatedAndGlobalAccessPrivilegedNamespace() throws Exception {\n String intfSource = \"<aura:interface access='AUTHENTICATED,GLOBAL'/>\";\n DefDescriptor<InterfaceDef> descriptor = \n getAuraTestingUtil().addSourceAutoCleanup(InterfaceDef.class,\n intfSource, \"privilegedNS:testInterface\",\n NamespaceAccess.PRIVILEGED);\n Source<InterfaceDef> source = stringSourceLoader.getSource(descriptor);\n \n Parser<InterfaceDef> parser = parserFactory.getParser(Format.XML, descriptor);\n Definition def = parser.parse(descriptor, source);\n try{\n def.validateDefinition();\n fail(\"Expect to die with InvalidAccessValueException\");\n } catch (InvalidAccessValueException e) {\n String expectedMsg = \"Invalid access attribute value \\\"AUTHENTICATED\\\"\";\n assertTrue(\"Getting this message instead:\"+e.getMessage(), e.getMessage().contains(expectedMsg));\n }\n }", "title": "" }, { "docid": "29c3503781c7c1c54ffce2fb3e0c22aa", "score": "0.48460975", "text": "public interface IAnnotationFinder {\n\n /**\n * @param cls - The corresponding class.\n * @param annotationClass - The class on which annotation is to be looked for.\n * @param <A> The expected {@link IAnnotation} type\n * @return The annotation on the class or null if none found.\n */\n <A extends IAnnotation> A findAnnotation(Class<?> cls, Class<A> annotationClass);\n\n /**\n * @param m - The corresponding {@link Method}\n * @param annotationClass - The class on which annotation is to be looked for.\n * @param <A> The expected {@link IAnnotation} type\n * @return The annotation on the method. If not found, return the annotation on the declaring\n * class. If not found, return null.\n */\n <A extends IAnnotation> A findAnnotation(Method m, Class<A> annotationClass);\n\n <A extends IAnnotation> A findAnnotation(ITestNGMethod m, Class<A> annotationClass);\n\n <A extends IAnnotation> A findAnnotation(ConstructorOrMethod com, Class<A> annotationClass);\n\n <A extends IAnnotation> A findAnnotation(\n Class<?> clazz, Method m, java.lang.Class<A> annotationClass);\n\n /**\n * @param cons - The corresponding {@link Constructor}\n * @param annotationClass - The class on which annotation is to be looked for.\n * @param <A> The expected {@link IAnnotation} type\n * @return The annotation on the method. If not found, return the annotation on the declaring\n * class. If not found, return null.\n */\n <A extends IAnnotation> A findAnnotation(Constructor<?> cons, Class<A> annotationClass);\n\n /**\n * @param method The <code>Method</code>\n * @param i The parameter index\n * @return true if the ith parameter of the given method has the annotation @TestInstance.\n */\n boolean hasTestInstance(Method method, int i);\n\n /**\n * @param method The <code>Method</code>\n * @return the @Optional values of this method's parameters (<code>null</code> if the parameter\n * isn't optional)\n */\n String[] findOptionalValues(Method method);\n\n /**\n * @param ctor The <code>Constructor</code>\n * @return the @Optional values of this method's parameters (<code>null</code> if the parameter\n * isn't optional)\n */\n String[] findOptionalValues(Constructor<?> ctor);\n}", "title": "" }, { "docid": "9c1595e05e04c4e2bed1cd97904c5e2d", "score": "0.4845684", "text": "private void extractAnnotation() {\r\n\t\tfor (Class<? extends IFile> clazz : LISTE_CLASS) {\r\n\r\n\t\t\tMap<ITag, AnnotationData> maps = new HashMap<ITag, AnnotationData>();\r\n\t\t\tSet<AnnotationData> set = new TreeSet<AnnotationData>();\r\n\r\n\t\t\tField[] fields = clazz.getDeclaredFields();\r\n\t\t\tfor (Field field : fields) {\r\n\t\t\t\tAnnotationData param = new AnnotationData();\r\n\t\t\t\tfield.setAccessible(true);\r\n\t\t\t\tparam.setField(field);\r\n\t\t\t\tData annotation = field.getAnnotation(Data.class);\r\n\t\t\t\tif (annotation != null) {\r\n\t\t\t\t\tparam.initFromAnnotation(annotation);\r\n\t\t\t\t\tmaps.put(param.getTag(), param);\r\n\t\t\t\t\ttry {\r\n\t\t\t\t\t\tset.add((AnnotationData) param.clone());\r\n\t\t\t\t\t} catch (CloneNotSupportedException e) {\r\n\t\t\t\t\t\t// do nothing\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tmapSet.put(clazz.getName(), set);\r\n\t\t\tmap.put(clazz.getName(), maps);\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "f29861be3b6eab6121a493b98d7c4b45", "score": "0.4831842", "text": "public String mo1649e() {\n return \"annotation\";\n }", "title": "" }, { "docid": "5949411b5388f827292a015654d86124", "score": "0.48292887", "text": "public org.jetbrains.kotlin.backend.common.serialization.proto.IrConstructorCall getAnnotation(int index) {\n return annotation_.get(index);\n }", "title": "" }, { "docid": "1567b8795d2a5127defa123f4baed03e", "score": "0.4817481", "text": "public org.jetbrains.kotlin.backend.common.serialization.proto.IrConstructorCall getAnnotation(int index) {\n return annotation_.get(index);\n }", "title": "" }, { "docid": "955e76e7b0ef225b42d32763f906f5ff", "score": "0.48099592", "text": "@Test\n\tpublic void scanMetaAnnotationTest() {\n\t\tfinal List<Annotation> annotations = AnnotationUtil.scanMetaAnnotation(RootAnnotation.class);\n\t\tAssert.assertEquals(4, annotations.size());\n\t\tAssert.assertEquals(RootMetaAnnotation3.class, annotations.get(0).annotationType());\n\t\tAssert.assertEquals(RootMetaAnnotation1.class, annotations.get(1).annotationType());\n\t\tAssert.assertEquals(RootMetaAnnotation2.class, annotations.get(2).annotationType());\n\t\tAssert.assertEquals(RootMetaAnnotation3.class, annotations.get(3).annotationType());\n\t}", "title": "" }, { "docid": "80f2e72978879598a2165f132e69d9e8", "score": "0.48082805", "text": "@Test(expected = java.lang.IllegalArgumentException.class)\n\tpublic void testGetAnnotation_2()\n\t\tthrows Exception {\n\t\tAnnotationMethodInterceptor fixture = new AuthenticatedAnnotationMethodInterceptor();\n\t\tMethodInvocation mi = null;\n\n\t\tAnnotation result = fixture.getAnnotation(mi);\n\n\t\t// add additional test code here\n\t\tassertNotNull(result);\n\t}", "title": "" }, { "docid": "6bb4e29b1809ff5e3956d081e2ba984d", "score": "0.48051578", "text": "public abstract Object annotate (\n String url, \n int lineNumber, \n String annotationType,\n Object timeStamp\n );", "title": "" }, { "docid": "d588834907eeb979adb6785f553dcfad", "score": "0.4805041", "text": "private XSElementDecl createAnnotationElementDecl(String localName) {\n/* 733 */ XSElementDecl eDecl = new XSElementDecl();\n/* 734 */ eDecl.fName = localName;\n/* 735 */ eDecl.fTargetNamespace = this.fTargetNamespace;\n/* 736 */ eDecl.setIsGlobal();\n/* 737 */ eDecl.fBlock = 7;\n/* */ \n/* 739 */ eDecl.setConstraintType((short)0);\n/* 740 */ return eDecl;\n/* */ }", "title": "" }, { "docid": "c1436580662d9e53198e355194821d45", "score": "0.47810796", "text": "public static Annotation getAnnotationforJPbyAnnType(\n\t Object jp, final Class<? extends Annotation> annotation\n\t)\n\t{\n\t\tAnnotation ann = null;\n\t\t\n\t\tif (jp != null)\n\t\t{\n\t\t\tif (jp instanceof JoinPoint || jp instanceof ProceedingJoinPoint)\n\t\t\t{\n\t\t\t\tJoinPoint jpCast = (JoinPoint) jp; // Join point in Super Interface of PJP so will cast to more generic\n\t\t\t\t\n\t\t\t\tClass<?> klass = jpCast.getTarget().getClass();\n\t\t\t\t\n\t\t\t\tfinal ArrayList<Method> allMethods = new ArrayList<Method>(Arrays.asList(klass.getDeclaredMethods()));\n\t\t\t\tfor (final Method method : allMethods)\n\t\t\t\t{\n\t\t\t\t\tif (method.isAnnotationPresent(annotation))\n\t\t\t\t\t{\n\t\t\t\t\t\tif (method.getName().equals(jpCast.getSignature().getName()))\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t/*\n\t\t\t\t\t\t\t * Looking Specifically for Join Point Method if the Class has multiple same Annotations\n\t\t\t\t\t\t\t */\n\t\t\t\t\t\t\tann = method.getAnnotation(annotation);\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t}\n\t\t\n\t\treturn ann;\n\t}", "title": "" }, { "docid": "2f4c66e7631d042f430f51192fbd3595", "score": "0.47801605", "text": "private static List<UIMAAnnotation> parseNestedAnnotations(List<UIMAAnnotation> annotations) {\r\n\t\t\r\n\t\tSystem.out.println(UTIL_NAME + \"method parseNestedAnnotations\");\r\n\t\t\r\n\t\tif(annotations.isEmpty()) {\r\n\t\t\treturn annotations;\r\n\t\t}\r\n\t\telse {\r\n\t\t\t//Ordino le annotazioni in base al campo \"Begin\"\r\n\t\t\tannotations = mergeSort(annotations);\r\n\r\n\t\t\t//Variabile booleana che blocca il secondo ciclo for se non ci sono più annotazioni annidate\r\n\t \tBoolean finished = false;\r\n\t\t\t//Scorro la lista dalla penultima posizione indietro\r\n\t \tint back;\r\n\t \tint forward;\r\n\t \t//variabile utilizzata per memorizzare la lunghezza parziale della lista nel secondo ciclo for\r\n\t \tint length = annotations.size();;\r\n\t \tfor(back = length-2; back >= 0; back--) {\r\n\t \t\t//Prendo l'annotazione in posizione back nella lista\r\n\t \t\tUIMAAnnotation a = annotations.get(back);\r\n\t\t\t\t//verifico se, tra le annotazioni che vanno da back alla fine ce ne sono di annidate rispetto ad a\r\n\t\t\t\tfor(forward = back + 1; forward < length && !finished; forward++) {\r\n\t\t\t\t\t//prendo l'annotazione in posizione forward\r\n\t\t\t\t\tUIMAAnnotation possibleNestedAnnotation = annotations.get(forward);\r\n\t\t\t\t\t\r\n\t \t\t\t//L'annotazione non è annidata\r\n\t\t\t\t\tif(a.getEnd() <= possibleNestedAnnotation.getBegin()) {\r\n\t\t \t\t\t//da questa annotazione in poi non troverò annotazioni annidate: sono in ordine di Begin\r\n\t\t \t\t\tfinished = true;\r\n\t\t \t\t}\r\n\t\t\t\t\t//L'annotazione è completamente annidata\r\n\t\t \t\telse if(a.getBegin() <= possibleNestedAnnotation.getBegin() \r\n\t\t \t\t\t\t&& a.getEnd() >= possibleNestedAnnotation.getEnd()) {\r\n\t\t \t\t\ta.insertNestedAnnotation(possibleNestedAnnotation);\r\n\t\t \t\t\tannotations.remove(forward);\r\n\t\t \t\t\tlength--;\r\n\t\t \t\t\tforward--;\r\n\t\t \t\t}\r\n\t\t \t\telse if(a.getBegin() <= possibleNestedAnnotation.getBegin() \r\n\t\t \t\t\t\t&& a.getEnd() < possibleNestedAnnotation.getEnd()) {\r\n\t\t \t\t\t//l'annotazione va messa solo in parte all'interno di a\r\n\t\t \t\t\tString message = \"PARSING: l'annotazione va messa solo in parte all'interno di a\";\r\n\t\t \t\t\tSystem.out.println(UTIL_NAME + message);\r\n\t\t \t\t\t//imposto che iterator è \"nested\"\r\n\t\t \t\t}\r\n\t\t\t\t}\r\n\t\t\t\tif(finished) {\r\n\t\t\t\t\tfinished = false;\r\n\t\t\t\t}\r\n\t \t}\r\n\t\t\treturn mergeSort(annotations);\r\n\t\t}\r\n\t\t\r\n\t}", "title": "" }, { "docid": "3b9464258be230531bde75033c00899d", "score": "0.4779275", "text": "public String getAnnotationAt(int index) {\n return mAnnotations.get(index);\n }", "title": "" }, { "docid": "a2cdacfe09cb6accc94ccea7797341ef", "score": "0.4770466", "text": "@Test\n public void testInterfaceWithGlobalAccessMethodCustomNamespace() throws Exception {\n String intfSource = \"<aura:interface access='org.auraframework.impl.test.util.TestAccessMethods.allowGlobal'/>\";\n DefDescriptor<InterfaceDef> descriptor = \n getAuraTestingUtil().addSourceAutoCleanup(InterfaceDef.class,\n intfSource, StringSourceLoader.DEFAULT_CUSTOM_NAMESPACE+\":testInterface\",\n NamespaceAccess.CUSTOM);\n Source<InterfaceDef> source = stringSourceLoader.getSource(descriptor);\n \n Parser<InterfaceDef> parser = parserFactory.getParser(Format.XML, descriptor);\n Definition def = parser.parse(descriptor, source);\n try {\n def.validateDefinition();\n fail(\"Expect to die with InvalidAccessValueException\");\n } catch (InvalidAccessValueException e) {\n String expectedMsg = \"Access attribute may not use a static method\";\n assertTrue(\"Getting this message instead:\"+e.getMessage(), e.getMessage().contains(expectedMsg));\n }\n }", "title": "" }, { "docid": "ed50bace02312bd9459ea2880215bd98", "score": "0.4767162", "text": "private boolean isAtAttribute() {\n if (!tokenizer.current().isIdentifier() || !tokenizer.next().isSymbol(\":\")) {\n return false;\n }\n\n // We have to actually search for the final \";\" to determine if we're\n // really looking at an attribute....\n int i = 2;\n while (true) {\n Token next = tokenizer.next(i);\n if (next.isEnd() || next.isSymbol(\";\")) {\n return true;\n } else if (next.isSymbol(\"{\")) {\n return false;\n } else {\n i++;\n }\n }\n }", "title": "" }, { "docid": "85e6456e69c2bfca0993bf8aecbd52b0", "score": "0.4764696", "text": "@Test(expected = IOException.class)\n public void testTypeWithSpace() throws Exception {\n NameSample.parse(\"<START:abc a> token <END>\", false);\n }", "title": "" }, { "docid": "7ea66b6af6e1d97a2dd18914c51f7e51", "score": "0.47621012", "text": "char getAnnotationChar();", "title": "" }, { "docid": "344945d6c13c5059e3468aeefab7fb02", "score": "0.4745156", "text": "public interface AnnotatedDataFrame {\n\n String[] columns = new String[]{\"ann_char\", \"ann_string\"};\n\n /**\n * Returns the annotation label.\n *\n * @return Annotation label as char\n */\n char getAnnotationChar();\n\n /**\n * Returns the annotation String\n *\n * @return Annotation String\n */\n String getAnnotationString();\n}", "title": "" }, { "docid": "a92d4ef8c2a1e50b9b4e893bf45fb514", "score": "0.4742416", "text": "public ASMifier visitMethodAnnotation(String desc, boolean visible) {\n/* 484 */ return visitAnnotation(desc, visible);\n/* */ }", "title": "" }, { "docid": "9175cf3c52cae1ff2812b6719c8e773f", "score": "0.4732648", "text": "public org.jetbrains.kotlin.backend.common.serialization.proto.IrConstructorCallOrBuilder getAnnotationOrBuilder(\n int index) {\n return annotation_.get(index);\n }", "title": "" }, { "docid": "51c6d9227c6aed2b85b64bdf5a83abe7", "score": "0.47297215", "text": "public String getAnnotationAsString() {\n return createAnnotationString(new StringBuilder(0)).toString();\n }", "title": "" }, { "docid": "d6500b40ab9acb2317e212bee9e0d51e", "score": "0.47279322", "text": "public Listener getAnnotation() {\n return annotation;\n }", "title": "" }, { "docid": "e7f4abab8c01994e65cfcc3f2c8e2ca4", "score": "0.4723226", "text": "private static String processAnnotation(final Class<?> clazz) throws ClassNotFoundException {\r\n\r\n\t\tBeanName beanName = null;\r\n\t\tString retrn = null;\r\n\r\n\t\tif (clazz.isAnnotationPresent(ANNOTATION)) {\r\n\t\t\tbeanName = (BeanName) clazz.getAnnotation(ANNOTATION);\r\n\t\t\tif (null == beanName) {\r\n\t\t\t\tthrow new IllegalArgumentException(ANNOTATION.getName() + \" annotation was not found on class \"\r\n\t\t\t\t\t\t+ clazz.getName() + \".\");\r\n\t\t\t}\r\n\t\t\tretrn = beanName.id();\r\n\t\t}\r\n\r\n\t\treturn retrn;\r\n\t}", "title": "" }, { "docid": "113b4b76d1189baeee6c81ad27ef9dbc", "score": "0.47179934", "text": "public void test011() throws Exception {\n\t\tthis.runNegativeTest(\n\t\t\t\tnew String[] {\n\t\t\t\t\t\"X.java\",\n\t\t\t\t\t\"public @interface X { \\n\" +\n\t\t\t\t\t\"\tpublic @Marker String value(); \\n\" +\n\t\t\t\t\t\"\t@Marker String value2(); \\n\" +\n\t\t\t\t\t\"\t@Marker public String value3(); \\n\" +\n\t\t\t\t\t\"\tpublic @Marker <T> @Marker String value4(); \\n\" +\n\t\t\t\t\t\"\t@Marker <T> @Marker String value5(); \\n\" +\n\t\t\t\t\t\"\t@Marker public <T> @Marker String value6(); \\n\" +\n\t\t\t\t\t\"}\\n\" +\n\t\t\t\t\t\n\t\t\t\t\t\"@java.lang.annotation.Target (java.lang.annotation.ElementType.TYPE_USE)\\n\" +\n\t\t\t\t\t\"@interface Marker {}\\n\",\n\t\t\t\t\t\n\t\t\t\t\t\"java/lang/annotation/ElementType.java\",\n\t\t\t\t\t\"package java.lang.annotation;\\n\"+\n\t\t\t\t\t\"public enum ElementType {\\n\" +\n\t\t\t\t\t\" TYPE,\\n\" +\n\t\t\t\t\t\" FIELD,\\n\" +\n\t\t\t\t\t\" METHOD,\\n\" +\n\t\t\t\t\t\" PARAMETER,\\n\" +\n\t\t\t\t\t\" CONSTRUCTOR,\\n\" +\n\t\t\t\t\t\" LOCAL_VARIABLE,\\n\" +\n\t\t\t\t\t\" ANNOTATION_TYPE,\\n\" +\n\t\t\t\t\t\" PACKAGE,\\n\" +\n\t\t\t\t\t\" TYPE_PARAMETER,\\n\" +\n\t\t\t\t\t\" TYPE_USE\\n\" +\n\t\t\t\t\t\"}\\n\"\n\t\t\t\t},\n\t\t\t\t\"----------\\n\" + \n\t\t\t\t\"1. ERROR in X.java (at line 5)\\n\" + \n\t\t\t\t\"\tpublic @Marker <T> @Marker String value4(); \\n\" + \n\t\t\t\t\"\t ^^^^^^^\\n\" + \n\t\t\t\t\"Syntax error, type annotations are illegal here\\n\" + \n\t\t\t\t\"----------\\n\" + \n\t\t\t\t\"2. ERROR in X.java (at line 5)\\n\" + \n\t\t\t\t\"\tpublic @Marker <T> @Marker String value4(); \\n\" + \n\t\t\t\t\"\t ^^^^^^^^\\n\" + \n\t\t\t\t\"Annotation attributes cannot be generic\\n\" + \n\t\t\t\t\"----------\\n\" + \n\t\t\t\t\"3. ERROR in X.java (at line 6)\\n\" + \n\t\t\t\t\"\t@Marker <T> @Marker String value5(); \\n\" + \n\t\t\t\t\"\t ^^^^^^^\\n\" + \n\t\t\t\t\"Syntax error, type annotations are illegal here\\n\" + \n\t\t\t\t\"----------\\n\" + \n\t\t\t\t\"4. ERROR in X.java (at line 6)\\n\" + \n\t\t\t\t\"\t@Marker <T> @Marker String value5(); \\n\" + \n\t\t\t\t\"\t ^^^^^^^^\\n\" + \n\t\t\t\t\"Annotation attributes cannot be generic\\n\" + \n\t\t\t\t\"----------\\n\" + \n\t\t\t\t\"5. ERROR in X.java (at line 7)\\n\" + \n\t\t\t\t\"\t@Marker public <T> @Marker String value6(); \\n\" + \n\t\t\t\t\"\t ^^^^^^^\\n\" + \n\t\t\t\t\"Syntax error, type annotations are illegal here\\n\" + \n\t\t\t\t\"----------\\n\" + \n\t\t\t\t\"6. ERROR in X.java (at line 7)\\n\" + \n\t\t\t\t\"\t@Marker public <T> @Marker String value6(); \\n\" + \n\t\t\t\t\"\t ^^^^^^^^\\n\" + \n\t\t\t\t\"Annotation attributes cannot be generic\\n\" + \n\t\t\t\t\"----------\\n\");\n\t}", "title": "" }, { "docid": "05c8be58087122d88b7e609cc3784a2d", "score": "0.4717376", "text": "@Test\n public void testInterfaceWithGlobalAndPrivateAccessPrivilegedNamespace() throws Exception {\n String intfSource = \"<aura:interface access='GLOBAL, PRIVATE'/>\";\n DefDescriptor<InterfaceDef> descriptor = \n getAuraTestingUtil().addSourceAutoCleanup(InterfaceDef.class,\n intfSource, \"privilegedNS:testInterface\",\n NamespaceAccess.PRIVILEGED);\n Source<InterfaceDef> source = stringSourceLoader.getSource(descriptor);\n \n Parser<InterfaceDef> parser = parserFactory.getParser(Format.XML, descriptor);\n Definition def = parser.parse(descriptor, source);\n try {\n def.validateDefinition();\n fail(\"Expect to die with InvalidAccessValueException\");\n } catch (InvalidAccessValueException e) {\n String expectedMsg = \"Access attribute can only specify one of GLOBAL, PUBLIC, or PRIVATE\";\n assertTrue(\"Getting this message instead:\"+e.getMessage(), e.getMessage().contains(expectedMsg));\n }\n }", "title": "" }, { "docid": "773cc134f035b36ec6c2bb3f9d107ff3", "score": "0.4716828", "text": "@Override\npublic void endElement(String uri, String name, String qName)\n{\n Annotation top = anStack.pop();\n\n if (!top.getType().equals(name)) throw new RuntimeException(\"SGML type mismatch\");\n\n top.setEndOffset(offset);\n}", "title": "" }, { "docid": "43acb549c4a0b11f64619a0edeb6c2c1", "score": "0.47152075", "text": "public void nameInterface (String s) {\n \tint count =0, tmp3;\n \tString str;\n \tfindClass f = new findClass();\n \t//System.out.println(\"Class: \");\n int i1 = s.indexOf(\" interface \");\n //int i2;\n for (int i=i1; i< s.length(); i++) {\n \tif (i ==-1) break;\n \tint i2 = s.indexOf(\" \", i+11);\n \tString tmp = s.substring(i +11, i2);\n \tSystem.out.println(\"=== Interface Class ===\");\n \tSystem.out.println(\"+Name: \" + tmp);\n \tint k1 = s.indexOf(\"{\", i);\n \tfor (int j=k1; j <s.length(); j++){\n \t\t\tif(j ==-1) break;\n \t\t\tif(count==0) {\n \t\t\t}\n \t\t\tif(s.charAt(j) == '{') {\n count++; \n }\n \t\t\tif(s.charAt(j) == '}') {\n \t\t count--;\n \t\t if(count ==0) {\n \t\t tmp3=j;\t \n \t\t j = s.indexOf(\"{\", tmp3)-1;\n \t\t str = s.substring(i, tmp3-1); \n f.nameMethod(str);\n f.nameAttribute(str, s);\n if (f.hasImplement(str)) {\n \tSystem.out.println(\"* \" + tmp + \" is a: \");\n\t for (int x= 0; x<f.getImplement(str).length; x++) {\n\t \tSystem.out.print(f.getImplement(str)[x].trim() + \" \");\n\t }\n\t System.out.println(\" *\");\n }\n break;\n }\n }\n }\n \ti = s.indexOf(\" interface \", i+1) -1;\n }\n }", "title": "" }, { "docid": "e02c87c447c235d2ab31cb0e336586ad", "score": "0.47059155", "text": "@Test\n public void testInterfaceWithPublicAndPublicAccessPrivilegedNamespace() throws Exception {\n String intfSource = \"<aura:interface access='PUBLIC, PUBLIC'/>\";\n DefDescriptor<InterfaceDef> descriptor = \n getAuraTestingUtil().addSourceAutoCleanup(InterfaceDef.class,\n intfSource, \"privilegedNS:testInterface\",\n NamespaceAccess.PRIVILEGED);\n Source<InterfaceDef> source = stringSourceLoader.getSource(descriptor);\n \n Parser<InterfaceDef> parser = parserFactory.getParser(Format.XML, descriptor);\n Definition def = parser.parse(descriptor, source);\n def.validateDefinition();\n }", "title": "" }, { "docid": "8e9bba8b0e9b6f4a6510317bbf5474c2", "score": "0.47032818", "text": "@Test\n public void testInterfaceWithGlobalAndPrivateAccessInternalNamespace() throws Exception {\n String intfSource = \"<aura:interface access='GLOBAL, PRIVATE'/>\";\n DefDescriptor<InterfaceDef> descriptor = \n getAuraTestingUtil().addSourceAutoCleanup(InterfaceDef.class,\n intfSource, StringSourceLoader.DEFAULT_NAMESPACE+\":testInterface\",\n NamespaceAccess.INTERNAL);\n Source<InterfaceDef> source = stringSourceLoader.getSource(descriptor);\n \n Parser<InterfaceDef> parser = parserFactory.getParser(Format.XML, descriptor);\n Definition def = parser.parse(descriptor, source);\n try {\n def.validateDefinition();\n fail(\"Expect to die with InvalidAccessValueException\");\n } catch (InvalidAccessValueException e) {\n String expectedMsg = \"Access attribute can only specify one of GLOBAL, PUBLIC, or PRIVATE\";\n assertTrue(\"Getting this message instead:\"+e.getMessage(), e.getMessage().contains(expectedMsg));\n }\n }", "title": "" }, { "docid": "75cb0157e153abcefb491068d38f8662", "score": "0.46965492", "text": "public static OWLAnnotationProperty annotationProperty(String annotationProperty) throws NeOnCoreException {\r\n try {\r\n return new InternalParserFunctionalSyntax().getAnnotationProperty(annotationProperty);\r\n } catch (ParseException firstException) {\r\n try {\r\n return new InternalParserFunctionalSyntax().getAnnotationProperty(IRIUtils.ensureValidIRISyntax(annotationProperty));\r\n } catch (ParseException e1) {\r\n throw new InternalNeOnException(firstException);\r\n }\r\n }\r\n }", "title": "" }, { "docid": "07019065ca073ef835ee0c9fba1ec583", "score": "0.46911207", "text": "@Test\n public void testInterfaceWithUnAuthenticationMethodInternalNamespace() throws Exception {\n String intfSource = \"<aura:interface access='org.auraframework.impl.test.util.TestAccessMethods.allowAuthenticated'/>\";\n DefDescriptor<InterfaceDef> descriptor = \n getAuraTestingUtil().addSourceAutoCleanup(InterfaceDef.class,\n intfSource, StringSourceLoader.DEFAULT_NAMESPACE+\":testInterface\",\n NamespaceAccess.INTERNAL);\n Source<InterfaceDef> source = stringSourceLoader.getSource(descriptor);\n \n Parser<InterfaceDef> parser = parserFactory.getParser(Format.XML, descriptor);\n Definition def = parser.parse(descriptor, source);\n try {\n def.validateDefinition();\n fail(\"Expect to die with InvalidAccessValueException\");\n } catch(InvalidAccessValueException e) {\n String expectedMsg = \"\\\"org.auraframework.impl.test.util.TestAccessMethods.allowAuthenticated\\\" must return a result of type org.auraframework.system.AuraContext$Access\";\n assertTrue(\"Getting this message instead:\"+e.getMessage(), e.getMessage().contains(expectedMsg));\n }\n }", "title": "" }, { "docid": "f3678ccd13213db730a52f2103be9a8b", "score": "0.46886465", "text": "public AnnotationListNode getAnnotations()throws ClassCastException;", "title": "" }, { "docid": "66e2b8f57561c18781a9832f71cd2ac4", "score": "0.46862665", "text": "@Test\n public void testInterfaceWithDefaultAccessInternalNamespace() throws Exception {\n String intfSource = \"<aura:interface/>\";\n DefDescriptor<InterfaceDef> descriptor = \n getAuraTestingUtil().addSourceAutoCleanup(InterfaceDef.class,\n intfSource, StringSourceLoader.DEFAULT_NAMESPACE+\":testInterface\",\n NamespaceAccess.INTERNAL);\n Source<InterfaceDef> source = stringSourceLoader.getSource(descriptor);\n \n Parser<InterfaceDef> parser = parserFactory.getParser(Format.XML, descriptor);\n Definition def = parser.parse(descriptor, source);\n def.validateDefinition();\n }", "title": "" }, { "docid": "f68368263a0d270bf86dd3ab0f0b0e77", "score": "0.46853608", "text": "@Test\n public void testInterfaceWithDefaultAccessPrivilegedNamespace() throws Exception {\n String intfSource = \"<aura:interface/>\";\n DefDescriptor<InterfaceDef> descriptor = \n getAuraTestingUtil().addSourceAutoCleanup(InterfaceDef.class,\n intfSource, \"privilegedNS:testInterface\",\n NamespaceAccess.PRIVILEGED);\n Source<InterfaceDef> source = stringSourceLoader.getSource(descriptor);\n \n Parser<InterfaceDef> parser = parserFactory.getParser(Format.XML, descriptor);\n Definition def = parser.parse(descriptor, source);\n def.validateDefinition();\n }", "title": "" }, { "docid": "6ed0a1c20d48e4a2cfb93bd0e812b817", "score": "0.4678498", "text": "@Test\n public void testInterfaceWithPublicAndPublicAccessInternalNamespace() throws Exception {\n String intfSource = \"<aura:interface access='PUBLIC, PUBLIC'/>\";\n DefDescriptor<InterfaceDef> descriptor = \n getAuraTestingUtil().addSourceAutoCleanup(InterfaceDef.class,\n intfSource, StringSourceLoader.DEFAULT_NAMESPACE+\":testInterface\",\n NamespaceAccess.INTERNAL);\n Source<InterfaceDef> source = stringSourceLoader.getSource(descriptor);\n \n Parser<InterfaceDef> parser = parserFactory.getParser(Format.XML, descriptor);\n Definition def = parser.parse(descriptor, source);\n def.validateDefinition();\n }", "title": "" }, { "docid": "27d6307005ac8993780acbb033e7ba3d", "score": "0.46720988", "text": "@Test\n public void testInterfaceWithGlobalAccessPrivilegedNamespace() throws Exception {\n String intfSource = \"<aura:interface access='GLOBAL'/>\";\n DefDescriptor<InterfaceDef> descriptor = \n getAuraTestingUtil().addSourceAutoCleanup(InterfaceDef.class,\n intfSource, \"privilegedNS:testInterface\",\n NamespaceAccess.PRIVILEGED);\n Source<InterfaceDef> source = stringSourceLoader.getSource(descriptor);\n \n Parser<InterfaceDef> parser = parserFactory.getParser(Format.XML, descriptor);\n Definition def = parser.parse(descriptor, source);\n def.validateDefinition();\n }", "title": "" } ]
7c30f6a55e842f681879b840c48de47c
Allows each filter to have special rules to apply when filtering, should return TRUE if there are NO special rules to be applied for that data. In example, we want to see if a file has '.' before it, special rules can then take the string, turn it into a char array and check the first spot if its a '.' without breaking the dynamics of the filter itself.
[ { "docid": "51eab52c4b53ef66e3f56ba7f553ebbd", "score": "0.66161925", "text": "public abstract boolean specialRules(String data);", "title": "" } ]
[ { "docid": "d9df29ecd415bb6681eaf3946e3b15b7", "score": "0.60995644", "text": "public boolean filterSelection(String data) {\n for (String filter : this) {\n if (!specialRules(data))\n return false;\n if (data.contains(filter))\n return false;\n }\n\n return true; // nothing stopped the method from reaching this point.\n\n }", "title": "" }, { "docid": "06676e789b094aa9fdee12eed7ca9b8e", "score": "0.5882253", "text": "@Override\r\n\tpublic boolean isValid(FileFilter filter, ConstraintValidatorContext unused) {\r\n\t\tboolean valid = false;\r\n\t\tif (filter != null) {\r\n if ((filter.getPatternType() != null) && \r\n \t(filter.getPattern() != null)) {\r\n \tif (filter.getPatternType().equals(FileFilter.Pattern.REGEX)) {\r\n \t\ttry {\r\n Pattern.compile(filter.getPattern());\r\n valid = true;\r\n } catch (PatternSyntaxException pse) {\r\n valid = false;\r\n }\r\n \t}\r\n }\r\n\t\t}\r\n\t\treturn valid;\r\n\t}", "title": "" }, { "docid": "cf7c66c393428bdec17559101ea41ecb", "score": "0.5802496", "text": "private static FileFilter filterAll(String[] parsedLine) {\n\t\ttry {\n\t\t\thasErrorInAllFilter(parsedLine); // check for errors\n\n\t\t\tif (HasNotSuffix(parsedLine)) {\n\t\t\t\treturn allCheck(true);\n\t\t\t}\n\t\t\treturn allCheck(false);\n\t\t} catch (IllegalArgumentException exception) {\n\t\t\tfoundError = true;\n\t\t\treturn null;\n\t\t}\n\t}", "title": "" }, { "docid": "0bc1953915506c96dbc3bbe717f325ea", "score": "0.5777589", "text": "public interface Filter {\n\tfinal static String HAS_PROPERTY = \"YES\";\n\tstatic String HAS_NOT_PROPERTY = \"NO\";\n\t\n\t/**\n\t * @return true if the file matches the filter's criteria,\n\t * false otherwise.\n\t * @param file - the file to filter.\n\t */\n\tpublic boolean isPass(File file);\n\t\n}", "title": "" }, { "docid": "06cedffb10037c5dabcccf2448459ba7", "score": "0.57758105", "text": "public static Filter createFilter(String filterString) throws FileProcessingWarning{\n\n List<String> data = split(filterString);\n String name = data.get(NAME_INDEX);\n String argument1;\n boolean not = ifNot(data);\n\n switch (name){\n case GREATER_THAN_FILTER:\n argument1 = data.get(ARGUMENT1_INDEX);\n if(testInput(argument1, null, DOMAIN_IS_LEGAL_DOUBLE_TEST)) {\n return new GreaterThanFilter(argument1, not);\n }\n throw new BadParametersWarning(BAD_DOMAIN_DOUBLE_MSG, WARNING_LINE);\n\n case SMALLER_THAN_FILTER:\n argument1 = data.get(ARGUMENT1_INDEX);\n if(testInput(argument1, null, DOMAIN_IS_LEGAL_DOUBLE_TEST)) {\n return new SmallerThanFilter(argument1, not);\n }\n throw new BadParametersWarning(BAD_DOMAIN_DOUBLE_MSG, WARNING_LINE);\n\n case BETWEEN_FILTER:\n argument1 = data.get(ARGUMENT1_INDEX);\n String argument2 = data.get(ARGUMENT2_INDEX);\n\n if(testInput(argument1, argument2, DOMAIN_IS_LEGAL_DOUBLE_TEST)) {\n if(testInput(argument1, argument2, DOMAIN_BETWEEN_TEST)){\n return new BetweenFilter(argument1, argument2, not);\n }\n throw new BadBetweenDomain(BAD_DOMAIN_BETWEEN_MSG, WARNING_LINE);\n }\n throw new BadParametersWarning(BAD_DOMAIN_DOUBLE_MSG, WARNING_LINE);\n\n case ALL_FILTER:\n return new AllFilter(not);\n\n case CONTAINS_FILTER:\n argument1 = data.get(ARGUMENT1_INDEX);\n return new ContainsFilter(argument1, not);\n\n case EXECUTABLE_FILTER:\n argument1 = data.get(ARGUMENT1_INDEX);\n if(testInput(argument1, null, DOMAIN_YES_NO_TEST)) {\n return new ExecutableFilter(argument1, not);\n }\n throw new BadParametersWarning(BAD_DOMAIN_YES_NO_MSG, WARNING_LINE);\n\n case FILE_FILTER:\n argument1 = data.get(ARGUMENT1_INDEX);\n return new FileFilter(argument1, not);\n\n case HIDDEN_FILTER:\n argument1 = data.get(ARGUMENT1_INDEX);\n if(testInput(argument1, null, DOMAIN_YES_NO_TEST)) {\n return new HiddenFilter(argument1, not);\n }\n throw new BadParametersWarning(BAD_DOMAIN_YES_NO_MSG, WARNING_LINE);\n\n case PREFIX_FILTER:\n argument1 = data.get(ARGUMENT1_INDEX);\n return new PrefixFilter(argument1, not);\n\n case SUFFIX_FILTER:\n argument1 = data.get(ARGUMENT1_INDEX);\n return new SuffixFilter(argument1, not);\n\n case WRITABLE_FILTER:\n argument1 = data.get(ARGUMENT1_INDEX);\n if(testInput(argument1, null, DOMAIN_YES_NO_TEST)) {\n return new WritableFilter(argument1, not);\n }\n throw new BadParametersWarning(BAD_DOMAIN_YES_NO_MSG, WARNING_LINE);\n\n default: throw new BadNameWarning(BAD_FILTER_NAME_MSG, WARNING_LINE);\n }\n }", "title": "" }, { "docid": "511b99014c486f1c361e8db1a69b7326", "score": "0.57377005", "text": "java.lang.String getFilter();", "title": "" }, { "docid": "511b99014c486f1c361e8db1a69b7326", "score": "0.57377005", "text": "java.lang.String getFilter();", "title": "" }, { "docid": "511b99014c486f1c361e8db1a69b7326", "score": "0.57377005", "text": "java.lang.String getFilter();", "title": "" }, { "docid": "511b99014c486f1c361e8db1a69b7326", "score": "0.57377005", "text": "java.lang.String getFilter();", "title": "" }, { "docid": "407b197f767ef81166757fdb504ffb15", "score": "0.5652541", "text": "public FilterResults performFiltering(CharSequence charSequence) {\n String str;\n String[] b;\n String[] d;\n ArrayList arrayList = new ArrayList();\n String lowerCase = String.valueOf(charSequence).toLowerCase();\n String[] split = lowerCase.split(\"\\\\.\");\n int i = 0;\n if (split.length == 2) {\n String str2 = split[0];\n str = split[1];\n if (C0377a.f2825c.mo3030f(str2)) {\n String[] a = C0377a.f2825c.mo3012a(str2);\n int length = a.length;\n while (i < length) {\n String str3 = a[i];\n if (str3.toLowerCase().startsWith(str)) {\n arrayList.add(str3);\n }\n i++;\n }\n }\n } else {\n if (split.length == 1) {\n if (lowerCase.charAt(lowerCase.length() - 1) == '.') {\n String substring = lowerCase.substring(0, lowerCase.length() - 1);\n str = BuildConfig.FLAVOR;\n if (C0377a.f2825c.mo3030f(substring)) {\n String[] a2 = C0377a.f2825c.mo3012a(substring);\n int length2 = a2.length;\n while (i < length2) {\n arrayList.add(a2[i]);\n i++;\n }\n }\n } else {\n for (String str4 : C0377a.f2825c.mo3017b()) {\n if (str4.toLowerCase().startsWith(lowerCase)) {\n arrayList.add(str4);\n }\n }\n for (String str5 : C0377a.f2825c.mo3024d()) {\n if (str5.indexOf(lowerCase) == 0) {\n arrayList.add(str5);\n }\n }\n String[] c = C0377a.f2825c.mo3021c();\n int length3 = c.length;\n while (i < length3) {\n String str6 = c[i];\n if (str6.toLowerCase().startsWith(lowerCase)) {\n arrayList.add(str6);\n }\n i++;\n }\n }\n }\n str = lowerCase;\n }\n C0377a.this.f2834j = str;\n FilterResults filterResults = new FilterResults();\n filterResults.values = arrayList;\n filterResults.count = arrayList.size();\n return filterResults;\n }", "title": "" }, { "docid": "5de8c1cbd4d77a0c9619fea51ae52a13", "score": "0.5628023", "text": "String getFilter();", "title": "" }, { "docid": "5de8c1cbd4d77a0c9619fea51ae52a13", "score": "0.5628023", "text": "String getFilter();", "title": "" }, { "docid": "5de8c1cbd4d77a0c9619fea51ae52a13", "score": "0.5628023", "text": "String getFilter();", "title": "" }, { "docid": "4076e6423d7b1f8e4813aaea3b7ea13f", "score": "0.559701", "text": "private boolean checkFilters(String mapLabel, String filter){\n if(filter.equals(\"\") || filter.equals(\"*\") || (mapLabel.compareTo(filter)==0) )\n return true;\n else if(filter.charAt(0) == '['){\n //System.out.println(filter);\n String startRange = filter.substring(1, filter.indexOf(','));\n String endRange = filter.substring(filter.indexOf(',')+1, filter.indexOf(']'));\n if(mapLabel.compareToIgnoreCase(startRange) >= 0 && mapLabel.compareToIgnoreCase(endRange) <= 0){\n return true;\n }\n }\n return false; \n }", "title": "" }, { "docid": "41230c60837f24280ca36d74aa7546f5", "score": "0.5478356", "text": "@Override\r\n\tpublic boolean checkSpecificFilter(String strToCheck) {\n\t\tif(!(s_caseX.equals(\"X\")&& s_caseY.equals(\"Y\")))\r\n\t\t{\r\n\t\t\t// On split la chaine a verifier\r\n\t\t\tString str[]=strToCheck.substring(1,strToCheck.length()-1).split(\",\");\r\n\t\t\t\r\n\t\t\t// Si on a pas de X en abscisse\r\n\t\t\t// On regarde si la valeur respecte le filtre\r\n\t\t\tif(!s_caseX.equals(\"X\"))\r\n\t\t\t{\r\n\t\t\t\tint i_caseX = Integer.valueOf(s_caseX);\r\n\t\t\t\tif(i_caseX != Integer.valueOf(str[0]))\r\n\t\t\t\t{\r\n\t\t\t\t\treturn false;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t// Si on a pas de Y en ordonnee\r\n\t\t\t// On regarde si la valeur respecte le filtre\r\n\t\t\tif(!s_caseY.equals(\"Y\"))\r\n\t\t\t{\r\n\t\t\t\tint i_caseY = Integer.valueOf(s_caseY);\r\n\t\t\t\tif(i_caseY != Integer.valueOf(str[1]))\r\n\t\t\t\t{\r\n\t\t\t\t\treturn false;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\treturn true;\r\n\t}", "title": "" }, { "docid": "ba8ca704b3dbeb851db8b4c21810ab8c", "score": "0.5429735", "text": "@Override\n protected ArrayList<String> filter(String pathToFile, String filter) {\n return null;\n }", "title": "" }, { "docid": "38bbce9296b4fa08728749b5c1794cca", "score": "0.5391033", "text": "private FilenameFilter buildFileNameFilter() {\r\n\t\tFilenameFilter textFilter = new FilenameFilter() {\r\n\t\t\tpublic boolean accept(File dir, String name) {\r\n\t\t\t\treturn true;\r\n\t\t\t}\r\n\t\t};\t\t\r\n\t\treturn textFilter;\r\n\t}", "title": "" }, { "docid": "7fc89589b991d6fb402be8e22716a594", "score": "0.5379611", "text": "public static boolean checkFilterLength(String [] filterText){\n\n int expectedArgumentAmount = 1;\n\n if(filterText.length == 0){\n return false;\n }\n\n if (!filterText[0].equals(\"all\")){\n expectedArgumentAmount++;\n }\n\n if (filterText[filterText.length - 1].equals(\"NOT\")){\n expectedArgumentAmount++;\n }\n\n if (filterText[0].equals(\"between\")){\n expectedArgumentAmount++;\n }\n\n return filterText.length == expectedArgumentAmount;\n }", "title": "" }, { "docid": "2438813c74f6edddf56212873612fe4f", "score": "0.53640455", "text": "public boolean accept(File f) {\n if (f.isDirectory()) {\n return true;\n }\n \n // XXX TJJ - at present, we are ONLY allowing MSG2 segment data files\n // through the filter which have already bee Wavelet decompressed\n // (i.e., they end with __ and not C_ )\n String fileName = f.getName();\n if ((fileName.endsWith(\"__\")) && (fileName.contains(\"MSG2\")) && (fileName.contains(extraFilter))) {\n \tString patternCheck = fileName.substring(46, 58);\n \tif (seenPatterns.contains(patternCheck)) {\n \t\treturn false;\n \t} else {\n \t\tseenPatterns.add(patternCheck);\n \t\treturn true;\n \t}\n } else {\n \treturn false;\n }\n \n }", "title": "" }, { "docid": "bfa72e353beb4179f7b8b9f8cfdd557c", "score": "0.5332932", "text": "void setFilter(String filterRegex);", "title": "" }, { "docid": "39395b005bde2aa5334bee0d324c6344", "score": "0.53291273", "text": "FileNameExtensionFilter getFilter();", "title": "" }, { "docid": "2f45f4005282a29e4f3915bbd5209e48", "score": "0.52938086", "text": "@Override\n\t\t\t\t\tpublic boolean filter(String value) throws Exception {\n\t\t\t\t\t\treturn value != null && value.length() > 50;\n\t\t\t\t\t}", "title": "" }, { "docid": "463214655c799e638e409988cade99c9", "score": "0.52576417", "text": "boolean checkFilter(Exp exp) {\n boolean b = true;\n for (int i = 0; i < exp.size(); i++) {\n Exp e1 = exp.get(i);\n if (e1.isFilter()) {\n b = compiler.check(e1) && b;\n\n for (int j = i + 1; j < exp.size(); j++) {\n Exp e2 = exp.get(j);\n if (e2.isFilter()) {\n b = compiler.check(e1, e2) && b;\n }\n }\n }\n }\n return b;\n }", "title": "" }, { "docid": "f7faaf871017deecf2012476ffdaadbc", "score": "0.5255126", "text": "@Test\n public void testBuildFilterWithStringFilter()\n {\n ScimClientConfig scimClientConfig = new ScimClientConfig();\n ScimHttpClient scimHttpClient = new ScimHttpClient(scimClientConfig);\n ListBuilder<User> listBuilder = new ListBuilder<>(getServerUrl() + EndpointPaths.USERS, User.class, scimHttpClient);\n final String filter = \"username SW \\\"hello\\\" and username CO \\\"_\\\" and username EW \\\"world\\\"\";\n listBuilder.filter(filter);\n final String filterFromBuilder = listBuilder.getRequestParameters().get(AttributeNames.RFC7643.FILTER);\n Assertions.assertEquals(filter, filterFromBuilder);\n parseFilterWithAntlr(filter);\n }", "title": "" }, { "docid": "9b310857fb1502754358ec90ab2adcfc", "score": "0.52436185", "text": "public abstract boolean isEmptyFilter();", "title": "" }, { "docid": "9a7151c697c103e93a65ad176b4692df", "score": "0.5236938", "text": "boolean hasTypeFilter();", "title": "" }, { "docid": "a332daa768f2970e4f8b1cd83d42bee7", "score": "0.52290744", "text": "private static FileFilter filterFile(String[] parsedLine) {\n\t\ttry {\n\t\t\thasErrorInFileFilter(parsedLine); // check for errors\n\n\t\t\tif (HasNotSuffix(parsedLine)) {\n\t\t\t\treturn fileCheck(parsedLine[1], true);\n\t\t\t}\n\t\t\treturn fileCheck(parsedLine[1], false);\n\t\t} catch (IllegalArgumentException exception) {\n\t\t\tfoundError = true;\n\t\t\treturn null;\n\t\t}\n\t}", "title": "" }, { "docid": "48f486de37e2629123d652f9b4fe835d", "score": "0.52264285", "text": "public Boolean getFilterLocally();", "title": "" }, { "docid": "88ed125bef2d21172d5d7852e45ae639", "score": "0.5213511", "text": "public static String getConditionFilter(String input, String operator,\n\t\t\tString filter) {\n\n\t\tif (\"equals\".equalsIgnoreCase(operator)) {\n//\t return \"$obj->{input}=='$obj->{filter}'\";\n\t\t\treturn input + \"=='\" + filter + \"'\";\n\n\t\t} else if (\"equals_ignore_case\".equalsIgnoreCase(operator)) {\n//\t return \"$obj->{input}.toString().toLowerCase()=='$obj->{filter}'.toLowerCase()\";\n\t\t\treturn input + \".toString().toLowerCase() ==\" + filter\n\t\t\t\t\t+ \".toLowerCase()\";\n\n\t\t} else if (\"starts_with\".equalsIgnoreCase(operator)) {\n\t\t\tString temp = filter.replaceAll(CONDITION_FILTER_PATTERN_REGEX,\n\t\t\t\t\t\"\\\\$&\");\n\t\t\t// $temp =~ s/$match/\\\\$&/g; #escape filter (e.g. / to \\/)\n\n//\t return '/^'. $temp .'/.test('.$obj->{input}.')';\n\t\t\treturn \"/^\" + temp + \"/.test(\" + input + \")\";\n\t\t} else if (\"starts_with_ignore_case\".equalsIgnoreCase(operator)) {\n\n\t\t\tString temp = filter.replaceAll(CONDITION_FILTER_PATTERN_REGEX,\n\t\t\t\t\t\"\\\\$&\");\n//\t return '/^'. $temp .'/i.test('.$obj->{input}.')';\n\t\t\treturn \"/^\" + temp + \"/i.test(\" + input + \")\";\n\t\t} else if (\"does_not_start_with\".equalsIgnoreCase(operator)) {\n\n\t\t\tString temp = filter.replaceAll(CONDITION_FILTER_PATTERN_REGEX,\n\t\t\t\t\t\"\\\\$&\");\n//\t return '!/^'. $temp .'/.test('.$obj->{input}.')';\n\t\t\treturn \"!/^\" + temp + \"/.test(\" + input + \")\";\n\t\t} else if (\"does_not_start_with_ignore_case\".equalsIgnoreCase(operator)) {\n\t\t\tString temp = filter.replaceAll(CONDITION_FILTER_PATTERN_REGEX,\n\t\t\t\t\t\"\\\\$&\");\n//\t return '!/^'. $temp .'/i.test('.$obj->{input}.')';\n\t\t\treturn \"!/^\" + temp + \"/i.test(\" + input + \")\";\n\n\t\t} else if (\"does_not_equal\".equalsIgnoreCase(operator)) {\n\t\t\treturn input + \"!='\" + filter + \"'\";\n\n\t\t} else if (\"does_not_equal_ignore_case\".equalsIgnoreCase(operator)) {\n\t\t\treturn input + \".toString().toLowerCase()!='\" + filter\n\t\t\t\t\t+ \"'.toLowerCase()\";\n\n\t\t} else if (\"ends_with\".equalsIgnoreCase(operator)) {\n\t\t\tString temp = filter.replaceAll(CONDITION_FILTER_PATTERN_REGEX,\n\t\t\t\t\t\"\\\\$&\");\n\t\t\treturn \"/\" + temp + \"$/.test(\" + input + \")\";\n\n\t\t} else if (\"ends_with_ignore_case\".equalsIgnoreCase(operator)) {\n\n\t\t\tString temp = filter.replaceAll(CONDITION_FILTER_PATTERN_REGEX,\n\t\t\t\t\t\"\\\\$&\");\n\t\t\treturn \"/\" + temp + \"$/i.test(\" + input + \")\";\n\n\t\t} else if (\"does_not_end_with\".equalsIgnoreCase(operator)) {\n\n\t\t\tString temp = filter.replaceAll(CONDITION_FILTER_PATTERN_REGEX,\n\t\t\t\t\t\"\\\\$&\");\n\t\t\treturn \"!/\" + temp + \"$/.test(\" + input + \")\";\n\n\t\t} else if (\"does_not_end_with_ignore_case\".equalsIgnoreCase(operator)) {\n\t\t\tString temp = filter.replaceAll(CONDITION_FILTER_PATTERN_REGEX,\n\t\t\t\t\t\"\\\\$&\");\n\t\t\treturn \"!/\" + temp + \"$/i.test(\" + input + \")\";\n\n\t\t} else if (\"contains\".equalsIgnoreCase(operator)) {\n\t\t\treturn input + \".toString().indexOf(\" + filter + \")>-1\";\n\n\t\t} else if (\"contains_ignore_case\".equalsIgnoreCase(operator)) {\n\t\t\treturn input + \".toString().toLowerCase().indexOf(\" + filter\n\t\t\t\t\t+ \".toLowerCase())>-1\";\n\t\t} else if (\"does_not_contain\".equalsIgnoreCase(operator)) {\n\t\t\treturn input + \".toString().indexOf(\" + filter + \")<0\";\n\n\t\t} else if (\"does_not_contain_ignore_case\".equalsIgnoreCase(operator)) {\n\t\t\treturn input + \".toString().toLowerCase().indexOf(\" + filter\n\t\t\t\t\t+ \".toLowerCase())<0\";\n\n\t\t} else if (\"is_badge_assigned\".equalsIgnoreCase(operator)) {\n\t\t\treturn \"typeof \" + input + \"!='undefined'\";\n\n\t\t} else if (\"is_badge_not_assigned\".equalsIgnoreCase(operator)) {\n\t\t\t// return \"typeof $obj->{input}=='undefined'\";\n\t\t\treturn \"typeof \" + input + \"=='undefined'\";\n\n\t\t} else if (\"defined\".equalsIgnoreCase(operator)) {\n\t\t\t// return \"typeof $obj->{input}!='undefined'\";\n\t\t\treturn \"typeof \" + input + \"!='undefined'\";\n\n\t\t} else if (\"notdefined\".equalsIgnoreCase(operator)) {\n\t\t\t// return \"typeof $obj->{input}=='undefined'\";\n\t\t\treturn \"typeof \" + input + \"=='undefined'\";\n\n\t\t} else if (\"populated\".equalsIgnoreCase(operator)) {\n\t\t\t// return \"typeof $obj->{input}!='undefined'&&$obj->{input}!=''\";\n\t\t\treturn \"typeof \" + input + \"!='undefined'&&\" + input + \"!=''\";\n\n\t\t} else if (\"notpopulated\".equalsIgnoreCase(operator)) {\n\t\t\t// return \"typeof $obj->{input}!='undefined'&&$obj->{input}==''\";\n\t\t\treturn \"typeof \" + input + \"!='undefined'&&\" + input + \"==''\";\n\n\t\t} else if (\"greater_than\".equalsIgnoreCase(operator)) {\n\t\t\t// return \"parseFloat($obj->{input})>parseFloat($obj->{filter})\";\n\t\t\treturn \"parseFloat(\" + input + \")>parseFloat(\" + filter + \")\";\n\n\t\t} else if (\"greater_than_equal_to\".equalsIgnoreCase(operator)) {\n\t\t\t// return \"parseFloat($obj->{input})>=parseFloat($obj->{filter})\";\n\t\t\treturn \"parseFloat(\" + input + \")>=parseFloat(\" + filter + \")\";\n\t\t} else if (\"less_than\".equalsIgnoreCase(operator)) {\n\t\t\t// return \"parseFloat($obj->{input})<parseFloat($obj->{filter})\";\n\t\t\treturn \"parseFloat(\" + input + \")<parseFloat(\" + filter + \")\";\n\n\t\t} else if (\"less_than_equal_to\".equalsIgnoreCase(operator)) {\n\t\t\t// return \"parseFloat($obj->{input})<=parseFloat($obj->{filter})\";\n\t\t\treturn \"parseFloat(\" + input + \")<=parseFloat(\" + filter + \")\";\n\n\t\t} else if (\"regular_expression\".equalsIgnoreCase(operator)) {\n\t\t\tif (filter.indexOf(\"/\") != 0) {\n\t\t\t\tfilter = \"/\" + filter + \"/\";\n\t\t\t}\n\n\t\t\t// return \"$obj->{filter}.test($obj->{input})\";\n\t\t\treturn filter + \".test(\" + input + \")\";\n\n\t\t}\n\n\t\treturn null;\n\t}", "title": "" }, { "docid": "030f664d203f02c5ca64f0ba426d8c4f", "score": "0.5198764", "text": "public static boolean customContains(String testStr, String filterStr) {\r\n // Ingore case\r\n testStr = testStr.toLowerCase();\r\n filterStr = filterStr.toLowerCase();\r\n \r\n // Ignore external whitespace\r\n testStr = testStr.trim();\r\n filterStr = filterStr.trim();\r\n \r\n return testStr.contains(filterStr);\r\n }", "title": "" }, { "docid": "902a903e8e31294141a10116b56db16c", "score": "0.51734966", "text": "private static FileFilter InputFiles()\r\n {\r\n return pathname ->\r\n pathname.isFile() &&\r\n (RScriptEngineFactory.isRScriptEngine(new String[] {FilenameUtils.getExtension(pathname.getName())})\r\n || RReport.DATA_INPUT.equals(pathname.getName()));\r\n }", "title": "" }, { "docid": "737906a5a570633a03b9ff18ff2ee2fe", "score": "0.51706326", "text": "public boolean hasFilter() {\r\n return filter != null && filter.trim().length() > 0 && !filterBy.isEmpty();\r\n }", "title": "" }, { "docid": "5a6135c67bada9d338cfbdeb1e4d0fc8", "score": "0.51391846", "text": "@Override\r\n public boolean doesPassFilter(File file) {\r\n return file.getName().startsWith(getPrefixValue());\r\n }", "title": "" }, { "docid": "5fb7c830ed8796e867c95057a891a221", "score": "0.5114421", "text": "private static String modifyFilterField(String filterField) {\n\t\t//nada or pass?\n\t\tif (filterField.length() == 0 || filterField.equals(\".\") || filterField.toUpperCase().equals(\"PASS\")) return \"BKAF\";\n\t\telse return \"BKAF;\" +filterField;\n\t}", "title": "" }, { "docid": "2937fc406225f9f1766b360969c53818", "score": "0.5112644", "text": "public interface TextFilter {\n\n /**\n * Creates a new String from the input String with invalid characters replaced\n * with valid characters.\n *\n * @param text Input text whose characters will be filtered\n * @return New String with filtered text\n */\n public abstract String filter(final String text);\n\n /**\n * Create a new String from the text found in the input stream replacing invalid characters\n * with valid characters.\n *\n *\n * @param inputStream Input Text Stream that will be filtered\n * @return New String with filtered Text\n * @throws java.io.IOException if there is an error reading the stream\n */\n public abstract String filter(InputStream inputStream) throws IOException;\n\n /**\n * Create a new String from the text found in the input stream replacing invalid characters\n * with valid characters. Use the character set provided for reading in the input stream.\n *\n * @param inputStream Input Text Stream that will be filtered\n * @param charsetName Name of the character set to use when reading in the stream\n * @return New String with filtered Text\n * @throws java.io.IOException if there is an error reading the stream\n */\n public abstract String filter(final InputStream inputStream, String charsetName) throws IOException;\n}", "title": "" }, { "docid": "e937c3785de5867b3482efcfa26c980a", "score": "0.5075103", "text": "public String addFilter();", "title": "" }, { "docid": "716e223fc6a1c60603d287224ecf2e40", "score": "0.5058483", "text": "private boolean matchesFilter(ProductoConformado producto) {\n String filterString = filtrado.getText();\n if (filterString == null || filterString.isEmpty()) {\n // No filter --> Add all.\n return true;\n }\n\n String lowerCaseFilterString = filterString.toLowerCase();\n\n if (producto.getCodigo().toLowerCase().indexOf(lowerCaseFilterString) != -1) {\n return true;\n } else if (producto.getDescripcion().toLowerCase().indexOf(lowerCaseFilterString) != -1) {\n return true;\n }\n\n return false; // Does not match\n }", "title": "" }, { "docid": "3ab58b33b37f414ede0429d2abb3c792", "score": "0.50530124", "text": "@Override\n\tpublic boolean shouldFilter() {\n\t\treturn true;\n\t}", "title": "" }, { "docid": "afe407f98a228671bc6e4a2fb5e2ec49", "score": "0.5051113", "text": "@Override\r\n\tpublic boolean shouldFilter() {\n\t\treturn true;\r\n\t}", "title": "" }, { "docid": "b01e62b711cb1a032ee220e417997003", "score": "0.5029721", "text": "private static FileFilter filterContains(String[] parsedLine) {\n\t\ttry {\n\t\t\thasErrorInContainsFilter(parsedLine); // check for errors\n\n\t\t\tif (HasNotSuffix(parsedLine)) {\n\t\t\t\treturn containsCheck(parsedLine[1], true);\n\t\t\t}\n\t\t\tif (parsedLine.length == LENGTH_OF_ONE) { // in case for \"contains#\" (empty string after #)\n\t\t\t\treturn containsCheck(EMPTY_STRING, false);\n\t\t\t}\n\t\t\treturn containsCheck(parsedLine[1], false);\n\t\t} catch (IllegalArgumentException exception) {\n\t\t\tfoundError = true;\n\t\t\treturn null;\n\t\t}\n\t}", "title": "" }, { "docid": "55a0334d3f9b1e3815229d56865a1ad3", "score": "0.5016698", "text": "public boolean accept(File file)\r\n {\r\n if(file.isDirectory())\r\n return true;\r\n\r\n // get the file extension\r\n String ext = \"\";\r\n StringTokenizer st = new StringTokenizer(file.getName(), \".\");\r\n\r\n // do this in case there are more than 1 '.' in a file name\r\n while (st.hasMoreTokens())\r\n {\r\n ext = st.nextToken();\r\n }\r\n // check for null\r\n if(ext == null)\r\n ext = \"\";\r\n\r\n // go through the list\r\n for(int i = 0; i < filterList.size(); i++)\r\n {\r\n String type = (String)filterList.get(i);\r\n if(type.equals(ext))\r\n return true;\r\n }\r\n\r\n return false;\r\n }", "title": "" }, { "docid": "7642e7289d30afbedde8d2a05335c3d3", "score": "0.50080985", "text": "private static String[] getFilters(String filterFilePath){\r\n\t\tFile filterFile = new File(filterFilePath);\r\n\t\tScanner filterScanner;\r\n\t\ttry{\r\n\t\t\tfilterScanner = new Scanner(filterFile);\r\n\t\t}\r\n\t\tcatch(IOException e){\r\n\t\t\treturn null;\r\n\t\t}\r\n\t\tList<String> filterList = new ArrayList<String>();\r\n\t\t\r\n\t\tint lineCount = 0;\r\n\t\t\r\n\t\twhile(filterScanner.hasNextLine()){\r\n\t\t\t\r\n\t\t\tString tempFiltString = filterScanner.nextLine();\r\n\t\t\tlineCount++;\r\n\t\t\t\r\n\t\t\t//make scanner for parsing the line\r\n\t\t\tScanner narrScan = new Scanner(tempFiltString);\r\n\t\t\t\r\n\t\t\tif(narrScan.hasNext()){\r\n\t\t\t\t\r\n\t\t\t\tString nextWord = narrScan.next();\r\n\t\t\t\t//make sure the beginning of the word is correct\r\n\t\t\t\tif(nextWord.equals(\"+\")){\r\n\t\t\t\t\t\r\n\t\t\t\t\tList<String> inclTerms = new ArrayList<String>();\r\n\t\t\t\t\tList<String> exclTerms = new ArrayList<String>();\r\n\t\t\t\t\t\r\n\t\t\t\t\tif(narrScan.hasNext()){\r\n\t\t\t\t\t\tnextWord = narrScan.next();\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\twhile(narrScan.hasNext() && !nextWord.equals(\"-\")){\r\n\t\t\t\t\t\tif(nextWord.charAt(0) == '\\\"'){\r\n\t\t\t\t\t\t\tString adStr = \"\";\r\n\t\t\t\t\t\t\tif(nextWord.length() > 1){\r\n\t\t\t\t\t\t\t\tadStr += nextWord.substring(1);\r\n\t\t\t\t\t\t\t\tif(isQualifiedTwitterWord(nextWord.substring(1), filterList)){\r\n\t\t\t\t\t\t\t\t\tfilterList.add(nextWord.substring(1));\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\tnextWord = narrScan.next();\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\twhile(nextWord.charAt(nextWord.length() - 1) != '\"'){\r\n\t\t\t\t\t\t\t\tadStr += \" \" + nextWord;\r\n\t\t\t\t\t\t\t\tif(isQualifiedTwitterWord(nextWord, filterList)){\r\n\t\t\t\t\t\t\t\t\tfilterList.add(nextWord);\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\tnextWord = narrScan.next();\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\tadStr += \" \" + nextWord.substring(0, nextWord.length() - 1);\r\n\t\t\t\t\t\t\tif(isQualifiedTwitterWord(nextWord.substring(0, nextWord.length() - 1), filterList)){\r\n\t\t\t\t\t\t\t\tfilterList.add(nextWord.substring(0, nextWord.length() - 1));\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\tinclTerms.add(adStr);\r\n\t\t\t\t\t\t\tnextWord = narrScan.next();\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse{\r\n\t\t\t\t\t\t\tinclTerms.add(nextWord);\r\n\t\t\t\t\t\t\tif(isQualifiedTwitterWord(nextWord, filterList) )\r\n\t\t\t\t\t\t\t\t\tfilterList.add(nextWord);\r\n\t\t\t\t\t\t\tnextWord = narrScan.next();\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\t\r\n\t\t\t\t}\r\n\t\t\t\t\t//process\r\n\t\t\t\t\tif(nextWord.equals(\"-\")){\r\n\t\t\t\t\t\twhile(narrScan.hasNext()){\r\n\t\t\t\t\t\t\tnextWord = narrScan.next();\r\n\t\t\t\t\t\t\tif(nextWord.charAt(0) == '\\\"'){\r\n\t\t\t\t\t\t\t\tString adStr = \"\";\r\n\t\t\t\t\t\t\t\tif(nextWord.length() > 1){\r\n\t\t\t\t\t\t\t\t\tadStr += nextWord.substring(1);\r\n\t\t\t\t\t\t\t\t\tnextWord = narrScan.next();\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\twhile(nextWord.charAt(nextWord.length() - 1) != '\"'){\r\n\t\t\t\t\t\t\t\t\tadStr += \" \" + nextWord;\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\tadStr +=\" \" + nextWord.substring(0, nextWord.length() - 1);\r\n\t\t\t\t\t\t\t\texclTerms.add(adStr);\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\telse{\r\n\t\t\t\t\t\t\t\texclTerms.add(nextWord);\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\t//add the filter to the list\r\n\t\t\t\t\t\tif(inclTerms.size() != 0){\r\n\t\t\t\t\t\t\tDMDataFilter tempfil = new DMDataFilter(inclTerms, exclTerms);\r\n\t\t\t\t\t\t\tfilters.add(tempfil);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t\t\telse{\r\n\t\t\t\t\t\t\tSystem.out.println(\"Line \" + lineCount + \" of filter file ignored due to improper syntax\");\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\tnarrScan.close();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\tfilterScanner.close();\r\n\t\t\r\n\t\tString[] retArr = new String[filterList.size()];\r\n\t\tretArr = filterList.toArray(retArr);\r\n\t\treturn retArr;\r\n\t\t\r\n\t\t\r\n\t}", "title": "" }, { "docid": "db96fed008145c9080308e79a9fb436c", "score": "0.49974793", "text": "@Override\r\n public boolean shouldFilter() {\n return true;\r\n }", "title": "" }, { "docid": "dd30b99a3a38a471509af53ffd6faf30", "score": "0.49748066", "text": "public void filter(String filter) throws DataStoreException ;", "title": "" }, { "docid": "e8a3260922df1f5e4e6ee481b6198ff5", "score": "0.49521357", "text": "boolean hasValidityFilter();", "title": "" }, { "docid": "fa2750154666f48549983bd0e22d8021", "score": "0.49304667", "text": "public boolean verificaFiltroMatricula(String matricula) {\n\t\tfor (int i = 0; i < matricula.length(); i++) {\n\t\t\tif(Character.isLetter(matricula.charAt(i))) return false;\n\t\t}\n return true;\n\t}", "title": "" }, { "docid": "90add4e333845d222cf4255c17ad49b5", "score": "0.49223745", "text": "boolean filter(String msg);", "title": "" }, { "docid": "dc9ed057f07bd35c946ea58bf492c302", "score": "0.49109563", "text": "public static void main(String[] args) {\n\n java.util.ArrayList<String> l = new java.util.ArrayList<String>(\n java.util.Arrays.asList(\"1\", \"2\", \"3\", \"4\", \"5\", \"6\"));\n Filter<String> f1 = new FilterImpl<String>(){\n public boolean accept(String s) {\n return Integer.parseInt(s) > 1;\n }\n };\n Filter<String> f2 = new FilterImpl<String>(){\n public boolean accept(String s) {\n return Integer.parseInt(s) < 5;\n }\n };\n Filter<String> f3 = new FilterImpl<String>(){\n public boolean accept(String s) {\n return Integer.parseInt(s) > 5;\n }\n };\n Filter<String> f4 = new FilterImpl<String>(){\n public boolean accept(String s) {\n return Integer.parseInt(s) < 6;\n }\n };\n CollectionUtil.filter(l, new Condition<String>(Condition.Operator.or, f3,\n new Condition<String>(Condition.Operator.and, f1, f2)));\n System.out.println(l);\n }", "title": "" }, { "docid": "f2ff2f0452f4345cf267f1995a808cef", "score": "0.49058062", "text": "@Test\n\tpublic void testFilterAll_1()\n\t\tthrows Exception {\n\t\tString string = \"\";\n\t\tFilterBack filterBack = new FilterBack();\n\t\tString result = filterBack.filterAll(string);\n\n\t\t// add additional test code here\n\t\tassertEquals(\"\", result);\n\t}", "title": "" }, { "docid": "5493a4c1e8f4a4273247c63e9b0fde50", "score": "0.48995256", "text": "public boolean hasFilter() {\n return filter != null;\n }", "title": "" }, { "docid": "5436965941b9b47766d6db800b375cc8", "score": "0.48889542", "text": "public PDFFilterList(boolean ignoreASCIIFilters) {\n this.ignoreASCIIFilters = ignoreASCIIFilters;\n }", "title": "" }, { "docid": "3fe31c40a7cb8d9e01337b4bc6e6bdda", "score": "0.4884329", "text": "private static FileFilter filterHidden(String[] parsedLine) {\n\t\ttry {\n\t\t\thasErrorInHiddenFilter(parsedLine); // check for errors\n\n\t\t\tif (HasNotSuffix(parsedLine)) {\n\t\t\t\treturn hiddenCheck(parsedLine[1], true);\n\t\t\t}\n\t\t\treturn hiddenCheck(parsedLine[1], false);\n\t\t} catch (IllegalArgumentException exception) {\n\t\t\tfoundError = true;\n\t\t\treturn null;\n\t\t}\n\t}", "title": "" }, { "docid": "e52b5ec5139f50b2d6c888547586df91", "score": "0.48830104", "text": "@Test\n\tpublic void testFilter(){\n\t\tfail(\"Not yet implemented\");\n\t}", "title": "" }, { "docid": "0cd497a3fa306e4f19de4e05c65e89be", "score": "0.48799652", "text": "private static FileFilter filterWritable(String[] parsedLine) {\n\t\ttry {\n\t\t\thasErrorInWritableFilter(parsedLine); // check for errors\n\n\t\t\tif (HasNotSuffix(parsedLine)) {\n\t\t\t\treturn writableCheck(parsedLine[1], true);\n\t\t\t}\n\t\t\treturn writableCheck(parsedLine[1], false);\n\t\t} catch (IllegalArgumentException exception) {\n\t\t\tfoundError = true;\n\t\t\treturn null;\n\t\t}\n\t}", "title": "" }, { "docid": "8b753f48045deff9db968ef33508ba09", "score": "0.48685098", "text": "protected abstract String[] getValidPatterns();", "title": "" }, { "docid": "4ccfd2928749d877aadc1d9e40cfea4e", "score": "0.48676682", "text": "private static FileFilter filterExecutable(String[] parsedLine) {\n\t\ttry {\n\t\t\thasErrorInExecutableFilter(parsedLine); // check for errors\n\t\t\tif (HasNotSuffix(parsedLine)) {\n\t\t\t\treturn executableCheck(parsedLine[1], true);\n\t\t\t}\n\t\t\treturn executableCheck(parsedLine[1], false);\n\t\t} catch (IllegalArgumentException exception) {\n\t\t\tfoundError = true;\n\t\t\treturn null;\n\t\t}\n\t}", "title": "" }, { "docid": "eb186f1ca4c26f44e409df96ae1f8de0", "score": "0.48511258", "text": "@Test\n\tpublic void testIsIllegalSoRaw() {\n\t\tString[] res = { \"tr kodo Eintala\", \"tr Fleirtala webspinner\", \"ha\",\n\t\t\t\t\"th randoms Germynd\", \"th Miðmynd randoms\",\n\t\t\t\t\"random Karlkyn I Like Kvenkyn no so much Hvorugkyn\",\n\t\t\t\t\"random legal words\", \"tr kodo Nútíð\", \"tr Þátíð webspinner\",\n\t\t\t\t\"randomeText Et. Ft. anotherRandomText\", \"perswithoutdot\", \n\t\t\t\t\"now. perswithdot\", \"arandomlegalString\" };\n\t\tboolean[] expres = { true, true, true, true, true, false, false, true, true, true, true, true, false };\n\t\t\n\t\tArrayList<Boolean> expectedResults = populateArrayList(expres);\n\t\t\n\t\tArrayList<Boolean> results = new ArrayList<Boolean>();\n\t\t\n\t\tfor( int i = 0; i < res.length; i++ ) {\n\t\t\tresults.add(func.isIllegalSoRaw(res[i]));\n\t\t}\n\t\t\n\t\tassertEquals(expectedResults, results);\t\t\t\n\t}", "title": "" }, { "docid": "ef8656660dddb02f7abeef8d2ccb4c3c", "score": "0.4847279", "text": "public boolean filter() {\n try {\n if (!br.ready()) {\n return false;\n }\n String line;\n while ((line = br.readLine()) != null) {\n line = line.trim(); // trim leading and trailing whitespace\n Matcher msec = sectionPatt.matcher(line); // section format regex\n Matcher mbrk = breakPatt.matcher(line); // break format regex\n Matcher mdpt = departmentPatt.matcher(line); // department format regex\n Matcher mslt = slotPatt.matcher(line); // slot format regex\n Matcher mlec = lecturePatt.matcher(line); // lecture format regex\n Matcher mnle = nonlecturePatt.matcher(line); // non-lecture format regex\n Matcher mncp = notCompatiblePatt.matcher(line); // not-compatible format regex\n Matcher muwt = unwantedPatt.matcher(line); // unwanted format regex\n Matcher mpre = preferencesPatt.matcher(line); // preferences format regex\n\n Matcher mlslt = labSlotPatt.matcher(line); // checks that it has a valid lab slot prefix\n\n if (msec.find()) { // section\n // check which section is being read next\n //System.out.println(\"section line\");\n this.inSec = true;\n if (courseSlotSec | labSlotSec | lectureSec | nonlectureSec | notCompatibleSec | unwantedSec | preferencesSec | pairSec | partialAssignmentSec) {\n return false;\n }\n line = line.toLowerCase().split(\":\")[0]; // handle little spelling mistakes\n switch (line) {\n case \"name\":\n break;\n case \"course slots\":\n courseSlotSec = true;\n break;\n case \"lab slots\":\n labSlotSec = true;\n break;\n case \"courses\":\n lectureSec = true;\n break;\n case \"labs\":\n nonlectureSec = true;\n break;\n case \"not compatible\":\n notCompatibleSec = true;\n break;\n case \"unwanted\":\n unwantedSec = true;\n break;\n case \"preferences\":\n preferencesSec = true;\n break;\n case \"pair\":\n pairSec = true;\n break;\n case \"partial assignments\":\n partialAssignmentSec = true;\n break;\n default:\n //System.out.println(\"unrecognized section line\");\n //System.out.println(\"forcing exit\");\n br.close();\n return false; // had an unrecognized section\n }\n } else if (mdpt.find() && inSec) { // department\n //System.out.println(\"test name line\");\n } else if (mslt.find() && inSec && (courseSlotSec || labSlotSec)) { // slot\n // we know that anything in here matches the generic 'slot regex'\n // tricky part is differentiating between lecture and nonlecture slots\n // do this with the flags, and make sure no slot with FR is being \n // accepted as a lecture as this is invalid\n if (labSlotSec) {\n //System.out.println(\"non lecture slot line\");\n iw.nonlectureSlotLines.add(line);\n } else if (courseSlotSec && !line.startsWith(\"\\\\s*FR\")) {\n //System.out.println(\"lecture slot line\");\n iw.lectureSlotLines.add(line);\n } else {\n //skip\n //System.out.println(\"found an invalid slot definition\");\n }\n } else if (mlec.find() && inSec) { // lecture\n //System.out.println(\"lecture line\");\n iw.lectureLines.add(line);\n } else if (mnle.find() && inSec) { // lecture\n //System.out.println(\"non lecture line\");\n iw.nonlectureLines.add(line);\n } else if (mncp.find() && inSec) { // check\n if (notCompatibleSec) {\n //System.out.println(\"not compatible line\");\n iw.notCompatibleLines.add(line);\n } else {\n //System.out.println(\"pair line\");\n iw.pairLines.add(line);\n }\n } else if (muwt.find() && inSec) {\n if (unwantedSec) {\n //System.out.println(\"unwanted line\");\n iw.unwantedLines.add(line);\n } else {\n //System.out.println(\"partial assignments line\");\n iw.partialAssignmentLines.add(line);\n }\n } else if (mpre.find() && inSec) {\n //System.out.println(\"preferences line\");\n iw.preferencesLines.add(line);\n } else if (mbrk.find() && inSec) { // break\n //System.out.println(\"break line\");\n // skip and prepare for new section\n if (courseSlotSec) {\n courseSlotSec = false;\n } else if (labSlotSec) {\n labSlotSec = false;\n } else if (lectureSec) {\n lectureSec = false;\n } else if (nonlectureSec) {\n nonlectureSec = false;\n } else if (notCompatibleSec) {\n notCompatibleSec = false;\n } else if (unwantedSec) {\n unwantedSec = false;\n } else if (preferencesSec) {\n preferencesSec = false;\n } else if (pairSec) {\n pairSec = false;\n } else if (partialAssignmentSec) {\n partialAssignmentSec = false;\n }\n } else { //not one of our line formats\n //System.out.println(\"unusable line\");\n //System.out.println(\"Poorly formatted input file\");\n return false;\n }\n\n }\n br.close();\n\n } catch (IOException io) {\n System.err.println(\"There was a problem reading in the input file contents\");\n return false;\n }\n\n return true;\n }", "title": "" }, { "docid": "2a524ec9ad5706ec10e5f5c08e83f505", "score": "0.48454344", "text": "public interface FilenameFilter {\n boolean accept(File dir, String name);\n}", "title": "" }, { "docid": "a94b0c5e9360a776ac85fb7e92678977", "score": "0.48344943", "text": "private static WritableFilter writableFilter(String[] commandSeq) throws FirstException{\n WritableFilter result;\n boolean commandValue = false;\n if (commandSeq.length >= 2) { // if is in the correct format\n commandValue = ManipulatorGenerator.getBooleanValue(commandSeq[COMMAND_FIRST_VALUE]);\n if (commandSeq.length == 3){ // if has NOT value\n commandValue = (commandValue ^ ManipulatorGenerator.getBooleanValue(commandSeq[COMMAND_SECOND_VALUE]));\n }\n }\n result = new WritableFilter(!commandValue);\n return result;\n }", "title": "" }, { "docid": "67b11f14da4b8ac30019ff24d16625f5", "score": "0.48325276", "text": "private static FileFilter filterPrefix(String[] parsedLine) {\n\t\ttry {\n\t\t\thasErrorInPrefixFilter(parsedLine); // check for errors\n\n\t\t\tif (HasNotSuffix(parsedLine)) {\n\t\t\t\treturn prefixCheck(parsedLine[1], true);\n\t\t\t}\n\t\t\tif (parsedLine.length == LENGTH_OF_ONE) { // in case for \"prefix#\" (empty string after #)\n\t\t\t\treturn prefixCheck(EMPTY_STRING, false);\n\t\t\t}\n\t\t\treturn prefixCheck(parsedLine[1], false);\n\t\t} catch (IllegalArgumentException exception) {\n\t\t\tfoundError = true;\n\t\t\treturn null;\n\t\t}\n\t}", "title": "" }, { "docid": "fac804d6cea3337d1e9073a3858b1aee", "score": "0.4828811", "text": "public static String filterCriterion() {\r\n return filterCriterion;\r\n }", "title": "" }, { "docid": "77e1c35e2b581f8e9e80c2dd3db4914d", "score": "0.48125133", "text": "public BinaryOperatorFilter like(String value);", "title": "" }, { "docid": "b79be3719f88b17789b22262d1b2a2ed", "score": "0.48115715", "text": "@Override\n protected FilterResults performFiltering(CharSequence charSequence) {\n ArrayList<MainModel> filteredList = new ArrayList<>();\n\n if(charSequence.toString().isEmpty())\n {\n filteredList.addAll(listAll);\n }\n else\n {\n for(MainModel mainList : listAll)\n {\n if(mainList.getMainName().toLowerCase().contains(charSequence.toString().toLowerCase()))\n {\n filteredList.add(mainList);\n }\n }\n }\n\n FilterResults filterResults = new FilterResults();\n filterResults.values = filteredList;\n return filterResults;\n }", "title": "" }, { "docid": "511db8d2b7430ffb746f1b4fbb2024c8", "score": "0.4807381", "text": "public abstract String filter(final String text);", "title": "" }, { "docid": "1cbb0a3a28d3f1d3eb4579b60cf73d14", "score": "0.48049855", "text": "private boolean testRequestFilters(String action, JsonObject data, HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n boolean filterRequest = true;\n for (RequestFilter filter : requestFilters) {\n if (!filter.filterRequest(action, data, request, response)) {\n filterRequest = false;\n }\n }\n return filterRequest;\n }", "title": "" }, { "docid": "43b0d9b6fbe1efecaf032a0fa7366951", "score": "0.47998992", "text": "private static ExecutableFilter executableFilter (String[] commandSeq) throws FirstException{\n ExecutableFilter result;\n boolean commandValue = false;\n if (commandSeq.length >= 2) { // if in the correct format\n commandValue = ManipulatorGenerator.getBooleanValue(commandSeq[COMMAND_FIRST_VALUE]);\n if (commandSeq.length == 3){ // if has NOT value\n commandValue = (commandValue ^ ManipulatorGenerator.getBooleanValue(commandSeq[COMMAND_SECOND_VALUE]));\n }\n }\n result = new ExecutableFilter(!commandValue);\n return result;\n }", "title": "" }, { "docid": "b945406b75078767ed1b055da4826a12", "score": "0.47975248", "text": "public Comparison contains(String filter){\n return new Comparison(value + \" co \\\"\" + filter + \"\\\"\");\n }", "title": "" }, { "docid": "6a243c755ae23b022f212c901afb7be4", "score": "0.47890761", "text": "public abstract String filter(InputStream inputStream) throws IOException;", "title": "" }, { "docid": "47e4e6e657ed3cc3025d13216673a300", "score": "0.47745973", "text": "private boolean needsToBePruned( String uri ) {\n if( uri.equals(schemaLanguage) )\n return false;\n if( uri.equals(Const.JAXB_NSURI) )\n return false;\n if( uri.equals(Const.XJC_EXTENSION_URI) )\n return false;\n // we don't want validator to see extensions that we understand ,\n // because they will complain.\n // OTOH, if this is an extension that we didn't understand,\n // we want the validator to report an error\n return enabledExtensions.contains(uri);\n }", "title": "" }, { "docid": "88754bc8c39f92b176f21cbabc49e3e7", "score": "0.4767318", "text": "boolean filterPathViolations (ContentPackageFilter cpe, List<String> policyViolations){\n boolean isComplient=true;\n List<PathFilterSet> filters=cpe.getFilterSets();\n for(PathFilterSet filter: filters)\n {\n boolean positiveMatch = platformFilterRestrictionPaths.stream()\n .filter((String regex) -> filter.getRoot().matches(regex))\n .findFirst().isPresent();\n if (positiveMatch) {\n isComplient=false;\n String msg = String.format(\"[%s] detected violation of path rule: [%s]\", cpe.getArchiveFilename(),filter.getRoot());\n policyViolations.add(msg);\n }\n }\n return isComplient;\n }", "title": "" }, { "docid": "938bf3d26fd7c973397a79c13319f3d5", "score": "0.47578877", "text": "@Test(dependsOnMethods = {\"preparationGetCurrentUrlAndCreateAttrRules\",\n \"testTwoConjunciveClause\", \"testCustomAttributeUsedInFilter\",\n \"testFilterItemInsideBtCoverage\"})\n public void testMoreComplexFilter() throws Exception {\n List<List<NameBtAndValues>> clauses = new ArrayList<List<NameBtAndValues>>();\n\n // Clause 1\n List<NameBtAndValues> attrs1 = new ArrayList<NameBtAndValues>();\n attrs1.add(new NameBtAndValues(CUSTOM_ATTR_NAME, new String[] {CUSTOM_ATTR_VALUE}, 1));\n attrs1.add(new NameBtAndValues(\"loc\", null));\n clauses.add(attrs1);\n\n // Clause 2\n List<NameBtAndValues> attrs2 = new ArrayList<NameBtAndValues>();\n attrs2.add(new NameBtAndValues(\"bsf\", new String[] {BS_1}));\n attrs2.add(new NameBtAndValues(CUSTOM_ATTR_NAME, null, 2));\n clauses.add(attrs2);\n\n // Clause 3\n List<NameBtAndValues> attrs3 = new ArrayList<NameBtAndValues>();\n attrs3.add(new NameBtAndValues(\"type\", new String[] {\"DATABASE\", \"SOCKET\"}, 3));\n attrs3.add(new NameBtAndValues(\"transactionId\", new String[] {\"Login\"}, 3));\n clauses.add(attrs3);\n\n String[][] attrsLocalized =\n { {CUSTOM_ATTR_NAME, \"location\"}, {\"Business Service\", CUSTOM_ATTR_NAME},\n {\"Type\", \"Business Transaction\"}};\n\n doTestProcessFilterInUrlAs(Role.ADMIN, clauses, false, attrsLocalized, false);\n\n ui.cleanup();\n }", "title": "" }, { "docid": "81183cf4f0e874bb27f07a2084d2b7b3", "score": "0.4752108", "text": "@Test\n public void isValidAppointmentDateTimeFilter() {\n assertTrue(AppointmentDateTimeFilter.isValidAppointmentDateTimeFilter(\"2021-01-01 10:00 AM\"));\n assertTrue(AppointmentDateTimeFilter.isValidAppointmentDateTimeFilter(\"0001-01-01 10:00 AM\"));\n assertTrue(AppointmentDateTimeFilter.isValidAppointmentDateTimeFilter(\"9999-01-01 10:00 AM\"));\n\n // EP 2: Inequalities\n assertTrue(AppointmentDateTimeFilter.isValidAppointmentDateTimeFilter(\">2021-01-01 10:00 AM\"));\n assertTrue(AppointmentDateTimeFilter.isValidAppointmentDateTimeFilter(\"<2021-01-01 10:00 AM\"));\n assertTrue(AppointmentDateTimeFilter.isValidAppointmentDateTimeFilter(\">=2021-01-01 10:00 AM\"));\n assertTrue(AppointmentDateTimeFilter.isValidAppointmentDateTimeFilter(\"<=2021-01-01 10:00 AM\"));\n assertTrue(AppointmentDateTimeFilter.isValidAppointmentDateTimeFilter(\"=2021-01-01 10:00 AM\"));\n\n // EP 3: Lowercase Alphabet\n assertFalse(AppointmentDateTimeFilter.isValidAppointmentDateTimeFilter(\"a\"));\n assertFalse(AppointmentDateTimeFilter.isValidAppointmentDateTimeFilter(\"m\"));\n assertFalse(AppointmentDateTimeFilter.isValidAppointmentDateTimeFilter(\"z\"));\n assertFalse(AppointmentDateTimeFilter.isValidAppointmentDateTimeFilter(\"0a\"));\n assertFalse(AppointmentDateTimeFilter.isValidAppointmentDateTimeFilter(\"a0\"));\n\n // EP 4: Uppercase Alphabet\n assertFalse(AppointmentDateTimeFilter.isValidAppointmentDateTimeFilter(\"A\"));\n assertFalse(AppointmentDateTimeFilter.isValidAppointmentDateTimeFilter(\"M\"));\n assertFalse(AppointmentDateTimeFilter.isValidAppointmentDateTimeFilter(\"Z\"));\n assertFalse(AppointmentDateTimeFilter.isValidAppointmentDateTimeFilter(\"0A\"));\n assertFalse(AppointmentDateTimeFilter.isValidAppointmentDateTimeFilter(\"A0\"));\n\n // EP 5: Symbols\n assertFalse(AppointmentDateTimeFilter.isValidAppointmentDateTimeFilter(\"(\"));\n assertFalse(AppointmentDateTimeFilter.isValidAppointmentDateTimeFilter(\")\"));\n assertFalse(AppointmentDateTimeFilter.isValidAppointmentDateTimeFilter(\"!\"));\n assertFalse(AppointmentDateTimeFilter.isValidAppointmentDateTimeFilter(\"@\"));\n assertFalse(AppointmentDateTimeFilter.isValidAppointmentDateTimeFilter(\"%\"));\n assertFalse(AppointmentDateTimeFilter.isValidAppointmentDateTimeFilter(\"-\"));\n assertFalse(AppointmentDateTimeFilter.isValidAppointmentDateTimeFilter(\"+\"));\n assertFalse(AppointmentDateTimeFilter.isValidAppointmentDateTimeFilter(\">\"));\n assertFalse(AppointmentDateTimeFilter.isValidAppointmentDateTimeFilter(\"<\"));\n assertFalse(AppointmentDateTimeFilter.isValidAppointmentDateTimeFilter(\">=\"));\n assertFalse(AppointmentDateTimeFilter.isValidAppointmentDateTimeFilter(\"<=\"));\n assertFalse(AppointmentDateTimeFilter.isValidAppointmentDateTimeFilter(\"=\"));\n assertFalse(AppointmentDateTimeFilter.isValidAppointmentDateTimeFilter(\"2021-01-01 10:00 AM>\"));\n assertFalse(AppointmentDateTimeFilter.isValidAppointmentDateTimeFilter(\"2021-01-01 10:00 AM=\"));\n\n // EP 6: Empty\n assertFalse(AppointmentDateTimeFilter.isValidAppointmentDateTimeFilter(\"\"));\n\n // EP 7: Space\n assertFalse(AppointmentDateTimeFilter.isValidAppointmentDateTimeFilter(\" \"));\n assertFalse(AppointmentDateTimeFilter.isValidAppointmentDateTimeFilter(\"2021-01-01 10:00 AM \"));\n assertFalse(AppointmentDateTimeFilter.isValidAppointmentDateTimeFilter(\" 2021-01-01 10:00 AM\"));\n\n // EP 8: null\n assertThrows(NullPointerException.class, () ->\n AppointmentDateTimeFilter.isValidAppointmentDateTimeFilter(null));\n }", "title": "" }, { "docid": "ad3c1bed09b2c5ad8fd75cb2250b5888", "score": "0.4751722", "text": "@Test\n public void whenFilterWithCustomPredicateThenFiltered() {\n Predicate<String> predicate = input -> {\n assert input != null;\n return input.startsWith(\"A\") || input.startsWith(\"J\");\n };\n\n List<String> names = Lists.newArrayList(\"John\", \"Jane\", \"Adam\", \"Tom\");\n List<String> result = names.stream().filter(predicate).collect(Collectors.toList());\n\n assertEquals(3, result.size());\n assertThat(result, containsInAnyOrder(\"John\", \"Jane\", \"Adam\"));\n }", "title": "" }, { "docid": "d258918a5c52062aa344994e2550f7a2", "score": "0.47325325", "text": "boolean filter(Object data);", "title": "" }, { "docid": "9d63200002043429195441562b99c5f6", "score": "0.473244", "text": "public boolean isCheckingNormalization() {\n for (int i = 0; i < characterHandlers.length; i++) {\n CharacterHandler ch = characterHandlers[i];\n if (ch instanceof NormalizationChecker) {\n return true;\n }\n }\n return false;\n }", "title": "" }, { "docid": "5c4b0998d304444a330bedc60ca150a6", "score": "0.4731198", "text": "private static boolean isValidStartFilename(String filename) {\n\t\t boolean isOk = false;\n\t\t if ( filename != null ) {\n\t\t\t filename = filename.trim();\n\t\t \n\t\t\t if ( filename.charAt(0) != '<' && \n\t\t\t\t filename.charAt(0) != '}' && \n\t\t\t\t filename.charAt(0) != '{' && \n\t\t\t\t filename.charAt(0) != '>' && \n\t\t\t filename.charAt(0) != '[' && \n\t\t\t filename.charAt(0) != '!' && \n\t\t\t filename.charAt(0) != '@' && \n\t\t\t filename.charAt(0) != '#' && \n\t\t\t filename.charAt(0) != '%' && \n\t\t\t filename.charAt(0) != '?' && \n\t\t\t filename.charAt(0) != '&' && \n\t\t\t filename.charAt(0) != '*' && \n\t\t\t filename.charAt(0) != '|' && \n\t\t\t filename.charAt(0) != '=' && \n\t\t\t filename.charAt(0) != '+' ) {\n\t\t\t\t isOk = true;\n\t\t\t }\n\t\t }\n\t\t\t \n\t\t return isOk;\n\t }", "title": "" }, { "docid": "1ada780b80fd79c3090578b6566e0024", "score": "0.47273168", "text": "String getPDFSubFilter();", "title": "" }, { "docid": "0f65a838a0239fad927969ecd674393e", "score": "0.47258693", "text": "public static boolean isSpecialChar(char paramChar)\r\n/* 175: */ {\r\n/* 176:227 */ boolean bool = false;\r\n/* 177:229 */ switch (paramChar)\r\n/* 178: */ {\r\n/* 179: */ case '\"': \r\n/* 180: */ case '(': \r\n/* 181: */ case ')': \r\n/* 182: */ case ',': \r\n/* 183: */ case '/': \r\n/* 184: */ case ':': \r\n/* 185: */ case ';': \r\n/* 186: */ case '<': \r\n/* 187: */ case '=': \r\n/* 188: */ case '>': \r\n/* 189: */ case '?': \r\n/* 190: */ case '@': \r\n/* 191: */ case '[': \r\n/* 192: */ case '\\\\': \r\n/* 193: */ case ']': \r\n/* 194:246 */ bool = true;\r\n/* 195:247 */ break;\r\n/* 196: */ }\r\n/* 197:250 */ return bool;\r\n/* 198: */ }", "title": "" }, { "docid": "7777744720ad76a56c66f9bb38ad0330", "score": "0.47258028", "text": "@Test\n\tpublic void testIsLegalNoRaw() {\n\t\tString[] res = { \"tr randomstring Eintala\", \"tr Fleirtala randomstring\", \"ha\",\n\t\t\t\t\"th randoms Eintala\", \"th Fleirtala randoms\",\n\t\t\t\t\"randomstring án greinis með greini notsorandomstring\", \"I Like Turtles\" };\n\t\tboolean[] expres = { true, true, true, false, false, true, false };\n\t\t\n\t\tArrayList<Boolean> expectedResults = populateArrayList(expres);\n\t\t\n\t\tArrayList<Boolean> results = new ArrayList<Boolean>();\n\t\t\n\t\tfor( int i = 0; i < res.length; i++ ) {\n\t\t\tresults.add(func.isLegalRawNo(res[i]));\n\t\t}\n\t\t\n\t\tassertEquals(expectedResults, results);\n\t}", "title": "" }, { "docid": "6a4aa23878fb818c8e8e87f2ea658d63", "score": "0.47250158", "text": "private static AllFilter allFilter (String[] commandSeq) throws FirstException{\n AllFilter result;\n boolean commandValue = false;\n if (commandSeq.length >= 2) { // if has NOT value\n commandValue = ManipulatorGenerator.getBooleanValue(commandSeq[COMMAND_FIRST_VALUE]);\n } result = new AllFilter(commandValue);\n return result;\n }", "title": "" }, { "docid": "6dc205ba52158d837476274fce6928ae", "score": "0.47023815", "text": "public abstract IFilter<IFile> createNativeFilesFilter();", "title": "" }, { "docid": "cc15e633ee5fbd3f757bc9b1288c06b6", "score": "0.4697879", "text": "public Object[] specialValidate(String string)\n {\n return specialValidate(string.toCharArray());\n }", "title": "" }, { "docid": "1caf307e9388207b55174a79ceca9a0a", "score": "0.46912298", "text": "boolean accepts(String filename);", "title": "" }, { "docid": "40fb46995dab00dd442450ec0ff39e15", "score": "0.46888363", "text": "protected String filterExpressionSearch() {\n return \"\";\n }", "title": "" }, { "docid": "3d777f0280d875d60ac46b6cd744e2fa", "score": "0.46878594", "text": "private boolean checkFieldEmpty(String string) {\n return TextUtils.isEmpty(string) || string.equals(\".\");\n }", "title": "" }, { "docid": "15fa9a887850aa3e4407a8603236f89a", "score": "0.46855626", "text": "public Expr parse(String input) throws ParseException {\n Expr result = PredExpr.TRUE;\n if (input.isEmpty()) return result;\n\n Pattern pattern = Pattern.compile(EXPR_REGEX, Pattern.CASE_INSENSITIVE);\n Matcher matcher = pattern.matcher(input);\n\n while (!matcher.hitEnd()) {\n if (!matcher.find()) throw new ParseException(\"Part of filter unrecognised\");\n Expr intermediate = getPredicate(matcher.group(1), matcher.group(2));\n result = new AndExpr(intermediate, result);\n }\n\n return result;\n }", "title": "" }, { "docid": "b1a84dc3019915a905da9e6e93a73cbe", "score": "0.46814603", "text": "public boolean analyser(String pourAnalyser);", "title": "" }, { "docid": "7cfd5e97e77cb46b40ad381b54e53d52", "score": "0.46810126", "text": "@Override\n protected boolean accept(String name) {\n if( search.names() != null ) {\n for(String searchName : search.names()) {\n if( name.equals(searchName) ) { return true; }\n }\n }\n // if annotation search is turned on, we have to accept all names because we need to load the class to check for annotations\n if( search.annotations() ) { return true; }\n // we only check for the *Component name if search conventions is turned on, because an application might want to skip files that are not explicitly annotated\n if( search.conventions() ) {\n return namePattern == null || namePattern.matcher(name).matches();\n }\n return false;\n }", "title": "" }, { "docid": "3aca95693f007435522c6a6109d0da62", "score": "0.46786496", "text": "public Comparison startsWith(String filter) {\n return new Comparison(value + \" sw \\\"\" + filter + \"\\\"\");\n }", "title": "" }, { "docid": "6bac8669ac1733686144fd1a4361a072", "score": "0.46702084", "text": "private void parseFilters(HttpServletRequest request){\n\t\tboolean hasDeactivatedFilter = false;\n\t\tif (request.getParameter(\"demoparams\") != null && !request.getParameter(\"demoparams\").isEmpty()) {\n\t\t\tString demoparams = request.getParameter(\"demoparams\");\n\t\t\tString demoFilters[] = demoparams.split(\" \");\n\t\t\tfor (String filter : demoFilters) {\n\t\t\t\tif (request.getParameter(filter) != null && !request.getParameter(filter).isEmpty()) {\n\t\t\t\t\tDemographicReportFilterType filterType = DemographicReportFilter.filterTypeFromString(filter);\n\t\t\t\t\tif(filterType.toString().equals(\"DEACTIVATED\")){\n\t\t\t\t\t\thasDeactivatedFilter=true;\n\t\t\t\t\t}\n\t\t\t\t\tDemographicReportFilter fil = new DemographicReportFilter(filterType, request.getParameter(filter), factory);\n\t\t\t\t\tfilters.add(fil);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tif(!hasDeactivatedFilter){\n\t\t\tfilters.add(new DemographicReportFilter(DemographicReportFilter.filterTypeFromString(\"DEACTIVATED\"), \"exclude\", factory));\n\t\t}\n\t\tif (request.getParameter(\"medparams\") != null && !request.getParameter(\"medparams\").isEmpty()) {\n\t\t\tString medparams = request.getParameter(\"medparams\");\n\t\t\tString medFilters[] = medparams.split(\" \");\n\t\t\tfor (String filter : medFilters) {\n\t\t\t\tif (request.getParameter(filter) != null && !request.getParameter(filter).isEmpty()) {\n\t\t\t\t\tMedicalReportFilterType filterType = MedicalReportFilter.filterTypeFromString(filter);\n\t\t\t\t\tif (filterType == MedicalReportFilterType.DIAGNOSIS_ICD_CODE\n\t\t\t\t\t\t\t|| filterType == MedicalReportFilterType.MISSING_DIAGNOSIS_ICD_CODE\n\t\t\t\t\t\t\t|| filterType == MedicalReportFilterType.ALLERGY\n\t\t\t\t\t\t\t|| filterType == MedicalReportFilterType.CURRENT_PRESCRIPTIONS\n\t\t\t\t\t\t\t|| filterType == MedicalReportFilterType.PASTCURRENT_PRESCRIPTIONS\n\t\t\t\t\t\t\t|| filterType == MedicalReportFilterType.PROCEDURE) {\n\t\t\t\t\t\tString[] vals = request.getParameterValues(filter);\n\t\t\t\t\t\tfor (String val : vals) {\n\t\t\t\t\t\t\tMedicalReportFilter fil = new MedicalReportFilter(filterType, val, factory);\n\t\t\t\t\t\t\tfilters.add(fil);\n\t\t\t\t\t\t}\n\t\t\t\t\t} else {\n\t\t\t\t\t\tMedicalReportFilter fil = new MedicalReportFilter(filterType, request.getParameter(filter), factory);\n\t\t\t\t\t\tfilters.add(fil);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tif (request.getParameter(\"persparams\") != null && !request.getParameter(\"persparams\").isEmpty()) {\n\t\t\tString persparams = request.getParameter(\"persparams\");\n\t\t\tString personnelFilters[] = persparams.split(\" \");\n\t\t\tfor (String filter : personnelFilters) {\n\t\t\t\tif (request.getParameter(filter) != null && !request.getParameter(filter).isEmpty()) {\n\t\t\t\t\tPersonnelReportFilterType filterType = PersonnelReportFilter.filterTypeFromString(filter);\n\t\t\t\t\tif (filterType == PersonnelReportFilterType.DLHCP) {\n\t\t\t\t\t\tString[] vals = request.getParameterValues(filter);\n\t\t\t\t\t\tfor (String val : vals) {\n\t\t\t\t\t\t\tPersonnelReportFilter fil = new PersonnelReportFilter(filterType, val, factory);\n\t\t\t\t\t\t\tfilters.add(fil);\n\t\t\t\t\t\t}\n\t\t\t\t\t} else {\n\t\t\t\t\t\tPersonnelReportFilter fil = new PersonnelReportFilter(filterType, request.getParameter(filter), factory);\n\t\t\t\t\t\tfilters.add(fil);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "3b53046c90ec46095dc971cd351502c5", "score": "0.4670125", "text": "@Test\n\tpublic void filterTestStartWithLetter() {\n\t\tFlux<String> namesFlux = Flux.fromIterable(names).filter(s -> s.startsWith(\"a\")).log();\n\t\tStepVerifier.create(namesFlux).expectNext(\"adam\", \"anna\").verifyComplete();\n\t}", "title": "" }, { "docid": "feb649319569c7e2b07343c927756afe", "score": "0.46687633", "text": "public void addFilter(String filterType) {\n if (filterType == null) {\n return;\n }\n if (filterType.equals(\"flate\")) {\n addFilter(new FlateFilter());\n } else if (filterType.equals(\"null\")) {\n addFilter(new NullFilter());\n } else if (filterType.equals(\"ascii-85\")) {\n if (this.ignoreASCIIFilters) {\n return; //ignore ASCII filter\n }\n addFilter(new ASCII85Filter());\n } else if (filterType.equals(\"ascii-hex\")) {\n if (this.ignoreASCIIFilters) {\n return; //ignore ASCII filter\n }\n addFilter(new ASCIIHexFilter());\n } else if (filterType.equals(\"\")) {\n return;\n } else {\n throw new IllegalArgumentException(\n \"Unsupported filter type in stream-filter-list: \" + filterType);\n }\n }", "title": "" }, { "docid": "94b9ae90499c83931ebc0ca09c9a5e38", "score": "0.46665204", "text": "private boolean filterUrl(HTTPSamplerBase sampler)\n {\n String domain = sampler.getDomain();\n if (domain == null || domain.length() == 0)\n {\n return false;\n }\n\n String url = generateMatchUrl(sampler);\n CollectionProperty includePatterns = getIncludePatterns();\n if (includePatterns.size() > 0)\n {\n if (!matchesPatterns(url, includePatterns))\n {\n return false;\n }\n }\n\n CollectionProperty excludePatterns = getExcludePatterns();\n if (excludePatterns.size() > 0)\n {\n if (matchesPatterns(url, excludePatterns))\n {\n return false;\n }\n }\n\n return true;\n }", "title": "" }, { "docid": "0afcdb43d038e0371c9808d3d2fc2c9b", "score": "0.46627674", "text": "public boolean isScanFileByStringName(String FileName)\r\n\t{\r\n\t//\tString[] VALUES = new String[] {\"report\",\"url\",\"svn\"};\r\n\t\t\r\n\t\t\r\n//\t\tSystem.out.println(\"test\" + FileName);\r\n\t\tif (FileName.toLowerCase().contains(\"report\") || FileName.toLowerCase().contains(\"svn\") || FileName.toLowerCase().contains(\"url\")){\r\n\t\t//if (FileName.toLowerCase().contains(VALUES[]))\r\n\t\t\treturn false;\r\n\t\t}else{\r\n\t\t\treturn true;\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "a1d4bd58373d727daab72c51860afd73", "score": "0.4656738", "text": "public static Filter createFilter(String filter, String[] args) {\n switch (filter) {\n case GREATER_THAN:\n return new GreaterThanFilter(Double.parseDouble(args[ARG1]));\n case BETWEEN:\n return new BetweenFilter(Double.parseDouble(args[ARG1]), Double.parseDouble(args[ARG2]));\n case SMALLER_THAN:\n return new SmallerThanFilter(Double.parseDouble(args[ARG1]));\n case FILE:\n return new FileFilter(args[ARG1]);\n case CONTAINS:\n return new ContainsFilter(args[ARG1]);\n case PREFIX:\n return new PrefixFilter(args[ARG1]);\n case SUFFIX:\n return new SuffixFilter(args[ARG1]);\n case WRITABLE:\n return new WritableFilter(Boolean.parseBoolean(args[ARG1]));\n case EXECUTABLE:\n return new ExecutableFilter(Boolean.parseBoolean(args[ARG1]));\n case HIDDEN:\n return new HiddenFilter(Boolean.parseBoolean(args[ARG1]));\n case ALL:\n return new AllFilter();\n default:\n return new AllFilter();\n }\n }", "title": "" }, { "docid": "ea7a8008963c89fae5b8d6f902e9d0a0", "score": "0.46536073", "text": "@Test\n\tpublic void test9() {\n\t\tSqlFilter sqlFilter=new SqlFilter(\"select * from dual \");\n\t\tsqlFilter.addOrFilter(\"SQL|t1.id,t2.id|S|EQ\", \"111\");\n\t\tSystem.out.println(sqlFilter.getSql());\n\t\t\n\t\tsqlFilter=new SqlFilter(\"select * from dual \");\n\t\tsqlFilter.addFilter(\"SQL|t1.id,t2.id|OR_S|EQ\", \"111\");\n\t\tSystem.out.println(sqlFilter.getSql());\n\t}", "title": "" }, { "docid": "e6d458164c974702e2d70cebc81d2aef", "score": "0.4650106", "text": "public UnaryOperatorFilter isNotNull();", "title": "" }, { "docid": "bff1a29138a71aab510076ca0ebb7ce2", "score": "0.46407926", "text": "boolean hasSimplified();", "title": "" }, { "docid": "0d7b27e04c0e534fc8d9d32303bf34d7", "score": "0.4637582", "text": "public static ObservableList<Entry> filteredEntries(String filtStr) {\r\n ObservableList<Entry> filtList;\r\n \r\n filtList = FXCollections.observableArrayList();\r\n if (\"Notes\".equals(filterCriterion)) {\r\n for (Entry e : ENTRY_LIST) {\r\n if (customContains(e.notes(), filtStr)) filtList.add(e);\r\n }\r\n } else {\r\n for (Entry e : ENTRY_LIST) {\r\n if (customContains(e.name(), filtStr)) filtList.add(e);\r\n }\r\n }\r\n \r\n return filtList;\r\n }", "title": "" } ]
0471eb1ccfb9ddea2b359b9125b695c8
Extracts a path value from the given property set.
[ { "docid": "562b255a7fcda7bcbb13b5f925e623e1", "score": "0.0", "text": "public static @Nonnull Path requirePath(@Nonnull Properties pProperties, @Nonnull String pKey) {\r\n\t\treturn PROPS_ACCESSOR.requirePath(pProperties, pKey, pKey);\r\n\t}", "title": "" } ]
[ { "docid": "0f16dab530b2f71266f7b6f61791f78d", "score": "0.5453313", "text": "protected String extractPropertyOfMdFromPath(String[] partsOfPath) {\n return (partsOfPath.length > 4) ? partsOfPath[4] : null;\n }", "title": "" }, { "docid": "5322a80c10d9ee669c69cf6f3b9a7f08", "score": "0.53902066", "text": "Property getProperty(URI uri);", "title": "" }, { "docid": "18c435e4b50e942faaa7bce914ef94da", "score": "0.5387862", "text": "private String[] getPathPropertyFromXml(QualifiedName key) throws CoreException {\r\n traceFunc(\"getPathPropertyFromXml\");\r\n synchronized (this) {\r\n try {\r\n Node propertyNode = findPropertyNodeInXml(PYDEV_NATURE_PATH_PROPERTY, key);\r\n \r\n if (propertyNode != null) {\r\n traceFunc(\"END getPathPropertyFromXml\");\r\n return getChildValuesWithType(propertyNode, PYDEV_PATH);\r\n }\r\n \r\n traceFunc(\"END getPathPropertyFromXml (null)\");\r\n return null;\r\n } catch (Exception e) {\r\n traceFunc(\"END getPathPropertyFromXml (EXCEPTION)\");\r\n IStatus status = new Status(IStatus.ERROR, \"PythonNatureStore\", -1, e.toString(), e);\r\n throw new CoreException(status);\r\n }\r\n }\r\n }", "title": "" }, { "docid": "31d7d6dbf1cbf74081a2cf7b2ad64552", "score": "0.5270596", "text": "public static Property getProperty(Set<Property> properties, String propertyName) {\n Property property = null;\n for (Property prop : properties) {\n if (prop.getPropertyName().equals(propertyName)) {\n property = prop;\n break;\n }\n }\n return property;\n }", "title": "" }, { "docid": "12e18337da4221d0e246d829f54dfb2c", "score": "0.52349067", "text": "String value(String property) throws PropertiesFileNotFoundException, IOException;", "title": "" }, { "docid": "b5d0abb11e672d2d12f21768c556ee27", "score": "0.5169774", "text": "Object get(String path);", "title": "" }, { "docid": "cb1e98c87da25864cc8435de9fcec9c1", "score": "0.5101573", "text": "public static BeanPathProperties parsePathProperties() {\n Object pathProperties = Requests.getProperty(PATH_PROPS_PARSED);\n if (pathProperties == null) {\n String fields = parseQueryFields();\n if (fields != null) {\n pathProperties = BeanPathProperties.parse(fields);\n Requests.setProperty(PATH_PROPS_PARSED, pathProperties);\n } else {\n Requests.setProperty(PATH_PROPS_PARSED, false);\n }\n } else if (pathProperties.equals(false)) {\n return null;\n }\n return (BeanPathProperties) pathProperties;\n }", "title": "" }, { "docid": "e4e0c207610e1a3a1c06a2880f341871", "score": "0.50879353", "text": "public PropertyElementEx getPropertyFor(IContainer folder, String propertyName);", "title": "" }, { "docid": "760806fab03e31d090367fe179159ff2", "score": "0.5041965", "text": "public String getValue(String path) {\n\t\treturn this.getValue(path, path, false);\n\t}", "title": "" }, { "docid": "2eafc9a581707e90a1fd5b3915c10b6e", "score": "0.5020952", "text": "public static String getPropertyValue(String path,String key)\n\t{\n\t\tString value=\"\";\n\t\ttry{\n\t\t\t\tProperties p=new Properties();\n\t\t\t\tp.load(new FileInputStream(path));\n\t\t\t\tvalue=p.getProperty(key);\n\t\t}\n\t\tcatch(Exception e){\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn value;\n\t}", "title": "" }, { "docid": "ce0268cff752957b794090c1a6bb74e5", "score": "0.499091", "text": "public static String getPathOfSet() {\n return pathOfSet;\n }", "title": "" }, { "docid": "591d552b58365b6e812140ede1e7cba3", "score": "0.49693534", "text": "public String getProperty(PropertyKey key);", "title": "" }, { "docid": "ed0f4875d8680cf98eb1bb202e6a3996", "score": "0.49393907", "text": "String getProperty(String key);", "title": "" }, { "docid": "a1169ebbdac98c2be07e41b9f2d688d7", "score": "0.49242702", "text": "public String getProperty(String key) {\n if(stepPropertiesKey==null)\n return null;\n\n for( int i=0; i<stepPropertiesKey.length; i++ )\n if(stepPropertiesKey[i].equals(key))\n return stepPropertiesValue[i]; // found\n \n return null; // not found\n }", "title": "" }, { "docid": "6401787df176dabd43e80a909026d43d", "score": "0.49157128", "text": "NamespacedProperty getTargetXpath();", "title": "" }, { "docid": "c5b10bee1d8e13f404ddca9e41125cad", "score": "0.4914618", "text": "@Nonnull\n public PathValue getResolvedPathValue() {\n return value;\n }", "title": "" }, { "docid": "c946fafe97967ff7eea2ac43f7231c02", "score": "0.48209044", "text": "String getPropertyValue(String key);", "title": "" }, { "docid": "52ce8504c32d78fc83ee574c32abd718", "score": "0.48000625", "text": "public Collection getProperty ( String path ) {\n Collection nodes = XPathSupport.getChildrenWithPath(mRoot, path);\n Iterator iter = nodes.iterator();\n Vector v = new Vector();\n while (iter.hasNext()) {\n XMLPropertyNode node = (XMLPropertyNode)iter.next();\n if (node.isLeaf()) {\n Object value = node.getValue();\n v.addElement(value);\n } else {\n XMLProperties props = new XMLProperties();\n props.mRoot = node;\n v.addElement(props);\n\n }\n }\n return v;\n }", "title": "" }, { "docid": "966a2e9916ece927b98b8170ec63e019", "score": "0.4785201", "text": "boolean contains(String path, String property);", "title": "" }, { "docid": "937a8c25070aec5a8d3a1b63e1d2493b", "score": "0.4772304", "text": "NamespacedProperty getSourceXpath();", "title": "" }, { "docid": "529c122ee259a6febc04493a888205ba", "score": "0.47606564", "text": "public Path value() {\r\n\t\tif (outline == null) return value; // Not found in Store.txt, return our default\r\n\t\ttry {\r\n\t\t\treturn new Path(outline.getString());\r\n\t\t} catch (MessageException e) { return value; } // The outline value isn't a Path\r\n\t}", "title": "" }, { "docid": "5554b5e40cc89cba3a173999bad1f359", "score": "0.47374445", "text": "public String getSimplePropertyFor(IContainer folder, String propertyName);", "title": "" }, { "docid": "82652380962e167b2c3800e85e83bcd3", "score": "0.4734469", "text": "String getXpath();", "title": "" }, { "docid": "0d23a531753c082db520c7878740d896", "score": "0.4725658", "text": "public String getProp (String key) {\n ArrayList list = readProperties ();\n \n //search for key and return everyrthing after =\n return parseValue (search (key, list)).trim();\n \n }", "title": "" }, { "docid": "c96fb16b7151f64e9bb20c54db58ab59", "score": "0.463853", "text": "@Override\n public void handlePathValue(String pathx, String value) {\n int pos = pathx.indexOf(\"[@id=\\\"\");\n int posEnd = pathx.indexOf(\"\\\"]\", pos+6);\n id = pathx.substring(pos+6, posEnd);\n if (id == null) {\n System.out.println(\"PATH:\\t\" + pathx + \"\\t\\t\" + value);\n }\n this.value = value;\n }", "title": "" }, { "docid": "dfab47b2f3e232ec92bf748cfea276fb", "score": "0.46377048", "text": "private void extractVariablesTP(Set<Var> return_set, Map<TriplePath,Set<Var>> triplePaths) {\n for (Map.Entry<TriplePath,Set<Var>> e : triplePaths.entrySet()) {\n if (e.getKey().getSubject().isVariable()) return_set.add((Var)e.getKey().getSubject());\n if (e.getKey().getObject().isVariable()) return_set.add((Var)e.getKey().getObject());\n return_set.addAll(e.getValue());\n }\n }", "title": "" }, { "docid": "a18bad83dce5b841a737944f1b1cb5e2", "score": "0.46340922", "text": "@Override\r\n\tprotected Object extract(Object pattern, Map addObjects, Object logObject)\r\n\t\t\tthrows XPathExpressionException {\r\n\r\n\t\tString expression = (String) pattern;\r\n\r\n\t\treturn JsonPath.read((String) logObject, expression);\r\n\t}", "title": "" }, { "docid": "9240edfbf16df1d641b470d06da86ded", "score": "0.46257505", "text": "VariablePath getVariablePath();", "title": "" }, { "docid": "9eceb3a4a4cdc94e5cf9cea4714208de", "score": "0.46172023", "text": "protected String lookupProperty(String propertyName){\r\n String propertyValue = getProperty(propertyName);\r\n if (propertyValue == null){\r\n int dotIndex = propertyName.lastIndexOf(\".\");\r\n if (dotIndex == -1)\r\n return null;\r\n return lookupProperty(propertyName.substring(0,dotIndex));\r\n }\r\n else\r\n return propertyValue;\r\n }", "title": "" }, { "docid": "660b33c04a7bacf9c72ffb9176c7aed2", "score": "0.46118405", "text": "public abstract Object getProperty(String key) throws PropertyNotFoundException;", "title": "" }, { "docid": "8f12cafee09f0778c9ccd97ad881e32a", "score": "0.46082762", "text": "public ExpressionSearch get(String... path) {\r\n\t\t\ttheSequence.add(new PathSearchOp(path));\r\n\t\t\treturn this;\r\n\t\t}", "title": "" }, { "docid": "4421c2c6c6665e5d8a60ac02d79e4693", "score": "0.4598036", "text": "abstract public Object getProperty(String p0);", "title": "" }, { "docid": "6637bd030e7209858f4431bba16a35f7", "score": "0.45920408", "text": "String getProperty (String propertyName);", "title": "" }, { "docid": "fd0751bb4c80acfa695b3c2212a65ae8", "score": "0.45729044", "text": "Collection<Property> getMatchedTypedProperty(String type, String value);", "title": "" }, { "docid": "2f8e3c9054033731fbb3fbdf714b5a64", "score": "0.4556366", "text": "Optional<Property> findProperty( String name);", "title": "" }, { "docid": "a90fc5498f2de0630826d269fc08bf75", "score": "0.4546933", "text": "Property getProperty( String name);", "title": "" }, { "docid": "0db5f46b3dcdb7a811c7aae61d7df95e", "score": "0.4544171", "text": "public static String getProperty(String key,String path) {\t\n\t\ttry {\n\t\t\tInputStream input = new FileInputStream(path);\n\t\t\tprop.load(input);\n\t\t}\n\t\tcatch (Exception e) {\n\t\t\tSystem.out.println(e.getMessage());\n\t\t\tSystem.out.println(e.getCause());\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn prop.getProperty(key);\n\t}", "title": "" }, { "docid": "1054113d5757b83ae5d35ca615f3365c", "score": "0.45426926", "text": "String resolve(String propertyName);", "title": "" }, { "docid": "26302f283002e8da3c5661ad676f694f", "score": "0.45356634", "text": "Object getProperty(String name);", "title": "" }, { "docid": "26302f283002e8da3c5661ad676f694f", "score": "0.45356634", "text": "Object getProperty(String name);", "title": "" }, { "docid": "c7f43db4ace50e39629a9bd400e00a53", "score": "0.45321205", "text": "private static String getRelativeProperty(String property, String parent) {\n \n /* Special case... reference my parent's nested property.\n Otherwise impossible for things like indexed properties */\n if (\"./\".equals(property) || \"this/\".equals(property)) {\n return parent;\n }\n /* remove the stepping from the property */\n String stepping;\n \n /* isolate a parent reference */\n if (property.endsWith(\"/\")) {\n stepping = property;\n property = \"\";\n } else {\n stepping = property.substring(0,property.lastIndexOf('/')+1);\n /* isolate the property */\n property = property.substring(property.lastIndexOf('/')+1,property.length());\n }\n \n if (stepping.startsWith(\"/\")) {\n /* return from root */\n return property;\n } else {\n /* tokenize the nested property */\n StringTokenizer proT = new StringTokenizer(parent, \".\");\n int propCount = proT.countTokens();\n \n /* tokenize the stepping */\n StringTokenizer strT = new StringTokenizer(stepping, \"/\");\n int count = strT.countTokens();\n \n if (count >= propCount) {\n /* return from root */\n return property;\n \n } else {\n /* append the tokens up to the token difference */\n count = propCount - count;\n StringBuffer result = new StringBuffer();\n for (int i = 0; i < count; i++) {\n result.append(proT.nextToken());\n \n /* don't place dot if there's no property to append afterwards\n (for parent referencing) */\n if ((i == (count-1)) && (property.length() > 0)) {\n result.append('.');\n }\n }\n result.append(property);\n \n /* return stepped property */\n return result.toString();\n }\n }\n }", "title": "" }, { "docid": "98e75a0fc6388d941f85dfdb53c88998", "score": "0.45311108", "text": "public void get() {\n\t path = pathField.getText();\n }", "title": "" }, { "docid": "3831c94f57fa4f490ab52a1fdcd98244", "score": "0.45301482", "text": "Object getAttribute(String xPath);", "title": "" }, { "docid": "cd950fcd9fc8044ef223a76b489da797", "score": "0.45212933", "text": "String getSet();", "title": "" }, { "docid": "af671c29f10101301a881cdae6afe0ce", "score": "0.451409", "text": "PathMetadata<?> getMetadata();", "title": "" }, { "docid": "193268303fd4ca39f595285f2547d2c8", "score": "0.44997904", "text": "Object get(Property property, Object def);", "title": "" }, { "docid": "40cc7e93a3093a09d5d2f83a89181a01", "score": "0.44871688", "text": "private String getSingleAttributeValue(AttributeSet attributeSet, String attributeName) {\n java.util.Collection<Attribute> matchingAttributes = attributeSet.getAttributesByName(attributeName);\n if ( matchingAttributes != null && matchingAttributes.iterator().hasNext()) {\n return matchingAttributes.iterator().next().getValue();\n }\n return null;\n }", "title": "" }, { "docid": "f274331469299cf6ad80ae7dc96f8f22", "score": "0.44725367", "text": "public String getProperty(String key)\n {\n String value = getValue(key);\n if (value == null) { throw new NoSuchElementException(); }\n return value;\n }", "title": "" }, { "docid": "06f213e4c654eacb5706d08b00e1a35c", "score": "0.44647995", "text": "public String getValue(String path, boolean addExtraValues) {\n\t\treturn this.getValue(path, path, addExtraValues);\n\t}", "title": "" }, { "docid": "6d196efa31d05ef983b10194daf648a4", "score": "0.44618943", "text": "public Object getProperty(String uri) {\n return properties.get(uri);\n }", "title": "" }, { "docid": "f66178c4269d0c7824d7438225b1eef0", "score": "0.44529969", "text": "Property getMatchedUntypedProperty(String value);", "title": "" }, { "docid": "e77bf98b9f7575d362d017e0fd1f9ada", "score": "0.44437757", "text": "public String getProperty(String name);", "title": "" }, { "docid": "e77bf98b9f7575d362d017e0fd1f9ada", "score": "0.44437757", "text": "public String getProperty(String name);", "title": "" }, { "docid": "6ee644b2cf7eaf1dd2f4d4c6d8c686e5", "score": "0.44338983", "text": "public static Object fetchpropertyvalue(String key) throws IOException\n{\n\tFileInputStream file=new FileInputStream(\"./config/config.properties\");\n\t//Creating an object of the property class\n\tProperties property=new Properties();\n\t//First we are loading the required file\n\tproperty.load(file);\n\t//Since we are having the data in property file as key and value pair we are passing the key to get the data\n\treturn property.get(key);\n}", "title": "" }, { "docid": "034dda30234a2890bff267de201739aa", "score": "0.4433674", "text": "Set<String> paths();", "title": "" }, { "docid": "3999d76b6ecb047ee248515ed18a4bd2", "score": "0.4427842", "text": "@Override\n public XValue get(String name) throws InvalidArgumentException {\n assert (name != null);\n // Try a section first\n if(mSections.containsKey(name))\n return mSections.get(name).asXValue();\n\n // try a plain property\n if(name.indexOf(ShellConstants.kDOT_CHAR) < 0)\n return getProperty(mDefaultSectionName, name);\n\n // right to left find kDOT_CHAR\n // TODO handle [a.b] c.d=value , [a.b.c] d=value\n StringPair pair = new StringPair(name, ShellConstants.kDOT_CHAR, false);\n\n return getProperty(pair.getLeft(), pair.getRight());\n\n }", "title": "" }, { "docid": "ebb58f7719902d8504f2e473bab7a6f4", "score": "0.442541", "text": "public static String getConfigString(List configPath, String name, String property, String defaultValue)\n\t{\n\t\tfor (Iterator i = configPath.iterator(); i.hasNext();)\n\t\t{\n\t\t\tConfiguration config = (Configuration) i.next();\n\t\t\tString value = config.getChild(name).getAttribute(property, null);\n\n\t\t\tif (value != null)\n\t\t\t{\n\t\t\t\treturn value;\n\t\t\t}\n\t\t}\n\n\t\treturn defaultValue;\n\t}", "title": "" }, { "docid": "83757c5610f473dd341a0698d8ddacdb", "score": "0.44249564", "text": "public DrJavaProperty getProperty(String key) {\n for(String category: _props.keySet()) {\n DrJavaProperty p = getProperty(category, key);\n if (p!=null) { return p; }\n }\n return null;\n }", "title": "" }, { "docid": "e763b0810396e3986d8e6a638ebd67e2", "score": "0.4413371", "text": "public String getPropertyValue(String id);", "title": "" }, { "docid": "e948d50e1b01e9b5b6747e1aa852117f", "score": "0.44121525", "text": "Property getProperty();", "title": "" }, { "docid": "4db441717c0e92a13aeeccb2b4ea6e84", "score": "0.44052497", "text": "void set(@Nonnull String key, @Nonnull Path value);", "title": "" }, { "docid": "5eb8ff00bdead7eda89108b5820d23b7", "score": "0.43806013", "text": "@NonNull Set<@NonNull String> getPathVariableNames();", "title": "" }, { "docid": "fd960eaa4c7981b1113327ed822e60a2", "score": "0.43705022", "text": "<T> T getProperty(Property<T> property, E element);", "title": "" }, { "docid": "63ecaeee721ff2dad2d3852759004500", "score": "0.43652675", "text": "private void handlePathAttribute(Element element, PathList pathList) {\r\n String path = resolveString(element.getAttribute(ATTRIBUTE_PATH));\r\n if (!Utils.isStringNullOrEmpty(path)) {\r\n String[] filePaths = path.split(\"[:;]\");\r\n for (String filePath : filePaths) {\r\n String resolvedFilePath = resolveString(filePath);\r\n if (!Utils.isStringNullOrEmpty(resolvedFilePath)) {\r\n pathList.addPath(resolvedFilePath);\r\n }\r\n }\r\n }\r\n }", "title": "" }, { "docid": "2c9816955af73b3ecac79cea39ba817a", "score": "0.43543994", "text": "public String getFirst() {\n Assert.checkFalse(path.isEmpty(), \"Can't get first item of empty path.\");\n\n return path.get(0);\n }", "title": "" }, { "docid": "0c6cb683a9ca55ddcce2ae7682ecc454", "score": "0.43444327", "text": "static String getPropertyValue(GraphNode graphNode, Map<String, String> properties, String key) {\n String propertyKey = properties.get(key);\n if (propertyKey == null) {\n return null;\n }\n for (Property property : graphNode.getProperties()) {\n /*\n * BugFix: BUGID UML-7176 Description: The comparison of strings should use the \".equals\" method, not \"==\".\n * Solution: Code is modified to use the \".equals\" method instead.\n */\n // old code\n // if (property.getKey() == propertyKey) {\n if (property.getKey().equals(propertyKey)) {\n return property.getValue();\n }\n }\n return null;\n }", "title": "" }, { "docid": "d788db76004c1ac37afac34ab768eecf", "score": "0.43434566", "text": "void set(String path, Object value);", "title": "" }, { "docid": "dbf495037c8f74169587b4f7e51de176", "score": "0.43361855", "text": "public abstract String getProperty(String name);", "title": "" }, { "docid": "b13b1161118df01073187781712e4bde", "score": "0.4332926", "text": "public static String getFITSProperty (Properties props, String key)\n\t\t{\n\t\treturn filter(props.getProperty(key));\n\t\t}", "title": "" }, { "docid": "8ae85a0934d8aa85237da1a0aaadb278", "score": "0.43281576", "text": "public PropertyElementEx getPropertyFor(NedFileElementEx nedFileElement, String propertyName);", "title": "" }, { "docid": "5b987fab18374838d0ba0e413220a5e1", "score": "0.43269214", "text": "public java.lang.String getPath()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.SimpleValue target = null;\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(PATH$4, 0);\n if (target == null)\n {\n return null;\n }\n return target.getStringValue();\n }\n }", "title": "" }, { "docid": "0c6ba6f530c1d872804ad8cc98bd513d", "score": "0.43228272", "text": "XPathExpression getXpath();", "title": "" }, { "docid": "4e81d08b9e0d6b8589c19f391f74353d", "score": "0.43196863", "text": "Optional<PROPERTY> getPropertyById(String propertyId);", "title": "" }, { "docid": "44144210082550c339017ca6891c6ef7", "score": "0.43191326", "text": "public static String get(String... components) {\n\n\t\tString key = StringUtils.join(components, \".\");\n\n\t\tLOG.info(\"Key: \" + key);\n\n\t\tString value = getConfigProperties().getProperty(key);\n\n\t\tLOG.info(\"Value: \" + value);\n\n\t\treturn value;\n\t}", "title": "" }, { "docid": "3e822dd7a617a3500460668b7ca86953", "score": "0.43015772", "text": "public static void set(SNode root, String path, Object value) {\n\n Preconditions.checkArgument(path != null && !path.isEmpty(), \"Path is empty or null\");\n Preconditions.checkArgument(value != null, \"Can't set a null value\");\n\n String property = null;\n int separatorPos = path.lastIndexOf(\".\");\n if (separatorPos != -1) {\n property = path.substring(separatorPos + 1);\n path = path.substring(0, separatorPos);\n } else {\n property = path;\n path = \"\";\n }\n\n try {\n SNodeLocator.Location location = SNodeLocator.locate(root, new PathNavigator(path));\n\n if (location.isJsonObject() || location.isJsonProperty()) {\n throw new IllegalStateException(\"Node can't be mutated\");\n }\n\n if (location.node instanceof SMap) {\n\n location.node.asMap().put(property, value);\n\n } else if (location.node instanceof SList) {\n\n try {\n\n int index = Integer.valueOf(property);\n location.node.asList().addAt(value, index);\n\n } catch (NumberFormatException e) {\n throw new IllegalStateException(\"Not a valid list index\");\n }\n\n }\n\n } catch (SException e) {\n throw new IllegalStateException(e);\n }\n\n\n }", "title": "" }, { "docid": "bde2b5f22267cf92bce214656f7d677f", "score": "0.4295138", "text": "public String getSpecPath(Element element) {\n String specpath = \"\";\n try {\n specpath = element.getAttribute(\"specpath\");\n } catch (Exception e) {\n LOG.error(\"Could not determine the relative path given Element {}.\", element);\n System.exit(-47);\n }\n return specpath;\n }", "title": "" }, { "docid": "cddcc69c59e9fb8b7fec0e8ad45c746c", "score": "0.42941555", "text": "@Override\n public Path getPath(String first, String... more) {\n return null;\n }", "title": "" }, { "docid": "d036c8f6592342a619ccf00c55bb0b14", "score": "0.4290725", "text": "public java.util.List getPaths();", "title": "" }, { "docid": "8ff128e47e42ddae37e30d5f81b66d94", "score": "0.42902514", "text": "public String readPropFile(String key) {\n\t\tfinal Properties prop = new Properties();\n\t\tInputStream input = null;\n\t\tString getProp = null;\n\n\t\ttry {\n\t\t\ttry {\n\t\t\t\tinput = new FileInputStream(strRelPath + \"TestInput/configuration.properties\");\n\t\t\t\t// load a properties file\n\t\t\t\tprop.load(input);\n\t\t\t\t// get the property value and print it out\n\t\t\t\tgetProp = prop.getProperty(key);\n\n\t\t\t} catch (Exception e) {\n\t\t\t\tinput = new FileInputStream(strRelPath + \"TestInput/configuration.properties\");\n\t\t\t\t// load a properties file\n\t\t\t\tprop.load(input);\n\t\t\t\t// get the property value and print it out\n\t\t\t\tgetProp = prop.getProperty(key);\n\t\t\t}\n\n\t\t} catch (IOException ex) {\n\t\t\tex.printStackTrace();\n\t\t} finally {\n\t\t\tif (input != null) {\n\t\t\t\ttry {\n\t\t\t\t\tinput.close();\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn getProp;\n\t}", "title": "" }, { "docid": "d480e153cf9eaaa3438c49d54f2c1e77", "score": "0.4289361", "text": "public String get(String key)\n/* */ {\n/* 54 */ return this.entries.getProperty(key);\n/* */ }", "title": "" }, { "docid": "9fa78397015d2160206512760cf19b9e", "score": "0.428425", "text": "Path getChild(String name);", "title": "" }, { "docid": "de28e62920fe9aba99adf5f523044fb3", "score": "0.42822048", "text": "public Object getProperty(String name);", "title": "" }, { "docid": "e7072936515eaadeacc3a9707f1a2754", "score": "0.42813584", "text": "public String getPropertyValue(String name);", "title": "" }, { "docid": "617bb03b7238242c2f0575de2431f9d0", "score": "0.4271887", "text": "private String getHl7Value(final String path, final Message hl7Message) throws HL7Exception {\n final Terser terser = new Terser(hl7Message);\n return terser.get(path);\n\n }", "title": "" }, { "docid": "8a99654c21be036b19aec6a446fb505a", "score": "0.4269159", "text": "protected Object lookupRecursively(PropertyKey originalKey, String base, Set<String> seen)\n throws UnresolvablePropertyException {\n // check argument\n if (base == null) {\n throw new UnresolvablePropertyException(\"Can't resolve property with null value\");\n }\n\n String resolved = base;\n Object resolvedValue = null;\n PropertyKey key = null;\n // Lets find pattern match to ${key}.\n // TODO(hsaputra): Consider using Apache Commons StrSubstitutor.\n Matcher matcher = CONF_REGEX.matcher(base);\n while (matcher.find()) {\n String match = matcher.group(2).trim();\n if (!seen.add(match)) {\n throw new RuntimeException(ExceptionMessage.KEY_CIRCULAR_DEPENDENCY.getMessage(match));\n }\n if (!PropertyKey.isValid(match)) {\n throw new RuntimeException(ExceptionMessage.INVALID_CONFIGURATION_KEY.getMessage(match));\n }\n key = PropertyKey.fromString(match);\n Object value = mProperties.get(key);\n String stringValue = null;\n if (value instanceof String) {\n stringValue = String.valueOf(lookupRecursively(key, (String) value , seen));\n }\n else if (value != null) {\n stringValue = String.valueOf(value);\n }\n seen.remove(match);\n if (stringValue == null) {\n throw new UnresolvablePropertyException(ExceptionMessage\n .UNDEFINED_CONFIGURATION_KEY.getMessage(match));\n }\n resolved = resolved.replaceFirst(REGEX_STRING, Matcher.quoteReplacement(stringValue));\n }\n if (key != null) {\n resolvedValue = originalKey.parseValue(resolved);\n } else {\n resolvedValue = resolved;\n }\n return resolvedValue;\n }", "title": "" }, { "docid": "4106b9b5c06ff926b4c3a1ce1472df99", "score": "0.42627272", "text": "PROPERTY getProperty();", "title": "" }, { "docid": "5147f34c7dd868806f31cf8af28c5fad", "score": "0.4259159", "text": "public Object getProperty(String paramString) {\n/* 275 */ if (this.properties == null) {\n/* 276 */ return null;\n/* */ }\n/* 278 */ return this.properties.get(paramString);\n/* */ }", "title": "" }, { "docid": "22590884c485eaf418a5fdced807823f", "score": "0.42587897", "text": "public String getProperty(final String refProperties,\r\n final String propertyName) {\r\n Validate.notNull(propertyName, \"The property name cannot be null.\");\r\n // if a properties bean has been referenced, just look for the property in\r\n // it\r\n if (!StringUtils.isEmpty(refProperties)) {\r\n Properties properties = propertiesMap.get(refProperties);\r\n if (properties == null) {\r\n throw new RuntimeException(\"Properties bean [\" + refProperties\r\n + \"] couldn't be found\");\r\n }\r\n String propertyValue = properties.getProperty(propertyName);\r\n if (StringUtils.isEmpty(propertyValue)) {\r\n throw new RuntimeException(\"Couldn't get value for [\" + propertyName\r\n + \"] in properties bean [\" + refProperties + \"]\");\r\n }\r\n return propertyValue;\r\n }\r\n\r\n // no reference to a specific properties bean, use all available\r\n for (Properties properties : propertiesList) {\r\n if (properties.containsKey(propertyName)) {\r\n return properties.getProperty(propertyName);\r\n }\r\n }\r\n throw new RuntimeException(\"Couldn't get value for [\" + propertyName\r\n + \"] in any of the properties beans\");\r\n }", "title": "" }, { "docid": "e293dca916ec21ca0efa270f16b19600", "score": "0.42581323", "text": "Property getProperty(String shortname);", "title": "" }, { "docid": "5246bc57251d3339257404ea1c151ef0", "score": "0.4255983", "text": "public static String getNormalProperty(String predicate) {\n if (predicate == null || !predicate.contains(\"/\")) {\n return null;\n }\n return predicate.substring(predicate.lastIndexOf(\"/\") + 1);\n }", "title": "" }, { "docid": "30c4732e59fea114dc65754c3c5b7f6c", "score": "0.42550766", "text": "void extractPropertiesFromCollection(Collection env)\r\n {\r\n environment = new HashMap();\r\n for (Iterator it = env.iterator(); it.hasNext();)\r\n {\r\n String entry = (String) it.next();\r\n int pos = entry.indexOf('=');\r\n if (pos == -1)\r\n {\r\n getLogger().warn(\"Ignoring: \" + entry);\r\n }\r\n else\r\n {\r\n environment.put(entry.substring(0, pos), entry\r\n .substring(pos + 1));\r\n }\r\n }\r\n }", "title": "" }, { "docid": "918f97937824c33e17922742beef4859", "score": "0.4249515", "text": "public String getValue(String key) {\r\n return getAntProject().getProperty(key);\r\n }", "title": "" }, { "docid": "29ea18302ecd20cf519b16a5188b835f", "score": "0.4245879", "text": "public String getProperty(String key) {\r\n return property.get(key);\r\n }", "title": "" }, { "docid": "90819c4d2cbf9bea8566f86c7a7565a1", "score": "0.4243062", "text": "public ModelElement lookupPathName(List names);", "title": "" }, { "docid": "bf882fadc92e9c6296b3461c92114bc3", "score": "0.42390153", "text": "private static String valueForKeyAtIndex(String[] toks, String key, int index) {\n\t\tfor(int i=0; i<toks.length; i++) {\n\t\t\tif (toks[i].startsWith(key)) {\n\t\t\t\tString token = toks[i].replace(key, \"\").replace(\"=\", \"\").replace(\";\", \"\").trim();\n\t\t\t\treturn token.split(\",\")[index];\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}", "title": "" }, { "docid": "fd8cf0fa85cc31ab2f9aa01f8a06888e", "score": "0.42364892", "text": "Set<ConfigProperty> getProperties(String componentName);", "title": "" }, { "docid": "77aa289348894e347840fd7bf7aadd87", "score": "0.42353752", "text": "public RepoPathElement getPathElement() {\n return pathElement;\n }", "title": "" }, { "docid": "2335a322027b58286d8c246176c60cc7", "score": "0.42320675", "text": "public PATHTYPE getPathType();", "title": "" }, { "docid": "953fa30c2b421161abc99927ad779fd5", "score": "0.42306384", "text": "public static String getSingleValueString(ModelSet modelset, Resource res, URI pred) {\r\n\t\tNode n = getSingleValue(modelset, res, pred);\r\n\t\tif(n == null)\r\n\t\t\treturn null;\r\n\t\t\r\n\t\tif(n instanceof Literal)\r\n\t\t\t// Literal\r\n\t\t\treturn ((Literal)n).getValue();\r\n\t\treturn n.toString();\r\n\t}", "title": "" }, { "docid": "d1b1f46663964a0671c6d8beda7b1abe", "score": "0.4226062", "text": "public interface IndependentSetOfPaths {\n\tSet<Path> getPaths();\n}", "title": "" }, { "docid": "968f90a91f7bf72623afe2456faf93e7", "score": "0.42231226", "text": "String PathtoString(Path p) {\r\n\r\n String s=p.head;\r\n\r\n p=p.tail;\r\n\r\n for(;p!=null; p=p.tail)\r\n s=s+\".\"+p.head;\r\n\r\n return s;\r\n }", "title": "" } ]
8e4480918c260116719dc3bfcf4b6dbb
SessionStatus status = event.getSessionReference().getStatus();
[ { "docid": "f68a10a0b158c5e0c66362179c662f3d", "score": "0.0", "text": "@Override\r\n public void call(TClientEvent event) {\n }", "title": "" } ]
[ { "docid": "abfc2b055be8253dc769eb477232cada", "score": "0.72983694", "text": "io.opencannabis.schema.commerce.CommercialPOS.SessionStatus getStatus();", "title": "" }, { "docid": "2b7d290fb3d1578c35e96563169ec9ff", "score": "0.72334915", "text": "GetSessionStatusResult getSessionStatus(GetSessionStatusRequest getSessionStatusRequest);", "title": "" }, { "docid": "2cac90b0845199c4a4e8a3633bc32f32", "score": "0.67633957", "text": "short getSessionState();", "title": "" }, { "docid": "91efa1a3dc50ca4c3874ccd025253cb2", "score": "0.6756848", "text": "SessionState getSessionState();", "title": "" }, { "docid": "19dc2a848080b0a75239002ce68bb758", "score": "0.652673", "text": "public String getCheckInStatus(String sessionId) throws InvalidSessionException;", "title": "" }, { "docid": "67c8aab2cebbe8295288ceaeab250a12", "score": "0.65191615", "text": "public void sessionActivated(SessionEvent evt);", "title": "" }, { "docid": "c046346f35741b63ad2496809684f2ae", "score": "0.642607", "text": "void sessionCreated(SessionEvent se);", "title": "" }, { "docid": "d725cf1cefc436b58679cb19826210d4", "score": "0.6413435", "text": "@GetMapping(\"/get\")\n public ResponseEntity<RBSessionStats> getSessionStatus() {\n RBSessionStats thisSession = new RBSessionStats();\n thisSession.setRbCurrentAccount(currentAccount);\n thisSession.setRbSessionStatus(sessionStatus);\n return new ResponseEntity<>(thisSession, HttpStatus.OK); \n }", "title": "" }, { "docid": "6c23f31585b1afe5f29e1a0c42af07d6", "score": "0.63709587", "text": "public io.opencannabis.schema.commerce.CommercialPOS.SessionStatus getStatus() {\n @SuppressWarnings(\"deprecation\")\n io.opencannabis.schema.commerce.CommercialPOS.SessionStatus result = io.opencannabis.schema.commerce.CommercialPOS.SessionStatus.valueOf(status_);\n return result == null ? io.opencannabis.schema.commerce.CommercialPOS.SessionStatus.UNRECOGNIZED : result;\n }", "title": "" }, { "docid": "1a5fc35ef6a8a3d6535eaf2ff33f5c72", "score": "0.6365845", "text": "public io.opencannabis.schema.commerce.CommercialPOS.SessionStatus getStatus() {\n @SuppressWarnings(\"deprecation\")\n io.opencannabis.schema.commerce.CommercialPOS.SessionStatus result = io.opencannabis.schema.commerce.CommercialPOS.SessionStatus.valueOf(status_);\n return result == null ? io.opencannabis.schema.commerce.CommercialPOS.SessionStatus.UNRECOGNIZED : result;\n }", "title": "" }, { "docid": "96ec8a1b30d3fe58eafc3b414d280426", "score": "0.63426787", "text": "@Override\n\tpublic void sessionCreated(HttpSessionEvent se) {\n\t\t\n\t}", "title": "" }, { "docid": "fa7c2ee0ab8c0e2d4cb9344609b09fb5", "score": "0.6324989", "text": "public void sessionConnected(SessionEvent evt);", "title": "" }, { "docid": "9e85c25f8bf0e884983db819dced3fd7", "score": "0.6291562", "text": "public long getSession() {\r\n return session;\r\n }", "title": "" }, { "docid": "809477d92b7b6f44324639979b82ea86", "score": "0.62645626", "text": "boolean IPCAST_GetSessionStatus(NativeLong sid, TagSessionAttr pSession);", "title": "" }, { "docid": "a21274d4377bef9f2621bd823763d7e1", "score": "0.6226562", "text": "public interface SessionListener extends EventListener {\n\n /**\n * Notification that a session was created.\n *\n * @param se the notification event\n */\n void sessionCreated(SessionEvent se);\n\n /**\n * Notification that a session is about to be invalidated.\n *\n * @param se the notification event\n */\n void sessionDestroyed(SessionEvent se);\n}", "title": "" }, { "docid": "0b52c16da0848eb360691c4a9cc5bc96", "score": "0.6220323", "text": "public void sessionWillPassivate(HttpSessionEvent httpSessionEvent) {\n }", "title": "" }, { "docid": "8aad6a3cd4cb12de97eb0cf62db29f08", "score": "0.62075776", "text": "public abstract void onSessionStarted();", "title": "" }, { "docid": "5a091ddad7c30d37a9aa868275b6c5c5", "score": "0.6205936", "text": "public long getSessionHandle() {\n return sessionHandle;\n }", "title": "" }, { "docid": "33904398cfaec26636175bc3b90915ee", "score": "0.6191416", "text": "public interface ISessionListener {\n\n void onSessionFinish();\n\n void onRegContinue();\n\n void onSessionError();\n\n}", "title": "" }, { "docid": "ff19a1a318bd0a559328c6fdab65c3f7", "score": "0.61868936", "text": "public String status()\n {\n return \"connected\";\n }", "title": "" }, { "docid": "a0a3bb25e7bb5a660442560d20cc30f0", "score": "0.6161223", "text": "public interface Session extends Remote {\n\t\n\t/**\n\t * @return Indicates whether this sessions can process method invocations\n\t */\n\tpublic boolean isValid() throws RemoteException;\n\t\n\t/**\n\t * @return The time stamp of the last call to this session\n\t */\n\tlong getTimeStamp() throws RemoteException;\n\t\n\t/**\n\t * Destroys the session such that it cannot process calls anymore.\n\t */\n\tvoid destroy() throws RemoteException;\n\t\n SessionManager getSessionManager() throws RemoteException;\n\n}", "title": "" }, { "docid": "02de5990ef00e3f0205a62dd7503743d", "score": "0.61559594", "text": "public int sessionId()\n {\n return this.sessionId;\n }", "title": "" }, { "docid": "88bc1e9db2003c6a5ded7e1c6e1ab063", "score": "0.61524355", "text": "void onSessionStopped();", "title": "" }, { "docid": "e320de8d468d693957cfa9a92c55c177", "score": "0.61226696", "text": "public boolean onSessionSelected(String sessionId);", "title": "" }, { "docid": "dc3deb190801f77437170fcaeb1caff5", "score": "0.61129457", "text": "@Override\n\tpublic void sessionCreated(HttpSessionEvent event) {\n\t\tSystem.out.printf(\"Session ID %s created at %s%n\", event.getSession().getId(), new Date());\n\t}", "title": "" }, { "docid": "dfc49f50c55a32369be5d14705d115f8", "score": "0.6106608", "text": "@Override\n\tpublic void sessionCreated(HttpSessionEvent arg0) {\n\t\t\n\t}", "title": "" }, { "docid": "6aa6ee04cc1c21890f6ebcd2999fa08f", "score": "0.60843253", "text": "@Override\r\n\tpublic void sessionCreated(HttpSessionEvent arg0) {\n\t}", "title": "" }, { "docid": "1a6842063dfde8b88f2d6a7a70d25338", "score": "0.60664684", "text": "@Override\n\tpublic void sessionCreated(HttpSessionEvent arg0) {\n\t}", "title": "" }, { "docid": "11d01a12e53457bc5c3c582ce1856ee1", "score": "0.6053111", "text": "com.zhizulx.tt.protobuf.IMBaseDefine.SessionType getSessionType();", "title": "" }, { "docid": "11d01a12e53457bc5c3c582ce1856ee1", "score": "0.6053111", "text": "com.zhizulx.tt.protobuf.IMBaseDefine.SessionType getSessionType();", "title": "" }, { "docid": "11d01a12e53457bc5c3c582ce1856ee1", "score": "0.6053111", "text": "com.zhizulx.tt.protobuf.IMBaseDefine.SessionType getSessionType();", "title": "" }, { "docid": "b4d3370eafa7f8873c8530db252a1be7", "score": "0.6050352", "text": "void sessionTouched(SessionData sessionData);", "title": "" }, { "docid": "322bb84f5a75cdc6ac054602b43cd1c4", "score": "0.6018839", "text": "@Override\n public void sessionStarted() {\n }", "title": "" }, { "docid": "4c21c832dd8118dc54cb063233ac67c1", "score": "0.6008879", "text": "public com.vh.locker.ejb.UserStatus getUserStatus();", "title": "" }, { "docid": "6a4a8f70cd1e8c81b3f19d31392f2806", "score": "0.5988306", "text": "@Override\r\n\tpublic void sessionCreated(HttpSessionEvent arg0) {\n\t\tusercount=usercount+1;\r\n\t\t//System.out.println(\"online person:\"+usercount);\r\n\t\t//System.out.println(arg0.getSession().getId()+\"enter system\"+this.hashCode());\r\n\r\n\t}", "title": "" }, { "docid": "786499d941513b232d4fdce5d219d3ca", "score": "0.59859055", "text": "@Override\n\tpublic void onStatusEvent(StatusEvent e) {\n\t\t\n\t}", "title": "" }, { "docid": "06092193ad4424c5b91a8efe1ee3b013", "score": "0.59494793", "text": "@Override\n public void sessionCreated(HttpSessionEvent httpSessionEvent) {\n }", "title": "" }, { "docid": "d78311e23718d3d578310c8b8acf5999", "score": "0.59380287", "text": "public static int getMyStatus() {\n return sharedSession.getUser().getStatus();\n }", "title": "" }, { "docid": "9a858d2c37b3b782462205c743d033e0", "score": "0.5934292", "text": "public boolean getSessionPresent() {\n return this.sessionPresent;\n }", "title": "" }, { "docid": "2bff82759c3f31eac2eb69a0a938f683", "score": "0.5926982", "text": "public long getSessionID(){\n\t\treturn sessionID;\n\t}", "title": "" }, { "docid": "8ebe47a8ec5e5187a96d32a0f0a54867", "score": "0.5923427", "text": "public interface OutboundSessionContext extends ActivityNotifier {\n /**\n * Change state to open.\n */\n void open();\n \n /**\n * Change state to bound state.\n * @param bindType\n */\n void bound(BindType bindType);\n \n /**\n * Change state to unbound.\n */\n void unbound();\n \n /**\n * Change state to close.\n */\n void close();\n \n /**\n * Get current session state.\n * \n * @return the current session state.\n */\n SessionState getSessionState();\n \n /**\n * Get the last activity of a session.\n * \n * @return the last activity timestamp. \n */\n long getLastActivityTimestamp();\n}", "title": "" }, { "docid": "db7f6b008f32242a067df1ac2a2ea477", "score": "0.5918578", "text": "UserStatus getUserStatus();", "title": "" }, { "docid": "db7f6b008f32242a067df1ac2a2ea477", "score": "0.5918578", "text": "UserStatus getUserStatus();", "title": "" }, { "docid": "074499c17ecd0607522d5d514ddcc3a4", "score": "0.58983415", "text": "public void receiveResultkeepSessionAlive(\r\n ) {\r\n }", "title": "" }, { "docid": "a683a4c2b7091db4b42390e168805cd1", "score": "0.58835125", "text": "void sessionClosed(SessionEvent evt);", "title": "" }, { "docid": "6b9a48ee1b6742781758a384d5e86230", "score": "0.5879041", "text": "public byte[] getSessionCounter(){ return sessionCounter; }", "title": "" }, { "docid": "8b9483dd9b0b46aa1b527af6b082d000", "score": "0.58785856", "text": "public String getSessionid() {\n return sessionid;\n }", "title": "" }, { "docid": "5f0112a549cbb73bccd0562064eb72bb", "score": "0.58755386", "text": "public String getSessionToken(){\n return sessionToken;\n }", "title": "" }, { "docid": "c09ec41be4de16026a429adceb9ae3ef", "score": "0.586171", "text": "public boolean inSession() {\n return th.in_session();\n }", "title": "" }, { "docid": "e834c6df3053c48fa010e873168932f6", "score": "0.5859243", "text": "@Override\r\n\tpublic void sessionCreated(HttpSessionEvent se) {\n\t\tSystem.out.println(\"---一个session被创建!!\");\r\n\t\tHttpSession session=se.getSession();\r\n\t\tServletContext sc =session.getServletContext();\r\n\t\tint onlineCount=(int)sc.getAttribute(\"onlineCount\");\r\n\t\tonlineCount++;\r\n\t\tsc.setAttribute(\"onlineCount\", onlineCount);\r\n\t}", "title": "" }, { "docid": "3c7534f1276eb9707125e0862fe2ef2c", "score": "0.5835377", "text": "public CallSessionState getState();", "title": "" }, { "docid": "49c34ceaa05a352da2823c8cc237919b", "score": "0.5832535", "text": "int getSessionId();", "title": "" }, { "docid": "49c34ceaa05a352da2823c8cc237919b", "score": "0.5832535", "text": "int getSessionId();", "title": "" }, { "docid": "49c34ceaa05a352da2823c8cc237919b", "score": "0.5832535", "text": "int getSessionId();", "title": "" }, { "docid": "e4db5e6215e2596f59989599caee9389", "score": "0.58172727", "text": "public boolean getStatus(){\n return status;\n }", "title": "" }, { "docid": "8c216ac005f70a184897a97732e386b9", "score": "0.58141243", "text": "boolean hasSessionId();", "title": "" }, { "docid": "8c216ac005f70a184897a97732e386b9", "score": "0.58141243", "text": "boolean hasSessionId();", "title": "" }, { "docid": "8c216ac005f70a184897a97732e386b9", "score": "0.58141243", "text": "boolean hasSessionId();", "title": "" }, { "docid": "8c216ac005f70a184897a97732e386b9", "score": "0.58141243", "text": "boolean hasSessionId();", "title": "" }, { "docid": "951cbfa7256bf44abe16efed9ef2a8a1", "score": "0.58125615", "text": "public int getStatus(String sessionId)\r\n\t\t\t\tthrows SQLException {\r\n\r\n\t\tif (sessionId == null)\r\n\t\t\treturn -1;\r\n\r\n\t\tStringBuffer where = new StringBuffer(\"system_sid='\")\r\n\t\t\t.append(sessionId).append(\"'\");\r\n\r\n\t\tObject o = _db.selectFirstAttrib(\"status\", \"session\", \r\n\t\t\t\twhere.toString());\r\n\r\n\t\tif (o == null)\r\n\t\t\treturn -1;\r\n\r\n\t\tInteger i = (Integer)o;\r\n\r\n\r\n\t\treturn i.intValue();\r\n\t}", "title": "" }, { "docid": "ca81285da7370454ce8c29924e5c4b39", "score": "0.58079314", "text": "public int getStatus(){\n return status;\n }", "title": "" }, { "docid": "906de23e926b792ed7b866af4914758c", "score": "0.58014244", "text": "public Session getSession() { return session; }", "title": "" }, { "docid": "6645c06da68e00eaed5c552da55de5e3", "score": "0.57998717", "text": "public String getSessionID();", "title": "" }, { "docid": "fb2533b8de439a6b13bc4a86cda292b8", "score": "0.57995695", "text": "public int getStatus() { return status; }", "title": "" }, { "docid": "765c708c6f9a95a312f4818eb3b6a68f", "score": "0.5799063", "text": "public int getSessionId();", "title": "" }, { "docid": "a34390adcf21cb18c9d473d93ba1b660", "score": "0.5789864", "text": "public String getSessionId() {\r\n return sessionId;\r\n }", "title": "" }, { "docid": "d4368ebd599b5a9fd9edd8b1a19f8bf3", "score": "0.5789145", "text": "@Override\n\tpublic void sessionCreated(HttpSessionEvent arg0) {\n\t\tSystem.out.println(\"session监听器创建\"+new java.util.Date().toLocaleString());\n\t}", "title": "" }, { "docid": "07cb3527dacf029d92061e9ba57c923d", "score": "0.57880443", "text": "String getSession();", "title": "" }, { "docid": "cf110818f8e2fc87cb103e093d042ecc", "score": "0.57856256", "text": "public long getSessionLifetime();", "title": "" }, { "docid": "dbe72a29c5ed72319e81e25fd76aaab8", "score": "0.57753044", "text": "public int getActiveSessionCount() {\n return activeSessionCount;\n }", "title": "" }, { "docid": "ccc0324547c0bb22e7e738a9bfcefe41", "score": "0.5767363", "text": "io.opencannabis.schema.commerce.CommercialPOS.PointOfSaleState.SessionOpen getOpen();", "title": "" }, { "docid": "eafabddf9df278d7ceb5293ac6187484", "score": "0.5767055", "text": "com.yanlong.im.utils.socket.MsgBean.ActiveStatChangeMessage getActiveStatChange();", "title": "" }, { "docid": "21556cbb40f3008cc7c386b5545758ea", "score": "0.5764419", "text": "void sessionClosed();", "title": "" }, { "docid": "d76d29f6480a152824ec79427c594c22", "score": "0.5757873", "text": "public String getSessionId();", "title": "" }, { "docid": "d76d29f6480a152824ec79427c594c22", "score": "0.5757873", "text": "public String getSessionId();", "title": "" }, { "docid": "43c263da0a819008201045b3126b2f1f", "score": "0.5754171", "text": "public void sessionCreated(HttpSessionEvent event) {\n final String sessionId = event.getSession().getId();\n logger.debug(\"Session created: \" + sessionId);\n }", "title": "" }, { "docid": "5eadcfc3197fb33627ad6f18aa4b36de", "score": "0.5750931", "text": "public Status status() {\n return this.status;\n }", "title": "" }, { "docid": "63888797cb258157a16809401f7ce7c8", "score": "0.57374376", "text": "public void sessionCreated(HttpSessionEvent arg0) {\n\t\t\n\t}", "title": "" }, { "docid": "264d360f4553fcdbabb3879190bdee24", "score": "0.57342064", "text": "boolean hasSessionToken();", "title": "" }, { "docid": "1fb08b6ea8ea0e988e6291137a264c09", "score": "0.57310593", "text": "public int getSessionId() {\n return sessionId_;\n }", "title": "" }, { "docid": "1fb08b6ea8ea0e988e6291137a264c09", "score": "0.57310593", "text": "public int getSessionId() {\n return sessionId_;\n }", "title": "" }, { "docid": "1fb08b6ea8ea0e988e6291137a264c09", "score": "0.57310593", "text": "public int getSessionId() {\n return sessionId_;\n }", "title": "" }, { "docid": "d884afad83ec723df858ff5bc9586ba5", "score": "0.57235736", "text": "public long getSessionId() {\n return sessionId;\n }", "title": "" }, { "docid": "2547f23b293d5ab1098223b156eab024", "score": "0.5720977", "text": "public String getSessionInfo() {\n return sessionInfo;\n }", "title": "" }, { "docid": "10a8ebf22bd038aa2bdefc07b65782e6", "score": "0.5716287", "text": "GetSessionResult getSession(GetSessionRequest getSessionRequest);", "title": "" }, { "docid": "0ae491bce5433f40d67722b7081ac7e6", "score": "0.5706339", "text": "public int getStatus()\n {\n return _status;\n }", "title": "" }, { "docid": "6693cadaad1ea4ef5044483169720260", "score": "0.5701694", "text": "public SessionTypeEnum getSessionType() {\n return mSessionType;\n }", "title": "" }, { "docid": "31320ee37361e2ccb92547bdfe7f02d4", "score": "0.5700769", "text": "public static Session getSession() {\n return session;\n }", "title": "" }, { "docid": "fc4a51a95a4aac81f3adca9fb7826257", "score": "0.5700648", "text": "public boolean getStatus(){\n return this.status;\n }", "title": "" }, { "docid": "074fea184037f48a324c13a143e0e9dc", "score": "0.56958133", "text": "public long getSessionID() {\n\t\treturn SessionID;\n\t}", "title": "" }, { "docid": "00033e5bfe13bcad3cace8152d5d2cd5", "score": "0.5694141", "text": "public UserSession getSession(){\n return m_UserSessionObj;\n }", "title": "" }, { "docid": "ca9094c38bc759aae77976df8cf7bb83", "score": "0.56925386", "text": "Session getSession();", "title": "" }, { "docid": "ca9094c38bc759aae77976df8cf7bb83", "score": "0.56925386", "text": "Session getSession();", "title": "" }, { "docid": "b6e3fcd4c967f3772db7921c80a33dc8", "score": "0.5686495", "text": "@Override\n public STATUS status() {\n return status;\n }", "title": "" }, { "docid": "69adeea57bf3af790313b7788959ccc2", "score": "0.5684397", "text": "public void sessionAdded (Session session);", "title": "" }, { "docid": "acdd2b3b03466c95f3be5e7cbfe35563", "score": "0.5683975", "text": "public SessionConfig getSessionConfig();", "title": "" }, { "docid": "8c1f7e657fc8cc6bf22082dd2e951edb", "score": "0.568206", "text": "void sessionDestroyed(SessionEvent se);", "title": "" }, { "docid": "c4bec5e2e1d0d29412829fe0e92544a6", "score": "0.5681512", "text": "boolean hasSessionType();", "title": "" }, { "docid": "c4bec5e2e1d0d29412829fe0e92544a6", "score": "0.5681512", "text": "boolean hasSessionType();", "title": "" }, { "docid": "c4bec5e2e1d0d29412829fe0e92544a6", "score": "0.5681512", "text": "boolean hasSessionType();", "title": "" }, { "docid": "700f57b5d0ac52d985d84e9a4f7db4ac", "score": "0.5681505", "text": "public interface SessionOpener {\n void onSessionKeyGenerated (String sessionKey);\n}", "title": "" } ]
595e917367742b97ed9e98257c04305e
Create a manifest from an array of strings.
[ { "docid": "7dc2faf5e9877946002dc6e54560b8de", "score": "0.7037966", "text": "public Manifest(String txt[])\n\t{\n\t\testablish(txt);\n\t}", "title": "" } ]
[ { "docid": "e07ed93a738b54cd6cc3f5266b807332", "score": "0.5883593", "text": "public Manifest(byte data[])\n\t{\n\t\ttry\n\t\t{\n\t\t\tByteArrayInputStream bais=new ByteArrayInputStream(data);\n\t\t\tInputStreamReader isr=new InputStreamReader(bais, Charset.defaultCharset());\n\t\t\tBufferedReader br=new BufferedReader(isr);\n\t\t\tVector ln=new Vector();\n\t\t\tString s;\n\t\t\tfor(s=br.readLine();s!=null;s=br.readLine())\n\t\t\t\tln.addElement(s);\n\t\t\tint l=ln.size();\n\t\t\tString sa[]=new String[l];\n\t\t\tln.copyInto(sa);\n\t\t\testablish(sa);\n\t\t}\n\t\tcatch(IOException e)\n\t\t{\n\t\t\tthrow new Error(e.toString());\n\t\t}\n\t}", "title": "" }, { "docid": "a74177fc341d9a0bd97142dd8f7344ed", "score": "0.50271606", "text": "Publisher<String> createFromArray(String[] array) {\n return Flux.fromArray(array); // TO BE REMOVED\n }", "title": "" }, { "docid": "afa4ec45d04691713212dcfe380a9983", "score": "0.49427974", "text": "static Student createFromStringArr(String[] stringArr) {\n return new Student(Integer.parseInt(stringArr[3]), stringArr[1], Double.parseDouble(stringArr[2]));\n }", "title": "" }, { "docid": "89414e1e9df819de601371ee2a013263", "score": "0.48651776", "text": "private synchronized void establish(String txt[])\n\t{\n\t\tint l=txt.length;\n\t\tint i=0;\n\t\tfor(;i<l&&txt[i].length()>0;++i){ } //locate empty line\n\t\tfor(;i<l&&txt[i].length()==0;++i){ } //locate non-empty line\n\t\twhile(i<l)\n\t\t{\n\t\t\tVector lnv=new Vector();\n\t\t\tfor(;i<l&&txt[i].length()>0;++i) //process non-empty lines\n\t\t\t\tlnv.addElement(txt[i]);\n\t\t\tint s=lnv.size();\n\t\t\tString ln[]=new String[s];\n\t\t\tlnv.copyInto(ln);\n\t\t\tManifestSection m = new ManifestSection(ln);\n\t\t\tsections.addElement(m);\n\t\t\tfor(;i<l&&txt[i].length()==0;++i) { } //locate non-empty line\n\t\t}\n\t}", "title": "" }, { "docid": "aa382b1e3cc857258a0e500ce86da149", "score": "0.48081425", "text": "private static void ImportManifest(Store store, String[] data) throws DeliveryException, StockException {\n\t\t\n\t\t\n\t\t//to turn an array of strings into a manifest, first the data array needs to be split\n\t\t//into multiple arraylists of Strings.\n\t\t\n\t\t//the trucks in these manifests cant be built over more than one line of code, or\n\t\t//else it will create a reference error (if each new truck construction uses the same Truck instance,\n\t\t//then it wont be able to be passed through into a manifest).\n\t\t\n\t\t//So, to make a for loop which will subvert the referencing problem, we must first\n\t\t//split our data array into multiple sub-arrays\n\t\t//to give these sub-arrays a variable length, we need to use a Collection\n\t\t//so, to emulate a two dimensional array within a Collection, use an ArrayList of ArrayLists\n\t\t//each of the ArrayLists inside the parent ArrayList contains string values (mirroring the data array)\n\t\tArrayList<ArrayList<String>> builder = new ArrayList<ArrayList<String>>();\n\n\t\t//to iterate through both arraylists, we need three indexing variables\n\t\t//'truckIndex' to determine what truck we're on\n\t\t//'i' to assign pieces of data from the data array to the truck's arraylist\n\t\t//and 'offset', which we use to make data's 'i' index applicable to all truck iterations\n\t\tint truckIndex = 0;\n\t\tint offset = 0;\n\t\t\n\t\t//using our 'i' index, iterate through each index in the data array\n\t\tfor (int i = 0; i<data.length; i++) {\n\t\t\t\n\t\t\t//check if this is a new list. if the current index is at \">Ordinary\"\n\t\t\t//or \">Refrigerated\", then we need to make a new array list (analogous to making a new truck)\n\t\t\tif (data[i].substring(0,1).equals(\">\")) {\n\t\t\t\t\n\t\t\t\t//check if this is not the first list\n\t\t\t\t//if i is equal to zero than that means this is the very start of the for loop\n\t\t\t\t//in that case, some steps need to be skipped\n\t\t\t\tif (i != 0) {\n\t\t\t\t\t\n\t\t\t\t\t//if this isnt the start of the for loop, then that means this\n\t\t\t\t\t//is the construction of a new truck.\n\t\t\t\t\t//we need to increase truckIndex and our offset.\n\t\t\t\t\t//truckIndex going up by one means we'll be accessing a different arrayList now\n\t\t\t\t\t//and adding new data to it as opposed to the ArrayList we were working with before.\n\t\t\t\t\ttruckIndex += 1;\n\t\t\t\t\t//offset needs to be increased, because for example:\n\t\t\t\t\t//if our for loop is at i=16, and we're just now creating a new arraylist\n\t\t\t\t\t//then the loop will reiterate into i=17, and the algorithm will try to put\n\t\t\t\t\t//the new piece of data into index 17 of our new arraylist.\n\t\t\t\t\t\n\t\t\t\t\t//This doesnt make sense, so we need to offset our index every time we make a new truck, so that\n\t\t\t\t\t//our 'i' index is 'technically' starting back at i=0;\n\t\t\t\t\toffset += i - offset;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t//initialise new list at current truck index\n\t\t\t\tbuilder.add(truckIndex, new ArrayList<String>());\n\t\t\t\t\n\t\t\t}\n\n\t\t\t//grab the data, add it to the builder at coords [truckIndex, i-offset]\n\t\t\t//i-offset is used as the index so then each arraylist starts back at index 0.\n\t\t\t//this is the purpose of offset.\n\t\t\tbuilder.get(truckIndex).add(i-offset, data[i]);\n\t\t}\n\n\t\t//now that our array list of array lists has been built, we can loop through it and use it to\n\t\t//create our trucks in one line.\n\t\t\n\t\t//initialise new manifest to store the csv data into\n\t\tManifest manifest = new Manifest();\n\t\t\t\t\n\t\t//loop through our builder parent arraylist, grabbing a new\n\t\t//child arraylist in each iteration. These child arraylists will be\n\t\t//used to build trucks\n\t\tfor (ArrayList<String> truck : builder) {\n\t\t\t\n\t\t\t//the string at the 0 index of each of these arraylists should\n\t\t\t//be either \">Ordinary\" or \">Refrigerated\".\n\t\t\t//using the getType private method, parse this string\n\t\t\t//value into a TruckType enum, and check what type it is\n\t\t\tif (getType(truck.get(0)) == TruckType.ORDINARY) {\n\t\t\t\t\n\t\t\t\t//if the truckType is ordinary, use the safeOrdinaryTruck method\n\t\t\t\t//to add a new ordinary truck to the manifest\n\t\t\t\t//use the current truck arraylist in the constructor for the truck's stock.\n\t\t\t\tmanifest.add(SafeOrdinaryTruck(new Stock(store, truck)));\n\t\t\t\t\n\t\t\t} else if (getType(truck.get(0)) == TruckType.REFRIGERATED) {\n\t\t\t\t\n\t\t\t\t//if the truck type is refrigerated, do the same as ordinary truck\n\t\t\t\t//except use the raw constructor for refrigerated truck, instead of \n\t\t\t\t//the safeOrdinaryTruck method.\n\t\t\t\tmanifest.add(new RefrigeratedTruck(new Stock(store, truck)));\n\t\t\t} else {\n\t\t\t\t\n\t\t\t\t//if neither of the two truck types are recognised, throw a delivery error.\n\t\t\t\tThrowDeliveryErr(\"incompatible type recognised in manifest CSV (somehow)\");\n\t\t\t}\n\t\t}\t\t\n\t\t\n\t\t//after the manifest has been successfully constructed, call store's ImportManifest method using\n\t\t//the manifest.\n\t\tstore.ImportManifest(manifest);\n\t\t\n\t}", "title": "" }, { "docid": "3f26b66f780f508c518497995e55b79a", "score": "0.4761861", "text": "void setStrsArray(java.lang.String[] strsArray);", "title": "" }, { "docid": "223028ed6c36013fb6f549eba3780e74", "score": "0.4748638", "text": "public static String[] packConsecutiveDuplicates(String[] array) {\n List<String> jars = new ArrayList<>();\n String last = \"\";\n StringBuilder jar = new StringBuilder();\n for (String pickle : array) {\n if (pickle.equals(last)) {\n jar.append(pickle); // pull on the pull'em\n } else {\n if (jar.length() > 0) {\n jars.add(jar.toString()); // pickles go into the jar\n jar.setLength(0);\n }\n jar.append(pickle); // push on the push'em\n }\n last = pickle;\n }\n jars.add(jar.toString()); // no troll left behind\n array = jars.toArray(new String[0]);\n return array;\n }", "title": "" }, { "docid": "d1b3ad19c61a49ef8106c4ca0b900fc8", "score": "0.47101086", "text": "public static List<String[]> addManifests(final String aHostURL, final List<String[]> aCsvList) {\n Objects.requireNonNull(aHostURL);\n Objects.requireNonNull(aCsvList);\n\n final int objectTypeHeaderIndex = getColumnIndex(CSV.OBJECT_TYPE, aCsvList);\n final int manifestHeaderIndex = getColumnIndex(CSV.MANIFEST_URL, aCsvList);\n final int itemArkHeaderIndex = getColumnIndex(CSV.ITEM_ARK, aCsvList);\n final int columnLength = aCsvList.get(0).length;\n final List<String[]> csvList;\n\n if (manifestHeaderIndex == columnLength) {\n final Iterator<String[]> iterator = aCsvList.iterator();\n final int newArraySize = columnLength + 1;\n\n csvList = new ArrayList<>(aCsvList.size());\n\n // Populate our CSV list with larger String arrays so we can add the new column\n while (iterator.hasNext()) {\n csvList.add(Arrays.copyOf(iterator.next(), newArraySize));\n }\n } else {\n csvList = aCsvList;\n }\n\n for (int index = 0; index < csvList.size(); index++) {\n final String[] row = csvList.get(index);\n\n if (index == 0) {\n row[manifestHeaderIndex] = CSV.MANIFEST_URL;\n } else {\n final String objectType = row[objectTypeHeaderIndex];\n final String itemARK = row[itemArkHeaderIndex];\n\n // URLs vary depending on whether the row is a Collection or Work\n if (ObjectType.COLLECTION.equals(objectType)) {\n row[manifestHeaderIndex] = IDUtils.getResourceURI(aHostURL, IDUtils.getCollectionS3Key(itemARK))\n .toString();\n } else if (ObjectType.WORK.equals(objectType)) {\n row[manifestHeaderIndex] = IDUtils.getResourceURI(aHostURL, IDUtils.getWorkS3Key(itemARK))\n .toString();\n } else {\n row[manifestHeaderIndex] = \"\"; // Use an empty placeholder for things without links\n }\n }\n }\n\n return csvList;\n }", "title": "" }, { "docid": "8429b8df96325a939b39f26aa232e1a0", "score": "0.46345726", "text": "private static void writeManifest(byte[] manifest, JarOutputStream jos) throws IOException {\n\n\t\t// Manifest file entry\n\t\tJarEntry mfJarEntry = new JarEntry(MANIFEST_LOCATION);\n\t\tjos.putNextEntry(mfJarEntry);\n\n\t\t// Write content\n\t\tByteArrayInputStream bais = null;\n\n\t\ttry {\n\t\t\tbais = new ByteArrayInputStream(manifest);\n\n\t\t\tbyte[] buffer = new byte[2048];\n\t\t\tint read = -1;\n\n\t\t\twhile ((read = bais.read(buffer)) != -1) {\n\t\t\t\tjos.write(buffer, 0, read);\n\t\t\t}\n\n\t\t\tjos.closeEntry();\n\t\t} finally {\n\t\t\tIOUtils.closeQuietly(bais);\n\t\t}\n\t}", "title": "" }, { "docid": "9dd741d407313c60c098b5a40aef7caf", "score": "0.4613072", "text": "private List<HasMetadata> parseAdditionalManifests(Proxy proxy, String namespace, List<String> manifests) {\r\n\t\tSpecExpressionContext context = SpecExpressionContext.create(proxy, proxy.getSpec());\r\n\r\n\t\tArrayList<HasMetadata> result = new ArrayList<>();\r\n\t\tfor (String manifest : manifests) {\r\n\t\t\tString expressionManifest = expressionResolver.evaluateToString(manifest, context);\r\n\t\t\tHasMetadata object = Serialization.unmarshal(new ByteArrayInputStream(expressionManifest.getBytes())); // used to determine whether the manifest has specified a namespace\r\n\r\n\t\t\tHasMetadata fullObject = kubeClient.load(new ByteArrayInputStream(expressionManifest.getBytes())).get().get(0);\r\n\t\t\tif (object.getMetadata().getNamespace() == null) {\r\n\t\t\t\t// the load method (in some cases) automatically sets a namespace when no namespace is provided\r\n\t\t\t\t// therefore we overwrite this namespace with the namespace of the pod.\r\n\t\t\t\tfullObject.getMetadata().setNamespace(namespace);\r\n\t\t\t}\r\n\t\t\tresult.add(fullObject);\r\n\t\t}\r\n\t\treturn result;\r\n\t}", "title": "" }, { "docid": "261f972e05944f2775188aff72693164", "score": "0.45951363", "text": "public void testConstructor_StringArray() {\r\n String[] value = new String[] {\"String1\", \"String2\"};\r\n Values values = new Values(value);\r\n\r\n assertNotNull(\"The text values should be initialized\", values.getTextValues());\r\n assertNotNull(\"The binary values should be initialized\", values.getBinaryValues());\r\n assertEquals(\"The binary values should be empty\", 0, values.getBinaryValues().size());\r\n assertEquals(\"The text values should be set to specified value\", 2, values.getTextValues().size());\r\n assertEquals(\"The text values should be set to specified value\", value[0], values.getTextValues().get(0));\r\n assertEquals(\"The text values should be set to specified value\", value[1], values.getTextValues().get(1));\r\n\r\n // Tests the invalid arguments handling\r\n try {\r\n values = new Values((String[]) null);\r\n fail(\"NullPointerException should be thrown\");\r\n } catch(NullPointerException e) {}\r\n\r\n try {\r\n values = new Values(new String[] {\"String1\", \"String2\", null});\r\n fail(\"NullPointerException should be thrown\");\r\n } catch(NullPointerException e) {}\r\n }", "title": "" }, { "docid": "e7f0332ae84c635f7088dc5d8c8aba1d", "score": "0.45719096", "text": "public ArrayList<Event> createMultipleEvents(ArrayList<String> strings) {\n\t\tArrayList<Event> events = new ArrayList<>();\n\t\tfor (String s : strings) {\n\t\t\tEvent e = createEvent(s);\n\t\t\tevents.add(e);\n\t\t}\n\t\treturn events;\n\t}", "title": "" }, { "docid": "0d02566effdb7d079a531d4ef52ea017", "score": "0.45590076", "text": "public void setNames(String[] a) {\n names = Arrays.asList(a);\n }", "title": "" }, { "docid": "70a21ba75bc466b7996dd55e33122af3", "score": "0.45410812", "text": "public static AllowedArgsListModel createAllowed(String args[], String[][] required) {\n\t\tRequiredArgsListModel requiredArgsListModel = new RequiredArgsListModel(getData(required));\n\t\treturn new AllowedArgsListModel(getData(args), requiredArgsListModel);\n\t}", "title": "" }, { "docid": "317866f07fba63b386c8ea5b996e9c03", "score": "0.45297745", "text": "@Override\n public final StringSortedList add(String[] array){\n if (array.length == 0) return this;\n \n // Add each string in turn; trust in our basic optimization logic\n for(String str : array)\n add(str);\n \n return this;\n }", "title": "" }, { "docid": "3fde9940c10193ed48a2a568f3a13af2", "score": "0.4514132", "text": "public ArrayList<Locale> creaLocaliDaFile(ArrayList<String> strings);", "title": "" }, { "docid": "1da6384a97dfff7587edf82c3e56a91e", "score": "0.45099142", "text": "public Builder addAllAbnfStrings(java.lang.Iterable<java.lang.String> values) {\n ensureAbnfStringsIsMutable();\n com.google.protobuf.AbstractMessageLite.Builder.addAll(values, abnfStrings_);\n bitField0_ |= 0x00000001;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "994b749bfd993d14f2f73f62a49fd684", "score": "0.45073593", "text": "public Object[] create(String name) throws IOException;", "title": "" }, { "docid": "cf729b596436d5bef77b003383ba71e7", "score": "0.44983506", "text": "public static void main(String...strings){\n }", "title": "" }, { "docid": "1e42af879346a937ea55b80f84a2560e", "score": "0.4471372", "text": "public static File[] stringsToFiles(String[] fileNames)\n {\n File[] ret = new File[fileNames.length];\n for (int i = 0; i < fileNames.length; i++) {\n String fileName = fileNames[i];\n ret[i] = new File(fileName);\n }\n return ret;\n }", "title": "" }, { "docid": "5d0ca3a2f5cf0ac411692f9071e1f502", "score": "0.4464054", "text": "static List<String> parseYarn(String[] args) {\n String[] params = new String[args.length - 1];\n System.arraycopy(args, 1, params, 0, params.length);\n CommandLine commandLine = parse(YARN_OPTIONS, params);\n if (commandLine.hasOption(OPTION_HELP.getOpt())) {\n printYarnHelp();\n System.exit(0);\n }\n List<String> options = new ArrayList<>();\n options.add(args[0]);\n options.add(\"-m\");\n options.add(\"yarn-cluster\");\n constructYarnOption(options, OPTION_JM_MEMORY, commandLine);\n constructYarnOption(options, OPTION_NAME, commandLine);\n constructYarnOption(options, OPTION_QUEUE, commandLine);\n constructYarnOption(options, OPTION_SLOTS, commandLine);\n constructYarnOption(options, OPTION_TM_MEMORY, commandLine);\n return options;\n }", "title": "" }, { "docid": "d7ea7d4893db5d6ebc404b61a836ce25", "score": "0.44454628", "text": "@Override\n\tpublic void putAll(String[] array) {\n\t\t\n\t}", "title": "" }, { "docid": "8d9ab73197c32ac071e50dd6ee6f2b57", "score": "0.44438016", "text": "public int create(String[] data) throws DuplicateKeyException, IOException, RemoteException;", "title": "" }, { "docid": "951acad4454432de40ab1f60ce422574", "score": "0.44409683", "text": "Object convertStringArray(String[] values) throws IOException {\n\t\treturn converter.convertStringArray(values);\n\t}", "title": "" }, { "docid": "7269171e420f939922e05fa386da3525", "score": "0.44201317", "text": "public void setStringArr(String[] aS) throws UnsupportedOperationException;", "title": "" }, { "docid": "9dadf7550fb0980897e19225d34afd4b", "score": "0.43954676", "text": "static byte[] stringsToByteArray(String[] stringArray, int len, byte pad) {\n byte[] res = new byte[stringArray.length * len];\n for (int i = 0; i < stringArray.length; i++) {\n stringToBytes(stringArray[i], res, i * len, len, pad);\n }\n return res;\n }", "title": "" }, { "docid": "eeef643e5174663837c431255ef1b223", "score": "0.43870106", "text": "void setSynArray(java.lang.String[] synArray);", "title": "" }, { "docid": "9fd450108c79dc5189a1c7d1e9d349f4", "score": "0.4383446", "text": "private void testThisStringArray(String[] strings)\n\t{\n\t String[] dupes = strings.clone();\n\n\t\t// create the baseline case from Java's API \n\t List<String> baselineList = Arrays.asList(strings);\n\t\tCollections.sort(baselineList);\n\t\t\n\t\t// create the IJ case from StringSorter\n\t\tStringSorter.sort(dupes);\n\t\tList<String> dupesList = Arrays.asList(dupes);\n\t\t\n\t\t// compare the two lists using equals()\n\t\tassertTrue(dupesList.equals(baselineList));\n\t}", "title": "" }, { "docid": "8e187c569e7a2cc41f48394ee59292fa", "score": "0.43675658", "text": "public static AllowedArgsListModel createAllowed(String args[], RequiredArgsListModel requiredArgsListModel) {\n\t\treturn new AllowedArgsListModel(getData(args), requiredArgsListModel);\n\t}", "title": "" }, { "docid": "c2ebc8a60db758c1bdf00af937780623", "score": "0.43355164", "text": "public static Term stringArrayToList(String[] a) {\n\t\tTerm list = JPL.LIST_NIL; // was new Atom(\"[]\");\n\t\tfor (int i = a.length - 1; i >= 0; i--) {\n\t\t\tlist = new Compound(JPL.LIST_PAIR, new Term[] { new Atom(a[i]), list });\n\t\t}\n\t\treturn list;\n\t}", "title": "" }, { "docid": "0f458953ca7053a847bee233c3126af6", "score": "0.43266585", "text": "private static List<String> normalize(String[] args) {\n final List<String> normalizedArgs = new ArrayList<>(args.length);\n for (String arg : args) {\n if (arg.startsWith(\"-\") && !arg.startsWith(\"--\")) {\n for (int i = 1; i < arg.length(); i++) {\n normalizedArgs.add(\"-\" + arg.charAt(i));\n }\n } else {\n normalizedArgs.add(arg);\n }\n }\n return normalizedArgs;\n }", "title": "" }, { "docid": "11ca11aa564619d1c17edfc880b38a42", "score": "0.43240497", "text": "public static void main(String[] args) {\n MakeDir myDir = new MakeDir();\n for(String str : args){\n myDir.createDir(str);\n System.out.println(str);\n\n }\n }", "title": "" }, { "docid": "4384696ee2a84a462a61e31f6915577d", "score": "0.43197283", "text": "public static void createJar(String dest, String... files)\n throws IOException {\n createJar(dest, null, files);\n }", "title": "" }, { "docid": "84e48c19d50aada9fb96fe3adb817308", "score": "0.43155742", "text": "void createArray(String[] commands) {\n array = new Commands[commands.length];\n int j = 0;\n for (int i = 0; i < commands.length; i++) {\n if(i<commands.length-1 && commands[i].length()>1 && commands[i+1].length()==1) {\n array[j] = new Transforms(commands[i], commands[i+1]);\n j--;\n }\n else if(commands[i].length()>1) {\n array[j] = new Moviment(commands[i]);\n }\n j++;\n }\n return;\n }", "title": "" }, { "docid": "ecd2f087fcde2b790ae07fdcdfb3ac72", "score": "0.42916936", "text": "public void setResourceTypeName(de.netallied.functionblock.model.castor.ResourceTypeName[] resourceTypeNameArray)\n {\n //-- copy array\n _resourceTypeNameList.removeAllElements();\n for (int i = 0; i < resourceTypeNameArray.length; i++) {\n _resourceTypeNameList.addElement(resourceTypeNameArray[i]);\n }\n }", "title": "" }, { "docid": "44aea6ed136be7e9d305d24641eb725b", "score": "0.42803678", "text": "public User createUserFromStringArray(String[] userArray) {\r\n return new User(Integer.parseInt(userArray[0]), userArray[1], userArray[2], userArray[3]);\r\n }", "title": "" }, { "docid": "b61091f0238346458e288c1e2f41ac8c", "score": "0.42772913", "text": "DocumentManifest createDocumentManifest();", "title": "" }, { "docid": "8a90de81ca8d40ee6ab98415389eeb2f", "score": "0.42770222", "text": "public void setArns(java.util.Collection<String> arns) {\n if (arns == null) {\n this.arns = null;\n return;\n }\n\n this.arns = new java.util.ArrayList<String>(arns);\n }", "title": "" }, { "docid": "ba202209d49d6a0d31a8ec7f96a61bab", "score": "0.42454815", "text": "public static Set<Specialisation> getSpecSet(String... strings) {\n return Arrays.stream(strings)\n .map(Specialisation::new)\n .collect(Collectors.toSet());\n }", "title": "" }, { "docid": "095d9ba700c95cabc1c1bce2724fa248", "score": "0.42426828", "text": "@VisibleForTesting\n void init(List<String> typeNames) throws HiveException {\n\n final int count = typeNames.size();\n allocateArrays(count);\n\n for (int i = 0; i < count; i++) {\n initEntry(i, i, TypeInfoUtils.getTypeInfoFromTypeString(typeNames.get(i)));\n }\n }", "title": "" }, { "docid": "3adeada50e2438a936b34360a8d52583", "score": "0.42396796", "text": "public Builder addAbnfStringsBytes(com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n checkByteStringIsUtf8(value);\n ensureAbnfStringsIsMutable();\n abnfStrings_.add(value);\n bitField0_ |= 0x00000001;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "edd943e08effb6c424b19a3cdfa87eb8", "score": "0.4238231", "text": "void add(String[] arr) {\n for (String str : arr) {\n add(str);\n }\n }", "title": "" }, { "docid": "f11fb2a641496f47a0fe4bd1033f345a", "score": "0.42320934", "text": "@Test\n public void should_be_able_to_parse_arguments() {\n String schemaAsText = \"l:boolean p:integer d:string\";\n Schema schema = new Schema(schemaAsText);\n\n // 2. create arguments object from schema and string array\n String argumentsAsText = \"-l true -p 8080 -d /usr/log\";\n String[] argumentAsStrings = {\"-l\", \"true\", \"-p\", \"8080\", \"-d\", \"/usr/log\"};\n Arguments arguments = new Arguments(schema, argumentAsStrings);\n\n // 3. get value from arguments object\n assertThat(arguments.valueOf(\"l\"), is(true));\n assertThat(arguments.valueOf(\"p\"), is(8080));\n assertThat(arguments.valueOf(\"d\"), is(\"/usr/log\"));\n }", "title": "" }, { "docid": "ee25edf743f3fd6e920ede6502a14304", "score": "0.42147124", "text": "void xsetStrsArray(org.apache.xmlbeans.XmlString[] strsArray);", "title": "" }, { "docid": "63ba1a93c9254582b7ef504409498af8", "score": "0.42043194", "text": "public Tag put(String name, String s[]) {\n\t\treturn this.data.put(new StringArrayTag(name, s));\n\t}", "title": "" }, { "docid": "603fa251eee1e09637eca4014535b159", "score": "0.42027453", "text": "private void initArrays() {\n mCarNames = getResources().getStringArray(R.array.cars);\n mCarImages = getResources().obtainTypedArray(R.array.cars_references);\n mCarModels = getResources().obtainTypedArray(R.array.cars_model);\n entries = new ArrayList<>();\n for (int i = 0; i < mCarNames.length; i++) {\n String[] models = getResources().getStringArray(mCarModels.getResourceId(i,-1));\n Entry entry = new Entry(mCarImages.getResourceId(i, 0), mCarNames[i], models);\n entries.add(entry);\n }\n }", "title": "" }, { "docid": "08cf502a5319597f2f1037b5b03b7121", "score": "0.41975087", "text": "public static void array(String... s){\r\n String[] a = new String[s.length];\r\n for(int i = 0; i < s.length; i++){\r\n a[i] = s[i];\r\n }\r\n }", "title": "" }, { "docid": "27a296fe8727cd04ff50e2987e397a8e", "score": "0.41933337", "text": "abstract public Instruction parse(String[] s);", "title": "" }, { "docid": "07482fd86e1701dd0c66ff3728598aa2", "score": "0.41844326", "text": "public Builder addAllArgs(java.lang.Iterable<java.lang.String> values) {\n ensureArgsIsMutable();\n com.google.protobuf.AbstractMessageLite.Builder.addAll(values, args_);\n bitField0_ |= 0x00000010;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "64e8cdc7abc8bc909a7ac18809f0ef04", "score": "0.4172101", "text": "private void createAdditionalManifests(Proxy proxy, String namespace) {\r\n\t\tfor (HasMetadata fullObject: getAdditionManifestsAsObjects(proxy, namespace)) {\r\n\t\t\tif (kubeClient.resource(fullObject).fromServer().get() == null) {\r\n\t\t\t\tkubeClient.resource(fullObject).createOrReplace();\r\n\t\t\t}\r\n\t\t}\r\n\t\tfor (HasMetadata fullObject: getAdditionPersistentManifestsAsObjects(proxy, namespace)) {\r\n\t\t\tif (kubeClient.resource(fullObject).fromServer().get() == null) {\r\n\t\t\t\tkubeClient.resource(fullObject).createOrReplace();\r\n\t\t\t}\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "ab9f894f6de6d1520c9bdcdc7cbe0edd", "score": "0.4169537", "text": "private static void initStringValuesMapFromArray(\n final GlassFishVersion version, final String[] values) {\n for (String value : values) {\n stringValuesMap.put(value, version);\n }\n }", "title": "" }, { "docid": "b17d69d48208938e5707d3b791c85465", "score": "0.41692796", "text": "public Builder addAllArgs(java.lang.Iterable<java.lang.String> values) {\n ensureArgsIsMutable();\n com.google.protobuf.AbstractMessageLite.Builder.addAll(values, args_);\n bitField0_ |= 0x00000004;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "751eec5c612e5496fa27d4125a984776", "score": "0.41684613", "text": "public void generateAllManifestEntries(){\n for(ConfigFileEntry lEntry : mConfigFileEntryList){\n lEntry.generateManifestEntries();\n }\n }", "title": "" }, { "docid": "0e0241da88d057699e51a8cab4a55cd8", "score": "0.4159292", "text": "public static Object[] parseRecipeIngredients(String ... entries) throws NumberFormatException {\r\n\t\tObject[] objects = new Object[entries.length];\r\n\t\tfor (int i = 0; i < entries.length; i++) {\r\n\t\t\tString entry = entries[i];\r\n\t\t\tif (entry.startsWith(\"block\")) {\r\n\t\t\t\tint id = Integer.parseInt(entry.substring(\"block\".length()));\r\n\t\t\t\tobjects[i] = Block.blocksList[id];\r\n\t\t\t} else if (entry.startsWith(\"item\")) {\r\n\t\t\t\tint id = Integer.parseInt(entry.substring(\"item\".length()));\r\n\t\t\t\tobjects[i] = Item.itemsList[id];\r\n\t\t\t} \r\n\t\t}\r\n\t\treturn objects;\r\n\t}", "title": "" }, { "docid": "21cb5d70af92456363997fec096c2cf5", "score": "0.41543412", "text": "private ArrayList<Investigator> setAuthors(String array) {\n String[] list = array.split(\";\");\n ArrayList<Investigator> workAuthors = new ArrayList<>();\n for (String author : list) {\n workAuthors.add(getInvestigator(author));\n }\n return workAuthors;\n }", "title": "" }, { "docid": "dcf371bbb71c037e92d1eb832dd673a0", "score": "0.4135093", "text": "protected void pack(Manifest manifest, Option... options) {\n final Options options$ = Options.$($, options);\n final ClassLoader systemloader = ClassLoader.getSystemClassLoader().getParent();\n final boolean debug = options$.debug();\n URLClassLoader loader = $(getClass().getClassLoader()).get(URLClassLoader.class, null);\n\n // Check the current loader\n if (loader == null) {\n System.err.println(\"Unable to get the classpath for this script. Cannot pack. Sorry.\");\n return;\n }\n\n // Get all URLs\n List<URL> urls = new ArrayList<URL>();\n while (loader != null && loader != systemloader) {\n urls.addAll(Arrays.asList(loader.getURLs()));\n loader = $(loader.getParent()).get(URLClassLoader.class, null);\n }\n\n // We reverse the order so that elements early in the classpath (which are loaded\n // first), will be copied last, therefore overwriting other elements\n Collections.reverse(urls);\n\n // Now, go through all elements, when it's a JAR, unpack it, when its a dir, copy it\n final File tempdir = $.sys.tempdir();\n for (URL url : urls) {\n final File file = $(url).file().get(0);\n \n // When we have a whitelist, ignore what is not on the list\n if(this.whitelist != null && !this.whitelist.isListedFile(file)) {\n if (debug) System.out.println(\"Ignoring (not whitelisted) \" + file);\n continue;\n }\n\n // Dont process blacklisted files ...\n if (this.blacklist != null && this.blacklist.isListedFile(file)) {\n if (debug) System.out.println(\"Ignoring (blacklisted) \" + file);\n continue;\n }\n\n if (debug) System.out.println(\"Packing \" + file);\n\n // Now pack according to the type\n if (file.getAbsolutePath().endsWith(\"jar\")) {\n $(file).input().zipstream().unzip(tempdir.getAbsolutePath());\n } else {\n $(file).copy(tempdir.getAbsolutePath());\n }\n }\n\n // Check if the final classes were blacklisted.\n for (File file : $(tempdir).dir()) {\n // When the file was blacklisted, remove it\n if (this.blacklist != null && this.blacklist.isListedClass(file)) {\n if (debug) System.out.println(\"Removing (blacklisted) \" + file);\n $(file).delete();\n }\n }\n\n $(tempdir.getAbsoluteFile() + \"/net/jcores/script/jcores.script.mode\").file().delete().append(\"runtime\");\n $(tempdir).jar(this.name + \".jar\", manifest);\n\n // Finally output what we did, and quit\n System.out.println(\"Packed as '\" + this.name + \".jar'\");\n System.exit(0);\n }", "title": "" }, { "docid": "fb0cd9d330f287c72a062f0c137990ba", "score": "0.4131875", "text": "public OpenHashSet(java.lang.String[] data) {\r\n super();\r\n initializeTreeArray(INITIAL_CAPACITY);\r\n for (String str : data) {\r\n add(str);\r\n }\r\n }", "title": "" }, { "docid": "49157cb74bed51436e0583e28a0d1f9b", "score": "0.4115166", "text": "void initialize(ArtifactInfo[] artifacts);", "title": "" }, { "docid": "35f633777d2898a53490084270fc2efb", "score": "0.41124156", "text": "public static HashSet toSet(String[] theArray) {\n HashSet theSet = new HashSet();\n theSet.addAll(Arrays.asList(theArray));\n return theSet;\n }", "title": "" }, { "docid": "76c06a3658a0bcf7247aac42fb53da43", "score": "0.41063175", "text": "PluginManifest toPluginManifest();", "title": "" }, { "docid": "41a6bc03b92f3ffd61eb38f56d1fdb30", "score": "0.41055894", "text": "protected void addClassPathManifestEntries(Set<Resource> result)\n/* */ {\n/* */ try\n/* */ {\n/* 419 */ String javaClassPathProperty = System.getProperty(\"java.class.path\");\n/* 420 */ for (String path : StringUtils.delimitedListToStringArray(javaClassPathProperty, \n/* 421 */ System.getProperty(\"path.separator\"))) {\n/* */ try {\n/* 423 */ String filePath = new File(path).getAbsolutePath();\n/* 424 */ int prefixIndex = filePath.indexOf(':');\n/* 425 */ if (prefixIndex == 1)\n/* */ {\n/* 427 */ filePath = StringUtils.capitalize(filePath);\n/* */ }\n/* 429 */ UrlResource jarResource = new UrlResource(\"jar:file:\" + filePath + \"!/\");\n/* */ \n/* */ \n/* 432 */ if ((!result.contains(jarResource)) && (!hasDuplicate(filePath, result)) && (jarResource.exists())) {\n/* 433 */ result.add(jarResource);\n/* */ }\n/* */ }\n/* */ catch (MalformedURLException ex) {\n/* 437 */ if (logger.isDebugEnabled()) {\n/* 438 */ logger.debug(\"Cannot search for matching files underneath [\" + path + \"] because it cannot be converted to a valid 'jar:' URL: \" + ex\n/* 439 */ .getMessage());\n/* */ }\n/* */ }\n/* */ }\n/* */ }\n/* */ catch (Exception ex) {\n/* 445 */ if (logger.isDebugEnabled()) {\n/* 446 */ logger.debug(\"Failed to evaluate 'java.class.path' manifest entries: \" + ex);\n/* */ }\n/* */ }\n/* */ }", "title": "" }, { "docid": "cc078f754863628ee82445020d81b67c", "score": "0.40998307", "text": "public Builder addAllCls(\n java.lang.Iterable<java.lang.String> values) {\n ensureClsIsMutable();\n com.google.protobuf.AbstractMessageLite.Builder.addAll(\n values, cls_);\n onChanged();\n return this;\n }", "title": "" }, { "docid": "ef747c76544900275699b8c131aa019d", "score": "0.40957606", "text": "public static byte[] stringsToByteArray(String[] stringArray, int len) {\n return stringsToByteArray(stringArray, len, BLANK_SPACE);\n }", "title": "" }, { "docid": "cb38a887024fd90afb97ae63049e44bd", "score": "0.40946937", "text": "public ObjectStack(Object[] strings) {\n this(strings.length);\n System.arraycopy(strings, 0, m_baseArray, 0, strings.length);\n m_countPresent = strings.length;\n }", "title": "" }, { "docid": "f23ab658a4c3f3c9a8266354afd3655e", "score": "0.40926844", "text": "public String addBook(String[] book);", "title": "" }, { "docid": "6ee1ee9e249635083235d5f4b9f45536", "score": "0.40808338", "text": "void setValueList(com.microsoft.schemas._2003._10.serialization.arrays.ArrayOfstring valueList);", "title": "" }, { "docid": "2bb1188675ee7ba6731c9f58d0c18f54", "score": "0.40776724", "text": "public Builder addAllStrings(\n java.lang.Iterable<java.lang.String> values) {\n ensureStringsIsMutable();\n com.google.protobuf.AbstractMessageLite.Builder.addAll(\n values, strings_);\n onChanged();\n return this;\n }", "title": "" }, { "docid": "d358b655923411ed0e3fa5a78f33bfae", "score": "0.4076472", "text": "public void mo4771a(Bundle bundle, String str, String[] strArr) {\n bundle.putStringArray(str, strArr);\n }", "title": "" }, { "docid": "d65b95ecd93d5e679d862d22f5734593", "score": "0.4073908", "text": "private static Application createApplication(List<String> applicationData) {\n Application application = new Application();\n application.setApplicantsName(applicationData.get(0));\n application.setApplicantsHeight(new BigDecimal(applicationData.get(1)));\n application.setApplicantsBmi(new BigDecimal(applicationData.get(2)));\n application.setApplicantsScore(Integer.parseInt(applicationData.get(3)));\n application.setApplicantsDefends(Integer.parseInt(applicationData.get(4)));\n return application;\n }", "title": "" }, { "docid": "ed54700a4ce52626c38ccfc0ddfaef34", "score": "0.40725005", "text": "public Builder names(List<String> names) {\n this.names = names;\n return this;\n }", "title": "" }, { "docid": "8bab634e90eaf9f2cefb0b547bea1aa2", "score": "0.40718228", "text": "public ManifestParser(File pManifestFile){\n mManifestFile = pManifestFile; \n }", "title": "" }, { "docid": "f5ef87361f5c2d379ce96cb54f201984", "score": "0.40682796", "text": "public static void main(String[] arrgs){\n\n }", "title": "" }, { "docid": "5b3cec0f45a417a98b298c35b9ff60f9", "score": "0.40677726", "text": "private void parseManifestLibraries(DeploymentInfo sdi)\n {\n String classPath = null;\n\n Manifest mf = sdi.getManifest();\n\n if( mf != null )\n {\n Attributes mainAttributes = mf.getMainAttributes();\n classPath = mainAttributes.getValue(Attributes.Name.CLASS_PATH);\n }\n\n if (classPath != null)\n {\n StringTokenizer st = new StringTokenizer(classPath);\n log.debug(\"resolveLibraries: \"+classPath);\n\n while (st.hasMoreTokens())\n {\n URL lib = null;\n String tk = st.nextToken();\n log.debug(\"new manifest entry for sdi at \"+sdi.shortName+\" entry is \"+tk);\n\n try\n {\n if (sdi.isDirectory)\n {\n File parentDir = new File(sdi.url.getPath()).getParentFile();\n lib = new File(parentDir, tk).toURL();\n }\n else\n {\n lib = new URL(sdi.url, tk);\n }\n\n // Only deploy this if it is not already being deployed\n if ( deploymentMap.containsKey(lib) == false )\n {\n /* Test that the only deployer for this is the JARDeployer.\n Any other type of deployment cannot be initiated through\n a manifest reference.\n */\n DeploymentInfo mfRef = new DeploymentInfo(lib, null, getServer());\n makeLocalCopy(mfRef);\n URL[] localURL = {mfRef.localUrl};\n mfRef.localCl = new java.net.URLClassLoader(localURL);\n findDeployer(mfRef);\n SubDeployer deployer = mfRef.deployer;\n if(deployer != null && (deployer instanceof JARDeployer) == false)\n {\n // Its a non-jar deployment that must be deployed seperately\n log.warn(\"Found non-jar deployer for \" + tk + \": \" + deployer);\n }\n\n // add the library\n sdi.addLibraryJar(lib);\n }\n }\n catch (Exception ignore)\n {\n log.debug(\"The manifest entry in \"+sdi.url+\" references URL \"+lib+\n \" which could not be opened, entry ignored\", ignore);\n }\n }\n }\n }", "title": "" }, { "docid": "a288589fd57cb74d1e5dacaaf13f5b6f", "score": "0.4067331", "text": "Publisher<String> createFromList(List<String> values) {\n return Flux.fromIterable(values); // TO BE REMOVED\n }", "title": "" }, { "docid": "5dd6acc212e6cc40568dc9f111b413a3", "score": "0.4064782", "text": "public StringRowArray(StringRow[] values) {\r\n super(values);\r\n }", "title": "" }, { "docid": "b0e2b929042203a83556d674b9eaed68", "score": "0.40626433", "text": "@Override // android.os.Parcelable.Creator\n public final LazyString[] newArray(int i) {\n return new LazyString[i];\n }", "title": "" }, { "docid": "b81f823f9bd6352279411cfc99ec86fb", "score": "0.40561968", "text": "public void setTaskArns(java.util.Collection<String> taskArns) {\n if (taskArns == null) {\n this.taskArns = null;\n return;\n }\n com.amazonaws.internal.ListWithAutoConstructFlag<String> taskArnsCopy = new com.amazonaws.internal.ListWithAutoConstructFlag<String>(taskArns.size());\n taskArnsCopy.addAll(taskArns);\n this.taskArns = taskArnsCopy;\n }", "title": "" }, { "docid": "36c792228521f9c66a4dca4937d59544", "score": "0.40543932", "text": "public static void main(String[]a){}", "title": "" }, { "docid": "e776bcedc573f8e157eeaa363781fb2c", "score": "0.40532568", "text": "public static void main(String[] args) {\n\n\t\tString array[] = { \"jitomate - Kg\", \"fresa - Kg\" };\n\n\t\tList<String> arrayAsList = Arrays.asList(array);\n\t\tString[] name = arrayAsList.get(0).toString().split(\"-\");\n\t\tString formattedName = name[0].trim();\n\n\t\tSystem.out.println(formattedName + name);\n\n\t\t// System.out.println(arrayAsList.get(0).trim());\n\t\t// System.out.println(array[1].toString().trim());\n\t\t// System.out.println(name);\n\n\t\tString attributes = \"palabra, palabra2, palabra3\";\n\n\t\tString[] attributes_split = attributes.split(\",\");\n\t\tString nameTrim=attributes_split[0].trim();\n\t\t\n\t\tSystem.out.println(nameTrim=attributes_split[0].trim());\n\t\tSystem.out.println(nameTrim=attributes_split[1].trim());\n\t\tSystem.out.println(nameTrim=attributes_split[2].trim());\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\tString attributes2 = \"palabra1,palabra2,palabra3\";\n\t\tString[] name1 = attributes2.trim().split(\",\");\n\t\tfor (int i = 0; i < attributes2.length(); i++) {\n\n\t\t\tSystem.out.println(name1[i]);\n\t\t\tbreak;\n\n\t\t}\n\t\t\n\t\t\n\t\tfor (int i = 0; i < 5; i++) {\n\t\t\tSystem.out.println(i);\n\t\t\tif(i==3) {System.out.println(\"el numero es tres\");\n\t\t\t//break;\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\tString cadena= \"palabra1,palabra2,palabra3\";\n\t\t\t//a cadena le aplico un trim y split\n\t\t\t\n\t\t\tString[] elemento=cadena.trim().split(\",\");\n\t\t\tSystem.out.println(elemento[0]);\n\t\t\tSystem.out.println(elemento[1]);\n\t\t\tSystem.out.println(elemento[2]);\n\t\t\t\n\t\t\t\n\t\t\tString string=\"palabra1, palara2,palabvra3\";\n\t\t\tString[] fragmanto=string.trim().split(\",\");\n\t\t\tSystem.out.println(fragmanto[0]);\n\t\t\tSystem.out.println(fragmanto[1]);\n\t\t\tSystem.out.println(fragmanto[2]);\n\t\t\t\n\t\t\t\n\t\t}\t\n\t}", "title": "" }, { "docid": "e50cd496aee6f90100363cae5503578f", "score": "0.40529785", "text": "private UniqueVector getVoiceDirectoryNamesFromJarURLs(UniqueVector urls) {\n try {\n UniqueVector voiceDirectoryNames = new UniqueVector();\n for (int i = 0; i < urls.size(); i++) {\n System.out.println(\"TEST: reading manifest of \" +\n (URL)urls.get(i));\n JarURLConnection jarConnection =\n (JarURLConnection) ((URL) urls.get(i)).openConnection();\n Attributes attributes = jarConnection.getMainAttributes();\n String mainClass =\n attributes.getValue(Attributes.Name.MAIN_CLASS);\n System.out.println(\"TEST: Main-Class: \" + mainClass);\n if (mainClass == null || mainClass.trim().equals(\"\")) {\n throw new Error(\"No Main-Class found in jar \"\n + (URL)urls.get(i));\n }\n \n voiceDirectoryNames.add(mainClass);\n }\n return voiceDirectoryNames;\n } catch (IOException e) {\n throw new Error(\"Error reading jarfile manifests. \");\n }\n }", "title": "" }, { "docid": "d6ec1e835125d7d751b441d321aae3d5", "score": "0.40523404", "text": "private void setup(Manifest appManifest) \n {\n Map<String, String> appMap = readManifestIntoMap(appManifest);\n \n // configure the appSymbolicName and appVersion\n this.appSymbolicName = appMap.get(AppConstants.APPLICATION_SYMBOLIC_NAME);\n this.appVersion = new Version(appMap.get(AppConstants.APPLICATION_VERSION));\n this.appName = appMap.get(AppConstants.APPLICATION_NAME);\n this.appScope = this.appSymbolicName + \"_\" + this.appVersion.toString();\n \n if (this.appSymbolicName == null || this.appVersion == null) {\n throw new IllegalArgumentException(\"Failed to create ApplicationMetadataImpl object from Manifest \" + appManifest);\n }\n \n // configure appContents\n // use parseImportString as we don't allow appContents to be duplicate\n String applicationContents = appMap.get(AppConstants.APPLICATION_CONTENT);\n Map<String, Map<String, String>> appContentsMap = ManifestHeaderProcessor.parseImportString(applicationContents);\n for (Map.Entry<String, Map<String, String>> e : appContentsMap.entrySet()) {\n this.appContents.add(new ContentImpl(e.getKey(), e.getValue()));\n }\n \n String useBundleStr = appMap.get(AppConstants.APPLICATION_USE_BUNDLE);\n if (useBundleStr != null) {\n Map<String, Map<String, String>> useBundleMap = ManifestHeaderProcessor.parseImportString(useBundleStr);\n for (Map.Entry<String, Map<String, String>> e : useBundleMap.entrySet()) {\n this.useBundle.add(new ContentImpl(e.getKey(), e.getValue()));\n }\n }\n \n String allServiceImports = appMap.get(AppConstants.APPLICATION_IMPORT_SERVICE);\n List<String> serviceImports = ManifestHeaderProcessor.split(allServiceImports, \",\");\n for (String s: serviceImports) { \n try { \n ServiceDeclaration dec = new ServiceDeclarationImpl(s);\n importServices.add(dec);\n } catch (InvalidSyntaxException ise) { \n _logger.warn(\"APPUTILS0013E\", new Object[] {s, appSymbolicName});\n }\n }\n \n String allServiceExports = appMap.get(AppConstants.APPLICATION_EXPORT_SERVICE);\n List<String> serviceExports = ManifestHeaderProcessor.split(allServiceExports, \",\");\n for (String s: serviceExports) { \n try { \n ServiceDeclaration dec = new ServiceDeclarationImpl(s);\n exportServices.add(dec);\n } catch (InvalidSyntaxException ise) { \n _logger.warn(\"APPUTILS0014E\", new Object[] {s, appSymbolicName});\n }\n }\n \n }", "title": "" }, { "docid": "f4c14e4d14c2d0f2b600185aeae1a697", "score": "0.40491086", "text": "String[] mo15370a(String[] strArr);", "title": "" }, { "docid": "39e892e7b949fd22dd3f1e1b28849d3c", "score": "0.4045777", "text": "public final void a(Class cls, String... strArr) {\n List list = this.f77188b.get(cls);\n if (list == null) {\n list = new ArrayList();\n }\n list.addAll(Arrays.asList(strArr));\n this.f77188b.put(cls, list);\n }", "title": "" }, { "docid": "590ccaaf69e6dafd85193a9064bc49b3", "score": "0.4043861", "text": "public Builder addAllStringArrayResult(\n Iterable<String> values) {\n ensureStringArrayResultIsMutable();\n com.google.protobuf.AbstractMessageLite.Builder.addAll(\n values, stringArrayResult_);\n onChanged();\n return this;\n }", "title": "" }, { "docid": "4f060b737b41051e69fc065a7c6db83f", "score": "0.40365267", "text": "public static String assembleString(String[] array){\n String ret = \"\";\n for( int i = 0; i < array.length; i++){\n if( array[i] != null &&\n \tarray[i].length() > 0 ){\n // add quotes if needed.\n if( array[i].split(\"[\\\\s]\", 2).length > 1 ){\n array[i] = \"\\\"\"+array[i]+\"\\\"\";\n }\n ret += (ret.length()>0?\" \":\"\")+array[i];\n }\n }\n return ret;\n }", "title": "" }, { "docid": "985c08799e4c9f9a92784a8206235c64", "score": "0.40329966", "text": "public void addAll(Collection<String> strings);", "title": "" }, { "docid": "39602fbb8ee830f39b6f48b1a2d0d43d", "score": "0.4031517", "text": "Command(String[] userString) {\n this.userString = userString;\n }", "title": "" }, { "docid": "bd8ebcacac31182d5c62312ac6735261", "score": "0.40294394", "text": "public static AbstractItem[] getItemStringToMaterial(String str) {\n\t\tString[] list = {str};\n\t\treturn getItemStringListToMaterial(list);\n\t}", "title": "" }, { "docid": "98c4fc6b16c1bcc56b445c9ba51b0fdf", "score": "0.40284947", "text": "private static void varargsConstructorReference(){\n List<String> names =\n Arrays.asList(\"Grace Hopper\", \"Barbara Liskov\", \"Ada Lovelace\",\n \"Karen Spärck Jones\");\n\n names.stream()\n .map(name -> name.split(\" \")) // Map to a stream of string arrays\n .map(Person::new) // Map to a stream of Person\n .collect(Collectors.toList()); // Collect to a list of Person\n\n }", "title": "" }, { "docid": "05455b47db12ac453141093a8442973d", "score": "0.40282515", "text": "public void poblarArregloStrings(String[] datos)\n\t{\n\tfor(int i=0; i<NUM_ATRS; i++)\n\t{\n\tarregloStrings[i] = datos[i];\n\t}\n\t}", "title": "" }, { "docid": "ca7b22dcb7a66dc39e3db06252595849", "score": "0.4024304", "text": "public Builder addAllVersions(\n Iterable<String> values) {\n ensureVersionsIsMutable();\n com.google.protobuf.AbstractMessageLite.Builder.addAll(\n values, versions_);\n onChanged();\n return this;\n }", "title": "" }, { "docid": "a2513dfdbcf279aade2cb219468bae70", "score": "0.40209034", "text": "public static ICMakeProjectManifest fromJson(String json) {\n return JsonObjectStream.deserialize(json, CMakeProjectManifest.class);\n }", "title": "" }, { "docid": "382785db866255bb77a3a31332e52fee", "score": "0.40167308", "text": "void xsetSynArray(org.apache.xmlbeans.XmlString[] synArray);", "title": "" }, { "docid": "e9200a9fadf3740dddad9271383e91f7", "score": "0.4015693", "text": "ArtifactDataEntryResourceCreator(Set<PosixFilePermission> permissions) {\n this.permissions = permissions;\n }", "title": "" }, { "docid": "5b0dd1bd651e6eb7d69f77fa0013a22e", "score": "0.4010006", "text": "public void setEntries (String[] entries) {\r\n \t\tif (entries == null) throw new IllegalArgumentException(\"entries must not be null\");\r\n \t\tthis.entries = entries;\r\n \t\tselected = 0;\r\n \t\tinvalidateHierarchy();\r\n \t}", "title": "" }, { "docid": "95e5871cf55eb98c36d61539badd2223", "score": "0.40014473", "text": "public CommandArgs(String[] args) {\n parseArgs(args);\n }", "title": "" }, { "docid": "7cfb48e8381b26be9fa57ca2eba20ee3", "score": "0.39984655", "text": "public IJsonArr convert(String [] arr);", "title": "" }, { "docid": "9046a1a77d346e30c7079514ebfb3b12", "score": "0.39971697", "text": "public static void createJar(String dest, Path filesLocation,\n String... fileNames) throws IOException {\n try (JarOutputStream jos = new JarOutputStream(\n new FileOutputStream(dest), new Manifest())) {\n for (String fileName : fileNames) {\n System.out.println(String.format(\"Adding %s to %s\",\n fileName, dest));\n\n // add an archive entry, and write a file\n jos.putNextEntry(new JarEntry(fileName));\n File file;\n if (filesLocation != null) {\n file = filesLocation.resolve(fileName).toFile();\n } else {\n file = new File(fileName);\n }\n try (FileInputStream fis = new FileInputStream(file)) {\n Utils.transferBetweenStreams(fis, jos);\n } catch (FileNotFoundException e) {\n jos.write(fileName.getBytes());\n }\n }\n }\n System.out.println();\n }", "title": "" }, { "docid": "315504444c34a59a76caf01e3071ca96", "score": "0.39902228", "text": "private CompletableFuture<CollectionsManifest> loadManifest() {\n return sendRequest(HttpMethod.GET, pathForManifest(bucketName)).thenApply(response -> {\n try {\n return Mapper.decodeInto(response.content(), CollectionsManifest.class);\n } catch (MapperException ex) {\n // TODO: this needs to go away after mad hatter beta 2 is released.\n return decodeBetaFallback(response.content());\n }\n });\n }", "title": "" }, { "docid": "c36b71f583ea97af7f0f4ade69fd346b", "score": "0.39814878", "text": "public static AllowedArgsListModel createAllowed(String args[]) {\n\t\treturn new AllowedArgsListModel(getData(args));\n\t}", "title": "" } ]
44e4b2efa5b20c88e9e029105b58f34a
$ANTLR end "rule__XFeatureCall__Group_1__2" $ANTLR start "rule__XFeatureCall__Group_1__2__Impl" ../org.xtext.guicemodules.ui/srcgen/org/xtext/guicemodules/ui/contentassist/antlr/internal/InternalGuiceModules.g:12708:1: rule__XFeatureCall__Group_1__2__Impl : ( ( rule__XFeatureCall__Group_1_2__0 ) ) ;
[ { "docid": "f735c8f58e9187988d1b5d537ce19b29", "score": "0.8530973", "text": "public final void rule__XFeatureCall__Group_1__2__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.guicemodules.ui/src-gen/org/xtext/guicemodules/ui/contentassist/antlr/internal/InternalGuiceModules.g:12712:1: ( ( ( rule__XFeatureCall__Group_1_2__0 )* ) )\n // ../org.xtext.guicemodules.ui/src-gen/org/xtext/guicemodules/ui/contentassist/antlr/internal/InternalGuiceModules.g:12713:1: ( ( rule__XFeatureCall__Group_1_2__0 )* )\n {\n // ../org.xtext.guicemodules.ui/src-gen/org/xtext/guicemodules/ui/contentassist/antlr/internal/InternalGuiceModules.g:12713:1: ( ( rule__XFeatureCall__Group_1_2__0 )* )\n // ../org.xtext.guicemodules.ui/src-gen/org/xtext/guicemodules/ui/contentassist/antlr/internal/InternalGuiceModules.g:12714:1: ( rule__XFeatureCall__Group_1_2__0 )*\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getXFeatureCallAccess().getGroup_1_2()); \n }\n // ../org.xtext.guicemodules.ui/src-gen/org/xtext/guicemodules/ui/contentassist/antlr/internal/InternalGuiceModules.g:12715:1: ( rule__XFeatureCall__Group_1_2__0 )*\n loop92:\n do {\n int alt92=2;\n int LA92_0 = input.LA(1);\n\n if ( (LA92_0==51) ) {\n alt92=1;\n }\n\n\n switch (alt92) {\n \tcase 1 :\n \t // ../org.xtext.guicemodules.ui/src-gen/org/xtext/guicemodules/ui/contentassist/antlr/internal/InternalGuiceModules.g:12715:2: rule__XFeatureCall__Group_1_2__0\n \t {\n \t pushFollow(FOLLOW_rule__XFeatureCall__Group_1_2__0_in_rule__XFeatureCall__Group_1__2__Impl25735);\n \t rule__XFeatureCall__Group_1_2__0();\n\n \t state._fsp--;\n \t if (state.failed) return ;\n\n \t }\n \t break;\n\n \tdefault :\n \t break loop92;\n }\n } while (true);\n\n if ( state.backtracking==0 ) {\n after(grammarAccess.getXFeatureCallAccess().getGroup_1_2()); \n }\n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" } ]
[ { "docid": "09a9d633e0299ae9efb31f2e00f4bfb5", "score": "0.8541181", "text": "public final void rule__XFeatureCall__Group_1_2__1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.guicemodules.ui/src-gen/org/xtext/guicemodules/ui/contentassist/antlr/internal/InternalGuiceModules.g:12798:1: ( rule__XFeatureCall__Group_1_2__1__Impl )\n // ../org.xtext.guicemodules.ui/src-gen/org/xtext/guicemodules/ui/contentassist/antlr/internal/InternalGuiceModules.g:12799:2: rule__XFeatureCall__Group_1_2__1__Impl\n {\n pushFollow(FOLLOW_rule__XFeatureCall__Group_1_2__1__Impl_in_rule__XFeatureCall__Group_1_2__125895);\n rule__XFeatureCall__Group_1_2__1__Impl();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "45ea7d81c11e6f6ca12da3797facdc79", "score": "0.8531212", "text": "public final void rule__XFeatureCall__Group_1_2__1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.eclipse.xtext.idea.example.entities.ui/src-gen/org/eclipse/xtext/idea/example/entities/ui/contentassist/antlr/internal/InternalEntities.g:13665:1: ( rule__XFeatureCall__Group_1_2__1__Impl )\n // ../org.eclipse.xtext.idea.example.entities.ui/src-gen/org/eclipse/xtext/idea/example/entities/ui/contentassist/antlr/internal/InternalEntities.g:13666:2: rule__XFeatureCall__Group_1_2__1__Impl\n {\n pushFollow(FOLLOW_rule__XFeatureCall__Group_1_2__1__Impl_in_rule__XFeatureCall__Group_1_2__127668);\n rule__XFeatureCall__Group_1_2__1__Impl();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "cd95ac1bb42cac77b8fad92e65af9343", "score": "0.84290683", "text": "public final void rule__XFeatureCall__Group_1_2__0() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.guicemodules.ui/src-gen/org/xtext/guicemodules/ui/contentassist/antlr/internal/InternalGuiceModules.g:12767:1: ( rule__XFeatureCall__Group_1_2__0__Impl rule__XFeatureCall__Group_1_2__1 )\n // ../org.xtext.guicemodules.ui/src-gen/org/xtext/guicemodules/ui/contentassist/antlr/internal/InternalGuiceModules.g:12768:2: rule__XFeatureCall__Group_1_2__0__Impl rule__XFeatureCall__Group_1_2__1\n {\n pushFollow(FOLLOW_rule__XFeatureCall__Group_1_2__0__Impl_in_rule__XFeatureCall__Group_1_2__025833);\n rule__XFeatureCall__Group_1_2__0__Impl();\n\n state._fsp--;\n if (state.failed) return ;\n pushFollow(FOLLOW_rule__XFeatureCall__Group_1_2__1_in_rule__XFeatureCall__Group_1_2__025836);\n rule__XFeatureCall__Group_1_2__1();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "31150d72b61b8b535a45a4108f5fbd3e", "score": "0.8397507", "text": "public final void rule__XFeatureCall__Group_1__2__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.eclipse.xtext.idea.example.entities.ui/src-gen/org/eclipse/xtext/idea/example/entities/ui/contentassist/antlr/internal/InternalEntities.g:13579:1: ( ( ( rule__XFeatureCall__Group_1_2__0 )* ) )\n // ../org.eclipse.xtext.idea.example.entities.ui/src-gen/org/eclipse/xtext/idea/example/entities/ui/contentassist/antlr/internal/InternalEntities.g:13580:1: ( ( rule__XFeatureCall__Group_1_2__0 )* )\n {\n // ../org.eclipse.xtext.idea.example.entities.ui/src-gen/org/eclipse/xtext/idea/example/entities/ui/contentassist/antlr/internal/InternalEntities.g:13580:1: ( ( rule__XFeatureCall__Group_1_2__0 )* )\n // ../org.eclipse.xtext.idea.example.entities.ui/src-gen/org/eclipse/xtext/idea/example/entities/ui/contentassist/antlr/internal/InternalEntities.g:13581:1: ( rule__XFeatureCall__Group_1_2__0 )*\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getXFeatureCallAccess().getGroup_1_2()); \n }\n // ../org.eclipse.xtext.idea.example.entities.ui/src-gen/org/eclipse/xtext/idea/example/entities/ui/contentassist/antlr/internal/InternalEntities.g:13582:1: ( rule__XFeatureCall__Group_1_2__0 )*\n loop99:\n do {\n int alt99=2;\n int LA99_0 = input.LA(1);\n\n if ( (LA99_0==59) ) {\n alt99=1;\n }\n\n\n switch (alt99) {\n \tcase 1 :\n \t // ../org.eclipse.xtext.idea.example.entities.ui/src-gen/org/eclipse/xtext/idea/example/entities/ui/contentassist/antlr/internal/InternalEntities.g:13582:2: rule__XFeatureCall__Group_1_2__0\n \t {\n \t pushFollow(FOLLOW_rule__XFeatureCall__Group_1_2__0_in_rule__XFeatureCall__Group_1__2__Impl27508);\n \t rule__XFeatureCall__Group_1_2__0();\n\n \t state._fsp--;\n \t if (state.failed) return ;\n\n \t }\n \t break;\n\n \tdefault :\n \t break loop99;\n }\n } while (true);\n\n if ( state.backtracking==0 ) {\n after(grammarAccess.getXFeatureCallAccess().getGroup_1_2()); \n }\n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "34f53bb922749354e8facae9c1c9e4f4", "score": "0.83386344", "text": "public final void rule__XFeatureCall__Group_1_2__0() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.eclipse.xtext.idea.example.entities.ui/src-gen/org/eclipse/xtext/idea/example/entities/ui/contentassist/antlr/internal/InternalEntities.g:13634:1: ( rule__XFeatureCall__Group_1_2__0__Impl rule__XFeatureCall__Group_1_2__1 )\n // ../org.eclipse.xtext.idea.example.entities.ui/src-gen/org/eclipse/xtext/idea/example/entities/ui/contentassist/antlr/internal/InternalEntities.g:13635:2: rule__XFeatureCall__Group_1_2__0__Impl rule__XFeatureCall__Group_1_2__1\n {\n pushFollow(FOLLOW_rule__XFeatureCall__Group_1_2__0__Impl_in_rule__XFeatureCall__Group_1_2__027606);\n rule__XFeatureCall__Group_1_2__0__Impl();\n\n state._fsp--;\n if (state.failed) return ;\n pushFollow(FOLLOW_rule__XFeatureCall__Group_1_2__1_in_rule__XFeatureCall__Group_1_2__027609);\n rule__XFeatureCall__Group_1_2__1();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "21af6694f6bbb12dec4cafcf3510de72", "score": "0.83098096", "text": "public final void rule__XFeatureCall__Group_1__2() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.guicemodules.ui/src-gen/org/xtext/guicemodules/ui/contentassist/antlr/internal/InternalGuiceModules.g:12700:1: ( rule__XFeatureCall__Group_1__2__Impl rule__XFeatureCall__Group_1__3 )\n // ../org.xtext.guicemodules.ui/src-gen/org/xtext/guicemodules/ui/contentassist/antlr/internal/InternalGuiceModules.g:12701:2: rule__XFeatureCall__Group_1__2__Impl rule__XFeatureCall__Group_1__3\n {\n pushFollow(FOLLOW_rule__XFeatureCall__Group_1__2__Impl_in_rule__XFeatureCall__Group_1__225705);\n rule__XFeatureCall__Group_1__2__Impl();\n\n state._fsp--;\n if (state.failed) return ;\n pushFollow(FOLLOW_rule__XFeatureCall__Group_1__3_in_rule__XFeatureCall__Group_1__225708);\n rule__XFeatureCall__Group_1__3();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "fedd948f2907862ceced08979216f8d1", "score": "0.829293", "text": "public final void rule__XFeatureCall__Group_2_2__1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.yakindu.sct.generator.genmodel.ui/src-gen/org/yakindu/sct/generator/genmodel/ui/contentassist/antlr/internal/InternalSGen.g:10578:1: ( rule__XFeatureCall__Group_2_2__1__Impl )\n // ../org.yakindu.sct.generator.genmodel.ui/src-gen/org/yakindu/sct/generator/genmodel/ui/contentassist/antlr/internal/InternalSGen.g:10579:2: rule__XFeatureCall__Group_2_2__1__Impl\n {\n pushFollow(FOLLOW_rule__XFeatureCall__Group_2_2__1__Impl_in_rule__XFeatureCall__Group_2_2__121357);\n rule__XFeatureCall__Group_2_2__1__Impl();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "39e756890d57e9e3a90568640eae06f4", "score": "0.82557565", "text": "public final void rule__XFeatureCall__Group__2() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.guicemodules.ui/src-gen/org/xtext/guicemodules/ui/contentassist/antlr/internal/InternalGuiceModules.g:12544:1: ( rule__XFeatureCall__Group__2__Impl rule__XFeatureCall__Group__3 )\n // ../org.xtext.guicemodules.ui/src-gen/org/xtext/guicemodules/ui/contentassist/antlr/internal/InternalGuiceModules.g:12545:2: rule__XFeatureCall__Group__2__Impl rule__XFeatureCall__Group__3\n {\n pushFollow(FOLLOW_rule__XFeatureCall__Group__2__Impl_in_rule__XFeatureCall__Group__225394);\n rule__XFeatureCall__Group__2__Impl();\n\n state._fsp--;\n if (state.failed) return ;\n pushFollow(FOLLOW_rule__XFeatureCall__Group__3_in_rule__XFeatureCall__Group__225397);\n rule__XFeatureCall__Group__3();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "e477b1254c2fc23ba0fff64cef50fd64", "score": "0.82394576", "text": "public final void rule__XFeatureCall__Group_1__2() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.eclipse.xtext.idea.example.entities.ui/src-gen/org/eclipse/xtext/idea/example/entities/ui/contentassist/antlr/internal/InternalEntities.g:13567:1: ( rule__XFeatureCall__Group_1__2__Impl rule__XFeatureCall__Group_1__3 )\n // ../org.eclipse.xtext.idea.example.entities.ui/src-gen/org/eclipse/xtext/idea/example/entities/ui/contentassist/antlr/internal/InternalEntities.g:13568:2: rule__XFeatureCall__Group_1__2__Impl rule__XFeatureCall__Group_1__3\n {\n pushFollow(FOLLOW_rule__XFeatureCall__Group_1__2__Impl_in_rule__XFeatureCall__Group_1__227478);\n rule__XFeatureCall__Group_1__2__Impl();\n\n state._fsp--;\n if (state.failed) return ;\n pushFollow(FOLLOW_rule__XFeatureCall__Group_1__3_in_rule__XFeatureCall__Group_1__227481);\n rule__XFeatureCall__Group_1__3();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "22e0168521e9ee6d2848d77f7c75cd46", "score": "0.81927574", "text": "public final void rule__XFeatureCall__Group__1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.guicemodules.ui/src-gen/org/xtext/guicemodules/ui/contentassist/antlr/internal/InternalGuiceModules.g:12515:1: ( rule__XFeatureCall__Group__1__Impl rule__XFeatureCall__Group__2 )\n // ../org.xtext.guicemodules.ui/src-gen/org/xtext/guicemodules/ui/contentassist/antlr/internal/InternalGuiceModules.g:12516:2: rule__XFeatureCall__Group__1__Impl rule__XFeatureCall__Group__2\n {\n pushFollow(FOLLOW_rule__XFeatureCall__Group__1__Impl_in_rule__XFeatureCall__Group__125333);\n rule__XFeatureCall__Group__1__Impl();\n\n state._fsp--;\n if (state.failed) return ;\n pushFollow(FOLLOW_rule__XFeatureCall__Group__2_in_rule__XFeatureCall__Group__125336);\n rule__XFeatureCall__Group__2();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "5f224c9ec8920a03f6d8a45af37c0193", "score": "0.8095807", "text": "public final void rule__XFeatureCall__Group__1__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.guicemodules.ui/src-gen/org/xtext/guicemodules/ui/contentassist/antlr/internal/InternalGuiceModules.g:12527:1: ( ( ( rule__XFeatureCall__Group_1__0 )? ) )\n // ../org.xtext.guicemodules.ui/src-gen/org/xtext/guicemodules/ui/contentassist/antlr/internal/InternalGuiceModules.g:12528:1: ( ( rule__XFeatureCall__Group_1__0 )? )\n {\n // ../org.xtext.guicemodules.ui/src-gen/org/xtext/guicemodules/ui/contentassist/antlr/internal/InternalGuiceModules.g:12528:1: ( ( rule__XFeatureCall__Group_1__0 )? )\n // ../org.xtext.guicemodules.ui/src-gen/org/xtext/guicemodules/ui/contentassist/antlr/internal/InternalGuiceModules.g:12529:1: ( rule__XFeatureCall__Group_1__0 )?\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getXFeatureCallAccess().getGroup_1()); \n }\n // ../org.xtext.guicemodules.ui/src-gen/org/xtext/guicemodules/ui/contentassist/antlr/internal/InternalGuiceModules.g:12530:1: ( rule__XFeatureCall__Group_1__0 )?\n int alt89=2;\n int LA89_0 = input.LA(1);\n\n if ( (LA89_0==25) ) {\n alt89=1;\n }\n switch (alt89) {\n case 1 :\n // ../org.xtext.guicemodules.ui/src-gen/org/xtext/guicemodules/ui/contentassist/antlr/internal/InternalGuiceModules.g:12530:2: rule__XFeatureCall__Group_1__0\n {\n pushFollow(FOLLOW_rule__XFeatureCall__Group_1__0_in_rule__XFeatureCall__Group__1__Impl25363);\n rule__XFeatureCall__Group_1__0();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n break;\n\n }\n\n if ( state.backtracking==0 ) {\n after(grammarAccess.getXFeatureCallAccess().getGroup_1()); \n }\n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "ac1c3592897fad83fd95cafd47874b31", "score": "0.8091173", "text": "public final void rule__XFeatureCall__Group__1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.eclipse.xtext.idea.example.entities.ui/src-gen/org/eclipse/xtext/idea/example/entities/ui/contentassist/antlr/internal/InternalEntities.g:13382:1: ( rule__XFeatureCall__Group__1__Impl rule__XFeatureCall__Group__2 )\n // ../org.eclipse.xtext.idea.example.entities.ui/src-gen/org/eclipse/xtext/idea/example/entities/ui/contentassist/antlr/internal/InternalEntities.g:13383:2: rule__XFeatureCall__Group__1__Impl rule__XFeatureCall__Group__2\n {\n pushFollow(FOLLOW_rule__XFeatureCall__Group__1__Impl_in_rule__XFeatureCall__Group__127106);\n rule__XFeatureCall__Group__1__Impl();\n\n state._fsp--;\n if (state.failed) return ;\n pushFollow(FOLLOW_rule__XFeatureCall__Group__2_in_rule__XFeatureCall__Group__127109);\n rule__XFeatureCall__Group__2();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "f2ab7973b3b705f9ae25e3ff815351eb", "score": "0.8088505", "text": "public final void rule__XFeatureCall__Group__2__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.yakindu.sct.generator.genmodel.ui/src-gen/org/yakindu/sct/generator/genmodel/ui/contentassist/antlr/internal/InternalSGen.g:10305:1: ( ( ( rule__XFeatureCall__Group_2__0 )? ) )\n // ../org.yakindu.sct.generator.genmodel.ui/src-gen/org/yakindu/sct/generator/genmodel/ui/contentassist/antlr/internal/InternalSGen.g:10306:1: ( ( rule__XFeatureCall__Group_2__0 )? )\n {\n // ../org.yakindu.sct.generator.genmodel.ui/src-gen/org/yakindu/sct/generator/genmodel/ui/contentassist/antlr/internal/InternalSGen.g:10306:1: ( ( rule__XFeatureCall__Group_2__0 )? )\n // ../org.yakindu.sct.generator.genmodel.ui/src-gen/org/yakindu/sct/generator/genmodel/ui/contentassist/antlr/internal/InternalSGen.g:10307:1: ( rule__XFeatureCall__Group_2__0 )?\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getXFeatureCallAccess().getGroup_2()); \n }\n // ../org.yakindu.sct.generator.genmodel.ui/src-gen/org/yakindu/sct/generator/genmodel/ui/contentassist/antlr/internal/InternalSGen.g:10308:1: ( rule__XFeatureCall__Group_2__0 )?\n int alt70=2;\n int LA70_0 = input.LA(1);\n\n if ( (LA70_0==24) ) {\n alt70=1;\n }\n switch (alt70) {\n case 1 :\n // ../org.yakindu.sct.generator.genmodel.ui/src-gen/org/yakindu/sct/generator/genmodel/ui/contentassist/antlr/internal/InternalSGen.g:10308:2: rule__XFeatureCall__Group_2__0\n {\n pushFollow(FOLLOW_rule__XFeatureCall__Group_2__0_in_rule__XFeatureCall__Group__2__Impl20823);\n rule__XFeatureCall__Group_2__0();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n break;\n\n }\n\n if ( state.backtracking==0 ) {\n after(grammarAccess.getXFeatureCallAccess().getGroup_2()); \n }\n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "50e5444fd107f54e5afb46b78a50f9b2", "score": "0.8072832", "text": "public final void rule__XFeatureCall__Group__2() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.eclipse.xtext.idea.example.entities.ui/src-gen/org/eclipse/xtext/idea/example/entities/ui/contentassist/antlr/internal/InternalEntities.g:13411:1: ( rule__XFeatureCall__Group__2__Impl rule__XFeatureCall__Group__3 )\n // ../org.eclipse.xtext.idea.example.entities.ui/src-gen/org/eclipse/xtext/idea/example/entities/ui/contentassist/antlr/internal/InternalEntities.g:13412:2: rule__XFeatureCall__Group__2__Impl rule__XFeatureCall__Group__3\n {\n pushFollow(FOLLOW_rule__XFeatureCall__Group__2__Impl_in_rule__XFeatureCall__Group__227167);\n rule__XFeatureCall__Group__2__Impl();\n\n state._fsp--;\n if (state.failed) return ;\n pushFollow(FOLLOW_rule__XFeatureCall__Group__3_in_rule__XFeatureCall__Group__227170);\n rule__XFeatureCall__Group__3();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "53b5e40c9c4d8480490db3218808e956", "score": "0.80691147", "text": "public final void rule__XFeatureCall__Group_1__1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.guicemodules.ui/src-gen/org/xtext/guicemodules/ui/contentassist/antlr/internal/InternalGuiceModules.g:12671:1: ( rule__XFeatureCall__Group_1__1__Impl rule__XFeatureCall__Group_1__2 )\n // ../org.xtext.guicemodules.ui/src-gen/org/xtext/guicemodules/ui/contentassist/antlr/internal/InternalGuiceModules.g:12672:2: rule__XFeatureCall__Group_1__1__Impl rule__XFeatureCall__Group_1__2\n {\n pushFollow(FOLLOW_rule__XFeatureCall__Group_1__1__Impl_in_rule__XFeatureCall__Group_1__125645);\n rule__XFeatureCall__Group_1__1__Impl();\n\n state._fsp--;\n if (state.failed) return ;\n pushFollow(FOLLOW_rule__XFeatureCall__Group_1__2_in_rule__XFeatureCall__Group_1__125648);\n rule__XFeatureCall__Group_1__2();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "818d8dc3ebb2dda8b3cd026d01143ff6", "score": "0.80536497", "text": "public final void rule__XFeatureCall__Group_2__1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.yakindu.sct.generator.genmodel.ui/src-gen/org/yakindu/sct/generator/genmodel/ui/contentassist/antlr/internal/InternalSGen.g:10451:1: ( rule__XFeatureCall__Group_2__1__Impl rule__XFeatureCall__Group_2__2 )\n // ../org.yakindu.sct.generator.genmodel.ui/src-gen/org/yakindu/sct/generator/genmodel/ui/contentassist/antlr/internal/InternalSGen.g:10452:2: rule__XFeatureCall__Group_2__1__Impl rule__XFeatureCall__Group_2__2\n {\n pushFollow(FOLLOW_rule__XFeatureCall__Group_2__1__Impl_in_rule__XFeatureCall__Group_2__121107);\n rule__XFeatureCall__Group_2__1__Impl();\n\n state._fsp--;\n if (state.failed) return ;\n pushFollow(FOLLOW_rule__XFeatureCall__Group_2__2_in_rule__XFeatureCall__Group_2__121110);\n rule__XFeatureCall__Group_2__2();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "32f26a416ffcea6d29560bc2991b6b28", "score": "0.7973234", "text": "public final void rule__XFeatureCall__Group_1__0() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.guicemodules.ui/src-gen/org/xtext/guicemodules/ui/contentassist/antlr/internal/InternalGuiceModules.g:12640:1: ( rule__XFeatureCall__Group_1__0__Impl rule__XFeatureCall__Group_1__1 )\n // ../org.xtext.guicemodules.ui/src-gen/org/xtext/guicemodules/ui/contentassist/antlr/internal/InternalGuiceModules.g:12641:2: rule__XFeatureCall__Group_1__0__Impl rule__XFeatureCall__Group_1__1\n {\n pushFollow(FOLLOW_rule__XFeatureCall__Group_1__0__Impl_in_rule__XFeatureCall__Group_1__025583);\n rule__XFeatureCall__Group_1__0__Impl();\n\n state._fsp--;\n if (state.failed) return ;\n pushFollow(FOLLOW_rule__XFeatureCall__Group_1__1_in_rule__XFeatureCall__Group_1__025586);\n rule__XFeatureCall__Group_1__1();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "73ce2495378e95aa00cd18a11e21af70", "score": "0.7972453", "text": "public final void rule__XFeatureCall__Group_1__1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.eclipse.xtext.idea.example.entities.ui/src-gen/org/eclipse/xtext/idea/example/entities/ui/contentassist/antlr/internal/InternalEntities.g:13538:1: ( rule__XFeatureCall__Group_1__1__Impl rule__XFeatureCall__Group_1__2 )\n // ../org.eclipse.xtext.idea.example.entities.ui/src-gen/org/eclipse/xtext/idea/example/entities/ui/contentassist/antlr/internal/InternalEntities.g:13539:2: rule__XFeatureCall__Group_1__1__Impl rule__XFeatureCall__Group_1__2\n {\n pushFollow(FOLLOW_rule__XFeatureCall__Group_1__1__Impl_in_rule__XFeatureCall__Group_1__127418);\n rule__XFeatureCall__Group_1__1__Impl();\n\n state._fsp--;\n if (state.failed) return ;\n pushFollow(FOLLOW_rule__XFeatureCall__Group_1__2_in_rule__XFeatureCall__Group_1__127421);\n rule__XFeatureCall__Group_1__2();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "8917879da84263b3524f91f1a630e3e6", "score": "0.79723585", "text": "public final void rule__XMemberFeatureCall__Group_1_1_1__2__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.guicemodules.ui/src-gen/org/xtext/guicemodules/ui/contentassist/antlr/internal/InternalGuiceModules.g:8165:1: ( ( ( rule__XMemberFeatureCall__Group_1_1_1_2__0 )* ) )\n // ../org.xtext.guicemodules.ui/src-gen/org/xtext/guicemodules/ui/contentassist/antlr/internal/InternalGuiceModules.g:8166:1: ( ( rule__XMemberFeatureCall__Group_1_1_1_2__0 )* )\n {\n // ../org.xtext.guicemodules.ui/src-gen/org/xtext/guicemodules/ui/contentassist/antlr/internal/InternalGuiceModules.g:8166:1: ( ( rule__XMemberFeatureCall__Group_1_1_1_2__0 )* )\n // ../org.xtext.guicemodules.ui/src-gen/org/xtext/guicemodules/ui/contentassist/antlr/internal/InternalGuiceModules.g:8167:1: ( rule__XMemberFeatureCall__Group_1_1_1_2__0 )*\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getXMemberFeatureCallAccess().getGroup_1_1_1_2()); \n }\n // ../org.xtext.guicemodules.ui/src-gen/org/xtext/guicemodules/ui/contentassist/antlr/internal/InternalGuiceModules.g:8168:1: ( rule__XMemberFeatureCall__Group_1_1_1_2__0 )*\n loop65:\n do {\n int alt65=2;\n int LA65_0 = input.LA(1);\n\n if ( (LA65_0==51) ) {\n alt65=1;\n }\n\n\n switch (alt65) {\n \tcase 1 :\n \t // ../org.xtext.guicemodules.ui/src-gen/org/xtext/guicemodules/ui/contentassist/antlr/internal/InternalGuiceModules.g:8168:2: rule__XMemberFeatureCall__Group_1_1_1_2__0\n \t {\n \t pushFollow(FOLLOW_rule__XMemberFeatureCall__Group_1_1_1_2__0_in_rule__XMemberFeatureCall__Group_1_1_1__2__Impl16796);\n \t rule__XMemberFeatureCall__Group_1_1_1_2__0();\n\n \t state._fsp--;\n \t if (state.failed) return ;\n\n \t }\n \t break;\n\n \tdefault :\n \t break loop65;\n }\n } while (true);\n\n if ( state.backtracking==0 ) {\n after(grammarAccess.getXMemberFeatureCallAccess().getGroup_1_1_1_2()); \n }\n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "ae72557e3de46fc032fad302e33d8207", "score": "0.79477763", "text": "public final void rule__XFeatureCall__Group_2__2__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.yakindu.sct.generator.genmodel.ui/src-gen/org/yakindu/sct/generator/genmodel/ui/contentassist/antlr/internal/InternalSGen.g:10492:1: ( ( ( rule__XFeatureCall__Group_2_2__0 )* ) )\n // ../org.yakindu.sct.generator.genmodel.ui/src-gen/org/yakindu/sct/generator/genmodel/ui/contentassist/antlr/internal/InternalSGen.g:10493:1: ( ( rule__XFeatureCall__Group_2_2__0 )* )\n {\n // ../org.yakindu.sct.generator.genmodel.ui/src-gen/org/yakindu/sct/generator/genmodel/ui/contentassist/antlr/internal/InternalSGen.g:10493:1: ( ( rule__XFeatureCall__Group_2_2__0 )* )\n // ../org.yakindu.sct.generator.genmodel.ui/src-gen/org/yakindu/sct/generator/genmodel/ui/contentassist/antlr/internal/InternalSGen.g:10494:1: ( rule__XFeatureCall__Group_2_2__0 )*\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getXFeatureCallAccess().getGroup_2_2()); \n }\n // ../org.yakindu.sct.generator.genmodel.ui/src-gen/org/yakindu/sct/generator/genmodel/ui/contentassist/antlr/internal/InternalSGen.g:10495:1: ( rule__XFeatureCall__Group_2_2__0 )*\n loop73:\n do {\n int alt73=2;\n int LA73_0 = input.LA(1);\n\n if ( (LA73_0==44) ) {\n alt73=1;\n }\n\n\n switch (alt73) {\n \tcase 1 :\n \t // ../org.yakindu.sct.generator.genmodel.ui/src-gen/org/yakindu/sct/generator/genmodel/ui/contentassist/antlr/internal/InternalSGen.g:10495:2: rule__XFeatureCall__Group_2_2__0\n \t {\n \t pushFollow(FOLLOW_rule__XFeatureCall__Group_2_2__0_in_rule__XFeatureCall__Group_2__2__Impl21197);\n \t rule__XFeatureCall__Group_2_2__0();\n\n \t state._fsp--;\n \t if (state.failed) return ;\n\n \t }\n \t break;\n\n \tdefault :\n \t break loop73;\n }\n } while (true);\n\n if ( state.backtracking==0 ) {\n after(grammarAccess.getXFeatureCallAccess().getGroup_2_2()); \n }\n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "c5d4dfeafda6f6b20a84824fba170081", "score": "0.79387337", "text": "public final void rule__XFeatureCall__Group_2__0() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.yakindu.sct.generator.genmodel.ui/src-gen/org/yakindu/sct/generator/genmodel/ui/contentassist/antlr/internal/InternalSGen.g:10420:1: ( rule__XFeatureCall__Group_2__0__Impl rule__XFeatureCall__Group_2__1 )\n // ../org.yakindu.sct.generator.genmodel.ui/src-gen/org/yakindu/sct/generator/genmodel/ui/contentassist/antlr/internal/InternalSGen.g:10421:2: rule__XFeatureCall__Group_2__0__Impl rule__XFeatureCall__Group_2__1\n {\n pushFollow(FOLLOW_rule__XFeatureCall__Group_2__0__Impl_in_rule__XFeatureCall__Group_2__021045);\n rule__XFeatureCall__Group_2__0__Impl();\n\n state._fsp--;\n if (state.failed) return ;\n pushFollow(FOLLOW_rule__XFeatureCall__Group_2__1_in_rule__XFeatureCall__Group_2__021048);\n rule__XFeatureCall__Group_2__1();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "d3519631c497d56cf234837abfb25567", "score": "0.7909083", "text": "public final void rule__XFeatureCall__Group_3__2() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.guicemodules.ui/src-gen/org/xtext/guicemodules/ui/contentassist/antlr/internal/InternalGuiceModules.g:12888:1: ( rule__XFeatureCall__Group_3__2__Impl )\n // ../org.xtext.guicemodules.ui/src-gen/org/xtext/guicemodules/ui/contentassist/antlr/internal/InternalGuiceModules.g:12889:2: rule__XFeatureCall__Group_3__2__Impl\n {\n pushFollow(FOLLOW_rule__XFeatureCall__Group_3__2__Impl_in_rule__XFeatureCall__Group_3__226077);\n rule__XFeatureCall__Group_3__2__Impl();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "695257317770db80f76afd8ef0a554b2", "score": "0.789961", "text": "public final void rule__XFeatureCall__Group_1__0() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.eclipse.xtext.idea.example.entities.ui/src-gen/org/eclipse/xtext/idea/example/entities/ui/contentassist/antlr/internal/InternalEntities.g:13507:1: ( rule__XFeatureCall__Group_1__0__Impl rule__XFeatureCall__Group_1__1 )\n // ../org.eclipse.xtext.idea.example.entities.ui/src-gen/org/eclipse/xtext/idea/example/entities/ui/contentassist/antlr/internal/InternalEntities.g:13508:2: rule__XFeatureCall__Group_1__0__Impl rule__XFeatureCall__Group_1__1\n {\n pushFollow(FOLLOW_rule__XFeatureCall__Group_1__0__Impl_in_rule__XFeatureCall__Group_1__027356);\n rule__XFeatureCall__Group_1__0__Impl();\n\n state._fsp--;\n if (state.failed) return ;\n pushFollow(FOLLOW_rule__XFeatureCall__Group_1__1_in_rule__XFeatureCall__Group_1__027359);\n rule__XFeatureCall__Group_1__1();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "34b4713740fa3481d57745b9095b35c6", "score": "0.78979504", "text": "public final void rule__XFeatureCall__Group__1__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.eclipse.xtext.idea.example.entities.ui/src-gen/org/eclipse/xtext/idea/example/entities/ui/contentassist/antlr/internal/InternalEntities.g:13394:1: ( ( ( rule__XFeatureCall__Group_1__0 )? ) )\n // ../org.eclipse.xtext.idea.example.entities.ui/src-gen/org/eclipse/xtext/idea/example/entities/ui/contentassist/antlr/internal/InternalEntities.g:13395:1: ( ( rule__XFeatureCall__Group_1__0 )? )\n {\n // ../org.eclipse.xtext.idea.example.entities.ui/src-gen/org/eclipse/xtext/idea/example/entities/ui/contentassist/antlr/internal/InternalEntities.g:13395:1: ( ( rule__XFeatureCall__Group_1__0 )? )\n // ../org.eclipse.xtext.idea.example.entities.ui/src-gen/org/eclipse/xtext/idea/example/entities/ui/contentassist/antlr/internal/InternalEntities.g:13396:1: ( rule__XFeatureCall__Group_1__0 )?\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getXFeatureCallAccess().getGroup_1()); \n }\n // ../org.eclipse.xtext.idea.example.entities.ui/src-gen/org/eclipse/xtext/idea/example/entities/ui/contentassist/antlr/internal/InternalEntities.g:13397:1: ( rule__XFeatureCall__Group_1__0 )?\n int alt96=2;\n int LA96_0 = input.LA(1);\n\n if ( (LA96_0==27) ) {\n alt96=1;\n }\n switch (alt96) {\n case 1 :\n // ../org.eclipse.xtext.idea.example.entities.ui/src-gen/org/eclipse/xtext/idea/example/entities/ui/contentassist/antlr/internal/InternalEntities.g:13397:2: rule__XFeatureCall__Group_1__0\n {\n pushFollow(FOLLOW_rule__XFeatureCall__Group_1__0_in_rule__XFeatureCall__Group__1__Impl27136);\n rule__XFeatureCall__Group_1__0();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n break;\n\n }\n\n if ( state.backtracking==0 ) {\n after(grammarAccess.getXFeatureCallAccess().getGroup_1()); \n }\n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "856eb87491dd1a496749d1898f430dc6", "score": "0.7882332", "text": "public final void rule__XFeatureCall__Group_2_2__0() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.yakindu.sct.generator.genmodel.ui/src-gen/org/yakindu/sct/generator/genmodel/ui/contentassist/antlr/internal/InternalSGen.g:10547:1: ( rule__XFeatureCall__Group_2_2__0__Impl rule__XFeatureCall__Group_2_2__1 )\n // ../org.yakindu.sct.generator.genmodel.ui/src-gen/org/yakindu/sct/generator/genmodel/ui/contentassist/antlr/internal/InternalSGen.g:10548:2: rule__XFeatureCall__Group_2_2__0__Impl rule__XFeatureCall__Group_2_2__1\n {\n pushFollow(FOLLOW_rule__XFeatureCall__Group_2_2__0__Impl_in_rule__XFeatureCall__Group_2_2__021295);\n rule__XFeatureCall__Group_2_2__0__Impl();\n\n state._fsp--;\n if (state.failed) return ;\n pushFollow(FOLLOW_rule__XFeatureCall__Group_2_2__1_in_rule__XFeatureCall__Group_2_2__021298);\n rule__XFeatureCall__Group_2_2__1();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "5cd7d019f7c1727cd6a0366eb490f250", "score": "0.7881522", "text": "public final void rule__XFeatureCall__Group_3_1_1__1__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.guicemodules.ui/src-gen/org/xtext/guicemodules/ui/contentassist/antlr/internal/InternalGuiceModules.g:12964:1: ( ( ( rule__XFeatureCall__Group_3_1_1_1__0 )* ) )\n // ../org.xtext.guicemodules.ui/src-gen/org/xtext/guicemodules/ui/contentassist/antlr/internal/InternalGuiceModules.g:12965:1: ( ( rule__XFeatureCall__Group_3_1_1_1__0 )* )\n {\n // ../org.xtext.guicemodules.ui/src-gen/org/xtext/guicemodules/ui/contentassist/antlr/internal/InternalGuiceModules.g:12965:1: ( ( rule__XFeatureCall__Group_3_1_1_1__0 )* )\n // ../org.xtext.guicemodules.ui/src-gen/org/xtext/guicemodules/ui/contentassist/antlr/internal/InternalGuiceModules.g:12966:1: ( rule__XFeatureCall__Group_3_1_1_1__0 )*\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getXFeatureCallAccess().getGroup_3_1_1_1()); \n }\n // ../org.xtext.guicemodules.ui/src-gen/org/xtext/guicemodules/ui/contentassist/antlr/internal/InternalGuiceModules.g:12967:1: ( rule__XFeatureCall__Group_3_1_1_1__0 )*\n loop94:\n do {\n int alt94=2;\n int LA94_0 = input.LA(1);\n\n if ( (LA94_0==51) ) {\n alt94=1;\n }\n\n\n switch (alt94) {\n \tcase 1 :\n \t // ../org.xtext.guicemodules.ui/src-gen/org/xtext/guicemodules/ui/contentassist/antlr/internal/InternalGuiceModules.g:12967:2: rule__XFeatureCall__Group_3_1_1_1__0\n \t {\n \t pushFollow(FOLLOW_rule__XFeatureCall__Group_3_1_1_1__0_in_rule__XFeatureCall__Group_3_1_1__1__Impl26229);\n \t rule__XFeatureCall__Group_3_1_1_1__0();\n\n \t state._fsp--;\n \t if (state.failed) return ;\n\n \t }\n \t break;\n\n \tdefault :\n \t break loop94;\n }\n } while (true);\n\n if ( state.backtracking==0 ) {\n after(grammarAccess.getXFeatureCallAccess().getGroup_3_1_1_1()); \n }\n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "2961ff0f44fe4f37db4cb94126fa3a50", "score": "0.7870133", "text": "public final void rule__XFeatureCall__Group_2__2() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.yakindu.sct.generator.genmodel.ui/src-gen/org/yakindu/sct/generator/genmodel/ui/contentassist/antlr/internal/InternalSGen.g:10480:1: ( rule__XFeatureCall__Group_2__2__Impl rule__XFeatureCall__Group_2__3 )\n // ../org.yakindu.sct.generator.genmodel.ui/src-gen/org/yakindu/sct/generator/genmodel/ui/contentassist/antlr/internal/InternalSGen.g:10481:2: rule__XFeatureCall__Group_2__2__Impl rule__XFeatureCall__Group_2__3\n {\n pushFollow(FOLLOW_rule__XFeatureCall__Group_2__2__Impl_in_rule__XFeatureCall__Group_2__221167);\n rule__XFeatureCall__Group_2__2__Impl();\n\n state._fsp--;\n if (state.failed) return ;\n pushFollow(FOLLOW_rule__XFeatureCall__Group_2__3_in_rule__XFeatureCall__Group_2__221170);\n rule__XFeatureCall__Group_2__3();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "26d733d58d8f60edc3cf8ffd8deafd7c", "score": "0.7868226", "text": "public final void rule__XFeatureCall__Group__2() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.yakindu.sct.generator.genmodel.ui/src-gen/org/yakindu/sct/generator/genmodel/ui/contentassist/antlr/internal/InternalSGen.g:10293:1: ( rule__XFeatureCall__Group__2__Impl rule__XFeatureCall__Group__3 )\n // ../org.yakindu.sct.generator.genmodel.ui/src-gen/org/yakindu/sct/generator/genmodel/ui/contentassist/antlr/internal/InternalSGen.g:10294:2: rule__XFeatureCall__Group__2__Impl rule__XFeatureCall__Group__3\n {\n pushFollow(FOLLOW_rule__XFeatureCall__Group__2__Impl_in_rule__XFeatureCall__Group__220793);\n rule__XFeatureCall__Group__2__Impl();\n\n state._fsp--;\n if (state.failed) return ;\n pushFollow(FOLLOW_rule__XFeatureCall__Group__3_in_rule__XFeatureCall__Group__220796);\n rule__XFeatureCall__Group__3();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "b6228b3d3d5bb2102870ff06c2b6a436", "score": "0.7865476", "text": "public final void rule__XFeatureCall__Group__0() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.guicemodules.ui/src-gen/org/xtext/guicemodules/ui/contentassist/antlr/internal/InternalGuiceModules.g:12484:1: ( rule__XFeatureCall__Group__0__Impl rule__XFeatureCall__Group__1 )\n // ../org.xtext.guicemodules.ui/src-gen/org/xtext/guicemodules/ui/contentassist/antlr/internal/InternalGuiceModules.g:12485:2: rule__XFeatureCall__Group__0__Impl rule__XFeatureCall__Group__1\n {\n pushFollow(FOLLOW_rule__XFeatureCall__Group__0__Impl_in_rule__XFeatureCall__Group__025272);\n rule__XFeatureCall__Group__0__Impl();\n\n state._fsp--;\n if (state.failed) return ;\n pushFollow(FOLLOW_rule__XFeatureCall__Group__1_in_rule__XFeatureCall__Group__025275);\n rule__XFeatureCall__Group__1();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "5d55cd778061c862155b879332729d70", "score": "0.78603834", "text": "public final void rule__XFeatureCall__Group_1_2__0__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.guicemodules.ui/src-gen/org/xtext/guicemodules/ui/contentassist/antlr/internal/InternalGuiceModules.g:12779:1: ( ( ',' ) )\n // ../org.xtext.guicemodules.ui/src-gen/org/xtext/guicemodules/ui/contentassist/antlr/internal/InternalGuiceModules.g:12780:1: ( ',' )\n {\n // ../org.xtext.guicemodules.ui/src-gen/org/xtext/guicemodules/ui/contentassist/antlr/internal/InternalGuiceModules.g:12780:1: ( ',' )\n // ../org.xtext.guicemodules.ui/src-gen/org/xtext/guicemodules/ui/contentassist/antlr/internal/InternalGuiceModules.g:12781:1: ','\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getXFeatureCallAccess().getCommaKeyword_1_2_0()); \n }\n match(input,51,FOLLOW_51_in_rule__XFeatureCall__Group_1_2__0__Impl25864); if (state.failed) return ;\n if ( state.backtracking==0 ) {\n after(grammarAccess.getXFeatureCallAccess().getCommaKeyword_1_2_0()); \n }\n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "bba46b0efffe69b9885dbe36db7db0f9", "score": "0.78429526", "text": "public final void rule__XFeatureCall__Group__1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.yakindu.sct.generator.genmodel.ui/src-gen/org/yakindu/sct/generator/genmodel/ui/contentassist/antlr/internal/InternalSGen.g:10264:1: ( rule__XFeatureCall__Group__1__Impl rule__XFeatureCall__Group__2 )\n // ../org.yakindu.sct.generator.genmodel.ui/src-gen/org/yakindu/sct/generator/genmodel/ui/contentassist/antlr/internal/InternalSGen.g:10265:2: rule__XFeatureCall__Group__1__Impl rule__XFeatureCall__Group__2\n {\n pushFollow(FOLLOW_rule__XFeatureCall__Group__1__Impl_in_rule__XFeatureCall__Group__120732);\n rule__XFeatureCall__Group__1__Impl();\n\n state._fsp--;\n if (state.failed) return ;\n pushFollow(FOLLOW_rule__XFeatureCall__Group__2_in_rule__XFeatureCall__Group__120735);\n rule__XFeatureCall__Group__2();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "69259faaa2a0f782a12a7fa3d0a8a59b", "score": "0.78415227", "text": "public final void rule__XFeatureCall__Group__0__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.guicemodules.ui/src-gen/org/xtext/guicemodules/ui/contentassist/antlr/internal/InternalGuiceModules.g:12496:1: ( ( () ) )\n // ../org.xtext.guicemodules.ui/src-gen/org/xtext/guicemodules/ui/contentassist/antlr/internal/InternalGuiceModules.g:12497:1: ( () )\n {\n // ../org.xtext.guicemodules.ui/src-gen/org/xtext/guicemodules/ui/contentassist/antlr/internal/InternalGuiceModules.g:12497:1: ( () )\n // ../org.xtext.guicemodules.ui/src-gen/org/xtext/guicemodules/ui/contentassist/antlr/internal/InternalGuiceModules.g:12498:1: ()\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getXFeatureCallAccess().getXFeatureCallAction_0()); \n }\n // ../org.xtext.guicemodules.ui/src-gen/org/xtext/guicemodules/ui/contentassist/antlr/internal/InternalGuiceModules.g:12499:1: ()\n // ../org.xtext.guicemodules.ui/src-gen/org/xtext/guicemodules/ui/contentassist/antlr/internal/InternalGuiceModules.g:12501:1: \n {\n }\n\n if ( state.backtracking==0 ) {\n after(grammarAccess.getXFeatureCallAccess().getXFeatureCallAction_0()); \n }\n\n }\n\n\n }\n\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "ca19f777e945d6efa2b5e76d61a23434", "score": "0.782843", "text": "public final void rule__XFeatureCall__Group_3__2() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.eclipse.xtext.idea.example.entities.ui/src-gen/org/eclipse/xtext/idea/example/entities/ui/contentassist/antlr/internal/InternalEntities.g:13755:1: ( rule__XFeatureCall__Group_3__2__Impl )\n // ../org.eclipse.xtext.idea.example.entities.ui/src-gen/org/eclipse/xtext/idea/example/entities/ui/contentassist/antlr/internal/InternalEntities.g:13756:2: rule__XFeatureCall__Group_3__2__Impl\n {\n pushFollow(FOLLOW_rule__XFeatureCall__Group_3__2__Impl_in_rule__XFeatureCall__Group_3__227850);\n rule__XFeatureCall__Group_3__2__Impl();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "270ccb217fcb4b603463082814d904c5", "score": "0.7822635", "text": "public final void rule__XFeatureCall__Group_3_1_1__1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.guicemodules.ui/src-gen/org/xtext/guicemodules/ui/contentassist/antlr/internal/InternalGuiceModules.g:12953:1: ( rule__XFeatureCall__Group_3_1_1__1__Impl )\n // ../org.xtext.guicemodules.ui/src-gen/org/xtext/guicemodules/ui/contentassist/antlr/internal/InternalGuiceModules.g:12954:2: rule__XFeatureCall__Group_3_1_1__1__Impl\n {\n pushFollow(FOLLOW_rule__XFeatureCall__Group_3_1_1__1__Impl_in_rule__XFeatureCall__Group_3_1_1__126202);\n rule__XFeatureCall__Group_3_1_1__1__Impl();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "9a3b6e9b8ee10d6d7c09175e78fe89ef", "score": "0.7820748", "text": "public final void rule__XMemberFeatureCall__Group_1_1_1__2__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.eclipse.xtext.idea.example.entities.ui/src-gen/org/eclipse/xtext/idea/example/entities/ui/contentassist/antlr/internal/InternalEntities.g:8347:1: ( ( ( rule__XMemberFeatureCall__Group_1_1_1_2__0 )* ) )\n // ../org.eclipse.xtext.idea.example.entities.ui/src-gen/org/eclipse/xtext/idea/example/entities/ui/contentassist/antlr/internal/InternalEntities.g:8348:1: ( ( rule__XMemberFeatureCall__Group_1_1_1_2__0 )* )\n {\n // ../org.eclipse.xtext.idea.example.entities.ui/src-gen/org/eclipse/xtext/idea/example/entities/ui/contentassist/antlr/internal/InternalEntities.g:8348:1: ( ( rule__XMemberFeatureCall__Group_1_1_1_2__0 )* )\n // ../org.eclipse.xtext.idea.example.entities.ui/src-gen/org/eclipse/xtext/idea/example/entities/ui/contentassist/antlr/internal/InternalEntities.g:8349:1: ( rule__XMemberFeatureCall__Group_1_1_1_2__0 )*\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getXMemberFeatureCallAccess().getGroup_1_1_1_2()); \n }\n // ../org.eclipse.xtext.idea.example.entities.ui/src-gen/org/eclipse/xtext/idea/example/entities/ui/contentassist/antlr/internal/InternalEntities.g:8350:1: ( rule__XMemberFeatureCall__Group_1_1_1_2__0 )*\n loop67:\n do {\n int alt67=2;\n int LA67_0 = input.LA(1);\n\n if ( (LA67_0==59) ) {\n alt67=1;\n }\n\n\n switch (alt67) {\n \tcase 1 :\n \t // ../org.eclipse.xtext.idea.example.entities.ui/src-gen/org/eclipse/xtext/idea/example/entities/ui/contentassist/antlr/internal/InternalEntities.g:8350:2: rule__XMemberFeatureCall__Group_1_1_1_2__0\n \t {\n \t pushFollow(FOLLOW_rule__XMemberFeatureCall__Group_1_1_1_2__0_in_rule__XMemberFeatureCall__Group_1_1_1__2__Impl17224);\n \t rule__XMemberFeatureCall__Group_1_1_1_2__0();\n\n \t state._fsp--;\n \t if (state.failed) return ;\n\n \t }\n \t break;\n\n \tdefault :\n \t break loop67;\n }\n } while (true);\n\n if ( state.backtracking==0 ) {\n after(grammarAccess.getXMemberFeatureCallAccess().getGroup_1_1_1_2()); \n }\n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "d2130aeabdfe8ab30cc3c42f860abf79", "score": "0.7813246", "text": "public final void rule__XFeatureCall__Group_3_1_1_1__1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.guicemodules.ui/src-gen/org/xtext/guicemodules/ui/contentassist/antlr/internal/InternalGuiceModules.g:13016:1: ( rule__XFeatureCall__Group_3_1_1_1__1__Impl )\n // ../org.xtext.guicemodules.ui/src-gen/org/xtext/guicemodules/ui/contentassist/antlr/internal/InternalGuiceModules.g:13017:2: rule__XFeatureCall__Group_3_1_1_1__1__Impl\n {\n pushFollow(FOLLOW_rule__XFeatureCall__Group_3_1_1_1__1__Impl_in_rule__XFeatureCall__Group_3_1_1_1__126326);\n rule__XFeatureCall__Group_3_1_1_1__1__Impl();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "233d696dc4a820ae5e8a8562dbc55de0", "score": "0.7790399", "text": "public final void rule__XMemberFeatureCall__Group_1_1_1_2__1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.guicemodules.ui/src-gen/org/xtext/guicemodules/ui/contentassist/antlr/internal/InternalGuiceModules.g:8251:1: ( rule__XMemberFeatureCall__Group_1_1_1_2__1__Impl )\n // ../org.xtext.guicemodules.ui/src-gen/org/xtext/guicemodules/ui/contentassist/antlr/internal/InternalGuiceModules.g:8252:2: rule__XMemberFeatureCall__Group_1_1_1_2__1__Impl\n {\n pushFollow(FOLLOW_rule__XMemberFeatureCall__Group_1_1_1_2__1__Impl_in_rule__XMemberFeatureCall__Group_1_1_1_2__116956);\n rule__XMemberFeatureCall__Group_1_1_1_2__1__Impl();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "e8e3dd3bce2c08c8b2e693589f88e183", "score": "0.7760129", "text": "public final void rule__XFeatureCall__Group_3_1_1_1__1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.eclipse.xtext.idea.example.entities.ui/src-gen/org/eclipse/xtext/idea/example/entities/ui/contentassist/antlr/internal/InternalEntities.g:13883:1: ( rule__XFeatureCall__Group_3_1_1_1__1__Impl )\n // ../org.eclipse.xtext.idea.example.entities.ui/src-gen/org/eclipse/xtext/idea/example/entities/ui/contentassist/antlr/internal/InternalEntities.g:13884:2: rule__XFeatureCall__Group_3_1_1_1__1__Impl\n {\n pushFollow(FOLLOW_rule__XFeatureCall__Group_3_1_1_1__1__Impl_in_rule__XFeatureCall__Group_3_1_1_1__128099);\n rule__XFeatureCall__Group_3_1_1_1__1__Impl();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "de6decb2087c2bbc2e7b11c55e85092c", "score": "0.77580297", "text": "public final void rule__XMemberFeatureCall__Group_1_1_1_2__1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.eclipse.xtext.idea.example.entities.ui/src-gen/org/eclipse/xtext/idea/example/entities/ui/contentassist/antlr/internal/InternalEntities.g:8433:1: ( rule__XMemberFeatureCall__Group_1_1_1_2__1__Impl )\n // ../org.eclipse.xtext.idea.example.entities.ui/src-gen/org/eclipse/xtext/idea/example/entities/ui/contentassist/antlr/internal/InternalEntities.g:8434:2: rule__XMemberFeatureCall__Group_1_1_1_2__1__Impl\n {\n pushFollow(FOLLOW_rule__XMemberFeatureCall__Group_1_1_1_2__1__Impl_in_rule__XMemberFeatureCall__Group_1_1_1_2__117384);\n rule__XMemberFeatureCall__Group_1_1_1_2__1__Impl();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "493341f926ef6be0d09e18ded30b9c1d", "score": "0.7753611", "text": "public final void rule__XFeatureCall__Group__0() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.eclipse.xtext.idea.example.entities.ui/src-gen/org/eclipse/xtext/idea/example/entities/ui/contentassist/antlr/internal/InternalEntities.g:13351:1: ( rule__XFeatureCall__Group__0__Impl rule__XFeatureCall__Group__1 )\n // ../org.eclipse.xtext.idea.example.entities.ui/src-gen/org/eclipse/xtext/idea/example/entities/ui/contentassist/antlr/internal/InternalEntities.g:13352:2: rule__XFeatureCall__Group__0__Impl rule__XFeatureCall__Group__1\n {\n pushFollow(FOLLOW_rule__XFeatureCall__Group__0__Impl_in_rule__XFeatureCall__Group__027045);\n rule__XFeatureCall__Group__0__Impl();\n\n state._fsp--;\n if (state.failed) return ;\n pushFollow(FOLLOW_rule__XFeatureCall__Group__1_in_rule__XFeatureCall__Group__027048);\n rule__XFeatureCall__Group__1();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "6a0a1deaa38d182a8bed8916f7dd1a2e", "score": "0.77518386", "text": "public final void rule__XFeatureCall__Group_3_1_1__1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.eclipse.xtext.idea.example.entities.ui/src-gen/org/eclipse/xtext/idea/example/entities/ui/contentassist/antlr/internal/InternalEntities.g:13820:1: ( rule__XFeatureCall__Group_3_1_1__1__Impl )\n // ../org.eclipse.xtext.idea.example.entities.ui/src-gen/org/eclipse/xtext/idea/example/entities/ui/contentassist/antlr/internal/InternalEntities.g:13821:2: rule__XFeatureCall__Group_3_1_1__1__Impl\n {\n pushFollow(FOLLOW_rule__XFeatureCall__Group_3_1_1__1__Impl_in_rule__XFeatureCall__Group_3_1_1__127975);\n rule__XFeatureCall__Group_3_1_1__1__Impl();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "19daa62326b194de911531ba44b31d6c", "score": "0.7743737", "text": "public final void rule__XFeatureCall__Group_1__3() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.guicemodules.ui/src-gen/org/xtext/guicemodules/ui/contentassist/antlr/internal/InternalGuiceModules.g:12729:1: ( rule__XFeatureCall__Group_1__3__Impl )\n // ../org.xtext.guicemodules.ui/src-gen/org/xtext/guicemodules/ui/contentassist/antlr/internal/InternalGuiceModules.g:12730:2: rule__XFeatureCall__Group_1__3__Impl\n {\n pushFollow(FOLLOW_rule__XFeatureCall__Group_1__3__Impl_in_rule__XFeatureCall__Group_1__325766);\n rule__XFeatureCall__Group_1__3__Impl();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "16f4170f077f489976847347b7f0c7ed", "score": "0.7734658", "text": "public final void rule__XMemberFeatureCall__Group_1_1__1__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.guicemodules.ui/src-gen/org/xtext/guicemodules/ui/contentassist/antlr/internal/InternalGuiceModules.g:7887:1: ( ( ( rule__XMemberFeatureCall__Group_1_1_1__0 )? ) )\n // ../org.xtext.guicemodules.ui/src-gen/org/xtext/guicemodules/ui/contentassist/antlr/internal/InternalGuiceModules.g:7888:1: ( ( rule__XMemberFeatureCall__Group_1_1_1__0 )? )\n {\n // ../org.xtext.guicemodules.ui/src-gen/org/xtext/guicemodules/ui/contentassist/antlr/internal/InternalGuiceModules.g:7888:1: ( ( rule__XMemberFeatureCall__Group_1_1_1__0 )? )\n // ../org.xtext.guicemodules.ui/src-gen/org/xtext/guicemodules/ui/contentassist/antlr/internal/InternalGuiceModules.g:7889:1: ( rule__XMemberFeatureCall__Group_1_1_1__0 )?\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getXMemberFeatureCallAccess().getGroup_1_1_1()); \n }\n // ../org.xtext.guicemodules.ui/src-gen/org/xtext/guicemodules/ui/contentassist/antlr/internal/InternalGuiceModules.g:7890:1: ( rule__XMemberFeatureCall__Group_1_1_1__0 )?\n int alt62=2;\n int LA62_0 = input.LA(1);\n\n if ( (LA62_0==25) ) {\n alt62=1;\n }\n switch (alt62) {\n case 1 :\n // ../org.xtext.guicemodules.ui/src-gen/org/xtext/guicemodules/ui/contentassist/antlr/internal/InternalGuiceModules.g:7890:2: rule__XMemberFeatureCall__Group_1_1_1__0\n {\n pushFollow(FOLLOW_rule__XMemberFeatureCall__Group_1_1_1__0_in_rule__XMemberFeatureCall__Group_1_1__1__Impl16243);\n rule__XMemberFeatureCall__Group_1_1_1__0();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n break;\n\n }\n\n if ( state.backtracking==0 ) {\n after(grammarAccess.getXMemberFeatureCallAccess().getGroup_1_1_1()); \n }\n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "b5357cf66c7e8cecc22d0201a6955122", "score": "0.77340543", "text": "public final void rule__XFeatureCall__Group_4__2() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.yakindu.sct.generator.genmodel.ui/src-gen/org/yakindu/sct/generator/genmodel/ui/contentassist/antlr/internal/InternalSGen.g:10668:1: ( rule__XFeatureCall__Group_4__2__Impl )\n // ../org.yakindu.sct.generator.genmodel.ui/src-gen/org/yakindu/sct/generator/genmodel/ui/contentassist/antlr/internal/InternalSGen.g:10669:2: rule__XFeatureCall__Group_4__2__Impl\n {\n pushFollow(FOLLOW_rule__XFeatureCall__Group_4__2__Impl_in_rule__XFeatureCall__Group_4__221539);\n rule__XFeatureCall__Group_4__2__Impl();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "70c7fa7063b31e54fdfebe8807b76c85", "score": "0.7706733", "text": "public final void rule__XFeatureCall__Group_2__3() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.yakindu.sct.generator.genmodel.ui/src-gen/org/yakindu/sct/generator/genmodel/ui/contentassist/antlr/internal/InternalSGen.g:10509:1: ( rule__XFeatureCall__Group_2__3__Impl )\n // ../org.yakindu.sct.generator.genmodel.ui/src-gen/org/yakindu/sct/generator/genmodel/ui/contentassist/antlr/internal/InternalSGen.g:10510:2: rule__XFeatureCall__Group_2__3__Impl\n {\n pushFollow(FOLLOW_rule__XFeatureCall__Group_2__3__Impl_in_rule__XFeatureCall__Group_2__321228);\n rule__XFeatureCall__Group_2__3__Impl();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "5394df550c332769480eabe2052eb6fa", "score": "0.7668676", "text": "public final void rule__XMemberFeatureCall__Group_1_1_0__0__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.guicemodules.ui/src-gen/org/xtext/guicemodules/ui/contentassist/antlr/internal/InternalGuiceModules.g:8011:1: ( ( ( rule__XMemberFeatureCall__Group_1_1_0_0__0 ) ) )\n // ../org.xtext.guicemodules.ui/src-gen/org/xtext/guicemodules/ui/contentassist/antlr/internal/InternalGuiceModules.g:8012:1: ( ( rule__XMemberFeatureCall__Group_1_1_0_0__0 ) )\n {\n // ../org.xtext.guicemodules.ui/src-gen/org/xtext/guicemodules/ui/contentassist/antlr/internal/InternalGuiceModules.g:8012:1: ( ( rule__XMemberFeatureCall__Group_1_1_0_0__0 ) )\n // ../org.xtext.guicemodules.ui/src-gen/org/xtext/guicemodules/ui/contentassist/antlr/internal/InternalGuiceModules.g:8013:1: ( rule__XMemberFeatureCall__Group_1_1_0_0__0 )\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getXMemberFeatureCallAccess().getGroup_1_1_0_0()); \n }\n // ../org.xtext.guicemodules.ui/src-gen/org/xtext/guicemodules/ui/contentassist/antlr/internal/InternalGuiceModules.g:8014:1: ( rule__XMemberFeatureCall__Group_1_1_0_0__0 )\n // ../org.xtext.guicemodules.ui/src-gen/org/xtext/guicemodules/ui/contentassist/antlr/internal/InternalGuiceModules.g:8014:2: rule__XMemberFeatureCall__Group_1_1_0_0__0\n {\n pushFollow(FOLLOW_rule__XMemberFeatureCall__Group_1_1_0_0__0_in_rule__XMemberFeatureCall__Group_1_1_0__0__Impl16490);\n rule__XMemberFeatureCall__Group_1_1_0_0__0();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n if ( state.backtracking==0 ) {\n after(grammarAccess.getXMemberFeatureCallAccess().getGroup_1_1_0_0()); \n }\n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "d2c4c67657bdd2a22798bdfb2b13f5a7", "score": "0.76614577", "text": "public final void rule__XFeatureCall__Group_1__3() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.eclipse.xtext.idea.example.entities.ui/src-gen/org/eclipse/xtext/idea/example/entities/ui/contentassist/antlr/internal/InternalEntities.g:13596:1: ( rule__XFeatureCall__Group_1__3__Impl )\n // ../org.eclipse.xtext.idea.example.entities.ui/src-gen/org/eclipse/xtext/idea/example/entities/ui/contentassist/antlr/internal/InternalEntities.g:13597:2: rule__XFeatureCall__Group_1__3__Impl\n {\n pushFollow(FOLLOW_rule__XFeatureCall__Group_1__3__Impl_in_rule__XFeatureCall__Group_1__327539);\n rule__XFeatureCall__Group_1__3__Impl();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "109d255f261dc4a47301ec16e9213b6d", "score": "0.76437706", "text": "public final void rule__XMemberFeatureCall__Group_1_1_3__2() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.guicemodules.ui/src-gen/org/xtext/guicemodules/ui/contentassist/antlr/internal/InternalGuiceModules.g:8341:1: ( rule__XMemberFeatureCall__Group_1_1_3__2__Impl )\n // ../org.xtext.guicemodules.ui/src-gen/org/xtext/guicemodules/ui/contentassist/antlr/internal/InternalGuiceModules.g:8342:2: rule__XMemberFeatureCall__Group_1_1_3__2__Impl\n {\n pushFollow(FOLLOW_rule__XMemberFeatureCall__Group_1_1_3__2__Impl_in_rule__XMemberFeatureCall__Group_1_1_3__217138);\n rule__XMemberFeatureCall__Group_1_1_3__2__Impl();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "acbee3f6ab39d5faa02818bce009f7a7", "score": "0.76419276", "text": "public final void rule__XMemberFeatureCall__Group_1_1__0__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.guicemodules.ui/src-gen/org/xtext/guicemodules/ui/contentassist/antlr/internal/InternalGuiceModules.g:7858:1: ( ( ( rule__XMemberFeatureCall__Group_1_1_0__0 ) ) )\n // ../org.xtext.guicemodules.ui/src-gen/org/xtext/guicemodules/ui/contentassist/antlr/internal/InternalGuiceModules.g:7859:1: ( ( rule__XMemberFeatureCall__Group_1_1_0__0 ) )\n {\n // ../org.xtext.guicemodules.ui/src-gen/org/xtext/guicemodules/ui/contentassist/antlr/internal/InternalGuiceModules.g:7859:1: ( ( rule__XMemberFeatureCall__Group_1_1_0__0 ) )\n // ../org.xtext.guicemodules.ui/src-gen/org/xtext/guicemodules/ui/contentassist/antlr/internal/InternalGuiceModules.g:7860:1: ( rule__XMemberFeatureCall__Group_1_1_0__0 )\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getXMemberFeatureCallAccess().getGroup_1_1_0()); \n }\n // ../org.xtext.guicemodules.ui/src-gen/org/xtext/guicemodules/ui/contentassist/antlr/internal/InternalGuiceModules.g:7861:1: ( rule__XMemberFeatureCall__Group_1_1_0__0 )\n // ../org.xtext.guicemodules.ui/src-gen/org/xtext/guicemodules/ui/contentassist/antlr/internal/InternalGuiceModules.g:7861:2: rule__XMemberFeatureCall__Group_1_1_0__0\n {\n pushFollow(FOLLOW_rule__XMemberFeatureCall__Group_1_1_0__0_in_rule__XMemberFeatureCall__Group_1_1__0__Impl16183);\n rule__XMemberFeatureCall__Group_1_1_0__0();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n if ( state.backtracking==0 ) {\n after(grammarAccess.getXMemberFeatureCallAccess().getGroup_1_1_0()); \n }\n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "c0a472133c4c1a8092679dbfe99da0a5", "score": "0.7632885", "text": "public final void rule__XFeatureCall__Group_3_1_1__0() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.guicemodules.ui/src-gen/org/xtext/guicemodules/ui/contentassist/antlr/internal/InternalGuiceModules.g:12924:1: ( rule__XFeatureCall__Group_3_1_1__0__Impl rule__XFeatureCall__Group_3_1_1__1 )\n // ../org.xtext.guicemodules.ui/src-gen/org/xtext/guicemodules/ui/contentassist/antlr/internal/InternalGuiceModules.g:12925:2: rule__XFeatureCall__Group_3_1_1__0__Impl rule__XFeatureCall__Group_3_1_1__1\n {\n pushFollow(FOLLOW_rule__XFeatureCall__Group_3_1_1__0__Impl_in_rule__XFeatureCall__Group_3_1_1__026142);\n rule__XFeatureCall__Group_3_1_1__0__Impl();\n\n state._fsp--;\n if (state.failed) return ;\n pushFollow(FOLLOW_rule__XFeatureCall__Group_3_1_1__1_in_rule__XFeatureCall__Group_3_1_1__026145);\n rule__XFeatureCall__Group_3_1_1__1();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "70827faded298b7688b6b4fe5469d24d", "score": "0.7626156", "text": "public final void rule__XMemberFeatureCall__Group_1_0__0__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.guicemodules.ui/src-gen/org/xtext/guicemodules/ui/contentassist/antlr/internal/InternalGuiceModules.g:7642:1: ( ( ( rule__XMemberFeatureCall__Group_1_0_0__0 ) ) )\n // ../org.xtext.guicemodules.ui/src-gen/org/xtext/guicemodules/ui/contentassist/antlr/internal/InternalGuiceModules.g:7643:1: ( ( rule__XMemberFeatureCall__Group_1_0_0__0 ) )\n {\n // ../org.xtext.guicemodules.ui/src-gen/org/xtext/guicemodules/ui/contentassist/antlr/internal/InternalGuiceModules.g:7643:1: ( ( rule__XMemberFeatureCall__Group_1_0_0__0 ) )\n // ../org.xtext.guicemodules.ui/src-gen/org/xtext/guicemodules/ui/contentassist/antlr/internal/InternalGuiceModules.g:7644:1: ( rule__XMemberFeatureCall__Group_1_0_0__0 )\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getXMemberFeatureCallAccess().getGroup_1_0_0()); \n }\n // ../org.xtext.guicemodules.ui/src-gen/org/xtext/guicemodules/ui/contentassist/antlr/internal/InternalGuiceModules.g:7645:1: ( rule__XMemberFeatureCall__Group_1_0_0__0 )\n // ../org.xtext.guicemodules.ui/src-gen/org/xtext/guicemodules/ui/contentassist/antlr/internal/InternalGuiceModules.g:7645:2: rule__XMemberFeatureCall__Group_1_0_0__0\n {\n pushFollow(FOLLOW_rule__XMemberFeatureCall__Group_1_0_0__0_in_rule__XMemberFeatureCall__Group_1_0__0__Impl15758);\n rule__XMemberFeatureCall__Group_1_0_0__0();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n if ( state.backtracking==0 ) {\n after(grammarAccess.getXMemberFeatureCallAccess().getGroup_1_0_0()); \n }\n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "906431d8338157786a9787c404285422", "score": "0.7622866", "text": "public final void rule__XMemberFeatureCall__Group_1_1_3__2() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.eclipse.xtext.idea.example.entities.ui/src-gen/org/eclipse/xtext/idea/example/entities/ui/contentassist/antlr/internal/InternalEntities.g:8523:1: ( rule__XMemberFeatureCall__Group_1_1_3__2__Impl )\n // ../org.eclipse.xtext.idea.example.entities.ui/src-gen/org/eclipse/xtext/idea/example/entities/ui/contentassist/antlr/internal/InternalEntities.g:8524:2: rule__XMemberFeatureCall__Group_1_1_3__2__Impl\n {\n pushFollow(FOLLOW_rule__XMemberFeatureCall__Group_1_1_3__2__Impl_in_rule__XMemberFeatureCall__Group_1_1_3__217566);\n rule__XMemberFeatureCall__Group_1_1_3__2__Impl();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "f351f11552b4a4a1a4c12b5ff34df43d", "score": "0.7617106", "text": "public final void rule__XFeatureCall__Group__4() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.guicemodules.ui/src-gen/org/xtext/guicemodules/ui/contentassist/antlr/internal/InternalGuiceModules.g:12602:1: ( rule__XFeatureCall__Group__4__Impl )\n // ../org.xtext.guicemodules.ui/src-gen/org/xtext/guicemodules/ui/contentassist/antlr/internal/InternalGuiceModules.g:12603:2: rule__XFeatureCall__Group__4__Impl\n {\n pushFollow(FOLLOW_rule__XFeatureCall__Group__4__Impl_in_rule__XFeatureCall__Group__425515);\n rule__XFeatureCall__Group__4__Impl();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "3f573490fc1ce1526df860ad615be59a", "score": "0.76072985", "text": "public final void rule__XMemberFeatureCall__Group_1_1__2() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.guicemodules.ui/src-gen/org/xtext/guicemodules/ui/contentassist/antlr/internal/InternalGuiceModules.g:7904:1: ( rule__XMemberFeatureCall__Group_1_1__2__Impl rule__XMemberFeatureCall__Group_1_1__3 )\n // ../org.xtext.guicemodules.ui/src-gen/org/xtext/guicemodules/ui/contentassist/antlr/internal/InternalGuiceModules.g:7905:2: rule__XMemberFeatureCall__Group_1_1__2__Impl rule__XMemberFeatureCall__Group_1_1__3\n {\n pushFollow(FOLLOW_rule__XMemberFeatureCall__Group_1_1__2__Impl_in_rule__XMemberFeatureCall__Group_1_1__216274);\n rule__XMemberFeatureCall__Group_1_1__2__Impl();\n\n state._fsp--;\n if (state.failed) return ;\n pushFollow(FOLLOW_rule__XMemberFeatureCall__Group_1_1__3_in_rule__XMemberFeatureCall__Group_1_1__216277);\n rule__XMemberFeatureCall__Group_1_1__3();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "e6e155108965f887459783bd401616bf", "score": "0.7605041", "text": "public final void rule__XFeatureCall__Group_3__2__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.guicemodules.ui/src-gen/org/xtext/guicemodules/ui/contentassist/antlr/internal/InternalGuiceModules.g:12899:1: ( ( ')' ) )\n // ../org.xtext.guicemodules.ui/src-gen/org/xtext/guicemodules/ui/contentassist/antlr/internal/InternalGuiceModules.g:12900:1: ( ')' )\n {\n // ../org.xtext.guicemodules.ui/src-gen/org/xtext/guicemodules/ui/contentassist/antlr/internal/InternalGuiceModules.g:12900:1: ( ')' )\n // ../org.xtext.guicemodules.ui/src-gen/org/xtext/guicemodules/ui/contentassist/antlr/internal/InternalGuiceModules.g:12901:1: ')'\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getXFeatureCallAccess().getRightParenthesisKeyword_3_2()); \n }\n match(input,57,FOLLOW_57_in_rule__XFeatureCall__Group_3__2__Impl26105); if (state.failed) return ;\n if ( state.backtracking==0 ) {\n after(grammarAccess.getXFeatureCallAccess().getRightParenthesisKeyword_3_2()); \n }\n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "7befeafa196d495823c782127430f740", "score": "0.7601825", "text": "public final void rule__XMemberFeatureCall__Group_1_0_0_0__2() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.guicemodules.ui/src-gen/org/xtext/guicemodules/ui/contentassist/antlr/internal/InternalGuiceModules.g:7781:1: ( rule__XMemberFeatureCall__Group_1_0_0_0__2__Impl rule__XMemberFeatureCall__Group_1_0_0_0__3 )\n // ../org.xtext.guicemodules.ui/src-gen/org/xtext/guicemodules/ui/contentassist/antlr/internal/InternalGuiceModules.g:7782:2: rule__XMemberFeatureCall__Group_1_0_0_0__2__Impl rule__XMemberFeatureCall__Group_1_0_0_0__3\n {\n pushFollow(FOLLOW_rule__XMemberFeatureCall__Group_1_0_0_0__2__Impl_in_rule__XMemberFeatureCall__Group_1_0_0_0__216029);\n rule__XMemberFeatureCall__Group_1_0_0_0__2__Impl();\n\n state._fsp--;\n if (state.failed) return ;\n pushFollow(FOLLOW_rule__XMemberFeatureCall__Group_1_0_0_0__3_in_rule__XMemberFeatureCall__Group_1_0_0_0__216032);\n rule__XMemberFeatureCall__Group_1_0_0_0__3();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "1676e5f08c603990383c477f8be4ff0f", "score": "0.7601487", "text": "public final void rule__XMemberFeatureCall__Group_1_0_0_0__2() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.eclipse.xtext.idea.example.entities.ui/src-gen/org/eclipse/xtext/idea/example/entities/ui/contentassist/antlr/internal/InternalEntities.g:7963:1: ( rule__XMemberFeatureCall__Group_1_0_0_0__2__Impl rule__XMemberFeatureCall__Group_1_0_0_0__3 )\n // ../org.eclipse.xtext.idea.example.entities.ui/src-gen/org/eclipse/xtext/idea/example/entities/ui/contentassist/antlr/internal/InternalEntities.g:7964:2: rule__XMemberFeatureCall__Group_1_0_0_0__2__Impl rule__XMemberFeatureCall__Group_1_0_0_0__3\n {\n pushFollow(FOLLOW_rule__XMemberFeatureCall__Group_1_0_0_0__2__Impl_in_rule__XMemberFeatureCall__Group_1_0_0_0__216457);\n rule__XMemberFeatureCall__Group_1_0_0_0__2__Impl();\n\n state._fsp--;\n if (state.failed) return ;\n pushFollow(FOLLOW_rule__XMemberFeatureCall__Group_1_0_0_0__3_in_rule__XMemberFeatureCall__Group_1_0_0_0__216460);\n rule__XMemberFeatureCall__Group_1_0_0_0__3();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "0d5176787916e77c33f442a054071fc2", "score": "0.76014084", "text": "public final void rule__XMemberFeatureCall__Group_1_1_1_2__0() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.eclipse.xtext.idea.example.entities.ui/src-gen/org/eclipse/xtext/idea/example/entities/ui/contentassist/antlr/internal/InternalEntities.g:8402:1: ( rule__XMemberFeatureCall__Group_1_1_1_2__0__Impl rule__XMemberFeatureCall__Group_1_1_1_2__1 )\n // ../org.eclipse.xtext.idea.example.entities.ui/src-gen/org/eclipse/xtext/idea/example/entities/ui/contentassist/antlr/internal/InternalEntities.g:8403:2: rule__XMemberFeatureCall__Group_1_1_1_2__0__Impl rule__XMemberFeatureCall__Group_1_1_1_2__1\n {\n pushFollow(FOLLOW_rule__XMemberFeatureCall__Group_1_1_1_2__0__Impl_in_rule__XMemberFeatureCall__Group_1_1_1_2__017322);\n rule__XMemberFeatureCall__Group_1_1_1_2__0__Impl();\n\n state._fsp--;\n if (state.failed) return ;\n pushFollow(FOLLOW_rule__XMemberFeatureCall__Group_1_1_1_2__1_in_rule__XMemberFeatureCall__Group_1_1_1_2__017325);\n rule__XMemberFeatureCall__Group_1_1_1_2__1();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "6fa82cf6ff6cde0686e575d38650f946", "score": "0.75914085", "text": "public final void rule__XMemberFeatureCall__Group_1_1_1_2__0() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.guicemodules.ui/src-gen/org/xtext/guicemodules/ui/contentassist/antlr/internal/InternalGuiceModules.g:8220:1: ( rule__XMemberFeatureCall__Group_1_1_1_2__0__Impl rule__XMemberFeatureCall__Group_1_1_1_2__1 )\n // ../org.xtext.guicemodules.ui/src-gen/org/xtext/guicemodules/ui/contentassist/antlr/internal/InternalGuiceModules.g:8221:2: rule__XMemberFeatureCall__Group_1_1_1_2__0__Impl rule__XMemberFeatureCall__Group_1_1_1_2__1\n {\n pushFollow(FOLLOW_rule__XMemberFeatureCall__Group_1_1_1_2__0__Impl_in_rule__XMemberFeatureCall__Group_1_1_1_2__016894);\n rule__XMemberFeatureCall__Group_1_1_1_2__0__Impl();\n\n state._fsp--;\n if (state.failed) return ;\n pushFollow(FOLLOW_rule__XMemberFeatureCall__Group_1_1_1_2__1_in_rule__XMemberFeatureCall__Group_1_1_1_2__016897);\n rule__XMemberFeatureCall__Group_1_1_1_2__1();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "de266b3a67206c5abf0ca4bd57a1d5ed", "score": "0.7589986", "text": "public final void rule__XMemberFeatureCall__Group_1_0_0__0__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.guicemodules.ui/src-gen/org/xtext/guicemodules/ui/contentassist/antlr/internal/InternalGuiceModules.g:7702:1: ( ( ( rule__XMemberFeatureCall__Group_1_0_0_0__0 ) ) )\n // ../org.xtext.guicemodules.ui/src-gen/org/xtext/guicemodules/ui/contentassist/antlr/internal/InternalGuiceModules.g:7703:1: ( ( rule__XMemberFeatureCall__Group_1_0_0_0__0 ) )\n {\n // ../org.xtext.guicemodules.ui/src-gen/org/xtext/guicemodules/ui/contentassist/antlr/internal/InternalGuiceModules.g:7703:1: ( ( rule__XMemberFeatureCall__Group_1_0_0_0__0 ) )\n // ../org.xtext.guicemodules.ui/src-gen/org/xtext/guicemodules/ui/contentassist/antlr/internal/InternalGuiceModules.g:7704:1: ( rule__XMemberFeatureCall__Group_1_0_0_0__0 )\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getXMemberFeatureCallAccess().getGroup_1_0_0_0()); \n }\n // ../org.xtext.guicemodules.ui/src-gen/org/xtext/guicemodules/ui/contentassist/antlr/internal/InternalGuiceModules.g:7705:1: ( rule__XMemberFeatureCall__Group_1_0_0_0__0 )\n // ../org.xtext.guicemodules.ui/src-gen/org/xtext/guicemodules/ui/contentassist/antlr/internal/InternalGuiceModules.g:7705:2: rule__XMemberFeatureCall__Group_1_0_0_0__0\n {\n pushFollow(FOLLOW_rule__XMemberFeatureCall__Group_1_0_0_0__0_in_rule__XMemberFeatureCall__Group_1_0_0__0__Impl15876);\n rule__XMemberFeatureCall__Group_1_0_0_0__0();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n if ( state.backtracking==0 ) {\n after(grammarAccess.getXMemberFeatureCallAccess().getGroup_1_0_0_0()); \n }\n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "b77b731396b523d90a3ffbb328555f7c", "score": "0.7584375", "text": "public final void rule__XMemberFeatureCall__Group_1_1_1__2() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.guicemodules.ui/src-gen/org/xtext/guicemodules/ui/contentassist/antlr/internal/InternalGuiceModules.g:8153:1: ( rule__XMemberFeatureCall__Group_1_1_1__2__Impl rule__XMemberFeatureCall__Group_1_1_1__3 )\n // ../org.xtext.guicemodules.ui/src-gen/org/xtext/guicemodules/ui/contentassist/antlr/internal/InternalGuiceModules.g:8154:2: rule__XMemberFeatureCall__Group_1_1_1__2__Impl rule__XMemberFeatureCall__Group_1_1_1__3\n {\n pushFollow(FOLLOW_rule__XMemberFeatureCall__Group_1_1_1__2__Impl_in_rule__XMemberFeatureCall__Group_1_1_1__216766);\n rule__XMemberFeatureCall__Group_1_1_1__2__Impl();\n\n state._fsp--;\n if (state.failed) return ;\n pushFollow(FOLLOW_rule__XMemberFeatureCall__Group_1_1_1__3_in_rule__XMemberFeatureCall__Group_1_1_1__216769);\n rule__XMemberFeatureCall__Group_1_1_1__3();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "57bbfac7f2202c376ead9d9e3762767b", "score": "0.7582924", "text": "public final void rule__XFeatureCall__Group_3_1_1_1__0() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.guicemodules.ui/src-gen/org/xtext/guicemodules/ui/contentassist/antlr/internal/InternalGuiceModules.g:12985:1: ( rule__XFeatureCall__Group_3_1_1_1__0__Impl rule__XFeatureCall__Group_3_1_1_1__1 )\n // ../org.xtext.guicemodules.ui/src-gen/org/xtext/guicemodules/ui/contentassist/antlr/internal/InternalGuiceModules.g:12986:2: rule__XFeatureCall__Group_3_1_1_1__0__Impl rule__XFeatureCall__Group_3_1_1_1__1\n {\n pushFollow(FOLLOW_rule__XFeatureCall__Group_3_1_1_1__0__Impl_in_rule__XFeatureCall__Group_3_1_1_1__026264);\n rule__XFeatureCall__Group_3_1_1_1__0__Impl();\n\n state._fsp--;\n if (state.failed) return ;\n pushFollow(FOLLOW_rule__XFeatureCall__Group_3_1_1_1__1_in_rule__XFeatureCall__Group_3_1_1_1__026267);\n rule__XFeatureCall__Group_3_1_1_1__1();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "32dc54262669ae0ff78c2ef61ca57a47", "score": "0.7573482", "text": "public final void rule__XMemberFeatureCall__Group_1_1__2() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.eclipse.xtext.idea.example.entities.ui/src-gen/org/eclipse/xtext/idea/example/entities/ui/contentassist/antlr/internal/InternalEntities.g:8086:1: ( rule__XMemberFeatureCall__Group_1_1__2__Impl rule__XMemberFeatureCall__Group_1_1__3 )\n // ../org.eclipse.xtext.idea.example.entities.ui/src-gen/org/eclipse/xtext/idea/example/entities/ui/contentassist/antlr/internal/InternalEntities.g:8087:2: rule__XMemberFeatureCall__Group_1_1__2__Impl rule__XMemberFeatureCall__Group_1_1__3\n {\n pushFollow(FOLLOW_rule__XMemberFeatureCall__Group_1_1__2__Impl_in_rule__XMemberFeatureCall__Group_1_1__216702);\n rule__XMemberFeatureCall__Group_1_1__2__Impl();\n\n state._fsp--;\n if (state.failed) return ;\n pushFollow(FOLLOW_rule__XMemberFeatureCall__Group_1_1__3_in_rule__XMemberFeatureCall__Group_1_1__216705);\n rule__XMemberFeatureCall__Group_1_1__3();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "90de3f194394270cbd0821af4e91b010", "score": "0.757348", "text": "public final void rule__XMemberFeatureCall__Group_1_1__0__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.eclipse.xtext.idea.example.entities.ui/src-gen/org/eclipse/xtext/idea/example/entities/ui/contentassist/antlr/internal/InternalEntities.g:8040:1: ( ( ( rule__XMemberFeatureCall__Group_1_1_0__0 ) ) )\n // ../org.eclipse.xtext.idea.example.entities.ui/src-gen/org/eclipse/xtext/idea/example/entities/ui/contentassist/antlr/internal/InternalEntities.g:8041:1: ( ( rule__XMemberFeatureCall__Group_1_1_0__0 ) )\n {\n // ../org.eclipse.xtext.idea.example.entities.ui/src-gen/org/eclipse/xtext/idea/example/entities/ui/contentassist/antlr/internal/InternalEntities.g:8041:1: ( ( rule__XMemberFeatureCall__Group_1_1_0__0 ) )\n // ../org.eclipse.xtext.idea.example.entities.ui/src-gen/org/eclipse/xtext/idea/example/entities/ui/contentassist/antlr/internal/InternalEntities.g:8042:1: ( rule__XMemberFeatureCall__Group_1_1_0__0 )\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getXMemberFeatureCallAccess().getGroup_1_1_0()); \n }\n // ../org.eclipse.xtext.idea.example.entities.ui/src-gen/org/eclipse/xtext/idea/example/entities/ui/contentassist/antlr/internal/InternalEntities.g:8043:1: ( rule__XMemberFeatureCall__Group_1_1_0__0 )\n // ../org.eclipse.xtext.idea.example.entities.ui/src-gen/org/eclipse/xtext/idea/example/entities/ui/contentassist/antlr/internal/InternalEntities.g:8043:2: rule__XMemberFeatureCall__Group_1_1_0__0\n {\n pushFollow(FOLLOW_rule__XMemberFeatureCall__Group_1_1_0__0_in_rule__XMemberFeatureCall__Group_1_1__0__Impl16611);\n rule__XMemberFeatureCall__Group_1_1_0__0();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n if ( state.backtracking==0 ) {\n after(grammarAccess.getXMemberFeatureCallAccess().getGroup_1_1_0()); \n }\n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "7a9643d19451f144c47eaf41f1c06899", "score": "0.7571353", "text": "public final void rule__XFeatureCall__Group_3_1_1__1__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.eclipse.xtext.idea.example.entities.ui/src-gen/org/eclipse/xtext/idea/example/entities/ui/contentassist/antlr/internal/InternalEntities.g:13831:1: ( ( ( rule__XFeatureCall__Group_3_1_1_1__0 )* ) )\n // ../org.eclipse.xtext.idea.example.entities.ui/src-gen/org/eclipse/xtext/idea/example/entities/ui/contentassist/antlr/internal/InternalEntities.g:13832:1: ( ( rule__XFeatureCall__Group_3_1_1_1__0 )* )\n {\n // ../org.eclipse.xtext.idea.example.entities.ui/src-gen/org/eclipse/xtext/idea/example/entities/ui/contentassist/antlr/internal/InternalEntities.g:13832:1: ( ( rule__XFeatureCall__Group_3_1_1_1__0 )* )\n // ../org.eclipse.xtext.idea.example.entities.ui/src-gen/org/eclipse/xtext/idea/example/entities/ui/contentassist/antlr/internal/InternalEntities.g:13833:1: ( rule__XFeatureCall__Group_3_1_1_1__0 )*\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getXFeatureCallAccess().getGroup_3_1_1_1()); \n }\n // ../org.eclipse.xtext.idea.example.entities.ui/src-gen/org/eclipse/xtext/idea/example/entities/ui/contentassist/antlr/internal/InternalEntities.g:13834:1: ( rule__XFeatureCall__Group_3_1_1_1__0 )*\n loop101:\n do {\n int alt101=2;\n int LA101_0 = input.LA(1);\n\n if ( (LA101_0==59) ) {\n alt101=1;\n }\n\n\n switch (alt101) {\n \tcase 1 :\n \t // ../org.eclipse.xtext.idea.example.entities.ui/src-gen/org/eclipse/xtext/idea/example/entities/ui/contentassist/antlr/internal/InternalEntities.g:13834:2: rule__XFeatureCall__Group_3_1_1_1__0\n \t {\n \t pushFollow(FOLLOW_rule__XFeatureCall__Group_3_1_1_1__0_in_rule__XFeatureCall__Group_3_1_1__1__Impl28002);\n \t rule__XFeatureCall__Group_3_1_1_1__0();\n\n \t state._fsp--;\n \t if (state.failed) return ;\n\n \t }\n \t break;\n\n \tdefault :\n \t break loop101;\n }\n } while (true);\n\n if ( state.backtracking==0 ) {\n after(grammarAccess.getXFeatureCallAccess().getGroup_3_1_1_1()); \n }\n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "4be3225603046a140ce3c1359b55ed3e", "score": "0.75624037", "text": "public final void rule__XMemberFeatureCall__Group_1_1_3_1_1__1__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.guicemodules.ui/src-gen/org/xtext/guicemodules/ui/contentassist/antlr/internal/InternalGuiceModules.g:8417:1: ( ( ( rule__XMemberFeatureCall__Group_1_1_3_1_1_1__0 )* ) )\n // ../org.xtext.guicemodules.ui/src-gen/org/xtext/guicemodules/ui/contentassist/antlr/internal/InternalGuiceModules.g:8418:1: ( ( rule__XMemberFeatureCall__Group_1_1_3_1_1_1__0 )* )\n {\n // ../org.xtext.guicemodules.ui/src-gen/org/xtext/guicemodules/ui/contentassist/antlr/internal/InternalGuiceModules.g:8418:1: ( ( rule__XMemberFeatureCall__Group_1_1_3_1_1_1__0 )* )\n // ../org.xtext.guicemodules.ui/src-gen/org/xtext/guicemodules/ui/contentassist/antlr/internal/InternalGuiceModules.g:8419:1: ( rule__XMemberFeatureCall__Group_1_1_3_1_1_1__0 )*\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getXMemberFeatureCallAccess().getGroup_1_1_3_1_1_1()); \n }\n // ../org.xtext.guicemodules.ui/src-gen/org/xtext/guicemodules/ui/contentassist/antlr/internal/InternalGuiceModules.g:8420:1: ( rule__XMemberFeatureCall__Group_1_1_3_1_1_1__0 )*\n loop67:\n do {\n int alt67=2;\n int LA67_0 = input.LA(1);\n\n if ( (LA67_0==51) ) {\n alt67=1;\n }\n\n\n switch (alt67) {\n \tcase 1 :\n \t // ../org.xtext.guicemodules.ui/src-gen/org/xtext/guicemodules/ui/contentassist/antlr/internal/InternalGuiceModules.g:8420:2: rule__XMemberFeatureCall__Group_1_1_3_1_1_1__0\n \t {\n \t pushFollow(FOLLOW_rule__XMemberFeatureCall__Group_1_1_3_1_1_1__0_in_rule__XMemberFeatureCall__Group_1_1_3_1_1__1__Impl17290);\n \t rule__XMemberFeatureCall__Group_1_1_3_1_1_1__0();\n\n \t state._fsp--;\n \t if (state.failed) return ;\n\n \t }\n \t break;\n\n \tdefault :\n \t break loop67;\n }\n } while (true);\n\n if ( state.backtracking==0 ) {\n after(grammarAccess.getXMemberFeatureCallAccess().getGroup_1_1_3_1_1_1()); \n }\n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "3ae2ccd7fabc8db3fd334cf29637eb56", "score": "0.75609136", "text": "public final void rule__XFeatureCall__Group_1_2__0__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.eclipse.xtext.idea.example.entities.ui/src-gen/org/eclipse/xtext/idea/example/entities/ui/contentassist/antlr/internal/InternalEntities.g:13646:1: ( ( ',' ) )\n // ../org.eclipse.xtext.idea.example.entities.ui/src-gen/org/eclipse/xtext/idea/example/entities/ui/contentassist/antlr/internal/InternalEntities.g:13647:1: ( ',' )\n {\n // ../org.eclipse.xtext.idea.example.entities.ui/src-gen/org/eclipse/xtext/idea/example/entities/ui/contentassist/antlr/internal/InternalEntities.g:13647:1: ( ',' )\n // ../org.eclipse.xtext.idea.example.entities.ui/src-gen/org/eclipse/xtext/idea/example/entities/ui/contentassist/antlr/internal/InternalEntities.g:13648:1: ','\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getXFeatureCallAccess().getCommaKeyword_1_2_0()); \n }\n match(input,59,FOLLOW_59_in_rule__XFeatureCall__Group_1_2__0__Impl27637); if (state.failed) return ;\n if ( state.backtracking==0 ) {\n after(grammarAccess.getXFeatureCallAccess().getCommaKeyword_1_2_0()); \n }\n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "852ff9f6c3b4ccb9b5ccea10ed1dbb2f", "score": "0.7544059", "text": "public final void rule__XMemberFeatureCall__Group__1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.eclipse.xtext.idea.example.entities.ui/src-gen/org/eclipse/xtext/idea/example/entities/ui/contentassist/antlr/internal/InternalEntities.g:7780:1: ( rule__XMemberFeatureCall__Group__1__Impl )\n // ../org.eclipse.xtext.idea.example.entities.ui/src-gen/org/eclipse/xtext/idea/example/entities/ui/contentassist/antlr/internal/InternalEntities.g:7781:2: rule__XMemberFeatureCall__Group__1__Impl\n {\n pushFollow(FOLLOW_rule__XMemberFeatureCall__Group__1__Impl_in_rule__XMemberFeatureCall__Group__116094);\n rule__XMemberFeatureCall__Group__1__Impl();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "8a35ce26865c9a29bdf5865bcbb3f0e4", "score": "0.7543001", "text": "public final void rule__XMemberFeatureCall__Group_1_1_1__2() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.eclipse.xtext.idea.example.entities.ui/src-gen/org/eclipse/xtext/idea/example/entities/ui/contentassist/antlr/internal/InternalEntities.g:8335:1: ( rule__XMemberFeatureCall__Group_1_1_1__2__Impl rule__XMemberFeatureCall__Group_1_1_1__3 )\n // ../org.eclipse.xtext.idea.example.entities.ui/src-gen/org/eclipse/xtext/idea/example/entities/ui/contentassist/antlr/internal/InternalEntities.g:8336:2: rule__XMemberFeatureCall__Group_1_1_1__2__Impl rule__XMemberFeatureCall__Group_1_1_1__3\n {\n pushFollow(FOLLOW_rule__XMemberFeatureCall__Group_1_1_1__2__Impl_in_rule__XMemberFeatureCall__Group_1_1_1__217194);\n rule__XMemberFeatureCall__Group_1_1_1__2__Impl();\n\n state._fsp--;\n if (state.failed) return ;\n pushFollow(FOLLOW_rule__XMemberFeatureCall__Group_1_1_1__3_in_rule__XMemberFeatureCall__Group_1_1_1__217197);\n rule__XMemberFeatureCall__Group_1_1_1__3();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "91c5deec8a5aea053939f95e98829b0a", "score": "0.75408846", "text": "public final void rule__XMemberFeatureCall__Group_1_0__1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.eclipse.xtext.idea.example.entities.ui/src-gen/org/eclipse/xtext/idea/example/entities/ui/contentassist/antlr/internal/InternalEntities.g:7841:1: ( rule__XMemberFeatureCall__Group_1_0__1__Impl )\n // ../org.eclipse.xtext.idea.example.entities.ui/src-gen/org/eclipse/xtext/idea/example/entities/ui/contentassist/antlr/internal/InternalEntities.g:7842:2: rule__XMemberFeatureCall__Group_1_0__1__Impl\n {\n pushFollow(FOLLOW_rule__XMemberFeatureCall__Group_1_0__1__Impl_in_rule__XMemberFeatureCall__Group_1_0__116216);\n rule__XMemberFeatureCall__Group_1_0__1__Impl();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "6b0266daed70e7944a56f1731d308878", "score": "0.7539632", "text": "public final void rule__XMemberFeatureCall__Group__1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.guicemodules.ui/src-gen/org/xtext/guicemodules/ui/contentassist/antlr/internal/InternalGuiceModules.g:7598:1: ( rule__XMemberFeatureCall__Group__1__Impl )\n // ../org.xtext.guicemodules.ui/src-gen/org/xtext/guicemodules/ui/contentassist/antlr/internal/InternalGuiceModules.g:7599:2: rule__XMemberFeatureCall__Group__1__Impl\n {\n pushFollow(FOLLOW_rule__XMemberFeatureCall__Group__1__Impl_in_rule__XMemberFeatureCall__Group__115666);\n rule__XMemberFeatureCall__Group__1__Impl();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "f632378694737d14739a354218ece08e", "score": "0.7534669", "text": "public final void rule__XMemberFeatureCall__Group_1_1_0_0__1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.eclipse.xtext.idea.example.entities.ui/src-gen/org/eclipse/xtext/idea/example/entities/ui/contentassist/antlr/internal/InternalEntities.g:8243:1: ( rule__XMemberFeatureCall__Group_1_1_0_0__1__Impl )\n // ../org.eclipse.xtext.idea.example.entities.ui/src-gen/org/eclipse/xtext/idea/example/entities/ui/contentassist/antlr/internal/InternalEntities.g:8244:2: rule__XMemberFeatureCall__Group_1_1_0_0__1__Impl\n {\n pushFollow(FOLLOW_rule__XMemberFeatureCall__Group_1_1_0_0__1__Impl_in_rule__XMemberFeatureCall__Group_1_1_0_0__117011);\n rule__XMemberFeatureCall__Group_1_1_0_0__1__Impl();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "0d699c59294a5c9342cc8fa0e81e368e", "score": "0.75237924", "text": "public final void rule__XMemberFeatureCall__Group_1_1_1_2__1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.yakindu.sct.generator.genmodel.ui/src-gen/org/yakindu/sct/generator/genmodel/ui/contentassist/antlr/internal/InternalSGen.g:6632:1: ( rule__XMemberFeatureCall__Group_1_1_1_2__1__Impl )\n // ../org.yakindu.sct.generator.genmodel.ui/src-gen/org/yakindu/sct/generator/genmodel/ui/contentassist/antlr/internal/InternalSGen.g:6633:2: rule__XMemberFeatureCall__Group_1_1_1_2__1__Impl\n {\n pushFollow(FOLLOW_rule__XMemberFeatureCall__Group_1_1_1_2__1__Impl_in_rule__XMemberFeatureCall__Group_1_1_1_2__113593);\n rule__XMemberFeatureCall__Group_1_1_1_2__1__Impl();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "2621c7316ddb87b5e9a7fd67ca4949cc", "score": "0.7521142", "text": "public final void rule__XFeatureCall__Group__4() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.eclipse.xtext.idea.example.entities.ui/src-gen/org/eclipse/xtext/idea/example/entities/ui/contentassist/antlr/internal/InternalEntities.g:13469:1: ( rule__XFeatureCall__Group__4__Impl )\n // ../org.eclipse.xtext.idea.example.entities.ui/src-gen/org/eclipse/xtext/idea/example/entities/ui/contentassist/antlr/internal/InternalEntities.g:13470:2: rule__XFeatureCall__Group__4__Impl\n {\n pushFollow(FOLLOW_rule__XFeatureCall__Group__4__Impl_in_rule__XFeatureCall__Group__427288);\n rule__XFeatureCall__Group__4__Impl();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "45daf7d8bbb636fed664c194f6815413", "score": "0.7516038", "text": "public final void rule__XFeatureCall__Group_4_1_1_1__1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.yakindu.sct.generator.genmodel.ui/src-gen/org/yakindu/sct/generator/genmodel/ui/contentassist/antlr/internal/InternalSGen.g:10796:1: ( rule__XFeatureCall__Group_4_1_1_1__1__Impl )\n // ../org.yakindu.sct.generator.genmodel.ui/src-gen/org/yakindu/sct/generator/genmodel/ui/contentassist/antlr/internal/InternalSGen.g:10797:2: rule__XFeatureCall__Group_4_1_1_1__1__Impl\n {\n pushFollow(FOLLOW_rule__XFeatureCall__Group_4_1_1_1__1__Impl_in_rule__XFeatureCall__Group_4_1_1_1__121788);\n rule__XFeatureCall__Group_4_1_1_1__1__Impl();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "dbcda4dd4b5484c97d20ba54f0513a62", "score": "0.75127625", "text": "public final void rule__XMemberFeatureCall__Group_1_0__0__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.eclipse.xtext.idea.example.entities.ui/src-gen/org/eclipse/xtext/idea/example/entities/ui/contentassist/antlr/internal/InternalEntities.g:7824:1: ( ( ( rule__XMemberFeatureCall__Group_1_0_0__0 ) ) )\n // ../org.eclipse.xtext.idea.example.entities.ui/src-gen/org/eclipse/xtext/idea/example/entities/ui/contentassist/antlr/internal/InternalEntities.g:7825:1: ( ( rule__XMemberFeatureCall__Group_1_0_0__0 ) )\n {\n // ../org.eclipse.xtext.idea.example.entities.ui/src-gen/org/eclipse/xtext/idea/example/entities/ui/contentassist/antlr/internal/InternalEntities.g:7825:1: ( ( rule__XMemberFeatureCall__Group_1_0_0__0 ) )\n // ../org.eclipse.xtext.idea.example.entities.ui/src-gen/org/eclipse/xtext/idea/example/entities/ui/contentassist/antlr/internal/InternalEntities.g:7826:1: ( rule__XMemberFeatureCall__Group_1_0_0__0 )\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getXMemberFeatureCallAccess().getGroup_1_0_0()); \n }\n // ../org.eclipse.xtext.idea.example.entities.ui/src-gen/org/eclipse/xtext/idea/example/entities/ui/contentassist/antlr/internal/InternalEntities.g:7827:1: ( rule__XMemberFeatureCall__Group_1_0_0__0 )\n // ../org.eclipse.xtext.idea.example.entities.ui/src-gen/org/eclipse/xtext/idea/example/entities/ui/contentassist/antlr/internal/InternalEntities.g:7827:2: rule__XMemberFeatureCall__Group_1_0_0__0\n {\n pushFollow(FOLLOW_rule__XMemberFeatureCall__Group_1_0_0__0_in_rule__XMemberFeatureCall__Group_1_0__0__Impl16186);\n rule__XMemberFeatureCall__Group_1_0_0__0();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n if ( state.backtracking==0 ) {\n after(grammarAccess.getXMemberFeatureCallAccess().getGroup_1_0_0()); \n }\n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "eaaecbbc7e973b8c10d82d9ca6237b79", "score": "0.74954706", "text": "public final void rule__XFeatureCall__Group__3__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.guicemodules.ui/src-gen/org/xtext/guicemodules/ui/contentassist/antlr/internal/InternalGuiceModules.g:12585:1: ( ( ( rule__XFeatureCall__Group_3__0 )? ) )\n // ../org.xtext.guicemodules.ui/src-gen/org/xtext/guicemodules/ui/contentassist/antlr/internal/InternalGuiceModules.g:12586:1: ( ( rule__XFeatureCall__Group_3__0 )? )\n {\n // ../org.xtext.guicemodules.ui/src-gen/org/xtext/guicemodules/ui/contentassist/antlr/internal/InternalGuiceModules.g:12586:1: ( ( rule__XFeatureCall__Group_3__0 )? )\n // ../org.xtext.guicemodules.ui/src-gen/org/xtext/guicemodules/ui/contentassist/antlr/internal/InternalGuiceModules.g:12587:1: ( rule__XFeatureCall__Group_3__0 )?\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getXFeatureCallAccess().getGroup_3()); \n }\n // ../org.xtext.guicemodules.ui/src-gen/org/xtext/guicemodules/ui/contentassist/antlr/internal/InternalGuiceModules.g:12588:1: ( rule__XFeatureCall__Group_3__0 )?\n int alt90=2;\n alt90 = dfa90.predict(input);\n switch (alt90) {\n case 1 :\n // ../org.xtext.guicemodules.ui/src-gen/org/xtext/guicemodules/ui/contentassist/antlr/internal/InternalGuiceModules.g:12588:2: rule__XFeatureCall__Group_3__0\n {\n pushFollow(FOLLOW_rule__XFeatureCall__Group_3__0_in_rule__XFeatureCall__Group__3__Impl25484);\n rule__XFeatureCall__Group_3__0();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n break;\n\n }\n\n if ( state.backtracking==0 ) {\n after(grammarAccess.getXFeatureCallAccess().getGroup_3()); \n }\n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "65b62f0ff45d6062cd07fee40cebf670", "score": "0.74913067", "text": "public final void ruleXFeatureCall() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.guicemodules.ui/src-gen/org/xtext/guicemodules/ui/contentassist/antlr/internal/InternalGuiceModules.g:1452:2: ( ( ( rule__XFeatureCall__Group__0 ) ) )\n // ../org.xtext.guicemodules.ui/src-gen/org/xtext/guicemodules/ui/contentassist/antlr/internal/InternalGuiceModules.g:1453:1: ( ( rule__XFeatureCall__Group__0 ) )\n {\n // ../org.xtext.guicemodules.ui/src-gen/org/xtext/guicemodules/ui/contentassist/antlr/internal/InternalGuiceModules.g:1453:1: ( ( rule__XFeatureCall__Group__0 ) )\n // ../org.xtext.guicemodules.ui/src-gen/org/xtext/guicemodules/ui/contentassist/antlr/internal/InternalGuiceModules.g:1454:1: ( rule__XFeatureCall__Group__0 )\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getXFeatureCallAccess().getGroup()); \n }\n // ../org.xtext.guicemodules.ui/src-gen/org/xtext/guicemodules/ui/contentassist/antlr/internal/InternalGuiceModules.g:1455:1: ( rule__XFeatureCall__Group__0 )\n // ../org.xtext.guicemodules.ui/src-gen/org/xtext/guicemodules/ui/contentassist/antlr/internal/InternalGuiceModules.g:1455:2: rule__XFeatureCall__Group__0\n {\n pushFollow(FOLLOW_rule__XFeatureCall__Group__0_in_ruleXFeatureCall3045);\n rule__XFeatureCall__Group__0();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n if ( state.backtracking==0 ) {\n after(grammarAccess.getXFeatureCallAccess().getGroup()); \n }\n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "b2d64f882586c6ef9f2ceefbb327c9d7", "score": "0.74874306", "text": "public final void rule__XMemberFeatureCall__Group_1_1_0__0() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.eclipse.xtext.idea.example.entities.ui/src-gen/org/eclipse/xtext/idea/example/entities/ui/contentassist/antlr/internal/InternalEntities.g:8182:1: ( rule__XMemberFeatureCall__Group_1_1_0__0__Impl )\n // ../org.eclipse.xtext.idea.example.entities.ui/src-gen/org/eclipse/xtext/idea/example/entities/ui/contentassist/antlr/internal/InternalEntities.g:8183:2: rule__XMemberFeatureCall__Group_1_1_0__0__Impl\n {\n pushFollow(FOLLOW_rule__XMemberFeatureCall__Group_1_1_0__0__Impl_in_rule__XMemberFeatureCall__Group_1_1_0__016891);\n rule__XMemberFeatureCall__Group_1_1_0__0__Impl();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "4b31159f6074cbe1c604b41a9c15930e", "score": "0.74873644", "text": "public final void rule__XMemberFeatureCall__Group_1_0__1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.guicemodules.ui/src-gen/org/xtext/guicemodules/ui/contentassist/antlr/internal/InternalGuiceModules.g:7659:1: ( rule__XMemberFeatureCall__Group_1_0__1__Impl )\n // ../org.xtext.guicemodules.ui/src-gen/org/xtext/guicemodules/ui/contentassist/antlr/internal/InternalGuiceModules.g:7660:2: rule__XMemberFeatureCall__Group_1_0__1__Impl\n {\n pushFollow(FOLLOW_rule__XMemberFeatureCall__Group_1_0__1__Impl_in_rule__XMemberFeatureCall__Group_1_0__115788);\n rule__XMemberFeatureCall__Group_1_0__1__Impl();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "3723562ac65b1e0c64b73d25f2f6a071", "score": "0.7484735", "text": "public final void rule__XMemberFeatureCall__Group_1_1_0_0__1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.guicemodules.ui/src-gen/org/xtext/guicemodules/ui/contentassist/antlr/internal/InternalGuiceModules.g:8061:1: ( rule__XMemberFeatureCall__Group_1_1_0_0__1__Impl )\n // ../org.xtext.guicemodules.ui/src-gen/org/xtext/guicemodules/ui/contentassist/antlr/internal/InternalGuiceModules.g:8062:2: rule__XMemberFeatureCall__Group_1_1_0_0__1__Impl\n {\n pushFollow(FOLLOW_rule__XMemberFeatureCall__Group_1_1_0_0__1__Impl_in_rule__XMemberFeatureCall__Group_1_1_0_0__116583);\n rule__XMemberFeatureCall__Group_1_1_0_0__1__Impl();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "a8460c4793ae8f5274fdc3ec8287aed4", "score": "0.74838984", "text": "public final void rule__XFeatureCall__Group_3__1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.guicemodules.ui/src-gen/org/xtext/guicemodules/ui/contentassist/antlr/internal/InternalGuiceModules.g:12859:1: ( rule__XFeatureCall__Group_3__1__Impl rule__XFeatureCall__Group_3__2 )\n // ../org.xtext.guicemodules.ui/src-gen/org/xtext/guicemodules/ui/contentassist/antlr/internal/InternalGuiceModules.g:12860:2: rule__XFeatureCall__Group_3__1__Impl rule__XFeatureCall__Group_3__2\n {\n pushFollow(FOLLOW_rule__XFeatureCall__Group_3__1__Impl_in_rule__XFeatureCall__Group_3__126016);\n rule__XFeatureCall__Group_3__1__Impl();\n\n state._fsp--;\n if (state.failed) return ;\n pushFollow(FOLLOW_rule__XFeatureCall__Group_3__2_in_rule__XFeatureCall__Group_3__126019);\n rule__XFeatureCall__Group_3__2();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "24c1fa262b78c616da92956a2a1e4724", "score": "0.7482175", "text": "public final void rule__XFeatureCall__Group_4_1_1__1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.yakindu.sct.generator.genmodel.ui/src-gen/org/yakindu/sct/generator/genmodel/ui/contentassist/antlr/internal/InternalSGen.g:10733:1: ( rule__XFeatureCall__Group_4_1_1__1__Impl )\n // ../org.yakindu.sct.generator.genmodel.ui/src-gen/org/yakindu/sct/generator/genmodel/ui/contentassist/antlr/internal/InternalSGen.g:10734:2: rule__XFeatureCall__Group_4_1_1__1__Impl\n {\n pushFollow(FOLLOW_rule__XFeatureCall__Group_4_1_1__1__Impl_in_rule__XFeatureCall__Group_4_1_1__121664);\n rule__XFeatureCall__Group_4_1_1__1__Impl();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "c02a7b154197d31e3e17c96ca581b980", "score": "0.7479097", "text": "public final void rule__XFeatureCall__Group__0__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.eclipse.xtext.idea.example.entities.ui/src-gen/org/eclipse/xtext/idea/example/entities/ui/contentassist/antlr/internal/InternalEntities.g:13363:1: ( ( () ) )\n // ../org.eclipse.xtext.idea.example.entities.ui/src-gen/org/eclipse/xtext/idea/example/entities/ui/contentassist/antlr/internal/InternalEntities.g:13364:1: ( () )\n {\n // ../org.eclipse.xtext.idea.example.entities.ui/src-gen/org/eclipse/xtext/idea/example/entities/ui/contentassist/antlr/internal/InternalEntities.g:13364:1: ( () )\n // ../org.eclipse.xtext.idea.example.entities.ui/src-gen/org/eclipse/xtext/idea/example/entities/ui/contentassist/antlr/internal/InternalEntities.g:13365:1: ()\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getXFeatureCallAccess().getXFeatureCallAction_0()); \n }\n // ../org.eclipse.xtext.idea.example.entities.ui/src-gen/org/eclipse/xtext/idea/example/entities/ui/contentassist/antlr/internal/InternalEntities.g:13366:1: ()\n // ../org.eclipse.xtext.idea.example.entities.ui/src-gen/org/eclipse/xtext/idea/example/entities/ui/contentassist/antlr/internal/InternalEntities.g:13368:1: \n {\n }\n\n if ( state.backtracking==0 ) {\n after(grammarAccess.getXFeatureCallAccess().getXFeatureCallAction_0()); \n }\n\n }\n\n\n }\n\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "25e291d6b919c491ca6ce65f9e571272", "score": "0.7469426", "text": "public final void rule__XFeatureCall__Group_3_1_1__0() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.eclipse.xtext.idea.example.entities.ui/src-gen/org/eclipse/xtext/idea/example/entities/ui/contentassist/antlr/internal/InternalEntities.g:13791:1: ( rule__XFeatureCall__Group_3_1_1__0__Impl rule__XFeatureCall__Group_3_1_1__1 )\n // ../org.eclipse.xtext.idea.example.entities.ui/src-gen/org/eclipse/xtext/idea/example/entities/ui/contentassist/antlr/internal/InternalEntities.g:13792:2: rule__XFeatureCall__Group_3_1_1__0__Impl rule__XFeatureCall__Group_3_1_1__1\n {\n pushFollow(FOLLOW_rule__XFeatureCall__Group_3_1_1__0__Impl_in_rule__XFeatureCall__Group_3_1_1__027915);\n rule__XFeatureCall__Group_3_1_1__0__Impl();\n\n state._fsp--;\n if (state.failed) return ;\n pushFollow(FOLLOW_rule__XFeatureCall__Group_3_1_1__1_in_rule__XFeatureCall__Group_3_1_1__027918);\n rule__XFeatureCall__Group_3_1_1__1();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "2096774596404e04df9421c9f9f91fe4", "score": "0.7465652", "text": "public final void rule__XFeatureCall__Group_3_1_1_1__0() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.eclipse.xtext.idea.example.entities.ui/src-gen/org/eclipse/xtext/idea/example/entities/ui/contentassist/antlr/internal/InternalEntities.g:13852:1: ( rule__XFeatureCall__Group_3_1_1_1__0__Impl rule__XFeatureCall__Group_3_1_1_1__1 )\n // ../org.eclipse.xtext.idea.example.entities.ui/src-gen/org/eclipse/xtext/idea/example/entities/ui/contentassist/antlr/internal/InternalEntities.g:13853:2: rule__XFeatureCall__Group_3_1_1_1__0__Impl rule__XFeatureCall__Group_3_1_1_1__1\n {\n pushFollow(FOLLOW_rule__XFeatureCall__Group_3_1_1_1__0__Impl_in_rule__XFeatureCall__Group_3_1_1_1__028037);\n rule__XFeatureCall__Group_3_1_1_1__0__Impl();\n\n state._fsp--;\n if (state.failed) return ;\n pushFollow(FOLLOW_rule__XFeatureCall__Group_3_1_1_1__1_in_rule__XFeatureCall__Group_3_1_1_1__028040);\n rule__XFeatureCall__Group_3_1_1_1__1();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "915497ad16b59c00d2622235150f2163", "score": "0.74648607", "text": "public final void rule__XMemberFeatureCall__Group_1_1_0__0__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.eclipse.xtext.idea.example.entities.ui/src-gen/org/eclipse/xtext/idea/example/entities/ui/contentassist/antlr/internal/InternalEntities.g:8193:1: ( ( ( rule__XMemberFeatureCall__Group_1_1_0_0__0 ) ) )\n // ../org.eclipse.xtext.idea.example.entities.ui/src-gen/org/eclipse/xtext/idea/example/entities/ui/contentassist/antlr/internal/InternalEntities.g:8194:1: ( ( rule__XMemberFeatureCall__Group_1_1_0_0__0 ) )\n {\n // ../org.eclipse.xtext.idea.example.entities.ui/src-gen/org/eclipse/xtext/idea/example/entities/ui/contentassist/antlr/internal/InternalEntities.g:8194:1: ( ( rule__XMemberFeatureCall__Group_1_1_0_0__0 ) )\n // ../org.eclipse.xtext.idea.example.entities.ui/src-gen/org/eclipse/xtext/idea/example/entities/ui/contentassist/antlr/internal/InternalEntities.g:8195:1: ( rule__XMemberFeatureCall__Group_1_1_0_0__0 )\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getXMemberFeatureCallAccess().getGroup_1_1_0_0()); \n }\n // ../org.eclipse.xtext.idea.example.entities.ui/src-gen/org/eclipse/xtext/idea/example/entities/ui/contentassist/antlr/internal/InternalEntities.g:8196:1: ( rule__XMemberFeatureCall__Group_1_1_0_0__0 )\n // ../org.eclipse.xtext.idea.example.entities.ui/src-gen/org/eclipse/xtext/idea/example/entities/ui/contentassist/antlr/internal/InternalEntities.g:8196:2: rule__XMemberFeatureCall__Group_1_1_0_0__0\n {\n pushFollow(FOLLOW_rule__XMemberFeatureCall__Group_1_1_0_0__0_in_rule__XMemberFeatureCall__Group_1_1_0__0__Impl16918);\n rule__XMemberFeatureCall__Group_1_1_0_0__0();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n if ( state.backtracking==0 ) {\n after(grammarAccess.getXMemberFeatureCallAccess().getGroup_1_1_0_0()); \n }\n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "bb740eb96dbb1796763aac1e47bb0fe6", "score": "0.7462662", "text": "public final void rule__XMemberFeatureCall__Group_1_1_0__0() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.guicemodules.ui/src-gen/org/xtext/guicemodules/ui/contentassist/antlr/internal/InternalGuiceModules.g:8000:1: ( rule__XMemberFeatureCall__Group_1_1_0__0__Impl )\n // ../org.xtext.guicemodules.ui/src-gen/org/xtext/guicemodules/ui/contentassist/antlr/internal/InternalGuiceModules.g:8001:2: rule__XMemberFeatureCall__Group_1_1_0__0__Impl\n {\n pushFollow(FOLLOW_rule__XMemberFeatureCall__Group_1_1_0__0__Impl_in_rule__XMemberFeatureCall__Group_1_1_0__016463);\n rule__XMemberFeatureCall__Group_1_1_0__0__Impl();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "74a5e46ba6bbf73d9b89da95af5862c4", "score": "0.745975", "text": "public final void rule__XMemberFeatureCall__Group_1_1__1__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.eclipse.xtext.idea.example.entities.ui/src-gen/org/eclipse/xtext/idea/example/entities/ui/contentassist/antlr/internal/InternalEntities.g:8069:1: ( ( ( rule__XMemberFeatureCall__Group_1_1_1__0 )? ) )\n // ../org.eclipse.xtext.idea.example.entities.ui/src-gen/org/eclipse/xtext/idea/example/entities/ui/contentassist/antlr/internal/InternalEntities.g:8070:1: ( ( rule__XMemberFeatureCall__Group_1_1_1__0 )? )\n {\n // ../org.eclipse.xtext.idea.example.entities.ui/src-gen/org/eclipse/xtext/idea/example/entities/ui/contentassist/antlr/internal/InternalEntities.g:8070:1: ( ( rule__XMemberFeatureCall__Group_1_1_1__0 )? )\n // ../org.eclipse.xtext.idea.example.entities.ui/src-gen/org/eclipse/xtext/idea/example/entities/ui/contentassist/antlr/internal/InternalEntities.g:8071:1: ( rule__XMemberFeatureCall__Group_1_1_1__0 )?\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getXMemberFeatureCallAccess().getGroup_1_1_1()); \n }\n // ../org.eclipse.xtext.idea.example.entities.ui/src-gen/org/eclipse/xtext/idea/example/entities/ui/contentassist/antlr/internal/InternalEntities.g:8072:1: ( rule__XMemberFeatureCall__Group_1_1_1__0 )?\n int alt64=2;\n int LA64_0 = input.LA(1);\n\n if ( (LA64_0==27) ) {\n alt64=1;\n }\n switch (alt64) {\n case 1 :\n // ../org.eclipse.xtext.idea.example.entities.ui/src-gen/org/eclipse/xtext/idea/example/entities/ui/contentassist/antlr/internal/InternalEntities.g:8072:2: rule__XMemberFeatureCall__Group_1_1_1__0\n {\n pushFollow(FOLLOW_rule__XMemberFeatureCall__Group_1_1_1__0_in_rule__XMemberFeatureCall__Group_1_1__1__Impl16671);\n rule__XMemberFeatureCall__Group_1_1_1__0();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n break;\n\n }\n\n if ( state.backtracking==0 ) {\n after(grammarAccess.getXMemberFeatureCallAccess().getGroup_1_1_1()); \n }\n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "6f0146744ac5664f19a73e9b3bee37f7", "score": "0.74340004", "text": "public final void rule__XMemberFeatureCall__Group_1_0_0__0() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.eclipse.xtext.idea.example.entities.ui/src-gen/org/eclipse/xtext/idea/example/entities/ui/contentassist/antlr/internal/InternalEntities.g:7873:1: ( rule__XMemberFeatureCall__Group_1_0_0__0__Impl )\n // ../org.eclipse.xtext.idea.example.entities.ui/src-gen/org/eclipse/xtext/idea/example/entities/ui/contentassist/antlr/internal/InternalEntities.g:7874:2: rule__XMemberFeatureCall__Group_1_0_0__0__Impl\n {\n pushFollow(FOLLOW_rule__XMemberFeatureCall__Group_1_0_0__0__Impl_in_rule__XMemberFeatureCall__Group_1_0_0__016277);\n rule__XMemberFeatureCall__Group_1_0_0__0__Impl();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "28682a915bf6b91bbf3790ad1dcb9a96", "score": "0.7428273", "text": "public final void rule__XFeatureCall__Group_1__0__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.guicemodules.ui/src-gen/org/xtext/guicemodules/ui/contentassist/antlr/internal/InternalGuiceModules.g:12652:1: ( ( '<' ) )\n // ../org.xtext.guicemodules.ui/src-gen/org/xtext/guicemodules/ui/contentassist/antlr/internal/InternalGuiceModules.g:12653:1: ( '<' )\n {\n // ../org.xtext.guicemodules.ui/src-gen/org/xtext/guicemodules/ui/contentassist/antlr/internal/InternalGuiceModules.g:12653:1: ( '<' )\n // ../org.xtext.guicemodules.ui/src-gen/org/xtext/guicemodules/ui/contentassist/antlr/internal/InternalGuiceModules.g:12654:1: '<'\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getXFeatureCallAccess().getLessThanSignKeyword_1_0()); \n }\n match(input,25,FOLLOW_25_in_rule__XFeatureCall__Group_1__0__Impl25614); if (state.failed) return ;\n if ( state.backtracking==0 ) {\n after(grammarAccess.getXFeatureCallAccess().getLessThanSignKeyword_1_0()); \n }\n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "38c4bd65318d47d0cd77d9963e49bde9", "score": "0.7423518", "text": "public final void rule__XMemberFeatureCall__Group_1_0_0__0() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.guicemodules.ui/src-gen/org/xtext/guicemodules/ui/contentassist/antlr/internal/InternalGuiceModules.g:7691:1: ( rule__XMemberFeatureCall__Group_1_0_0__0__Impl )\n // ../org.xtext.guicemodules.ui/src-gen/org/xtext/guicemodules/ui/contentassist/antlr/internal/InternalGuiceModules.g:7692:2: rule__XMemberFeatureCall__Group_1_0_0__0__Impl\n {\n pushFollow(FOLLOW_rule__XMemberFeatureCall__Group_1_0_0__0__Impl_in_rule__XMemberFeatureCall__Group_1_0_0__015849);\n rule__XMemberFeatureCall__Group_1_0_0__0__Impl();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "62ed110849f27777c92a5dfb093a4a85", "score": "0.74225014", "text": "public final void rule__XMemberFeatureCall__Group_1_1_1__2__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.yakindu.sct.generator.genmodel.ui/src-gen/org/yakindu/sct/generator/genmodel/ui/contentassist/antlr/internal/InternalSGen.g:6546:1: ( ( ( rule__XMemberFeatureCall__Group_1_1_1_2__0 )* ) )\n // ../org.yakindu.sct.generator.genmodel.ui/src-gen/org/yakindu/sct/generator/genmodel/ui/contentassist/antlr/internal/InternalSGen.g:6547:1: ( ( rule__XMemberFeatureCall__Group_1_1_1_2__0 )* )\n {\n // ../org.yakindu.sct.generator.genmodel.ui/src-gen/org/yakindu/sct/generator/genmodel/ui/contentassist/antlr/internal/InternalSGen.g:6547:1: ( ( rule__XMemberFeatureCall__Group_1_1_1_2__0 )* )\n // ../org.yakindu.sct.generator.genmodel.ui/src-gen/org/yakindu/sct/generator/genmodel/ui/contentassist/antlr/internal/InternalSGen.g:6548:1: ( rule__XMemberFeatureCall__Group_1_1_1_2__0 )*\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getXMemberFeatureCallAccess().getGroup_1_1_1_2()); \n }\n // ../org.yakindu.sct.generator.genmodel.ui/src-gen/org/yakindu/sct/generator/genmodel/ui/contentassist/antlr/internal/InternalSGen.g:6549:1: ( rule__XMemberFeatureCall__Group_1_1_1_2__0 )*\n loop49:\n do {\n int alt49=2;\n int LA49_0 = input.LA(1);\n\n if ( (LA49_0==44) ) {\n alt49=1;\n }\n\n\n switch (alt49) {\n \tcase 1 :\n \t // ../org.yakindu.sct.generator.genmodel.ui/src-gen/org/yakindu/sct/generator/genmodel/ui/contentassist/antlr/internal/InternalSGen.g:6549:2: rule__XMemberFeatureCall__Group_1_1_1_2__0\n \t {\n \t pushFollow(FOLLOW_rule__XMemberFeatureCall__Group_1_1_1_2__0_in_rule__XMemberFeatureCall__Group_1_1_1__2__Impl13433);\n \t rule__XMemberFeatureCall__Group_1_1_1_2__0();\n\n \t state._fsp--;\n \t if (state.failed) return ;\n\n \t }\n \t break;\n\n \tdefault :\n \t break loop49;\n }\n } while (true);\n\n if ( state.backtracking==0 ) {\n after(grammarAccess.getXMemberFeatureCallAccess().getGroup_1_1_1_2()); \n }\n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "66e3934966106d77311adc0152601b54", "score": "0.7408954", "text": "public final void rule__XMemberFeatureCall__Group_1_0_0__0__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.eclipse.xtext.idea.example.entities.ui/src-gen/org/eclipse/xtext/idea/example/entities/ui/contentassist/antlr/internal/InternalEntities.g:7884:1: ( ( ( rule__XMemberFeatureCall__Group_1_0_0_0__0 ) ) )\n // ../org.eclipse.xtext.idea.example.entities.ui/src-gen/org/eclipse/xtext/idea/example/entities/ui/contentassist/antlr/internal/InternalEntities.g:7885:1: ( ( rule__XMemberFeatureCall__Group_1_0_0_0__0 ) )\n {\n // ../org.eclipse.xtext.idea.example.entities.ui/src-gen/org/eclipse/xtext/idea/example/entities/ui/contentassist/antlr/internal/InternalEntities.g:7885:1: ( ( rule__XMemberFeatureCall__Group_1_0_0_0__0 ) )\n // ../org.eclipse.xtext.idea.example.entities.ui/src-gen/org/eclipse/xtext/idea/example/entities/ui/contentassist/antlr/internal/InternalEntities.g:7886:1: ( rule__XMemberFeatureCall__Group_1_0_0_0__0 )\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getXMemberFeatureCallAccess().getGroup_1_0_0_0()); \n }\n // ../org.eclipse.xtext.idea.example.entities.ui/src-gen/org/eclipse/xtext/idea/example/entities/ui/contentassist/antlr/internal/InternalEntities.g:7887:1: ( rule__XMemberFeatureCall__Group_1_0_0_0__0 )\n // ../org.eclipse.xtext.idea.example.entities.ui/src-gen/org/eclipse/xtext/idea/example/entities/ui/contentassist/antlr/internal/InternalEntities.g:7887:2: rule__XMemberFeatureCall__Group_1_0_0_0__0\n {\n pushFollow(FOLLOW_rule__XMemberFeatureCall__Group_1_0_0_0__0_in_rule__XMemberFeatureCall__Group_1_0_0__0__Impl16304);\n rule__XMemberFeatureCall__Group_1_0_0_0__0();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n if ( state.backtracking==0 ) {\n after(grammarAccess.getXMemberFeatureCallAccess().getGroup_1_0_0_0()); \n }\n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "519e449dd84b5690cfd36009dac5d336", "score": "0.7402515", "text": "public final void rule__XMemberFeatureCall__Group_1_1_3__2() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.yakindu.sct.generator.genmodel.ui/src-gen/org/yakindu/sct/generator/genmodel/ui/contentassist/antlr/internal/InternalSGen.g:6722:1: ( rule__XMemberFeatureCall__Group_1_1_3__2__Impl )\n // ../org.yakindu.sct.generator.genmodel.ui/src-gen/org/yakindu/sct/generator/genmodel/ui/contentassist/antlr/internal/InternalSGen.g:6723:2: rule__XMemberFeatureCall__Group_1_1_3__2__Impl\n {\n pushFollow(FOLLOW_rule__XMemberFeatureCall__Group_1_1_3__2__Impl_in_rule__XMemberFeatureCall__Group_1_1_3__213775);\n rule__XMemberFeatureCall__Group_1_1_3__2__Impl();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "d9fe7a2a0fde8a75cda14d8b5ced17f0", "score": "0.73863274", "text": "public final void rule__XMemberFeatureCall__Group_1_1__3__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.guicemodules.ui/src-gen/org/xtext/guicemodules/ui/contentassist/antlr/internal/InternalGuiceModules.g:7945:1: ( ( ( rule__XMemberFeatureCall__Group_1_1_3__0 )? ) )\n // ../org.xtext.guicemodules.ui/src-gen/org/xtext/guicemodules/ui/contentassist/antlr/internal/InternalGuiceModules.g:7946:1: ( ( rule__XMemberFeatureCall__Group_1_1_3__0 )? )\n {\n // ../org.xtext.guicemodules.ui/src-gen/org/xtext/guicemodules/ui/contentassist/antlr/internal/InternalGuiceModules.g:7946:1: ( ( rule__XMemberFeatureCall__Group_1_1_3__0 )? )\n // ../org.xtext.guicemodules.ui/src-gen/org/xtext/guicemodules/ui/contentassist/antlr/internal/InternalGuiceModules.g:7947:1: ( rule__XMemberFeatureCall__Group_1_1_3__0 )?\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getXMemberFeatureCallAccess().getGroup_1_1_3()); \n }\n // ../org.xtext.guicemodules.ui/src-gen/org/xtext/guicemodules/ui/contentassist/antlr/internal/InternalGuiceModules.g:7948:1: ( rule__XMemberFeatureCall__Group_1_1_3__0 )?\n int alt63=2;\n alt63 = dfa63.predict(input);\n switch (alt63) {\n case 1 :\n // ../org.xtext.guicemodules.ui/src-gen/org/xtext/guicemodules/ui/contentassist/antlr/internal/InternalGuiceModules.g:7948:2: rule__XMemberFeatureCall__Group_1_1_3__0\n {\n pushFollow(FOLLOW_rule__XMemberFeatureCall__Group_1_1_3__0_in_rule__XMemberFeatureCall__Group_1_1__3__Impl16364);\n rule__XMemberFeatureCall__Group_1_1_3__0();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n break;\n\n }\n\n if ( state.backtracking==0 ) {\n after(grammarAccess.getXMemberFeatureCallAccess().getGroup_1_1_3()); \n }\n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "a9d4d9d2afc8e41f354f3f4718be765b", "score": "0.738607", "text": "public final void rule__XMemberFeatureCall__Group_1_1__1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.guicemodules.ui/src-gen/org/xtext/guicemodules/ui/contentassist/antlr/internal/InternalGuiceModules.g:7875:1: ( rule__XMemberFeatureCall__Group_1_1__1__Impl rule__XMemberFeatureCall__Group_1_1__2 )\n // ../org.xtext.guicemodules.ui/src-gen/org/xtext/guicemodules/ui/contentassist/antlr/internal/InternalGuiceModules.g:7876:2: rule__XMemberFeatureCall__Group_1_1__1__Impl rule__XMemberFeatureCall__Group_1_1__2\n {\n pushFollow(FOLLOW_rule__XMemberFeatureCall__Group_1_1__1__Impl_in_rule__XMemberFeatureCall__Group_1_1__116213);\n rule__XMemberFeatureCall__Group_1_1__1__Impl();\n\n state._fsp--;\n if (state.failed) return ;\n pushFollow(FOLLOW_rule__XMemberFeatureCall__Group_1_1__2_in_rule__XMemberFeatureCall__Group_1_1__116216);\n rule__XMemberFeatureCall__Group_1_1__2();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "187b985861bfff2293fbfad0ce5f865f", "score": "0.7383985", "text": "public final void rule__XFeatureCall__Group__0() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.yakindu.sct.generator.genmodel.ui/src-gen/org/yakindu/sct/generator/genmodel/ui/contentassist/antlr/internal/InternalSGen.g:10233:1: ( rule__XFeatureCall__Group__0__Impl rule__XFeatureCall__Group__1 )\n // ../org.yakindu.sct.generator.genmodel.ui/src-gen/org/yakindu/sct/generator/genmodel/ui/contentassist/antlr/internal/InternalSGen.g:10234:2: rule__XFeatureCall__Group__0__Impl rule__XFeatureCall__Group__1\n {\n pushFollow(FOLLOW_rule__XFeatureCall__Group__0__Impl_in_rule__XFeatureCall__Group__020671);\n rule__XFeatureCall__Group__0__Impl();\n\n state._fsp--;\n if (state.failed) return ;\n pushFollow(FOLLOW_rule__XFeatureCall__Group__1_in_rule__XFeatureCall__Group__020674);\n rule__XFeatureCall__Group__1();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "1195b4cc63db7d6f96239a2961eb9a45", "score": "0.7382952", "text": "public final void rule__XMemberFeatureCall__Group_1_1_1__1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.guicemodules.ui/src-gen/org/xtext/guicemodules/ui/contentassist/antlr/internal/InternalGuiceModules.g:8124:1: ( rule__XMemberFeatureCall__Group_1_1_1__1__Impl rule__XMemberFeatureCall__Group_1_1_1__2 )\n // ../org.xtext.guicemodules.ui/src-gen/org/xtext/guicemodules/ui/contentassist/antlr/internal/InternalGuiceModules.g:8125:2: rule__XMemberFeatureCall__Group_1_1_1__1__Impl rule__XMemberFeatureCall__Group_1_1_1__2\n {\n pushFollow(FOLLOW_rule__XMemberFeatureCall__Group_1_1_1__1__Impl_in_rule__XMemberFeatureCall__Group_1_1_1__116706);\n rule__XMemberFeatureCall__Group_1_1_1__1__Impl();\n\n state._fsp--;\n if (state.failed) return ;\n pushFollow(FOLLOW_rule__XMemberFeatureCall__Group_1_1_1__2_in_rule__XMemberFeatureCall__Group_1_1_1__116709);\n rule__XMemberFeatureCall__Group_1_1_1__2();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "d23a23ddf201f86a31f49e9996959b68", "score": "0.73812366", "text": "public final void rule__XMemberFeatureCall__Group_1_1__1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.eclipse.xtext.idea.example.entities.ui/src-gen/org/eclipse/xtext/idea/example/entities/ui/contentassist/antlr/internal/InternalEntities.g:8057:1: ( rule__XMemberFeatureCall__Group_1_1__1__Impl rule__XMemberFeatureCall__Group_1_1__2 )\n // ../org.eclipse.xtext.idea.example.entities.ui/src-gen/org/eclipse/xtext/idea/example/entities/ui/contentassist/antlr/internal/InternalEntities.g:8058:2: rule__XMemberFeatureCall__Group_1_1__1__Impl rule__XMemberFeatureCall__Group_1_1__2\n {\n pushFollow(FOLLOW_rule__XMemberFeatureCall__Group_1_1__1__Impl_in_rule__XMemberFeatureCall__Group_1_1__116641);\n rule__XMemberFeatureCall__Group_1_1__1__Impl();\n\n state._fsp--;\n if (state.failed) return ;\n pushFollow(FOLLOW_rule__XMemberFeatureCall__Group_1_1__2_in_rule__XMemberFeatureCall__Group_1_1__116644);\n rule__XMemberFeatureCall__Group_1_1__2();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" } ]
72b8b0c0c2e1c4d69238304bf4bae1cc
Called when command execution has been requested on the specified machine.
[ { "docid": "e5fefbad2b0b3f7ac6d44f80ad2eab46", "score": "0.7879373", "text": "void onCommandExecute(CommandImpl command, Machine machine);", "title": "" } ]
[ { "docid": "2f732df4f903077614d69eb3d56a4664", "score": "0.59913653", "text": "private void doCommand( String cmd ) throws IOException {\t\n\t\tcmd = cmd.toLowerCase();\n\t\t\n\t\tString message; \n\t\t// iterate over possible commands\n\t\tif (cmd.equals(\"shutdown\")) {\n\t\t\t// shutdown MITM server\n\t\t\tmessage = ADSERV_PREFIX + \"Shutting down MITM server\";\n\t\t\tSystem.out.println(message);\n\t\t\tm_socketWriter.println(message + \", see you later!\");\n\t\t\tm_socketWriter.flush();\n\t\t\tm_engine.shutdown();\n\t\t\tm_shutdown = true;\n\t\t}\n\t\telse if (cmd.equals(\"stats\")) {\n\t\t\t// List how many requests were proxied\n\t\t\tmessage = ADSERV_PREFIX + \"Proxied requests: \" +\n\t\t\t\t\tm_engine.getProxiedRequestsCount();\n\t\t\tSystem.out.println(message);\n\t\t\tm_socketWriter.println(message);\n\t\t\tm_socketWriter.flush();\n\t\t}\n\t\telse {\n\t\t\tmessage = ADSERV_PREFIX + \"Unrecognized command: \" + cmd;\n\t\t\tSystem.out.println(message);\n\t\t\tm_socketWriter.println(message);\n\t\t\tm_socketWriter.flush();\n\t\t}\n\t\t\n\t\tm_socket.close();\n\t}", "title": "" }, { "docid": "ac6019fb2e3b91e5d816f7138d0bbb7d", "score": "0.5922828", "text": "public void onCommand(Object cmd) {\n\t\t\t\t\t\t\t}", "title": "" }, { "docid": "bf6019c8dcf5b63d40efe5d7e7d1dba8", "score": "0.5906482", "text": "default Result afterCommand(Runtime runtime, VM vm, State state, ThreadId threadId, Command cmd) {\n return Result.CONTINUE;\n }", "title": "" }, { "docid": "903c5186b012916fd5456850e12c833c", "score": "0.58230203", "text": "public void inputEntered(String command) {\n commands.get(command).execute();\n }", "title": "" }, { "docid": "7f0b2b77dc6613bdeed7a290d835570a", "score": "0.58195466", "text": "@Override\n\tpublic void invoke() { \n\t\tcommand.execute();\n\t}", "title": "" }, { "docid": "6530a07272f003cd69ea3b49865648ff", "score": "0.5813894", "text": "public void execute(MonitorCommand cmd) {\n\n\t}", "title": "" }, { "docid": "cb907c4c67713099468fc725fc3ce37d", "score": "0.5722672", "text": "public abstract void onCommandReceived(@NonNull ArsdkCommand command);", "title": "" }, { "docid": "d4575a96bc902c3c96155a45d8f3fb34", "score": "0.5648873", "text": "@Override\n\tpublic void execute(Runnable command) {\n\t\t\n\t}", "title": "" }, { "docid": "7a034b1b0bfa077fd222f3d266a741ea", "score": "0.56401205", "text": "void onCommandExecute(CommandImpl command);", "title": "" }, { "docid": "d88ab9716372e3ab89dd35398183e739", "score": "0.5578874", "text": "@Override\n\tpublic void handleServerCmd() {\n\t\t\n\t}", "title": "" }, { "docid": "335d9898c1ee8d050f456de593101973", "score": "0.5572381", "text": "public void run() {\n synchronized (getTreeLock()) {\n synchronized (this) {\n if (getState() == ST_SYSTEM_REQUEST) {\n setPrevState();\n }\n\n setFreeze(true);\n try {\n ivCmdList.execute();\n // input fields initialization\n initAllFields();\n\n processEmulatorEvent(\n new XI5250EmulatorEvent(\n XI5250EmulatorEvent.NEW_PANEL_RECEIVED,\n XI5250Emulator.this));\n } finally {\n setFreeze(false);\n }\n }\n }\n if (ivReceivedStrPcCmd) {\n char ctrlChar = getChar(0, 0);\n boolean wait = !(ctrlChar == 'a');\n String cmd = getString(1, 0, 132 - STRPCCMD.length);\n {\n int k = cmd.length() - 1;\n for (; k >= 0; k--) {\n char ch = cmd.charAt(k);\n if (!Character.isISOControl(ch) && !Character.isWhitespace(ch)) {\n break;\n }\n }\n cmd = cmd.substring(0, k + 1);\n }\n try {\n if (LOGGER.isLoggable(Level.INFO)) {\n if (wait) {\n LOGGER.info(\"Executing and waiting for local command: \" + cmd);\n } else {\n LOGGER.info(\"Executing local command: \" + cmd);\n }\n }\n try {\n strPcCmd(wait, cmd);\n } catch (IOException ex) {\n caughtIOException(ex);\n } catch (InterruptedException ex) {\n caughtException(ex);\n }\n } finally {\n // AUTOENTER\n processRawKeyEvent(\n new KeyEvent(XI5250Emulator.this, KeyEvent.KEY_PRESSED,\n 0, -1, KeyEvent.VK_ENTER, KeyEvent.CHAR_UNDEFINED));\n }\n } else if (ivReceivedEndStrPcCmd) {\n if (LOGGER.isLoggable(Level.INFO)) {\n LOGGER.info(\"Received STRPCCMD shutdown\");\n }\n // AUTOENTER\n processRawKeyEvent(\n new KeyEvent(XI5250Emulator.this, KeyEvent.KEY_PRESSED,\n 0, -1, KeyEvent.VK_ENTER, KeyEvent.CHAR_UNDEFINED));\n }\n }", "title": "" }, { "docid": "2487eab5bbd1ff2843aa1ed826c513c9", "score": "0.55527043", "text": "@Override\r\n public boolean onCommand(CommandSender sender, Command command, String label, String[] args) {\r\n return commandManager.dispatch(sender, command, label, args);\r\n }", "title": "" }, { "docid": "9d9cb68b63516ce41936144158eb7d09", "score": "0.5528857", "text": "public void processCommand(String command);", "title": "" }, { "docid": "97963f9161ae22451043f6cf645c5967", "score": "0.5521421", "text": "@Override\n public void onExecution() {\n try {\n new CarbonitexRequest(shard).sendRequest();\n new DiscordOrgRequest(shard).sendRequest();\n new DiscordPwRequest(shard).sendRequest();\n } catch(IOException exception) {\n logger.error(\"Encountered an error.\", exception);\n }\n }", "title": "" }, { "docid": "c2dde10c64556221fe390de8f630a083", "score": "0.5477226", "text": "private void commandEntered(String command, boolean updateHistory)\n \t{\n \t\tif (command.length() >= 1 && command.charAt(0) == '!')\n \t\t{\n \t\t\tcommand = lookupCommand(command) ;\n \t\t}\n \t\t\n \t\t// Update the combo box history list\n \t\tif (updateHistory)\n \t\t{\n \t\t\tthis.m_CommandHistory.UpdateHistoryList(command, true) ;\n \n \t\t\t// Update the combo box to match the history list\n \t\t\tmakeComboBoxMatchHistory(false) ;\n \t\t}\n \t\t\n \t\t// Clear the text from the edit control in the combo box if we're\n \t\t// configured that way.\n \t\tif (m_ClearComboEachCommand)\n \t\t{\n \t\t\tthis.m_CommandCombo.setText(\"\") ;\n \t\t\tm_CurrentCommand = \"\" ;\n \t\t}\n \t\t\n \t\t// Send the command to Soar and echo into the trace\n \t\tif (command.length() > 0)\n \t\t\texecuteAgentCommand(command, true) ;\n \t\telse\n \t\t\tm_Updating = false ;\n \t}", "title": "" }, { "docid": "12b2fe876139e32ff8fc7f1dc2eaf0e7", "score": "0.54634404", "text": "public void execute() {\n mContext.hideKeyboard();\n\n VehicleMessage request;\n if (mContext.isDisplayingCommands()) {\n request = mContext.generateCommandFromInput();\n } else {\n request = mContext.generateDiagnosticRequestFromInput();\n }\n if (request != null) {\n mContext.send(request);\n }\n }", "title": "" }, { "docid": "c8a1f760db9086de33dd936325be01fc", "score": "0.54560363", "text": "public void run() {\n ui.printWelcomeMessage();\n\n do {\n String rawLine = ui.readInput();\n commandExecutor.execute(rawLine);\n } while (!commandExecutor.isExit());\n\n ui.printByeMessage();\n }", "title": "" }, { "docid": "95bc39ea206b1a7b4884c4e11e4e6788", "score": "0.54492414", "text": "public synchronized void execute(String command){\n String[] tokens = command.split(\" \");\n\n knownCommands.get(tokens[0]).accept(tokens);\n }", "title": "" }, { "docid": "75a9cdd2179a922d125b16f885a25643", "score": "0.5446925", "text": "private void interpretAndExecute(String cmd) {\r\n\t\tString[] commands = cmd.split(\" \");\r\n\t\tif (cmd.equals(\"back\")) {\r\n\t\t\tgoBack();\r\n\t\t} else if (cmd.equals(\"view history\")) {\r\n\t\t\tviewHistory();\r\n\t\t} else if (commands[0].equals(\"visit\")) {\r\n\t\t\tvisitPage(commands[1]);\r\n\t\t} else if (cmd.equals(\"quit\")) {\r\n\t\t\tquit();\r\n\t\t} else if (cmd.equals(\"forward\")) {\r\n\t\t\tgoForward();\r\n\t\t}else {\r\n\t\t\tSystem.out.println(\"Command not recognized\");\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "316b028d6f27410c8522a4514028b040", "score": "0.54460096", "text": "void handleCommand() {\n String command = scan.next();\n switch (command) {\n case \"new\": {\n newWorld();\n break;\n }\n case \"load\": {\n String filename = scan.next();\n //loadWorld(filename);\n break;\n }\n case \"critters\": {\n String filename = scan.next();\n int n = scan.nextInt();\n loadCritters(filename, n);\n break;\n }\n case \"step\": {\n int n = scan.nextInt();\n advanceTime(n);\n break;\n }\n case \"info\": {\n worldInfo();\n break;\n }\n case \"hex\": {\n int c = scan.nextInt();\n int r = scan.nextInt();\n hexInfo(c, r);\n break;\n }\n case \"help\": {\n printHelp();\n break;\n }\n case \"exit\": {\n done = true;\n break;\n }\n default:\n System.out.println(command + \" is not a valid command.\");\n }\n }", "title": "" }, { "docid": "e4aa1226ef6f20a045487f3708361878", "score": "0.5441384", "text": "protected void commandLineInterface() throws UnknownHostException {\n\t\tSystem.out.println(\"#################################################\");\n\t\tSystem.out.println(\"#\\t\\tMAP-REDUCE FRAMEWORK\\t\\t#\");\n\t\tSystem.out.println(\"#\\t\\t\\t\\t\\t\\t#\");\n\t\tSystem.out.println(\"# Server:\"+InetAddress.getLocalHost().getHostAddress()+\"\\t\\t\\t\\t#\");\n\t\tSystem.out.println(\"# Port:\"+port+\"\\t\\t\\t\\t\\t#\");\t\n\t\tSystem.out.println(\"# Type help or man to view the man pages\\t#\");\n\t\tSystem.out.println(\"#\\t\\t\\t\\t\\t\\t#\");\n\t\tSystem.out.println(\"#################################################\");\n\t\tScanner in = new Scanner(System.in);\n\t\tdo {\n\t\t\tSystem.out.print(\"> \");\n\t\t\tString command;\n\t\t\tcommand = in.nextLine().trim();\n\t\t\tString[] line = command.split(\"\\\\s+\");\n\t\t\tif (line[0].equalsIgnoreCase(\"man\") || \n\t\t\t\t\t(line[0].equalsIgnoreCase(\"help\") && line.length==1))\n\t\t\t\tprintFull();\n\t\t\telse if (line[0].equalsIgnoreCase(\"help\"))\n\t\t\t\tif (line[1].equalsIgnoreCase(\"ls\"))\n\t\t\t\t\tprintLS();\n\t\t\t\telse if (line[1].equalsIgnoreCase(\"man\"))\n\t\t\t\t\tprintMan();\n\t\t\t\telse if (line[1].equalsIgnoreCase(\"q\"))\n\t\t\t\t\tprintQ();\n\t\t\t\telse if (line[1].equalsIgnoreCase(\"help\"))\n\t\t\t\t\tprintHelp();\n\t\t\t\telse if (line[1].equalsIgnoreCase(\"ld\"))\n\t\t\t\t\tprintLD();\n\t\t\t\telse if (line[1].equalsIgnoreCase(\"lf\"))\n\t\t\t\t\tprintLF();\n\t\t\t\telse\n\t\t\t\t\tunrecognized(line[1]);\n\t\t\telse if (line[0].equalsIgnoreCase(\"ls\")) {\n\t\t // tell the workers to send their files to you\n\t\t writeAllWorkers(Utils.M2W_REQ_LIST);\n\t\t\t\tsynchronized (this) {\n\t\t\t\t\tfor (WorkerConnection wc : workerQueue) {\n\t\t\t\t\t\tSystem.out.println(wc);\n\t\t\t\t\t\tif (line.length > 1 && line[1].equals(\"-l\"))\n\t\t\t\t\t\t\tprintFiles(wc.id);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\telse if (line[0].equalsIgnoreCase(\"q\")) {\n\t\t\t\tSystem.out.printf(\"Really quit? There %s %d job%s pending%n> \", \n\t\t\t\t\t\t(getJobs()==1?\"is\":\"are\"), getJobs(), (getJobs()==1?\"\":\"s\"));\n\t\t\t\tcommand = in.nextLine().trim();\n\t\t\t\tif (command.equalsIgnoreCase(\"y\") || command.equalsIgnoreCase(\"yes\")) \n\t\t\t\t\tstopServer();\n\t\t\t}\n\t\t\telse if (line[0].equalsIgnoreCase(\"ld\")) {\n\t\t\t\tif (line.length > 1) {\n\t\t\t\t\tList<String> filesToUse = new LinkedList<>();\n\t\t\t\t\tfor(int i = 2; i < line.length; i++)\n\t\t\t\t\t\tfilesToUse.add(line[i]);\n\t\t\t\t\tsetMRJob(line[1], filesToUse, false);\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tSystem.out.printf(\"Enter filename (operates on all worker files):%n> \");\n\t\t\t\t\tcommand = in.nextLine().trim();\n\t\t\t\t\tsetMRJob(command, new LinkedList<String>(), false);\n\t\t\t\t}\n\t\t\t}\n\t\t\telse if (line[0].equalsIgnoreCase(\"lf\")) {\n\t\t\t\tif (line.length == 3) {\n\t\t\t\t\tsendRegularFile(line[1], line[2]);\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tSystem.out.printf(\"Enter worker ID:%n> \");\n\t\t\t\t\tString wk = in.nextLine().trim();\n\t\t\t\t\tSystem.out.printf(\"Enter filename:%n> \");\n\t\t\t\t\tcommand = in.nextLine().trim();\n\t\t\t\t\tsendRegularFile(wk, command);\n\t\t\t\t}\n\t\t\t}\n\t\t\telse \n\t\t\t\tunrecognized(line[0]);\n\t\t} while (!isStopped());\n\t\tin.close();\n\t}", "title": "" }, { "docid": "4140321c93553f2a7ae684bee8fc8387", "score": "0.5418111", "text": "default Result beforeCommand(Runtime runtime, VM vm, State state, ThreadId threadId, Command cmd) {\n return Result.CONTINUE;\n }", "title": "" }, { "docid": "0b8cb66e08b4306be0af1db532524709", "score": "0.5405655", "text": "public static void executeCommand() {\n\t\tswitch (userCommand) {\n\t\t\tcase \"add\" :\n\t\t\t\tadd();\n\t\t\t\tbreak;\n\t\t\t\t\n\t\t\tcase \"delete\" :\n\t\t\t\tdelete();\n\t\t\t\tbreak;\n\t\t\t\t\n\t\t\tcase \"clear\" :\n\t\t\t\tclear();\n\t\t\t\tbreak;\n\t\t\t\n\t\t\tcase \"display\" :\t\t\t\n\t\t\t\tdisplay();\n\t\t\t\tbreak;\n\n\t\t\tcase \"exit\" :\n\t\t\t\tsc.close();\n\t\t\t\tSystem.exit(0);\n\t\t\t\tbreak;\n\t\t\t\t\n\t\t\tdefault :\n\t\t\t\t//throw an error if the command is not recognized\n\t\t\t\tthrow new Error(\"Unrecognized command type\");\n\t\t}\n\t}", "title": "" }, { "docid": "1529227e75047d372ed69ed3bc850559", "score": "0.5383844", "text": "@Override\n public String execute(HttpServletRequest request) {\n logger.info(COMMAND_REQUESTED_MESSAGE);\n final HttpSession session = request.getSession();\n session.invalidate();\n logger.info(COMMAND_EXECUTED_MESSAGE);\n return CommandManager.getMainCommand();\n }", "title": "" }, { "docid": "4168e82e61d7bde5829823a92e8e386c", "score": "0.5361035", "text": "private void processCommand(Command command) {\n \n String commandWord = command.getCommandWord();\n\n if (command.isUnknown()) {\n System.out.println(\"I don't know what you mean...\");\n return;\n }\n \n if (commandWord.equals(HELP)) {\n helpScreen();\n } \n \n if (commandWord.equals(GO)) {\n navigate(command);\n } \n\n if (commandWord.equals(QUIT)) {\n quitGame();\n }\n \n }", "title": "" }, { "docid": "25912eccc02a24bf9b90f38133a1a9f9", "score": "0.53575975", "text": "protected void listenCommand() {\n\tbyte\tcommand[] = new byte[128];\n\tint\tlen = 0;\n\ttry {\n\t if (!killCommandThread)\n\t\tlen = cmdPipe.read(command);\n\t //System.err.println(\"command len is \" + len);\n\t} catch (IOException e) {\n\t return;\n\t}\n\tif (len > 0)\n\t processCommand(command, len);\n }", "title": "" }, { "docid": "f4687dff88ebd375e11d874b3b999d1f", "score": "0.53543967", "text": "public abstract void execute(ICommand command);", "title": "" }, { "docid": "ebb542923332bf03ec0f47309e5a8c53", "score": "0.53370017", "text": "@Override\r\n\tpublic String executeCommand(HttpServletRequest request, HttpServletResponse response, String method)\r\n\t\t\tthrows IOException {\r\n\t\tLOGGER.info(\"Executing edit flight command\");\r\n\t\tString path = null;\r\n\t\tif (method.equals(\"POST\")) {\r\n\t\t\tpath = doPost(request, response);\r\n\t\t} else {\r\n\t\t\tpath = Urls.ERROR_PAGE;\r\n\t\t}\r\n\t\tLOGGER.info(\"Edit flight command has been executed.\");\r\n\t\treturn path;\r\n\t}", "title": "" }, { "docid": "6ddc801ec7b86a06ddaf00c842f96d0f", "score": "0.53269356", "text": "private static void executeDefault() {\n displayUnknownCommandMessage();\n\n }", "title": "" }, { "docid": "585bf14ec69f3a92caca8bb1a4840c99", "score": "0.5324787", "text": "public abstract void commandReceived(MessageReceivedEvent e, String invoker, StringTokenizer st);", "title": "" }, { "docid": "4d94b3c790b1882a3823943320e63aab", "score": "0.52716416", "text": "public abstract void execution();", "title": "" }, { "docid": "460eea2f07e462e06850309bcfbb80a9", "score": "0.52687365", "text": "String handleCommand(String input);", "title": "" }, { "docid": "4e0add4993b76b2d6bf1873750721850", "score": "0.5268258", "text": "private void onCommand_ordered(String command) {\n\t\tString[] split = command.split(\"\\\\s\");\n\t\tString operation = split[0];\n\t\tString parameters = null;\n\t\ttry {\n\t\t\tparameters = command.substring(operation.length() + 1);\n\n\t\t}catch(Exception e){\n\t\t\t//no parameters\n\t\t}\n\n\t\tSet<Long> outstandingAcks = new TreeSet<Long>();\n\n\t\tif (operation.equals(\"create\")) {\n\t\t\tif(parameters == null) {\n\t\t\t\t// no username specified\n\t\t\t\tSystem.out.println(\"No username specified. Unable to create account.\");\n\t\t\t} else {\n\t\t\t\toutstandingAcks = rcp_create(parameters, seq_num);\n\t\t\t\tcallback(\"create_account_callback\", new String[]{\"java.lang.String\", \"java.util.Set\", \"java.lang.Integer\", \"java.lang.Integer\"}, new Object[]{parameters, outstandingAcks, servers.first(), 5});\n\t\t\t\tcommandsInProgress++;\n\t\t\t}\n\t\t} else if(operation.equals(\"login\")) {\n\t\t\tif(parameters == null) {\n\t\t\t\t// no username specified\n\t\t\t\tSystem.out.println(\"No username specified. Unable to login.\");\n\t\t\t} else if(username != null){\n\t\t\t\t//someone else already logged in\n\t\t\t\tSystem.out.print(\"Account \" + username + \" is currently logged in.\");\n\t\t\t\tSystem.out.println(\"Please log out before you can log in with another account.\");\n\t\t\t}else {\n\t\t\t\tusername = parameters;\n\t\t\t\toutstandingAcks = rcp_login(parameters, seq_num);\n\t\t\t\tcallback(\"login_callback\", new String[]{\"java.lang.String\", \"java.util.Set\", \"java.lang.Integer\", \"java.lang.Integer\"}, new Object[]{parameters, outstandingAcks, servers.first(), 5});\n\t\t\t\tcommandsInProgress++;\n\t\t\t}\n\t\t} else if(operation.equals(\"logout\")) {\n\t\t\tif(parameters == null) {\n\t\t\t\t// no username specified\n\t\t\t\tSystem.out.println(\"No username specified. Unable to logout.\");\n\t\t\t} else {\n\t\t\t\tusername = null;\n\t\t\t\ttweets.clear();\n\t\t\t}\n\t\t} else if(operation.equals(\"post\")) {\n\t\t\tif(parameters == null) {\n\t\t\t\t// no tweet message\n\t\t\t\tSystem.out.println(\"No message specified. Unable to post tweet.\");\n\t\t\t} else if (username == null){\n\t\t\t\tSystem.out.println(\"You are not logged in. Please log in to post messages.\");\n\t\t\t} else {\n\t\t\t\toutstandingAcks = rcp_post(parameters, seq_num);\n\t\t\t\tcallback(\"post_callback\", new String[]{\"java.lang.String\", \"java.util.Set\", \"java.lang.Integer\", \"java.lang.Integer\"}, new Object[]{parameters, outstandingAcks, servers.first(), 5});\n\t\t\t\tcommandsInProgress++;\n\t\t\t}\n\t\t} else if(operation.equals(\"add\")) {\n\t\t\tif(parameters == null) {\n\t\t\t\t// no username to follow\n\t\t\t\tSystem.out.println(\"No username specified. Unable to follow user.\");\n\t\t\t} else {\n\t\t\t\toutstandingAcks = rcp_add(parameters, seq_num);\n\t\t\t\tcallback(\"add_callback\", new String[]{\"java.lang.String\", \"java.util.Set\", \"java.lang.Integer\", \"java.lang.Integer\"}, new Object[]{parameters, outstandingAcks, servers.first(), 5});\n\t\t\t\tcommandsInProgress++;\n\t\t\t}\n\t\t} else if(operation.equals(\"delete\")) {\n\t\t\tif(parameters == null) {\n\t\t\t\t// no username to unfollow\n\t\t\t\tSystem.out.println(\"No username specified. Unable to unfollow user.\");\n\t\t\t} else {\n\t\t\t\toutstandingAcks = rcp_delete(parameters, seq_num);\n\t\t\t\tcallback(\"delete_callback\", new String[]{\"java.lang.String\", \"java.util.Set\", \"java.lang.Integer\", \"java.lang.Integer\"}, new Object[]{parameters, outstandingAcks, servers.first(), 5});\n\t\t\t\tcommandsInProgress++;\n\t\t\t}\n\t\t} else if(operation.equals(\"read\")) {\n\t\t\tif(parameters != null) {\n\t\t\t\tSystem.out.println(\"No parameters should be provided for the read command.\");\n\t\t\t} else {\n\t\t\t\toutstandingAcks = rcp_read(parameters, seq_num);\n\t\t\t\tcallback(\"read_callback\", new String[]{\"java.lang.String\", \"java.util.Set\", \"java.lang.Integer\", \"java.lang.Integer\"}, new Object[]{parameters, outstandingAcks, servers.first(), 5});\n\t\t\t\tcommandsInProgress++;\n\t\t\t}\n\t\t} else if (operation.equals(COMMAND_START_TRANSACTION)){\n\t\t\toutstandingAcks = rcp_start_transaction(seq_num);\n\t\t\tcallback(\"start_transaction_callback\", new String[]{\"java.util.Set\", \"java.lang.Integer\", \"java.lang.Integer\"}, new Object[]{outstandingAcks, servers.first(), 5});\n\t\t\tcommandsInProgress++;\n\n\t\t} else if (operation.equals(COMMAND_COMMIT_TRANSACTION)){\n\t\t\toutstandingAcks = rcp_commit_transaction(seq_num);\n\t\t\tcallback(\"commit_transaction_callback\", new String[]{\"java.util.Set\", \"java.lang.Integer\", \"java.lang.Integer\"}, new Object[]{outstandingAcks, servers.first(), 5});\n\t\t\tcommandsInProgress++;\n\n\t\t} else {\n\t\t\tSystem.out.println(\"Unknown operation: \" + operation);\n\t\t}\n\t\tupdateSeqNum(outstandingAcks);\n\t}", "title": "" }, { "docid": "d33f6725b44a97aef8e7c422395e9dfe", "score": "0.5266592", "text": "public void processCommand (String command){\n\t\tverifyCommand(command);\n\t\t//System.out.println(\"d \" + command + \" w \" + a + \" x \" + location);\n\t\tboolean count = false; \n\t\t\n\t\tif (com.equals(\"q\")) {\n\t\t\tquit();\n\t\t}\n\t\telse if (location.length() < 2 || command.trim().length() <= 0) {\n\t\t\t//testing of getCommand();\n\t\t\tSystem.out.println(\"Error, try again!\");\n\t\t\t//System.out.println(\"a\");\n\t\t\tcom1 = getCommand();\n\t\t\t//System.out.println(com1);\n\t\t\tprocessCommand(com1);\n\t\t}\n\t\telse if(com.equals(\"i\")) {\n\t\t\t//System.out.println(\"e \" + count);\n\t\t\tcount = true;\n\t\t\tgrid.inspect(location);\n\t\t}\n\t\telse if(com.equals(\"f\")) {\n\t\t\tcount = true;\n\t\t\tgrid.flag(location);\n\t\t}\n\t\telse if (com.equals(\"u\")) {\n\t\t\tcount = true;\n\t\t\tgrid.unflag(location);\t\n\t\t}\n\t\telse {\n\t\t\tSystem.out.println(\"Error, try again!\");\n\t\t\t//System.out.println(\"b\");\n\t\t\tcom1 = getCommand();\n\t\t\tprocessCommand(com1);\n\t\t}\n\t\tif (count) {\n\t\t\t//commented out for testing\n\t\t\t//commented out to avoid having commands print out the grid\n\t\t\tgrid.processPrintBoard();\n\n\t\t\tif (grid.getGameState()) {\n\t\t\t\tstartRestart();\n\t\t\t}\n\t\t\tcount = false;\n\t\t}\n\t}", "title": "" }, { "docid": "d5fa9a414c8e65d7d3e214de838dc7c7", "score": "0.5266135", "text": "void execute(String command);", "title": "" }, { "docid": "d7056b97cfdc2b573343fae122afdb78", "score": "0.5265313", "text": "public void handle( Consumer<Session> command ) throws InterruptedException\n {\n workQueue.put( command );\n }", "title": "" }, { "docid": "6127c871a29c63e1f6013966ab256bc5", "score": "0.5254035", "text": "@Override\n\t\t\tpublic void commandCompleted(int arg0, int arg1) {\n\t\t\t\t\n\t\t\t}", "title": "" }, { "docid": "86828f4ca8f97c5600031f4359ca6e8c", "score": "0.5243411", "text": "public void serve() {\n try {\n String msg = ui.readCommand();\n Command command = Parser.parse(msg);\n command.execute(tasks, ui, storage);\n if (command.isExit()) {\n ui.close();\n }\n } catch (ParsingException e) {\n ui.respondParsingError(e.getMessage(), e.getUsageMsg());\n } catch (CommandExecutionException e) {\n ui.respondError(e.getMessage());\n }\n }", "title": "" }, { "docid": "30c7e28e370fd657ed196001f6d9048f", "score": "0.5242163", "text": "protected abstract Object commandRun (Object argument);", "title": "" }, { "docid": "4f6e4654b179beb83b0d2fe053ebab44", "score": "0.5238027", "text": "@Override\n\tpublic void MachineOn() {\n\t\tSystem.out.println(\"Machine is turned on\");\n\t\t\n\t}", "title": "" }, { "docid": "980ba851f130164329b4b58bd014be4c", "score": "0.522645", "text": "void onFinished() throws CommandParseException;", "title": "" }, { "docid": "3b6a941291d8da366a50a42ce75fa3f4", "score": "0.52214175", "text": "void run() {\n try {\n String input = myCommandWindow.getInput();\n myCommandHistory.save(input, \"\");\n myParsingFunc.accept(input);\n } catch (Exception e) {\n new Alert(Alert.AlertType.ERROR, e.getMessage()).show();\n }\n }", "title": "" }, { "docid": "881d9395c192fa9c759f1f2866d6bf12", "score": "0.521533", "text": "@Override protected void doCommand(MessageReceivedEvent event) {\n\r\n System.exit(0);\r\n }", "title": "" }, { "docid": "cdc7c1d585deada2da99df6a1c457abf", "score": "0.5211972", "text": "@Override\r\n\tpublic void processCommand(Command cmd) {\r\n\t\ttry {\r\n\t\t\tqueue.put(cmd);\r\n\t\t\t} catch (InterruptedException e) {\r\n\t\t}\t\t\t\r\n\t}", "title": "" }, { "docid": "f560b2e8e98924d3d041aa2d47f025cb", "score": "0.5208883", "text": "@Override\r\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n command = request.getParameter(\"command\");\r\n processRequest(request, response);\r\n }", "title": "" }, { "docid": "f560b2e8e98924d3d041aa2d47f025cb", "score": "0.5208883", "text": "@Override\r\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n command = request.getParameter(\"command\");\r\n processRequest(request, response);\r\n }", "title": "" }, { "docid": "b6250ea671e696d5770ccc0c0a2fb8ca", "score": "0.52058655", "text": "@EventSubscriber\n public static void onMessageReceived(MessageReceivedEvent event) {\n String[] argArray = event.getMessage().getContent().split(\" \");\n\n // First ensure at least the command and prefix is present, the arg length can be handled by your command func\n if (argArray.length == 0)\n return;\n\n // Check if the first arg (the command) starts with the prefix defined in the utils class\n if (!argArray[0].startsWith(BotUtils.PREFIX))\n return;\n\n // Extract the \"command\" part of the first arg out by just ditching the first character\n String commandStr = argArray[0].substring(1);\n\n // Load the rest of the args in the array into a List for safer access\n List<String> argsList = new ArrayList<>(Arrays.asList(argArray));\n argsList.remove(0); // Remove the command\n\n // Instead of delegating the work to a switch, automatically do it via calling the mapping if it exists\n\n\n\n if (commandMap.containsKey(commandStr))\n commandMap.get(commandStr).runCommand(event, argsList);\n\n\n }", "title": "" }, { "docid": "0904a16390bd900ce3afc5a81567884a", "score": "0.5202696", "text": "@Override\r\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n command = request.getParameter(\"command\");\r\n processRequest(request, response);\r\n }", "title": "" }, { "docid": "0904a16390bd900ce3afc5a81567884a", "score": "0.5202696", "text": "@Override\r\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n command = request.getParameter(\"command\");\r\n processRequest(request, response);\r\n }", "title": "" }, { "docid": "b7d2d24904c4561a7ac6b4e8aab9a524", "score": "0.5196008", "text": "public void notifyEvent(String commandCode, Object data) {\n\t\t//if (commandCode.equals(RCS_ControlTask.TASK_YIELD_MESSAGE)) {\n\t\t\t// an MCA is yielding control after completing a job\n\t\t//\taddOps(OPER_MCA_YIELD);\n\t\t//}\n\t}", "title": "" }, { "docid": "de42f475a5dd984a021550cf60e02c7e", "score": "0.51884645", "text": "@Override\r\n\tpublic void handlerCommand(Peer peer, Command cmd) throws PandaException {\n\t\t\r\n\t}", "title": "" }, { "docid": "b36f91163724741ff26d15287e0469e5", "score": "0.51876444", "text": "public void commandAction(Command cmd, Displayable disp) {\r\n\t\tif (cmd == this.OK_CMD && disp == this) {\r\n\t\t\t// FIXME use server authentication\r\n\t\t\t// Credentials c = this.retrieveUserInput();\r\n\t\t\t// if (c == null) {\r\n\t\t\t// return;\r\n\t\t\t// }\r\n\t\t\t// // authenticate user at tmblog server and log into server system\r\n\t\t\t// this.controller.authenticateUser(c);\r\n\t\t\tthis.controller.show(this.controller\r\n\t\t\t\t\t.getScreen(this.controller.MAIN_SCR));\r\n\r\n\t\t} else if (cmd == this.STANDALONE_CMD) {\r\n\t\t\tthis.authentiateLocalUser();\r\n\r\n\t\t} else if (cmd == this.EXIT_CMD) {\r\n\t\t\tthis.controller.confirmExit(this);\r\n\t\t}\r\n\t\t//#if ${polish.debugEnabled}\r\n\t\telse if (cmd == this.LOG_CMD) {\r\n\t\t\tDebug.showLog(Controller.getDisplay());\r\n\t\t}\r\n\t\t//#endif\r\n\t}", "title": "" }, { "docid": "d0c99bd7ea2582f9c0d894379898c502", "score": "0.5185307", "text": "@CommandMethod\n public void command(Repository repository, Machine machine) {\n ((SuperServer) machine).registerRepository(repository);\n }", "title": "" }, { "docid": "604a758376e32d2ba23b609119671d77", "score": "0.51671153", "text": "@Override\n\tpublic void run()\n\t{\n\t\tif (this.cmdArgs.size() > 0) {\n\t\t\tString action = this.cmdArgs.get(0);\n\t\t\tthis.logger.info(\"Executing the Task: \" + action);\n\t\t\tMockActions mock = MockActions.MOCK_PAUSE;\n\t\t\ttry\n\t\t\t{\n\t\t\t\tmock = MockActions.valueOf(action);\n\t\t\t}\n\t\t\tcatch(Exception e )\n\t\t\t{\n\t\t\t\tthis.logger.warn(\"Could not find action \" + mock.toString() +\n\t\t\t\t\t\t\" using MOCK_PAUSE\");\n\t\t\t}\n\n\t\t\tswitch( mock )\n\t\t\t{\n\t\t\tcase MOCK_PAUSE:\n\t\t\t\tthis.mockPause();\n\t\t\t\tbreak;\n\t\t\tcase MOCK_CPU:\n\t\t\t\tthis.mockCPUUsage();\n\t\t\t\tbreak;\n\t\t\tcase MOCK_FAIL:\n\t\t\t\tthis.mockFailed();\n\t\t\t\tbreak;\n\n\t\t\t}\n\t\t} else {\n\t\t\tthis.logger.warn(\"Task \" + this.task.getName() + \" has no configured command. Nothing to do.\");\n\t\t}\n\t}", "title": "" }, { "docid": "c01a598594efef691b2c8a839de876f5", "score": "0.5158471", "text": "private static void processCmd(String cmd) {\n\t\t// Split the cmd string by whitespace into cmd and params\n\t\tString[] splitCmd = cmd.split(\"\\\\s+\");\n\t\tcmd = splitCmd[0];\n\t\tString[] params = Arrays.copyOfRange(splitCmd, 1, splitCmd.length);\n\n\t\t// Check if cmd is valid & expected at this time\n\t\tif (!isCmdValid(cmd) || !isCmdExpected(cmd)) {\n\t\t\tvalidAndExpectedCommand = false;\n\t\t\treturn;\n\t\t}\n\n\t\tswitch (cmd.toLowerCase()) {\n\t\tcase \"open\":\n\t\t\t// Establish socket connections\n\t\t\testablishConnection(params);\n\t\t\tbreak;\n\t\tcase \"dict\":\n\t\t\t// Get list of supported dictionaries\n\t\t\tgetSupportedDicts(params);\n\t\t\tbreak;\n\t\tcase \"set\":\n\t\t\t// Set the currDict\n\t\t\tsetCurrDict(params);\n\t\t\tbreak;\n\t\tcase \"currdict\":\n\t\t\t// Print the currDict\n\t\t\tgetCurrDict(params);\n\t\t\tbreak;\n\t\tcase \"define\":\n\t\t\t// Get definitions\n\t\t\tdefine(params);\n\t\t\tbreak;\n\t\tcase \"match\":\n\t\t\t// Get exact matches\n\t\t\tmatch(params);\n\t\t\tbreak;\n\t\tcase \"prefixmatch\":\n\t\t\t// Get prefix matches\n\t\t\tprefixmatch(params);\n\t\t\tbreak;\n\t\tcase \"close\":\n\t\t\t// Print out response, Close socket, I/O connections\n\t\t\tcloseConnections(params);\n\t\t\tbreak;\n\t\tcase \"quit\":\n\t\t\t// Close socket, I/O connections & exit program\n\t\t\texit(params);\n\t\t\tbreak;\n\t\tdefault:\n\t\t\tSystem.err.println(\"900 Invalid command.\");\n\t\t\tbreak;\n\t\t}\n\t}", "title": "" }, { "docid": "8d2b0e36b1a536c5990a60a78ef02308", "score": "0.5158196", "text": "private void handle(CommandPacket packet) throws Exception {\n\t\tString port = packet.getPort();\r\n\t\tString dir = packet.getDir();\r\n\t\tString war = packet.getWar();\r\n\t\t\r\n\t\tif(!StringUtils.isNumeric(port)){\r\n\t\t\tSystem.out.println(\"port must be a number!\");\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tif(packet.getTmpdir()!=null)\r\n\t\t\tSystem.setProperty(\"java.io.tmpdir\", new File(System.getProperty(\"user.dir\"),packet.getTmpdir()).getAbsolutePath());\r\n\t\tcom.connectz.util.JettyServer js = new com.connectz.util.JettyServer(Integer.valueOf(port));\r\n\t\tif(dir!=null)\r\n\t\t\tjs.setResource_handler(dir, null);\r\n\t\tif(war!=null)\r\n\t\t\tjs.setWebapp(\"/\",null,new File(war));\r\n\t\tjs.start();\r\n\t}", "title": "" }, { "docid": "5fdb49dead5ceb176b7fe65f809b0022", "score": "0.5157335", "text": "public void switchOn(){\n _ON_COMMAND.execute();\n }", "title": "" }, { "docid": "6346b2b06de933d943862f0d4c5d54f2", "score": "0.51572496", "text": "default void getMachine(\n com.google.cloud.edgecontainer.v1.GetMachineRequest request,\n io.grpc.stub.StreamObserver<com.google.cloud.edgecontainer.v1.Machine> responseObserver) {\n io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetMachineMethod(), responseObserver);\n }", "title": "" }, { "docid": "a5d62b6e971534716b03bb22f7a25b76", "score": "0.5157201", "text": "@Override\r\n public boolean execute(Computer computer) {\r\n return true;\r\n }", "title": "" }, { "docid": "d6a0b3163cea5e490ebb3b1cfcf0bc38", "score": "0.51568276", "text": "public void onCommand (MessageReceivedEvent event, MessageChannel channel, String[] args);", "title": "" }, { "docid": "23a4e94b0bdb3a29fdefd32396e802f6", "score": "0.5156684", "text": "@Override\r\n\t\tpublic void run() {\r\n\t\t\t// keep running as long as agent has something to do and then stop\r\n\t\t\twhile (getSystem().respond(interaction, false, true, false)) {}\r\n\t\t}", "title": "" }, { "docid": "2532d05198ecb694c1346cf60cff728a", "score": "0.5150657", "text": "private void run() {\n\n\t\tScanner in = new Scanner(System.in);\n\t\tString cmdStr = null;\n\t\twhile (true) {\n\t\t\tcmdStr = in.nextLine();\n\t\t\tICommand cmd = null;\n\t\t\ttry {\n\t\t\t\tcmd = commander.parseCommand(cmdStr);\n\t\t\t\t// First we check what the command name was\n\t\t\t\tif (cmd.getName().equals(CmdConstants.CmdNames.CREATE)) {\n\t\t\t\t\tthis.doCreate(cmd);\n\t\t\t\t}\n\t\t\t\tif (cmd.getName().equals(CmdConstants.CmdNames.ADD)) {\n\t\t\t\t\tdoAdd(cmd);\n\t\t\t\t}\n\t\t\t\tif (cmd.getName().equals(CmdConstants.CmdNames.REMOVE)) {\n\t\t\t\t\tdoRemove(cmd);\n\t\t\t\t}\n\t\t\t\tif (cmd.getName().equals(CmdConstants.CmdNames.CHANGE)) {\n\t\t\t\t\tdoChange(cmd);\n\t\t\t\t}\n\t\t\t\tif (cmd.getName().equals(CmdConstants.CmdNames.LIST)) {\n\t\t\t\t\tdoList(cmd);\n\t\t\t\t}\n\t\t\t\tif (cmd.getName().equals(CmdConstants.CmdNames.EXPORT)) {\n\t\t\t\t\tdoExport(cmd);\n\t\t\t\t}\n\t\t\t\tif (cmd.getName().equals(CmdConstants.CmdNames.IMPORT)) {\n\t\t\t\t\tdoImport(cmd);\n\t\t\t\t}\n\t\t\t\tif (cmd.getName().equals(CmdConstants.CmdNames.HELP)) {\n\t\t\t\t\tdoHelp();\n\t\t\t\t}\n\t\t\t\tif (cmd.getName().equals(CmdConstants.CmdNames.EXIT)) {\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tSystem.out.println(String.format(\"System - Completed command \\\"%s\\\"\", cmd.toString()));\n\t\t\t} catch (Exception e) {\n\t\t\t\tSystem.out.println(e.getMessage());\n\t\t\t}\n\t\t}\n\t\tin.close();\n\t}", "title": "" }, { "docid": "6230d26139e8da052171a058252a7b0a", "score": "0.51470536", "text": "public void execute(String command)\n{\n if (command.equals(\"Quit\"))\n quitCommand();\n else\n if (command.equals(\"Full\"))\n fullCommand();\n else\n if (command.equals(\"Find\"))\n findCommand();\n else\n if (command.equals(\"Remove\"))\n removeCommand();\n else\n if (command.equals(\"Add\"))\n addCommand();\n else\n if (command.equals(\"Remove\"))\n removeCommand();\n else\n unknowCommand(command);\n}", "title": "" }, { "docid": "2ba83be9dbaf8dcef7ba25cda709e71b", "score": "0.5118077", "text": "private void execute(String message) {\n \t\tRunnable consoleCommand = parser.parseCommand(message);\n \n \t\tif (!(consoleCommand instanceof Internal))\n \t\t\tcommandStack.add(consoleCommand);\n \t\ttry {\n \t\t\tif (consoleCommand instanceof AuthCommand) {\n \t\t\t\tAuthCommand cmd = (AuthCommand) consoleCommand;\n \t\t\t\tif (!authority.authorize(cmd))\n \t\t\t\t\tthrow new SecurityException(\"Not authorized.\");\n \t\t\t}\n \t\t\tconsoleCommand.run();\n \t\t\tlastErrorMessage = \"OK\";\n \t\t} catch (Exception ex) {\n \t\t\tlastErrorMessage = ex.getMessage();\n \t\t}\n \t}", "title": "" }, { "docid": "24d722277b1fcb3bc2360f3fe474901d", "score": "0.5117129", "text": "private void processing(HttpServletRequest request,\n HttpServletResponse response)\n throws ServletException, IOException{\n String commandName = request.getParameter(\"command\");\n //Find a command in Command pool\n Command command = CommandPool.getCommand(commandName);\n //Send execute to command\n String forward = command.execute(request, response);\n //Create response\n response.sendRedirect(request.getContextPath() + forward);\n }", "title": "" }, { "docid": "1664206107576f7f404ff6e7d9e3c565", "score": "0.5114211", "text": "@Override\r\n\tpublic void execute() throws InstructionExecutionException {\n\t\tthis.robot.requestHelp();\r\n\r\n\t}", "title": "" }, { "docid": "b1632ef54d7d641364b6bf907b974c8d", "score": "0.5109865", "text": "public void execute () {\n\t\trobot.pickup();\n\n\n\t}", "title": "" }, { "docid": "c3f2a9a63dde8ea4e836992ac169e5c6", "score": "0.5108308", "text": "@SuppressWarnings(\"unused\")\n public String cmd(String instruction) {\n switch (instruction) {\n case \"status\":\n sendCmd(\"/status\");\n return \"Command Sent\";\n }\n return \"InvalidCommand\";\n }", "title": "" }, { "docid": "672b8330553c736a9f6ee3927f3f4584", "score": "0.51049435", "text": "@Override\r\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n\r\n command = request.getParameter(\"command\");\r\n processRequest(request, response);\r\n }", "title": "" }, { "docid": "e6e0aa8cbca70a420901f4afd4d476c9", "score": "0.5104096", "text": "@Override\n public void commandRead(String command) {\n if (command.startsWith(\"/\")) {\n try {\n CommandInstance commandInstance = translator.buildCommandInstance(command);\n if (commandInstance != null) {\n connector.sendCommand(commandInstance);\n LOGGER.debug(\"Issued command {}\", commandInstance);\n if (displayCommand(commandInstance))\n System.out.println(\"me>\" + commandInstance.toString());\n }\n } catch (IOException e) {\n LOGGER.error(\"Could not send command {}, the error was {}\", command, e);\n }\n } else {\n if (command.startsWith(\"quit\")) {\n quit = true;\n }\n\n }\n }", "title": "" }, { "docid": "33bad6386a5bf302a066e4b4027d6822", "score": "0.51015", "text": "public void execute() {\n\n\t\tint id = this.instruction.getIdInstruction();\n\t\tswitch (id) {\n\t\tcase Instruction.ALERT:\n\t\t\ttoAlert();\n\t\t\tbreak;\n\t\tcase Instruction.STOP:\n\t\t\ttoStop();\n\t\t\tbreak;\n\t\tdefault:\n\t\t\tLoggerHelper\n\t\t\t\t\t.error(\"Enodeb Entity: InstructionCallManager >> : Instruction unknown\");\n\n\t\t}\n\t}", "title": "" }, { "docid": "af33568e81d9918e0c20c7528b30123c", "score": "0.50955266", "text": "@Override\r\n\tpublic void processEvent(EHICommand e) {\n\t\t\r\n\t}", "title": "" }, { "docid": "f245e9821e65789aeb73156f88c412f3", "score": "0.5094986", "text": "public void run() {\r\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\r\n\t\twhile (browsing) {\r\n\t\t\ttry {\r\n\t\t\t\tpromptUser();\r\n\t\t\t\tString cmd = br.readLine();\r\n\t\t\t\tinterpretAndExecute(cmd);\r\n\t\t\t} catch (IOException e) {\r\n\t\t\t\tSystem.out.println(\"Oops! There was an error reading your command.\");\r\n\t\t\t}\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "9c07c6cd0a91dc6fb942d63310d3db00", "score": "0.5091838", "text": "@Override\n public CmdResult command(String command) {\n Matcher m = EXIT_CMD_RE.matcher(command);\n if (m.matches()) {\n downloadWorkers.shutdownNow();\n return CmdResult.STATUS_MODE;\n } else {\n return CmdResult.UNHANDLED;\n }\n }", "title": "" }, { "docid": "b93c6b51c0c86e9eb1476e03fa6748be", "score": "0.5090575", "text": "public abstract void execute(VirtualMachine x);", "title": "" }, { "docid": "6160b567b5cc04716275bae401049965", "score": "0.5072817", "text": "private void processCommand(String command) throws InvalidTimeException, EmptyNameException {\n if (command.equals(\"a\")) {\n createEvent();\n } else if (command.equals(\"n\")) {\n getNumberOfEvents();\n } else if (command.equals(\"v\")) {\n viewEvents();\n } else if (command.equals(\"s\")) {\n saveDay();\n } else if (command.equals(\"l\")) {\n loadDay();\n } else {\n System.out.println(\"Invalid Selection - Please try again\");\n }\n }", "title": "" }, { "docid": "53e452b212360a79357ff96c7f22bfa0", "score": "0.50712925", "text": "private void doCommand(int command, int param0, int param1, int param2) {\n\t\tUVMRobot aRobot = (UVMRobot) robot;\n\n\t\tswitch (command) {\n\t\tcase UVMRobot.COMMAND_VECTORDRIVE:\n\t\t\taRobot.vector(param0, param1, param2);\n\t\t\tbreak;\n\t\tcase UVMRobot.COMMAND_DRIVE:\n\t\t\taRobot.drive(param0, param1, param2);\n\t\t\tbreak;\n\t\tcase UVMRobot.COMMAND_STOP:\n\t\t\taRobot.setState(0);\n\t\t\tbreak;\n\t\tcase UVMRobot.COMMAND_START:\n\t\t\taRobot.setState(param0);\n\t\t\tbreak;\n\t\tcase UVMRobot.COMMAND_GETSTATE:\n\t\t\tint value = aRobot.getState();\n\t\t\ttxtOutput.setText(\"\" + value);\n\t\t\tbreak;\n\t\tcase UVMRobot.COMMAND_REPORTSTATE:\n\t\t\taRobot.reportState(param0);\n\t\t\tbreak;\n\t\tdefault:\n\t\t\ttxtInput.setText(\"Unknown\");\n\t\t}\n\t}", "title": "" }, { "docid": "b3bd5a9293356902bd957920e34682e7", "score": "0.50699013", "text": "public void doCommand(String cmd) const {\n\t\tStringArray cmds;\n\t\tint length;\n\t\tcmds=split(cmd,',');\n\t\tlength=cmds.length;\n\t\tfor(int i=0;i<length;i++){\n\t\t\tteasampleA.Command.execute(cmds.getAt(i));\n\t\t}\n/* #teaos:else\n\t\tteasampleA.Command.execute(cmd);\n #teaos:endif */\n\t}", "title": "" }, { "docid": "c0bea67afd98a76f97accf14d7d2378b", "score": "0.5069627", "text": "@Override\r\n public String executeCommand() {\r\n return COMMAND_WORD;\r\n }", "title": "" }, { "docid": "66ba48508451c383787622ae1e4c5144", "score": "0.50692415", "text": "Command receiveCommand();", "title": "" }, { "docid": "104439cc52dac278e828342afea1edcf", "score": "0.50647926", "text": "@Override\n\tpublic String doWork(String code) {\n\t\tSystem.out.println(\"home work\");\n\t\treturn ck.doWork(code);\n\t}", "title": "" }, { "docid": "89a8045a7c12ba4d9c0bb0ac43a03585", "score": "0.50613594", "text": "@Override\n public void onSocketCommand(String command) {\n\n }", "title": "" }, { "docid": "980373e02fbad7e58e0cd8881e756d67", "score": "0.5057403", "text": "String enterCommand(String command) throws ComputerAlgebraSystemEngineException;", "title": "" }, { "docid": "e923f2b6ed251f332fa511ab9d5c19b3", "score": "0.5056784", "text": "CommandResult execute(HttpServletRequest request, HttpServletResponse response);", "title": "" }, { "docid": "fcefd2f27e19c7e914b935f96a433dee", "score": "0.5034152", "text": "public static void execute() {\n if (CycleHandler.getInstance().getCurrentCycle() >= 8) {\n Fetch.getInstance().getDecodedInstruction().execute();\n }\n }", "title": "" }, { "docid": "6c36df33fe490db785545966374ab4d5", "score": "0.5026091", "text": "private void processCommands() throws IOException {\n\t\tString command;\n\t\twhile ((command = queue.poll()) != null) {\n\t\t\tswitch (command.toUpperCase()) {\n\t\t\tcase \"HALT\":\n\t\t\t\tSystem.out.println(\"HALTING SERVER\");\n\t\t\t\tshutdownNow();\n\t\t\t\tbreak;\n\t\t\tcase \"STOP\":\n\t\t\t\tSystem.out.println(\"STOPPING SERVER\");\n\t\t\t\tshutdown();\n\t\t\t\tbreak;\n\t\t\tcase \"FLUSH\":\n\t\t\t\tSystem.out.println(\"FLUSHING SERVER\");\n\t\t\t\thaltClients();\n\t\t\t\tbreak;\n\t\t\tcase \"SHOW\":\n\t\t\t\tSystem.out.println(\"SHOWING SERVER INFORMATION\");\n\t\t\t\tSystem.out.println(\"Clients count : \" + (selector.keys().size() - 1));\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\tSystem.out.println(\"Unknown command\");\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "d66e916c7757534fa1bdd242853061fe", "score": "0.50258166", "text": "public abstract void execute(CommandSender sender, String[] args);", "title": "" }, { "docid": "036f34bdbbb041fba497299381ad1a3b", "score": "0.50241417", "text": "protected abstract void action(String command, ActionEvent e);", "title": "" }, { "docid": "8de6dacac2d6b9559d56dc289b1b7537", "score": "0.50232214", "text": "@Override\n\t\t\tpublic void commandSent(ICommandToken token) {\n\t\t\t\t\n\t\t\t}", "title": "" }, { "docid": "6d1ad25de793c0119bdf687a8d0dc4f7", "score": "0.5011491", "text": "private void execute(ByteBuffer buffer) throws InterruptedException {\r\n ClientCommand command = new ClientCommand(buffer);\r\n logger.info(\"execute command {}\", command);\r\n requestManager.onClientRequest(command, this);\r\n }", "title": "" }, { "docid": "8cea22ddabe538dc7ef2bc0628e875eb", "score": "0.5010175", "text": "protected void commandFinished(ClientRuntime.Result result) {\n }", "title": "" }, { "docid": "c22e2be1053aac32edd491f3e726e088", "score": "0.5006319", "text": "private void doCommand(int command) {\n\t\tdoCommand(command, UVMRobot.COMMAND_NULL_PARAMETER,\n\t\t\t\tUVMRobot.COMMAND_NULL_PARAMETER,\n\t\t\t\tUVMRobot.COMMAND_NULL_PARAMETER);\n\t}", "title": "" }, { "docid": "c8acaecee1721bfb505e91f629bc5520", "score": "0.50035965", "text": "public interface Command \r\n{\r\n\t// execute returns void, all data sent back goes to the UI attributes\r\n\tpublic void execute( HttpServletRequest request ) throws Exception;\r\n}", "title": "" }, { "docid": "c4d781a0ee29ac1e53b9fc7822ad87e6", "score": "0.49997807", "text": "private void inputFromServer() throws Exception {\n while (!terminate) {\n String commandFromServer = ServerConnection.getInstance().serverCommands.take();\n String[] commands = commandFromServer.split(\"::\");\n\n switch (commands[0]) {\n case \"102\":\n successfulManualLogin(commands);\n break;\n case \"304\":\n receiveAllGadgets(commands);\n break;\n case \"316\":\n gadgetStateUpdate(commands);\n break;\n case \"373\":\n receiveGadgetGroups(commands);\n break;\n case \"901\":\n System.out.println(\"Exception msg: \" + commands[1]);\n break;\n default:\n System.out.println(\"Unknown msg from server: \" + commandFromServer);\n }\n }\n }", "title": "" }, { "docid": "85f56bcff818bffcca0df7e2e5f0cf93", "score": "0.49987513", "text": "protected void interpretCommand(String text)\n\t{\n\t\tInterpreter i = new Interpreter(codeBox.getText(), programObjects,\n\t\t\t\twindow, false);\n\t\tinterpreterGlobal = i;\n\t\tString args[] = new String[1];\n\t\targs[0] = text;\n\t\tth.interrupt();\n\t\tinterpreterGlobal.passArgs(args);\n\t\tth = new Thread(interpreterGlobal);\n\t\tth.start();\n\t}", "title": "" }, { "docid": "f0ed28b55a37457952c894948628b23a", "score": "0.4997748", "text": "public void interpretCommand(String commandLine) \n {\n gui.println(commandLine);\n Command command = parser.getCommand(commandLine);\n String aSecondWord = command.getSecondWord();\n String room = player.getCurrentRoomName();\n \n if(command.isUnknown()) {\n gui.println(\"I don't know what you mean...\");\n return;\n }\n\n String commandWord = command.getCommandWord();\n if (commandWord.equals(\"help\"))\n printHelp();\n \n else if (commandWord.equals(\"go\")) \n {\n player.goRoom(command);\n gui.println(\"\");\n gui.println(\"\");\n gui.println(\"\");\n gui.println(\"\");\n room = player.getCurrentRoomName();\n if(room.equals(\"downloads\"))\n {\n gui.enableTake2(false);\n\n }\n if(room.equals(\"mailbox\"))\n {\n gui.enableTake1(false);\n }\n if(room.equals(\"computer\"))\n {\n gui.enableTake1(true);\n gui.enableTake2(true);\n } \n\n }\n else if (commandWord.equals(\"quit\")) {\n if(command.hasSecondWord())\n gui.println(\"Quit what?\");\n else\n quit();\n }\n else if (commandWord.equals(\"back\"))\n {\n player.back();\n gui.enableTake1(true);\n gui.enableTake2(true);\n }\n else if (commandWord.equals(\"take\")) \n {\n \n if(room.equals(\"downloads\")) {\n if(i < level){\n \n int random = (int)(Math.random() * 4 + 1);\n \n if(random == 1) {\n player.take(\"cumbersomeVirus\");\n } \n if(random == 2) {\n player.take(\"Virus\");\n }\n if(random == 3) {\n player.take(\"superVirus\");\n }\n if(random == 4) {\n player.take(\"antiVirus\");\n player.removeAllVirus();\n }\n i = i+1;\n }\n else {\n gui.println(\"You can't take anything more!\");\n }\n \n \n }\n \n if(room.equals(\"mailbox\")) {\n \n int random2 = (int)(Math.random() * 10 + 1);\n \n if(random2 <= 3) {\n player.take(\"antiSpyware\");\n player.antiSpyware();\n player.removeOneItem(\"antiSpyware\");\n } \n else if(random2 <= 8) {\n player.take(\"gmail\");\n player.removeOneItem(\"gmail\");\n changeLevel();\n }\n else if(random2 <= 10) {\n player.take(\"noConnection\");\n player.noConnection();\n }\n \n }\n \n if(room.equals(\"computer\"))\n {\n gui.println(\"There is nothing to take in this folder\");\n }\n\n }\n \n else if (commandWord.equals(\"test\"))\n {\n if(command.hasSecondWord())\n test(aSecondWord);\n else\n gui.println(\"test what ?\");\n } \n else if (commandWord.equals(\"replay\"))\n {\n String name = \"go computer\";\n commandLine = name;\n command = parser.getCommand(commandLine);\n player.goRoom(command);\n level = 1;\n i = 0;\n setGUI(gui);\n player.removeAllVirus();\n gui.enableTake1(true);\n gui.enableTake2(true);\n gui.enable(true);\n \n }\n }", "title": "" }, { "docid": "e66a9ea558c8552d555c0115b6852cfd", "score": "0.4996912", "text": "void onArgument(String argument) throws CommandParseException;", "title": "" }, { "docid": "80e21c275d02e489937696e3d1669e50", "score": "0.49967667", "text": "public static void commandAction(char c) \n{\n\tswitch(c) {\n\t\tcase 'g' :\n\t\tcase 'G' :\n\t\t\tcreateHashtable();\n\t\t\tbreak;\n\t\tcase 'a' :\n\t\tcase 'A' :\n\t\t\tinsertMember();\n\t\t\tbreak;\n\t\tcase 'c' :\n\t\tcase 'C' :\n\t\t\tprint();\n\t\t\tbreak;\n\t\tcase 'r' :\n\t\tcase 'R' :\n\t\t\tpromptRemove();\n\t\t\tbreak;\n\t\tcase 'f' :\n\t\tcase 'F' :\n\t\t\tfindMember();\n\t\t\tbreak;\n\t\tcase 'i' :\n\t\tcase 'I' :\n\t\t\tpromptRemoveAt();\n\t\t\tbreak;\n\t\tcase 't' :\n\t\tcase 'T' :\n\t\t\tshowTimeComplexity();\n\t\t\tbreak;\n\t\tcase 'b' :\n\t\tcase 'B' :\n\t\t\tblockInfo();\n\t\t\tbreak;\n\t\tcase 'p' :\n\t\tcase 'P' :\n\t\t\tlistParameters();\n\t\t\tbreak;\n\t\tcase 'v' :\n\t\tcase 'V' :\n\t\t\tverifyReachable();\n\t\t\tbreak;\n\t\tcase 'h' :\n\t\tcase 'H' :\n\t\tcase '?' :\n\t\t\tprintMenu();\n\t\t\tbreak;\n\t\tcase 'q' : \n\t\tcase 'Q' : \n\t\t\tprogramSentinel = false;\n\t\t\tbreak;\n\t\tdefault : \n\t\t\tgetCommand();\n\t\t\tbreak;\t\n\t}\n}", "title": "" }, { "docid": "416a6b373433ce414b7f1a0884264dad", "score": "0.49954915", "text": "@Override\n\tpublic void doCommand() {\n\t\tif(mazeToPrnt != null){\n\t\t\t//Determines the type of View\n\t\t\tif(v.getClass().equals(CLIGameView.class)){\n\t\t\t\tv.PrintMazeOnScreen(mazeToPrnt.getBoard());\t\n\t\t\t}\n\t\t\telse{\n\t\t\t\tv.PrintMazeOnScreen(m.getMazeWithAllOptions(name));\n\t\t\t}\n\t\t\t//there is no maze toPrint\n\t\t}else{\n\t\t\tv.printLineOnScreen(\"The requested maze was not found- please try again with a correct name.\");\n\t\t}\n\t\t//bringing it back to null\n\t\tmazeToPrnt = null;\n\t}", "title": "" }, { "docid": "1185be21e829db24c825e91537afdf8f", "score": "0.49940738", "text": "@Override\n\t\t\tpublic void commandTerminated(int arg0, String arg1) {\n\t\t\t\t\n\t\t\t}", "title": "" } ]
b601c786ad7125a76e3762c9deb53ec0
AcAccountInterestedPartyRuleVoBase and AcAccountInterestedPartyRuleVoPk must match.
[ { "docid": "89c9ea54d93ace978723e3ef5264ed5f", "score": "0.4330605", "text": "public int hashCode()\n {\n int i = 0;\n if ( hasAccountCode() )\n i ^= getAccountCode().hashCode();\n if ( hasInterestedPartyRuleId() )\n i ^= getInterestedPartyRuleId().hashCode();\n return i;\n }", "title": "" } ]
[ { "docid": "14b6cf068e560fbda31c8cd16e00c2c3", "score": "0.4975578", "text": "@Override\r\n public boolean equals(Object object) {\n if (!(object instanceof DealrulePK)) {\r\n return false;\r\n }\r\n DealrulePK other = (DealrulePK) object;\r\n if ((this.dealRuleNo == null && other.dealRuleNo != null) || (this.dealRuleNo != null && !this.dealRuleNo.equals(other.dealRuleNo))) {\r\n return false;\r\n }\r\n if (this.seqId != other.seqId) {\r\n return false;\r\n }\r\n return true;\r\n }", "title": "" }, { "docid": "11c9616c4bcd6c2e5df56062852c4ee6", "score": "0.4803844", "text": "default void handleDCM110180PERSONParticipantObjectIdentification(final CountOfObjects check,\r\n final ParticipantObjectIdentification participantObject) throws ValidatorException {\n if (participantObject.getParticipantObjectIDTypeCode().equals(EventID.DCM_110180)) {\r\n if (!checkParticipantObjectIdentificationForSystemIfReportObjectIDAndSOPClass(\r\n participantObject)) {\r\n throw new ValidatorException(ValidatorErrorCode.ATNA_DEFAULT);\r\n }\r\n check.increasedcm110180();\r\n } else {\r\n // Check 1 Patient\r\n if (participantObject.getParticipantObjectTypeCode()\r\n .equals(ParticipantObjectTypeCode.PERSON.getActionCode())) {\r\n if (!checkRequiredPatientField(participantObject)) {\r\n throw new ValidatorException(ValidatorErrorCode.ATNA_DEFAULT);\r\n }\r\n check.increasedPatient();\r\n } else {\r\n throw new ValidatorException(ValidatorErrorCode.ATNA_DEFAULT);\r\n }\r\n }\r\n\r\n }", "title": "" }, { "docid": "9faca7dbe731ea2c10e9bd9dd796dfcb", "score": "0.47084725", "text": "@Override\r\n public boolean equals(Object object) {\n if (!(object instanceof NetsalesJCustomerExtraworkInvoicePK)) {\r\n return false;\r\n }\r\n NetsalesJCustomerExtraworkInvoicePK other = (NetsalesJCustomerExtraworkInvoicePK) object;\r\n if (this.nsId != other.nsId) {\r\n return false;\r\n }\r\n if (this.invoiceId != other.invoiceId) {\r\n return false;\r\n }\r\n return true;\r\n }", "title": "" }, { "docid": "d80717d4db3d33a32632acba0596dcb8", "score": "0.4685552", "text": "@Override\n public boolean equals(Object object) {\n if (!(object instanceof Rule)) {\n return false;\n }\n Rule other = (Rule) object;\n if ((this.rulePK == null && other.rulePK != null) || (this.rulePK != null && !this.rulePK.equals(other.rulePK))) {\n return false;\n }\n return true;\n }", "title": "" }, { "docid": "366803a50c678d6202e3f790ddfb68ca", "score": "0.4569748", "text": "@Override\r\n public boolean equals(Object object) {\n if (!(object instanceof PersonTrainingPK)) {\r\n return false;\r\n }\r\n PersonTrainingPK other = (PersonTrainingPK) object;\r\n if ((this.partyId == null && other.partyId != null) || (this.partyId != null && !this.partyId.equals(other.partyId))) {\r\n return false;\r\n }\r\n if ((this.trainingClassTypeId == null && other.trainingClassTypeId != null) || (this.trainingClassTypeId != null && !this.trainingClassTypeId.equals(other.trainingClassTypeId))) {\r\n return false;\r\n }\r\n if ((this.fromDate == null && other.fromDate != null) || (this.fromDate != null && !this.fromDate.equals(other.fromDate))) {\r\n return false;\r\n }\r\n return true;\r\n }", "title": "" }, { "docid": "d70808edc5fd60d5d75c8ca1727f2fcb", "score": "0.455529", "text": "private static void rule2OtherwiseSubInterfacesWin() {\r\n\t}", "title": "" }, { "docid": "2fea123b73e1a9f5ced9cf0fa2eb989f", "score": "0.45536688", "text": "@Override\n public boolean equals(Object object) {\n if (!(object instanceof IngenieroSoPK)) {\n return false;\n }\n IngenieroSoPK other = (IngenieroSoPK) object;\n if (this.idAreaConocimiento != other.idAreaConocimiento) {\n return false;\n }\n if ((this.sistemaOperativo == null && other.sistemaOperativo != null) || (this.sistemaOperativo != null && !this.sistemaOperativo.equals(other.sistemaOperativo))) {\n return false;\n }\n return true;\n }", "title": "" }, { "docid": "f0ec72c4d516610b9bebd663ccb145df", "score": "0.4542043", "text": "@Override\n public boolean equals(Object object) {\n if (!(object instanceof CbsSchemeDepositInterestDefinitionDetailsPK)) {\n return false;\n }\n CbsSchemeDepositInterestDefinitionDetailsPK other = (CbsSchemeDepositInterestDefinitionDetailsPK) object;\n if ((this.schemeCode == null && other.schemeCode != null) || (this.schemeCode != null && !this.schemeCode.equals(other.schemeCode))) {\n return false;\n }\n if ((this.interestMethod == null && other.interestMethod != null) || (this.interestMethod != null && !this.interestMethod.equals(other.interestMethod))) {\n return false;\n }\n return true;\n }", "title": "" }, { "docid": "df03c7f3d1e733a0ec39bdb5e2f3de24", "score": "0.44804618", "text": "@Override\r\n public boolean equals(Object object) {\n if (!(object instanceof ProvFacCustom)) {\r\n return false;\r\n }\r\n ProvFacCustom other = (ProvFacCustom) object;\r\n if ((this.provFacCustomPK == null && other.provFacCustomPK != null) || (this.provFacCustomPK != null && !this.provFacCustomPK.equals(other.provFacCustomPK))) {\r\n return false;\r\n }\r\n return true;\r\n }", "title": "" }, { "docid": "c4e3f3bcabae65dc0152a6c615bc8f0a", "score": "0.44688094", "text": "@Override\n public boolean equals(Object object) {\n if (!(object instanceof ClientFinancePK)) {\n return false;\n }\n ClientFinancePK other = (ClientFinancePK) object;\n if ((this.getEaCId() == null && other.getEaCId() != null) || (this.getEaCId() != null && !this.getEaCId().equals(other.getEaCId()))) {\n return false;\n }\n if ((this.getEaAccountType() == null && other.getEaAccountType() != null) || (this.getEaAccountType() != null && !this.getEaAccountType().equals(other.getEaAccountType()))) {\n return false;\n }\n if ((this.getEaAccountCode() == null && other.getEaAccountCode() != null) || (this.getEaAccountCode() != null && !this.getEaAccountCode().equals(other.getEaAccountCode()))) {\n return false;\n }\n if ((this.getParameterId() == null && other.getParameterId() != null) || (this.getParameterId() != null && !this.getParameterId().equals(other.getParameterId()))) {\n return false;\n }\n return true;\n }", "title": "" }, { "docid": "fcd8e227cca8b6feb7699c9a534d88f2", "score": "0.4461467", "text": "@Override\r\n public boolean equals(Object object) {\n if (!(object instanceof EarningPK)) {\r\n return false;\r\n }\r\n EarningPK other = (EarningPK) object;\r\n if ((this.idNumber == null && other.idNumber != null) || (this.idNumber != null && !this.idNumber.equals(other.idNumber))) {\r\n return false;\r\n }\r\n if (this.payslipNumber != other.payslipNumber) {\r\n return false;\r\n }\r\n if (this.printSequence != other.printSequence) {\r\n return false;\r\n }\r\n return true;\r\n }", "title": "" }, { "docid": "4b997237315842fd62e2b3f7556ad6da", "score": "0.44350848", "text": "@Override\r\n public boolean equals(Object object) {\n if (!(object instanceof ApnEntidadConvenio)) {\r\n return false;\r\n }\r\n ApnEntidadConvenio other = (ApnEntidadConvenio) object;\r\n if ((this.ecoId == null && other.ecoId != null) || (this.ecoId != null && !this.ecoId.equals(other.ecoId))) {\r\n return false;\r\n }\r\n return true;\r\n }", "title": "" }, { "docid": "7e55c556f20f7f7a5b6bf60ae842fa53", "score": "0.44283488", "text": "@Override\r\n public boolean equals(Object object) {\n if (!(object instanceof ExampleFeatureApplPK)) {\r\n return false;\r\n }\r\n ExampleFeatureApplPK other = (ExampleFeatureApplPK) object;\r\n if ((this.exampleId == null && other.exampleId != null) || (this.exampleId != null && !this.exampleId.equals(other.exampleId))) {\r\n return false;\r\n }\r\n if ((this.exampleFeatureId == null && other.exampleFeatureId != null) || (this.exampleFeatureId != null && !this.exampleFeatureId.equals(other.exampleFeatureId))) {\r\n return false;\r\n }\r\n if ((this.fromDate == null && other.fromDate != null) || (this.fromDate != null && !this.fromDate.equals(other.fromDate))) {\r\n return false;\r\n }\r\n return true;\r\n }", "title": "" }, { "docid": "11ea1c6c17a0566c1497dfc630115129", "score": "0.44190493", "text": "default boolean checkParticipantObjectIdentificationForPatientIDIfPersonAndPatient(\r\n final ParticipantObjectIdentification participantObject) {\r\n return participantObject.getParticipantObjectTypeCode()\r\n .equals(ParticipantObjectTypeCode.PERSON.getActionCode())\r\n && participantObject.getParticipantObjectTypeCodeRole()\r\n .equals(ParticipantObjectTypeCodeRole.PATIENT.getActionCode());\r\n }", "title": "" }, { "docid": "57709ec6584acde60adf72ac6309d20b", "score": "0.43911573", "text": "@Override\n public boolean validateObject(EloConnectionDetails eloConnectionDetails, IXConnection obj) {\n return eloConnectionDetails.isValidConnection(obj);\n }", "title": "" }, { "docid": "873d83175f263c905fd1636df9bfe336", "score": "0.4362621", "text": "@Override\r\n protected boolean doEquals(Object obj) {\r\n if (obj instanceof BsWhiteCompoundPkRefNest) {\r\n BsWhiteCompoundPkRefNest other = (BsWhiteCompoundPkRefNest)obj;\r\n if (!xSV(_compoundPkRefNestId, other._compoundPkRefNestId)) { return false; }\r\n return true;\r\n } else {\r\n return false;\r\n }\r\n }", "title": "" }, { "docid": "8dba7f386ef57cebca3398c78d8de073", "score": "0.43554837", "text": "@Override\n public boolean equals(Object object) {\n if (!(object instanceof IntfParamPK)) {\n return false;\n }\n IntfParamPK other = (IntfParamPK) object;\n if ((this.ivoid == null && other.ivoid != null) || (this.ivoid != null && !this.ivoid.equals(other.ivoid))) {\n return false;\n }\n if (this.intfIndex != other.intfIndex) {\n return false;\n }\n if ((this.name == null && other.name != null) || (this.name != null && !this.name.equals(other.name))) {\n return false;\n }\n return true;\n }", "title": "" }, { "docid": "baffb69a0c4e2d3d84f8a46bfba67a9d", "score": "0.43223763", "text": "protected void onBeforeMatchRefPk(ILfwRefModel rm) {}", "title": "" }, { "docid": "e148cc559c0871e5aa2d8e1e3465a4c5", "score": "0.43215805", "text": "@Override\r\n public boolean equals(Object object) {\n if (!(object instanceof IssuedbooksPK)) {\r\n return false;\r\n }\r\n IssuedbooksPK other = (IssuedbooksPK) object;\r\n if ((this.bookid == null && other.bookid != null) || (this.bookid != null && !this.bookid.equals(other.bookid))) {\r\n return false;\r\n }\r\n if ((this.uname == null && other.uname != null) || (this.uname != null && !this.uname.equals(other.uname))) {\r\n return false;\r\n }\r\n return true;\r\n }", "title": "" }, { "docid": "e9a898a46e09b265679125ef483d1a54", "score": "0.42733508", "text": "@Autowired\n public ValidAssociationValidator(\n IPartyService partyService, IPartyReferenceService partyReferenceService) {\n this.partyService = partyService;\n this.partyReferenceService = partyReferenceService;\n }", "title": "" }, { "docid": "3b41261ba72ecbe11915d316ad0113ea", "score": "0.4266491", "text": "@Override\n public boolean equals(Object that) {\n if (this == that) {\n return true;\n }\n if (that == null) {\n return false;\n }\n if (getClass() != that.getClass()) {\n return false;\n }\n ForeignPayDO other = (ForeignPayDO) that;\n return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))\n && (this.getBizNo() == null ? other.getBizNo() == null : this.getBizNo().equals(other.getBizNo()))\n && (this.getProductCode() == null ? other.getProductCode() == null : this.getProductCode().equals(other.getProductCode()))\n && (this.getGid() == null ? other.getGid() == null : this.getGid().equals(other.getGid()))\n && (this.getMerchantOrderNo() == null ? other.getMerchantOrderNo() == null : this.getMerchantOrderNo().equals(other.getMerchantOrderNo()))\n && (this.getMerchOrderNo() == null ? other.getMerchOrderNo() == null : this.getMerchOrderNo().equals(other.getMerchOrderNo()))\n && (this.getMerchantUserId() == null ? other.getMerchantUserId() == null : this.getMerchantUserId().equals(other.getMerchantUserId()))\n && (this.getMerchantCardNo() == null ? other.getMerchantCardNo() == null : this.getMerchantCardNo().equals(other.getMerchantCardNo()))\n && (this.getMerchantAccNo() == null ? other.getMerchantAccNo() == null : this.getMerchantAccNo().equals(other.getMerchantAccNo()))\n && (this.getProductStatus() == null ? other.getProductStatus() == null : this.getProductStatus().equals(other.getProductStatus()))\n && (this.getInlet() == null ? other.getInlet() == null : this.getInlet().equals(other.getInlet()))\n && (this.getMemo() == null ? other.getMemo() == null : this.getMemo().equals(other.getMemo()))\n && (this.getTransferNo() == null ? other.getTransferNo() == null : this.getTransferNo().equals(other.getTransferNo()))\n && (this.getTransferBackNo() == null ? other.getTransferBackNo() == null : this.getTransferBackNo().equals(other.getTransferBackNo()))\n && (this.getForeignPayNo() == null ? other.getForeignPayNo() == null : this.getForeignPayNo().equals(other.getForeignPayNo()))\n && (this.getChargeNo() == null ? other.getChargeNo() == null : this.getChargeNo().equals(other.getChargeNo()))\n && (this.getBatchNo() == null ? other.getBatchNo() == null : this.getBatchNo().equals(other.getBatchNo()))\n && (this.getTradeName() == null ? other.getTradeName() == null : this.getTradeName().equals(other.getTradeName()))\n && (this.getTradeAmount() == null ? other.getTradeAmount() == null : this.getTradeAmount().equals(other.getTradeAmount()))\n && (this.getBuyerFee() == null ? other.getBuyerFee() == null : this.getBuyerFee().equals(other.getBuyerFee()))\n && (this.getPartnerFee() == null ? other.getPartnerFee() == null : this.getPartnerFee().equals(other.getPartnerFee()))\n && (this.getCurrency() == null ? other.getCurrency() == null : this.getCurrency().equals(other.getCurrency()))\n && (this.getBuyerUserId() == null ? other.getBuyerUserId() == null : this.getBuyerUserId().equals(other.getBuyerUserId()))\n && (this.getBuyerCardNo() == null ? other.getBuyerCardNo() == null : this.getBuyerCardNo().equals(other.getBuyerCardNo()))\n && (this.getBuyerAccNo() == null ? other.getBuyerAccNo() == null : this.getBuyerAccNo().equals(other.getBuyerAccNo()))\n && (this.getBuyerRealName() == null ? other.getBuyerRealName() == null : this.getBuyerRealName().equals(other.getBuyerRealName()))\n && (this.getSupervisionAccNo() == null ? other.getSupervisionAccNo() == null : this.getSupervisionAccNo().equals(other.getSupervisionAccNo()))\n && (this.getBankCode() == null ? other.getBankCode() == null : this.getBankCode().equals(other.getBankCode()))\n && (this.getBankAccountNo() == null ? other.getBankAccountNo() == null : this.getBankAccountNo().equals(other.getBankAccountNo()))\n && (this.getSellerRealName() == null ? other.getSellerRealName() == null : this.getSellerRealName().equals(other.getSellerRealName()))\n && (this.getFailReason() == null ? other.getFailReason() == null : this.getFailReason().equals(other.getFailReason()))\n && (this.getSecIndex() == null ? other.getSecIndex() == null : this.getSecIndex().equals(other.getSecIndex()))\n && (this.getRawAddTime() == null ? other.getRawAddTime() == null : this.getRawAddTime().equals(other.getRawAddTime()))\n && (this.getRawUpdateTime() == null ? other.getRawUpdateTime() == null : this.getRawUpdateTime().equals(other.getRawUpdateTime()))\n && (this.getIbanNo() == null ? other.getIbanNo() == null : this.getIbanNo().equals(other.getIbanNo()));\n }", "title": "" }, { "docid": "ba44485ebd8e2e2ac63e1b911b5fe52e", "score": "0.4253353", "text": "@Test\n\tpublic void hashCodeDifferentObjects() {\n\t\tDiscontinueParameters params1 = this.getDefaultRecord();\n\t\tDiscontinueParameters params2 = this.getAlternateRecord();\n\t\tAssert.assertNotEquals(params1.hashCode(), params2.hashCode());\n\t}", "title": "" }, { "docid": "f90753b159760842efb2fc4106a1443d", "score": "0.42490754", "text": "public boolean equals(Object o) {\r\n if (o instanceof RecordID) {\r\n RecordID rid = (RecordID)o;\r\n if (libraryAware) {\r\n if (localID == rid.localID && libraryID == rid.libraryID)\r\n return true;\r\n else\r\n return false;\r\n } else {\r\n if (localID == rid.localID)\r\n return true;\r\n else\r\n return false;\r\n }\r\n } else\r\n return false;\r\n }", "title": "" }, { "docid": "6982c5eb22d86e78a3f9f96149c09b56", "score": "0.42452365", "text": "@Test\n public void testOPLVCandidateParty() {\n\tOPLVCandidate candidate = initializeTestCandidate();\n\tassertEquals(party, candidate.getParty());\n }", "title": "" }, { "docid": "5f2a135529c5bd0210560409e682448b", "score": "0.42361212", "text": "@Override\n public boolean equals(Object object) {\n if (!(object instanceof CourseTakesPlaceInClassroomPK)) {\n return false;\n }\n CourseTakesPlaceInClassroomPK other = (CourseTakesPlaceInClassroomPK) object;\n if ((this.courseCourseCode == null && other.courseCourseCode != null) || (this.courseCourseCode != null && !this.courseCourseCode.equals(other.courseCourseCode))) {\n return false;\n }\n if ((this.classroomIdclassroom == null && other.classroomIdclassroom != null) || (this.classroomIdclassroom != null && !this.classroomIdclassroom.equals(other.classroomIdclassroom))) {\n return false;\n }\n return true;\n }", "title": "" }, { "docid": "a3a8c6504db82b0e18d00bf2897c5e7b", "score": "0.42259097", "text": "public static void validateOveride(MolgenisMetaData model)\r\n\t{\r\n\t\t// TODO\r\n\r\n\t}", "title": "" }, { "docid": "43b93a42cbf5985b01a8a4667e44bd81", "score": "0.4219936", "text": "@Override\r\n public boolean equals(Object object) {\n if (!(object instanceof DiagnosticoPK)) {\r\n return false;\r\n }\r\n DiagnosticoPK other = (DiagnosticoPK) object;\r\n if (this.idEnfermedad != other.idEnfermedad) {\r\n return false;\r\n }\r\n if (this.idConsulta != other.idConsulta) {\r\n return false;\r\n }\r\n return true;\r\n }", "title": "" }, { "docid": "8bdf92f9dfab5a585c8593269894f498", "score": "0.4212259", "text": "@Override\n public boolean equals(Object object) {\n if (!(object instanceof ObserverPK)) {\n return false;\n }\n ObserverPK other = (ObserverPK) object;\n if ((this.observerCode == null && other.observerCode != null) || (this.observerCode != null && !this.observerCode.equals(other.observerCode))) {\n return false;\n }\n if ((this.year == null && other.year != null) || (this.year != null && !this.year.equals(other.year))) {\n return false;\n }\n return true;\n }", "title": "" }, { "docid": "fca01dcd05169fab5a702ae278e7e6c2", "score": "0.42046985", "text": "@Override\n public boolean equals(Object object) {\n if (!(object instanceof AsignacionExcepcionesHorariosDiariosPK)) {\n return false;\n }\n AsignacionExcepcionesHorariosDiariosPK other = (AsignacionExcepcionesHorariosDiariosPK) object;\n if ((this.codigoExcepcion == null && other.codigoExcepcion != null) || (this.codigoExcepcion != null && !this.codigoExcepcion.equals(other.codigoExcepcion))) {\n return false;\n }\n if ((this.fechaAsignacion == null && other.fechaAsignacion != null) || (this.fechaAsignacion != null && !this.fechaAsignacion.equals(other.fechaAsignacion))) {\n return false;\n }\n if ((this.numeroDocumentoFuncionario == null && other.numeroDocumentoFuncionario != null) || (this.numeroDocumentoFuncionario != null && !this.numeroDocumentoFuncionario.equals(other.numeroDocumentoFuncionario))) {\n return false;\n }\n return true;\n }", "title": "" }, { "docid": "bc5e1eafd5faa57ee6b41e88b26e0a70", "score": "0.41941425", "text": "@Override\n public boolean equals(Object object) {\n if (!(object instanceof KMSpecialtyPK)) {\n return false;\n }\n KMSpecialtyPK other = (KMSpecialtyPK) object;\n if (this.kmId != other.kmId) {\n return false;\n }\n if ((this.terminologyScheme == null && other.terminologyScheme != null) || (this.terminologyScheme != null && !this.terminologyScheme.equals(other.terminologyScheme))) {\n return false;\n }\n if ((this.terminologyCode == null && other.terminologyCode != null) || (this.terminologyCode != null && !this.terminologyCode.equals(other.terminologyCode))) {\n return false;\n }\n return true;\n }", "title": "" }, { "docid": "4fe7a3f8f750a9082cea3cc619b9ddad", "score": "0.41770485", "text": "@Override\n public boolean equals(Object object) {\n if (!(object instanceof NotaartigoPK)) {\n return false;\n }\n NotaartigoPK other = (NotaartigoPK) object;\n if (this.usuarioIdusuario != other.usuarioIdusuario) {\n return false;\n }\n if (this.artigoIdartigo != other.artigoIdartigo) {\n return false;\n }\n return true;\n }", "title": "" }, { "docid": "38b818b19c5112151c73d46b4585eb63", "score": "0.41757047", "text": "@Override\r\n public boolean equals(Object object) {\n if (!(object instanceof DetallereciboPK)) {\r\n return false;\r\n }\r\n DetallereciboPK other = (DetallereciboPK) object;\r\n if (this.recibo != other.recibo) {\r\n return false;\r\n }\r\n if (this.concepto != other.concepto) {\r\n return false;\r\n }\r\n return true;\r\n }", "title": "" }, { "docid": "267b1276e21c7b2833656fa133117b12", "score": "0.41706365", "text": "@Override\r\n public boolean equals(Object object) {\n if (!(object instanceof Tipofondoxafp)) {\r\n return false;\r\n }\r\n Tipofondoxafp other = (Tipofondoxafp) object;\r\n if ((this.tipofondoxafpPK == null && other.tipofondoxafpPK != null) || (this.tipofondoxafpPK != null && !this.tipofondoxafpPK.equals(other.tipofondoxafpPK))) {\r\n return false;\r\n }\r\n return true;\r\n }", "title": "" }, { "docid": "5f5b0688fb950ce825f027df95b6943c", "score": "0.41682327", "text": "@Override\n public boolean equals(Object that) {\n if (this == that) {\n return true;\n }\n if (that == null) {\n return false;\n }\n if (getClass() != that.getClass()) {\n return false;\n }\n Custom other = (Custom) that;\n return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))\n && (this.getGlobalId() == null ? other.getGlobalId() == null : this.getGlobalId().equals(other.getGlobalId()))\n && (this.getName() == null ? other.getName() == null : this.getName().equals(other.getName()))\n && (this.getIdCard() == null ? other.getIdCard() == null : this.getIdCard().equals(other.getIdCard()))\n && (this.getBankCard() == null ? other.getBankCard() == null : this.getBankCard().equals(other.getBankCard()))\n && (this.getMobile() == null ? other.getMobile() == null : this.getMobile().equals(other.getMobile()))\n && (this.getStatus() == null ? other.getStatus() == null : this.getStatus().equals(other.getStatus()))\n && (this.getDeviceId() == null ? other.getDeviceId() == null : this.getDeviceId().equals(other.getDeviceId()))\n && (this.getCallback() == null ? other.getCallback() == null : this.getCallback().equals(other.getCallback()))\n && (this.getRetryNum() == null ? other.getRetryNum() == null : this.getRetryNum().equals(other.getRetryNum()))\n && (this.getLoanApps() == null ? other.getLoanApps() == null : this.getLoanApps().equals(other.getLoanApps()))\n && (this.getIp() == null ? other.getIp() == null : this.getIp().equals(other.getIp()))\n && (this.getQq() == null ? other.getQq() == null : this.getQq().equals(other.getQq()))\n && (this.getWechat() == null ? other.getWechat() == null : this.getWechat().equals(other.getWechat()))\n && (this.getHeadPortrait() == null ? other.getHeadPortrait() == null : this.getHeadPortrait().equals(other.getHeadPortrait()))\n && (this.getLatitude() == null ? other.getLatitude() == null : this.getLatitude().equals(other.getLatitude()))\n && (this.getLongitude() == null ? other.getLongitude() == null : this.getLongitude().equals(other.getLongitude()))\n && (this.getAnalysisType() == null ? other.getAnalysisType() == null : this.getAnalysisType().equals(other.getAnalysisType()))\n && (this.getConclusion() == null ? other.getConclusion() == null : this.getConclusion().equals(other.getConclusion()))\n && (this.getBadPoints() == null ? other.getBadPoints() == null : this.getBadPoints().equals(other.getBadPoints()))\n && (this.getGoodPoints() == null ? other.getGoodPoints() == null : this.getGoodPoints().equals(other.getGoodPoints()))\n && (this.getSource() == null ? other.getSource() == null : this.getSource().equals(other.getSource()))\n && (this.getAppKey() == null ? other.getAppKey() == null : this.getAppKey().equals(other.getAppKey()))\n && (this.getCreateTime() == null ? other.getCreateTime() == null : this.getCreateTime().equals(other.getCreateTime()))\n && (this.getImei() == null ? other.getImei() == null : this.getImei().equals(other.getImei()))\n && (this.getIdfa() == null ? other.getIdfa() == null : this.getIdfa().equals(other.getIdfa()))\n && (this.getReason() == null ? other.getReason() == null : this.getReason().equals(other.getReason()));\n }", "title": "" }, { "docid": "0c20cf374929f672de706a039d78fef1", "score": "0.4166984", "text": "@Override\r\n public boolean equals(Object object) {\n if (!(object instanceof EvolucionrendimientoHasPruebaRendimientoPK)) {\r\n return false;\r\n }\r\n EvolucionrendimientoHasPruebaRendimientoPK other = (EvolucionrendimientoHasPruebaRendimientoPK) object;\r\n if (this.evolucionRendimientoidEvolucionRendimiento != other.evolucionRendimientoidEvolucionRendimiento) {\r\n return false;\r\n }\r\n if (this.pruebaRendimientoId != other.pruebaRendimientoId) {\r\n return false;\r\n }\r\n return true;\r\n }", "title": "" }, { "docid": "5ef1e158744a7b077e430dadfefa186a", "score": "0.41559392", "text": "@Override\n public boolean equals(Object object) {\n if (!(object instanceof PersonaHasRolPK)) {\n return false;\n }\n PersonaHasRolPK other = (PersonaHasRolPK) object;\n if ((this.personanumeroDocumento == null && other.personanumeroDocumento != null) || (this.personanumeroDocumento != null && !this.personanumeroDocumento.equals(other.personanumeroDocumento))) {\n return false;\n }\n if ((this.personaDocumentoidDocumento == null && other.personaDocumentoidDocumento != null) || (this.personaDocumentoidDocumento != null && !this.personaDocumentoidDocumento.equals(other.personaDocumentoidDocumento))) {\n return false;\n }\n if ((this.rolidRol == null && other.rolidRol != null) || (this.rolidRol != null && !this.rolidRol.equals(other.rolidRol))) {\n return false;\n }\n return true;\n }", "title": "" }, { "docid": "faf0b91f9912b6749a4deb05a6b08e9e", "score": "0.41502702", "text": "@Override\r\n\tpublic boolean equals(Object obj) {\r\n\t\tclsCorporateMasterModel_ID objModelId = (clsCorporateMasterModel_ID) obj;\r\n\t\tif (this.strCorporateCode.equals(objModelId.getStrCorporateCode()) && this.strClientCode.equals(objModelId.getStrClientCode())) {\r\n\t\t\treturn true;\r\n\t\t} else {\r\n\t\t\treturn false;\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "a1c1ce67cc41890f3e53aafa42943cf0", "score": "0.4130372", "text": "@Override\r\n public boolean equals(Object object) {\n if (!(object instanceof InasistenciaContrato)) {\r\n return false;\r\n }\r\n InasistenciaContrato other = (InasistenciaContrato) object;\r\n if ((this.id == null && other.id != null) || (this.id != null && !this.id.equals(other.id))) {\r\n return false;\r\n }\r\n return true;\r\n }", "title": "" }, { "docid": "2e98b3199332b9115578fcdaecb30170", "score": "0.41281232", "text": "@Override\n\tpublic void requestCommConversationIdCallBack(Object resultObj) {\n\t\tsuper.requestCommConversationIdCallBack(resultObj);\n\t\t/**603添加还款账户接口币种校验*/\n\t\tString accountId = (String) wbAccountList.get(wbSelection).get(Loan.LOAN_ACCOUNTID_RES);\n\t\t/**603添加还款账户接口币种校验*/\n\t\trequestPsnLOANPayerAcountCheck(accountId, currency);\n\t}", "title": "" }, { "docid": "829c7635a31ba926db1c9c53c5ca3945", "score": "0.41278347", "text": "@Override\r\n public boolean equals(Object object) {\n if (!(object instanceof Dependiente)) {\r\n return false;\r\n }\r\n Dependiente other = (Dependiente) object;\r\n if ((this.dependientePK == null && other.dependientePK != null) || (this.dependientePK != null && !this.dependientePK.equals(other.dependientePK))) {\r\n return false;\r\n }\r\n return true;\r\n }", "title": "" }, { "docid": "80efcd5b0dc26ba43b3bb0c0b6270b69", "score": "0.41165113", "text": "private boolean isExactResponsibilityMatch(RuleResponsibilityBo newResponsibility, RuleResponsibilityBo existingResponsibility) {\n \tif (existingResponsibility.getResponsibilityId().equals(newResponsibility.getResponsibilityId())) {\n \t\treturn true;\n \t}\n \tif (existingResponsibility.getRuleResponsibilityName().equals(newResponsibility.getRuleResponsibilityName()) &&\n \t\t\texistingResponsibility.getRuleResponsibilityType().equals(newResponsibility.getRuleResponsibilityType()) &&\n \t\t\texistingResponsibility.getApprovePolicy().equals(newResponsibility.getApprovePolicy()) &&\n \t\t\texistingResponsibility.getActionRequestedCd().equals(newResponsibility.getActionRequestedCd()) &&\n \t\t\texistingResponsibility.getPriority().equals(newResponsibility.getPriority())) {\n \t\treturn true;\n \t}\n \treturn false;\n }", "title": "" }, { "docid": "93cc67c3b5e433725e749b529cfb6d05", "score": "0.41122922", "text": "@Override\n public boolean equals(Object object) {\n if (!(object instanceof AgendaCompartidaPK)) {\n return false;\n }\n AgendaCompartidaPK other = (AgendaCompartidaPK) object;\n if ((this.owner == null && other.owner != null) || (this.owner != null && !this.owner.equals(other.owner))) {\n return false;\n }\n if (this.agenda != other.agenda) {\n return false;\n }\n if ((this.compartido == null && other.compartido != null) || (this.compartido != null && !this.compartido.equals(other.compartido))) {\n return false;\n }\n return true;\n }", "title": "" }, { "docid": "6d5d77696421458eb2c85ca82e828b22", "score": "0.41044515", "text": "@Test\n\tpublic void testNotBrokenOtherPOChanges() throws Exception {\n\t\tfinal IProofAttempt pa = pc.createProofAttempt(PO1, TEST, null);\n\t\tincreasePOStamp(PO2);\n\t\tassertFalse(pa.isBroken());\n\t}", "title": "" }, { "docid": "304183ab2988318c6b98f875973d0522", "score": "0.40946972", "text": "public abstract void validateAccountCompliance(Account account);", "title": "" }, { "docid": "fa60f733104e7fd28a8a430ce96a7029", "score": "0.40916368", "text": "@Override\n public boolean equals(Object object) {\n if (!(object instanceof ProfesionXPuesto)) {\n return false;\n }\n ProfesionXPuesto other = (ProfesionXPuesto) object;\n if ((this.profesionXPuestoPK == null && other.profesionXPuestoPK != null) || (this.profesionXPuestoPK != null && !this.profesionXPuestoPK.equals(other.profesionXPuestoPK))) {\n return false;\n }\n return true;\n }", "title": "" }, { "docid": "01afd591b2ee292f05756375114e2246", "score": "0.40846407", "text": "public boolean equals(Object other) {\n\t\tif ( (this == other ) ) return true;\n\t\tif ( (other == null ) ) return false;\n\t\tif ( !(other instanceof SbiObjParuseId) ) return false;\n\t\tSbiObjParuseId castOther = ( SbiObjParuseId ) other; \n\t\treturn (this.getSbiObjPar()==castOther.getSbiObjPar()) || \n\t\t(this.getSbiObjPar()!=null && castOther.getSbiObjPar()!=null && this.getSbiObjPar().equals(castOther.getSbiObjPar()) &&\n\t\t\t\t(this.getSbiObjParFather()==castOther.getSbiObjParFather()) || \n\t\t\t\t(this.getSbiObjParFather()!=null && castOther.getSbiObjParFather()!=null && this.getSbiObjParFather().equals(castOther.getSbiObjParFather()) ) &&\n\t\t\t\t(this.getOperation()==castOther.getFilterOperation()) || \n\t\t\t\t(this.getOperation()!=null && castOther.getFilterOperation()!=null && this.getOperation().equals(castOther.getFilterOperation()) ) );\t\n\t}", "title": "" }, { "docid": "681afc3744906da58e10820aea1f19b4", "score": "0.40805316", "text": "public interface HasBrokenInputBasedRuleKey {}", "title": "" }, { "docid": "a1ad0d07544f1322ba03c69b60e94db5", "score": "0.40803334", "text": "@Override\n public boolean equals(Object object) {\n if (!(object instanceof PacksservicesRequestpricePK)) {\n return false;\n }\n PacksservicesRequestpricePK other = (PacksservicesRequestpricePK) object;\n if ((this.id == null && other.id != null) || (this.id != null && !this.id.equals(other.id))) {\n return false;\n }\n if ((this.packservicesId == null && other.packservicesId != null) || (this.packservicesId != null && !this.packservicesId.equals(other.packservicesId))) {\n return false;\n }\n if ((this.requestpriceId == null && other.requestpriceId != null) || (this.requestpriceId != null && !this.requestpriceId.equals(other.requestpriceId))) {\n return false;\n }\n return true;\n }", "title": "" }, { "docid": "2038c8a5a3e382a8f781c2f0efb24e1e", "score": "0.40766168", "text": "@Override\r\n public boolean equals(Object object) {\n if (!(object instanceof Wypozyczenie)) {\r\n return false;\r\n }\r\n Wypozyczenie other = (Wypozyczenie) object;\r\n if ((this.wypozyczeniePK == null && other.wypozyczeniePK != null) || (this.wypozyczeniePK != null && !this.wypozyczeniePK.equals(other.wypozyczeniePK))) {\r\n return false;\r\n }\r\n return true;\r\n }", "title": "" }, { "docid": "241b5302a386387e8d670d9e752d847c", "score": "0.4073835", "text": "@Override\n public boolean equals(Object object) {\n if (!(object instanceof InterfaceBatchPK)) {\n return false;\n }\n InterfaceBatchPK other = (InterfaceBatchPK) object;\n if (this.idAplicacionFuente != other.idAplicacionFuente) {\n return false;\n }\n if (this.idAplicacionDestino != other.idAplicacionDestino) {\n return false;\n }\n return true;\n }", "title": "" }, { "docid": "d02fa6a109c2ba0b4a8574152b40b662", "score": "0.40710124", "text": "@Test\n\tpublic void hashCodeSimilarObjects() {\n\t\tDiscontinueParameters params1 = this.getDefaultRecord();\n\t\tDiscontinueParameters params2 = this.getDefaultRecord();\n\t\tAssert.assertEquals(params1.hashCode(), params2.hashCode());\n\t}", "title": "" }, { "docid": "d4b9471aba12a6aa40f0207db7b3c310", "score": "0.40695915", "text": "protected void createOslc_rmsatisfiedByAnnotations() {\r\n\t\tString source = \"oslc_rm:satisfiedBy\";\t\t\r\n\t\taddAnnotation\r\n\t\t (getRequirement_SatisfiedBy(), \r\n\t\t source, \r\n\t\t new String[] {\r\n\t\t });\t\t\t\t\r\n\t}", "title": "" }, { "docid": "63689c064604d6c7c0e7c3ca6aef1a62", "score": "0.4068329", "text": "protected void createVsdrInjuryComponentWorkAssociationAnnotations() {\n String source = \"http://www.openhealthtools.org/mdht/uml/cda/annotation/vsdrInjuryComponentWorkAssociation\"; \n addAnnotation\n (injuryEClass, \n source, \n new String[] {\n \"typeCode\", \"COMP\",\n \"constraints.validation.error\", \"InjuryComponentWorkAssociationTypeCode InjuryComponentWorkAssociationWorkAssociation\"\n }); \n }", "title": "" }, { "docid": "1ec1e48c328023697148926e4cd719ba", "score": "0.40587714", "text": "@Override\n\tpublic boolean equals(Object obj) {\n\t\tif (this==obj) {\n\t\t\treturn true;\n\t\t}\n\t\tif (obj==null) {\n\t\t\treturn false;\n\t\t}\n\t\tif (getClass() != obj.getClass()) {\n\t\t\treturn false;\n\t\t}\n\t\tBaseDomainObject others = (BaseDomainObject) obj;\n\t\tif (id==null) {\n\t\t\tif (others.id !=null) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}else if (!id.equals(others.id)) {\n\t\t\treturn false;\n\t\t}\n\t\treturn true;\n\t}", "title": "" }, { "docid": "48d758af7227b30f2cc38602bd2617aa", "score": "0.4029078", "text": "@Override\n public boolean equals(Object object) {\n if (!(object instanceof CredencialesestadotipoPK)) {\n return false;\n }\n CredencialesestadotipoPK other = (CredencialesestadotipoPK) object;\n if (this.idcredenciales != other.idcredenciales) {\n return false;\n }\n if (this.idestadocredenciales != other.idestadocredenciales) {\n return false;\n }\n if (this.idtipocredenciales != other.idtipocredenciales) {\n return false;\n }\n return true;\n }", "title": "" }, { "docid": "ba773c851289c7ed3e5136a41b5bd698", "score": "0.40227914", "text": "@Override\npublic boolean equals(Object object)\n{\n if (!(object instanceof TipoPrueba))\n {\n return false;\n }\n TipoPrueba other = (TipoPrueba) object;\n if ((this.tipoPruebaPK == null && other.tipoPruebaPK != null) || (this.tipoPruebaPK != null && !this.tipoPruebaPK.equals(other.tipoPruebaPK)))\n {\n return false;\n }\n return true;\n}", "title": "" }, { "docid": "f0449428337373e650343c3461402390", "score": "0.40222007", "text": "@Override\r\n public boolean equals(Object object) {\n if (!(object instanceof SubactividadAprendizaje)) {\r\n return false;\r\n }\r\n SubactividadAprendizaje other = (SubactividadAprendizaje) object;\r\n if ((this.idSubactividadProyecto == null && other.idSubactividadProyecto != null) || (this.idSubactividadProyecto != null && !this.idSubactividadProyecto.equals(other.idSubactividadProyecto))) {\r\n return false;\r\n }\r\n return true;\r\n }", "title": "" }, { "docid": "83e9d88717cba0ed9dc8fc8c8b622b1d", "score": "0.40184617", "text": "@Override\n public boolean equals(Object object) {\n if (!(object instanceof CbsSchemeDepositFlowDetailsPK)) {\n return false;\n }\n CbsSchemeDepositFlowDetailsPK other = (CbsSchemeDepositFlowDetailsPK) object;\n if ((this.schemeCode == null && other.schemeCode != null) || (this.schemeCode != null && !this.schemeCode.equals(other.schemeCode))) {\n return false;\n }\n if ((this.schemeType == null && other.schemeType != null) || (this.schemeType != null && !this.schemeType.equals(other.schemeType))) {\n return false;\n }\n if ((this.flowCode == null && other.flowCode != null) || (this.flowCode != null && !this.flowCode.equals(other.flowCode))) {\n return false;\n }\n return true;\n }", "title": "" }, { "docid": "dbd75a6ec51da3ab0156ca83593e04b6", "score": "0.40071207", "text": "@Override\n\tpublic boolean equals(Object object) {\n\t\tif (!(object instanceof TblComBlendingDate)) {\n\t\t\treturn false;\n\t\t}\n\t\tTblComBlendingDate other = (TblComBlendingDate) object;\n\t\tif ((this.blendingDateId == null && other.blendingDateId != null)\n\t\t\t\t|| (this.blendingDateId != null && !this.blendingDateId\n\t\t\t\t\t\t.equals(other.blendingDateId))) {\n\t\t\treturn false;\n\t\t}\n\t\treturn true;\n\t}", "title": "" }, { "docid": "a1475ad32622f2ab4543dea682b8edee", "score": "0.40068254", "text": "@Override\r\n public boolean equals(Object object) {\n if (!(object instanceof ProgramaCursoPK)) {\r\n return false;\r\n }\r\n ProgramaCursoPK other = (ProgramaCursoPK) object;\r\n if (this.idPrograma != other.idPrograma) {\r\n return false;\r\n }\r\n if ((this.idCursoPeriodo == null && other.idCursoPeriodo != null) || (this.idCursoPeriodo != null && !this.idCursoPeriodo.equals(other.idCursoPeriodo))) {\r\n return false;\r\n }\r\n return true;\r\n }", "title": "" }, { "docid": "8f625f9eb7d4914b567785e4ce26af2c", "score": "0.40028435", "text": "private void validateRule(ISchedulingRule rule) {\n \t\t//null rule always valid\n \t\tif (rule == null)\n \t\t\treturn;\n \t\t//contains method must be reflexive\n \t\tAssert.isLegal(rule.contains(rule));\n \t\t//contains method must return false when given an unknown rule\n \t\tAssert.isLegal(!rule.contains(nullRule));\n \t\t//isConflicting method must be reflexive\n \t\tAssert.isLegal(rule.isConflicting(rule));\n \t\t//isConflicting method must return false when given an unknown rule\n \t\tAssert.isLegal(!rule.isConflicting(nullRule));\n \t}", "title": "" }, { "docid": "075ac1984e145a13d7266847c3a89861", "score": "0.4001252", "text": "public boolean equals(Object o){\n if(o==null)\n return false;\n if(o instanceof InternalBindingKey){\n InternalBindingKey that=(InternalBindingKey)o;\n if(this.id!=null&&that.id!=null){\n if(this.id.length()!=that.id.length()){\n return false;\n }\n // If id is set is must be equal\n if(this.id.length()>0&&this.id.equals(that.id)==false){\n return false;\n }\n }else{\n // If One is Null and the other is not then it's a mismatch\n // So, return false\n if((this.id==null&&that.id!=null)\n ||(this.id!=null&&that.id==null)){\n return false;\n }\n }\n if(this.kind!=null&&that.kind!=null){\n if(this.kind.length()!=that.kind.length()){\n return false;\n }\n // If kind is set it must be equal\n if(this.kind.length()>0&&this.kind.equals(that.kind)==false){\n return false;\n }\n }else{\n // If One is Null and the other is not then it's a mismatch\n // So, return false\n if((this.kind==null&&that.kind!=null)\n ||(this.kind!=null&&that.kind==null)){\n return false;\n }\n }\n // We have checked all the possibilities, so return true\n return true;\n }else{\n return false;\n }\n }", "title": "" }, { "docid": "36be7471f264f952540efcb3ff4d56fd", "score": "0.39980152", "text": "default boolean checkParticipantObjectIdentificationForSystemIfReportObjectIDAndSOPClass(\r\n final ParticipantObjectIdentification participantObject) {\r\n return participantObject.getParticipantObjectTypeCode()\r\n .equals(ParticipantObjectTypeCode.SYSTEM.getActionCode())\r\n && participantObject.getParticipantObjectTypeCodeRole()\r\n .equals(ParticipantObjectTypeCodeRole.REPORT.getActionCode())\r\n && checkParticipantObjectIdentificationReportObjectIDAndSOPClassNotNull(participantObject);\r\n }", "title": "" }, { "docid": "93c4cbd166c03e1e82f51b27d29ff6ea", "score": "0.39926615", "text": "@Override\n public boolean equals(Object object) {\n if (!(object instanceof NseriegabinetePK)) {\n return false;\n }\n NseriegabinetePK other = (NseriegabinetePK) object;\n if (this.idnseriegabinete != other.idnseriegabinete) {\n return false;\n }\n if (this.fkidpatrimonio != other.fkidpatrimonio) {\n return false;\n }\n return true;\n }", "title": "" }, { "docid": "b47dcfdc5369ebf0aacb68ce98074b2b", "score": "0.39897022", "text": "@Override\r\n public boolean equals(Object object) {\n if (!(object instanceof Persona)) {\r\n return false;\r\n }\r\n Persona other = (Persona) object;\r\n if ((this.perId == null && other.perId != null) || (this.perId != null && !this.perId.equals(other.perId))) {\r\n return false;\r\n }\r\n return true;\r\n }", "title": "" }, { "docid": "4e39d6553eba14bbd903afeab93e56ae", "score": "0.39887643", "text": "public boolean implicitPk();", "title": "" }, { "docid": "8e37f2ac2267f99fa790cb9b1396d73c", "score": "0.3986663", "text": "public final EObject ruleYAnnotPrimaryKey() throws RecognitionException {\n EObject current = null;\n\n Token otherlv_1=null;\n Token otherlv_2=null;\n Token otherlv_3=null;\n Token otherlv_4=null;\n Token otherlv_5=null;\n Token otherlv_6=null;\n Token otherlv_7=null;\n\n\n \tenterRule();\n\n try {\n // InternalLang.g:5764:2: ( ( () otherlv_1= '@primary' otherlv_2= '(' ( (otherlv_3= RULE_ID ) )* (otherlv_4= ',' ( (otherlv_5= RULE_ID ) ) )* otherlv_6= ')' (otherlv_7= ';' )? ) )\n // InternalLang.g:5765:2: ( () otherlv_1= '@primary' otherlv_2= '(' ( (otherlv_3= RULE_ID ) )* (otherlv_4= ',' ( (otherlv_5= RULE_ID ) ) )* otherlv_6= ')' (otherlv_7= ';' )? )\n {\n // InternalLang.g:5765:2: ( () otherlv_1= '@primary' otherlv_2= '(' ( (otherlv_3= RULE_ID ) )* (otherlv_4= ',' ( (otherlv_5= RULE_ID ) ) )* otherlv_6= ')' (otherlv_7= ';' )? )\n // InternalLang.g:5766:3: () otherlv_1= '@primary' otherlv_2= '(' ( (otherlv_3= RULE_ID ) )* (otherlv_4= ',' ( (otherlv_5= RULE_ID ) ) )* otherlv_6= ')' (otherlv_7= ';' )?\n {\n // InternalLang.g:5766:3: ()\n // InternalLang.g:5767:4: \n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\tcurrent = forceCreateModelElement(\n \t\t\t\t\tgrammarAccess.getYAnnotPrimaryKeyAccess().getYAnnotPrimaryKeyAction_0(),\n \t\t\t\t\tcurrent);\n \t\t\t\n }\n\n }\n\n otherlv_1=(Token)match(input,96,FOLLOW_27); if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\tnewLeafNode(otherlv_1, grammarAccess.getYAnnotPrimaryKeyAccess().getPrimaryKeyword_1());\n \t\t\n }\n otherlv_2=(Token)match(input,18,FOLLOW_80); if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\tnewLeafNode(otherlv_2, grammarAccess.getYAnnotPrimaryKeyAccess().getLeftParenthesisKeyword_2());\n \t\t\n }\n // InternalLang.g:5781:3: ( (otherlv_3= RULE_ID ) )*\n loop107:\n do {\n int alt107=2;\n int LA107_0 = input.LA(1);\n\n if ( (LA107_0==RULE_ID) ) {\n alt107=1;\n }\n\n\n switch (alt107) {\n \tcase 1 :\n \t // InternalLang.g:5782:4: (otherlv_3= RULE_ID )\n \t {\n \t // InternalLang.g:5782:4: (otherlv_3= RULE_ID )\n \t // InternalLang.g:5783:5: otherlv_3= RULE_ID\n \t {\n \t if ( state.backtracking==0 ) {\n\n \t \t\t\t\t\tif (current==null) {\n \t \t\t\t\t\t\tcurrent = createModelElement(grammarAccess.getYAnnotPrimaryKeyRule());\n \t \t\t\t\t\t}\n \t \t\t\t\t\n \t }\n \t otherlv_3=(Token)match(input,RULE_ID,FOLLOW_80); if (state.failed) return current;\n \t if ( state.backtracking==0 ) {\n\n \t \t\t\t\t\tnewLeafNode(otherlv_3, grammarAccess.getYAnnotPrimaryKeyAccess().getColumnsYAnnotAbstractColumnCrossReference_3_0());\n \t \t\t\t\t\n \t }\n\n \t }\n\n\n \t }\n \t break;\n\n \tdefault :\n \t break loop107;\n }\n } while (true);\n\n // InternalLang.g:5794:3: (otherlv_4= ',' ( (otherlv_5= RULE_ID ) ) )*\n loop108:\n do {\n int alt108=2;\n int LA108_0 = input.LA(1);\n\n if ( (LA108_0==19) ) {\n alt108=1;\n }\n\n\n switch (alt108) {\n \tcase 1 :\n \t // InternalLang.g:5795:4: otherlv_4= ',' ( (otherlv_5= RULE_ID ) )\n \t {\n \t otherlv_4=(Token)match(input,19,FOLLOW_3); if (state.failed) return current;\n \t if ( state.backtracking==0 ) {\n\n \t \t\t\t\tnewLeafNode(otherlv_4, grammarAccess.getYAnnotPrimaryKeyAccess().getCommaKeyword_4_0());\n \t \t\t\t\n \t }\n \t // InternalLang.g:5799:4: ( (otherlv_5= RULE_ID ) )\n \t // InternalLang.g:5800:5: (otherlv_5= RULE_ID )\n \t {\n \t // InternalLang.g:5800:5: (otherlv_5= RULE_ID )\n \t // InternalLang.g:5801:6: otherlv_5= RULE_ID\n \t {\n \t if ( state.backtracking==0 ) {\n\n \t \t\t\t\t\t\tif (current==null) {\n \t \t\t\t\t\t\t\tcurrent = createModelElement(grammarAccess.getYAnnotPrimaryKeyRule());\n \t \t\t\t\t\t\t}\n \t \t\t\t\t\t\n \t }\n \t otherlv_5=(Token)match(input,RULE_ID,FOLLOW_13); if (state.failed) return current;\n \t if ( state.backtracking==0 ) {\n\n \t \t\t\t\t\t\tnewLeafNode(otherlv_5, grammarAccess.getYAnnotPrimaryKeyAccess().getColumnsYAnnotAbstractColumnCrossReference_4_1_0());\n \t \t\t\t\t\t\n \t }\n\n \t }\n\n\n \t }\n\n\n \t }\n \t break;\n\n \tdefault :\n \t break loop108;\n }\n } while (true);\n\n otherlv_6=(Token)match(input,20,FOLLOW_31); if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\tnewLeafNode(otherlv_6, grammarAccess.getYAnnotPrimaryKeyAccess().getRightParenthesisKeyword_5());\n \t\t\n }\n // InternalLang.g:5817:3: (otherlv_7= ';' )?\n int alt109=2;\n int LA109_0 = input.LA(1);\n\n if ( (LA109_0==12) ) {\n alt109=1;\n }\n switch (alt109) {\n case 1 :\n // InternalLang.g:5818:4: otherlv_7= ';'\n {\n otherlv_7=(Token)match(input,12,FOLLOW_2); if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\tnewLeafNode(otherlv_7, grammarAccess.getYAnnotPrimaryKeyAccess().getSemicolonKeyword_6());\n \t\t\t\n }\n\n }\n break;\n\n }\n\n\n }\n\n\n }\n\n if ( state.backtracking==0 ) {\n\n \tleaveRule();\n\n }\n }\n\n catch (RecognitionException re) {\n recover(input,re);\n appendSkippedTokens();\n }\n finally {\n }\n return current;\n }", "title": "" }, { "docid": "f5f3b46064a32d22d042efa89413e9a3", "score": "0.398517", "text": "public JwComparator<AcAccountInclusionRuleVo> getInterestedPartyNameComparatorNullsLower()\n {\n return InterestedPartyNameComparatorNullsLower;\n }", "title": "" }, { "docid": "34ae1bdf197ce898b3fbb9975c420e98", "score": "0.3984992", "text": "@Override\n public boolean equals(Object object) {\n if (!(object instanceof PrgFinanceAct)) {\n return false;\n }\n PrgFinanceAct other = (PrgFinanceAct) object;\n if ((this.prgFinanceActPK == null && other.prgFinanceActPK != null) || (this.prgFinanceActPK != null && !this.prgFinanceActPK.equals(other.prgFinanceActPK))) {\n return false;\n }\n return true;\n }", "title": "" }, { "docid": "187b16c2503e9f5f0c22317409468f51", "score": "0.39834845", "text": "@Override\n public boolean equals(Object object) {\n if (!(object instanceof TblProduccionActividad)) {\n return false;\n }\n TblProduccionActividad other = (TblProduccionActividad) object;\n if ((this.idtblProduccionActividad == null && other.idtblProduccionActividad != null) || (this.idtblProduccionActividad != null && !this.idtblProduccionActividad.equals(other.idtblProduccionActividad))) {\n return false;\n }\n return true;\n }", "title": "" }, { "docid": "7573e6da0c7a4fbefd7cc0609b80f791", "score": "0.39821428", "text": "@Override\r\n public boolean equals(Object object) {\n if (!(object instanceof CEmpleadoPK)) {\r\n return false;\r\n }\r\n CEmpleadoPK other = (CEmpleadoPK) object;\r\n if (this.id != other.id) {\r\n return false;\r\n }\r\n if (this.idEmpresa != other.idEmpresa) {\r\n return false;\r\n }\r\n if (this.idSucursal != other.idSucursal) {\r\n return false;\r\n }\r\n return true;\r\n }", "title": "" }, { "docid": "176c6617db29ba1ab85320107c5bdeb8", "score": "0.39808908", "text": "@Override\n public boolean equals(Object object) {\n if (!(object instanceof RelatorioVendaPK)) {\n return false;\n }\n RelatorioVendaPK other = (RelatorioVendaPK) object;\n if ((this.cliente == null && other.cliente != null) || (this.cliente != null && !this.cliente.equals(other.cliente))) {\n return false;\n }\n if ((this.vendedor == null && other.vendedor != null) || (this.vendedor != null && !this.vendedor.equals(other.vendedor))) {\n return false;\n }\n if ((this.loja == null && other.loja != null) || (this.loja != null && !this.loja.equals(other.loja))) {\n return false;\n }\n if (this.produto != other.produto) {\n return false;\n }\n return true;\n }", "title": "" }, { "docid": "6781b4de099cfe4640a3d72fa3b07fa7", "score": "0.39768875", "text": "public interface PartnerIssuerFollowDao extends BaseDao<PartnerIssuerFollow, PartnerIssuerFollowCondition> {\n}", "title": "" }, { "docid": "d364b6ade81f26fc8222cb2260ad7e91", "score": "0.39711562", "text": "@Override\r\n public boolean equals(Object object) {\n if (!(object instanceof TipoUsuarioTareaPK)) {\r\n return false;\r\n }\r\n TipoUsuarioTareaPK other = (TipoUsuarioTareaPK) object;\r\n if (this.idTipoUsuario != other.idTipoUsuario) {\r\n return false;\r\n }\r\n if (this.idTarea != other.idTarea) {\r\n return false;\r\n }\r\n return true;\r\n }", "title": "" }, { "docid": "f49215dac755dc994f44b97ca4c6df61", "score": "0.3970929", "text": "@Override\r\n public boolean equals(Object object) {\n if (!(object instanceof VotacionUsuarioCandidato)) {\r\n return false;\r\n }\r\n VotacionUsuarioCandidato other = (VotacionUsuarioCandidato) object;\r\n if ((this.votacionUsuarioCandidatoPK == null && other.votacionUsuarioCandidatoPK != null) || (this.votacionUsuarioCandidatoPK != null && !this.votacionUsuarioCandidatoPK.equals(other.votacionUsuarioCandidatoPK))) {\r\n return false;\r\n }\r\n return true;\r\n }", "title": "" }, { "docid": "9a6b7a39372d1a0397efb8c74c552816", "score": "0.39676952", "text": "@Override\n\tpublic void visit(@Nonnull OWLObjectPropertyAssertionAxiom axiom) {\n\t\t\trs.addRule(cause, new Rule(null, rs.getId(axiom), null));\n\t}", "title": "" }, { "docid": "13197473d430f7c7e484a492d1402a97", "score": "0.39669853", "text": "@Override\r\n\tpublic void applyRules(Application ap) throws RuleException {\n\t\t withdraw = (WithdrawController) ap;\r\n\t\t\t\tisEmptyFieldsRule();\r\n\t\t\t\tisOverWithdraw();\r\n\t}", "title": "" }, { "docid": "cd9a15112ae338c6cfdd77dfcda3cfe0", "score": "0.3962564", "text": "@Override\n public boolean equals(Object object) {\n if (!(object instanceof EmpleadoasistenciacapacitacionPK)) {\n return false;\n }\n EmpleadoasistenciacapacitacionPK other = (EmpleadoasistenciacapacitacionPK) object;\n if (this.codigoempleado != other.codigoempleado) {\n return false;\n }\n if (this.codigoasistenciacapacitacion != other.codigoasistenciacapacitacion) {\n return false;\n }\n \n return true;\n }", "title": "" }, { "docid": "c34ef84baf98e3712a3300fe1c531c47", "score": "0.3960285", "text": "@Override\n public boolean equals(Object object) {\n if (!(object instanceof SlaPK)) {\n return false;\n }\n SlaPK other = (SlaPK) object;\n if (this.slaId != other.slaId) {\n return false;\n }\n if ((this.userId == null && other.userId != null) || (this.userId != null && !this.userId.equals(other.userId))) {\n return false;\n }\n return true;\n }", "title": "" }, { "docid": "972e3ca0cc0f8ead1474ab8862d8a438", "score": "0.39593202", "text": "@Override\n public boolean equals(Object object) {\n if (!(object instanceof CursopessoaPK)) {\n return false;\n }\n CursopessoaPK other = (CursopessoaPK) object;\n if (this.cursoId != other.cursoId) {\n return false;\n }\n if ((this.cpf == null && other.cpf != null) || (this.cpf != null && !this.cpf.equals(other.cpf))) {\n return false;\n }\n return true;\n }", "title": "" }, { "docid": "f2eb59e41dc1cfc140bd05c04845ccc2", "score": "0.39574334", "text": "@Override\r\n public boolean equals(Object object) {\n if (!(object instanceof InsClasePK)) {\r\n return false;\r\n }\r\n InsClasePK other = (InsClasePK) object;\r\n if ((this.codClase == null && other.codClase != null) || (this.codClase != null && !this.codClase.equals(other.codClase))) {\r\n return false;\r\n }\r\n if (this.codCurso != other.codCurso) {\r\n return false;\r\n }\r\n return true;\r\n }", "title": "" }, { "docid": "f5fdbbb1720cde64ff4d24bba9b6a412", "score": "0.39517102", "text": "public ValidateOTonLeaveROVORowImpl() {\r\n }", "title": "" }, { "docid": "8c71e6fe9b4e46f6da8e42e3dc6ca538", "score": "0.39514562", "text": "@Override\n public boolean equals(Object that) {\n if (this == that) {\n return true;\n }\n if (that == null) {\n return false;\n }\n if (getClass() != that.getClass()) {\n return false;\n }\n TCpyAfterSaleManagement other = (TCpyAfterSaleManagement) that;\n return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))\n && (this.getCompanyId() == null ? other.getCompanyId() == null : this.getCompanyId().equals(other.getCompanyId()))\n && (this.getRecalledProducts() == null ? other.getRecalledProducts() == null : this.getRecalledProducts().equals(other.getRecalledProducts()))\n && (this.getServiceTelephone() == null ? other.getServiceTelephone() == null : this.getServiceTelephone().equals(other.getServiceTelephone()))\n && (this.getCustomerServiceTelephone() == null ? other.getCustomerServiceTelephone() == null : this.getCustomerServiceTelephone().equals(other.getCustomerServiceTelephone()))\n && (this.getSalesServiceCommitmentPath() == null ? other.getSalesServiceCommitmentPath() == null : this.getSalesServiceCommitmentPath().equals(other.getSalesServiceCommitmentPath()))\n && (this.getSalesServiceImplementRulePath() == null ? other.getSalesServiceImplementRulePath() == null : this.getSalesServiceImplementRulePath().equals(other.getSalesServiceImplementRulePath()))\n && (this.getCreatePerson() == null ? other.getCreatePerson() == null : this.getCreatePerson().equals(other.getCreatePerson()))\n && (this.getCreateTime() == null ? other.getCreateTime() == null : this.getCreateTime().equals(other.getCreateTime()))\n && (this.getModifyPerson() == null ? other.getModifyPerson() == null : this.getModifyPerson().equals(other.getModifyPerson()))\n && (this.getModifyTime() == null ? other.getModifyTime() == null : this.getModifyTime().equals(other.getModifyTime()))\n && (this.getDataResource() == null ? other.getDataResource() == null : this.getDataResource().equals(other.getDataResource()));\n }", "title": "" }, { "docid": "c6dafb95b5dddd9a63bd90ddfd00392f", "score": "0.39464748", "text": "boolean equalsIgnoreXid(Object obj);", "title": "" }, { "docid": "7d9522c08133626bc2097b77938c66a9", "score": "0.3945835", "text": "@Override\n public boolean equals(Object o) {\n if (this == o) {\n return true;\n }\n if (!(o instanceof EmailParticipant)) {\n return false;\n }\n return id != null && id.equals(((EmailParticipant) o).id);\n }", "title": "" }, { "docid": "7251fb5619317d14cdb980e884fc7d28", "score": "0.3944047", "text": "@Override\n public boolean equals(Object object) {\n if (!(object instanceof Incricao)) {\n return false;\n }\n Incricao other = (Incricao) object;\n if ((this.idincricao == null && other.idincricao != null) || (this.idincricao != null && !this.idincricao.equals(other.idincricao))) {\n return false;\n }\n return true;\n }", "title": "" }, { "docid": "f1adc94ca1b32affdfeda74ff09c2675", "score": "0.39412707", "text": "@Override\n public boolean equals(Object object) {\n if (!(object instanceof SmuUserWorkExperience)) {\n return false;\n }\n SmuUserWorkExperience other = (SmuUserWorkExperience) object;\n if ((this.smuUserWorkExperiencePK == null && other.smuUserWorkExperiencePK != null) || (this.smuUserWorkExperiencePK != null && !this.smuUserWorkExperiencePK.equals(other.smuUserWorkExperiencePK))) {\n return false;\n }\n return true;\n }", "title": "" }, { "docid": "9f4baa4f1909f7d2629b029c564e521b", "score": "0.39333823", "text": "@Override\n public boolean equals(Object object) {\n if (!(object instanceof InterviewRegister)) {\n return false;\n }\n InterviewRegister other = (InterviewRegister) object;\n if ((this.interviewRegisterPK == null && other.interviewRegisterPK != null) || (this.interviewRegisterPK != null && !this.interviewRegisterPK.equals(other.interviewRegisterPK))) {\n return false;\n }\n return true;\n }", "title": "" }, { "docid": "52b5ca6c8a8aa6160acc7b16ab451075", "score": "0.39332163", "text": "@Override\r\n public boolean equals(Object object) {\n if (!(object instanceof CurvaEsfuerzoPK)) {\r\n return false;\r\n }\r\n CurvaEsfuerzoPK other = (CurvaEsfuerzoPK) object;\r\n if (this.idMaterialRodante != other.idMaterialRodante) {\r\n return false;\r\n }\r\n if (this.idVelocidadCurvaEsfuerzo != other.idVelocidadCurvaEsfuerzo) {\r\n return false;\r\n }\r\n return true;\r\n }", "title": "" }, { "docid": "2dcad3e9ed8952126de6f122125dfeb6", "score": "0.39328846", "text": "protected void createVsdrInjuryComponentWorkAssociationWorkAssociationAnnotations() {\n String source = \"http://www.openhealthtools.org/mdht/uml/cda/annotation/vsdrInjuryComponentWorkAssociationWorkAssociation\"; \n addAnnotation\n (injuryEClass, \n source, \n new String[] {\n \"classCode\", \"OBS\",\n \"constraints.validation.error\", \"InjuryComponentWorkAssociationWorkAssociationClassCode InjuryComponentWorkAssociationWorkAssociationMoodCode InjuryComponentWorkAssociationWorkAssociationCode InjuryComponentWorkAssociationWorkAssociationCodeP InjuryComponentWorkAssociationWorkAssociationValue\",\n \"moodCode\", \"EVN\",\n \"code.code\", \"69444-8\",\n \"code.codeSystem\", \"2.16.840.1.113883.6.1\",\n \"code.codeSystemName\", \"LOINC\",\n \"code.displayName\", \"Did death result from injury at work\",\n \"constraints.validation.dependOn.InjuryComponentWorkAssociationWorkAssociationCode\", \"InjuryComponentWorkAssociationWorkAssociationCodeP\"\n }); \n }", "title": "" }, { "docid": "01f845a571b56966a13fbc82561dede9", "score": "0.3929933", "text": "public T caseUseCaseToInteractionRule(UseCaseToInteractionRule object) {\r\n\t\treturn null;\r\n\t}", "title": "" }, { "docid": "654e2b16006f351cf24c157a6a6aaf23", "score": "0.3922441", "text": "@Override\n public boolean equals(Object object) {\n if (!(object instanceof Objeto)) {\n return false;\n }\n Objeto other = (Objeto) object;\n if ((this.objetoPK == null && other.objetoPK != null) || (this.objetoPK != null && !this.objetoPK.equals(other.objetoPK))) {\n return false;\n }\n return true;\n }", "title": "" }, { "docid": "64d67339f1ef36e9086e61853a0c4fd4", "score": "0.3915808", "text": "@Override\n public boolean equals(Object obj) {\n if (this == obj)\n return true;\n if (obj == null || !(obj instanceof RecordId))\n return false;\n RecordId that = RecordId.class.cast(obj);\n return equal(this.zone, that.zone) && equal(this.fqdn, that.fqdn) && equal(this.type, that.type)\n && equal(this.id, that.id);\n }", "title": "" }, { "docid": "a03f0755e08a155af350fdb2665f99ce", "score": "0.39119747", "text": "@Override\r\n public boolean equals(Object object) {\n if (!(object instanceof Persona)) {\r\n return false;\r\n }\r\n Persona other = (Persona) object;\r\n if ((this.idpersona == null && other.idpersona != null) || (this.idpersona != null && !this.idpersona.equals(other.idpersona))) {\r\n return false;\r\n }\r\n return true;\r\n }", "title": "" }, { "docid": "e8463dac38e4f24c98abe37c44dabdad", "score": "0.390769", "text": "@Override\r\n public boolean equals(Object object) {\n if (!(object instanceof EtbInvProyecto)) {\r\n return false;\r\n }\r\n EtbInvProyecto other = (EtbInvProyecto) object;\r\n if ((this.proId == null && other.proId != null) || (this.proId != null && !this.proId.equals(other.proId))) {\r\n return false;\r\n }\r\n return true;\r\n }", "title": "" }, { "docid": "478c3ba94cd9235bc3e677829580e5a4", "score": "0.3907509", "text": "@Override\n public boolean equals(Object object) {\n if (!(object instanceof Termcours)) {\n return false;\n }\n Termcours other = (Termcours) object;\n if ((this.termcoursPK == null && other.termcoursPK != null) || (this.termcoursPK != null && !this.termcoursPK.equals(other.termcoursPK))) {\n return false;\n }\n return true;\n }", "title": "" }, { "docid": "08ec13e9fd2aad83ad9c397b989287a2", "score": "0.39062667", "text": "@Override\n public boolean equals(Object object) {\n if (!(object instanceof HealthCarePro)) {\n return false;\n }\n HealthCarePro other = (HealthCarePro) object;\n if ((this.id == null && other.id != null) || (this.id != null && !this.id.equals(other.id))) {\n return false;\n }\n return true;\n }", "title": "" }, { "docid": "db36422a9b1bfd33b01ea5610884dd33", "score": "0.39051327", "text": "SteamMsgGCSDK.CWorkshop_SetItemPaymentRules_Request.PartnerItemPaymentRule getPartnerAccounts(int index);", "title": "" }, { "docid": "8660c812dedf6f38d91e779f256b8860", "score": "0.39015463", "text": "private void reconcileWithExistingResponsibility(RuleResponsibilityBo responsibility, List<RuleResponsibilityBo> existingResponsibilities) {\n \tif (existingResponsibilities == null || existingResponsibilities.isEmpty()) {\n \t\treturn;\n \t}\n \tRuleResponsibilityBo exactMatch = null;\n \tfor (RuleResponsibilityBo existingResponsibility : existingResponsibilities) {\n \t\tif (isExactResponsibilityMatch(responsibility, existingResponsibility)) {\n \t\t\texactMatch = existingResponsibility;\n \t\t\tbreak;\n \t\t}\n \t}\n \tif (exactMatch != null) {\n \t\tresponsibility.setResponsibilityId(exactMatch.getResponsibilityId());\n \t}\n }", "title": "" }, { "docid": "5977d4ebb78749f8285b349b5337f86c", "score": "0.38977548", "text": "@Override\n public boolean equals(Object object) {\n if (!(object instanceof AncAnexoCuota)) {\n return false;\n }\n AncAnexoCuota other = (AncAnexoCuota) object;\n if ((this.ancId == null && other.ancId != null) || (this.ancId != null && !this.ancId.equals(other.ancId))) {\n return false;\n }\n return true;\n }", "title": "" } ]
9efdf4534593a38ff9e52ec3e3359acf
Set the visibility state of this component
[ { "docid": "1d2f565913124cdad3d00d089d1ad659", "score": "0.684699", "text": "@Override\n public UIObject setVisible(boolean visible) {\n if (isVisible() != visible) {\n super.setVisible(visible);\n if (visible) {\n redraw();\n } else {\n redrawContainer();\n }\n }\n return this;\n }", "title": "" } ]
[ { "docid": "43184c71bf358b8a216be32d769607da", "score": "0.8139421", "text": "public void setVisible(boolean state);", "title": "" }, { "docid": "bf23435249b3f9d79df774a9d3169fe0", "score": "0.78498924", "text": "public void setVisible(boolean value) {\n visible = value;\n stateChanged();\n }", "title": "" }, { "docid": "b578949a604c29882cae09501cdcb879", "score": "0.7764546", "text": "public void setVisible (boolean visible);", "title": "" }, { "docid": "1874d6202db9b394025f6d44b5fb4cc3", "score": "0.7705216", "text": "public void setVisible(boolean visible);", "title": "" }, { "docid": "1874d6202db9b394025f6d44b5fb4cc3", "score": "0.7705216", "text": "public void setVisible(boolean visible);", "title": "" }, { "docid": "fe0cd7ccc684e81d19e766542ed35863", "score": "0.7677902", "text": "void setVisible(boolean visible);", "title": "" }, { "docid": "fe0cd7ccc684e81d19e766542ed35863", "score": "0.7677902", "text": "void setVisible(boolean visible);", "title": "" }, { "docid": "66f17d61835aea617418f4965ceb40f8", "score": "0.7628132", "text": "public void setVisibility(boolean visibility) {\t\t\n\t\tthis.visible = visibility;\t\t\n\t}", "title": "" }, { "docid": "90d35682dc481b3f614aad741dfb79e1", "score": "0.7591105", "text": "private void setVisible(boolean b) {\n\t\t\t\t\r\n\t\t\t}", "title": "" }, { "docid": "90d35682dc481b3f614aad741dfb79e1", "score": "0.7591105", "text": "private void setVisible(boolean b) {\n\t\t\t\t\r\n\t\t\t}", "title": "" }, { "docid": "90d35682dc481b3f614aad741dfb79e1", "score": "0.7591105", "text": "private void setVisible(boolean b) {\n\t\t\t\t\r\n\t\t\t}", "title": "" }, { "docid": "90d35682dc481b3f614aad741dfb79e1", "score": "0.7591105", "text": "private void setVisible(boolean b) {\n\t\t\t\t\r\n\t\t\t}", "title": "" }, { "docid": "97f3fabcf095631998c46c1bc22ea36d", "score": "0.7578462", "text": "public void setVisible(boolean flag);", "title": "" }, { "docid": "b76a3f33ae8310e313d2bbb0e05401d0", "score": "0.75384784", "text": "public void setVisible(boolean value) {\r\n view.setVisible(value);\r\n }", "title": "" }, { "docid": "6c23e67ac7bf3277f48db89ffd133370", "score": "0.75380605", "text": "public void setVisibility(Boolean visible){\n\t\tthis.visible = visible;\n\t}", "title": "" }, { "docid": "5b0852c1d0de0c5790ca36092fca862a", "score": "0.752723", "text": "public void setVisibility(boolean visibility) {\n\t\tthis.setVisible(visibility);\n\t}", "title": "" }, { "docid": "03a5f3790f15f9ac075451830abcecbd", "score": "0.75177956", "text": "public void setVisible(boolean Visible) {\n visible = Visible;\n }", "title": "" }, { "docid": "7730e51594cc2361755231d24b08c806", "score": "0.7515096", "text": "public void setVisible(boolean t);", "title": "" }, { "docid": "c9a82294e3bbffe5de3f0f51ef3a535a", "score": "0.7496558", "text": "public final void setVisible( boolean visible )\n {\n if ( visible == isVisible() )\n return;\n \n this.isVisible = visible;\n \n if ( getSGNode() != null )\n this.getSGNode().setRenderable( visible );\n \n onVisibilityChanged( visible );\n \n if ( !isHeavyWeight() )\n setTextureDirty();\n \n for ( int i = 0; i < visibilityListeners.size(); i++ )\n {\n visibilityListeners.get( i ).onWidgetVisibilityChanged( this, visible );\n }\n }", "title": "" }, { "docid": "a7f34077298682932eebc17f1e7f6f85", "score": "0.74798614", "text": "public void setVisible(boolean b) {\n\r\n\t}", "title": "" }, { "docid": "b9a2ca0e7325661b9489fa2d0013eb46", "score": "0.74630845", "text": "public void setVisible(boolean b) {\n\t\t\n\t}", "title": "" }, { "docid": "b9a2ca0e7325661b9489fa2d0013eb46", "score": "0.74630845", "text": "public void setVisible(boolean b) {\n\t\t\n\t}", "title": "" }, { "docid": "b9a2ca0e7325661b9489fa2d0013eb46", "score": "0.74630845", "text": "public void setVisible(boolean b) {\n\t\t\n\t}", "title": "" }, { "docid": "fdd46070404aeec69bb296a3fb8df990", "score": "0.73915565", "text": "public void setVisible(boolean on) {\n visible = on;\n }", "title": "" }, { "docid": "5f00cade052558174c9060f4c8084bdc", "score": "0.7365407", "text": "public void setVisible() {\n\t\n}", "title": "" }, { "docid": "41f0403de2f126df183d084c4b34d862", "score": "0.73626447", "text": "public void setVisible(boolean x){\n\t\tthis.visible = x;\n\t}", "title": "" }, { "docid": "8b9e167e6aae0e795c09bd04bc4506db", "score": "0.73556095", "text": "public synchronized void setVisible(boolean visible) {\n if (visible == isVisibleInternal()) return;\n if (visible) {\n state |= STATE_VISIBLE;\n setDirty(STATE_DIRTY_REPAINT, true);\n } else {\n setDirty(STATE_DIRTY_REPAINT, true);\n state &= ~(STATE_VISIBLE | STATE_SELECTED); // unselect component\n }\n }", "title": "" }, { "docid": "dd694fa56ee9eed0b276ee8fdaed99d9", "score": "0.73363256", "text": "public void setVisibility(boolean visibility) {\n\t\tthis.visibility = visibility;\n\t\tgamePanel.draw(game, visibility);\n\t}", "title": "" }, { "docid": "740bebf6cc4259d2e74cd4a3d79e72fe", "score": "0.73305476", "text": "public void setVisible(boolean visible)\n {\n this.visible = visible;\n }", "title": "" }, { "docid": "d4b4401c8dfdfdbe1725533fdf81e950", "score": "0.7325715", "text": "public void setVisible(boolean b) {\r\n super.setVisible(b);\r\n }", "title": "" }, { "docid": "bba486c5f1f992a5cb0535890bb2dc21", "score": "0.72967803", "text": "protected void setVisible(boolean visible) {\n\n this.visible = visible;\n }", "title": "" }, { "docid": "7c60e263fbbc31c7daff9f35698cb67c", "score": "0.7268594", "text": "public void setVisible(boolean vis) {\r\n\t\tthis.mVisible = vis;\r\n\t}", "title": "" }, { "docid": "fe3fa900794e16452578120e003802cf", "score": "0.7266783", "text": "public void setVisibility(boolean isHidden) {\n this.hidden = isHidden;\n }", "title": "" }, { "docid": "5de5a896d87ff258417467ad0c39c211", "score": "0.72566956", "text": "public void setVisibility(boolean b) {\n frame.setVisible(b);\n }", "title": "" }, { "docid": "d0fc20db97503b9ce506632b8908a877", "score": "0.7238454", "text": "public void setVisible(boolean v) {\n \t\tthis.visible = v;\n \t}", "title": "" }, { "docid": "0de29875ab29b1143c2f502a24dff2f9", "score": "0.72342885", "text": "private void setVisibility()\r\n\t{\t\r\n\t\tif (penColour < 1)\r\n\t\t\tvisible = false;\r\n\t\telse\r\n\t\t\tvisible = true;\r\n\t}", "title": "" }, { "docid": "8a0d806b59d6802ce0a27d618e201f7b", "score": "0.7232474", "text": "public void setVisible(boolean visible)\r\n\t{\r\n\t\tthis.visible = visible;\r\n\t}", "title": "" }, { "docid": "f753cafd220b03e1a3c2a0cdcf52218b", "score": "0.72260964", "text": "public void setVisible(boolean visible)\r\n\t{\r\n\t\t_visible = visible;\r\n\t}", "title": "" }, { "docid": "a6976a64b906e45b6e56aae919f7fe45", "score": "0.718528", "text": "public void setVisibility(boolean vis){\n if(testing) return; //REMOVE\n object.visible=vis;\n if(vis){\n object.sprite.setAlpha(1);\n }\n else{\n object.sprite.setAlpha(0);\n }\n }", "title": "" }, { "docid": "3e89ee3d219f417abc486c303fc645de", "score": "0.7153933", "text": "public void setVisibility(Object element, boolean visible);", "title": "" }, { "docid": "187453db8bfe3edca231a6e5ef31b3b6", "score": "0.71534604", "text": "public void setVisibility(boolean visibility) {\n\t\tthis.visibility = visibility;\n\t}", "title": "" }, { "docid": "2f9a4da40cacdcf0dea7aa7e6bb77cbd", "score": "0.71372324", "text": "@Override\n public void setWidgetVisibility(boolean visible) {\n }", "title": "" }, { "docid": "99a144af9eab2b108fea899a18752b7e", "score": "0.7109865", "text": "public void setVisible(boolean f) {\r\n visible = f;\r\n }", "title": "" }, { "docid": "d9f5023749652c37101c36a7a87e75c0", "score": "0.7105451", "text": "public void setVisible(Boolean visible) {\n\t\tthis.visible = visible;\n\t}", "title": "" }, { "docid": "015d00a4903851a3c36776d38fb95c0b", "score": "0.70901245", "text": "@Override\n\tpublic void setVisibility(Boolean flag) {\n\n\t}", "title": "" }, { "docid": "5f335dabd0fea777796643de8d40177b", "score": "0.70863956", "text": "public void visibility(boolean state){\n\t\tthis.table.setVisible(state);\n\t}", "title": "" }, { "docid": "cdfad88842e37cd21018e407398d6ae5", "score": "0.708081", "text": "public void setVisible(boolean b) {\n\t\tf.setVisible(b);\n\t}", "title": "" }, { "docid": "0a7463b6ad7a28f200ae6036ae228352", "score": "0.70744365", "text": "public void setVisible(final boolean pVisible){\r\n\t\tthis.mVisible = pVisible;\r\n\t}", "title": "" }, { "docid": "301a4239d7c428929a94ff494c345650", "score": "0.7071824", "text": "public Builder setVisible(boolean value) {\n bitField0_ |= 0x00000020;\n visible_ = value;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "8e1974cd17060c8f459f7158abc03023", "score": "0.7043676", "text": "public void setVisibility(boolean state) {\n\t\tcanSee = state;\n\t}", "title": "" }, { "docid": "98742df5f97f5b5b83b15d8b2e1e6c8f", "score": "0.7035851", "text": "public void setVisible(boolean visible) {\n\t\tthis.visible = visible;\n\t}", "title": "" }, { "docid": "1186e1da326542526459359098fbb5a4", "score": "0.7008306", "text": "public void setVisible(boolean b) {\r\n\t\tpnlHorizontal.setVisible(b);\r\n\t}", "title": "" }, { "docid": "bf6e707c7fb5331d670801feb3df57ea", "score": "0.697522", "text": "@Override\n public void setVisibility(int visibility) {\n super.setVisibility(visibility);\n progress = 0;\n }", "title": "" }, { "docid": "cdebdf8bd1fc7ce9cb2026476517b181", "score": "0.69596523", "text": "public void setVisible() {\n\t\tif (!this.isVisible) {\n\t\t\tsurface.setVisible(true);\n\t\t\tthis.isVisible = true;\n\t\t\tSystem.out.println(\"Affichage des Regles\");\n\t\t}\n\t}", "title": "" }, { "docid": "e70f2ad3fa8756e9655d168e59e271e4", "score": "0.69543517", "text": "protected void onVisibilityChanged( boolean visible )\n {\n }", "title": "" }, { "docid": "0fc47921b2a0d9c13f3320206173811c", "score": "0.69481885", "text": "public void setVisible( boolean visible ) {\r\n\t\t\r\n\t\t// Pass the change on to the main panel.\r\n\t\t_mainPanel.setVisible( visible );\r\n\t\t\r\n\t\t// Hide the back button if this is going to be displayed.\r\n\t\tPDSViewManager.setBackButtonEnabled( visible );\r\n\t\t\r\n\t}", "title": "" }, { "docid": "4126233d6924d7c1db9cd64e9da47d34", "score": "0.6939974", "text": "@Override\r\n public void setVisible(boolean visible) {\r\n if (visible) {\r\n boolean permission = this.checkVisiblePermission();\r\n if (permission) {\r\n super.setVisible(visible);\r\n }\r\n } else {\r\n super.setVisible(false);\r\n }\r\n }", "title": "" }, { "docid": "488e90b76934bb3329364638b28642fd", "score": "0.6936828", "text": "public void setVisible (boolean vis)\n {\n _naviPanel.setVisible(vis);\n _statusContainer.setVisible(vis);\n _logoContainer.setVisible(vis);\n }", "title": "" }, { "docid": "e0c76585a06131dd1b5588d48de61220", "score": "0.6934589", "text": "protected abstract void setScreenVisible(boolean state);", "title": "" }, { "docid": "8270524ff548e562cdf57d649da7b50c", "score": "0.69280803", "text": "public void setVisible(boolean visible) {\n logger.entering(getClass().getName(), \"setVisible\");\n isVisible = visible;\n logger.exiting(getClass().getName(), \"setVisible\");\n }", "title": "" }, { "docid": "9ba2abe93ad5d38aebd4595fb263ca73", "score": "0.69211197", "text": "private void setButtonVisibility(int visibility) {\n if (visibility == View.VISIBLE) {\n if (isEnabled()) {\n setVisibility(View.VISIBLE);\n } else {\n setVisibility(View.GONE);\n }\n } else {\n setVisibility(visibility);\n }\n }", "title": "" }, { "docid": "7a0a6bc2b847d699deb47340c0996629", "score": "0.6920141", "text": "public void setVisible(boolean visible) {\n\t\tsuper.setVisible(visible);\n\t\tcomputeButton.requestFocusInWindow();\n\t}", "title": "" }, { "docid": "54c6795513b34dc4ee84d91bf6e757db", "score": "0.69017214", "text": "public void setVisibility(final int visibility) {\n // This must be called throgh handler because it needs to\n // wait until the init of the fragment done.\n handler.post(new Runnable() {\n public void run() {\n buttonView.setVisibility(visibility);\n setGradeButtonTitle();\n }\n });\n }", "title": "" }, { "docid": "0c8c670f319fa1e654a177939b1bf6f5", "score": "0.6880886", "text": "public void setAndamiVisibility(boolean visible) {\n\t\t_visible = visible;\n\t}", "title": "" }, { "docid": "24cd040669af50481cdcf90fe8b9109c", "score": "0.6858189", "text": "void setStateTextFieldVisible(boolean visible);", "title": "" }, { "docid": "442636c689f932c9ffd20071a12d9651", "score": "0.685537", "text": "public static void setVisible() {\n\tsetVisible(true);\n }", "title": "" }, { "docid": "710fc8d27b78bad64dd1fca731f76ec5", "score": "0.68112206", "text": "public PC_Color setVisible(boolean visibility) {\n\t\tinvisible = !visibility;\n\t\treturn this;\n\t}", "title": "" }, { "docid": "2db30b6ebeff0f7f09ab49302ce84f05", "score": "0.679481", "text": "@Override\r\n\tpublic void setVisible(boolean display) {\n\t\tsuper.setVisible(display);\r\n\t}", "title": "" }, { "docid": "85925185ba8f28e0057c05a2d0979159", "score": "0.6757373", "text": "static void setVisibility(int visibility) {\n imageView.setVisibility(visibility);\n cancelButton.setVisibility(visibility);\n protocolNameEditor.setVisibility(visibility);\n stepLabel.setVisibility(visibility);\n oneWattStep.setVisibility(visibility);\n fiveWattStep.setVisibility(visibility);\n tenWattStep.setVisibility(visibility);\n oneSecondStep.setVisibility(visibility);\n fiveSecondStep.setVisibility(visibility);\n oneMinuteStep.setVisibility(visibility);\n fiveMinuteStep.setVisibility(visibility);\n loadStepGroup.setVisibility(visibility);\n timeStepGroup.setVisibility(visibility);\n maxLoadValue.setVisibility(visibility);\n minLoadValue.setVisibility(visibility);\n stageTimeValue.setVisibility(visibility);\n maxLoadLeft.setVisibility(visibility);\n maxLoadRight.setVisibility(visibility);\n minLoadLeft.setVisibility(visibility);\n minLoadRight.setVisibility(visibility);\n stageLengthLeft.setVisibility(visibility);\n stageLengthRight.setVisibility(visibility);\n increasePicker.setVisibility(visibility);\n stageLengthLabel.setVisibility(visibility);\n increasePickerLabel.setVisibility(visibility);\n decreasePicker.setVisibility(visibility);\n decreasePickerLabel.setVisibility(visibility);\n }", "title": "" }, { "docid": "9edcaa949dcb142af3c01efbf7f2cc42", "score": "0.6735223", "text": "public void setVisible(final boolean value)\n {\n if(value != isVisible())\n {\n super.setVisible(value);\n\n Container parent = getParent();\n\n if((parent != null) && (parent.getComponentCount() == 1))\n {\n parent.setVisible(value);\n }\n\n invalidate();\n\n try\n {\n for(; parent != null; parent = parent.getParent())\n {\n try\n {\n parent.getClass().getMethod(\"resetToPreferredSizes\", null).invoke(\n parent,\n null);\n visibleArgs[0] = new Integer(value\n ? 10\n : 0);\n parent.getClass().getMethod(\"setDividerSize\", visibleParms)\n .invoke(parent, visibleArgs);\n\n break;\n }\n catch(final Throwable ignored) {}\n }\n }\n catch(final Throwable ignored) {}\n\n djvuBean.recursiveRevalidate();\n }\n }", "title": "" }, { "docid": "4ad0902e3b4a510e5867de9ff5e5e1be", "score": "0.66958016", "text": "public void setIsVisible(boolean pvisible)\r\n\t{\r\n\t\tisVisible=pvisible;\r\n\t\t\r\n\t\tif (isVisible==true)\r\n\t\t{\r\n\t\t\tguiNode.showNode();\t\t\r\n\t\t}\r\n\t\telse if (isVisible==false)\r\n\t\t{\r\n\t\t\tguiNode.hideNode();\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "8d5448178da92d3abf65feab86e7a35c", "score": "0.66609657", "text": "public T setVisible(boolean visible) {\n this.visible = visible;\n set(\"visible\", visible);\n return self();\n }", "title": "" }, { "docid": "7ed6e7a7be26f035c0d5e5564d460e5b", "score": "0.66366106", "text": "public static void setVisible(boolean v) {\n\tUI.checkInitialised();\n\tstyledWin.setVisible(v);\n }", "title": "" }, { "docid": "6a5f4a0b72af827d55ee517991900b32", "score": "0.6626492", "text": "public void setVisible(boolean isVisible)\r\n\t{\r\n\t\t// We make a layer invisible by switching its colour to a negative value.\r\n\t\t// We also have to take the absolute value so a negative colour value\r\n\t\t// doesn't get transposed to a positive (visible) value.\r\n\t\tif (isVisible)\r\n\t\t\tpenColour = (int)Math.abs(penColour);\r\n\t\telse\r\n\t\t\tpenColour = -(int)(Math.abs(penColour));\r\n\t\t\r\n\t\tsetVisibility();\r\n\t}", "title": "" }, { "docid": "ef8fb5c7004b389cc39e75a3caaa9ae4", "score": "0.66084", "text": "public Preloader setVisible(Boolean visible) {\n if (jsBase == null) {\n this.visible = visible;\n } else {\n this.visible = visible;\n if (!isChain) {\n js.append(jsBase);\n isChain = true;\n }\n \n js.append(String.format(Locale.US, \".visible(%b)\", visible));\n\n if (isRendered) {\n onChangeListener.onChange(String.format(Locale.US, jsBase + \".visible(%b);\", visible));\n js.setLength(0);\n }\n }\n return this;\n }", "title": "" }, { "docid": "ff47734dc91c147bd57b62ba8b188e66", "score": "0.65702283", "text": "public void setVisible(boolean b) {\n frame.setVisible(b);\n }", "title": "" }, { "docid": "6ad8cfa107e561e46dc273b8f8f3fb88", "score": "0.656742", "text": "@Override\n public void onClick() {\n this.componentToShow.setVisible(!this.componentToShow.isVisible());\n }", "title": "" }, { "docid": "7a854f32c2eb10be9ae6562c61eee434", "score": "0.65143675", "text": "public void setVisible(String compName, boolean bVisible) {\r\n\t\tComponent comp = getComponentByName(compName);\r\n\t\tif (comp != null)\r\n\t\t\tcomp.setVisible(bVisible);\r\n\t}", "title": "" }, { "docid": "331aaa79182e0513ebc6f35524a94db4", "score": "0.6512625", "text": "public void showHide(boolean show)\n {\n setVisible(show);\n }", "title": "" }, { "docid": "11f6fcf4c4b40377d80c1d7f9eff01ea", "score": "0.6498556", "text": "private void setOverlayVisibility(int visibility) {\n mVerificationOverlay.setVisibility(visibility);\n mControlsContainer.setAlpha(1f);\n boolean contentsShowing = visibility == View.GONE;\n if (!contentsShowing) {\n int durationMs = 250;\n mVerificationOverlay.setAlpha(0f);\n mVerificationOverlay.animate().alpha(1f).setDuration(durationMs);\n mControlsContainer.animate().alpha(0f).setDuration(durationMs);\n }\n ViewCompat.setImportantForAccessibility(mControlsContainer,\n contentsShowing ? View.IMPORTANT_FOR_ACCESSIBILITY_AUTO\n : View.IMPORTANT_FOR_ACCESSIBILITY_NO_HIDE_DESCENDANTS);\n mControlsContainer.setDescendantFocusability(\n contentsShowing ? ViewGroup.FOCUS_BEFORE_DESCENDANTS\n : ViewGroup.FOCUS_BLOCK_DESCENDANTS);\n }", "title": "" }, { "docid": "fd8676f05090aa9f6ea78e4640a8f0a9", "score": "0.64927036", "text": "public void setVisible(boolean visible) {\n\t\tif (shape != null) {\n\t\t\tshape.setVisible(visible);\n\t\t}\n\n\t\tif (shape2 != null) {\n\t\t\tshape2.setVisible(visible);\n\t\t}\n\t}", "title": "" }, { "docid": "666fa6f9475f82b3eda2ea435e2a1af0", "score": "0.6487626", "text": "private void setSyncProgressVisibility(boolean isVisible) {\n if (syncProgressBar == null ||\n syncProgressBar.getVisibility() == (isVisible ? View.VISIBLE : View.GONE)) {\n // not enabled or already in desired state, avoid replaying animation\n return;\n }\n syncProgressBar.startAnimation(AnimationUtils.loadAnimation(syncProgressBar.getContext(),\n isVisible ? R.anim.fade_in : R.anim.fade_out));\n syncProgressBar.setVisibility(isVisible ? View.VISIBLE : View.GONE);\n }", "title": "" }, { "docid": "ea3aba94235c3025401a5c1cb5134e8e", "score": "0.6487606", "text": "public void setUBVisible()\r\n {\r\n ub.setVisible(true);\r\n }", "title": "" }, { "docid": "3c1d014ac2ede8dd67ad8a8084b6ac96", "score": "0.6483432", "text": "@Override\n\tpublic void setVisible(Map<String, Object> properties, boolean isvisible) {\n\t\t\n\t}", "title": "" }, { "docid": "7b95bd23288a0a95241cddb7361a4349", "score": "0.64810795", "text": "public void setVisible(boolean visivel) {\n\t\tthis.setSize(width + padding * 2, height + padding * 2);\r\n\t\t\r\n\t\tsuper.setVisible(visivel);\r\n\t\t\r\n\t\tsetLocationRelativeTo(null);\r\n\t}", "title": "" }, { "docid": "9bad99760fea563043490dc68421c6a0", "score": "0.646047", "text": "public void setVisible(boolean b) {\r\n\t\tthis.frmAbout.setVisible(b);\r\n\t}", "title": "" }, { "docid": "4e5dbddd5a0aad433a3e7d2ecb67c40e", "score": "0.64500725", "text": "private void setFormVisible() {\n }", "title": "" }, { "docid": "9247be4abfee042bac7e5e25da21aa3a", "score": "0.6444328", "text": "public void setHSVVisibility(boolean visible) {\r\n hsvVisibility = visible;\r\n if (isContentInitialized()) {\r\n getContent().setHSVVisibility(visible);\r\n }\r\n }", "title": "" }, { "docid": "54c7d2d0a8d19cd10627a65de5175058", "score": "0.64410305", "text": "public void setLoadingProgressVisibility(boolean visible) {\n\n }", "title": "" }, { "docid": "0798eb585e7d2871c5d39534305151de", "score": "0.6424931", "text": "@Override\n\tpublic void setVisible(boolean visible) {\n\t\tsuper.setVisible(visible);\n\t\tif (visible == true) {\n\t\t\tloadSettings();\n\t\t}\n\t}", "title": "" }, { "docid": "3bac2f4bfee56f1bee3fc429fd4f9d3b", "score": "0.64198107", "text": "public static void changeVisibility(Boolean visBool) {\r\n\t\tProfileTab.btnCancel.setVisible(visBool);\r\n\t\tProfileTab.btnClear.setVisible(visBool);\r\n\t\tProfileTab.btnSave.setVisible(visBool);\r\n\t}", "title": "" }, { "docid": "53225f76b62327f24ac16fd5576e2f0d", "score": "0.6416974", "text": "void makeVisible();", "title": "" }, { "docid": "8cc12e13d734062de7034e9c4b4ff570", "score": "0.6394769", "text": "public boolean getVisibility() {\n return this.hidden;\n }", "title": "" }, { "docid": "785f77d23bb60dcb805ffe38fdddaf7d", "score": "0.6393762", "text": "public void setIsVisible(boolean isVisible)\r\n // ino.end\r\n\t// ino.method.setIsVisible.4959.body \r\n\t{\r\n\t\t_isVisible = isVisible;\r\n\t}", "title": "" }, { "docid": "20ece322e4a08951838971917f3ab095", "score": "0.63928604", "text": "public boolean isVisible(){\n\t\treturn visible;\n\t}", "title": "" }, { "docid": "b15023f11caa3b0dc1ab3f80e4d7d42a", "score": "0.63845885", "text": "public void setVisible(boolean visible) {\n if (visible) {\n PolylineImpl.impl.show(jsoPeer);\n } else {\n PolylineImpl.impl.hide(jsoPeer);\n }\n }", "title": "" }, { "docid": "d4f5e0765664ea03c3426a6c9370450d", "score": "0.63777775", "text": "public void setHidden(boolean hidden)\r\n {\r\n this.hidden = hidden;\r\n }", "title": "" }, { "docid": "90076f21a94de56918d7a91a0aa7b9e8", "score": "0.63741916", "text": "public boolean isVisible() {\n return visible;\n }", "title": "" }, { "docid": "3fa229f31dc1118b9665b940d5a13807", "score": "0.6360397", "text": "public void setSwatchesVisibility(boolean visible) {\r\n swatchesVisibility = visible;\r\n if (isContentInitialized()) {\r\n getContent().setSwatchesVisibility(visible);\r\n }\r\n }", "title": "" }, { "docid": "005a8f98bb94e05b26d58882e94b8fb3", "score": "0.6356315", "text": "public boolean getVisibility() { \n\t\treturn visible; \n\t}", "title": "" } ]
01f4b12f6f8380849fd0f4d58c0f068c
obter o elemento com 'id'
[ { "docid": "6b63e6c8a13c46c19b73c0c997ed4598", "score": "0.0", "text": "@RequestMapping(\n value = \"/{ue_id}/instalacoes/{id}\"\n ,method = RequestMethod.GET\n )\n public String details(\n @PathVariable( \"ue_id\" ) Long ueId\n ,@PathVariable( \"id\" ) Long id\n ,Model model\n ) {\n Instalacao instalacao = null;\n try {\n instalacao = _logic.getOneInstalacao( ueId, id );\n }\n catch( PropertyEntityException e ) {\n throw new RuntimeException( e );\n }\n\n model.addAttribute( instalacao );\n return VIEW_NAME_INSTALACAO_DETAILS;\n }", "title": "" } ]
[ { "docid": "4346e5a854bafebc22dbca1980d8631f", "score": "0.73170453", "text": "public void setId(String id) { this.id = id; }", "title": "" }, { "docid": "ab75ab95a5de3de10af22bb1fde919c4", "score": "0.7154965", "text": "public void setId(String id){\n this.id = id;\n }", "title": "" }, { "docid": "519f45d8e6617dfda5352225f70bfa2a", "score": "0.71396947", "text": "public void setId(String id){\n this.id = id;\n }", "title": "" }, { "docid": "37d0a135e222a740b97da58eb4c703b8", "score": "0.71344924", "text": "void setId(String id) {\n this.id = id;\n }", "title": "" }, { "docid": "29965c5ca5693e316136418f26d63e7e", "score": "0.7105149", "text": "public void setId(String id)\n { this.id=id;\n }", "title": "" }, { "docid": "aa4f0911012b8c0761cbd0e20d29287c", "score": "0.7062491", "text": "void setId(String id) {\r\n\t this.id = id;\r\n\t}", "title": "" }, { "docid": "e0a48d763c64445de504666cf016ba52", "score": "0.70592284", "text": "public void setId(String value) {\n this.id = value;\n }", "title": "" }, { "docid": "553f022d92cd42e529e2201c8c72716e", "score": "0.70103174", "text": "public String getId() {return id;}", "title": "" }, { "docid": "3d5a6d824ebede22d07a3ac5569a9b13", "score": "0.69913036", "text": "public void setId(String id)\r\n {\r\n this.id = id;\r\n }", "title": "" }, { "docid": "70916f9e9eaec608faa71f4d1e5fa8a3", "score": "0.69621044", "text": "public void setId(String id) {\n this.id = id;\n }", "title": "" }, { "docid": "70916f9e9eaec608faa71f4d1e5fa8a3", "score": "0.69621044", "text": "public void setId(String id) {\n this.id = id;\n }", "title": "" }, { "docid": "70916f9e9eaec608faa71f4d1e5fa8a3", "score": "0.69621044", "text": "public void setId(String id) {\n this.id = id;\n }", "title": "" }, { "docid": "4c5e479ceec78babcae435dc88ee39b9", "score": "0.69562", "text": "public void setId(String id) { \r\n\t\tthis.id = id;\t\r\n\t}", "title": "" }, { "docid": "5a7581a7298386eaae3e1d5363790d56", "score": "0.69547904", "text": "public void setId(String id) {\r\n this.id = id;\r\n }", "title": "" }, { "docid": "5a7581a7298386eaae3e1d5363790d56", "score": "0.69547904", "text": "public void setId(String id) {\r\n this.id = id;\r\n }", "title": "" }, { "docid": "5a7581a7298386eaae3e1d5363790d56", "score": "0.69547904", "text": "public void setId(String id) {\r\n this.id = id;\r\n }", "title": "" }, { "docid": "5a7581a7298386eaae3e1d5363790d56", "score": "0.69547904", "text": "public void setId(String id) {\r\n this.id = id;\r\n }", "title": "" }, { "docid": "9053e93c93f7375308406b693455fe7c", "score": "0.69267243", "text": "public void setId(String id)\n {\n this.id = id;\n }", "title": "" }, { "docid": "9053e93c93f7375308406b693455fe7c", "score": "0.69267243", "text": "public void setId(String id)\n {\n this.id = id;\n }", "title": "" }, { "docid": "9053e93c93f7375308406b693455fe7c", "score": "0.69267243", "text": "public void setId(String id)\n {\n this.id = id;\n }", "title": "" }, { "docid": "9053e93c93f7375308406b693455fe7c", "score": "0.69267243", "text": "public void setId(String id)\n {\n this.id = id;\n }", "title": "" }, { "docid": "2f72868e7384881be45e85f059c179b5", "score": "0.69260365", "text": "public void setIdComentario(int id) {\n this.id = id;\n }", "title": "" }, { "docid": "6b15c1aff2565393348daf1897a91855", "score": "0.6924148", "text": "public void setId (String id) {\n this.id = id;\n }", "title": "" }, { "docid": "16b108aa17d5f2d23cfe16b486e48c2b", "score": "0.69185513", "text": "public void setID(String id) {\n this.id = id;\n }", "title": "" }, { "docid": "b502edabd57c1665b459ab09a373aa67", "score": "0.6913074", "text": "public T obterPorId(int id);", "title": "" }, { "docid": "760e82d8f139b4ba826b8f50edfdb3bb", "score": "0.6906583", "text": "public void setId(String id) {\n this.id = id;\n }", "title": "" }, { "docid": "760e82d8f139b4ba826b8f50edfdb3bb", "score": "0.6906583", "text": "public void setId(String id) {\n this.id = id;\n }", "title": "" }, { "docid": "760e82d8f139b4ba826b8f50edfdb3bb", "score": "0.6906583", "text": "public void setId(String id) {\n this.id = id;\n }", "title": "" }, { "docid": "760e82d8f139b4ba826b8f50edfdb3bb", "score": "0.6906583", "text": "public void setId(String id) {\n this.id = id;\n }", "title": "" }, { "docid": "760e82d8f139b4ba826b8f50edfdb3bb", "score": "0.6906583", "text": "public void setId(String id) {\n this.id = id;\n }", "title": "" }, { "docid": "760e82d8f139b4ba826b8f50edfdb3bb", "score": "0.6906583", "text": "public void setId(String id) {\n this.id = id;\n }", "title": "" }, { "docid": "760e82d8f139b4ba826b8f50edfdb3bb", "score": "0.6906583", "text": "public void setId(String id) {\n this.id = id;\n }", "title": "" }, { "docid": "760e82d8f139b4ba826b8f50edfdb3bb", "score": "0.6906583", "text": "public void setId(String id) {\n this.id = id;\n }", "title": "" }, { "docid": "760e82d8f139b4ba826b8f50edfdb3bb", "score": "0.6906583", "text": "public void setId(String id) {\n this.id = id;\n }", "title": "" }, { "docid": "760e82d8f139b4ba826b8f50edfdb3bb", "score": "0.6906583", "text": "public void setId(String id) {\n this.id = id;\n }", "title": "" }, { "docid": "760e82d8f139b4ba826b8f50edfdb3bb", "score": "0.6906583", "text": "public void setId(String id) {\n this.id = id;\n }", "title": "" }, { "docid": "760e82d8f139b4ba826b8f50edfdb3bb", "score": "0.6906583", "text": "public void setId(String id) {\n this.id = id;\n }", "title": "" }, { "docid": "760e82d8f139b4ba826b8f50edfdb3bb", "score": "0.6906583", "text": "public void setId(String id) {\n this.id = id;\n }", "title": "" }, { "docid": "760e82d8f139b4ba826b8f50edfdb3bb", "score": "0.6906583", "text": "public void setId(String id) {\n this.id = id;\n }", "title": "" }, { "docid": "760e82d8f139b4ba826b8f50edfdb3bb", "score": "0.6906583", "text": "public void setId(String id) {\n this.id = id;\n }", "title": "" }, { "docid": "760e82d8f139b4ba826b8f50edfdb3bb", "score": "0.6906583", "text": "public void setId(String id) {\n this.id = id;\n }", "title": "" }, { "docid": "760e82d8f139b4ba826b8f50edfdb3bb", "score": "0.6906583", "text": "public void setId(String id) {\n this.id = id;\n }", "title": "" }, { "docid": "760e82d8f139b4ba826b8f50edfdb3bb", "score": "0.6906583", "text": "public void setId(String id) {\n this.id = id;\n }", "title": "" }, { "docid": "760e82d8f139b4ba826b8f50edfdb3bb", "score": "0.6906583", "text": "public void setId(String id) {\n this.id = id;\n }", "title": "" }, { "docid": "760e82d8f139b4ba826b8f50edfdb3bb", "score": "0.6906583", "text": "public void setId(String id) {\n this.id = id;\n }", "title": "" }, { "docid": "760e82d8f139b4ba826b8f50edfdb3bb", "score": "0.6906583", "text": "public void setId(String id) {\n this.id = id;\n }", "title": "" }, { "docid": "760e82d8f139b4ba826b8f50edfdb3bb", "score": "0.6906583", "text": "public void setId(String id) {\n this.id = id;\n }", "title": "" }, { "docid": "760e82d8f139b4ba826b8f50edfdb3bb", "score": "0.6906583", "text": "public void setId(String id) {\n this.id = id;\n }", "title": "" }, { "docid": "760e82d8f139b4ba826b8f50edfdb3bb", "score": "0.6906583", "text": "public void setId(String id) {\n this.id = id;\n }", "title": "" }, { "docid": "760e82d8f139b4ba826b8f50edfdb3bb", "score": "0.6906583", "text": "public void setId(String id) {\n this.id = id;\n }", "title": "" }, { "docid": "760e82d8f139b4ba826b8f50edfdb3bb", "score": "0.6906583", "text": "public void setId(String id) {\n this.id = id;\n }", "title": "" }, { "docid": "760e82d8f139b4ba826b8f50edfdb3bb", "score": "0.6906583", "text": "public void setId(String id) {\n this.id = id;\n }", "title": "" }, { "docid": "760e82d8f139b4ba826b8f50edfdb3bb", "score": "0.6906583", "text": "public void setId(String id) {\n this.id = id;\n }", "title": "" }, { "docid": "760e82d8f139b4ba826b8f50edfdb3bb", "score": "0.6906583", "text": "public void setId(String id) {\n this.id = id;\n }", "title": "" }, { "docid": "760e82d8f139b4ba826b8f50edfdb3bb", "score": "0.6906583", "text": "public void setId(String id) {\n this.id = id;\n }", "title": "" }, { "docid": "760e82d8f139b4ba826b8f50edfdb3bb", "score": "0.6906583", "text": "public void setId(String id) {\n this.id = id;\n }", "title": "" }, { "docid": "760e82d8f139b4ba826b8f50edfdb3bb", "score": "0.6906583", "text": "public void setId(String id) {\n this.id = id;\n }", "title": "" }, { "docid": "760e82d8f139b4ba826b8f50edfdb3bb", "score": "0.6906583", "text": "public void setId(String id) {\n this.id = id;\n }", "title": "" }, { "docid": "760e82d8f139b4ba826b8f50edfdb3bb", "score": "0.6906583", "text": "public void setId(String id) {\n this.id = id;\n }", "title": "" }, { "docid": "760e82d8f139b4ba826b8f50edfdb3bb", "score": "0.6906583", "text": "public void setId(String id) {\n this.id = id;\n }", "title": "" }, { "docid": "760e82d8f139b4ba826b8f50edfdb3bb", "score": "0.6906583", "text": "public void setId(String id) {\n this.id = id;\n }", "title": "" }, { "docid": "d781136ba761071a3e6bafd7c6ef4c82", "score": "0.68946016", "text": "java.lang.String getId();", "title": "" }, { "docid": "d781136ba761071a3e6bafd7c6ef4c82", "score": "0.6893802", "text": "java.lang.String getId();", "title": "" }, { "docid": "d781136ba761071a3e6bafd7c6ef4c82", "score": "0.6893802", "text": "java.lang.String getId();", "title": "" }, { "docid": "d781136ba761071a3e6bafd7c6ef4c82", "score": "0.6893802", "text": "java.lang.String getId();", "title": "" }, { "docid": "d781136ba761071a3e6bafd7c6ef4c82", "score": "0.6893802", "text": "java.lang.String getId();", "title": "" }, { "docid": "d781136ba761071a3e6bafd7c6ef4c82", "score": "0.6893802", "text": "java.lang.String getId();", "title": "" }, { "docid": "d781136ba761071a3e6bafd7c6ef4c82", "score": "0.6893802", "text": "java.lang.String getId();", "title": "" }, { "docid": "d781136ba761071a3e6bafd7c6ef4c82", "score": "0.6893802", "text": "java.lang.String getId();", "title": "" }, { "docid": "d781136ba761071a3e6bafd7c6ef4c82", "score": "0.6893802", "text": "java.lang.String getId();", "title": "" }, { "docid": "d781136ba761071a3e6bafd7c6ef4c82", "score": "0.6893802", "text": "java.lang.String getId();", "title": "" }, { "docid": "d781136ba761071a3e6bafd7c6ef4c82", "score": "0.6893802", "text": "java.lang.String getId();", "title": "" }, { "docid": "d781136ba761071a3e6bafd7c6ef4c82", "score": "0.6893802", "text": "java.lang.String getId();", "title": "" }, { "docid": "d781136ba761071a3e6bafd7c6ef4c82", "score": "0.6893802", "text": "java.lang.String getId();", "title": "" }, { "docid": "d781136ba761071a3e6bafd7c6ef4c82", "score": "0.6893802", "text": "java.lang.String getId();", "title": "" }, { "docid": "d781136ba761071a3e6bafd7c6ef4c82", "score": "0.6893802", "text": "java.lang.String getId();", "title": "" }, { "docid": "d781136ba761071a3e6bafd7c6ef4c82", "score": "0.6893802", "text": "java.lang.String getId();", "title": "" }, { "docid": "d781136ba761071a3e6bafd7c6ef4c82", "score": "0.6893802", "text": "java.lang.String getId();", "title": "" }, { "docid": "d781136ba761071a3e6bafd7c6ef4c82", "score": "0.6893802", "text": "java.lang.String getId();", "title": "" }, { "docid": "d781136ba761071a3e6bafd7c6ef4c82", "score": "0.6893802", "text": "java.lang.String getId();", "title": "" }, { "docid": "d781136ba761071a3e6bafd7c6ef4c82", "score": "0.6893802", "text": "java.lang.String getId();", "title": "" }, { "docid": "d781136ba761071a3e6bafd7c6ef4c82", "score": "0.6893802", "text": "java.lang.String getId();", "title": "" }, { "docid": "d781136ba761071a3e6bafd7c6ef4c82", "score": "0.6893802", "text": "java.lang.String getId();", "title": "" }, { "docid": "8ac2501ea5cf9ced3bbedbed7ff349ba", "score": "0.6885846", "text": "public void setId (String i) { id = i; }", "title": "" }, { "docid": "d2a85fafd97d000625e9bde84e02a5f2", "score": "0.68800616", "text": "public String getId() { return id; }", "title": "" }, { "docid": "a29de58727ce884496a60d3bd47abe58", "score": "0.68765205", "text": "public void setID(int id) {this.id = id;}", "title": "" }, { "docid": "6a38fa682b278becbb5cd4a20fe4e1d1", "score": "0.6873589", "text": "IRIElement getIdElement();", "title": "" }, { "docid": "a603ab2be3abb5139dbc9b57bd52dd22", "score": "0.6871583", "text": "public void setId(int id){\n this.id = id;\n }", "title": "" }, { "docid": "61e8667c1e6a8fe1660705de0a34d386", "score": "0.6858271", "text": "void setId(int id) {\n this.id = id;\n }", "title": "" }, { "docid": "fbe3f5ff1651371de3c13c7c84017610", "score": "0.68579227", "text": "@Override\n\tpublic void setId(String id) {\nthis.id = id;\n\t}", "title": "" }, { "docid": "ecebbfba073589c21c0bb07938fd1cdf", "score": "0.6847822", "text": "void setId(java.lang.String id);", "title": "" }, { "docid": "ecebbfba073589c21c0bb07938fd1cdf", "score": "0.6847822", "text": "void setId(java.lang.String id);", "title": "" }, { "docid": "ecebbfba073589c21c0bb07938fd1cdf", "score": "0.6847822", "text": "void setId(java.lang.String id);", "title": "" }, { "docid": "ecebbfba073589c21c0bb07938fd1cdf", "score": "0.6847822", "text": "void setId(java.lang.String id);", "title": "" }, { "docid": "ecebbfba073589c21c0bb07938fd1cdf", "score": "0.6847822", "text": "void setId(java.lang.String id);", "title": "" }, { "docid": "403dd2324d0fa179f60087e431e3a8c0", "score": "0.68419534", "text": "public void setId (String id);", "title": "" }, { "docid": "23bbf97e5d7547726a6c6790827fb3f6", "score": "0.6813259", "text": "Entry setIdElement(IRIElement id);", "title": "" }, { "docid": "e5e40506424a106f08233550ccf6c471", "score": "0.68091106", "text": "public void setId(int id){\n this.id = id;\n }", "title": "" }, { "docid": "e5e40506424a106f08233550ccf6c471", "score": "0.68091106", "text": "public void setId(int id){\n this.id = id;\n }", "title": "" }, { "docid": "e5e40506424a106f08233550ccf6c471", "score": "0.68091106", "text": "public void setId(int id){\n this.id = id;\n }", "title": "" }, { "docid": "db0e41576f5257783b070f6bbb435fbe", "score": "0.68082285", "text": "public String getid()\t{ return id;\t}", "title": "" } ]
c58abc7b0b2a59e2e8de3ba47d5e5d85
associates this ISOServer with a name using NameRegistrar
[ { "docid": "02f492b2576bbd7bba96834dcba4197f", "score": "0.6472608", "text": "public void setName (String name) {\n this.name = name;\n NameRegistrar.register (\"server.\"+name, this);\n }", "title": "" } ]
[ { "docid": "43b47d87251f5d6b5751cc562026c220", "score": "0.5578117", "text": "void registerName() throws IOException, ClientNameException {\n Global.log(\"Sending player information [\" + name + \"]...\");\n mainServer.out.println(name);\n\t\tmainServer.out.flush();\n Global.log(\"Checking if name already exists...\");\n \n // check if registered\n String s = mainServer.readLine();\n if (!s.equals(\"OK\")) {\n Global.log(\"Error! Name already exists. ClientNameException thrown.\");\n throw new ClientNameException(\"Client name [\" + name + \"] already exists in server\");\n }\n \n Global.log(\"Successfully registered as [\" + name + \"]\");\n \n \n }", "title": "" }, { "docid": "88134e2916184089a07f17ebf456f63e", "score": "0.5571404", "text": "public void registerWithServer();", "title": "" }, { "docid": "974e083a83f9f3593add1478394ec37f", "score": "0.55183506", "text": "public void addServer(String nameServer) { \n Server server = new Server(nameServer);\n serversList.add(server);\n }", "title": "" }, { "docid": "d0a5c0ace91bf9f8554b71de7727c597", "score": "0.54051363", "text": "public void setName() {\r\n\t\tapplianceName = \"Refrigerator\";\r\n\t}", "title": "" }, { "docid": "be25a1f8d6b9837a5f2e9ead56c9750e", "score": "0.532283", "text": "public void connect() {\n try {\n // ghetto hardcode the parameters\n ORB orb = ORB.init(new String[]{\"-ORBInitialHost\", \"localhost\", \"-ORBInitialPort\", \"8989\"}, null);\n\n org.omg.CORBA.Object objRef = orb.resolve_initial_references(\"NameService\");\n NamingContext ncRef = NamingContextHelper.narrow(objRef);\n\n NameComponent nc = new NameComponent(station, \"\");\n NameComponent path[] = {nc};\n instance = StationInterfaceHelper.narrow(ncRef.resolve(path));\n\n this.log.log(\"Connected!\");\n } catch (Exception ex) {\n log.log(ex.toString() + ex.getMessage());\n }\n }", "title": "" }, { "docid": "16cb5a7ed74acb2d1fe9d978b6d45ebf", "score": "0.5320691", "text": "private void register() {\n\t\tInetAddress iNA;\n\t\ttry {\n\t\t\tiNA = InetAddress.getLocalHost();\n\t\t\tmyIPAddress = iNA.getAddress();\n\t\t\tOverlayNodeSendsRegistration register = new OverlayNodeSendsRegistration(\n\t\t\t\t\tmyIPAddress, myServerThreadPortNum);\n\t\t\tthis.registry.getSender().sendData(register.getBytes());\n\t\t} catch (UnknownHostException e1) {\n\t\t\tSystem.out.println(e1.getMessage()\n\t\t\t\t\t+ \" Trouble sending registration event.\");\n\t\t} catch (IOException e) {\n\t\t\tSystem.out.println(e.getMessage()\n\t\t\t\t\t+ \" Trouble sending registration event.\");\n\t\t}\n\t}", "title": "" }, { "docid": "6bf55fcecdd31757e67ae0c8c646286b", "score": "0.5298773", "text": "public void addNameServer(String ns) {\n\t\tif (ns != null)\n\t\t// check to see if item is already in list\n\t\tif (_nameservers.indexOf(ns) < 0)\n\t\t\t_nameservers.add(ns);\n\t}", "title": "" }, { "docid": "7a824d758015135d6f12e0088637a8d4", "score": "0.5288628", "text": "public void add_server(String host) throws LookupException, \n NameServerContactException{\n \n String ip = lookup_ip(host);\n int port = lookup_port(host);\n System.out.println(\"Lookup of host \" + host + \": Success\");\n \n Server server = new Server(host, ip, port);\n \n servers.put(host, server);\n }", "title": "" }, { "docid": "6b4e7fa3c09b76e1e28f623ad032d8b8", "score": "0.5221673", "text": "public RouteInterface setName(String name);", "title": "" }, { "docid": "c26ac0ac28efa4222ce9bed0c41f391d", "score": "0.520606", "text": "public void setName(String arg, String compcode) throws ReadWriteException\n\t{\n\t\tsetValue(_Prefix + HardZone.NAME.toString(), arg, compcode);\n\t}", "title": "" }, { "docid": "dafc9ed536e75f7bc670ab2911cc1856", "score": "0.51840097", "text": "public void registerForSimNameChange(Handler h, int what, Object obj) {\n Registrant r = new Registrant (h, what, obj);\n\n synchronized (INSTANCE_LOCK) {\n mMultiSimNamesRegistrants.add(r);\n }\n }", "title": "" }, { "docid": "5dc91cb5a39fbcb502d0f2f9de7ee34d", "score": "0.51799214", "text": "void registerMaster(ZeroconfRosMasterInfo masterInfo);", "title": "" }, { "docid": "e6bc38ca78ecdc95f897b1d528f8d617", "score": "0.5177025", "text": "public void createHost( String hostname );", "title": "" }, { "docid": "c3dff84580380b075f057d8047a9eaa0", "score": "0.5146134", "text": "T setHostName(String hostName);", "title": "" }, { "docid": "cfc3e95b332a888d362ddd9283281ad9", "score": "0.5099322", "text": "@Override\n\tpublic void setName(String name) throws RemoteException {\n\t\tthis.name = name;\n\t}", "title": "" }, { "docid": "9a775968bdcc6873d82b72be14147562", "score": "0.50940883", "text": "public void setName(String name);", "title": "" }, { "docid": "9a775968bdcc6873d82b72be14147562", "score": "0.50940883", "text": "public void setName(String name);", "title": "" }, { "docid": "9a775968bdcc6873d82b72be14147562", "score": "0.50940883", "text": "public void setName(String name);", "title": "" }, { "docid": "9a775968bdcc6873d82b72be14147562", "score": "0.50940883", "text": "public void setName(String name);", "title": "" }, { "docid": "9a775968bdcc6873d82b72be14147562", "score": "0.50940883", "text": "public void setName(String name);", "title": "" }, { "docid": "9a775968bdcc6873d82b72be14147562", "score": "0.50940883", "text": "public void setName(String name);", "title": "" }, { "docid": "9a775968bdcc6873d82b72be14147562", "score": "0.50940883", "text": "public void setName(String name);", "title": "" }, { "docid": "9a775968bdcc6873d82b72be14147562", "score": "0.50940883", "text": "public void setName(String name);", "title": "" }, { "docid": "9a775968bdcc6873d82b72be14147562", "score": "0.50940883", "text": "public void setName(String name);", "title": "" }, { "docid": "9a775968bdcc6873d82b72be14147562", "score": "0.50940883", "text": "public void setName(String name);", "title": "" }, { "docid": "9a775968bdcc6873d82b72be14147562", "score": "0.50940883", "text": "public void setName(String name);", "title": "" }, { "docid": "02e90e4ec3ddf8889c9f97827427a7f6", "score": "0.5080246", "text": "public void setName (String Name);", "title": "" }, { "docid": "02e90e4ec3ddf8889c9f97827427a7f6", "score": "0.5080246", "text": "public void setName (String Name);", "title": "" }, { "docid": "02e90e4ec3ddf8889c9f97827427a7f6", "score": "0.5080246", "text": "public void setName (String Name);", "title": "" }, { "docid": "d1760e8fbc4696a46e23f1a199f8987e", "score": "0.50776494", "text": "org.hl7.fhir.CodeableConcept addNewName();", "title": "" }, { "docid": "190f70c83689cfa55757cd1046921110", "score": "0.50593966", "text": "@Override\n\tpublic void addServer(String arg0) throws IOException {\n\n\t}", "title": "" }, { "docid": "579ba0c43a45791f3d4f72b557ab8bd7", "score": "0.5058574", "text": "public void setName(String arg) throws ReadWriteException\n\t{\n\t\tsetValue(_Prefix + HardZone.NAME.toString(), arg);\n\t}", "title": "" }, { "docid": "ff00791720c2f50efa0158e8416dee16", "score": "0.50454396", "text": "private static void connectToNameNode(){\n int nameNodeID = GlobalContext.getNameNodeId();\n ServerConnectMsg msg = new ServerConnectMsg(null);\n\n if(comm_bus.isLocalEntity(nameNodeID)) {\n log.info(\"Connect to local name node\");\n comm_bus.connectTo(nameNodeID, msg.getByteBuffer());\n } else {\n log.info(\"Connect to remote name node\");\n HostInfo nameNodeInfo = GlobalContext.getHostInfo(nameNodeID);\n String nameNodeAddr = nameNodeInfo.ip + \":\" + nameNodeInfo.port;\n log.info(\"name_node_addr = \" + String.valueOf(nameNodeAddr));\n comm_bus.connectTo(nameNodeID, nameNodeAddr, msg.getByteBuffer());\n }\n }", "title": "" }, { "docid": "506b06be25c873b3848601ccb7fed18d", "score": "0.5037608", "text": "public void setName() {\r\n\t\tapplianceName = \"ElectricShower\";\r\n\t}", "title": "" }, { "docid": "a1152c660cbabcd54ec6b5f99e8b5fa5", "score": "0.49777675", "text": "void setName(String name);", "title": "" }, { "docid": "a1152c660cbabcd54ec6b5f99e8b5fa5", "score": "0.49777675", "text": "void setName(String name);", "title": "" }, { "docid": "a1152c660cbabcd54ec6b5f99e8b5fa5", "score": "0.49777675", "text": "void setName(String name);", "title": "" }, { "docid": "a1152c660cbabcd54ec6b5f99e8b5fa5", "score": "0.49777675", "text": "void setName(String name);", "title": "" }, { "docid": "a1152c660cbabcd54ec6b5f99e8b5fa5", "score": "0.49777675", "text": "void setName(String name);", "title": "" }, { "docid": "a1152c660cbabcd54ec6b5f99e8b5fa5", "score": "0.49777675", "text": "void setName(String name);", "title": "" }, { "docid": "8493fe47d491fce3b773af4c26f749fd", "score": "0.49774417", "text": "void addHasInstitutionName(String newHasInstitutionName);", "title": "" }, { "docid": "1d675a266913f05ad30bb2f993a51f5d", "score": "0.49721587", "text": "public void setName(java.lang.String aName);", "title": "" }, { "docid": "f21ab70bef6c5bda61bbac83eb811a39", "score": "0.4968629", "text": "void setName(String name_);", "title": "" }, { "docid": "9a6131008cd5bc9b63674c1def1af122", "score": "0.4953179", "text": "public void setName(final String name);", "title": "" }, { "docid": "47ad12024e111d37790016209d8f9546", "score": "0.4939979", "text": "public Gateway setAccountName(java.lang.String accountName) {\n return genClient.setOther(accountName, CacheKey.accountName);\n }", "title": "" }, { "docid": "f3af7500afb06d2de8d5261ba9fa7872", "score": "0.49365982", "text": "public void setNameProvider(NameProvider nameProvider2) {\n\t\tnameProvider = nameProvider2;\n\t}", "title": "" }, { "docid": "92750a8baaae3bd34e45bebc394f5cc8", "score": "0.4932716", "text": "public void setName(Identifier name) throws SourceException;", "title": "" }, { "docid": "612b90b88ae6a8888932e0ab49525e0b", "score": "0.49059737", "text": "void register(String linkName, Link link) throws CCAException;", "title": "" }, { "docid": "ccba1173a79f33fa8ebad8184aa766bd", "score": "0.48911303", "text": "public static void main(String[] args) throws RemoteException, MalformedURLException {\n\t\tAddC add = new AddC(); \r\n\t\tNaming.rebind(\"ADD\", add);\r\n\t\tSystem.out.println(\"Server Up and running\");\r\n\t}", "title": "" }, { "docid": "d839e8b87eaba060a7a0cb930dc1aaf7", "score": "0.48899803", "text": "public void setName(String arg[]) throws ReadWriteException\n\t{\n\t\tsetValue(_Prefix + HardZone.NAME.toString(), arg);\n\t}", "title": "" }, { "docid": "bed83aff3ed805512957bac7cb7e06e2", "score": "0.4881654", "text": "public void registerMaid(String maidName, MyMaid maid){\n //add maid to registry\n mMaidRegistry.put(maidName, maid);\n }", "title": "" }, { "docid": "601fba5f146d2e4ab748ce3723adecfc", "score": "0.48580438", "text": "public void setName(String aName) {\n name = aName;\n }", "title": "" }, { "docid": "17e2ae70c5a586d6f1e5c63d9ec2e495", "score": "0.48575708", "text": "public void registerService(Registrant r) {\n namingService.registerService(r);\n }", "title": "" }, { "docid": "b9fec3b78f900cd053df0053523f8eaf", "score": "0.4843266", "text": "public void registerServer() {\n log.info(\"Registering service {}\", serviceName);\n cancelDiscovery = discoveryService.register(\n ResolvingDiscoverable.of(new Discoverable(serviceName, httpService.getBindAddress())));\n }", "title": "" }, { "docid": "b7136a654da2defb43561d19839343ed", "score": "0.48406923", "text": "private void addRegionToSpriteProviders(final Region region, final String name) {\n for (final SpriteProvider sp : spriteProviders) {\n sp.addRegion(region, name);\n }\n }", "title": "" }, { "docid": "bdf51723d28eda6ba3fc6769471f708a", "score": "0.4832402", "text": "public static void setName(String name) {\n catalogue.name = name;\n }", "title": "" }, { "docid": "1316add63e120ed5bbca73ff64d79172", "score": "0.4808382", "text": "void register(String name, K key, V value);", "title": "" }, { "docid": "77f597ad37b396a52748d837efad2e87", "score": "0.48083588", "text": "void putServiceName(net.zyuiop.ovhapi.api.objects.license.windows.Windows param0, java.lang.String serviceName) throws java.io.IOException;", "title": "" }, { "docid": "a48c034f1875d16c5cd2c206e26e418a", "score": "0.4805837", "text": "public void setName(final String name) {\n\t\tLOGGER.debug(\"SecurityObject#setName [name=\" + name + \"]\");\n\n\t\tthis.name = name;\n\t}", "title": "" }, { "docid": "3c968cdf0e708071764ad9fe4c71b3ae", "score": "0.48055997", "text": "public void addAgent(String name)\r\n {\n \r\n }", "title": "" }, { "docid": "0f37526e0e37e5649565b0128726dd10", "score": "0.4799532", "text": "void setName(java.lang.String name);", "title": "" }, { "docid": "0f37526e0e37e5649565b0128726dd10", "score": "0.4799532", "text": "void setName(java.lang.String name);", "title": "" }, { "docid": "0f37526e0e37e5649565b0128726dd10", "score": "0.4799532", "text": "void setName(java.lang.String name);", "title": "" }, { "docid": "70b3fbf69d280fbf70e8baac716a9fd5", "score": "0.4799354", "text": "public void setName(String inName)\n {\n name = inName;\n }", "title": "" }, { "docid": "7661fcd2004b359589c64132196d1801", "score": "0.4799287", "text": "public void initRMIBindings() {\n\tString name = null;\n\ttry {\n Configuration configuration=proxy.getConfiguration();\n if (configuration.accessLogViaRMI) {\n SipStack sipStack=proxy.getSipStack();\n Iterator it =sipStack.getListeningPoints();\n ListeningPoint lp = (ListeningPoint) it.next();\n String stackIPAddress = sipStack.getIPAddress();\n name = \"//\" + stackIPAddress + \":\" + 0 + \"/\" +\n sipStack.getStackName()\n + \"/\" + \"test.jainproxy.Registrar\";\n if (ProxyDebug.debug) {\n ProxyDebug.println(\"Exporting Registration Table \" + name);\n }\n Naming.rebind(name,this);\n }\n else {\n if (ProxyDebug.debug)\n ProxyDebug.println\n (\"We don't export the registrations because RMI is disabled.\");\n }\n } \n catch (Exception ex) {\n if (ProxyDebug.debug) {\n ProxyDebug.println\n (\"Problem trying to export the Registration Table: \" + name);\n }\n\t ex.printStackTrace();\n\t}\n }", "title": "" }, { "docid": "d5f8eafe93fd7c28c1bb8a269a46861e", "score": "0.47981933", "text": "Builder addAlternateName(String value);", "title": "" }, { "docid": "9ae2ae2e6b564bd0d99cccd6830e533e", "score": "0.47963828", "text": "public void setName (String n){\n\t\tname = n;\n\t}", "title": "" }, { "docid": "db746ef7fe0d6295a492f9b715690cd7", "score": "0.47943872", "text": "void setHostname(String hostname);", "title": "" }, { "docid": "9b64cbd74957eb9c7f4a2329229989d6", "score": "0.47941598", "text": "public DistributionSrv register(String pluginName, String destination)\n throws DistributionException {\n return this.register(pluginName, destination, false);\n }", "title": "" }, { "docid": "a42798ebc149e20329ec66fce0749a82", "score": "0.47924718", "text": "public void registerService(String serviceName){\n jmc.registerService(serviceName);\n }", "title": "" }, { "docid": "830ccc3109a323338eaec45509a4c751", "score": "0.47898495", "text": "public void addName() throws JNCException {\n setLeafValue(Routing.NAMESPACE,\n \"name\",\n null,\n childrenNames());\n }", "title": "" }, { "docid": "682299140a0705102123cc2767f68ccb", "score": "0.47720453", "text": "public HostToGroupMapping(Configuration configuration, String name) {\n \tthis.configurationRef = new SoftReference(configuration);\n \tthis.name = name;\n }", "title": "" }, { "docid": "68d32348f0d4871454bbdeafac89597b", "score": "0.47695774", "text": "void connect(ServerEntry server, String name) throws Exception;", "title": "" }, { "docid": "03de5b85ce84cf27cc781c27aaeee684", "score": "0.47679543", "text": "public void registerCard(String alias, int card_nr, String Bank_name) {\n }", "title": "" }, { "docid": "8de62c1c172b1412e41de5c1211b8c1e", "score": "0.4763413", "text": "public void setName(String inName)\n {\n\tname = inName;\n }", "title": "" }, { "docid": "0d913887e21a63ce66be75d757f8b778", "score": "0.47618073", "text": "private void tryNickname(NicknameEvent nicknameEvent) {\n if(connectionChoice == 1) {\n if(nicknameEvent.isFirstTime()){\n //Usare amazon checkip per rmi, settare la proprietà del sistema\n try {\n remoteReference = (ClientInterfaceRMI) UnicastRemoteObject.exportObject(this, 0);\n } catch (ExportException ignore) {\n //if the object is already exported then do nothing\n } catch (RemoteException e) {\n System.err.println(CONNECTION_ERROR + e.getMessage() + \"!\");\n }\n }\n\n try {\n server.addClient(remoteReference);\n } catch (RemoteException e) {\n System.err.println(CONNECTION_ERROR + e.getMessage() + \"!\");\n } catch (IllegalArgumentException e) {\n System.out.println(e.getMessage());\n setChanged();\n notifyObservers(new ConnectionEstablishedEvent(false));\n }\n } else {\n try {\n server.notify(nicknameEvent);\n }\n catch (RemoteException e) {\n System.out.println(\"This should never happen!\");\n }\n }\n }", "title": "" }, { "docid": "139563432d45f11ffbbe8cab1d71f6a6", "score": "0.47557184", "text": "@CallSuper\n public void registerOrganizer() {\n try {\n getController().registerOrganizer(mInterface);\n } catch (RemoteException e) {\n throw e.rethrowFromSystemServer();\n }\n }", "title": "" }, { "docid": "88bb8e15e3ea1479c7c754ad2ffb19ae", "score": "0.47529867", "text": "public void setZoneName(String zoneName);", "title": "" }, { "docid": "d883e8f1de33760745ed3fd73cf328e0", "score": "0.47475997", "text": "public void setNameServers(String[] nameservers) {\n\t\tif (nameservers != null) {\n\t\t\t_nameservers.clear();\n\t\t\tfor (int i = 0; i < nameservers.length; i++)\n\t\t\t\t_nameservers.add(nameservers[i]);\n\t\t}\n\t}", "title": "" }, { "docid": "2eaec34d023bc9e27c5da6176dac0a7f", "score": "0.47452936", "text": "@Override\n\tpublic void setName(String name) {\n\t\t\n\t}", "title": "" }, { "docid": "8abc43368c79a29de75399bb364e8ac7", "score": "0.47294885", "text": "public ServerMap(int nameServerPort) {\n servers = new HashMap<String, Server>();\n this.nameServerPort = nameServerPort;\n nameServer = new Server(ComsFormat.nameserver_hostname\n , ComsFormat.nameserver_ip, nameServerPort);\n }", "title": "" }, { "docid": "5fac71b6b7e6ff3887509f1c965b176a", "score": "0.47250244", "text": "public void setName(String n) {\n this.name = n;\n }", "title": "" }, { "docid": "88a04d2d3a5f41fd12b99410317f5f01", "score": "0.47243947", "text": "private void registerSvcsForOrg(String subOrgName, String subOrgDN)\n {\n try {\n Set defaultServices =\n ServiceManager.servicesAssignedByDefault();\n if (SMSEntry.debug.messageEnabled()) {\n SMSEntry.debug.message(\"OrganizationConfigManager::\"+\n \"registerSvcsForOrg. \"+\n \"defaultServices : \" + defaultServices);\n }\n \n // Register the default services to the newly created orgs,so\n // they will be marked with the OC sunRegisteredServiceName.\n if (defaultServices != null) {\n Set assignedServices = amsdk.getAssignedServices();\n if (SMSEntry.debug.messageEnabled()) {\n SMSEntry.debug.message(\"OrganizationConfigManager::\" +\n \"registerSvcsForOrg:assignedServices: \" +\n assignedServices);\n }\n Iterator items = defaultServices.iterator();\n String serviceName = null;\n if (SMSEntry.getRootSuffix().equalsIgnoreCase(\n SMSEntry.getAMSdkBaseDN())) {\n amsdk = new OrgConfigViaAMSDK(token,\n orgNamingAttrInLegacyMode + SMSEntry.EQUALS +\n subOrgName + SMSEntry.COMMA +\n DNMapper.realmNameToAMSDKName(orgDN), subOrgDN);\n } else {\n amsdk = new OrgConfigViaAMSDK(token,\n orgNamingAttrInLegacyMode + SMSEntry.EQUALS +\n subOrgName + SMSEntry.COMMA + amSDKOrgDN, subOrgDN);\n }\n while (items.hasNext()) {\n serviceName = (String) items.next();\n if (assignedServices.contains(serviceName)) {\n if (SMSEntry.debug.messageEnabled()) {\n SMSEntry.debug.message(\n \"OrganizationConfigManager::\"+\n \"registerSvcsForOrg:ServiceName : \" +\n serviceName);\n }\n amsdk.assignService(serviceName);\n }\n }\n }\n } catch (SMSException smse) {\n // Unable to load default services\n if (SMSEntry.debug.warningEnabled()) {\n SMSEntry.debug.warning(\"OrganizationConfigManager::\" +\n \"registerSvcsForOrg. \" +\n \"SMSException in registering services: \", smse);\n }\n }\n }", "title": "" }, { "docid": "a4252f7f5c425d6438dc83696742f21f", "score": "0.47237268", "text": "FentonServerTag(String name) {\n this.name = name;\n }", "title": "" }, { "docid": "e7baa9ea817dbf26c551ffb8d2f7ae52", "score": "0.4718161", "text": "interface WithName {\n /**\n * Specifies name.\n * @param name The name of the resource that is unique within a resource group. This name can be used to access the resource\n * @return the next update stage\n */\n Update withName(String name);\n }", "title": "" }, { "docid": "174dae3cd1e90f70f31d9694b8ca2bce", "score": "0.47166437", "text": "void register(String clusterName, BasePartitionAccessor accessor);", "title": "" }, { "docid": "41068dc91ae60a1749464f1727ca410f", "score": "0.47145322", "text": "public static Object createNameforNewEnsemble(Map extendedData) {\n \t\treturn \"A dynamic name\";\r\n \t}", "title": "" }, { "docid": "0f48617a35ad31efada1af9bdf9c5426", "score": "0.47125864", "text": "@Override\n public void addServer(String address, String port, String name) {\n model.addElement(\"Server name: #\" + name + \"# Server address: #\" + address + \"# Server port: #\" + port + \"#\");\n }", "title": "" }, { "docid": "d1fb66ead531c61c46e72566b5b3d5ce", "score": "0.4712295", "text": "public void addNames() {}", "title": "" }, { "docid": "d1fb66ead531c61c46e72566b5b3d5ce", "score": "0.4712295", "text": "public void addNames() {}", "title": "" }, { "docid": "a692cf3ea59b283e0b68f3e14b3aa53a", "score": "0.47109565", "text": "public abstract void setName(String name);", "title": "" }, { "docid": "a692cf3ea59b283e0b68f3e14b3aa53a", "score": "0.47109565", "text": "public abstract void setName(String name);", "title": "" }, { "docid": "31d4708bb65e68794aa478a8c7894b76", "score": "0.47108206", "text": "public void name(String nam) {\r\n\t\tname = nam;\r\n\t}", "title": "" }, { "docid": "7c544592206d1189605a369fbeae4538", "score": "0.47034574", "text": "public void setName(String arg0) {\n\t\t\n\t}", "title": "" }, { "docid": "86b2e8ec6414d8fe8ae6a9d77ce9ff03", "score": "0.47029644", "text": "Neuron setName(String name);", "title": "" }, { "docid": "f655d519efcf9d3110c7324a0c61d71f", "score": "0.47024924", "text": "public void setCustomName ( String name ) {\n\t\texecute ( handle -> handle.setCustomName ( name ) );\n\t}", "title": "" }, { "docid": "4cbd905f427b8d030ae895dc59089168", "score": "0.46980497", "text": "public void setName(String n) {\r\n\t\tthis.name = n;\r\n\t}", "title": "" }, { "docid": "02e701349af0bf205928e2baefd85d81", "score": "0.46933696", "text": "public static void setNameServer(InetAddress ip, int port){\n nameServer.setIp(ip);\n nameServer.setPort(port);\n }", "title": "" }, { "docid": "94ae6ca9b4caaec0c359ebc9f0cf54fd", "score": "0.4692758", "text": "public static void main(String[] args) throws Exception {\n\n if(System.getSecurityManager() == null) {\n System.setSecurityManager(new SecurityManager());\n }\n\n if(args.length < 1) {\n System.exit(-1);\n }\n\n String domain = args[0];\n\n System.setProperty(\"java.rmi.server.hostname\", domain);\n\n SpaceImpl spaceImpl = getInstance();\n\n // Unexport to ensure no exceptions\n UnicastRemoteObject.unexportObject(spaceImpl, true);\n\n Space stub = (Space) UnicastRemoteObject.exportObject(spaceImpl, 0);\n\n Registry registry = LocateRegistry.createRegistry(Space.PORT);\n registry.rebind(Space.SERVICE_NAME, stub);\n\n System.out.println(\"SpaceImpl.main Registered and Ready.\");\n }", "title": "" }, { "docid": "51a1484d638d3b800af7f461175ec972", "score": "0.4691058", "text": "public void setName(String n) {\r\n name = n;\r\n }", "title": "" } ]
3757090649f3b8f0ffd27182139b9882
/ The baseline that should be built, and rejected because of failure
[ { "docid": "1b71fd831ca12ed7d54798faae763db9", "score": "0.0", "text": "@Test\n @ClearCaseUniqueVobName(name = \"sib-hlink-norec\")\n @TestDescription(title = \"Poll sibling\", text = \"poll sibling, build fails, reject baseline, no baseline created, no recommend\")\n\tpublic void basicSiblingUsingHlinkDoNotRecommend() throws Exception {\n\t\tBaseline baseline = ccenv.context.baselines.get( \"model-1\" );\n\n\t\tAbstractBuild<?, ?> build = initiateBuildUsingHyperLink( \"hlink-no-recommend\" + ccenv.getUniqueName(), true, false, false, true );\n\n\t\t/* Validate */\n\t\tSystemValidator validator = new SystemValidator( build ).\n validateBuild( build.getResult() ).\n validateBuiltBaseline( PromotionLevel.REJECTED, baseline, false ).\n validateCreatedBaseline( false, false );\n\t\tvalidator.validate();\n\t}", "title": "" } ]
[ { "docid": "0a6ee27b45f678438e6b78f49854b177", "score": "0.7160989", "text": "@Test\r\n public void testBaselineException() {\n\r\n Change dep1 = new ChangeIncremental(tableChangeType, \"schema\", \"tabB\", \"ch1\", 0, \"chng1\", CONTENT);\r\n Change dep2 = new ChangeIncremental(tableChangeType, \"schema\", \"tabB\", \"ch2\", 0, \"chng1\", CONTENT);\r\n // hiding dep3 as to show the exception use case\r\n //Change dep3 = new ChangeIncremental(tableChangeType, \"schema\", \"tabB\", \"ch3\", 0, \"chng1\", CONTENT);\r\n Change srcB = new ChangeIncremental(tableChangeType, \"schema\", \"tabB\", \"bas1\", 0, \"chng1\", CONTENT)\r\n .withBaselines(Lists.mutable.with(\"ch1\", \"ch2\", \"ch3\"));\r\n Change src4 = new ChangeIncremental(tableChangeType, \"schema\", \"tabB\", \"ch4\", 1, \"chng1\", CONTENT);\r\n\r\n ListIterable<ChangeCommand> changeset = cmdCalc.calculateCommands(tableChangeType, Lists.mutable.of(\r\n new ChangePair(srcB, null)\r\n , new ChangePair(src4, null)\r\n , new ChangePair(null, dep1)\r\n , new ChangePair(null, dep2)\r\n ), unusedChangesArg, false);\r\n\r\n assertEquals(2, changeset.size());\r\n Verify.assertAnySatisfy(changeset, assertValue(DeployChangeCommand.class, src4));\r\n Predicate<ChangeCommand> baselineWarningPredicate = assertValue(IncompleteBaselineWarning.class, srcB);\r\n Verify.assertAnySatisfy(changeset, baselineWarningPredicate);\r\n IncompleteBaselineWarning baselineWarning = (IncompleteBaselineWarning) changeset.detect(baselineWarningPredicate);\r\n assertEquals(Sets.mutable.with(\"ch3\"), baselineWarning.getNonDeployedChanges());\r\n }", "title": "" }, { "docid": "f2765a51fc834b9d619b46c44e1697cc", "score": "0.6041846", "text": "private boolean validateAndExecute() throws BuildException {\n writeline(\"/home/ubuntu/results/coverage/Checksum/Checksum_8_10.coverage\", \"a232b080-ebb3-4c87-bda4-bb334be957c4\");\n String savedFileExt = fileext;\n writeline(\"/home/ubuntu/results/coverage/Checksum/Checksum_8_10.coverage\", \"e6a4c3f6-f244-48ae-a6cd-a1bb789e0f1c\");\n if (file == null && (resources == null || resources.size() == 0)) {\n writeline(\"/home/ubuntu/results/coverage/Checksum/Checksum_8_10.coverage\", \"b44efe8f-1973-4333-8e68-42af96591d5f\");\n throw new BuildException(\"Specify at least one source - a file or a resource collection.\");\n }\n writeline(\"/home/ubuntu/results/coverage/Checksum/Checksum_8_10.coverage\", \"0af41b3b-00c8-40d7-9664-639c14bf7536\");\n if (!(resources == null || resources.isFilesystemOnly())) {\n writeline(\"/home/ubuntu/results/coverage/Checksum/Checksum_8_10.coverage\", \"8c4db6b5-862d-43b7-ad64-d98fdcc172a2\");\n throw new BuildException(\"Can only calculate checksums for file-based resources.\");\n }\n writeline(\"/home/ubuntu/results/coverage/Checksum/Checksum_8_10.coverage\", \"2215c231-7836-4366-90ef-94baf3ddf740\");\n if (file != null && file.exists() && file.isDirectory()) {\n writeline(\"/home/ubuntu/results/coverage/Checksum/Checksum_8_10.coverage\", \"4e96a18b-34de-422e-b7d5-31bcc404f8b3\");\n throw new BuildException(\"Checksum cannot be generated for directories\");\n }\n writeline(\"/home/ubuntu/results/coverage/Checksum/Checksum_8_10.coverage\", \"d0ceecab-47fd-49fc-8b20-151d6bf9c075\");\n if (file != null && totalproperty != null) {\n writeline(\"/home/ubuntu/results/coverage/Checksum/Checksum_8_10.coverage\", \"7a7dffd3-811a-4d72-942f-d0383678a55b\");\n throw new BuildException(\"File and Totalproperty cannot co-exist.\");\n }\n writeline(\"/home/ubuntu/results/coverage/Checksum/Checksum_8_10.coverage\", \"3aae83a4-5dcf-43a4-b25c-79de0f4ace4a\");\n if (property != null && fileext != null) {\n writeline(\"/home/ubuntu/results/coverage/Checksum/Checksum_8_10.coverage\", \"2658391e-d9ef-4a27-aacf-f90b438fad69\");\n throw new BuildException(\"Property and FileExt cannot co-exist.\");\n }\n writeline(\"/home/ubuntu/results/coverage/Checksum/Checksum_8_10.coverage\", \"19dcaca8-4c9e-4a40-ab4b-5eeb1b0770ca\");\n if (property != null) {\n writeline(\"/home/ubuntu/results/coverage/Checksum/Checksum_8_10.coverage\", \"003f2ebc-8c67-403e-8ddf-4af7c77797f7\");\n if (forceOverwrite) {\n writeline(\"/home/ubuntu/results/coverage/Checksum/Checksum_8_10.coverage\", \"6d33e098-1b18-4492-924e-d4111951ed4d\");\n throw new BuildException(\"ForceOverwrite cannot be used when Property is specified\");\n }\n writeline(\"/home/ubuntu/results/coverage/Checksum/Checksum_8_10.coverage\", \"d110e344-4cdb-4c6f-a4d0-2277ec3ee21f\");\n int ct = 0;\n writeline(\"/home/ubuntu/results/coverage/Checksum/Checksum_8_10.coverage\", \"6b6ea141-6b7d-4161-afec-6eb4c9cbc60f\");\n if (resources != null) {\n writeline(\"/home/ubuntu/results/coverage/Checksum/Checksum_8_10.coverage\", \"b5a076d1-0959-49b3-bf2e-4208255045b8\");\n ct += resources.size();\n }\n writeline(\"/home/ubuntu/results/coverage/Checksum/Checksum_8_10.coverage\", \"42f2a63f-363c-477b-b76c-98886d64f371\");\n if (file != null) {\n writeline(\"/home/ubuntu/results/coverage/Checksum/Checksum_8_10.coverage\", \"77d8033c-8f90-48cb-9868-51c8c4d4222e\");\n ct++;\n }\n writeline(\"/home/ubuntu/results/coverage/Checksum/Checksum_8_10.coverage\", \"335c9c4b-cec7-4702-9485-6d59a461946c\");\n if (ct > 1) {\n writeline(\"/home/ubuntu/results/coverage/Checksum/Checksum_8_10.coverage\", \"ce4bbdb9-9687-4584-860b-b7eccb3e8a26\");\n throw new BuildException(\"Multiple files cannot be used when Property is specified\");\n }\n }\n writeline(\"/home/ubuntu/results/coverage/Checksum/Checksum_8_10.coverage\", \"ae132323-53d3-435c-adb4-f302ce35f819\");\n if (verifyProperty != null) {\n writeline(\"/home/ubuntu/results/coverage/Checksum/Checksum_8_10.coverage\", \"d271b4fb-a7a1-4c53-8982-c58f88ebfab3\");\n isCondition = true;\n }\n writeline(\"/home/ubuntu/results/coverage/Checksum/Checksum_8_10.coverage\", \"a14afb5e-6964-4dd4-b22d-8f62226606cd\");\n if (verifyProperty != null && forceOverwrite) {\n writeline(\"/home/ubuntu/results/coverage/Checksum/Checksum_8_10.coverage\", \"917ef10a-61f7-4a23-ba48-dba898b6e5f3\");\n throw new BuildException(\"VerifyProperty and ForceOverwrite cannot co-exist.\");\n }\n writeline(\"/home/ubuntu/results/coverage/Checksum/Checksum_8_10.coverage\", \"f4a1b023-daf9-42dd-93f0-5ffbde2013ad\");\n if (isCondition && forceOverwrite) {\n writeline(\"/home/ubuntu/results/coverage/Checksum/Checksum_8_10.coverage\", \"e2b8047f-6217-4060-a298-14bf269e4fb1\");\n throw new BuildException(\"ForceOverwrite cannot be used when conditions are being used.\");\n }\n writeline(\"/home/ubuntu/results/coverage/Checksum/Checksum_8_10.coverage\", \"07f1deb2-c04e-4ccb-b1d1-774875b78c1a\");\n messageDigest = null;\n writeline(\"/home/ubuntu/results/coverage/Checksum/Checksum_8_10.coverage\", \"5de06f24-3e16-411e-8152-844233b9c1ad\");\n if (provider != null) {\n writeline(\"/home/ubuntu/results/coverage/Checksum/Checksum_8_10.coverage\", \"907299bd-e27e-427d-90ce-6b2a33351cf4\");\n try {\n writeline(\"/home/ubuntu/results/coverage/Checksum/Checksum_8_10.coverage\", \"32355c6a-da39-40f4-b040-e073a0b1316d\");\n messageDigest = MessageDigest.getInstance(algorithm, provider);\n } catch (NoSuchAlgorithmException noalgo) {\n writeline(\"/home/ubuntu/results/coverage/Checksum/Checksum_8_10.coverage\", \"718caefb-34b0-4e1a-970b-24c313202a4d\");\n throw new BuildException(noalgo, getLocation());\n } catch (NoSuchProviderException noprovider) {\n writeline(\"/home/ubuntu/results/coverage/Checksum/Checksum_8_10.coverage\", \"e645abba-67df-49b5-9451-6aedb41cc2c8\");\n throw new BuildException(noprovider, getLocation());\n }\n } else {\n writeline(\"/home/ubuntu/results/coverage/Checksum/Checksum_8_10.coverage\", \"98cdc345-a40b-455c-acc1-b47d01e783f1\");\n try {\n writeline(\"/home/ubuntu/results/coverage/Checksum/Checksum_8_10.coverage\", \"16683468-0150-40af-8836-35556905c9fe\");\n messageDigest = MessageDigest.getInstance(algorithm);\n } catch (NoSuchAlgorithmException noalgo) {\n writeline(\"/home/ubuntu/results/coverage/Checksum/Checksum_8_10.coverage\", \"91e1118b-f5a8-4fc6-890a-8f91e122f600\");\n throw new BuildException(noalgo, getLocation());\n }\n }\n writeline(\"/home/ubuntu/results/coverage/Checksum/Checksum_8_10.coverage\", \"2010a75e-be56-48a8-8617-67cf6d464374\");\n if (messageDigest == null) {\n writeline(\"/home/ubuntu/results/coverage/Checksum/Checksum_8_10.coverage\", \"d6c0ecd1-f555-46f4-a2ba-6354e4b31568\");\n throw new BuildException(\"Unable to create Message Digest\", getLocation());\n }\n writeline(\"/home/ubuntu/results/coverage/Checksum/Checksum_8_10.coverage\", \"7250668e-39b8-4203-b2ee-a7d0ee5b9062\");\n if (fileext == null) {\n writeline(\"/home/ubuntu/results/coverage/Checksum/Checksum_8_10.coverage\", \"b4d32a06-be8a-481f-a28d-792bbafb807c\");\n fileext = \".\" + algorithm;\n } else if (fileext.trim().length() == 0) {\n writeline(\"/home/ubuntu/results/coverage/Checksum/Checksum_8_10.coverage\", \"82822104-f283-4244-914c-5f1be86fc601\");\n throw new BuildException(\"File extension when specified must not be an empty string\");\n }\n writeline(\"/home/ubuntu/results/coverage/Checksum/Checksum_8_10.coverage\", \"e4324245-f938-4ad7-b043-72695f48bd77\");\n try {\n writeline(\"/home/ubuntu/results/coverage/Checksum/Checksum_8_10.coverage\", \"5ad8e1f1-a1a4-4fbf-9111-f94b7427ed25\");\n if (resources != null) {\n writeline(\"/home/ubuntu/results/coverage/Checksum/Checksum_8_10.coverage\", \"01c3de2f-fa42-4df5-afd6-36fd8a721f29\");\n for (Resource r : resources) {\n writeline(\"/home/ubuntu/results/coverage/Checksum/Checksum_8_10.coverage\", \"37cf0043-fa0b-4254-9a57-2ee2f428d882\");\n File src = r.as(FileProvider.class).getFile();\n writeline(\"/home/ubuntu/results/coverage/Checksum/Checksum_8_10.coverage\", \"b33f9e82-a21f-4520-93cf-06b2270c5c9a\");\n if (totalproperty != null || todir != null) {\n writeline(\"/home/ubuntu/results/coverage/Checksum/Checksum_8_10.coverage\", \"1380ecf6-09c1-4669-970f-e9c65669865f\");\n // Use '/' to calculate digest based on file name.\n // This is required in order to get the same result\n // on different platforms.\n relativeFilePaths.put(src, r.getName().replace(File.separatorChar, '/'));\n }\n writeline(\"/home/ubuntu/results/coverage/Checksum/Checksum_8_10.coverage\", \"a3e1f492-9db1-4193-8064-8b3ae6b79e94\");\n addToIncludeFileMap(src);\n }\n }\n writeline(\"/home/ubuntu/results/coverage/Checksum/Checksum_8_10.coverage\", \"2457355c-7c64-4e83-a720-f8d56d7faa2b\");\n if (file != null) {\n writeline(\"/home/ubuntu/results/coverage/Checksum/Checksum_8_10.coverage\", \"f3461ee4-408f-4cd0-b7ea-bdc2d17bb301\");\n if (totalproperty != null || todir != null) {\n writeline(\"/home/ubuntu/results/coverage/Checksum/Checksum_8_10.coverage\", \"632af619-3c73-4799-a7a1-ee67444f0add\");\n relativeFilePaths.put(file, file.getName().replace(File.separatorChar, '/'));\n }\n writeline(\"/home/ubuntu/results/coverage/Checksum/Checksum_8_10.coverage\", \"a66f31a9-c2cf-4b30-bae7-7a30264cae90\");\n addToIncludeFileMap(file);\n }\n writeline(\"/home/ubuntu/results/coverage/Checksum/Checksum_8_10.coverage\", \"d81d07f3-6899-4930-b5f7-d4782a98ebbf\");\n return generateChecksums();\n } finally {\n writeline(\"/home/ubuntu/results/coverage/Checksum/Checksum_8_10.coverage\", \"099eacf6-74c8-4ecf-8d89-14ea6fd2ff3d\");\n fileext = savedFileExt;\n writeline(\"/home/ubuntu/results/coverage/Checksum/Checksum_8_10.coverage\", \"732e6264-1cf4-45b5-8b49-73ee8ac9178b\");\n includeFileMap.clear();\n }\n }", "title": "" }, { "docid": "d7884491bdc0b0ee45f98afdcbd09ea3", "score": "0.6041523", "text": "public void baseline() {\n flyway.baseline();\n }", "title": "" }, { "docid": "5d7b8922f82c0ab8f73cceff26785dbc", "score": "0.60234076", "text": "@Test\n public void reduceFailureButSkipCompatibilityCheck() {\n ArtifactID leaf = new ArtifactID(\"org.savantbuild.test\", \"leaf\", \"leaf\", \"jar\");\n ArtifactID intermediate = new ArtifactID(\"org.savantbuild.test\", \"intermediate\", \"intermediate\", \"jar\");\n ArtifactID multipleVersions = new ArtifactID(\"org.savantbuild.test\", \"multiple-versions\", \"multiple-versions\", \"jar\");\n ArtifactID multipleVersionsDifferentDeps = new ArtifactID(\"org.savantbuild.test\", \"multiple-versions-different-dependencies\", \"multiple-versions-different-dependencies\", \"jar\");\n\n DependencyGraph incompatible = new DependencyGraph(project);\n incompatible.addEdge(new Dependency(project.id), new Dependency(multipleVersions), new DependencyEdgeValue(new Version(\"1.0.0\"), new Version(\"1.0.0\"), \"compile\", new License()));\n incompatible.addEdge(new Dependency(project.id), new Dependency(intermediate), new DependencyEdgeValue(new Version(\"1.0.0\"), new Version(\"1.0.0\"), \"runtime\", new License()));\n incompatible.addEdge(new Dependency(project.id), new Dependency(multipleVersionsDifferentDeps), new DependencyEdgeValue(new Version(\"1.0.0\"), new Version(\"1.0.0\"), \"compile\", new License()));\n incompatible.addEdge(new Dependency(intermediate), new Dependency(multipleVersions), new DependencyEdgeValue(new Version(\"1.0.0\"), new Version(\"1.1.0\"), \"compile\", new License()));\n incompatible.addEdge(new Dependency(intermediate), new Dependency(multipleVersionsDifferentDeps), new DependencyEdgeValue(new Version(\"1.0.0\"), new Version(\"1.1.0\"), \"runtime\", new License()));\n incompatible.addEdge(new Dependency(multipleVersions), new Dependency(leaf), new DependencyEdgeValue(new Version(\"1.0.0\"), new Version(\"1.0.0\"), \"compile\", new License()));\n incompatible.addEdge(new Dependency(multipleVersions), new Dependency(leaf), new DependencyEdgeValue(new Version(\"1.1.0\"), new Version(\"1.0.0\"), \"compile\", new License()));\n incompatible.addEdge(new Dependency(multipleVersionsDifferentDeps), new Dependency(leaf), new DependencyEdgeValue(new Version(\"1.0.0\"), new Version(\"1.0.0\"), \"runtime\", new License()));\n incompatible.addEdge(new Dependency(multipleVersionsDifferentDeps), new Dependency(leaf), new DependencyEdgeValue(new Version(\"1.1.0\"), new Version(\"2.0.0\"), \"compile\", new License()));\n\n // Add the skip node\n incompatible.addEdge(new Dependency(project.id), new Dependency(leaf), new DependencyEdgeValue(new Version(\"1.0.0\"), new Version(\"2.0.0\"), \"runtime\", new License()));\n incompatible.skipCompatibilityCheck(leaf);\n\n ReifiedArtifact intermediateArtifact = new ReifiedArtifact(intermediate, new Version(\"1.0.0\"), new License());\n ReifiedArtifact multipleVersionsArtifact = new ReifiedArtifact(multipleVersions, new Version(\"1.1.0\"), new License());\n ReifiedArtifact multipleVersionsDifferentDepsArtifact = new ReifiedArtifact(multipleVersionsDifferentDeps, new Version(\"1.1.0\"), new License());\n ReifiedArtifact leafArtifact = new ReifiedArtifact(leaf, new Version(\"2.0.0\"), new License());\n ArtifactGraph actual = service.reduce(incompatible);\n ArtifactGraph expected = new ArtifactGraph(project);\n expected.addEdge(project, multipleVersionsArtifact, \"compile\");\n expected.addEdge(project, intermediateArtifact, \"runtime\");\n expected.addEdge(project, multipleVersionsDifferentDepsArtifact, \"compile\");\n expected.addEdge(project, leafArtifact, \"runtime\");\n expected.addEdge(intermediateArtifact, multipleVersionsArtifact, \"compile\");\n expected.addEdge(intermediateArtifact, multipleVersionsDifferentDepsArtifact, \"runtime\");\n expected.addEdge(multipleVersionsArtifact, leafArtifact, \"compile\");\n expected.addEdge(multipleVersionsDifferentDepsArtifact, leafArtifact, \"compile\");\n assertEquals(actual, expected);\n }", "title": "" }, { "docid": "6c0749fa16cf848378ff5cb836709d77", "score": "0.6021243", "text": "protected abstract void reportErrorAutomatonBenchmarks();", "title": "" }, { "docid": "d83fad2c9a1a39807e4a9fbb9fc94a6d", "score": "0.59833586", "text": "@Test\n public void reduceFailureFromRoot() {\n ArtifactID leaf = new ArtifactID(\"org.savantbuild.test\", \"leaf\", \"leaf\", \"jar\");\n ArtifactID intermediate = new ArtifactID(\"org.savantbuild.test\", \"intermediate\", \"intermediate\", \"jar\");\n\n DependencyGraph incompatible = new DependencyGraph(project);\n incompatible.addEdge(new Dependency(project.id), new Dependency(leaf), new DependencyEdgeValue(new Version(\"1.0.0\"), new Version(\"1.0.0\"), \"runtime\", new License()));\n incompatible.addEdge(new Dependency(project.id), new Dependency(intermediate), new DependencyEdgeValue(new Version(\"1.0.0\"), new Version(\"1.0.0\"), \"runtime\", new License()));\n incompatible.addEdge(new Dependency(intermediate), new Dependency(leaf), new DependencyEdgeValue(new Version(\"1.0.0\"), new Version(\"2.0.0\"), \"compile\", new License()));\n\n try {\n service.reduce(incompatible);\n fail(\"Should have failed\");\n } catch (CompatibilityException e) {\n assertEquals(e.dependency.id, leaf);\n assertEquals(e.min, new Version(\"1.0.0\"));\n assertEquals(e.max, new Version(\"2.0.0\"));\n e.printStackTrace();\n }\n }", "title": "" }, { "docid": "89708fa073f2344c44f3032d1441390e", "score": "0.59700096", "text": "@Test\r\n public void testBaselineNewAddition() {\n Change srcB = new ChangeIncremental(tableChangeType, \"schema\", \"tabB\", \"bas1\", 0, \"chng1\", CONTENT)\r\n .withBaselines(Lists.mutable.with(\"ch1\", \"ch2\", \"ch3\"));\r\n Change src4 = new ChangeIncremental(tableChangeType, \"schema\", \"tabB\", \"ch4\", 1, \"chng1\", CONTENT);\r\n\r\n ListIterable<ChangeCommand> changeset = cmdCalc.calculateCommands(tableChangeType, Lists.mutable.of(\r\n new ChangePair(srcB, null)\r\n , new ChangePair(src4, null)\r\n ), unusedChangesArg, false);\r\n\r\n assertEquals(2, changeset.size());\r\n Verify.assertAnySatisfy(changeset, assertValue(DeployChangeCommand.class, srcB));\r\n Verify.assertAnySatisfy(changeset, assertValue(DeployChangeCommand.class, src4));\r\n }", "title": "" }, { "docid": "0469af538584b964ad8829ad4eb1457b", "score": "0.58986473", "text": "private void generateStatsPreconditionChecksNoException() {\n Preconditions.checkArgument(\n distributedBuildExitCode.isPresent(), \"distributedBuildExitCode not set\");\n Preconditions.checkArgument(\n isLocalFallbackBuildEnabled.isPresent(), \"isLocalFallbackBuildEnabled not set\");\n Preconditions.checkArgument(\n missingFilesUploadedCount.isPresent(), \"missingFilesUploadedCount not set\");\n\n if (performedLocalBuild) {\n Preconditions.checkArgument(localBuildExitCode.isPresent());\n Preconditions.checkNotNull(\n durationsMsByType.get(DistBuildClientStat.PERFORM_LOCAL_BUILD),\n \"No time was recorded for stat: \" + DistBuildClientStat.PERFORM_LOCAL_BUILD);\n }\n\n Preconditions.checkNotNull(\n durationsMsByType.get(DistBuildClientStat.PERFORM_DISTRIBUTED_BUILD),\n \"No time was recorded for stat: \" + DistBuildClientStat.PERFORM_DISTRIBUTED_BUILD);\n Preconditions.checkNotNull(\n durationsMsByType.get(DistBuildClientStat.CREATE_DISTRIBUTED_BUILD),\n \"No time was recorded for stat: \" + DistBuildClientStat.CREATE_DISTRIBUTED_BUILD);\n Preconditions.checkNotNull(\n durationsMsByType.get(DistBuildClientStat.UPLOAD_MISSING_FILES),\n \"No time was recorded for stat: \" + DistBuildClientStat.UPLOAD_MISSING_FILES);\n Preconditions.checkNotNull(\n durationsMsByType.get(DistBuildClientStat.UPLOAD_TARGET_GRAPH),\n \"No time was recorded for stat: \" + DistBuildClientStat.UPLOAD_TARGET_GRAPH);\n Preconditions.checkNotNull(\n durationsMsByType.get(DistBuildClientStat.UPLOAD_BUCK_DOT_FILES),\n \"No time was recorded for stat: \" + DistBuildClientStat.UPLOAD_BUCK_DOT_FILES);\n Preconditions.checkNotNull(\n durationsMsByType.get(DistBuildClientStat.SET_BUCK_VERSION),\n \"No time was recorded for stat: \" + DistBuildClientStat.SET_BUCK_VERSION);\n\n // MATERIALIZE_SLAVE_LOGS is optional even if no buck client errors.\n }", "title": "" }, { "docid": "d657f8ecdbec679a486122c25a557179", "score": "0.5822667", "text": "@Test\n public void reduceFailureNested() {\n ArtifactID leaf = new ArtifactID(\"org.savantbuild.test\", \"leaf\", \"leaf\", \"jar\");\n ArtifactID intermediate = new ArtifactID(\"org.savantbuild.test\", \"intermediate\", \"intermediate\", \"jar\");\n ArtifactID multipleVersions = new ArtifactID(\"org.savantbuild.test\", \"multiple-versions\", \"multiple-versions\", \"jar\");\n ArtifactID multipleVersionsDifferentDeps = new ArtifactID(\"org.savantbuild.test\", \"multiple-versions-different-dependencies\", \"multiple-versions-different-dependencies\", \"jar\");\n\n DependencyGraph incompatible = new DependencyGraph(project);\n incompatible.addEdge(new Dependency(project.id), new Dependency(multipleVersions), new DependencyEdgeValue(new Version(\"1.0.0\"), new Version(\"1.0.0\"), \"compile\", new License()));\n incompatible.addEdge(new Dependency(project.id), new Dependency(intermediate), new DependencyEdgeValue(new Version(\"1.0.0\"), new Version(\"1.0.0\"), \"runtime\", new License()));\n incompatible.addEdge(new Dependency(project.id), new Dependency(multipleVersionsDifferentDeps), new DependencyEdgeValue(new Version(\"1.0.0\"), new Version(\"1.0.0\"), \"compile\", new License()));\n incompatible.addEdge(new Dependency(intermediate), new Dependency(multipleVersions), new DependencyEdgeValue(new Version(\"1.0.0\"), new Version(\"1.1.0\"), \"compile\", new License()));\n incompatible.addEdge(new Dependency(intermediate), new Dependency(multipleVersionsDifferentDeps), new DependencyEdgeValue(new Version(\"1.0.0\"), new Version(\"1.1.0\"), \"runtime\", new License()));\n incompatible.addEdge(new Dependency(multipleVersions), new Dependency(leaf), new DependencyEdgeValue(new Version(\"1.0.0\"), new Version(\"1.0.0\"), \"compile\", new License()));\n incompatible.addEdge(new Dependency(multipleVersions), new Dependency(leaf), new DependencyEdgeValue(new Version(\"1.1.0\"), new Version(\"1.0.0\"), \"compile\", new License()));\n incompatible.addEdge(new Dependency(multipleVersionsDifferentDeps), new Dependency(leaf), new DependencyEdgeValue(new Version(\"1.0.0\"), new Version(\"1.0.0\"), \"runtime\", new License()));\n incompatible.addEdge(new Dependency(multipleVersionsDifferentDeps), new Dependency(leaf), new DependencyEdgeValue(new Version(\"1.1.0\"), new Version(\"2.0.0\"), \"compile\", new License()));\n\n try {\n service.reduce(incompatible);\n fail(\"Should have failed\");\n } catch (CompatibilityException e) {\n assertEquals(e.dependency.id, leaf);\n assertEquals(e.min, new Version(\"1.0.0\"));\n assertEquals(e.max, new Version(\"2.0.0\"));\n e.printStackTrace();\n }\n }", "title": "" }, { "docid": "24a400c2a68a329fbb974143fbd910f2", "score": "0.581418", "text": "abstract void checkSanity();", "title": "" }, { "docid": "3b3c0e10a69f963a90dd0f3e6900be4d", "score": "0.58106256", "text": "protected abstract void buildExpectedResult();", "title": "" }, { "docid": "5879f866cc9c5eaa3817c630af4f9d4a", "score": "0.56882876", "text": "private int doOneRequest() throws MissingConfigurationPropertyException {\n\t\t\n\t\tProjectSubmission projectSubmission = null;\n\n\t\ttry {\n\t\t\t// Get a ProjectSubmission to build and test\n\t\t\tprojectSubmission = getProjectSubmission();\n\t\t\tif (projectSubmission == null)\n\t\t\t\treturn NO_WORK;\n\n\t\t\tlong start=System.currentTimeMillis();\n\t\t\tint result;\n\t\t\ttry {\n\t\t\t\tcleanWorkingDirectories();\n\t\t\t\t\n\t\t\t\tlog.trace(\"About to download project\");\n\t\t\t\t\n\t\t\t\t// Read the zip file from the response stream.\n\t\t\t\tdownloadSubmissionZipFile(projectSubmission);\n\n\t\t\t\tlog.trace(\"Done downloading project\");\n \n log.warn(\"Preparing to process submission \" + projectSubmission.getSubmissionPK()+\n \" for test setup \" +projectSubmission.getProjectJarfilePK());\n\t\t\t\t\n\t\t\t\t// Get the project jar file containing the provided classes\n\t\t\t\t// and the secret tests.\n\t\t\t\tdownloadProjectJarFile(projectSubmission);\n //log.warn\n\n\t\t\t\t// Now we have the project and the testing jarfile.\n\t\t\t\t// Build and test it.\n\t\t\t\ttry {\n\t\t\t\t\tbuildAndTestProject(projectSubmission);\n\t\t\t\t\t\n\t\t\t\t\t// Building and testing was successful.\n\t\t\t\t\t// ProjectSubmission should have had its public, release, secret and student\n\t\t\t\t\t// TestOutcomes added.\n\t\t\t\t addBuildTestResult(projectSubmission, TestOutcome.PASSED, \"\");\n\t\t\t\t result = SUCCESS;\n } catch (BuilderException e) {\n // XXX Should a BuilderException be allowed here?\n \tif (!projectSubmission.getIsNewProjectJarfile().equals(\"yes\")) throw e;\n // treat as compile error\n getLog().info(\"Submission \" + projectSubmission.getSubmissionPK() + \" for test setup \" +\n projectSubmission.getProjectJarfilePK() +\" did not build\", e);\n \n // Add build test outcome\n String compilerOutput = e.toString() + \"\\n\";\n addBuildTestResult(projectSubmission, TestOutcome.FAILED, compilerOutput);\n\n getLog().warn(\"Marking all classes of tests 'could_not_run' for \" +\n \t\tprojectSubmission.getSubmissionPK()+ \" and test-setup \"+\n \t\tprojectSubmission.getProjectJarfilePK());\n // Add \"cannot build submission\" test outcomes for\n // the dynamic test types\n String[] dynamicTestTypes = TestOutcome.DYNAMIC_TEST_TYPES;\n for (int i = 0; i < dynamicTestTypes.length; ++i) {\n String testType = dynamicTestTypes[i];\n addSpecialFailureTestOutcome(\n projectSubmission,\n testType,\n \"Compiler output:\\n\" + compilerOutput);\n }\n \n result = COMPILE_FAILURE;\n\t\t\t\t} catch (CompileFailureException e) {\n\t\t\t\t\t// If we couldn't compile, report special testOutcome stating this fact\n\t\t\t\t log.info(\"Submission \" + projectSubmission.getSubmissionPK() + \" did not compile\", e);\n\t\t\t\t\t\n\t\t\t\t // Add build test outcome\n\t\t\t\t\tString compilerOutput = e.toString() + \"\\n\" + e.getCompilerOutput();\n\t\t\t\t\taddBuildTestResult(projectSubmission, TestOutcome.FAILED, compilerOutput);\n\n\t\t\t\t\t// Add \"cannot build submission\" test outcomes for\n\t\t\t\t\t// the dynamic test types\n\t\t\t\t\tString[] dynamicTestTypes = TestOutcome.DYNAMIC_TEST_TYPES;\n\t\t\t\t\tfor (int i = 0; i < dynamicTestTypes.length; ++i) {\n\t\t\t\t\t\tString testType = dynamicTestTypes[i];\n\t\t\t\t\t\taddSpecialFailureTestOutcome(\n\t\t\t\t\t\t\t\tprojectSubmission,\n\t\t\t\t\t\t\t\ttestType,\n\t\t\t\t\t\t\t\t\"Compiler output:\\n\" + compilerOutput);\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tresult = COMPILE_FAILURE;\n\t\t\t\t}\n\t\t\t} finally {\n\t\t\t\t// Make sure the zip file is cleaned up.\n\t\t\t\tif (!getConfig().getDebugProperty(DEBUG_PRESERVE_SUBMISSION_ZIPFILES)\n\t\t\t\t\t\t&& !projectSubmission.getZipFile().delete()) {\n\t\t\t\t\tlog.error(\"Could not delete submission zipfile \" + projectSubmission.getZipFile());\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\t// Send the test results back to the submit server\n\t\t\treportTestResults(projectSubmission);\n\n\t\t\tlong total=System.currentTimeMillis()-start;\n\t\t\tlog.info(\"submissionPK \" +projectSubmission.getSubmissionPK()+ \" took \" +(total/1000)+\n\t\t\t\t\t\" seconds to process\");\n\t\t\treturn result;\n\t\t\t\n\t\t} catch (HttpException e) {\n\t\t\tlog.error(\"Internal error: BuildServer got HttpException\", e);\n\t\t\t// Assume this wasn't our fault\n\t\t\treturn NO_WORK;\n\t\t} catch (IOException e) {\n\t\t\tlog.error(\"Internal error: BuildServer got IOException\", e);\n\t\t\t// Assume this is an internal error\n\t\t\treturn BUILD_FAILURE;\n\t\t} catch (BuilderException e) {\n\t\t\tlog.error(\"Internal error: BuildServer got BuilderException\", e);\n\t\t\t// This is a build failure\n\t\t\treturn BUILD_FAILURE;\n\t\t} finally {\n\t\t\tif (projectSubmission != null) {\n\t\t\t\treleaseConnection(projectSubmission);\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "d1a9f2e4fd0c4db2194f03c917b19143", "score": "0.56576306", "text": "public abstract Run.Builder setBaselineGuid(String baselineGuid);", "title": "" }, { "docid": "0da32819110f8323b3d30c017cd5d696", "score": "0.5597395", "text": "@Test\n public void testOnSelf() {\n String codebase = getCodebaseDir();\n Assume.assumeTrue(\"Directory \" + codebase + \" doesn't exist.\", new File(codebase).exists());\n\n QavMain.main(\"--analysis=classpath:/default_analysis.groovy\", \"--outputDir=build/results-self\",\n codebase + \"/qav-app/build/classes/java/main\");\n\n assertThat(new File(\"build/results-self\").exists()).isTrue();\n }", "title": "" }, { "docid": "62cd207fdee31a9c54adddabdfcd74c9", "score": "0.5501099", "text": "@Test\n @Issue(\"JENKINS-33700\")\n public void test_unstable_basic_flow() throws Exception {\n WorkflowJob passUnstable = jenkinsRule.jenkins.createProject(WorkflowJob.class, \"SafelyUnstable\");\n passUnstable.setDefinition(new CpsFlowDefinition(\"\" +\n \"stage('first') {\\n\" +\n \"echo 'works'\\n\" +\n \"}\\n\" +\n \"stage('second') {\\n\" +\n \"currentBuild.result = 'UNSTABLE'\\n\" +\n \"echo 'ran things'\\n\" +\n \"}\\n\" +\n \"stage('end') {\\n\" +\n \"echo 'done'\" +\n \"}\\n\",\n true));\n QueueTaskFuture<WorkflowRun> build = passUnstable.scheduleBuild2(0);\n jenkinsRule.assertBuildStatus(Result.UNSTABLE, build.get());\n JenkinsRule.WebClient webClient = jenkinsRule.createWebClient();\n RunExt[] workflowRuns = getRuns(passUnstable, webClient, \"wfapi/runs?fullStages=true\");\n\n // Confirm that in the case of success with overriding, all stages are marked as unstable\n Assert.assertEquals(1, workflowRuns.length);\n RunExt run = workflowRuns[0];\n assertRunPassesSanity(build.get(), run, true);\n Assert.assertEquals(StatusExt.UNSTABLE, run.getStatus());\n Assert.assertEquals(3, run.getStages().size());\n Assert.assertEquals(StatusExt.SUCCESS, run.getStages().get(0).getStatus());\n Assert.assertEquals(StatusExt.SUCCESS, run.getStages().get(1).getStatus());\n Assert.assertEquals(StatusExt.SUCCESS, run.getStages().get(2).getStatus());\n }", "title": "" }, { "docid": "baa676059ac66d0814f1313788b10320", "score": "0.54736817", "text": "@Test\n public void parseFailBadConditions() {\n EasyCompiler easyCompiler = new EasyCompiler(pathTestFilesFailTypeCheck + \"FailBadConditions.easy\");\n assertTrue(easyCompiler.parse());\n }", "title": "" }, { "docid": "43bd472910288ec93dfb1576e3fcc145", "score": "0.5406041", "text": "@Test\n public void testConcatenateExampleInvalidOutput() {\n final String line1 = ConcatenateExample.LINE_TEST_FILE_1 + \" - something\";\n final String line2 = ConcatenateExample.LINE_TEST_FILE_2 + \" - is wrong!\";\n final ConcatenateExample concatenateExample = initializeConcatenateExample(true, line1, line2);\n\n assertFalse(concatenateExample.runExample(Constants.CENTRAL_GALAXY_URL));\n }", "title": "" }, { "docid": "b667007e388a85e55e06ccd5e2324637", "score": "0.53917974", "text": "@Override\n public void \n validatePhase()\n throws PipelineException\n {\n /* sets up the built-in parameters common to all builders */ \n validateBuiltInParams();\n \n /* Deal with the submit node. */\n pSubmitNode = getStringParamValue(new ParamMapping(aSourceNode), false);\n if (!nodeExists(pSubmitNode))\n throw new PipelineException\n (\"The node name submitted as the source node (\" + pSubmitNode + \") is not a valid \" +\n \"Pipeline node.\");\n \n pCustomWorkingArea = getStringParamValue(new ParamMapping(aCustomWorkingArea), false);\n \n TreeMap<NodePurpose, BaseAnnotation> submitAnnots = \n new TreeMap<NodePurpose, BaseAnnotation>();\n String submitTaskInfo[] = lookupTaskAnnotations(pSubmitNode, submitAnnots);\n \n if (!submitAnnots.containsKey(NodePurpose.Submit))\n throw new PipelineException\n (\"The node submitted as the source node (\" + pSubmitNode + \") is not a \" +\n \"Submit node.\");\n \n setTaskInformation(submitTaskInfo[0], submitTaskInfo[1], submitTaskInfo[2], submitTaskInfo[3]);\n \n NodeMod submitMod = getWorkingVersion(pSubmitNode);\n if (!submitMod.isLocked())\n throw new PipelineException\n (\"The submit node (\" + pSubmitNode + \") needs to be locked before running the \" +\n \"verify builder. This guarantees that verification only occurs for checked-in \" +\n \"versions of the task.\");\n \n pSubmitNodeVersion = submitMod.getWorkingID();\n \n \n pLog.log\n (Kind.Ops, Level.Fine, \n \"The submit node and version are: \" + pSubmitNode + \"(v\" + pSubmitNodeVersion + \")\");\n \n \n NodeVersion ver = pClient.getCheckedInVersion(pSubmitNode, pSubmitNodeVersion);\n pCheckInMessage = \n \"Verified the following submit version:\\n\" + \n \"SUBMIT NODE: \" + pSubmitNode + \" (v\" + ver.getVersionID() + \")\\n\" +\n \"SUBMITTED BY: \" + ver.getAuthor() + \"\\n\" +\n \"SUBMISSION NOTES: \" + ver.getMessage() + \"\\n\";\n \n \n /* Deal with the verify node. */\n pVerifyNode = getDefaultVerifyNodeName(); \n if (!nodeExists(pVerifyNode))\n throw new PipelineException\n (\"The supposed verify node (\" + pVerifyNode + \") is not a valid Pipeline node.\");\n \n TreeMap<NodePurpose, BaseAnnotation> verifyAnnots = \n new TreeMap<NodePurpose, BaseAnnotation>();\n \n String verifyTaskInfo[] = lookupTaskAnnotations(pVerifyNode, verifyAnnots);\n\n if (!verifyAnnots.containsKey(NodePurpose.Verify))\n throw new PipelineException\n (\"The supposed verify node (\" + pVerifyNode + \") is not marked as a \" +\n \"Verify node.\");\n\n if (!isSameTask(verifyTaskInfo))\n throw new PipelineException\n (\"The task \" + taskArrayToString(verifyTaskInfo) + \" assigned to the supposed \" +\n \"verify node (\" + pVerifyNode + \") is not the same as the task \" + \n taskArrayToString(submitTaskInfo) + \" on the submit node.\");\n\n pCheckInLevel = VersionID.Level.Minor;\n if (checkedInVersionExists(pVerifyNode)) {\n NodeVersion verifyVer = pClient.getCheckedInVersion(pVerifyNode, null);\n String message = verifyVer.getMessage();\n String buffer[] = message.split(\"\\\\(\");\n if (buffer.length > 1) {\n buffer = buffer[1].split(\"\\\\)\");\n String vid = buffer[0].replaceAll(\"v\", \"\");\n if (VersionID.isValidVersionID(vid)) {\n VersionID id = new VersionID(vid);\n pCheckInLevel = id.compareLevel(pSubmitNodeVersion);\n }\n }\n }\n else\n throw new PipelineException\n (\"No checked-in version of the verify node (\" + pVerifyNode + \") exists.\");\n }", "title": "" }, { "docid": "f2f53acb31ee202c30a6d2946287ca0a", "score": "0.5361345", "text": "@Ignore\n @Test\n public void testThatExampleProjectM2M2BuildCanBeBuilt() throws Exception {\n String jobName = \"m2-m2-build\";\n startJob(jobName);\n waitForJob(jobName);\n assertResult(jobName, \"unstable\");\n }", "title": "" }, { "docid": "3035c2274a78f41668e80f3c52a90a23", "score": "0.5342376", "text": "@Test\n\tvoid test1() throws Exception {\n\t\tTraceGlobalVariables globalVars = new TraceGlobalVariables();\n\t\tBuchiTreeAutomaton<RankedBool, String> aut = new BuchiTreeAutomaton<>(1);\n\t\taut.addFinalState(\"s1\");\n\t\taut.addInitState(\"s1\");\n\n\t\tVariableFactory vf = globalVars.getVariableFactory();\n\t\tScript script = globalVars.getManagedScript().getScript();\n\t\tBoogieNonOldVar x = vf.constructVariable(\"x\", VariableFactory.INT);\n\n\t\tIStatement xpp = new ScriptAssignmentStatement(x, script.term(\"+\", x.getTerm(), script.numeral(\"1\")),\n\t\t\t\tglobalVars.getManagedScript(), vf.getSymbolTable());\n\t\tList<IStatement> letters = new ArrayList<>();\n\t\tletters.add(xpp);\n\n\t\tList<String> dest = new ArrayList<>();\n\t\tdest.add(\"s1\");\n\t\taut.addRule(new BuchiTreeAutomatonRule<>(RankedBool.TRUE, \"s1\", dest));\n\t\taut.addRule(new BuchiTreeAutomatonRule<>(RankedBool.FALSE, \"s1\", dest));\n\n\t\tMainVerificationLoop loop = new MainVerificationLoop(aut, letters, null, null, globalVars);\n\t\tloop.computeMainLoop();\n\t\tassertTrue(loop.isCorrect());\n\t}", "title": "" }, { "docid": "7deb5b3f4e06d79fa4cb613b8f09093e", "score": "0.5336213", "text": "@Test\n public void testErrorHandling() {\n QavMain.main(\"--analysis=classpath:/error_architecture.groovy\", \"--outputDir=build/results-error\");\n assertThat(new File(\"build/results-error\").exists()).isTrue();\n }", "title": "" }, { "docid": "fc602a8db7e6c520658f7585d9588509", "score": "0.5328541", "text": "@Test\n public void getFailedGoal() {\n MavenGoal expectedFailedGoal = new MavenGoal();\n\n // allocate test objects\n MavenBuild mavenBuild = new MavenBuild(null, expectedFailedGoal, null, null);\n\n // execute method to be tested\n MavenGoal actualFailedGoal = mavenBuild.getFailedGoal();\n\n // assert result\n Assert.assertEquals(expectedFailedGoal, actualFailedGoal);\n }", "title": "" }, { "docid": "5f2de4025bca43b145b372279feafac5", "score": "0.5275514", "text": "@Test\n public void testValidate() {\n IProject project = null;\n IStatus result = fixture.validate(project, testTrace.getPath());\n assertTrue(result.isOK());\n }", "title": "" }, { "docid": "dae63f7488136f57a05347b744962fcf", "score": "0.5272326", "text": "public void testStatusUpdated() throws Exception {\n FileObject src = simpleProject.getProjectDirectory().getFileObject(\"src\");\n FileObject antsrc = simpleProject.getProjectDirectory().getFileObject(\"antsrc\");\n \n FileObject MyAppJava = src.getFileObject(\"org/foo/myapp/MyApp.java\");\n FileObject SomeFileJava = src.getFileObject(\"org/foo/myapp/SomeFile.java\");\n FileObject SpecialTaskJava = antsrc.getFileObject(\"org/foo/ant/SpecialTask.java\");\n \n File MyAppClass = new File(FileUtil.toFile(simpleProject.getProjectDirectory()), \"build/classes/org/foo/myapp/MyApp.class\".replace('/', File.separatorChar));\n File SomeFileClass = new File(FileUtil.toFile(simpleProject.getProjectDirectory()), \"build/classes/org/foo/myapp/SomeFile.class\".replace('/', File.separatorChar));\n File SpecialTaskClass = new File(FileUtil.toFile(simpleProject.getProjectDirectory()), \"build/antclasses/org/foo/ant/SpecialTask.class\".replace('/', File.separatorChar));\n \n FileBuiltQueryImplementation fbqi = simpleProject.getLookup().lookup(FileBuiltQueryImplementation.class);\n \n assertNotNull(\"have FileBuiltQueryImplementation in lookup\", fbqi);\n \n FileBuiltQuery.Status MyAppStatus = fbqi.getStatus(MyAppJava);\n FileBuiltQuery.Status SomeFileStatus = fbqi.getStatus(SomeFileJava);\n FileBuiltQuery.Status SpecialTaskStatus = fbqi.getStatus(SpecialTaskJava);\n \n assertFalse(\"MyApp.java is not built\", MyAppStatus.isBuilt());\n assertFalse(\"SomeFile.java is not built\", SomeFileStatus.isBuilt());\n assertFalse(\"SpecialTask.java is not built\", SpecialTaskStatus.isBuilt());\n \n createEmptyFile(MyAppClass);\n createEmptyFile(SpecialTaskClass);\n \n refreshRecursively(simpleProject.getProjectDirectory());\n\n assertTrue(\"MyApp.java is built\", MyAppStatus.isBuilt());\n assertFalse(\"SomeFile.java is not built\", SomeFileStatus.isBuilt());\n assertTrue(\"SpecialTask.java is built\", SpecialTaskStatus.isBuilt());\n \n MyAppClass.delete();\n \n refreshRecursively(simpleProject.getProjectDirectory());\n \n assertFalse(\"MyApp.java is built\", MyAppStatus.isBuilt());\n assertFalse(\"SomeFile.java is not built\", SomeFileStatus.isBuilt());\n assertTrue(\"SpecialTask.java is built\", SpecialTaskStatus.isBuilt());\n \n SpecialTaskClass.delete();\n createEmptyFile(MyAppClass);\n createEmptyFile(SomeFileClass);\n \n refreshRecursively(simpleProject.getProjectDirectory());\n \n assertTrue(\"MyApp.java is built\", MyAppStatus.isBuilt());\n assertTrue(\"SomeFile.java is not built\", SomeFileStatus.isBuilt());\n assertFalse(\"SpecialTask.java is built\", SpecialTaskStatus.isBuilt());\n }", "title": "" }, { "docid": "04466214e340252e29d3c8e18a788bb0", "score": "0.52684903", "text": "public abstract void checkSanity()throws COPSException;", "title": "" }, { "docid": "164af46fe9269683c67cb04e242c6425", "score": "0.5264975", "text": "private static void runTestCWE9() {\n}", "title": "" }, { "docid": "ea70adbe4fd849c82319eccef711f9dc", "score": "0.52608496", "text": "@Test\n public void testCreateAllocationWherePensumPercentageExceedsContractLimit_StartDateOverlaps(){\n AllocationDTO createAllocationDTO1 = new AllocationDTO(-1l, 2l, 2l, 1, testAllocation2.getStartDate(), testProject2.getEndDate());\n //Test2: the new allocation's start date lies one day after the start date of another allocation, which causes an exceedance\n AllocationDTO createAllocationDTO2 = new AllocationDTO(-1l, 2l, 2l, 1, testAllocation2.getStartDate().plusDays(1), testProject2.getEndDate());\n //Test3: the new allocation's start date lies one day before the end of another allocation, which causes an exceedance\n AllocationDTO createAllocationDTO3 = new AllocationDTO(-1l, 2l, 2l, 1, testAllocation2.getEndDate().minusDays(1), testProject2.getEndDate());\n //Test4: the new allocation's start date equals the end date of another allocation, which causes an exceedance\n AllocationDTO createAllocationDTO4 = new AllocationDTO(-1l, 2l, 2l, 1, testAllocation2.getEndDate(), testProject2.getEndDate());\n try{\n AllocationDTO create = allocationService.createAllocation(createAllocationDTO1);\n fail(\"Should have thrown an exception: The pensum percentage of the allocation exceeds the limit of the contract.(The new contract's start date equals the start date of another contract, which causes an exceedance. Error in checkIfAllocationExeedsContractLimit\");\n }\n catch (Exception e){\n assertEquals(PreconditionFailedException.class, e.getClass());\n assertEquals(AllocationService.ERR_MSG_CONTRACTLIMITEXCEEDED, e.getMessage());\n }\n try{\n AllocationDTO create = allocationService.createAllocation(createAllocationDTO2);\n fail(\"Should have thrown an exception: The pensum percentage of the allocation exceeds the limit of the contract.(The new contract's start date lies one day after the start date of another contract, which causes an exceedance. Error in checkIfAllocationExeedsContractLimit\");\n }\n catch (Exception e){\n assertEquals(PreconditionFailedException.class, e.getClass());\n assertEquals(AllocationService.ERR_MSG_CONTRACTLIMITEXCEEDED, e.getMessage());\n }\n try{\n AllocationDTO create = allocationService.createAllocation(createAllocationDTO3);\n fail(\"Should have thrown an exception: The pensum percentage of the allocation exceeds the limit of the contract.(The new contract's start date lies one day before the end date of another contract, which causes an exceedance. Error in checkIfAllocationExeedsContractLimit\");\n }\n catch (Exception e){\n assertEquals(PreconditionFailedException.class, e.getClass());\n assertEquals(AllocationService.ERR_MSG_CONTRACTLIMITEXCEEDED, e.getMessage());\n }\n try{\n AllocationDTO create = allocationService.createAllocation(createAllocationDTO4);\n fail(\"Should have thrown an exception: The pensum percentage of the allocation exceeds the limit of the contract.(The new contract's start date equals the end date of another contract, which causes an exceedance. Error in checkIfAllocationExeedsContractLimit\");\n }\n catch (Exception e){\n assertEquals(PreconditionFailedException.class, e.getClass());\n assertEquals(AllocationService.ERR_MSG_CONTRACTLIMITEXCEEDED, e.getMessage());\n }\n }", "title": "" }, { "docid": "88ea57453409e450d3c707fe49a6c2f9", "score": "0.52478796", "text": "@Test\n public void reduceDowngrade() {\n ReifiedArtifact leaf = new ReifiedArtifact(new ArtifactID(\"org.savantbuild.test\", \"leaf\", \"leaf\", \"jar\"), new Version(\"1.0.0\"), new License());\n ReifiedArtifact intermediate = new ReifiedArtifact(new ArtifactID(\"org.savantbuild.test\", \"intermediate\", \"intermediate\", \"jar\"), new Version(\"1.0.0\"), new License());\n ReifiedArtifact intermediate2 = new ReifiedArtifact(new ArtifactID(\"org.savantbuild.test\", \"intermediate2\", \"intermediate2\", \"jar\"), new Version(\"1.0.0\"), new License());\n ReifiedArtifact multipleVersions = new ReifiedArtifact(new ArtifactID(\"org.savantbuild.test\", \"multiple-versions\", \"multiple-versions\", \"jar\"), new Version(\"1.1.0\"), new License());\n ReifiedArtifact multipleVersionsDifferentDeps = new ReifiedArtifact(new ArtifactID(\"org.savantbuild.test\", \"multiple-versions-different-dependencies\", \"multiple-versions-different-dependencies\", \"jar\"), new Version(\"1.1.0\"), new License());\n\n DependencyGraph graph = new DependencyGraph(project);\n graph.addEdge(new Dependency(project.id), new Dependency(multipleVersions.id), new DependencyEdgeValue(new Version(\"1.0.0\"), new Version(\"1.0.0\"), \"compile\", new License()));\n graph.addEdge(new Dependency(project.id), new Dependency(intermediate.id), new DependencyEdgeValue(new Version(\"1.0.0\"), new Version(\"1.0.0\"), \"runtime\", new License()));\n graph.addEdge(new Dependency(project.id), new Dependency(multipleVersionsDifferentDeps.id), new DependencyEdgeValue(new Version(\"1.0.0\"), new Version(\"1.0.0\"), \"compile\", new License()));\n graph.addEdge(new Dependency(intermediate.id), new Dependency(multipleVersions.id), new DependencyEdgeValue(new Version(\"1.0.0\"), new Version(\"1.1.0\"), \"compile\", new License()));\n graph.addEdge(new Dependency(intermediate.id), new Dependency(multipleVersionsDifferentDeps.id), new DependencyEdgeValue(new Version(\"1.0.0\"), new Version(\"1.1.0\"), \"runtime\", new License()));\n graph.addEdge(new Dependency(intermediate2.id), new Dependency(leaf.id), new DependencyEdgeValue(new Version(\"2.0.0\"), new Version(\"2.0.0\"), \"runtime\", new License()));\n graph.addEdge(new Dependency(multipleVersions.id), new Dependency(intermediate2.id), new DependencyEdgeValue(new Version(\"1.0.0\"), new Version(\"1.0.0\"), \"compile\", new License()));\n graph.addEdge(new Dependency(multipleVersions.id), new Dependency(intermediate2.id), new DependencyEdgeValue(new Version(\"1.1.0\"), new Version(\"1.0.0\"), \"compile\", new License()));\n graph.addEdge(new Dependency(multipleVersionsDifferentDeps.id), new Dependency(intermediate2.id), new DependencyEdgeValue(new Version(\"1.0.0\"), new Version(\"2.0.0\"), \"runtime\", new License()));\n graph.addEdge(new Dependency(multipleVersionsDifferentDeps.id), new Dependency(intermediate2.id), new DependencyEdgeValue(new Version(\"1.1.0\"), new Version(\"1.0.0\"), \"compile\", new License()));\n graph.addEdge(new Dependency(multipleVersionsDifferentDeps.id), new Dependency(leaf.id), new DependencyEdgeValue(new Version(\"1.1.0\"), new Version(\"1.0.0\"), \"compile\", new License()));\n\n ArtifactGraph expected = new ArtifactGraph(project);\n expected.addEdge(project, multipleVersions, \"compile\");\n expected.addEdge(project, intermediate, \"runtime\");\n expected.addEdge(project, multipleVersionsDifferentDeps, \"compile\");\n expected.addEdge(intermediate, multipleVersions, \"compile\");\n expected.addEdge(intermediate, multipleVersionsDifferentDeps, \"runtime\");\n expected.addEdge(multipleVersions, intermediate2, \"compile\");\n expected.addEdge(multipleVersionsDifferentDeps, intermediate2, \"compile\");\n expected.addEdge(multipleVersionsDifferentDeps, leaf, \"compile\");\n\n ArtifactGraph actual = service.reduce(graph);\n assertEquals(actual, expected);\n }", "title": "" }, { "docid": "508bd1cab8073a3c8dca9152afff89e5", "score": "0.5246943", "text": "private static void runTestCWE1() {\n}", "title": "" }, { "docid": "7034c9efc9915890e9346812e2416577", "score": "0.52328867", "text": "protected void checkEarlyStoppingReproducibility() {\n }", "title": "" }, { "docid": "f4afbc6daebc62e32bff1bebadcb0b27", "score": "0.52185965", "text": "@Test\n public void testCreateAllocationWherePensumPercentageExceedsContractLimit_EndDateOverlaps(){\n AllocationDTO createAllocationDTO1 = new AllocationDTO(-1l, 2l, 2l, 1, testProject2.getStartDate(), testAllocation2.getStartDate());\n //Test2: the new allocation's end date lies one day after the start date of another allocation, which causes an exceedance\n AllocationDTO createAllocationDTO2 = new AllocationDTO(-1l, 2l, 2l, 1, testProject2.getStartDate(), testAllocation2.getStartDate().plusDays(1));\n //Test3: the new allocation's end date lies one day before the end of another allocation, which causes an exceedance\n AllocationDTO createAllocationDTO3 = new AllocationDTO(-1l, 2l, 2l, 1, testProject2.getStartDate(), testAllocation2.getEndDate().minusDays(1));\n //Test4: the new allocation's end date equals the end date of another allocation, which causes an exceedance\n AllocationDTO createAllocationDTO4 = new AllocationDTO(-1l, 2l, 2l, 1, testProject2.getStartDate(), testAllocation2.getEndDate());\n try{\n AllocationDTO create = allocationService.createAllocation(createAllocationDTO1);\n fail(\"Should have thrown an exception: The pensum percentage of the allocation exceeds the limit of the contract.(The new contract's end date equals the start date of another contract, which causes an exceedance. Error in checkIfAllocationExeedsContractLimit\");\n }\n catch (Exception e){\n assertEquals(PreconditionFailedException.class, e.getClass());\n assertEquals(AllocationService.ERR_MSG_CONTRACTLIMITEXCEEDED, e.getMessage());\n }\n try{\n AllocationDTO create = allocationService.createAllocation(createAllocationDTO2);\n fail(\"Should have thrown an exception: The pensum percentage of the allocation exceeds the limit of the contract.(The new contract's end date lies one day after the start date of another contract, which causes an exceedance. Error in checkIfAllocationExeedsContractLimit\");\n }\n catch (Exception e){\n assertEquals(PreconditionFailedException.class, e.getClass());\n assertEquals(AllocationService.ERR_MSG_CONTRACTLIMITEXCEEDED, e.getMessage());\n }\n try{\n AllocationDTO create = allocationService.createAllocation(createAllocationDTO3);\n fail(\"Should have thrown an exception: The pensum percentage of the allocation exceeds the limit of the contract.(The new contract's end date lies one day before the end date of another contract, which causes an exceedance. Error in checkIfAllocationExeedsContractLimit\");\n }\n catch (Exception e){\n assertEquals(PreconditionFailedException.class, e.getClass());\n assertEquals(AllocationService.ERR_MSG_CONTRACTLIMITEXCEEDED, e.getMessage());\n }\n try{\n AllocationDTO create = allocationService.createAllocation(createAllocationDTO4);\n fail(\"Should have thrown an exception: The pensum percentage of the allocation exceeds the limit of the contract.(The new contract's end date equals the end date of another contract, which causes an exceedance. Error in checkIfAllocationExeedsContractLimit\");\n }\n catch (Exception e){\n assertEquals(PreconditionFailedException.class, e.getClass());\n assertEquals(AllocationService.ERR_MSG_CONTRACTLIMITEXCEEDED, e.getMessage());\n }\n }", "title": "" }, { "docid": "57a50339d9bc2e32abcbc9bba278067d", "score": "0.5203347", "text": "@Test\n\tpublic void generateAndCompareAuditReportTest() throws IOException\n\t{\n\t\tfinal SearchResult<OutboundChannelConfigurationModel> search = flexibleSearchService.search(\n\t\t\t\t\"SELECT PK FROM {OutboundChannelConfiguration} WHERE (p_code = 'outboundChannelConfigTest')\");\n\t\tfinal OutboundChannelConfigurationModel outboundChannelConfigurationModel = search.getResult().get(0);\n\t\tfinal Map<String, InputStream> reportGenerateRes = auditReportBuilder.generateAuditReport(\n\t\t\t\toutboundChannelConfigurationModel);\n\t\tbyte[] arr1 = null;\n\t\tassertEquals(1, reportGenerateRes.values().size());\n\t\tfor (InputStream inputStream : reportGenerateRes.values())\n\t\t{\n\t\t\tarr1 = inputStream.readAllBytes();\n\t\t}\n\t\tif (arr1 == null)\n\t\t{\n\t\t\tfail(\"Audit report is not generated. No data found.\");\n\t\t}\n\n\t\t// if baseline changed, update it\n\t\t// Files.write(Paths.get(\"./outboundChannelConfigAuditReportBuilderBaseline.html\"), arr1);\n\n\t\tfinal JsonParser parser = new JsonParser();\n\n\t\t// get json object from data just fetched\n\t\tString htmlContent = new String(arr1);\n\t\thtmlContent = htmlContent.substring(htmlContent.indexOf(\"<script>\") + 8, htmlContent.indexOf(\"</script>\"));\n\t\thtmlContent = htmlContent.substring(htmlContent.indexOf(\"=\") + 1, htmlContent.lastIndexOf(\";\"));\n\t\thtmlContent = htmlContent.substring(htmlContent.indexOf(\"[\"), htmlContent.lastIndexOf(\"]\") + 1);\n\n\t\tClassLoader classLoader = getClass().getClassLoader();\n\t\tString htmlPath = \"test/text/OutboundChannelConfigAuditReportBuilderBaseline.html\";\n\t\tFile file = new File(classLoader.getResource(htmlPath).getFile());\n\t\tString htmlContentBaseline = Files.readString(Paths.get(file.getAbsolutePath()), StandardCharsets.UTF_8);\n\t\thtmlContentBaseline = htmlContentBaseline.substring(htmlContentBaseline.indexOf(\"<script>\") + 8,\n\t\t\t\thtmlContentBaseline.indexOf(\"</script>\"));\n\t\thtmlContentBaseline = htmlContentBaseline.substring(htmlContentBaseline.indexOf(\"=\") + 1,\n\t\t\t\thtmlContentBaseline.lastIndexOf(\";\"));\n\t\thtmlContentBaseline = htmlContentBaseline.substring(htmlContentBaseline.indexOf(\"[\"),\n\t\t\t\thtmlContentBaseline.lastIndexOf(\"]\") + 1);\n\t\tJsonArray jsonObjectListNew = parser.parse(htmlContent).getAsJsonArray();\n\t\tJsonObject jsonObjectNew = jsonObjectListNew.get(jsonObjectListNew.size() - 1).getAsJsonObject();\n\t\tJsonArray jsonObjectListBaseline = parser.parse(htmlContentBaseline).getAsJsonArray();\n\t\tJsonObject jsonObjectBaseline = jsonObjectListBaseline.get(jsonObjectListBaseline.size() - 1).getAsJsonObject();\n\n\t\tJsonObject OBChannelConfigNew = jsonObjectNew.getAsJsonObject(\"payload\").getAsJsonObject(\"OutboundChannelConfiguration\");\n\t\tJsonObject OBChannelConfigBaseline = jsonObjectBaseline.getAsJsonObject(\"payload\")\n\t\t .getAsJsonObject(\"OutboundChannelConfiguration\");\n\t\tassertEquals(OBChannelConfigNew.get(\"code\").toString(), OBChannelConfigBaseline.get(\"code\").toString());\n\n\t\tJsonObject ConsumedDestinationNew = OBChannelConfigNew.getAsJsonObject(\"ConsumedDestination_id : platform-basicTest\");\n\t\tJsonObject ConsumedDestinationBase = OBChannelConfigBaseline.getAsJsonObject(\n\t\t\t\t\"ConsumedDestination_id : platform-basicTest\");\n\t\tassertEquals(ConsumedDestinationNew.getAsJsonObject(\"Credential_id : BasicCredentialTest\").toString(),\n\t\t\t\tConsumedDestinationBase.getAsJsonObject(\"Credential_id : BasicCredentialTest\").toString());\n\t\tassertEquals(ConsumedDestinationNew.getAsJsonObject(\"DestinationTarget_id : stoutoutboundtest1\").toString(),\n\t\t\t\tConsumedDestinationBase.getAsJsonObject(\"DestinationTarget_id : stoutoutboundtest1\").toString());\n\t\tassertEquals(ConsumedDestinationNew.getAsJsonObject(\"Endpoint_id : local-hybrisTest\").toString(),\n\t\t\t\tConsumedDestinationBase.getAsJsonObject(\"Endpoint_id : local-hybrisTest\").toString());\n\t\tassertEquals(ConsumedDestinationNew.getAsJsonObject(\"Endpoint_id : local-hybrisTest\").toString(),\n\t\t\t\tConsumedDestinationBase.getAsJsonObject(\"Endpoint_id : local-hybrisTest\").toString());\n\t\tassertEquals(ConsumedDestinationNew.get(\"url\").toString(),\n\t\t\t\tConsumedDestinationBase.get(\"url\").toString());\n\t\tassertEquals(ConsumedDestinationNew.get(\"active\").toString(),\n\t\t\t\tConsumedDestinationBase.get(\"active\").toString());\n\t\tassertEquals(ConsumedDestinationNew.get(\"additional Properties\").toString(),\n\t\t\t\tConsumedDestinationBase.get(\"additional Properties\").toString());\n\n\t\tJsonObject IntegrationObjectNew = OBChannelConfigNew.getAsJsonObject(\"IntegrationObject_id : OutboundProductTest\");\n\t\tJsonObject IntegrationObjectBaseline = OBChannelConfigBaseline.getAsJsonObject(\n\t\t\t\t\"IntegrationObject_id : OutboundProductTest\");\n\t\tassertEquals(IntegrationObjectNew.toString(), IntegrationObjectBaseline.toString());\n\n\t\tJsonObject OutboundSyncStreamConfigurationNew = OBChannelConfigNew.getAsJsonObject(\n\t\t\t\t\"OutboundSyncStreamConfiguration_id : productStream\");\n\t\tJsonObject OutboundSyncStreamConfigurationNewBaseline = OBChannelConfigBaseline.getAsJsonObject(\n\t\t\t\t\"OutboundSyncStreamConfiguration_id : productStream\");\n\t\tassertEquals(OutboundSyncStreamConfigurationNew.getAsJsonObject(\n\t\t\t\t\"OutboundSyncStreamConfigurationContainer_id : outboundSyncDataStreamsTest\").toString(),\n\t\t\t\tOutboundSyncStreamConfigurationNewBaseline.getAsJsonObject(\n\t\t\t\t\t\t\"OutboundSyncStreamConfigurationContainer_id : outboundSyncDataStreamsTest\").toString());\n\t}", "title": "" }, { "docid": "cb4b6fa7b648ea8f896f2af8dee19c53", "score": "0.5203216", "text": "@Test\n void testAllPMDBuiltInRulesMeetConventions() throws Exception {\n int invalidSinceAttributes = 0;\n int invalidExternalInfoURL = 0;\n int invalidClassName = 0;\n int invalidRegexSuppress = 0;\n int invalidXPathSuppress = 0;\n StringBuilder messages = new StringBuilder();\n List<String> ruleSetFileNames = getRuleSetFileNames();\n for (String fileName : ruleSetFileNames) {\n RuleSet ruleSet = loadRuleSetByFileName(fileName);\n for (Rule rule : ruleSet.getRules()) {\n\n // Skip references\n if (rule instanceof RuleReference) {\n continue;\n }\n\n Language language = rule.getLanguage();\n String group = fileName.substring(fileName.lastIndexOf('/') + 1);\n group = group.substring(0, group.indexOf(\".xml\"));\n if (group.indexOf('-') >= 0) {\n group = group.substring(0, group.indexOf('-'));\n }\n\n // Is since missing ?\n if (rule.getSince() == null) {\n invalidSinceAttributes++;\n messages.append(\"Rule \")\n .append(fileName)\n .append(\"/\")\n .append(rule.getName())\n .append(\" is missing 'since' attribute\\n\");\n }\n // Is URL valid ?\n if (rule.getExternalInfoUrl() == null || \"\".equalsIgnoreCase(rule.getExternalInfoUrl())) {\n invalidExternalInfoURL++;\n messages.append(\"Rule \")\n .append(fileName)\n .append(\"/\")\n .append(rule.getName())\n .append(\" is missing 'externalInfoURL' attribute\\n\");\n } else {\n String expectedExternalInfoURL = \"https://docs.pmd-code.org/.+/pmd_rules_\"\n + language.getTerseName() + \"_\"\n + IOUtil.getFilenameBase(fileName)\n + \".html#\"\n + rule.getName().toLowerCase(Locale.ROOT);\n if (rule.getExternalInfoUrl() == null\n || !rule.getExternalInfoUrl().matches(expectedExternalInfoURL)) {\n invalidExternalInfoURL++;\n messages.append(\"Rule \")\n .append(fileName)\n .append(\"/\")\n .append(rule.getName())\n .append(\" seems to have an invalid 'externalInfoURL' value (\")\n .append(rule.getExternalInfoUrl())\n .append(\"), it should be:\")\n .append(expectedExternalInfoURL)\n .append('\\n');\n }\n }\n // Proper class name/packaging?\n String expectedClassName = \"net.sourceforge.pmd.lang.\" + language.getTerseName() + \".rule.\" + group\n + \".\" + rule.getName() + \"Rule\";\n if (!rule.getRuleClass().equals(expectedClassName)\n && !validXPathClassNames.contains(rule.getRuleClass())) {\n invalidClassName++;\n messages.append(\"Rule \")\n .append(fileName)\n .append(\"/\")\n .append(rule.getName())\n .append(\" seems to have an invalid 'class' value (\")\n .append(rule.getRuleClass())\n .append(\"), it should be:\")\n .append(expectedClassName)\n .append('\\n');\n }\n // Should not have violation suppress regex property\n if (rule.getProperty(Rule.VIOLATION_SUPPRESS_REGEX_DESCRIPTOR).isPresent()) {\n invalidRegexSuppress++;\n messages.append(\"Rule \")\n .append(fileName)\n .append(\"/\")\n .append(rule.getName())\n .append(\" should not have '\")\n .append(Rule.VIOLATION_SUPPRESS_REGEX_DESCRIPTOR.name())\n .append(\"', this is intended for end user customization only.\\n\");\n }\n // Should not have violation suppress xpath property\n if (rule.getProperty(Rule.VIOLATION_SUPPRESS_XPATH_DESCRIPTOR).isPresent()) {\n invalidXPathSuppress++;\n messages.append(\"Rule \").append(fileName).append(\"/\").append(rule.getName()).append(\" should not have '\").append(Rule.VIOLATION_SUPPRESS_XPATH_DESCRIPTOR.name()).append(\"', this is intended for end user customization only.\").append(System.lineSeparator());\n }\n }\n }\n // We do this at the end to ensure we test ALL the rules before failing\n // the test\n if (invalidSinceAttributes > 0 || invalidExternalInfoURL > 0 || invalidClassName > 0 || invalidRegexSuppress > 0\n || invalidXPathSuppress > 0) {\n fail(\"All built-in PMD rules need 'since' attribute (\" + invalidSinceAttributes\n + \" are missing), a proper ExternalURLInfo (\" + invalidExternalInfoURL\n + \" are invalid), a class name meeting conventions (\" + invalidClassName + \" are invalid), no '\"\n + Rule.VIOLATION_SUPPRESS_REGEX_DESCRIPTOR.name() + \"' property (\" + invalidRegexSuppress\n + \" are invalid), and no '\" + Rule.VIOLATION_SUPPRESS_XPATH_DESCRIPTOR.name() + \"' property (\"\n + invalidXPathSuppress + \" are invalid)\\n\" + messages);\n }\n }", "title": "" }, { "docid": "a2cf734d11352540fcfdf3e4c5bc8aa0", "score": "0.5198607", "text": "public void testNoRebuildValidatorExtension()\n throws IOException, InterruptedException, ExecutionException {\n Project projectA = createFreeStyleProject(\"testFreeStyleA\");\n Build buildA = (Build) projectA.scheduleBuild2(0, new Cause.UserCause(),\n new ParametersAction(new StringParameterValue(\"party\", \"megaparty\"))).get();\n assertNotNull(buildA.getAction(RebuildAction.class));\n }", "title": "" }, { "docid": "12fa9d85c9c7be3d6de4158e71f45e5e", "score": "0.5194529", "text": "private static void runTestCWE7() {\n}", "title": "" }, { "docid": "abdea50d7d3c705112be65e5d725e84d", "score": "0.5161097", "text": "private HealthReport getBuildStabilityHealthReport() {\n int failCount = 0;\n int totalCount = 0;\n RunT i = getLastBuild();\n RunT u = getLastFailedBuild();\n if (i != null && u == null) {\n // no failures, like ever\n return new HealthReport(100, Messages._Job_BuildStability(Messages._Job_NoRecentBuildFailed()));\n }\n if (i != null && u.getNumber() <= i.getNumber()) {\n SortedMap<Integer, ? extends RunT> runs = _getRuns();\n if (runs instanceof RunMap) {\n RunMap<RunT> runMap = (RunMap<RunT>) runs;\n for (int index = i.getNumber(); index > u.getNumber() && totalCount < 5; index--) {\n if (runMap.runExists(index)) {\n totalCount++;\n }\n }\n if (totalCount < 5) {\n // start loading from the first failure as we counted the rest\n i = u;\n }\n }\n }\n while (totalCount < 5 && i != null) {\n switch (i.getIconColor()) {\n case BLUE:\n case YELLOW:\n // failCount stays the same\n totalCount++;\n break;\n case RED:\n failCount++;\n totalCount++;\n break;\n\n default:\n // do nothing as these are inconclusive statuses\n break;\n }\n i = i.getPreviousBuild();\n }\n if (totalCount > 0) {\n int score = (int) ((100.0 * (totalCount - failCount)) / totalCount);\n\n Localizable description;\n if (failCount == 0) {\n description = Messages._Job_NoRecentBuildFailed();\n } else if (totalCount == failCount) {\n // this should catch the case where totalCount == 1\n // as failCount must be between 0 and totalCount\n // and we can't get here if failCount == 0\n description = Messages._Job_AllRecentBuildFailed();\n } else {\n description = Messages._Job_NOfMFailed(failCount, totalCount);\n }\n return new HealthReport(score, Messages._Job_BuildStability(description));\n }\n return null;\n }", "title": "" }, { "docid": "25c317ad76cd24e52fa2f417d84f1e48", "score": "0.51583976", "text": "private static void runTestCWE4() {\n}", "title": "" }, { "docid": "cb6ccafca08c8054b0d22f2aade79e2b", "score": "0.51464826", "text": "private static void runTestCWE5() {\n}", "title": "" }, { "docid": "3c9fe9faaa9862b2ec4b9c277e7f3b83", "score": "0.5143206", "text": "private static void runTestCWE2() {\n}", "title": "" }, { "docid": "9d492f281912d1030ba8430cda9982d7", "score": "0.5136963", "text": "@Test\n public void test() throws Exception {\n Verifier v01 = getVerifier(\"/TYCHO0367localRepositoryCrosstalk/bundle02\", false);\n v01.getSystemProperties().setProperty(\"p2.repo\", P2Repositories.ECLIPSE_352.toString());\n v01.executeGoal(\"install\");\n v01.verifyErrorFreeLog();\n\n // now run e342 test, it should not \"see\" e352 artifacts in local repo\n Verifier v02 = getVerifier(\"/TYCHO0367localRepositoryCrosstalk/bundle01\", false);\n v02.getSystemProperties().setProperty(\"p2.repo\", P2Repositories.ECLIPSE_342.toString());\n v02.executeGoal(\"install\");\n v02.verifyErrorFreeLog();\n }", "title": "" }, { "docid": "988943ebe8dfe00b2e326df7b24b8a8c", "score": "0.5115197", "text": "private static void runTestCWE3() {\n}", "title": "" }, { "docid": "5086c2a7f4d62a45861c374d706c26af", "score": "0.5112811", "text": "@Test\n\tpublic void shortFail() throws Exception {\n\t\tSpecificationMapper mapper = executeMapping(STARTFILE, FOLDER + \"shortFail.skill\");\n\t\t\n\t\tSet<String> expectedFailFields = new HashSet<>();\n\t\texpectedFailFields.add(\"a.maxlong->a.maxlong\");\n\t\texpectedFailFields.add(\"a.minlong->a.minlong\");\n\t\texpectedFailFields.add(\"a.bignegdouble->a.bignegdouble\");\n\t\texpectedFailFields.add(\"a.bigposdouble->a.bigposdouble\");\n\t\texpectedFailFields.add(\"a.nan->a.nan\");\n\t\texpectedFailFields.add(\"a.b->a.b\");\n\t\texpectedFailFields.add(\"a.s->a.s\");\t\n\t\t\n\t\tcompareFailingFields(mapper, expectedFailFields);\n\t}", "title": "" }, { "docid": "aaaed679238cb021fb6f9eeade53d5d8", "score": "0.5102817", "text": "@Test(priority = 1)\n\tpublic void positiveflow() throws Exception {\n\n\t\tSystem.out.println(\"Hi ..this program is for checking whther can run a program in jenkin\");\n\t\t\n\t\t\n\t\t\n\t}", "title": "" }, { "docid": "9c402436e19273dd26b43a28d9ca06ea", "score": "0.5098128", "text": "@Test\n\tpublic void zooDBUpdateProcEverythingOk() {\n\t\tProceedings_simple_input publ = create_proc();\n\n\t\tpubl.mode = \"update\";\n\t\tpubl.myDB = myZooDB;\n\n\n\t\tSet<ConstraintViolation<Proceedings_simple_input>> constraintViolations = validator.validate( publ);\n\t\tassertEquals( 0, constraintViolations.size() );\n\t}", "title": "" }, { "docid": "f266459b246306b5895310f3fb065764", "score": "0.5086476", "text": "private ValidationReport[] checkConsistency(File projectDirectory, CodeType target) {\n\t\tlong start = System.currentTimeMillis();\n\t\tFlexoProject project = editor.getProject();\n\t\ttry {\n\t\t\tproject.setTargetType(target);\n\t\t\tList<ValidationReport> reports = new ArrayList<ValidationReport>();\n\t\t\tif (project.getFlexoComponentLibrary(false) != null) {\n\t\t\t\treports.add(project.getFlexoComponentLibrary().validate());\n\t\t\t}\n\t\t\tif (project.getFlexoWorkflow(false) != null) {\n\t\t\t\treports.add(project.getFlexoWorkflow().validate());\n\t\t\t}\n\t\t\tif (project.getDataModel(false) != null) {\n\t\t\t\treports.add(project.getDataModel().validate());\n\t\t\t}\n\t\t\tif (project.getDKVModel(false) != null) {\n\t\t\t\treports.add(project.getDKVModel().validate());\n\t\t\t}\n\t\t\tlong end = System.currentTimeMillis();\n\t\t\tboolean success = true;\n\t\t\tfor (ValidationReport report : reports) {\n\t\t\t\tsuccess &= report.getErrorNb() == 0;\n\t\t\t\tif (!success) {\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (logger.isLoggable(Level.INFO)) {\n\t\t\t\tlogger.info(\"Consistency checking took \" + (end - start) / 1000 + \" seconds for project located at: \"\n\t\t\t\t\t\t+ projectDirectory.getAbsolutePath() + \"\\nResult: \" + (success ? \"Success\" : \"Failure\"));\n\t\t\t}\n\t\t\tprintTOCRepositories(editor);\n\t\t\treturn reports.toArray(new ValidationReport[reports.size()]);\n\t\t} catch (ProjectInitializerException e) {\n\t\t\te.printStackTrace();\n\t\t\tsetExitCodeCleanUpAndExit(CORRUPTED_PROJECT_EXCEPTION);\n\t\t} finally {\n\t\t\t// Only executed if no error occur\n\t\t\tif (editor != null) {\n\t\t\t\tproject.close();\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}", "title": "" }, { "docid": "3f3d58e6ee1ca875189882ec12098c56", "score": "0.5084948", "text": "@Test\n public void testInvalidVersionChange() {\n testVersionChange( false );\n }", "title": "" }, { "docid": "e24b401ee490b264c8156cc21ae52d12", "score": "0.50771445", "text": "@Test\n public void reduceComplexCross() {\n ReifiedArtifact leaf = new ReifiedArtifact(new ArtifactID(\"org.savantbuild.test\", \"leaf\", \"leaf\", \"jar\"), new Version(\"2.0.0\"), new License());\n ReifiedArtifact intermediate = new ReifiedArtifact(new ArtifactID(\"org.savantbuild.test\", \"intermediate\", \"intermediate\", \"jar\"), new Version(\"1.0.0\"), new License());\n ReifiedArtifact multipleVersions = new ReifiedArtifact(new ArtifactID(\"org.savantbuild.test\", \"multiple-versions\", \"multiple-versions\", \"jar\"), new Version(\"1.1.0\"), new License());\n ReifiedArtifact multipleVersionsDifferentDeps = new ReifiedArtifact(new ArtifactID(\"org.savantbuild.test\", \"multiple-versions-different-dependencies\", \"multiple-versions-different-dependencies\", \"jar\"), new Version(\"1.1.0\"), new License());\n\n DependencyGraph graph = new DependencyGraph(project);\n graph.addEdge(new Dependency(project.id), new Dependency(multipleVersions.id), new DependencyEdgeValue(new Version(\"1.0.0\"), new Version(\"1.0.0\"), \"compile\", new License()));\n graph.addEdge(new Dependency(project.id), new Dependency(intermediate.id), new DependencyEdgeValue(new Version(\"1.0.0\"), new Version(\"1.0.0\"), \"runtime\", new License()));\n graph.addEdge(new Dependency(project.id), new Dependency(multipleVersionsDifferentDeps.id), new DependencyEdgeValue(new Version(\"1.0.0\"), new Version(\"1.0.0\"), \"compile\", new License()));\n graph.addEdge(new Dependency(intermediate.id), new Dependency(multipleVersions.id), new DependencyEdgeValue(new Version(\"1.0.0\"), new Version(\"1.1.0\"), \"compile\", new License()));\n graph.addEdge(new Dependency(intermediate.id), new Dependency(multipleVersionsDifferentDeps.id), new DependencyEdgeValue(new Version(\"1.0.0\"), new Version(\"1.1.0\"), \"runtime\", new License()));\n graph.addEdge(new Dependency(multipleVersions.id), new Dependency(leaf.id), new DependencyEdgeValue(new Version(\"1.0.0\"), new Version(\"1.0.0\"), \"compile\", new License()));\n graph.addEdge(new Dependency(multipleVersions.id), new Dependency(leaf.id), new DependencyEdgeValue(new Version(\"1.1.0\"), new Version(\"2.0.0\"), \"compile\", new License()));\n graph.addEdge(new Dependency(multipleVersionsDifferentDeps.id), new Dependency(leaf.id), new DependencyEdgeValue(new Version(\"1.0.0\"), new Version(\"1.0.0\"), \"runtime\", new License()));\n graph.addEdge(new Dependency(multipleVersionsDifferentDeps.id), new Dependency(leaf.id), new DependencyEdgeValue(new Version(\"1.1.0\"), new Version(\"2.0.0\"), \"runtime\", new License()));\n\n ArtifactGraph expected = new ArtifactGraph(project);\n expected.addEdge(project, multipleVersions, \"compile\");\n expected.addEdge(project, intermediate, \"runtime\");\n expected.addEdge(project, multipleVersionsDifferentDeps, \"compile\");\n expected.addEdge(intermediate, multipleVersions, \"compile\");\n expected.addEdge(intermediate, multipleVersionsDifferentDeps, \"runtime\");\n expected.addEdge(multipleVersions, leaf, \"compile\");\n expected.addEdge(multipleVersionsDifferentDeps, leaf, \"runtime\");\n\n ArtifactGraph actual = service.reduce(graph);\n assertEquals(actual, expected);\n }", "title": "" }, { "docid": "cd10f91cfd00a7770ff7ccf7f7589f6e", "score": "0.50733525", "text": "public static void main(String[] args) {\n\t\tString fpTotalSTProject=PathConstanct.PATH_PROJECT_TRAIN_TEST_NAME+\"overlapInST.txt\";\n\t\tString fpSupplyProject=PathConstanct.PATH_PROJECT_TRAIN_TEST_NAME+\"supplyProjects.txt\";\n\t\tString fpRequiredProject=PathConstanct.PATH_PROJECT_TRAIN_TEST_NAME+\"requiredProjects.txt\";\n\t\tString fpStillMissProject=PathConstanct.PATH_PROJECT_TRAIN_TEST_NAME+\"stillMissProjects.txt\";\n\t\tString[] arrTotalSTProject=FileIO.readStringFromFile(fpTotalSTProject).split(\"\\n\");\n\t\tString[] arrSupplyProject=FileIO.readStringFromFile(fpSupplyProject).split(\"\\n\");\n\t\tHashSet<String> setSupplyProject=new LinkedHashSet<String>();\n\t\tfor(int i=0;i<arrSupplyProject.length;i++){\n\t\t\tsetSupplyProject.add(arrSupplyProject[i]);\n\t\t}\n\t\t\n\t\tString strContent=\"\";\n\t\tString strMiss=\"\";\n\t\tfor(int i=0;i<arrTotalSTProject.length;i++){\n\t\t\tString[] arrItemSt=arrTotalSTProject[i].split(\"\\t\");\n\t\t\tif(arrItemSt[1].equals(\"false\")){\n\t\t\t\tif(setSupplyProject.contains(arrItemSt[0])){\n\t\t\t\t\tstrContent+=arrItemSt[0]+\"\\n\";\n\t\t\t\t} else{\n\t\t\t\t\tstrMiss+=arrItemSt[0]+\"\\n\";\n\t\t\t\t}\n\t\t\t} else{\n\t\t\t\tstrContent+=arrItemSt[0]+\"\\n\";\n\t\t\t}\n\t\t}\n\t\tFileIO.writeStringToFile(strContent, fpRequiredProject);\n\t\tFileIO.writeStringToFile(strMiss, fpStillMissProject);\n\t\t\n\t}", "title": "" }, { "docid": "564b3ff4ef4c4339dc86323bfec6245e", "score": "0.50664836", "text": "private static void runTestCWE6() {\n}", "title": "" }, { "docid": "f6c26851ad3e635eb74861a7bcad4efc", "score": "0.50627387", "text": "@Test\n\tpublic void byteFail() throws Exception {\n\t\tSpecificationMapper mapper = executeMapping(STARTFILE, FOLDER + \"byteFail.skill\");\n\t\t\n\t\tSet<String> expectedFailFields = new HashSet<>();\n\t\texpectedFailFields.add(\"a.b->a.b\");\n\t\texpectedFailFields.add(\"a.s->a.s\");\n\t\texpectedFailFields.add(\"a.bignegdouble->a.bignegdouble\");\n\t\texpectedFailFields.add(\"a.bigposdouble->a.bigposdouble\");\n\t\texpectedFailFields.add(\"a.nan->a.nan\");\n\t\texpectedFailFields.add(\"a.maxlong->a.maxlong\");\n\t\texpectedFailFields.add(\"a.minlong->a.minlong\");\n\t\t\n\t\tcompareFailingFields(mapper, expectedFailFields);\n\t}", "title": "" }, { "docid": "7e2d10c7c87d8d372758bbabe132cc98", "score": "0.5060326", "text": "protected void bedCheck() {}", "title": "" }, { "docid": "096f77195e3f578a7ce5f5139e2e5e16", "score": "0.50591695", "text": "private void redundancy(RolesBaseClass rbc) throws InterruptedException, SQLException\n {\n String rolesURL = TestMenuUI(rbc);\n String extraMenuButtonsTest = TestExtraButtons(rbc);\n String finale = \"\";\n\n if(rolesURL.length() != 0 || extraMenuButtonsTest.length() != 0)\n finale = \"Roles Report - - - - - - - - - - - - - -\\n\" + rolesURL + \"\\n\" + extraMenuButtonsTest;\n\n //if the final report has no length pass the test, if not the error message will have the report\n Assert.isTrue(finale.length() == 0, \"\\n\"+finale);\n }", "title": "" }, { "docid": "7b03195272d9d9547ac784e1b5b01238", "score": "0.5058589", "text": "public RuleAPIUtilityVerifier() {super(); }", "title": "" }, { "docid": "a22d3c4520e6f54227acfeba14433034", "score": "0.5055874", "text": "@Test(timeout = 4000)\n public void test57() throws Throwable {\n FileSystemHandling.shouldThrowIOException((EvoSuiteFile) null);\n FileSystemHandling fileSystemHandling0 = new FileSystemHandling();\n JRip jRip0 = new JRip();\n assertTrue(jRip0.getUsePruning());\n \n jRip0.setUsePruning(false);\n jRip0.getOptions();\n JRip.RipperRule jRip_RipperRule0 = jRip0.new RipperRule();\n assertFalse(jRip0.getUsePruning());\n assertEquals(2, jRip0.getOptimizations());\n }", "title": "" }, { "docid": "0309eaffa60301e96de090287e5e93cf", "score": "0.5050461", "text": "@Test\n public void testBuildsAllCombinations() {\n ReplacementImplBuilder builder1 = new ReplacementImplBuilder()\n .value(\"value\")\n .required(true)\n .isPayload(true);\n ReplacementImplBuilder builder2 = new ReplacementImplBuilder()\n .value(\"value\")\n .baseSource(ViolationTestUtils.SAMPLE_BASE_SOURCE1)\n .isPayload(false);\n RerunConfigBuilder configBuilder = new RerunConfigBuilder()\n .autoTainterClass(OgnlInjectionGenerator.class)\n .addReplacementBuilder(builder1)\n .addReplacementBuilder(builder2);\n List<TestRerunConfiguration> configs = configBuilder.build(ViolationTestUtils.sampleViolation3);\n // Check the basic information of the generated configurations\n HashSet<String> expectedUIDS = new HashSet<>();\n expectedUIDS.add(ViolationTestUtils.sampleViolation3.getUniqueID());\n for(TestRerunConfiguration config : configs) {\n assertEquals(OgnlInjectionGenerator.class, config.getAutoTainterClass());\n assertEquals(ViolationTestUtils.sampleViolation3.getTestClass(), config.getTestClass());\n assertEquals(ViolationTestUtils.sampleViolation3.getTestMethod(), config.getTestMethod());\n assertEquals(expectedUIDS, config.getViolationUIDs());\n }\n // Check the replacements of the generated configurations\n LinkedHashSet<Replacement> builder1Replacements = builder1.build(ViolationTestUtils.sampleViolation3);\n LinkedHashSet<Replacement> builder2Replacements = builder2.build(ViolationTestUtils.sampleViolation3);\n HashSet<HashSet<Replacement>> expected = new HashSet<>();\n for(Replacement r1 : builder1Replacements) {\n for(Replacement r2 : builder2Replacements) {\n HashSet<Replacement> pair = new HashSet<>();\n pair.add(r1);\n pair.add(r2);\n expected.add(pair);\n }\n }\n HashSet<HashSet<Replacement>> actual = new HashSet<>();\n for(TestRerunConfiguration config : configs) {\n actual.add(new HashSet<>(config.getReplacementsCopy()));\n }\n assertEquals(expected, actual);\n }", "title": "" }, { "docid": "ae085a038242abf3e2becf9c06052744", "score": "0.50333625", "text": "@Test\n public void testcomputeNextTaskEnd() {\n fail(\"The test case is prototype\");\n }", "title": "" }, { "docid": "4f87e7e398782431b2474525229ac84b", "score": "0.5031792", "text": "@Test\n public void noLastRun() {\n Dice dice1 = new Dice(6);\n Dice dice2 = new Dice(6);\n Coin coin = new Coin();\n Knucklebone knucklebone1 = new Knucklebone();\n Knucklebone knucklebone2 = new Knucklebone();\n Dice[] dices = {dice1, dice2};\n Coin[] coins = {coin};\n Knucklebone[] knucklebones = {knucklebone1, knucklebone2};\n Throw t = new Throw(dices, coins, knucklebones);\n int[] res = t.getLastRun();\n Assert.assertEquals(-1, res[0]);\n }", "title": "" }, { "docid": "6fe3b9baca21c723b452217e0ace011b", "score": "0.50295603", "text": "@Test\n public void testMain() {\n // Run\n try {\n BalanceSample.main(null);\n } catch (Exception e) {\n fail();\n }\n }", "title": "" }, { "docid": "298ba694be661282dfa59d2a45b0ad9f", "score": "0.5028346", "text": "@Test\n public void testErroredAndRunningTransformations() throws Exception {\n initTestEnvironment();\n\n //Get Json Content\n String json = getHealthAsString();\n\n //Check platform size\n List<String> platforms = getPlatforms(json);\n assertEquals(2, platforms.size());\n\n //Check Running transformations\n checkCsarList(getRunningTransformations(json), PLATFORM1, MOCK_CSAR_NAME);\n\n //Check Errored Transformations\n checkCsarList(getErroredTransformations(json), PLATFORM2, MOCK_CSAR_NAME);\n }", "title": "" }, { "docid": "62b166effe04c1abcc9b71395cc0404f", "score": "0.5027201", "text": "@Test(timeout = 4000)\n public void test18() throws Throwable {\n JRip jRip0 = new JRip();\n jRip0.listOptions();\n assertTrue(jRip0.getUsePruning());\n assertTrue(jRip0.getCheckErrorRate());\n assertEquals(2, jRip0.getOptimizations());\n assertEquals(2.0, jRip0.getMinNo(), 0.01);\n assertEquals(1L, jRip0.getSeed());\n assertFalse(jRip0.getDebug());\n assertEquals(3, jRip0.getFolds());\n }", "title": "" }, { "docid": "2702e98d12c31161693eb75ce4937ac6", "score": "0.5018306", "text": "public void verify() {\n lblSourcePackageFolders();\n lblSourceLevel();\n cboSourceLevel();\n btAddFolderSrc();\n btRemoveSrc();\n tabSourcePackageFolders();\n lblTestPackageFolders();\n btAddFolderTest();\n btRemoveTest();\n btMoveUpSrc();\n btMoveDownSrc();\n btMoveDownTest();\n btMoveUpTest();\n }", "title": "" }, { "docid": "a21af82753df22559fb806872adc9c7b", "score": "0.5011795", "text": "@Test(timeout = 4000)\n public void test25() throws Throwable {\n boolean boolean0 = FileSystemHandling.appendLineToFile((EvoSuiteFile) null, \"getValidationThreshold\");\n assertFalse(boolean0);\n \n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n assertEquals(\"The character set to use when reading text files (eg UTF-8) - leave blank to use the default character set.\", textDirectoryLoader0.charSetTipText());\n assertEquals(\"Whether to print additional debug information to the console.\", textDirectoryLoader0.debugTipText());\n assertEquals(\"\", textDirectoryLoader0.getCharSet());\n assertEquals(\"Directories\", textDirectoryLoader0.getFileDescription());\n assertFalse(textDirectoryLoader0.getDebug());\n assertEquals(\"Loads all text files in a directory and uses the subdirectory names as class labels. The content of the text files will be stored in a String attribute, the filename can be stored as well.\", textDirectoryLoader0.globalInfo());\n assertEquals(\"Whether to store the filename in an additional attribute.\", textDirectoryLoader0.outputFilenameTipText());\n assertFalse(textDirectoryLoader0.getOutputFilename());\n assertNotNull(textDirectoryLoader0);\n \n Instances instances0 = textDirectoryLoader0.getStructure();\n assertEquals(\"The character set to use when reading text files (eg UTF-8) - leave blank to use the default character set.\", textDirectoryLoader0.charSetTipText());\n assertEquals(\"Whether to print additional debug information to the console.\", textDirectoryLoader0.debugTipText());\n assertEquals(\"\", textDirectoryLoader0.getCharSet());\n assertEquals(\"Directories\", textDirectoryLoader0.getFileDescription());\n assertFalse(textDirectoryLoader0.getDebug());\n assertEquals(\"Loads all text files in a directory and uses the subdirectory names as class labels. The content of the text files will be stored in a String attribute, the filename can be stored as well.\", textDirectoryLoader0.globalInfo());\n assertEquals(\"Whether to store the filename in an additional attribute.\", textDirectoryLoader0.outputFilenameTipText());\n assertFalse(textDirectoryLoader0.getOutputFilename());\n assertEquals(\"_home_ubuntu_evosuite_readability_gen_projects_107_weka\", instances0.relationName());\n assertEquals(1, instances0.classIndex());\n assertEquals(0, instances0.numClasses());\n assertEquals(0, instances0.numInstances());\n assertEquals(0.0, instances0.sumOfWeights(), 0.01);\n assertEquals(0, instances0.size());\n assertEquals(2, instances0.numAttributes());\n assertTrue(instances0.checkForStringAttributes());\n assertNotNull(instances0);\n \n Instances instances1 = new Instances(instances0);\n assertEquals(\"The character set to use when reading text files (eg UTF-8) - leave blank to use the default character set.\", textDirectoryLoader0.charSetTipText());\n assertEquals(\"Whether to print additional debug information to the console.\", textDirectoryLoader0.debugTipText());\n assertEquals(\"\", textDirectoryLoader0.getCharSet());\n assertEquals(\"Directories\", textDirectoryLoader0.getFileDescription());\n assertFalse(textDirectoryLoader0.getDebug());\n assertEquals(\"Loads all text files in a directory and uses the subdirectory names as class labels. The content of the text files will be stored in a String attribute, the filename can be stored as well.\", textDirectoryLoader0.globalInfo());\n assertEquals(\"Whether to store the filename in an additional attribute.\", textDirectoryLoader0.outputFilenameTipText());\n assertFalse(textDirectoryLoader0.getOutputFilename());\n assertEquals(\"_home_ubuntu_evosuite_readability_gen_projects_107_weka\", instances0.relationName());\n assertEquals(1, instances0.classIndex());\n assertEquals(0, instances0.numClasses());\n assertEquals(0, instances0.numInstances());\n assertEquals(0.0, instances0.sumOfWeights(), 0.01);\n assertEquals(0, instances0.size());\n assertEquals(2, instances0.numAttributes());\n assertTrue(instances0.checkForStringAttributes());\n assertEquals(1, instances1.classIndex());\n assertTrue(instances1.checkForStringAttributes());\n assertEquals(0, instances1.numClasses());\n assertEquals(2, instances1.numAttributes());\n assertEquals(0, instances1.numInstances());\n assertEquals(\"_home_ubuntu_evosuite_readability_gen_projects_107_weka\", instances1.relationName());\n assertEquals(0.0, instances1.sumOfWeights(), 0.01);\n assertEquals(0, instances1.size());\n assertTrue(instances1.equals((Object)instances0));\n assertNotNull(instances1);\n \n Evaluation evaluation0 = new Evaluation(instances1);\n assertEquals(\"The character set to use when reading text files (eg UTF-8) - leave blank to use the default character set.\", textDirectoryLoader0.charSetTipText());\n assertEquals(\"Whether to print additional debug information to the console.\", textDirectoryLoader0.debugTipText());\n assertEquals(\"\", textDirectoryLoader0.getCharSet());\n assertEquals(\"Directories\", textDirectoryLoader0.getFileDescription());\n assertFalse(textDirectoryLoader0.getDebug());\n assertEquals(\"Loads all text files in a directory and uses the subdirectory names as class labels. The content of the text files will be stored in a String attribute, the filename can be stored as well.\", textDirectoryLoader0.globalInfo());\n assertEquals(\"Whether to store the filename in an additional attribute.\", textDirectoryLoader0.outputFilenameTipText());\n assertFalse(textDirectoryLoader0.getOutputFilename());\n assertEquals(\"_home_ubuntu_evosuite_readability_gen_projects_107_weka\", instances0.relationName());\n assertEquals(1, instances0.classIndex());\n assertEquals(0, instances0.numClasses());\n assertEquals(0, instances0.numInstances());\n assertEquals(0.0, instances0.sumOfWeights(), 0.01);\n assertEquals(0, instances0.size());\n assertEquals(2, instances0.numAttributes());\n assertTrue(instances0.checkForStringAttributes());\n assertEquals(1, instances1.classIndex());\n assertTrue(instances1.checkForStringAttributes());\n assertEquals(0, instances1.numClasses());\n assertEquals(2, instances1.numAttributes());\n assertEquals(0, instances1.numInstances());\n assertEquals(\"_home_ubuntu_evosuite_readability_gen_projects_107_weka\", instances1.relationName());\n assertEquals(0.0, instances1.sumOfWeights(), 0.01);\n assertEquals(0, instances1.size());\n assertEquals(Double.NaN, evaluation0.weightedFalsePositiveRate(), 0.01);\n assertEquals(Double.NaN, evaluation0.pctIncorrect(), 0.01);\n assertEquals(0.0, evaluation0.numInstances(), 0.01);\n assertEquals(0.0, evaluation0.SFSchemeEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation0.avgCost(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedRecall(), 0.01);\n assertEquals(1.0, evaluation0.kappa(), 0.01);\n assertEquals(0.0, evaluation0.incorrect(), 0.01);\n assertEquals(Double.NaN, evaluation0.rootMeanSquaredError(), 0.01);\n assertEquals(0.0, evaluation0.unclassified(), 0.01);\n assertEquals(Double.NaN, evaluation0.pctUnclassified(), 0.01);\n assertEquals(Double.NaN, evaluation0.sizeOfPredictedRegions(), 0.01);\n assertEquals(Double.NaN, evaluation0.unweightedMicroFmeasure(), 0.01);\n assertEquals(Double.NaN, evaluation0.rootRelativeSquaredError(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedTruePositiveRate(), 0.01);\n assertEquals(Double.NaN, evaluation0.SFMeanSchemeEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation0.coverageOfTestCasesByPredictedRegions(), 0.01);\n assertEquals(Double.NaN, evaluation0.pctCorrect(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedFMeasure(), 0.01);\n assertEquals(0.0, evaluation0.correct(), 0.01);\n assertFalse(evaluation0.getDiscardPredictions());\n assertEquals(Double.NaN, evaluation0.weightedTrueNegativeRate(), 0.01);\n assertEquals(Double.NaN, evaluation0.rootMeanPriorSquaredError(), 0.01);\n assertEquals(Double.NaN, evaluation0.meanPriorAbsoluteError(), 0.01);\n assertEquals(Double.NaN, evaluation0.SFMeanPriorEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation0.relativeAbsoluteError(), 0.01);\n assertEquals(Double.NaN, evaluation0.SFMeanEntropyGain(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedFalseNegativeRate(), 0.01);\n assertEquals(Double.NaN, evaluation0.meanAbsoluteError(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedPrecision(), 0.01);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n assertEquals(Double.NaN, evaluation0.errorRate(), 0.01);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n assertEquals(0.0, evaluation0.totalCost(), 0.01);\n assertTrue(instances0.equals((Object)instances1));\n assertTrue(instances1.equals((Object)instances0));\n assertNotNull(evaluation0);\n \n Instances instances2 = textDirectoryLoader0.getStructure();\n assertEquals(\"The character set to use when reading text files (eg UTF-8) - leave blank to use the default character set.\", textDirectoryLoader0.charSetTipText());\n assertEquals(\"Whether to print additional debug information to the console.\", textDirectoryLoader0.debugTipText());\n assertEquals(\"\", textDirectoryLoader0.getCharSet());\n assertEquals(\"Directories\", textDirectoryLoader0.getFileDescription());\n assertFalse(textDirectoryLoader0.getDebug());\n assertEquals(\"Loads all text files in a directory and uses the subdirectory names as class labels. The content of the text files will be stored in a String attribute, the filename can be stored as well.\", textDirectoryLoader0.globalInfo());\n assertEquals(\"Whether to store the filename in an additional attribute.\", textDirectoryLoader0.outputFilenameTipText());\n assertFalse(textDirectoryLoader0.getOutputFilename());\n assertTrue(instances2.checkForStringAttributes());\n assertEquals(0.0, instances2.sumOfWeights(), 0.01);\n assertEquals(0, instances2.size());\n assertEquals(2, instances2.numAttributes());\n assertEquals(0, instances2.numClasses());\n assertEquals(1, instances2.classIndex());\n assertEquals(\"_home_ubuntu_evosuite_readability_gen_projects_107_weka\", instances2.relationName());\n assertEquals(0, instances2.numInstances());\n assertTrue(instances2.equals((Object)instances1));\n assertNotSame(instances2, instances1);\n assertSame(instances2, instances0);\n assertNotNull(instances2);\n \n String string0 = evaluation0.toMatrixString(\".bsi\");\n assertEquals(\"The character set to use when reading text files (eg UTF-8) - leave blank to use the default character set.\", textDirectoryLoader0.charSetTipText());\n assertEquals(\"Whether to print additional debug information to the console.\", textDirectoryLoader0.debugTipText());\n assertEquals(\"\", textDirectoryLoader0.getCharSet());\n assertEquals(\"Directories\", textDirectoryLoader0.getFileDescription());\n assertFalse(textDirectoryLoader0.getDebug());\n assertEquals(\"Loads all text files in a directory and uses the subdirectory names as class labels. The content of the text files will be stored in a String attribute, the filename can be stored as well.\", textDirectoryLoader0.globalInfo());\n assertEquals(\"Whether to store the filename in an additional attribute.\", textDirectoryLoader0.outputFilenameTipText());\n assertFalse(textDirectoryLoader0.getOutputFilename());\n assertEquals(\"_home_ubuntu_evosuite_readability_gen_projects_107_weka\", instances0.relationName());\n assertEquals(1, instances0.classIndex());\n assertEquals(0, instances0.numClasses());\n assertEquals(0, instances0.numInstances());\n assertEquals(0.0, instances0.sumOfWeights(), 0.01);\n assertEquals(0, instances0.size());\n assertEquals(2, instances0.numAttributes());\n assertTrue(instances0.checkForStringAttributes());\n assertEquals(1, instances1.classIndex());\n assertTrue(instances1.checkForStringAttributes());\n assertEquals(0, instances1.numClasses());\n assertEquals(2, instances1.numAttributes());\n assertEquals(0, instances1.numInstances());\n assertEquals(\"_home_ubuntu_evosuite_readability_gen_projects_107_weka\", instances1.relationName());\n assertEquals(0.0, instances1.sumOfWeights(), 0.01);\n assertEquals(0, instances1.size());\n assertEquals(Double.NaN, evaluation0.weightedFalsePositiveRate(), 0.01);\n assertEquals(Double.NaN, evaluation0.pctIncorrect(), 0.01);\n assertEquals(0.0, evaluation0.numInstances(), 0.01);\n assertEquals(0.0, evaluation0.SFSchemeEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation0.avgCost(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedRecall(), 0.01);\n assertEquals(1.0, evaluation0.kappa(), 0.01);\n assertEquals(0.0, evaluation0.incorrect(), 0.01);\n assertEquals(Double.NaN, evaluation0.rootMeanSquaredError(), 0.01);\n assertEquals(0.0, evaluation0.unclassified(), 0.01);\n assertEquals(Double.NaN, evaluation0.pctUnclassified(), 0.01);\n assertEquals(Double.NaN, evaluation0.sizeOfPredictedRegions(), 0.01);\n assertEquals(Double.NaN, evaluation0.unweightedMicroFmeasure(), 0.01);\n assertEquals(Double.NaN, evaluation0.rootRelativeSquaredError(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedTruePositiveRate(), 0.01);\n assertEquals(Double.NaN, evaluation0.SFMeanSchemeEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation0.coverageOfTestCasesByPredictedRegions(), 0.01);\n assertEquals(Double.NaN, evaluation0.pctCorrect(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedFMeasure(), 0.01);\n assertEquals(0.0, evaluation0.correct(), 0.01);\n assertFalse(evaluation0.getDiscardPredictions());\n assertEquals(Double.NaN, evaluation0.weightedTrueNegativeRate(), 0.01);\n assertEquals(Double.NaN, evaluation0.rootMeanPriorSquaredError(), 0.01);\n assertEquals(Double.NaN, evaluation0.meanPriorAbsoluteError(), 0.01);\n assertEquals(Double.NaN, evaluation0.SFMeanPriorEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation0.relativeAbsoluteError(), 0.01);\n assertEquals(Double.NaN, evaluation0.SFMeanEntropyGain(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedFalseNegativeRate(), 0.01);\n assertEquals(Double.NaN, evaluation0.meanAbsoluteError(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedPrecision(), 0.01);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n assertEquals(Double.NaN, evaluation0.errorRate(), 0.01);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n assertEquals(0.0, evaluation0.totalCost(), 0.01);\n assertTrue(instances0.equals((Object)instances1));\n assertTrue(instances1.equals((Object)instances2));\n assertTrue(instances1.equals((Object)instances0));\n assertSame(instances0, instances2);\n assertNotSame(instances0, instances1);\n assertNotSame(instances1, instances2);\n assertNotSame(instances1, instances0);\n assertNotNull(string0);\n assertEquals(\".bsi\\n <-- classified as\\n\", string0);\n \n double double0 = evaluation0.unweightedMacroFmeasure();\n assertEquals(\"The character set to use when reading text files (eg UTF-8) - leave blank to use the default character set.\", textDirectoryLoader0.charSetTipText());\n assertEquals(\"Whether to print additional debug information to the console.\", textDirectoryLoader0.debugTipText());\n assertEquals(\"\", textDirectoryLoader0.getCharSet());\n assertEquals(\"Directories\", textDirectoryLoader0.getFileDescription());\n assertFalse(textDirectoryLoader0.getDebug());\n assertEquals(\"Loads all text files in a directory and uses the subdirectory names as class labels. The content of the text files will be stored in a String attribute, the filename can be stored as well.\", textDirectoryLoader0.globalInfo());\n assertEquals(\"Whether to store the filename in an additional attribute.\", textDirectoryLoader0.outputFilenameTipText());\n assertFalse(textDirectoryLoader0.getOutputFilename());\n assertEquals(\"_home_ubuntu_evosuite_readability_gen_projects_107_weka\", instances0.relationName());\n assertEquals(1, instances0.classIndex());\n assertEquals(0, instances0.numClasses());\n assertEquals(0, instances0.numInstances());\n assertEquals(0.0, instances0.sumOfWeights(), 0.01);\n assertEquals(0, instances0.size());\n assertEquals(2, instances0.numAttributes());\n assertTrue(instances0.checkForStringAttributes());\n assertEquals(1, instances1.classIndex());\n assertTrue(instances1.checkForStringAttributes());\n assertEquals(0, instances1.numClasses());\n assertEquals(2, instances1.numAttributes());\n assertEquals(0, instances1.numInstances());\n assertEquals(\"_home_ubuntu_evosuite_readability_gen_projects_107_weka\", instances1.relationName());\n assertEquals(0.0, instances1.sumOfWeights(), 0.01);\n assertEquals(0, instances1.size());\n assertEquals(Double.NaN, evaluation0.weightedFalsePositiveRate(), 0.01);\n assertEquals(Double.NaN, evaluation0.pctIncorrect(), 0.01);\n assertEquals(0.0, evaluation0.numInstances(), 0.01);\n assertEquals(0.0, evaluation0.SFSchemeEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation0.avgCost(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedRecall(), 0.01);\n assertEquals(1.0, evaluation0.kappa(), 0.01);\n assertEquals(0.0, evaluation0.incorrect(), 0.01);\n assertEquals(Double.NaN, evaluation0.rootMeanSquaredError(), 0.01);\n assertEquals(0.0, evaluation0.unclassified(), 0.01);\n assertEquals(Double.NaN, evaluation0.pctUnclassified(), 0.01);\n assertEquals(Double.NaN, evaluation0.sizeOfPredictedRegions(), 0.01);\n assertEquals(Double.NaN, evaluation0.unweightedMicroFmeasure(), 0.01);\n assertEquals(Double.NaN, evaluation0.rootRelativeSquaredError(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedTruePositiveRate(), 0.01);\n assertEquals(Double.NaN, evaluation0.SFMeanSchemeEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation0.coverageOfTestCasesByPredictedRegions(), 0.01);\n assertEquals(Double.NaN, evaluation0.pctCorrect(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedFMeasure(), 0.01);\n assertEquals(0.0, evaluation0.correct(), 0.01);\n assertFalse(evaluation0.getDiscardPredictions());\n assertEquals(Double.NaN, evaluation0.weightedTrueNegativeRate(), 0.01);\n assertEquals(Double.NaN, evaluation0.rootMeanPriorSquaredError(), 0.01);\n assertEquals(Double.NaN, evaluation0.meanPriorAbsoluteError(), 0.01);\n assertEquals(Double.NaN, evaluation0.SFMeanPriorEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation0.relativeAbsoluteError(), 0.01);\n assertEquals(Double.NaN, evaluation0.SFMeanEntropyGain(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedFalseNegativeRate(), 0.01);\n assertEquals(Double.NaN, evaluation0.meanAbsoluteError(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedPrecision(), 0.01);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n assertEquals(Double.NaN, evaluation0.errorRate(), 0.01);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n assertEquals(0.0, evaluation0.totalCost(), 0.01);\n assertTrue(instances0.equals((Object)instances1));\n assertTrue(instances1.equals((Object)instances2));\n assertTrue(instances1.equals((Object)instances0));\n assertSame(instances0, instances2);\n assertNotSame(instances0, instances1);\n assertNotSame(instances1, instances2);\n assertNotSame(instances1, instances0);\n assertEquals(Double.NaN, double0, 0.01);\n \n instances1.delete();\n assertEquals(\"The character set to use when reading text files (eg UTF-8) - leave blank to use the default character set.\", textDirectoryLoader0.charSetTipText());\n assertEquals(\"Whether to print additional debug information to the console.\", textDirectoryLoader0.debugTipText());\n assertEquals(\"\", textDirectoryLoader0.getCharSet());\n assertEquals(\"Directories\", textDirectoryLoader0.getFileDescription());\n assertFalse(textDirectoryLoader0.getDebug());\n assertEquals(\"Loads all text files in a directory and uses the subdirectory names as class labels. The content of the text files will be stored in a String attribute, the filename can be stored as well.\", textDirectoryLoader0.globalInfo());\n assertEquals(\"Whether to store the filename in an additional attribute.\", textDirectoryLoader0.outputFilenameTipText());\n assertFalse(textDirectoryLoader0.getOutputFilename());\n assertEquals(\"_home_ubuntu_evosuite_readability_gen_projects_107_weka\", instances0.relationName());\n assertEquals(1, instances0.classIndex());\n assertEquals(0, instances0.numClasses());\n assertEquals(0, instances0.numInstances());\n assertEquals(0.0, instances0.sumOfWeights(), 0.01);\n assertEquals(0, instances0.size());\n assertEquals(2, instances0.numAttributes());\n assertTrue(instances0.checkForStringAttributes());\n assertEquals(1, instances1.classIndex());\n assertTrue(instances1.checkForStringAttributes());\n assertEquals(0, instances1.numClasses());\n assertEquals(2, instances1.numAttributes());\n assertEquals(0, instances1.numInstances());\n assertEquals(\"_home_ubuntu_evosuite_readability_gen_projects_107_weka\", instances1.relationName());\n assertEquals(0.0, instances1.sumOfWeights(), 0.01);\n assertEquals(0, instances1.size());\n assertTrue(instances0.equals((Object)instances1));\n assertTrue(instances1.equals((Object)instances2));\n assertTrue(instances1.equals((Object)instances0));\n assertSame(instances0, instances2);\n assertNotSame(instances0, instances1);\n assertNotSame(instances1, instances2);\n assertNotSame(instances1, instances0);\n \n Instances instances3 = textDirectoryLoader0.getDataSet();\n assertEquals(\"The character set to use when reading text files (eg UTF-8) - leave blank to use the default character set.\", textDirectoryLoader0.charSetTipText());\n assertEquals(\"Whether to print additional debug information to the console.\", textDirectoryLoader0.debugTipText());\n assertEquals(\"\", textDirectoryLoader0.getCharSet());\n assertEquals(\"Directories\", textDirectoryLoader0.getFileDescription());\n assertFalse(textDirectoryLoader0.getDebug());\n assertEquals(\"Loads all text files in a directory and uses the subdirectory names as class labels. The content of the text files will be stored in a String attribute, the filename can be stored as well.\", textDirectoryLoader0.globalInfo());\n assertEquals(\"Whether to store the filename in an additional attribute.\", textDirectoryLoader0.outputFilenameTipText());\n assertFalse(textDirectoryLoader0.getOutputFilename());\n assertEquals(0, instances3.numInstances());\n assertEquals(2, instances3.numAttributes());\n assertTrue(instances3.checkForStringAttributes());\n assertEquals(1, instances3.classIndex());\n assertEquals(0.0, instances3.sumOfWeights(), 0.01);\n assertEquals(0, instances3.size());\n assertEquals(0, instances3.numClasses());\n assertEquals(\"_home_ubuntu_evosuite_readability_gen_projects_107_weka\", instances3.relationName());\n assertTrue(instances3.equals((Object)instances1));\n assertNotSame(instances3, instances1);\n assertSame(instances3, instances0);\n assertSame(instances3, instances2);\n assertNotNull(instances3);\n \n PipedInputStream pipedInputStream0 = new PipedInputStream();\n assertEquals(0, pipedInputStream0.available());\n assertNotNull(pipedInputStream0);\n \n boolean boolean1 = FileSystemHandling.shouldAllThrowIOExceptions();\n assertFalse(boolean1 == boolean0);\n assertTrue(boolean1);\n \n Evaluation evaluation1 = new Evaluation(instances2);\n assertEquals(\"The character set to use when reading text files (eg UTF-8) - leave blank to use the default character set.\", textDirectoryLoader0.charSetTipText());\n assertEquals(\"Whether to print additional debug information to the console.\", textDirectoryLoader0.debugTipText());\n assertEquals(\"\", textDirectoryLoader0.getCharSet());\n assertEquals(\"Directories\", textDirectoryLoader0.getFileDescription());\n assertFalse(textDirectoryLoader0.getDebug());\n assertEquals(\"Loads all text files in a directory and uses the subdirectory names as class labels. The content of the text files will be stored in a String attribute, the filename can be stored as well.\", textDirectoryLoader0.globalInfo());\n assertEquals(\"Whether to store the filename in an additional attribute.\", textDirectoryLoader0.outputFilenameTipText());\n assertFalse(textDirectoryLoader0.getOutputFilename());\n assertTrue(instances2.checkForStringAttributes());\n assertEquals(0.0, instances2.sumOfWeights(), 0.01);\n assertEquals(0, instances2.size());\n assertEquals(2, instances2.numAttributes());\n assertEquals(0, instances2.numClasses());\n assertEquals(1, instances2.classIndex());\n assertEquals(\"_home_ubuntu_evosuite_readability_gen_projects_107_weka\", instances2.relationName());\n assertEquals(0, instances2.numInstances());\n assertEquals(Double.NaN, evaluation1.weightedFalsePositiveRate(), 0.01);\n assertEquals(0.0, evaluation1.SFSchemeEntropy(), 0.01);\n assertEquals(0.0, evaluation1.numInstances(), 0.01);\n assertEquals(Double.NaN, evaluation1.pctIncorrect(), 0.01);\n assertEquals(Double.NaN, evaluation1.meanAbsoluteError(), 0.01);\n assertEquals(Double.NaN, evaluation1.SFMeanSchemeEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation1.errorRate(), 0.01);\n assertEquals(Double.NaN, evaluation1.weightedTruePositiveRate(), 0.01);\n assertEquals(Double.NaN, evaluation1.sizeOfPredictedRegions(), 0.01);\n assertEquals(Double.NaN, evaluation1.weightedPrecision(), 0.01);\n assertEquals(0.0, evaluation1.unclassified(), 0.01);\n assertEquals(0.0, evaluation1.totalCost(), 0.01);\n assertEquals(Double.NaN, evaluation1.weightedFalseNegativeRate(), 0.01);\n assertFalse(evaluation1.getDiscardPredictions());\n assertEquals(Double.NaN, evaluation1.pctUnclassified(), 0.01);\n assertEquals(0.0, evaluation1.correct(), 0.01);\n assertEquals(Double.NaN, evaluation1.rootMeanPriorSquaredError(), 0.01);\n assertEquals(Double.NaN, evaluation1.weightedRecall(), 0.01);\n assertEquals(Double.NaN, evaluation1.relativeAbsoluteError(), 0.01);\n assertEquals(Double.NaN, evaluation1.rootMeanSquaredError(), 0.01);\n assertEquals(Double.NaN, evaluation1.weightedFMeasure(), 0.01);\n assertEquals(Double.NaN, evaluation1.coverageOfTestCasesByPredictedRegions(), 0.01);\n assertEquals(Double.NaN, evaluation1.pctCorrect(), 0.01);\n assertEquals(0.0, evaluation1.SFEntropyGain(), 0.01);\n assertEquals(Double.NaN, evaluation1.unweightedMicroFmeasure(), 0.01);\n assertEquals(0.0, evaluation1.SFPriorEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation1.rootRelativeSquaredError(), 0.01);\n assertEquals(Double.NaN, evaluation1.meanPriorAbsoluteError(), 0.01);\n assertEquals(Double.NaN, evaluation1.SFMeanEntropyGain(), 0.01);\n assertEquals(1.0, evaluation1.kappa(), 0.01);\n assertEquals(Double.NaN, evaluation1.SFMeanPriorEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation1.avgCost(), 0.01);\n assertEquals(0.0, evaluation1.incorrect(), 0.01);\n assertEquals(Double.NaN, evaluation1.weightedTrueNegativeRate(), 0.01);\n assertTrue(instances2.equals((Object)instances1));\n assertTrue(evaluation1.equals((Object)evaluation0));\n assertNotNull(evaluation1);\n \n evaluation1.addNumericTrainClass(999.09877472358, 1491.82);\n assertEquals(\"The character set to use when reading text files (eg UTF-8) - leave blank to use the default character set.\", textDirectoryLoader0.charSetTipText());\n assertEquals(\"Whether to print additional debug information to the console.\", textDirectoryLoader0.debugTipText());\n assertEquals(\"\", textDirectoryLoader0.getCharSet());\n assertEquals(\"Directories\", textDirectoryLoader0.getFileDescription());\n assertFalse(textDirectoryLoader0.getDebug());\n assertEquals(\"Loads all text files in a directory and uses the subdirectory names as class labels. The content of the text files will be stored in a String attribute, the filename can be stored as well.\", textDirectoryLoader0.globalInfo());\n assertEquals(\"Whether to store the filename in an additional attribute.\", textDirectoryLoader0.outputFilenameTipText());\n assertFalse(textDirectoryLoader0.getOutputFilename());\n assertTrue(instances2.checkForStringAttributes());\n assertEquals(0.0, instances2.sumOfWeights(), 0.01);\n assertEquals(0, instances2.size());\n assertEquals(2, instances2.numAttributes());\n assertEquals(0, instances2.numClasses());\n assertEquals(1, instances2.classIndex());\n assertEquals(\"_home_ubuntu_evosuite_readability_gen_projects_107_weka\", instances2.relationName());\n assertEquals(0, instances2.numInstances());\n assertEquals(Double.NaN, evaluation1.weightedFalsePositiveRate(), 0.01);\n assertEquals(0.0, evaluation1.SFSchemeEntropy(), 0.01);\n assertEquals(0.0, evaluation1.numInstances(), 0.01);\n assertEquals(Double.NaN, evaluation1.pctIncorrect(), 0.01);\n assertEquals(Double.NaN, evaluation1.meanAbsoluteError(), 0.01);\n assertEquals(Double.NaN, evaluation1.SFMeanSchemeEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation1.errorRate(), 0.01);\n assertEquals(Double.NaN, evaluation1.weightedTruePositiveRate(), 0.01);\n assertEquals(Double.NaN, evaluation1.sizeOfPredictedRegions(), 0.01);\n assertEquals(Double.NaN, evaluation1.weightedPrecision(), 0.01);\n assertEquals(0.0, evaluation1.unclassified(), 0.01);\n assertEquals(0.0, evaluation1.totalCost(), 0.01);\n assertEquals(Double.NaN, evaluation1.weightedFalseNegativeRate(), 0.01);\n assertFalse(evaluation1.getDiscardPredictions());\n assertEquals(Double.NaN, evaluation1.pctUnclassified(), 0.01);\n assertEquals(0.0, evaluation1.correct(), 0.01);\n assertEquals(Double.NaN, evaluation1.rootMeanPriorSquaredError(), 0.01);\n assertEquals(Double.NaN, evaluation1.weightedRecall(), 0.01);\n assertEquals(Double.NaN, evaluation1.relativeAbsoluteError(), 0.01);\n assertEquals(Double.NaN, evaluation1.rootMeanSquaredError(), 0.01);\n assertEquals(Double.NaN, evaluation1.weightedFMeasure(), 0.01);\n assertEquals(Double.NaN, evaluation1.coverageOfTestCasesByPredictedRegions(), 0.01);\n assertEquals(Double.NaN, evaluation1.pctCorrect(), 0.01);\n assertEquals(0.0, evaluation1.SFEntropyGain(), 0.01);\n assertEquals(Double.NaN, evaluation1.unweightedMicroFmeasure(), 0.01);\n assertEquals(0.0, evaluation1.SFPriorEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation1.rootRelativeSquaredError(), 0.01);\n assertEquals(Double.NaN, evaluation1.meanPriorAbsoluteError(), 0.01);\n assertEquals(Double.NaN, evaluation1.SFMeanEntropyGain(), 0.01);\n assertEquals(1.0, evaluation1.kappa(), 0.01);\n assertEquals(Double.NaN, evaluation1.SFMeanPriorEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation1.avgCost(), 0.01);\n assertEquals(0.0, evaluation1.incorrect(), 0.01);\n assertEquals(Double.NaN, evaluation1.weightedTrueNegativeRate(), 0.01);\n assertTrue(instances2.equals((Object)instances1));\n assertTrue(evaluation1.equals((Object)evaluation0));\n assertSame(instances2, instances3);\n assertNotSame(instances2, instances1);\n assertSame(instances2, instances0);\n assertNotSame(evaluation1, evaluation0);\n \n String[] stringArray0 = new String[0];\n Evaluation.main(stringArray0);\n assertEquals(0, stringArray0.length);\n }", "title": "" }, { "docid": "d29c54113a53b24bf88034482f93f1cf", "score": "0.500972", "text": "@Test\n public void testBasics() {\n TestContext.testInit();\n\n // No arguments provided.\n\n try {\n DrillOnYarn.run(new String[] {});\n fail();\n } catch (SimulatedExitException e) {\n assert (e.exitCode == -1);\n assertTrue(TestContext.getOut().contains(\"Usage: \"));\n TestContext.resetOutput();\n }\n\n // Bogus command\n\n try {\n DrillOnYarn.run(new String[] { \"bogus\" });\n fail();\n } catch (SimulatedExitException e) {\n assert (e.exitCode == -1);\n assertTrue(TestContext.getOut().contains(\"Usage: \"));\n TestContext.resetOutput();\n }\n }", "title": "" }, { "docid": "9cee0def338eca5d07c306fb8eacdf16", "score": "0.5003912", "text": "@Test\n @org.jvnet.hudson.test.Issue(\"JENKINS-55998\")\n void shouldShowFileOutsideWorkspaceIfConfigured() {\n FreeStyleProject job = createFreeStyleProject();\n prepareGccLog(job);\n\n IssuesRecorder recorder = enableWarnings(job, createTool(new Gcc4(), \"**/gcc.log\"));\n String buildsFolder = job.getRootDir().getAbsolutePath();\n recorder.setSourceDirectories(Arrays.asList(new SourceCodeDirectory(buildsFolder), new SourceCodeDirectory(\"relative\")));\n\n // First build: copying the affected file is forbidden\n buildAndVerifyFilesResolving(job, ColumnLink.SHOULD_NOT_HAVE_LINK, \"0 copied\", \"1 not in workspace\", \"0 not-found\", \"0 with I/O error\");\n\n // Use source directories of old Warnings plugin configuration\n WarningsPluginConfiguration.getInstance().setSourceDirectories(\n Collections.singletonList(new SourceDirectory(buildsFolder)));\n\n // Second build: copying the affected file is permitted\n buildAndVerifyFilesResolving(job, ColumnLink.SHOULD_HAVE_LINK, \"1 copied\", \"0 not in workspace\", \"0 not-found\", \"0 with I/O error\");\n\n // Use source directories of new Prism plugin configuration\n WarningsPluginConfiguration.getInstance().setSourceDirectories(new ArrayList<>());\n\n // Third build: copying the affected file is forbidden again\n buildAndVerifyFilesResolving(job, ColumnLink.SHOULD_NOT_HAVE_LINK, \"0 copied\", \"1 not in workspace\", \"0 not-found\", \"0 with I/O error\");\n\n PrismConfiguration.getInstance().setSourceDirectories(\n Collections.singletonList(new PermittedSourceCodeDirectory(buildsFolder)));\n\n // Fourth build: copying the affected file is permitted again\n buildAndVerifyFilesResolving(job, ColumnLink.SHOULD_HAVE_LINK, \"1 copied\", \"0 not in workspace\", \"0 not-found\", \"0 with I/O error\");\n }", "title": "" }, { "docid": "b0dc91229c45c5f14065b0cd0d2f0c78", "score": "0.5003847", "text": "@Test\n\tpublic void baseXUpdateProcEverythingOk() {\n\t\tProceedings_simple_input publ = create_proc();\n\n\t\tpubl.mode = \"update\";\n\t\tpubl.myDB = myBaseX;\n\n\n\t\tSet<ConstraintViolation<Proceedings_simple_input>> constraintViolations = validator.validate( publ);\n\t\tassertEquals( 0, constraintViolations.size() );\n\t}", "title": "" }, { "docid": "b7de900a147f5bb406dabfaf63ba5e03", "score": "0.49968138", "text": "@Test\n\tpublic void testPreconditions() {\n\t\tassertFalse(counter.isEmpty() && counter.isFull());\n\t}", "title": "" }, { "docid": "f9a1e014d4698f3a0d407eaca82dcf5e", "score": "0.49955893", "text": "@Test(timeout = 4000)\n public void test59() throws Throwable {\n JRip jRip0 = new JRip();\n int int0 = 661;\n double double0 = 0.0;\n jRip0.setDebug(true);\n try { \n jRip0.rulesetForOneClass(0.0, (Instances) null, 0.2, 0.2);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"weka.classifiers.rules.RuleStats\", e);\n }\n }", "title": "" }, { "docid": "6a67ad6df0f1a7232186661974f54105", "score": "0.49915057", "text": "public boolean testPrecondition(){\n\t\treturn true;\n\t}", "title": "" }, { "docid": "0fd1b1dbdf040e3b44d1a4c5712872af", "score": "0.4987884", "text": "@Test\n @Disabled\n public void noNormaliseTest() throws Exception {\n cleanUp();\n\n // Copy clinical variant test data to tmp\n // NOTE: mvn/idea tests run created lots of problems with running all tests in this ClinicalVariantParserTest\n // in one go; summarising there's some problem with rocks db directories and the way running the tests handles\n // temporary files/directories. Best solution found was to make different copies fo the data to the tmp and run\n // each test over a separate copy of the test data. Note the 3 on /tmp/clinicalVariant3 below\n Path clinicalVariantFolder = Paths.get(getClass().getResource(\"/variant/annotation/clinicalVariant\").toURI());\n org.apache.commons.io.FileUtils.copyDirectory(clinicalVariantFolder.toFile(),\n Paths.get(\"/tmp/clinicalVariant3\").toFile());\n clinicalVariantFolder = Paths.get(\"/tmp/clinicalVariant3\");\n\n org.apache.commons.io.FileUtils.copyFile(Paths.get(getClass()\n .getResource(\"/variant/annotation/Homo_sapiens.GRCh37.75.dna.primary_assembly.chr17.fa.gz\").toURI()).toFile(),\n clinicalVariantFolder.resolve(\"Homo_sapiens.GRCh37.75.dna.primary_assembly.chr17.fa.gz\").toFile());\n org.apache.commons.io.FileUtils.copyFile(Paths.get(getClass()\n .getResource(\"/variant/annotation/Homo_sapiens.GRCh37.75.dna.primary_assembly.chr17.fa.gz.fai\").toURI()).toFile(),\n clinicalVariantFolder.resolve(\"Homo_sapiens.GRCh37.75.dna.primary_assembly.chr17.fa.gz.fai\").toFile());\n org.apache.commons.io.FileUtils.copyFile(Paths.get(getClass()\n .getResource(\"/variant/annotation/Homo_sapiens.GRCh37.75.dna.primary_assembly.chr17.fa.gz.gzi\").toURI()).toFile(),\n clinicalVariantFolder.resolve(\"Homo_sapiens.GRCh37.75.dna.primary_assembly.chr17.fa.gz.gzi\").toFile());\n\n Path genomeSequenceFilePath = clinicalVariantFolder.resolve(\"Homo_sapiens.GRCh37.75.dna.primary_assembly.chr17.fa.gz\");\n\n Path clinicalVariantChunksFolder = Paths.get(\"/tmp/clinicalVariant3/clinvar_chunks\");\n org.apache.commons.io.FileUtils.copyFile(Paths.get(getClass()\n .getResource(\"/variant/annotation/clinicalVariant/ClinVarFullRelease_2020-02.xml.gz\").toURI()).toFile(),\n clinicalVariantChunksFolder.resolve(\"ClinVarFullRelease_2020-02.xml.gz\").toFile());\n\n CellBaseSerializer serializer = new CellBaseJsonFileSerializer(Paths.get(\"/tmp/\"), EtlCommons.CLINICAL_VARIANTS_DATA, true);\n (new ClinicalVariantBuilder(clinicalVariantFolder, false, genomeSequenceFilePath, \"GRCh37\", serializer)).parse();\n\n List<Variant> parsedVariantList = loadSerializedVariants(\"/tmp/\" + EtlCommons.CLINICAL_VARIANTS_JSON_FILE);\n assertEquals(23, parsedVariantList.size());\n\n // ClinVar record for an un-normalised variant. It appears in the variant_summary.txt as 17 53\t53\tC\tCC\n // Genome sequence context for that position is TGTCCCTGCTGAA\n // ^\n // 53\n // After normalisation should be 17 51 - C\n List<Variant> variantList = getVariantByAccession(parsedVariantList, \"RCV000488336\");\n assertEquals(1, variantList.size());\n Variant variant = variantList.get(0);\n assertEquals(\"17\", variant.getChromosome());\n assertEquals(Integer.valueOf(53), variant.getStart());\n assertEquals(\"C\", variant.getReference());\n assertEquals(\"CC\", variant.getAlternate());\n\n }", "title": "" }, { "docid": "17e43ba09a92e856b46ebc3b0c277dd9", "score": "0.49849996", "text": "@Test\n public void myMainTest3() throws Exception {\n\n File inputFile1 = createInputFile1();\n\n String args[] = {\"-b\", \"make\", \"Make\", \"--\", inputFile1.getPath()};\n Main.main(args);\n String expected1 = \"Howdy Bill,\\n\" +\n \"This is a test file for the replace utility\\n\" +\n \"Let's Make sure it has at least a few lines\\n\" +\n \"so that we can create some interesting test cases...\\n\" +\n \"And let's say \\\"howdy bill\\\" again!\";\n\n String actual1 = getFileContent(inputFile1.getPath());\n assertEquals(\"These strings differ\", expected1, actual1);\n assertTrue(Files.exists(Paths.get(inputFile1.getPath() + \".bck\")));\n }", "title": "" }, { "docid": "89f0c8e8d917f18388e73eee984a8a07", "score": "0.49836338", "text": "@Test\n public void testNoFilesFail() throws Exception {\n Project projectB = r.createFreeStyleProject();\n CaptureAllEnvironmentBuilder builder = new CaptureAllEnvironmentBuilder();\n projectB.getBuildersList().add(builder);\n\n //create triggering build\n FreeStyleProject projectA = r.createFreeStyleProject();\n\n // add Trigger builder, with file parameter factory\n projectA.getBuildersList().add(createTriggerBuilder(projectB, NoFilesFoundEnum.FAIL));\n\n projectA.scheduleBuild2(0).get();\n\n // check triggered builds are correct.\n r.waitUntilNoActivity();\n List<FreeStyleBuild> builds = projectB.getBuilds();\n assertEquals(0, builds.size());\n }", "title": "" }, { "docid": "1a2fd08b7a4ff5355aa3ba5a6ef5062c", "score": "0.49779382", "text": "@Test\n void executeOnQualityServer() {\n assumeTrue(\"QA\".equals(System.getProperty(\"server.type\")), \"Checking QA server\");\n log.debug(\n \"this line and the next won't be executed since the previous condition is false\");\n fail(\"This line won`t execute\");\n }", "title": "" }, { "docid": "f366ad3bbb70a04f01909dc84b9d97c8", "score": "0.4973365", "text": "@Override\r\n public boolean isSelfChecking()\r\n {\r\n return false;\r\n }", "title": "" }, { "docid": "cba8953a4e6c9c49cacbfc82d03b4c81", "score": "0.4971391", "text": "@Test\n @Disabled\n public void parse() throws Exception {\n cleanUp();\n\n // Copy clinical variant test data to tmp\n // NOTE: mvn/idea tests run created lots of problems with running all tests in this ClinicalVariantParserTest\n // in one go; summarising there's some problem with rocks db directories and the way running the tests handles\n // temporary files/directories. Best solution found was to make different copies fo the data to the tmp and run\n // each test over a separate copy of the test data. Note the 2 on /tmp/clinicalVariant2 below\n Path clinicalVariantFolder = Paths.get(getClass().getResource(\"/variant/annotation/clinicalVariant\").toURI());\n org.apache.commons.io.FileUtils.copyDirectory(clinicalVariantFolder.toFile(),\n Paths.get(\"/tmp/clinicalVariant2\").toFile());\n clinicalVariantFolder = Paths.get(\"/tmp/clinicalVariant2\");\n\n org.apache.commons.io.FileUtils.copyFile(Paths.get(getClass()\n .getResource(\"/variant/annotation/Homo_sapiens.GRCh37.75.dna.primary_assembly.chr17.fa.gz\").toURI()).toFile(),\n clinicalVariantFolder.resolve(\"Homo_sapiens.GRCh37.75.dna.primary_assembly.chr17.fa.gz\").toFile());\n org.apache.commons.io.FileUtils.copyFile(Paths.get(getClass()\n .getResource(\"/variant/annotation/Homo_sapiens.GRCh37.75.dna.primary_assembly.chr17.fa.gz.fai\").toURI()).toFile(),\n clinicalVariantFolder.resolve(\"Homo_sapiens.GRCh37.75.dna.primary_assembly.chr17.fa.gz.fai\").toFile());\n org.apache.commons.io.FileUtils.copyFile(Paths.get(getClass()\n .getResource(\"/variant/annotation/Homo_sapiens.GRCh37.75.dna.primary_assembly.chr17.fa.gz.gzi\").toURI()).toFile(),\n clinicalVariantFolder.resolve(\"Homo_sapiens.GRCh37.75.dna.primary_assembly.chr17.fa.gz.gzi\").toFile());\n\n Path genomeSequenceFilePath = clinicalVariantFolder.resolve(\"Homo_sapiens.GRCh37.75.dna.primary_assembly.chr17.fa.gz\");\n\n Path clinicalVariantChunksFolder = Paths.get(\"/tmp/clinicalVariant2/clinvar_chunks\");\n org.apache.commons.io.FileUtils.copyFile(Paths.get(getClass()\n .getResource(\"/variant/annotation/clinicalVariant/ClinVarFullRelease_2020-02.xml.gz\").toURI()).toFile(),\n clinicalVariantChunksFolder.resolve(\"ClinVarFullRelease_2020-02.xml.gz\").toFile());\n\n CellBaseSerializer serializer = new CellBaseJsonFileSerializer(Paths.get(\"/tmp/\"), EtlCommons.CLINICAL_VARIANTS_DATA, true);\n (new ClinicalVariantBuilder(clinicalVariantFolder, true, genomeSequenceFilePath, \"GRCh37\", serializer)).parse();\n\n List<Variant> parsedVariantList = loadSerializedVariants(\"/tmp/\" + EtlCommons.CLINICAL_VARIANTS_JSON_FILE);\n assertEquals(29, parsedVariantList.size());\n\n // ClinVar variant with invalid alternate allele string (\"TTBS\") must NOT be parsed\n List<Variant> variantList = getVariantByAccession(parsedVariantList, \"RCV000820150\");\n assertEquals(0, variantList.size());\n\n // COSMIC SNV with more complicated hgvs c.431-1G>A\n variantList = getVariantByAccession(parsedVariantList, \"COSM4450061\");\n assertEquals(1, variantList.size());\n Variant variant = variantList.get(0);\n assertEquals(\"1\", variant.getChromosome());\n assertEquals(Integer.valueOf(939039), variant.getStart());\n assertEquals(\"G\", variant.getReference());\n assertEquals(\"A\", variant.getAlternate());\n\n // COSMIC insertion\n variantList = getVariantByAccession(parsedVariantList, \"COSM5381470\");\n assertEquals(1, variantList.size());\n variant = variantList.get(0);\n assertEquals(\"1\", variant.getChromosome());\n assertEquals(Integer.valueOf(69568), variant.getStart());\n assertEquals(Integer.valueOf(69567), variant.getEnd());\n assertEquals(\"\", variant.getReference());\n assertEquals(\"T\", variant.getAlternate());\n\n // ClinVar record for an insertion with emtpy reference allele (some other insertions do provide reference nts)\n // It appears in the variant_summary.txt as 3 37090475 37090476 - TT\n // No normalisation applies\n variantList = getVariantByAccession(parsedVariantList, \"RCV000221270\");\n assertEquals(1, variantList.size());\n variant = variantList.get(0);\n assertEquals(\"3\", variant.getChromosome());\n assertEquals(Integer.valueOf(37090476), variant.getStart());\n assertEquals(\"\", variant.getReference());\n assertEquals(\"TT\", variant.getAlternate());\n\n // ClinVar record for an un-normalised variant. It appears in the variant_summary.txt as 17 53\t53\tC\tCC\n // Genome sequence context for that position is TGTCCCTGCTGAA\n // ^\n // 53\n // After normalisation should be 17 51 - C\n variantList = getVariantByAccession(parsedVariantList, \"RCV000488336\");\n assertEquals(1, variantList.size());\n variant = variantList.get(0);\n assertEquals(\"17\", variant.getChromosome());\n assertEquals(Integer.valueOf(51), variant.getStart());\n assertEquals(\"\", variant.getReference());\n assertEquals(\"C\", variant.getAlternate());\n\n // Arbitrary ClinVar record\n variantList = getVariantByAccession(parsedVariantList, \"RCV000000829\");\n assertEquals(1, variantList.size());\n variant = variantList.get(0);\n assertEquals(\"5\", variant.getChromosome());\n assertEquals(Integer.valueOf(112136976), variant.getStart());\n assertEquals(\"AG\", variant.getReference());\n assertEquals(\"\", variant.getAlternate());\n\n variant = getVariantByVariant(parsedVariantList,\n new Variant(\"1\", 11169361, \"C\", \"G\"));\n assertNotNull(variant);\n EvidenceEntry checkEvidenceEntry = getEvidenceEntryBySource(variant.getAnnotation().getTraitAssociation(), DOCM);\n assertNotNull(checkEvidenceEntry);\n assertThat(checkEvidenceEntry.getGenomicFeatures().stream()\n .map(genomicFeature -> genomicFeature.getXrefs() != null ?\n genomicFeature.getXrefs().get(SYMBOL) : null).collect(Collectors.toList()),\n CoreMatchers.hasItems(\"MTOR\"));\n assertThat(checkEvidenceEntry.getGenomicFeatures().stream()\n .map(genomicFeature -> genomicFeature.getEnsemblId()).collect(Collectors.toList()),\n CoreMatchers.hasItems(\"ENST00000361445\"));\n assertEquals(1, checkEvidenceEntry.getHeritableTraits().size());\n assertEquals(\"renal carcinoma\", checkEvidenceEntry.getHeritableTraits().get(0).getTrait());\n assertEquals(ClinicalSignificance.likely_pathogenic,\n checkEvidenceEntry.getVariantClassification().getClinicalSignificance());\n assertEquals(1, variant.getAnnotation().getDrugs().size());\n assertEquals(new Drug(\"rapamycin\", \"activation\", \"gain-of-function\",\n null, \"preclinical\", \"emerging\", Collections.singletonList(\"PMID:24631838\")),\n variant.getAnnotation().getDrugs().get(0));\n\n variant = getVariantByVariant(parsedVariantList,\n new Variant(\"1\", 11169375, \"A\", \"C\"));\n assertNotNull(variant);\n assertEquals(4, variant.getAnnotation().getTraitAssociation().size());\n assertThat(getAllGeneSymbols(variant.getAnnotation().getTraitAssociation(), DOCM),\n CoreMatchers.hasItems(\"MTOR\"));\n assertThat(getAllEnsemblIds(variant.getAnnotation().getTraitAssociation(), DOCM),\n CoreMatchers.hasItems(\"ENST00000361445\"));\n assertThat(getAllTraitNames(variant.getAnnotation().getTraitAssociation(), DOCM),\n CoreMatchers.hasItems(\"breast cancer\", \"uterine corpus endometrial carcinoma\",\n \"gastric adenocarcinoma\", \"renal clear cell carcinoma\"));\n\n variant = getVariantByVariant(parsedVariantList,\n new Variant(\"1\", 11169377, \"T\", \"A\"));\n assertNotNull(variant);\n assertEquals(4, variant.getAnnotation().getTraitAssociation().size());\n assertThat(getAllGeneSymbols(variant.getAnnotation().getTraitAssociation(), DOCM),\n CoreMatchers.hasItems(\"MTOR\"));\n assertThat(getAllEnsemblIds(variant.getAnnotation().getTraitAssociation(), DOCM),\n CoreMatchers.hasItems(\"ENST00000361445\"));\n assertThat(getAllTraitNames(variant.getAnnotation().getTraitAssociation(), DOCM),\n CoreMatchers.hasItems(\"gastric adenocarcinoma\", \"renal clear cell carcinoma\", \"breast cancer\",\n \"uterine corpus endometrial carcinoma\"));\n\n // ClinVar record with three variants in an Haplotype\n variantList = getVariantByAccession(parsedVariantList, \"RCV000000591\");\n assertEquals(3, variantList.size());\n // First variant in the haplotype\n variant = variantList.get(0);\n assertEquals(\"18\", variant.getChromosome());\n assertEquals(Integer.valueOf(55217985), variant.getStart());\n assertEquals(\"A\", variant.getReference());\n assertEquals(\"C\", variant.getAlternate());\n // Two evidenceEntry for the two variation records, another for the RCV\n // and one for SCV\n assertEquals(4, variant.getAnnotation().getTraitAssociation().size());\n // Check proper variation record is there\n // This is the variation record that corresponds to the variant alone: there cannot be GenotypeSet property\n EvidenceEntry evidenceEntry = getEvidenceEntryByAccession(variant, \"242756\");\n assertNotNull(evidenceEntry);\n Property property = getProperty(evidenceEntry.getAdditionalProperties(), \"GenotypeSet\");\n assertNull(property);\n // This is the variation record that corresponds to the compound record: the mate variant string must be within\n // the GenotypeSet property\n evidenceEntry = getEvidenceEntryByAccession(variant, \"561\");\n assertNotNull(evidenceEntry);\n // Check it's properly flagged as part of the genotype set\n property = getProperty(evidenceEntry.getAdditionalProperties(), \"GenotypeSet\");\n assertNotNull(property.getValue());\n assertEquals(\"18:55217992:A:T,18:55217991:G:A\", property.getValue());\n evidenceEntry = getEvidenceEntryByAccession(variant, \"RCV000000591\");\n assertNotNull(evidenceEntry);\n // Check affected feature (gene symbol) properly parsed\n assertEquals(1, evidenceEntry.getGenomicFeatures().size());\n assertEquals(\"FECH\", evidenceEntry.getGenomicFeatures().get(0).getXrefs().get(\"symbol\"));\n // Check it's properly flagged as part of the genotype set\n property = getProperty(evidenceEntry.getAdditionalProperties(), \"GenotypeSet\");\n assertNotNull(property.getValue());\n assertEquals(\"18:55217992:A:T,18:55217991:G:A\", property.getValue());\n\n // SCV\n evidenceEntry = getEvidenceEntryByAccession(variant, \"SCV000020740\");\n assertNotNull(evidenceEntry);\n assertEquals(1, evidenceEntry.getGenomicFeatures().size());\n assertEquals(\"FECH\", evidenceEntry.getGenomicFeatures().get(0).getXrefs().get(\"symbol\"));\n assertNotNull(evidenceEntry.getVariantClassification());\n assertEquals(ClinicalSignificance.pathogenic,\n evidenceEntry.getVariantClassification().getClinicalSignificance());\n\n // Second variant in the haplotype\n variant = variantList.get(1);\n assertEquals(\"18\", variant.getChromosome());\n assertEquals(Integer.valueOf(55217991), variant.getStart());\n assertEquals(\"G\", variant.getReference());\n assertEquals(\"A\", variant.getAlternate());\n // Two evidenceEntry for the two variation records, another for the RCV\n assertEquals(4, variant.getAnnotation().getTraitAssociation().size());\n // Check proper variation record is there\n // This is the variation record that corresponds to the variant alone: there cannot be GenotypeSet property\n evidenceEntry = getEvidenceEntryByAccession(variant, \"242755\");\n assertNotNull(evidenceEntry);\n property = getProperty(evidenceEntry.getAdditionalProperties(), \"GenotypeSet\");\n assertNull(property);\n // This is the variation record that corresponds to the compound record: the mate variant string must be within\n // the GenotypeSet property\n evidenceEntry = getEvidenceEntryByAccession(variant, \"561\");\n assertNotNull(evidenceEntry);\n // Check it's properly flagged as part of the genotype set\n property = getProperty(evidenceEntry.getAdditionalProperties(), \"GenotypeSet\");\n assertNotNull(property.getValue());\n assertEquals(\"18:55217992:A:T,18:55217985:A:C\", property.getValue());\n evidenceEntry = getEvidenceEntryByAccession(variant, \"RCV000000591\");\n assertNotNull(evidenceEntry);\n // Check affected feature (gene symbol) properly parsed\n assertEquals(1, evidenceEntry.getGenomicFeatures().size());\n assertEquals(\"FECH\", evidenceEntry.getGenomicFeatures().get(0).getXrefs().get(\"symbol\"));\n // Check it's properly flagged as part of the genotype set\n property = getProperty(evidenceEntry.getAdditionalProperties(), \"GenotypeSet\");\n assertNotNull(property.getValue());\n assertEquals(\"18:55217992:A:T,18:55217985:A:C\", property.getValue());\n // Third variant in the haplotype\n variant = variantList.get(2);\n assertEquals(\"18\", variant.getChromosome());\n assertEquals(Integer.valueOf(55217992), variant.getStart());\n assertEquals(\"A\", variant.getReference());\n assertEquals(\"T\", variant.getAlternate());\n // Two evidenceEntry for the two variation records, another for the RCV\n assertEquals(4, variant.getAnnotation().getTraitAssociation().size());\n // Check variation records are there\n // This is the variation record that corresponds to the variant alone: there cannot be GenotypeSet property\n evidenceEntry = getEvidenceEntryByAccession(variant, \"242821\");\n assertNotNull(evidenceEntry);\n // This is the variation record that corresponds to the compound record: the mate variant string must be within\n // the GenotypeSet property\n property = getProperty(evidenceEntry.getAdditionalProperties(), \"GenotypeSet\");\n assertNull(property);\n evidenceEntry = getEvidenceEntryByAccession(variant, \"561\");\n assertNotNull(evidenceEntry);\n // Check it's properly flagged as part of the genotype set\n property = getProperty(evidenceEntry.getAdditionalProperties(), \"GenotypeSet\");\n assertNotNull(property.getValue());\n assertEquals(\"18:55217985:A:C,18:55217991:G:A\", property.getValue());\n evidenceEntry = getEvidenceEntryByAccession(variant, \"RCV000000591\");\n assertNotNull(evidenceEntry);\n // Check affected feature (gene symbol) properly parsed\n assertEquals(1, evidenceEntry.getGenomicFeatures().size());\n assertEquals(\"FECH\", evidenceEntry.getGenomicFeatures().get(0).getXrefs().get(\"symbol\"));\n // Check it's properly flagged as part of the genotype set\n property = getProperty(evidenceEntry.getAdditionalProperties(), \"GenotypeSet\");\n assertNotNull(property.getValue());\n assertEquals(\"18:55217985:A:C,18:55217991:G:A\", property.getValue());\n\n\n // ClinVar record provides GenotypeSet\n // in this case rather than MeasureSet\n variantList = getVariantByAccession(parsedVariantList, \"RCV000169692\");\n assertEquals(2, variantList.size());\n // First variant in the genotype set\n variant = variantList.get(0);\n assertEquals(\"18\", variant.getChromosome());\n assertEquals(Integer.valueOf(56390278), variant.getStart());\n assertEquals(\"A\", variant.getReference());\n assertEquals(\"G\", variant.getAlternate());\n // Two evidenceEntry for the two variation records, another for the RCV\n assertEquals(4, variant.getAnnotation().getTraitAssociation().size());\n // Check variation records are there\n // This is the variation record that corresponds to the variant alone: there cannot be GenotypeSet property\n evidenceEntry = getEvidenceEntryByAccession(variant, \"242617\");\n assertNotNull(evidenceEntry);\n // This is the variation record that corresponds to the compound record: the mate variant string must be within\n // the GenotypeSet property\n property = getProperty(evidenceEntry.getAdditionalProperties(), \"GenotypeSet\");\n assertNull(property);\n evidenceEntry = getEvidenceEntryByAccession(variant, \"424712\");\n assertNotNull(evidenceEntry);\n // Check it's properly flagged as part of the genotype set\n property = getProperty(evidenceEntry.getAdditionalProperties(), \"GenotypeSet\");\n assertNotNull(property.getValue());\n assertEquals(\"18:56390321:C:-\", property.getValue());\n evidenceEntry = getEvidenceEntryByAccession(variant, \"RCV000169692\");\n assertNotNull(evidenceEntry);\n assertEquals(1, evidenceEntry.getGenomicFeatures().size());\n assertEquals(\"MALT1\", evidenceEntry.getGenomicFeatures().get(0).getXrefs().get(\"symbol\"));\n // Check it's properly flagged as part of the genotype set\n property = getProperty(evidenceEntry.getAdditionalProperties(), \"GenotypeSet\");\n assertNotNull(property.getValue());\n assertEquals(\"18:56390321:C:-\", property.getValue());\n // Second variant in the genotype set\n variant = variantList.get(1);\n assertEquals(\"18\", variant.getChromosome());\n assertEquals(Integer.valueOf(56390321), variant.getStart());\n assertEquals(\"C\", variant.getReference());\n assertEquals(\"\", variant.getAlternate());\n // Two evidenceEntry for the two variation records, another for the RCV\n assertEquals(4, variant.getAnnotation().getTraitAssociation().size());\n // Check proper variation record is there\n // This is the variation record that corresponds to the variant alone: there cannot be GenotypeSet property\n evidenceEntry = getEvidenceEntryByAccession(variant, \"242616\");\n assertNotNull(evidenceEntry);\n property = getProperty(evidenceEntry.getAdditionalProperties(), \"GenotypeSet\");\n assertNull(property);\n // This is the variation record that corresponds to the compound record: the mate variant string must be within\n // the GenotypeSet property\n evidenceEntry = getEvidenceEntryByAccession(variant, \"424712\");\n assertNotNull(evidenceEntry);\n // Check it's properly flagged as part of the genotype set\n property = getProperty(evidenceEntry.getAdditionalProperties(), \"GenotypeSet\");\n assertNotNull(property.getValue());\n assertEquals(\"18:56390278:A:G\", property.getValue());\n evidenceEntry = getEvidenceEntryByAccession(variant, \"RCV000169692\");\n assertNotNull(evidenceEntry);\n assertEquals(1, evidenceEntry.getGenomicFeatures().size());\n assertEquals(\"MALT1\", evidenceEntry.getGenomicFeatures().get(0).getXrefs().get(\"symbol\"));\n // Check it's properly flagged as part of the genotype set\n property = getProperty(evidenceEntry.getAdditionalProperties(), \"GenotypeSet\");\n assertNotNull(property.getValue());\n assertEquals(\"18:56390278:A:G\", property.getValue());\n\n variantList = getVariantByAccession(parsedVariantList, \"COSM1193237\");\n assertEquals(1, variantList.size());\n variant = variantList.get(0);\n assertThat(variant.getAnnotation().getTraitAssociation().stream()\n .map(evidenceEntryItem -> evidenceEntryItem.getId()).collect(Collectors.toList()),\n CoreMatchers.hasItems(\"RCV000148505\"));\n\n variantList = getVariantByAccession(parsedVariantList, \"RCV000148485\");\n assertEquals(1, variantList.size());\n variant = variantList.get(0);\n assertNotNull(variant);\n assertThat(variant.getAnnotation().getTraitAssociation().stream()\n .map(evidenceEntryItem -> evidenceEntryItem.getId()).collect(Collectors.toList()),\n CoreMatchers.hasItems(\"COSM5745645\"));\n // Check mode of inheritance is properly parsed\n evidenceEntry = getEvidenceEntryByAccession(variant, \"RCV000148485\");\n assertEquals(1, evidenceEntry.getHeritableTraits().size());\n assertEquals(ModeOfInheritance.monoallelic, evidenceEntry.getHeritableTraits().get(0).getInheritanceMode());\n property = getProperty(evidenceEntry.getAdditionalProperties(), \"modeOfInheritance\");\n ObjectReader reader = jsonObjectMapper.readerFor(jsonObjectMapper.getTypeFactory().constructParametrizedType(List.class, null, Map.class));\n List<Map<String, String>> traitMapList = reader.readValue(property.getValue());\n assertEquals(\"autosomal dominant inheritance\", traitMapList.get(0).get(\"modeOfInheritance\"));\n\n\n variantList = getVariantByAccession(parsedVariantList, \"COSM4059225\");\n assertEquals(1, variantList.size());\n\n variantList = getVariantByAccession(parsedVariantList, \"3259\");\n assertEquals(1, variantList.size());\n variant = variantList.get(0);\n assertEquals(Integer.valueOf(7577545), variant.getStart());\n assertEquals(\"T\", variant.getReference());\n assertEquals(\"C\", variant.getAlternate());\n assertEquals(\"PMID:0008075648\",\n variant.getAnnotation().getTraitAssociation().get(0).getBibliography().get(0));\n\n variantList = getVariantByAccession(parsedVariantList, \"5223\");\n assertEquals(1, variantList.size());\n variant = variantList.get(0);\n assertEquals(Integer.valueOf(4), variant.getStart());\n assertEquals(\"CTTCTCACCCT\", variant.getReference());\n assertEquals(\"\", variant.getAlternate());\n assertEquals(\"PMID:0008479743\",\n variant.getAnnotation().getTraitAssociation().get(0).getBibliography().get(0));\n\n variantList = getVariantByAccession(parsedVariantList, \"1590\");\n assertEquals(1, variantList.size());\n variant = variantList.get(0);\n assertEquals(Integer.valueOf(7578502), variant.getStart());\n assertEquals(\"A\", variant.getReference());\n assertEquals(\"G\", variant.getAlternate());\n assertEquals(\"PMID:0002649981\",\n variant.getAnnotation().getTraitAssociation().get(0).getBibliography().get(0));\n\n variantList = getVariantByAccession(parsedVariantList, \"2143\");\n assertEquals(1, variantList.size());\n variant = variantList.get(0);\n assertEquals(Integer.valueOf(7578406), variant.getStart());\n assertEquals(\"C\", variant.getReference());\n assertEquals(\"T\", variant.getAlternate());\n assertEquals(\"PMID:0002649981\",\n variant.getAnnotation().getTraitAssociation().get(0).getBibliography().get(0));\n\n variantList = getVariantByAccession(parsedVariantList, \"1407\");\n assertEquals(1, variantList.size());\n variant = variantList.get(0);\n assertEquals(Integer.valueOf(7578536), variant.getStart());\n assertEquals(\"T\", variant.getReference());\n assertEquals(\"G\", variant.getAlternate());\n assertEquals(\"PMID:0001694291\",\n variant.getAnnotation().getTraitAssociation().get(0).getBibliography().get(0));\n\n }", "title": "" }, { "docid": "4614b5a0102c2ac4976d275e0b6ccce5", "score": "0.497005", "text": "private void performStructureCheck(String projectName, boolean isValid) throws IOException {\r\n performCheck(\"mismatchExample/\", projectName, isValid);\r\n }", "title": "" }, { "docid": "1405f3eaa0870978a8d7c850438925ef", "score": "0.49692804", "text": "@Test(timeout = 4000)\n public void test20() throws Throwable {\n boolean boolean0 = FileSystemHandling.appendLineToFile((EvoSuiteFile) null, \"getValidationThreshold\");\n assertFalse(boolean0);\n \n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n assertEquals(\"\", textDirectoryLoader0.getCharSet());\n assertEquals(\"Whether to store the filename in an additional attribute.\", textDirectoryLoader0.outputFilenameTipText());\n assertEquals(\"The character set to use when reading text files (eg UTF-8) - leave blank to use the default character set.\", textDirectoryLoader0.charSetTipText());\n assertEquals(\"Whether to print additional debug information to the console.\", textDirectoryLoader0.debugTipText());\n assertFalse(textDirectoryLoader0.getDebug());\n assertFalse(textDirectoryLoader0.getOutputFilename());\n assertEquals(\"Loads all text files in a directory and uses the subdirectory names as class labels. The content of the text files will be stored in a String attribute, the filename can be stored as well.\", textDirectoryLoader0.globalInfo());\n assertEquals(\"Directories\", textDirectoryLoader0.getFileDescription());\n assertNotNull(textDirectoryLoader0);\n \n Instances instances0 = textDirectoryLoader0.getStructure();\n assertEquals(\"\", textDirectoryLoader0.getCharSet());\n assertEquals(\"Whether to store the filename in an additional attribute.\", textDirectoryLoader0.outputFilenameTipText());\n assertEquals(\"The character set to use when reading text files (eg UTF-8) - leave blank to use the default character set.\", textDirectoryLoader0.charSetTipText());\n assertEquals(\"Whether to print additional debug information to the console.\", textDirectoryLoader0.debugTipText());\n assertFalse(textDirectoryLoader0.getDebug());\n assertFalse(textDirectoryLoader0.getOutputFilename());\n assertEquals(\"Loads all text files in a directory and uses the subdirectory names as class labels. The content of the text files will be stored in a String attribute, the filename can be stored as well.\", textDirectoryLoader0.globalInfo());\n assertEquals(\"Directories\", textDirectoryLoader0.getFileDescription());\n assertEquals(2, instances0.numAttributes());\n assertEquals(0, instances0.numInstances());\n assertTrue(instances0.checkForStringAttributes());\n assertEquals(1, instances0.classIndex());\n assertEquals(0.0, instances0.sumOfWeights(), 0.01);\n assertEquals(0, instances0.size());\n assertEquals(\"_home_ubuntu_evosuite_readability_gen_projects_107_weka\", instances0.relationName());\n assertEquals(0, instances0.numClasses());\n assertNotNull(instances0);\n \n Instances instances1 = new Instances(instances0);\n assertEquals(\"\", textDirectoryLoader0.getCharSet());\n assertEquals(\"Whether to store the filename in an additional attribute.\", textDirectoryLoader0.outputFilenameTipText());\n assertEquals(\"The character set to use when reading text files (eg UTF-8) - leave blank to use the default character set.\", textDirectoryLoader0.charSetTipText());\n assertEquals(\"Whether to print additional debug information to the console.\", textDirectoryLoader0.debugTipText());\n assertFalse(textDirectoryLoader0.getDebug());\n assertFalse(textDirectoryLoader0.getOutputFilename());\n assertEquals(\"Loads all text files in a directory and uses the subdirectory names as class labels. The content of the text files will be stored in a String attribute, the filename can be stored as well.\", textDirectoryLoader0.globalInfo());\n assertEquals(\"Directories\", textDirectoryLoader0.getFileDescription());\n assertEquals(2, instances0.numAttributes());\n assertEquals(0, instances0.numInstances());\n assertTrue(instances0.checkForStringAttributes());\n assertEquals(1, instances0.classIndex());\n assertEquals(0.0, instances0.sumOfWeights(), 0.01);\n assertEquals(0, instances0.size());\n assertEquals(\"_home_ubuntu_evosuite_readability_gen_projects_107_weka\", instances0.relationName());\n assertEquals(0, instances0.numClasses());\n assertEquals(0, instances1.numClasses());\n assertEquals(\"_home_ubuntu_evosuite_readability_gen_projects_107_weka\", instances1.relationName());\n assertEquals(1, instances1.classIndex());\n assertTrue(instances1.checkForStringAttributes());\n assertEquals(2, instances1.numAttributes());\n assertEquals(0, instances1.numInstances());\n assertEquals(0, instances1.size());\n assertEquals(0.0, instances1.sumOfWeights(), 0.01);\n assertTrue(instances1.equals((Object)instances0));\n assertNotNull(instances1);\n \n Evaluation evaluation0 = new Evaluation(instances1);\n assertEquals(\"\", textDirectoryLoader0.getCharSet());\n assertEquals(\"Whether to store the filename in an additional attribute.\", textDirectoryLoader0.outputFilenameTipText());\n assertEquals(\"The character set to use when reading text files (eg UTF-8) - leave blank to use the default character set.\", textDirectoryLoader0.charSetTipText());\n assertEquals(\"Whether to print additional debug information to the console.\", textDirectoryLoader0.debugTipText());\n assertFalse(textDirectoryLoader0.getDebug());\n assertFalse(textDirectoryLoader0.getOutputFilename());\n assertEquals(\"Loads all text files in a directory and uses the subdirectory names as class labels. The content of the text files will be stored in a String attribute, the filename can be stored as well.\", textDirectoryLoader0.globalInfo());\n assertEquals(\"Directories\", textDirectoryLoader0.getFileDescription());\n assertEquals(2, instances0.numAttributes());\n assertEquals(0, instances0.numInstances());\n assertTrue(instances0.checkForStringAttributes());\n assertEquals(1, instances0.classIndex());\n assertEquals(0.0, instances0.sumOfWeights(), 0.01);\n assertEquals(0, instances0.size());\n assertEquals(\"_home_ubuntu_evosuite_readability_gen_projects_107_weka\", instances0.relationName());\n assertEquals(0, instances0.numClasses());\n assertEquals(0, instances1.numClasses());\n assertEquals(\"_home_ubuntu_evosuite_readability_gen_projects_107_weka\", instances1.relationName());\n assertEquals(1, instances1.classIndex());\n assertTrue(instances1.checkForStringAttributes());\n assertEquals(2, instances1.numAttributes());\n assertEquals(0, instances1.numInstances());\n assertEquals(0, instances1.size());\n assertEquals(0.0, instances1.sumOfWeights(), 0.01);\n assertEquals(Double.NaN, evaluation0.pctUnclassified(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedRecall(), 0.01);\n assertEquals(0.0, evaluation0.numInstances(), 0.01);\n assertEquals(0.0, evaluation0.SFSchemeEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation0.SFMeanPriorEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation0.relativeAbsoluteError(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedTrueNegativeRate(), 0.01);\n assertEquals(Double.NaN, evaluation0.rootMeanSquaredError(), 0.01);\n assertEquals(Double.NaN, evaluation0.rootMeanPriorSquaredError(), 0.01);\n assertEquals(Double.NaN, evaluation0.avgCost(), 0.01);\n assertEquals(Double.NaN, evaluation0.errorRate(), 0.01);\n assertEquals(0.0, evaluation0.incorrect(), 0.01);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n assertEquals(1.0, evaluation0.kappa(), 0.01);\n assertEquals(Double.NaN, evaluation0.SFMeanEntropyGain(), 0.01);\n assertEquals(Double.NaN, evaluation0.pctIncorrect(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedFalseNegativeRate(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedFalsePositiveRate(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedPrecision(), 0.01);\n assertEquals(Double.NaN, evaluation0.meanAbsoluteError(), 0.01);\n assertEquals(0.0, evaluation0.totalCost(), 0.01);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation0.meanPriorAbsoluteError(), 0.01);\n assertEquals(Double.NaN, evaluation0.pctCorrect(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedFMeasure(), 0.01);\n assertEquals(Double.NaN, evaluation0.coverageOfTestCasesByPredictedRegions(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedTruePositiveRate(), 0.01);\n assertEquals(Double.NaN, evaluation0.unweightedMicroFmeasure(), 0.01);\n assertFalse(evaluation0.getDiscardPredictions());\n assertEquals(0.0, evaluation0.correct(), 0.01);\n assertEquals(0.0, evaluation0.unclassified(), 0.01);\n assertEquals(Double.NaN, evaluation0.sizeOfPredictedRegions(), 0.01);\n assertEquals(Double.NaN, evaluation0.rootRelativeSquaredError(), 0.01);\n assertEquals(Double.NaN, evaluation0.SFMeanSchemeEntropy(), 0.01);\n assertTrue(instances0.equals((Object)instances1));\n assertTrue(instances1.equals((Object)instances0));\n assertNotNull(evaluation0);\n \n Instances instances2 = textDirectoryLoader0.getStructure();\n assertEquals(\"\", textDirectoryLoader0.getCharSet());\n assertEquals(\"Whether to store the filename in an additional attribute.\", textDirectoryLoader0.outputFilenameTipText());\n assertEquals(\"The character set to use when reading text files (eg UTF-8) - leave blank to use the default character set.\", textDirectoryLoader0.charSetTipText());\n assertEquals(\"Whether to print additional debug information to the console.\", textDirectoryLoader0.debugTipText());\n assertFalse(textDirectoryLoader0.getDebug());\n assertFalse(textDirectoryLoader0.getOutputFilename());\n assertEquals(\"Loads all text files in a directory and uses the subdirectory names as class labels. The content of the text files will be stored in a String attribute, the filename can be stored as well.\", textDirectoryLoader0.globalInfo());\n assertEquals(\"Directories\", textDirectoryLoader0.getFileDescription());\n assertEquals(\"_home_ubuntu_evosuite_readability_gen_projects_107_weka\", instances2.relationName());\n assertEquals(0, instances2.numInstances());\n assertEquals(2, instances2.numAttributes());\n assertTrue(instances2.checkForStringAttributes());\n assertEquals(0.0, instances2.sumOfWeights(), 0.01);\n assertEquals(0, instances2.size());\n assertEquals(1, instances2.classIndex());\n assertEquals(0, instances2.numClasses());\n assertTrue(instances2.equals((Object)instances1));\n assertNotSame(instances2, instances1);\n assertSame(instances2, instances0);\n assertNotNull(instances2);\n \n String string0 = evaluation0.toMatrixString();\n assertEquals(\"\", textDirectoryLoader0.getCharSet());\n assertEquals(\"Whether to store the filename in an additional attribute.\", textDirectoryLoader0.outputFilenameTipText());\n assertEquals(\"The character set to use when reading text files (eg UTF-8) - leave blank to use the default character set.\", textDirectoryLoader0.charSetTipText());\n assertEquals(\"Whether to print additional debug information to the console.\", textDirectoryLoader0.debugTipText());\n assertFalse(textDirectoryLoader0.getDebug());\n assertFalse(textDirectoryLoader0.getOutputFilename());\n assertEquals(\"Loads all text files in a directory and uses the subdirectory names as class labels. The content of the text files will be stored in a String attribute, the filename can be stored as well.\", textDirectoryLoader0.globalInfo());\n assertEquals(\"Directories\", textDirectoryLoader0.getFileDescription());\n assertEquals(2, instances0.numAttributes());\n assertEquals(0, instances0.numInstances());\n assertTrue(instances0.checkForStringAttributes());\n assertEquals(1, instances0.classIndex());\n assertEquals(0.0, instances0.sumOfWeights(), 0.01);\n assertEquals(0, instances0.size());\n assertEquals(\"_home_ubuntu_evosuite_readability_gen_projects_107_weka\", instances0.relationName());\n assertEquals(0, instances0.numClasses());\n assertEquals(0, instances1.numClasses());\n assertEquals(\"_home_ubuntu_evosuite_readability_gen_projects_107_weka\", instances1.relationName());\n assertEquals(1, instances1.classIndex());\n assertTrue(instances1.checkForStringAttributes());\n assertEquals(2, instances1.numAttributes());\n assertEquals(0, instances1.numInstances());\n assertEquals(0, instances1.size());\n assertEquals(0.0, instances1.sumOfWeights(), 0.01);\n assertEquals(Double.NaN, evaluation0.pctUnclassified(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedRecall(), 0.01);\n assertEquals(0.0, evaluation0.numInstances(), 0.01);\n assertEquals(0.0, evaluation0.SFSchemeEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation0.SFMeanPriorEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation0.relativeAbsoluteError(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedTrueNegativeRate(), 0.01);\n assertEquals(Double.NaN, evaluation0.rootMeanSquaredError(), 0.01);\n assertEquals(Double.NaN, evaluation0.rootMeanPriorSquaredError(), 0.01);\n assertEquals(Double.NaN, evaluation0.avgCost(), 0.01);\n assertEquals(Double.NaN, evaluation0.errorRate(), 0.01);\n assertEquals(0.0, evaluation0.incorrect(), 0.01);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n assertEquals(1.0, evaluation0.kappa(), 0.01);\n assertEquals(Double.NaN, evaluation0.SFMeanEntropyGain(), 0.01);\n assertEquals(Double.NaN, evaluation0.pctIncorrect(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedFalseNegativeRate(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedFalsePositiveRate(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedPrecision(), 0.01);\n assertEquals(Double.NaN, evaluation0.meanAbsoluteError(), 0.01);\n assertEquals(0.0, evaluation0.totalCost(), 0.01);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation0.meanPriorAbsoluteError(), 0.01);\n assertEquals(Double.NaN, evaluation0.pctCorrect(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedFMeasure(), 0.01);\n assertEquals(Double.NaN, evaluation0.coverageOfTestCasesByPredictedRegions(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedTruePositiveRate(), 0.01);\n assertEquals(Double.NaN, evaluation0.unweightedMicroFmeasure(), 0.01);\n assertFalse(evaluation0.getDiscardPredictions());\n assertEquals(0.0, evaluation0.correct(), 0.01);\n assertEquals(0.0, evaluation0.unclassified(), 0.01);\n assertEquals(Double.NaN, evaluation0.sizeOfPredictedRegions(), 0.01);\n assertEquals(Double.NaN, evaluation0.rootRelativeSquaredError(), 0.01);\n assertEquals(Double.NaN, evaluation0.SFMeanSchemeEntropy(), 0.01);\n assertTrue(instances0.equals((Object)instances1));\n assertTrue(instances1.equals((Object)instances0));\n assertTrue(instances1.equals((Object)instances2));\n assertSame(instances0, instances2);\n assertNotSame(instances0, instances1);\n assertNotSame(instances1, instances0);\n assertNotSame(instances1, instances2);\n assertNotNull(string0);\n assertEquals(\"=== Confusion Matrix ===\\n\\n <-- classified as\\n\", string0);\n \n double double0 = evaluation0.unweightedMacroFmeasure();\n assertEquals(\"\", textDirectoryLoader0.getCharSet());\n assertEquals(\"Whether to store the filename in an additional attribute.\", textDirectoryLoader0.outputFilenameTipText());\n assertEquals(\"The character set to use when reading text files (eg UTF-8) - leave blank to use the default character set.\", textDirectoryLoader0.charSetTipText());\n assertEquals(\"Whether to print additional debug information to the console.\", textDirectoryLoader0.debugTipText());\n assertFalse(textDirectoryLoader0.getDebug());\n assertFalse(textDirectoryLoader0.getOutputFilename());\n assertEquals(\"Loads all text files in a directory and uses the subdirectory names as class labels. The content of the text files will be stored in a String attribute, the filename can be stored as well.\", textDirectoryLoader0.globalInfo());\n assertEquals(\"Directories\", textDirectoryLoader0.getFileDescription());\n assertEquals(2, instances0.numAttributes());\n assertEquals(0, instances0.numInstances());\n assertTrue(instances0.checkForStringAttributes());\n assertEquals(1, instances0.classIndex());\n assertEquals(0.0, instances0.sumOfWeights(), 0.01);\n assertEquals(0, instances0.size());\n assertEquals(\"_home_ubuntu_evosuite_readability_gen_projects_107_weka\", instances0.relationName());\n assertEquals(0, instances0.numClasses());\n assertEquals(0, instances1.numClasses());\n assertEquals(\"_home_ubuntu_evosuite_readability_gen_projects_107_weka\", instances1.relationName());\n assertEquals(1, instances1.classIndex());\n assertTrue(instances1.checkForStringAttributes());\n assertEquals(2, instances1.numAttributes());\n assertEquals(0, instances1.numInstances());\n assertEquals(0, instances1.size());\n assertEquals(0.0, instances1.sumOfWeights(), 0.01);\n assertEquals(Double.NaN, evaluation0.pctUnclassified(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedRecall(), 0.01);\n assertEquals(0.0, evaluation0.numInstances(), 0.01);\n assertEquals(0.0, evaluation0.SFSchemeEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation0.SFMeanPriorEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation0.relativeAbsoluteError(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedTrueNegativeRate(), 0.01);\n assertEquals(Double.NaN, evaluation0.rootMeanSquaredError(), 0.01);\n assertEquals(Double.NaN, evaluation0.rootMeanPriorSquaredError(), 0.01);\n assertEquals(Double.NaN, evaluation0.avgCost(), 0.01);\n assertEquals(Double.NaN, evaluation0.errorRate(), 0.01);\n assertEquals(0.0, evaluation0.incorrect(), 0.01);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n assertEquals(1.0, evaluation0.kappa(), 0.01);\n assertEquals(Double.NaN, evaluation0.SFMeanEntropyGain(), 0.01);\n assertEquals(Double.NaN, evaluation0.pctIncorrect(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedFalseNegativeRate(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedFalsePositiveRate(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedPrecision(), 0.01);\n assertEquals(Double.NaN, evaluation0.meanAbsoluteError(), 0.01);\n assertEquals(0.0, evaluation0.totalCost(), 0.01);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation0.meanPriorAbsoluteError(), 0.01);\n assertEquals(Double.NaN, evaluation0.pctCorrect(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedFMeasure(), 0.01);\n assertEquals(Double.NaN, evaluation0.coverageOfTestCasesByPredictedRegions(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedTruePositiveRate(), 0.01);\n assertEquals(Double.NaN, evaluation0.unweightedMicroFmeasure(), 0.01);\n assertFalse(evaluation0.getDiscardPredictions());\n assertEquals(0.0, evaluation0.correct(), 0.01);\n assertEquals(0.0, evaluation0.unclassified(), 0.01);\n assertEquals(Double.NaN, evaluation0.sizeOfPredictedRegions(), 0.01);\n assertEquals(Double.NaN, evaluation0.rootRelativeSquaredError(), 0.01);\n assertEquals(Double.NaN, evaluation0.SFMeanSchemeEntropy(), 0.01);\n assertTrue(instances0.equals((Object)instances1));\n assertTrue(instances1.equals((Object)instances0));\n assertTrue(instances1.equals((Object)instances2));\n assertSame(instances0, instances2);\n assertNotSame(instances0, instances1);\n assertNotSame(instances1, instances0);\n assertNotSame(instances1, instances2);\n assertEquals(Double.NaN, double0, 0.01);\n \n instances1.delete();\n assertEquals(\"\", textDirectoryLoader0.getCharSet());\n assertEquals(\"Whether to store the filename in an additional attribute.\", textDirectoryLoader0.outputFilenameTipText());\n assertEquals(\"The character set to use when reading text files (eg UTF-8) - leave blank to use the default character set.\", textDirectoryLoader0.charSetTipText());\n assertEquals(\"Whether to print additional debug information to the console.\", textDirectoryLoader0.debugTipText());\n assertFalse(textDirectoryLoader0.getDebug());\n assertFalse(textDirectoryLoader0.getOutputFilename());\n assertEquals(\"Loads all text files in a directory and uses the subdirectory names as class labels. The content of the text files will be stored in a String attribute, the filename can be stored as well.\", textDirectoryLoader0.globalInfo());\n assertEquals(\"Directories\", textDirectoryLoader0.getFileDescription());\n assertEquals(2, instances0.numAttributes());\n assertEquals(0, instances0.numInstances());\n assertTrue(instances0.checkForStringAttributes());\n assertEquals(1, instances0.classIndex());\n assertEquals(0.0, instances0.sumOfWeights(), 0.01);\n assertEquals(0, instances0.size());\n assertEquals(\"_home_ubuntu_evosuite_readability_gen_projects_107_weka\", instances0.relationName());\n assertEquals(0, instances0.numClasses());\n assertEquals(0, instances1.numClasses());\n assertEquals(\"_home_ubuntu_evosuite_readability_gen_projects_107_weka\", instances1.relationName());\n assertEquals(1, instances1.classIndex());\n assertTrue(instances1.checkForStringAttributes());\n assertEquals(2, instances1.numAttributes());\n assertEquals(0, instances1.numInstances());\n assertEquals(0, instances1.size());\n assertEquals(0.0, instances1.sumOfWeights(), 0.01);\n assertTrue(instances0.equals((Object)instances1));\n assertTrue(instances1.equals((Object)instances0));\n assertTrue(instances1.equals((Object)instances2));\n assertSame(instances0, instances2);\n assertNotSame(instances0, instances1);\n assertNotSame(instances1, instances0);\n assertNotSame(instances1, instances2);\n \n Instances instances3 = textDirectoryLoader0.getDataSet();\n assertEquals(\"\", textDirectoryLoader0.getCharSet());\n assertEquals(\"Whether to store the filename in an additional attribute.\", textDirectoryLoader0.outputFilenameTipText());\n assertEquals(\"The character set to use when reading text files (eg UTF-8) - leave blank to use the default character set.\", textDirectoryLoader0.charSetTipText());\n assertEquals(\"Whether to print additional debug information to the console.\", textDirectoryLoader0.debugTipText());\n assertFalse(textDirectoryLoader0.getDebug());\n assertFalse(textDirectoryLoader0.getOutputFilename());\n assertEquals(\"Loads all text files in a directory and uses the subdirectory names as class labels. The content of the text files will be stored in a String attribute, the filename can be stored as well.\", textDirectoryLoader0.globalInfo());\n assertEquals(\"Directories\", textDirectoryLoader0.getFileDescription());\n assertEquals(0, instances3.numClasses());\n assertEquals(\"_home_ubuntu_evosuite_readability_gen_projects_107_weka\", instances3.relationName());\n assertEquals(2, instances3.numAttributes());\n assertEquals(0.0, instances3.sumOfWeights(), 0.01);\n assertEquals(0, instances3.size());\n assertEquals(0, instances3.numInstances());\n assertEquals(1, instances3.classIndex());\n assertTrue(instances3.checkForStringAttributes());\n assertTrue(instances3.equals((Object)instances1));\n assertNotSame(instances3, instances1);\n assertSame(instances3, instances0);\n assertSame(instances3, instances2);\n assertNotNull(instances3);\n \n PipedInputStream pipedInputStream0 = new PipedInputStream();\n assertEquals(0, pipedInputStream0.available());\n assertNotNull(pipedInputStream0);\n \n try { \n textDirectoryLoader0.setSource((InputStream) pipedInputStream0);\n fail(\"Expecting exception: IOException\");\n \n } catch(IOException e) {\n //\n // Setting InputStream as source not supported\n //\n verifyException(\"weka.core.converters.AbstractLoader\", e);\n }\n }", "title": "" }, { "docid": "0f13f2fc2f70a7a920ba9a166dd55cb7", "score": "0.49671528", "text": "@Ignore(\"Used for benchmarking\")\n @Test\n public void testBug1631() throws Exception {\n long totals = 0;\n int runs = 1;\n for(int i=0;i<runs;i++){\n long start = System.nanoTime();\n ErrorCollector c = new ErrorCollector();\n assertCompilesOk(c, getCompilerTask(Arrays.asList(/*\"-verbose:benchmark\", */\"-out\", destDir), c, \"bug16xx/bug1631/run.ceylon\").call2());\n// benchmarkParse(\"bug16xx/bug1631/run.ceylon\");\n long end = System.nanoTime();\n long total = end - start;\n System.err.println(\"Took \"+(total/1_000_000)+\"ms\");\n totals += total;\n }\n System.err.println(\"Average \"+((totals/1_000_000)/runs)+\"ms\");\n \n// System.err.println(\"Press enter to quit\");\n// System.in.read();\n// System.err.println(\"Done\");\n }", "title": "" }, { "docid": "2c1f9fc13f62e998eae30362e107070b", "score": "0.49644315", "text": "public void test12CheckAllGeneratedResourcesDependancies() {\n\t\tlog(\"test12CheckAllGeneratedResourcesDependancies\");\n\n\t\treloadProject(true);\n\t\treloadGeneratedResources();\n\n\t\tassertDepends(operationComponent1JavaResource, _dmResource);\n\t\tassertDepends(operationComponent1JavaResource, _operationComponentResource1);\n\t\tassertDepends(operationComponent1JavaResource, _tab1ComponentResource);\n\t\tassertDepends(operationComponent1JavaResource, _tab2ComponentResource);\n\t\tassertDepends(operationComponent1JavaResource, _rootProcessResource);\n\t\tassertDepends(operationComponent1APIResource, _dmResource);\n\t\tassertDepends(operationComponent1APIResource, _operationComponentResource1);\n\t\tassertDepends(operationComponent1APIResource, _tab1ComponentResource);\n\t\tassertDepends(operationComponent1APIResource, _tab2ComponentResource);\n\t\tassertDepends(operationComponent1APIResource, _rootProcessResource);\n\t\tassertDepends(operationComponent1WOResource, _dmResource);\n\t\tassertDepends(operationComponent1WOResource, _operationComponentResource1);\n\t\tassertDepends(operationComponent1WOResource, _tab1ComponentResource);\n\t\tassertDepends(operationComponent1WOResource, _tab2ComponentResource);\n\t\tassertDepends(operationComponent1WOResource, _rootProcessResource);\n\n\t\tassertDepends(operationComponent2JavaResource, _dmResource);\n\t\tassertDepends(operationComponent2JavaResource, _operationComponentResource2);\n\t\tassertDepends(operationComponent2JavaResource, _tab1ComponentResource);\n\t\tassertDepends(operationComponent2JavaResource, _subProcessResource);\n\t\tassertDepends(operationComponent2APIResource, _dmResource);\n\t\tassertDepends(operationComponent2APIResource, _operationComponentResource2);\n\t\tassertDepends(operationComponent2APIResource, _tab1ComponentResource);\n\t\tassertDepends(operationComponent2APIResource, _subProcessResource);\n\t\tassertDepends(operationComponent2WOResource, _dmResource);\n\t\tassertDepends(operationComponent2WOResource, _operationComponentResource2);\n\t\tassertDepends(operationComponent2WOResource, _tab1ComponentResource);\n\t\tassertDepends(operationComponent2WOResource, _subProcessResource);\n\n\t\tassertDepends(operationComponent3JavaResource, _dmResource);\n\t\tassertDepends(operationComponent3JavaResource, _operationComponentResource3);\n\t\tassertDepends(operationComponent3JavaResource, _tab2ComponentResource);\n\t\tassertDepends(operationComponent3JavaResource, _subProcessResource);\n\t\tassertDepends(operationComponent3APIResource, _dmResource);\n\t\tassertDepends(operationComponent3APIResource, _operationComponentResource3);\n\t\tassertDepends(operationComponent3APIResource, _tab2ComponentResource);\n\t\tassertDepends(operationComponent3APIResource, _subProcessResource);\n\t\tassertDepends(operationComponent3WOResource, _dmResource);\n\t\tassertDepends(operationComponent3WOResource, _operationComponentResource3);\n\t\tassertDepends(operationComponent3WOResource, _tab2ComponentResource);\n\t\tassertDepends(operationComponent3WOResource, _subProcessResource);\n\n\t\tassertDepends(tabComponent1JavaResource, _dmResource);\n\t\tassertDepends(tabComponent1JavaResource, _tab1ComponentResource);\n\t\tassertDepends(tabComponent1JavaResource, _rootProcessResource);\n\t\tassertDepends(tabComponent1JavaResource, _subProcessResource);\n\t\tassertDepends(tabComponent1APIResource, _dmResource);\n\t\tassertDepends(tabComponent1APIResource, _tab1ComponentResource);\n\t\tassertDepends(tabComponent1APIResource, _rootProcessResource);\n\t\tassertDepends(tabComponent1APIResource, _subProcessResource);\n\t\tassertDepends(tabComponent1WOResource, _dmResource);\n\t\tassertDepends(tabComponent1WOResource, _tab1ComponentResource);\n\t\tassertDepends(tabComponent1WOResource, _rootProcessResource);\n\t\tassertDepends(tabComponent1WOResource, _subProcessResource);\n\n\t\tassertDepends(tabComponent2JavaResource, _dmResource);\n\t\tassertDepends(tabComponent2JavaResource, _tab2ComponentResource);\n\t\tassertDepends(tabComponent2JavaResource, _rootProcessResource);\n\t\tassertDepends(tabComponent2JavaResource, _subProcessResource);\n\t\tassertDepends(tabComponent2APIResource, _dmResource);\n\t\tassertDepends(tabComponent2APIResource, _tab2ComponentResource);\n\t\tassertDepends(tabComponent2APIResource, _rootProcessResource);\n\t\tassertDepends(tabComponent2APIResource, _subProcessResource);\n\t\tassertDepends(tabComponent2WOResource, _dmResource);\n\t\tassertDepends(tabComponent2WOResource, _tab2ComponentResource);\n\t\tassertDepends(tabComponent2WOResource, _rootProcessResource);\n\t\tassertDepends(tabComponent2WOResource, _subProcessResource);\n\t}", "title": "" }, { "docid": "6a3260d860a9078db7f5618360660356", "score": "0.49626336", "text": "@Test(expected = TmcCoreException.class)\n public void testCheckDataFail() throws TmcCoreException {\n settings = new CoreTestSettings();\n RunTests rt = new RunTests(settings);\n rt.checkData();\n }", "title": "" }, { "docid": "f3f377f51f033a6b7d1ec33ffa52bd0a", "score": "0.4962473", "text": "@Test\n\tpublic void zooDBUpdateInprocEverythingOk() {\n\t\tInProceedings_simple_input publ = create_inproc();\n\n\t\tpubl.mode = \"update\";\n\t\tpubl.myDB = myZooDB;\n\n\n\t\tSet<ConstraintViolation<InProceedings_simple_input>> constraintViolations = validator.validate( publ );\n\t\tassertEquals( 0, constraintViolations.size() );\n\t}", "title": "" }, { "docid": "f16a740c6fa6caf512bf03d833748a57", "score": "0.49587482", "text": "@Test\n\tpublic void test_14() throws Exception {\n\t\tcreateAbstractMachine();\n\t\tcreateConcreteEvent(true);\n\t\trunBuilderCheck();\n\t}", "title": "" }, { "docid": "70ae4b83047ff4d59d2315df95a9ac0d", "score": "0.4955038", "text": "@Test(timeout = 4000)\n public void test16() throws Throwable {\n JRip jRip0 = new JRip();\n boolean boolean0 = jRip0.getCheckErrorRate();\n assertEquals(1L, jRip0.getSeed());\n assertTrue(jRip0.getUsePruning());\n assertTrue(boolean0);\n assertFalse(jRip0.getDebug());\n assertEquals(3, jRip0.getFolds());\n assertEquals(2, jRip0.getOptimizations());\n assertEquals(2.0, jRip0.getMinNo(), 0.01);\n }", "title": "" }, { "docid": "cabf99d0908298ca5cd4dcc3aa82adec", "score": "0.49536374", "text": "@Test\n public void testDroolsDecisionTableInheritance() throws Exception {\n DummyCommand command=getCore().newCommand(\"TestDroolsDecisionTableInheritance\", DummyCommand.class);\n command.setVersionArgRet(new Version());\n\n Timer.start(\"Initial decision table\");\n command.getVersionArgRet().setAuthor(\"T.S.Elliot\");\n command.getVersionArgRet().setComment(\"Fish Cakes\");\n command.invoke();\n assertEquals(\"The Times\", command.getVersionArgRet().getSource());\n Timer.stop(\"Initial decision table\");\n\n command.getVersionArgRet().setAuthor(\"H.G.Wells\");\n command.getVersionArgRet().setComment(\"Jaffa Cakes\");\n command.invoke();\n assertEquals(\"Evening Post\", command.getVersionArgRet().getSource());\n\n command.getVersionArgRet().setAuthor(\"E.Blyton\");\n command.getVersionArgRet().setComment(\"Indoor Cakes\");\n command.invoke();\n assertEquals(\"Indoor Bakers Weekly\", command.getVersionArgRet().getSource());\n\n Timer.start(\"Later decision table\");\n command.getVersionArgRet().setAuthor(\"P.K.Dick\");\n command.getVersionArgRet().setComment(\"Christmas Cake\");\n command.invoke();\n assertEquals(\"Daily Star\", command.getVersionArgRet().getSource());\n Timer.stop(\"Later decision table\");\n }", "title": "" }, { "docid": "f16789f944d7b5a6a0188e572730d3be", "score": "0.49467096", "text": "private static void fail() {\n throw new UnsatisfiableException();\n }", "title": "" }, { "docid": "6ae2404abb11d1be39a1180a86a87a11", "score": "0.49450785", "text": "boolean hasBaseAgility();", "title": "" }, { "docid": "73d116c1548f2aa15f827bc32af58fc7", "score": "0.49434122", "text": "private TransactionValidationResult(RuleBookFailMarker failedRule) {\n super(failedRule);\n }", "title": "" }, { "docid": "5b68d53c9c5badf2acd059db185a12c0", "score": "0.4942931", "text": "@Test\n public void myMainTest31() throws Exception{\n File inputFile3 = createInputFile3();\n\n String args[] = {\"-i\", \"-l\", \"-b\", \"123\", \"789\", \"--\", inputFile3.getPath()};\n Main.main(args);\n\n String expected1 = \"Howdy Bill, have you learned your abc and 123?\\n\" +\n \"It is important to know your abc and 123,so you should study it\\n\" +\n \"and then repeat with me: abc and 789\";\n\n String actual1 = getFileContent(inputFile3.getPath());\n\n assertEquals(\"Those strings differ\", expected1, actual1);\n\n assertTrue(Files.exists(Paths.get(inputFile3.getPath() + \".bck\")));\n }", "title": "" }, { "docid": "671fb9918ad0378eed3fce915f1c8526", "score": "0.49384648", "text": "public void verify() {\n lblSteps();\n lstSteps();\n lblNameAndLocation();\n lblProjectName();\n lblSourcesFolder();\n lblDefaultEncoding();\n txtProjectName();\n cboSourcesFolder();\n btBrowseSourceFolder();\n lblHint();\n cboDefaultEncoding();\n txtHint();\n cbPutNetBeansMetadataIntoASeparateDirectory();\n lblMetadataFolder();\n txtMetadataFolder();\n btBrowseMetadataFolder();\n lblWizardDescriptor$FixedHeightLabel();\n btBack();\n btNext();\n btFinish();\n btCancel();\n btHelp();\n }", "title": "" }, { "docid": "08a4ddc2946cfe35214c8666344a4e87", "score": "0.49358955", "text": "public void testBadLow() {\n // We really need to figure out a way to do this that doesn't\n // include a control variable\n boolean assertTriggered = true;\n try\n {\n fibi(0);\n assertTriggered = false;\n }\n catch (AssertionError e)\n {\n // do nothing\n }\n assert assertTriggered : \"The assert didn't work!\";\n }", "title": "" }, { "docid": "05810c4ff54e6996c19478a8369b970f", "score": "0.493257", "text": "public String doExtraChecks()\r\n {\r\n return \"\";\r\n }", "title": "" }, { "docid": "69b6813d6a610149f87bd8cada029d0e", "score": "0.49301895", "text": "@Test\n public void testBrokenDone() throws Exception\n {\n }", "title": "" }, { "docid": "d21849e4e6a63be8f15f4fe86f8d778c", "score": "0.49296373", "text": "public void merge1() throws Exception\n {\n verifyMerge(mergeFiles());\n }", "title": "" }, { "docid": "305e455f1bef21e35c14cb0873f5f91d", "score": "0.49289513", "text": "void checkProgram() {\n strategy.checkProgram();\n }", "title": "" }, { "docid": "1b21265a6479911017f04e05cb96247e", "score": "0.49271855", "text": "@Test\n void checkIncomplete() {\n }", "title": "" }, { "docid": "18a1f539de257b7f4002df447308aa73", "score": "0.49259567", "text": "@Test\n public void myMainTest22() throws Exception {\n File inputFile1 = createInputFile1();\n\n String args[] = {\"-l\", \"-b\", \"ill\", \"ucky\", \"--\", inputFile1.getPath()};\n Main.main(args);\n\n String expected1 = \"Howdy Bill,\\n\" +\n \"This is a test file for the replace utility\\n\" +\n \"Let's make sure it has at least a few lines\\n\" +\n \"so that we can create some interesting test cases...\\n\" +\n \"And let's say \\\"howdy bucky\\\" again!\";\n\n String actual1 = getFileContent(inputFile1.getPath());\n assertEquals(expected1, actual1);\n assertTrue(Files.exists(Paths.get(inputFile1.getPath() + \".bck\")));\n }", "title": "" }, { "docid": "5460651d271ad8f1ede0033cacf15d4b", "score": "0.49255496", "text": "@Test\n\tvoid testConflictsFoundOnMidLevelBranches() throws InterruptedException, ServiceException {\n\n\t\tconceptService.create(new Concept(Concepts.SNOMEDCT_ROOT), \"MAIN\");\n\n\t\t// Rebase A\n\t\tmergeService.mergeBranchSync(\"MAIN\", \"MAIN/A\", Collections.emptySet());\n\n\t\t// Create MAIN/A/A1\n\t\tbranchService.create(\"MAIN/A/A1\");\n\n\t\t// Create MAIN/B\n\t\tbranchService.create(\"MAIN/B\");\n\n\t\t// Create MAIN/B/B1\n\t\tbranchService.create(\"MAIN/B/B1\");\n\n\t\t// Change on A1 (axiom change)\n\t\tString workingBranch = \"MAIN/A/A1\";\n\t\tConcept concept = conceptService.find(\"10000100\", workingBranch);\n\t\tconcept.getClassAxioms().iterator().next().setDefinitionStatusId(Concepts.FULLY_DEFINED);\n\t\tconceptService.update(concept, workingBranch);\n\n\t\t// Promote A1 to A\n\t\tmergeService.mergeBranchSync(\"MAIN/A/A1\", \"MAIN/A\", Collections.emptySet());\n\n\t\t// Change on B1 (FSN lang refset)\n\t\tworkingBranch = \"MAIN/B/B1\";\n\t\tconcept = conceptService.find(\"10000100\", workingBranch);\n\t\tgetDescription(concept, true).getLangRefsetMembers()\n\t\t\t\t.get(Concepts.US_EN_LANG_REFSET).setAdditionalField(ReferenceSetMember.LanguageFields.ACCEPTABILITY_ID, Concepts.PREFERRED);\n\t\tconceptService.update(concept, workingBranch);\n\n\t\t// Promote B1 to B and to MAIN\n\t\tmergeService.mergeBranchSync(\"MAIN/B/B1\", \"MAIN/B\", Collections.emptySet());\n\t\tmergeService.mergeBranchSync(\"MAIN/B\", \"MAIN\", Collections.emptySet());\n\n\t\tMergeReview review = createMergeReviewAndWaitUntilCurrent(\"MAIN\", \"MAIN/A\");\n\t\tBranchReview sourceToTargetReview = reviewService.getBranchReview(review.getSourceToTargetReviewId());\n\t\tassertReportEquals(sourceToTargetReview.getChangedConcepts(), new Long[]{10000100L});\n\t\tBranchReview targetToSourceReview = reviewService.getBranchReview(review.getTargetToSourceReviewId());\n\t\tassertReportEquals(targetToSourceReview.getChangedConcepts(), new Long[]{10000100L});\n\n\t\tCollection<MergeReviewConceptVersions> mergeReviewConflictingConcepts = reviewService.getMergeReviewConflictingConcepts(review.getId(), DEFAULT_LANGUAGE_DIALECTS);\n\t\tSet<String> conceptIds = mergeReviewConflictingConcepts.stream().map(conceptVersions -> conceptVersions.getSourceConcept().getId()).collect(Collectors.toCollection(TreeSet::new));\n\t\tassertEquals(\"[10000100]\", conceptIds.toString());\n\t}", "title": "" }, { "docid": "610f47eee14d322e23de89bb0684bb58", "score": "0.49241978", "text": "@SuppressWarnings(\"PMD.UselessOverridingMethod\")\n @Override\n public boolean isValid() {\n return super.isValid();\n }", "title": "" }, { "docid": "5793c9580afdff505cb4fc1f88c4d0ab", "score": "0.49206075", "text": "@Test\n public void testEditAllocationWherePensumPercentageExceedsContractLimit_StartDateOverlaps(){\n AllocationDTO editAllocationDTO1 = new AllocationDTO(4l, 3l, 3l, 50, testAllocation3.getStartDate(), testAllocation4.getEndDate());\n //TestCase1: StartDate of TA4 equals startDate of TA3\n AllocationDTO editAllocationDTO2 = new AllocationDTO(4l, 3l, 3l, 50, testAllocation3.getStartDate().plusDays(1), testAllocation4.getEndDate());\n //TestCase1: StartDate of TA4 equals startDate of TA3\n AllocationDTO editAllocationDTO3 = new AllocationDTO(4l, 3l, 3l, 50, testAllocation3.getEndDate().minusDays(1), testAllocation4.getEndDate());\n //TestCase1: StartDate of TA4 equals startDate of TA3\n AllocationDTO editAllocationDTO4 = new AllocationDTO(4l, 3l, 3l, 50, testAllocation3.getEndDate(), testAllocation4.getEndDate());\n\n try{\n AllocationDTO edit = allocationService.updateAllocation(editAllocationDTO1.getId(), editAllocationDTO1);\n fail(\"Should have thrown exception: Pensum percentage of allocation exceeds contract limit. (Edited start date equals start date of TA3, which causes exceedence. Error in checkIfAllocationExceedsContractLimit\");\n\n }\n catch(Exception ex){\n assertEquals(PreconditionFailedException.class, ex.getClass());\n assertEquals(AllocationService.ERR_MSG_CONTRACTLIMITEXCEEDED, ex.getMessage());\n }\n try{\n AllocationDTO edit = allocationService.updateAllocation(editAllocationDTO2.getId(), editAllocationDTO2);\n fail(\"Should have thrown exception: Pensum percentage of allocation exceeds contract limit. (Edited start date lies one day after start date of TA3, which causes exceedence. Error in checkIfAllocationExceedsContractLimit\");\n\n }\n catch(Exception ex){\n assertEquals(PreconditionFailedException.class, ex.getClass());\n assertEquals(AllocationService.ERR_MSG_CONTRACTLIMITEXCEEDED, ex.getMessage());\n }\n try{\n AllocationDTO edit = allocationService.updateAllocation(editAllocationDTO3.getId(), editAllocationDTO3);\n fail(\"Should have thrown exception: Pensum percentage of allocation exceeds contract limit. (Edited start date lies one day before end date of TA3, which causes exceedence. Error in checkIfAllocationExceedsContractLimit\");\n\n }\n catch(Exception ex){\n assertEquals(PreconditionFailedException.class, ex.getClass());\n assertEquals(AllocationService.ERR_MSG_CONTRACTLIMITEXCEEDED, ex.getMessage());\n }\n try{\n AllocationDTO edit = allocationService.updateAllocation(editAllocationDTO4.getId(), editAllocationDTO4);\n fail(\"Should have thrown exception: Pensum percentage of allocation exceeds contract limit. (Edited start date equals end date of TA3, which causes exceedence. Error in checkIfAllocationExceedsContractLimit\");\n\n }\n catch(Exception ex){\n assertEquals(PreconditionFailedException.class, ex.getClass());\n assertEquals(AllocationService.ERR_MSG_CONTRACTLIMITEXCEEDED, ex.getMessage());\n }\n }", "title": "" }, { "docid": "192a5f0510475cacdc16c9e9c3439989", "score": "0.49194634", "text": "@Test\n public void test42() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0, (CostMatrix) null);\n String[] stringArray0 = new String[3];\n MockRandom mockRandom0 = new MockRandom();\n try {\n evaluation0.crossValidateModel(\"V()V_!NqV\", instances0, (-1051), stringArray0, (Random) mockRandom0);\n fail(\"Expecting exception: Exception\");\n \n } catch(Exception e) {\n //\n // Can't find class called: V()V_!NqV\n //\n }\n }", "title": "" }, { "docid": "6dc395072b4b1ed528c6b22166b55286", "score": "0.4916368", "text": "@Test(timeout = 4000)\n public void test45() throws Throwable {\n DerivedVariable derivedVariable0 = new DerivedVariable();\n derivedVariable0.setCleaned(true);\n DerivedVariable derivedVariable1 = new DerivedVariable();\n derivedVariable0.hasSameDisplayName(derivedVariable1);\n derivedVariable0.setCleaningStatus(\"\");\n try { \n DerivedVariable.validateFields(derivedVariable0);\n fail(\"Expecting exception: Exception\");\n \n } catch(Exception e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"macaw.businessLayer.DerivedVariable\", e);\n }\n }", "title": "" }, { "docid": "4c3a40e19d808dc2e42680740abfc12a", "score": "0.49150082", "text": "@Test\n public void myMainTest18() throws Exception {\n File inputFile1 = createInputFile1();\n\n String args[] = {\"-b\", \"z\", \"X\", \"--\", inputFile1.getPath()};\n Main.main(args);\n String expected1 = \"Howdy Bill,\\n\" +\n \"This is a test file for the replace utility\\n\" +\n \"Let's make sure it has at least a few lines\\n\" +\n \"so that we can create some interesting test cases...\\n\" +\n \"And let's say \\\"howdy bill\\\" again!\";\n\n String actual1 = getFileContent(inputFile1.getPath());\n assertEquals(\"These strings differ\", expected1, actual1);\n assertTrue(Files.exists(Paths.get(inputFile1.getPath() + \".bck\")));\n }", "title": "" } ]
e9e83127c0c19c356a0647011ed2dcdf
/ Get the data from the intent
[ { "docid": "37f8f7db346f2d64dfc0b1f75f770d34", "score": "0.0", "text": "@Override\n public void onReceive(Context context, final Intent intent) {\n boolean status = intent.getBooleanExtra(Constant.KEY_NOTIFY_BOOLEAN_STATUS, false);\n String message = intent.getStringExtra(Constant.KEY_NOTIFY_MESSAGE);\n int notifyCode = intent.getIntExtra(Constant.KEY_NOTIFY_CODE, 0);\n\n\n switch (notifyCode) {\n\n /* Notify using notification manager */\n case Constant.NOTIFY_CODE_NOTIFICATION_MANAGER:\n\n /* If status return false then send notification so the user can try again */\n if (!status) {\n\n /* Use the Notification API */\n Notification builder = new Notification.Builder(context)\n .setContentTitle(getString(R.string.notify_title_image_upload))\n .setContentText(message)\n .setSmallIcon(R.drawable.ic_notifications_black_24dp)\n .build();\n\n /* Dismiss the notification after click */\n builder.flags |= Notification.FLAG_AUTO_CANCEL;\n\n /* Initialize the manager */\n NotificationManager notificationManager = (NotificationManager) getSystemService(NOTIFICATION_SERVICE);\n\n /* notify */\n notificationManager.notify(0, builder);\n }\n break;\n\n /* Notify using toast */\n case Constant.NOTIFY_CODE_TOAST:\n if (!status) {\n Toast.makeText(getBaseContext(), message, Toast.LENGTH_LONG).show();\n }\n break;\n\n }\n }", "title": "" } ]
[ { "docid": "89c375f3eb9cd98f4559fb72c2d522d7", "score": "0.83293563", "text": "private void getIntentData() {\n\t\ttype = getIntent().getIntExtra(\"type\", -1);\n\t\tpayWay = getIntent().getIntExtra(\"payWay\", -1);\n\t\torderid = getIntent().getIntExtra(\"orderid\", -1);\n\t}", "title": "" }, { "docid": "4eccd55c3d1225e1ef4ade6d97244154", "score": "0.7987023", "text": "public Intent getData() {\n return data;\n }", "title": "" }, { "docid": "d627b997ccd3a20ed0f139cefaaea34b", "score": "0.7955986", "text": "private void getDataFromIntent() {\n\t\tIntent intent = getIntent();\n\t\tResources res = getResources();\n\t\t\n\t\tString handleKey = res.getString(R.string.keyHandle);\n\t\thandle = intent.getStringExtra(handleKey);\n\t\t\n\t\tString pictureKey = res.getString(R.string.keyPicture);\n\t\tString baseUrl = \"http://\" + res.getString(R.string.serverURL) + \"/media/\";\n\t\tpicture = baseUrl + intent.getStringExtra(pictureKey);\n\t\t\n\t\tString nameKey = res.getString(R.string.keyName);\n\t\tname = intent.getStringExtra(nameKey);\n\t\t\n\t\tString raceKey = res.getString(R.string.keyRace);\n\t\trace = intent.getStringExtra(raceKey);\n\t\t\n\t\tString teamKey = res.getString(R.string.keyTeam);\n\t\tteam = intent.getStringExtra(teamKey);\n\t\t\n\t\tString nationalityKey = res.getString(R.string.keyNationality);\n\t\tnationality = intent.getStringExtra(nationalityKey);\n\t\t\n\t\tString eloKey = res.getString(R.string.keyELO);\n\t\telo = intent.getIntExtra(eloKey, 0) + \"\";\n\t\t\n\t\tString pkKey = res.getString(R.string.keyPK);\n\t\tpk = intent.getLongExtra(pkKey, -1);\n\t}", "title": "" }, { "docid": "aecea58ebc69d1d633b3d44c7d35b5ac", "score": "0.76564705", "text": "private void getData(){\n if (getIntent().hasExtra(\"sName\")\n && getIntent().hasExtra(\"sType\")\n && getIntent().hasExtra(\"sDesc\")\n && getIntent().hasExtra(\"sImageUrl\")){\n name = getIntent().getStringExtra(\"sName\");\n type = getIntent().getStringExtra(\"sType\");\n desc = getIntent().getStringExtra(\"sDesc\");\n imageUrl = getIntent().getStringExtra(\"sImageUrl\");\n }\n }", "title": "" }, { "docid": "f288962bbd77611852a86fa2df646454", "score": "0.75475204", "text": "IntentData getIntentData(Key key);", "title": "" }, { "docid": "55e8bc7fa2c259b3c0bffc366249dd2e", "score": "0.7545195", "text": "private void getIntentData() {\n SharedPreferences data = this.getSharedPreferences(\"data\", MODE_PRIVATE);\n restaurantIndex = getIntent().getIntExtra(\"restaurantIndex\", data.getInt(\"cur_restaurant\", 2));\n manager = Manager.getInstance(this);\n gServicesFlag = data.getBoolean(\"goog_services\", false);\n\n settings = FilterSettings.getInstance(this);\n\n if(settings.isHasBeenFiltered() == true) {\n curRestaurant = settings.getFilteredRestaurants().get(restaurantIndex);\n }\n else {\n manager = Manager.getInstance(this);\n curRestaurant = manager.getRestaurantList().get(restaurantIndex);\n }\n }", "title": "" }, { "docid": "6753e9c2c326cd314b973cd05ea0feef", "score": "0.7441018", "text": "public void getData(){\n intent=getIntent();\n userEmail=getIntent().getStringExtra(\"email\");\n Toast.makeText(this, userEmail, Toast.LENGTH_LONG).show();\n }", "title": "" }, { "docid": "611879119761ece5a17ece31ed3cb15a", "score": "0.7394758", "text": "private void getFromIntent() {\n activite = (Activite)getIntent().getSerializableExtra(\"ActiviteSent\");\n\n if(activite == null){\n throw new IllegalArgumentException(\"no activity\");\n }\n }", "title": "" }, { "docid": "16515fffeaecd707ccf529fc09770c87", "score": "0.73790854", "text": "public void getParamsFromIntent () {\n\n }", "title": "" }, { "docid": "b3dcd941059ed4c59327c95bdfb354cd", "score": "0.73287374", "text": "public void getIntentValues(){\n Intent intent = getIntent();\n equipments = (List<Equipment>) intent.getSerializableExtra(\"EQUIPMENT_LIST\");\n username = intent.getStringExtra(\"USER\");\n }", "title": "" }, { "docid": "524e0a2c1bc00bbdc1b25d10390f68e8", "score": "0.7293917", "text": "private void getExtras() {\n Bundle extras = getIntent().getExtras();\n courierID = extras.getString(\"courierID\");\n hhPin = Integer.parseInt(extras.getString(\"hhPin\"));\n startTime = extras.getString(\"startTime\");\n endTime = extras.getString(\"endTime\");\n car = extras.getString(\"car\");\n phoneNumber = extras.getString(\"phoneNumber\");\n }", "title": "" }, { "docid": "7df69b09139935f931d1c1bfecb2ba46", "score": "0.7244809", "text": "@Override\n protected void onHandleIntent(Intent workIntent) {\n String dataString = workIntent.getDataString();\n\n //Basedon the contents of dataString\n }", "title": "" }, { "docid": "217bcbfede817aac97f0ba29afd86647", "score": "0.72049636", "text": "public void getDataFromActivity() {\n Bundle extras = getIntent().getExtras();\n if(extras!= null){\n this.mCar = this.mCarMock.getCar(extras.getInt(CarrosConstants.CARRO_ID));\n }\n }", "title": "" }, { "docid": "c289ce370628d19bcd7160d8fbea8569", "score": "0.718653", "text": "private void getExtras(){\n Bundle extra = getIntent().getExtras();\n\n if(extra != null) {\n if (extra.getString(\"fileName\") != null)\n gpxFileName = extra.getString(\"fileName\");\n else\n Log.e(\"DEBUG\", \"extra.getString(\\\"fileName\\\") is null\" );\n\n if (extra.getString(\"index\") != null)\n routeIndex = Integer.parseInt(extra.getString(\"index\"));\n else\n Log.e(\"DEBUG\", \"extra.getInt(\\\"index\\\") is null\" );\n }\n\n }", "title": "" }, { "docid": "9ea67eac29cfc6bb217c92bad85400de", "score": "0.7177142", "text": "private void retrieveDataFromIntent(){\n Log.d(TAG, \"retrieveDataFromIntent started\");\n\n //retrieve quoteTitle Text view and display in it the category name from the Intent\n if ( getIntent().hasExtra(\"category_title\") != false &&\n getIntent().getExtras().getString(\"category_title\") != null) {\n quoteTitleTV.setText(quoteTitleTV.getText()\n + \" \" + getIntent().getExtras().getString(\"category_title\"));\n }\n\n //retrieve the quote id from the Itent\n if ( getIntent().hasExtra(\"quote_index\") != false &&\n getIntent().getExtras().getString(\"quote_index\") != null) {\n quoteID = Integer.parseInt(getIntent().getExtras().getString(\"quote_index\"));\n }\n\n //retrieve the category id from the Itent\n if ( getIntent().hasExtra(\"category_index\") != false &&\n getIntent().getExtras().getString(\"category_index\") != null) {\n categoryID = Integer.parseInt(getIntent().getExtras().getString(\"category_index\"));\n }\n\n //retrieve the category image from the Itent\n if ( getIntent().hasExtra(\"category_img\") != false &&\n getIntent().getExtras().getString(\"category_img\") != null) {\n imgName = getIntent().getExtras().getString(\"category_img\");\n } else {\n //if the image is not passed to the Itent, then determine the image based on category number\n determineImageFilename();\n }\n }", "title": "" }, { "docid": "d350d17878ef56d771b0a2025593ef95", "score": "0.7108576", "text": "private void getIncomingData() {\n Bundle bundle = getIntent().getExtras();\n if (bundle != null && bundle.containsKey(\"KENNEL_ID\") && bundle.containsKey(\"KENNEL_OWNER_ID\")) {\n KENNEL_ID = bundle.getString(\"KENNEL_ID\");\n KENNEL_OWNER_ID = bundle.getString(\"KENNEL_OWNER_ID\");\n if (KENNEL_ID != null) {\n /* FETCH THE KENNEL'S DETAILS */\n fetchKennelDetails();\n } else {\n Toast.makeText(getApplicationContext(), \"Failed to get required info....\", Toast.LENGTH_SHORT).show();\n finish();\n }\n } else {\n Toast.makeText(getApplicationContext(), \"Failed to get required info....\", Toast.LENGTH_SHORT).show();\n finish();\n }\n }", "title": "" }, { "docid": "98381db757e346059d42b545ed69202f", "score": "0.6998724", "text": "private void getIntentData() {\n address = getIntent().getStringExtra(\"address\");\n from_date = getIntent().getStringExtra(\"from_date\");\n to_date = getIntent().getStringExtra(\"to_date\");\n subscribe_mode = getIntent().getStringExtra(\"subscribe_mode\");\n product_id = getIntent().getStringExtra(\"product_id\");\n qty = getIntent().getStringExtra(\"qty\");\n day = getIntent().getStringExtra(\"day\");\n unit_price = getIntent().getStringExtra(\"unit_price\");\n unit = getIntent().getStringExtra(\"unit\");\n discount = getIntent().getStringExtra(\"discount\");\n coupon_id = getIntent().getStringExtra(\"coupon_id\");\n total_bag = getIntent().getStringExtra(\"total_bag\");\n subscription_days = getIntent().getStringExtra(\"subscription_days\");\n bag_discount = getIntent().getStringExtra(\"bag_discount\");\n coupon_amt = getIntent().getStringExtra(\"coupon_amt\");\n price = getIntent().getStringExtra(\"price\");\n\n// subscriptionCalculation();\n setData();\n }", "title": "" }, { "docid": "3b5195d12009f2cb7560e105d69146f2", "score": "0.68578994", "text": "private void getIntentData() {\r\n if (getIntent() != null)\r\n nameKey = getIntent().getStringExtra(Constant.KEY_NAME);\r\n if (nameKey != null && nameKey.equalsIgnoreCase(Constant.AUDIO_FOLDER_NAME)) {\r\n toolbarTitle.setText(Constant.AUDIO_TITLE);\r\n } else {\r\n toolbarTitle.setText(nameKey);\r\n }\r\n toolbar.setTitle(\"\");\r\n }", "title": "" }, { "docid": "d92d3adeb7579fbb1c7941dd443122f8", "score": "0.6855556", "text": "private void getIncomingIntent() {\n if (getIntent().hasExtra(\"result\")) {\n Result result = getIntent().getParcelableExtra(\"result\");\n recipeTitle.setText(result.getTitle());\n imgUrl = result.getImage();\n recipeId = result.getId();\n mRecipeVM.getSteps(String.valueOf(recipeId));\n Log.d(TAG, \"getIncomingIntent: \"+result.getTitle());\n\n }\n }", "title": "" }, { "docid": "12ff04608dd49b5c53ef731f1ca7f6a2", "score": "0.68375236", "text": "private void getIncomingIntent()\n {\n //Checks if the intent has an extra with the reference thread\n if (this.getIntent().hasExtra(\"thread\")) {\n //Grabs the data in the extra\n thread = (ForumThread) this.getIntent().getSerializableExtra(\"thread\");\n }\n }", "title": "" }, { "docid": "033b49cb7aa481650057ff92b23d2a00", "score": "0.68267864", "text": "@Override\n\tprotected void getIntentWord() {\n\t\tsuper.getIntentWord();\n\t\tif (getIntent().getStringExtra(\"sendUrl\") != null) {\n\t\t\turl = getIntent().getStringExtra(\"sendUrl\");\n\t\t}\n\t\tif (getIntent().getStringExtra(\"sendStr\") != null) {\n\t\t\tthis.sendStr = getIntent().getStringExtra(\"sendStr\");\n\t\t}\n\t\tif (getIntent().getStringExtra(\"transCode\") != null) {\n\t\t\tthis.transCode = getIntent().getStringExtra(\"transCode\");\n\t\t}\n\t\tif (getIntent().getStringExtra(\"title\") != null) {\n\t\t\tthis.title = getIntent().getStringExtra(\"title\");\n\t\t}\n\t\tif (getIntent().getStringExtra(\"zhuangtai\") != null) {\n\t\t\tthis.zhuangtai = getIntent().getStringExtra(\"zhuangtai\");\n\t\t}\n\t\tif (getIntent().getStringExtra(\"seqNum\") != null) {\n\t\t\tthis.seqNum = getIntent().getStringExtra(\"seqNum\");\n\t\t}\n\n\t}", "title": "" }, { "docid": "269eed640bc4d5a5418f86813f9c2690", "score": "0.682524", "text": "private void extractDataFromIntentForRemoveConformation(){\n Intent intent = getIntent();\n position = intent.getIntExtra(POT_POS,0);\n }", "title": "" }, { "docid": "de8bb6c54b77f2c34e5cde41841c6052", "score": "0.6821536", "text": "private void getBundle() {\n\t\tactivityId = getIntent().getStringExtra(\"activityId\");\r\n\t\tsource = getIntent().getStringExtra(\"source\");\r\n\t\tKeelLog.e(TAG, \"activityId::\" + activityId + \",source::\" + source);\r\n\t}", "title": "" }, { "docid": "79662ed35d4043398ba470d7276a3146", "score": "0.6753417", "text": "private void getQuizData() {\n Intent intent = getIntent();\n\n if (intent != null) {\n Bundle bundle = intent.getBundleExtra(\"data\");\n mathQuizCollection = (MathQuizCollection) bundle.getSerializable(\"mathQuizList\");\n }\n }", "title": "" }, { "docid": "132d5049fc587652049fe057ea963d6b", "score": "0.6735138", "text": "private void processIntentData() {\n Intent intent = getIntent();\n if(intent != null) {\n Person transferredPerson = intent.getParcelableExtra(\"FromActivity3ToActivity4\");\n Person transferredPersonPrevious = intent.getParcelableExtra(\"FromActivity5ToActivity4\");\n if (transferredPerson != null) {\n this.person = transferredPerson;\n this.person.print();\n }\n else {\n Log.d(TAG, \"No Person found after transfer from Activity3\");\n }\n if (transferredPersonPrevious != null) {\n this.person = transferredPersonPrevious;\n this.person.print();\n }\n else {\n Log.d(TAG, \"No Person found after transfer from Activity5\");\n }\n }\n else {\n Log.d(TAG, \"Error when transferring from Activity3\");\n }\n }", "title": "" }, { "docid": "923b60210bf151520fa024c56d5632dd", "score": "0.6717567", "text": "private void getArgumentFromActivity() {\n plodID = userPlotModel.getPlotID();\n// prdID = userPlotModel.getPrdID();\n if (userPlotModel.getTamCode().equals(\"\")) {\n suitFlag = \"2\";\n } else {\n suitFlag = \"1\";\n }\n// tamCode = userPlotModel.getTamCode();\n// ampCode = userPlotModel.getAmpCode();\n// provCode = userPlotModel.getProvCode();\n userID = userPlotModel.getUserID();\n\n productType = userPlotModel.getPrdGrpID();\n }", "title": "" }, { "docid": "c69be37c5d6c73384f3d81c8ec9533e7", "score": "0.66899467", "text": "public void recuperandoPostagem(){\n Bundle bundle = getIntent().getExtras();\n if (bundle != null) {\n idPostagem = bundle.getString(\"idPostagem\");\n }\n }", "title": "" }, { "docid": "c7459365ba83bc3d77a411985d7791d2", "score": "0.6681885", "text": "@SuppressWarnings(\"unchecked\")\n\tprivate void getIntentData() {\n\t\tIN_PHOTO_LIST = (ArrayList<HashMap<String, String>>) getIntent().getSerializableExtra(\"IN_PHOTO_LIST\") == null ? new ArrayList<HashMap<String, String>>()\n\t\t\t\t: (ArrayList<HashMap<String, String>>) getIntent().getSerializableExtra(\"IN_PHOTO_LIST\");\n\t\tIN_ALBUM = (HashMap<String, String>) getIntent().getSerializableExtra(\"IN_ALBUM\") == null ? new HashMap<String, String>() : (HashMap<String, String>) getIntent()\n\t\t\t\t.getSerializableExtra(\"IN_ALBUM\");\n\t\tIN_USERID = getIntent().getStringExtra(\"IN_USERID\") == null ? \"0\" : getIntent().getStringExtra(\"IN_USERID\");\n\t\tIN_SELECTED_INDEX = getIntent().getIntExtra(\"IN_SELECTED_INDEX\", 0);\n\t\tIN_TOTAL_COUNT = getIntent().getIntExtra(\"IN_TOTAL_COUNT\", 1);\n\n\t\tif (IN_ALBUM.get(DELETEALLOWED).equals(\"1\")) {\n\t\t\tlnrPhotoHeader.setVisibility(View.VISIBLE);\n\t\t\ttxtPhotoRemove.setVisibility(View.VISIBLE);\n\t\t\ttxtPhotAsProfilePicture.setVisibility(View.GONE);\n\t\t}\n\t\tif (IN_ALBUM.get(DELETEALLOWED).equals(\"1\") && IN_ALBUM.get(USER_ID).equals(\"0\")) {\n\t\t\tlnrPhotoHeader.setVisibility(View.VISIBLE);\n\t\t\ttxtPhotoRemove.setVisibility(View.VISIBLE);\n\t\t\ttxtPhotAsProfilePicture.setVisibility(View.VISIBLE);\n\t\t\tbtnPhotoCaptionEdit.setVisibility(View.VISIBLE);\n\t\t}\n\t\tif (IN_ALBUM.containsKey(EDITALBUM) && IN_ALBUM.get(EDITALBUM).equals(\"1\") && IN_ALBUM.get(USER_ID).equals(\"0\")) {\n\t\t\tlnrPhotoHeader.setVisibility(View.VISIBLE);\n\t\t\ttxtPhotoRemove.setVisibility(View.VISIBLE);\n\t\t\ttxtPhotAsProfilePicture.setVisibility(View.VISIBLE);\n\t\t} else if (IN_ALBUM.containsKey(EDITALBUM) && IN_ALBUM.get(EDITALBUM).equals(\"1\")) {\n\t\t\tlnrPhotoHeader.setVisibility(View.VISIBLE);\n\t\t\ttxtPhotoRemove.setVisibility(View.VISIBLE);\n\t\t\ttxtPhotAsProfilePicture.setVisibility(View.GONE);\n\t\t}\n\n\t\tsetPhotoDetail(IN_SELECTED_INDEX);\n\t\tgetComment();\n\n\t}", "title": "" }, { "docid": "b4178e478306cb0e0d0cb639836493f0", "score": "0.6679419", "text": "private void getBundle() {\n\t\tBundle b = getIntent().getExtras();\n\t\tString data = b.getString(\"notificationData\");\n\t\ttry {\n\t\t\tdataObject = new JSONObject(data);\n\t\t} catch (JSONException e) {\n\t\t\tLog.e(\"an error occured converting data to json\", e.toString());\n\t\t}\n\t\ttry {\n\t\t\tpointsFrom = dataObject.getString(\"from\");\n\t\t\tString jid = pointsFrom.replaceAll(\"/Smack\", \"\");\n\t\t\tint position = RosterRetrieval.jids.indexOf(jid);\n\t\t\tsenderName = RosterRetrieval.names.get(position);\n\t\t\tpointsDescription = dataObject.getString(\"reasons\");\n\t\t\treceivedPoints = dataObject.getString(\"points\");\n\t\t} catch (JSONException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "title": "" }, { "docid": "a284af2651e6d8a141e104efcefc9da4", "score": "0.66442305", "text": "public void retrieveEventNameAndDateAndTimeFromIntent() {\n\n // Retrieve the Event Name and Date from EventSelectorDate activity\n Bundle extras = getIntent().getExtras();\n\n if (extras != null) {\n eventName = extras.getString(EVENT_NAME_KEY);\n eventDate = extras.getString(EVENT_DATE_KEY);\n eventTime = extras.getString(EVENT_TIME_KEY);\n //Toast.makeText(getApplicationContext(), eventName + \"\\n\" + eventDate + \"\\n\" + eventTime, Toast.LENGTH_LONG).show();\n }\n }", "title": "" }, { "docid": "7980c2b0a4f3a6718a431728ee187d33", "score": "0.6633378", "text": "@Override\n public void onReceive(Context c, Intent i)\n {\n Bundle b = i.getExtras();\n String info = b.getString(\"INFO\"); // we will have to reem,ber the key or we can take the help of a helper class as made below\n String type = b.getString(ExamManager.EXTRA_EXAM_TYPE);\n String marks = b.getString(ExamManager.EXTRA_EXAM_MARKS);\n\n String op = \"EXAM DETAILS:\\n\";\n op += \"INFO : \"+info+\"\\n\";\n op += \"TYPE : \"+type+\"\\n\";\n op += \"MARKS : \"+marks+\"\\n\";\n\n\n\n Toast.makeText(c,op,Toast.LENGTH_LONG).show();\n }", "title": "" }, { "docid": "46ada24e2e7a4f6b72d4d0aad1fb8586", "score": "0.66025084", "text": "@Override\n protected void onActivityResult(int requestCode, int resultCode, Intent data) {\n retreive_data_from_GameActivity(requestCode, resultCode, data);\n }", "title": "" }, { "docid": "799be36af965f550474df440a59f35a0", "score": "0.66016126", "text": "private void getIntentExtra() {\n mSourceName = getIntent().getStringExtra(AppConstants.PARAM_ORDER_SOURCE_NAME);\n }", "title": "" }, { "docid": "264826a803b2ef558869d749e62a299f", "score": "0.6563711", "text": "IntentData getPendingData(Key intentKey);", "title": "" }, { "docid": "e6a0a9e51aedb567924ce68bb36c0952", "score": "0.65504164", "text": "@Override\n\tprotected void onActivityResult(int requestCode, int resultCode, Intent data) {\n\t if (resultCode == RESULT_OK && requestCode == REQUEST_CODE) {\n\t // Extract name value from result extras\n\t this.size = data.getExtras().getString(\"size\");\n\t this.color = data.getExtras().getString(\"color\");\n\t this.type = data.getExtras().getString(\"type\");\n\t this.site = data.getExtras().getString(\"site\");\n\t }\n\t}", "title": "" }, { "docid": "e88f495ea17f5b3d9e605f41a4ac34c0", "score": "0.6532856", "text": "private void getIntents(){\n\t\tIntent intentFromAnywhere = getIntent();\r\n\t\tBundle extras = intentFromAnywhere.getExtras();\r\n\t\t\r\n\t\tif(extras!=null){\r\n\t\t\t//from main\r\n\t\t\tif(extras.containsKey(MainActivity.EXTRA_MESSAGE)){\r\n\t\t\t\tarrivalTime = intentFromAnywhere.getStringExtra(MainActivity.EXTRA_MESSAGE);\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//from maps\r\n\t\t\tif(extras.containsKey(MyMapActivity.EXTRA_MESSAGE)){\r\n\t\t\t\tString optionFromMap = intentFromAnywhere.getStringExtra(MyMapActivity.EXTRA_MESSAGE);\r\n\t\t\t\tuploadSpinner(optionFromMap);\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//from confirmation\r\n\t\t\tif(extras.containsKey(ConfirmationActivity.EXTRA_MESSAGE)){\r\n\t\t\t\toptionSelected = intentFromAnywhere.getStringExtra(ConfirmationActivity.EXTRA_MESSAGE);\r\n\t\t\t\t\r\n\t\t\t\tif( optionSelected!= null){\r\n\t\t\t\t\tuploadSpinner(optionSelected);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "0f4630336efb350996cb34580930c0b2", "score": "0.64694196", "text": "@Override\n public void onRebind(Intent intent) {\n\n String data = (String) intent.getExtras().get(\"User\");\n Toast.makeText(this, \"Data Recieved\" + data, Toast.LENGTH_LONG).show();\n\n }", "title": "" }, { "docid": "7e69ad1c3543f4a4f6e0f5958c1e830b", "score": "0.64376223", "text": "String getExtra();", "title": "" }, { "docid": "18c87a84b7887d36ced98a9271ea76fc", "score": "0.6437536", "text": "private void getDatas() {\n Intent intent = getIntent();\n author = intent.getStringExtra(\"author\");\n articleSlug = Integer.parseInt(intent.getStringExtra(\"slug\"));\n titleImage = intent.getStringExtra(\"image\");\n articleTitle = intent.getStringExtra(\"title\");\n // 拼接原文链接 https://zhuanlan.zhihu.com/p/21258353?refer=nekocode\n articleLink = NetWorkBean.ArticleDetail_Share + articleSlug + \"?refer=\" + author;\n\n getArticleDetailDatas(articleSlug);\n }", "title": "" }, { "docid": "50eea1b2663d72c5288a1f16e1e404ee", "score": "0.64237475", "text": "private void handleIntent(Intent intent) {\n mUri = intent.getData();\n }", "title": "" }, { "docid": "94981b2dfc64f1a491f86816357d6ea2", "score": "0.6408278", "text": "@Override\n public void _getValuesFromIntent() {\n }", "title": "" }, { "docid": "f6c45e30b4ed0e76c33719dd173deef0", "score": "0.638185", "text": "@Override\n\tprotected void onHandleIntent(Intent intent) {\n\t\tBundle extras = intent.getExtras();\n\t\t\n\t\t// loading in the passed in name of the band we wish to get more info on.\n\t\tMessenger messenger = (Messenger) extras.get(NAME_OF_BAND);\n\t\tString keyOfThings = (String) extras.get(KEY_OF_THINGS);\n\n\t\t// obtaining my object that gets returned from my Json Data\n\t\tMessage message = Message.obtain();\n\t\tmessage.arg1 = Activity.RESULT_OK;\n\t\tmessage.obj = returnJsonData(keyOfThings);\n\t\t\n\t\ttry {\n\t\t\tmessenger.send(message);\n\t\t} catch (RemoteException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\tLog.i(\"OnHandleIntent\", e.getMessage().toString());\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t}", "title": "" }, { "docid": "503a239bee53c58a738b363d05e56185", "score": "0.6375315", "text": "@Override\n public void onReceive(Context context, Intent intent)\n {\n\n String pack = intent.getStringExtra(\"package\");\n Log.i(\"BR\" ,\"Data received: \" + pack);\n }", "title": "" }, { "docid": "56dee197ba9e27120da83575fb599846", "score": "0.63630486", "text": "private void info() {\n\r\n\t\tBundle extras = getIntent().getExtras();\r\n\r\n\t\t// Id = extras.getInt(\"ID\");\r\n\t\ttask = extras.getString(\"task2\");\r\n\r\n\t\ttaskscript = extras.getStringArray(\"taskscript2\");\r\n\t\tSystem.out.print(taskscript);\r\n\t\tlat_result = extras.getStringArray(\"Tasklat2\");\r\n\t\tlng_result = extras.getStringArray(\"Tasklng2\");\r\n\r\n\t\timage = extras.getStringArray(\"image\");\r\n\r\n\r\n\t}", "title": "" }, { "docid": "3a96e38fd2039c022a87c9c23be353a6", "score": "0.6235725", "text": "private EventModel getEvent(Intent i) {\r\n // TODO - fill in here\r\n return (EventModel) i.getExtras().getParcelable(\"trip\");\r\n }", "title": "" }, { "docid": "cdcaad300a11fa337d03dccd33aa97ac", "score": "0.6226077", "text": "@Override\n protected void onHandleIntent(Intent intent) {\n if(!matcher.matchAction(intent.getAction())) {\n Toast.makeText(this, \"MposIntentService: Invalid Request\",\n Toast.LENGTH_SHORT).show();\n return;\n }\n\n else if (TextUtils.equals(intent.getAction(), GET_PERSON_OBJECT))\n {\n if (Utils.isNetworkConnected(this, true, R.style.AppCompatAlertDialogStyle))\n {\n\n getPersonObjectData();\n }\n }\n }", "title": "" }, { "docid": "6bb6bb3e3792e83e788d3f0ddadb8fad", "score": "0.62191725", "text": "@Override\n protected void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n setContentView(R.layout.activity_main2);\n Intent i = getIntent();\n if(i.getStringExtra(\"DATA\") != null) {\n String name = i.getStringExtra(\"DATA\");\n TextView textView = findViewById(R.id.ReadData);\n textView.setText(name);\n }\n\n findViewById(R.id.button4).setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n Intent intent1 = new Intent(getApplication(), QrCodeReadInViewActivity.class);\n startActivity(intent1);\n }\n });\n findViewById(R.id.button3).setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n Intent intent2 = new Intent(getApplication(), Kuchikomi.class);\n startActivity(intent2);\n }\n });\n findViewById(R.id.button2).setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n Intent intent3 = new Intent(getApplication(), Graph.class);\n startActivity(intent3);\n }\n });\n }", "title": "" }, { "docid": "36dc5b4ac67f4fe4e5b12861e10e1610", "score": "0.6199223", "text": "private void handleIntent() {\n Bundle bundle = getIntent().getExtras();\n if (bundle != null) {\n String title = getIntent().getStringExtra(TITLE);\n mSubjectId = getIntent().getStringExtra(SUBJECT_ID);\n mTopicId = getIntent().getStringExtra(TOPIC_ID);\n\n setUpToolbar(title);\n fetchStreakBonusValue();\n\n } else {\n GeneralUtils.showToastShort(getBaseContext(), getString(R.string.error_something_went_wrong));\n finish();\n }\n }", "title": "" }, { "docid": "4bae23f432e79883d10852aad1530a5c", "score": "0.61812377", "text": "public void getStrings() {\n allinfo[0] = getIntent().getStringExtra(\"wall_name\"); //Name of the Wall\n allinfo[1] = getIntent().getStringExtra(\"wall_author\"); //Author of the Wall\n allinfo[2] = getIntent().getStringExtra(\"wall_image\"); // Image link of the Wall\n getAuthorDescription();\n }", "title": "" }, { "docid": "e85403c2412964f25294c8ea80869e0d", "score": "0.61496204", "text": "private void bundleGet() {\n extras = getIntent().getExtras();\n //if extras exists\n if (extras != null) {\n cubeStar.setRating(extras.getFloat(\"cubeStar\"));\n candStar.setRating(extras.getFloat(\"candStar\"));\n callStar.setRating(extras.getFloat(\"callStar\"));\n amethStar.setRating(extras.getFloat(\"amethStar\"));\n }\n }", "title": "" }, { "docid": "d546166e2071f7b17b498a1e79a44a55", "score": "0.61447114", "text": "public void getBundle() {\n\n Bundle room_data = getIntent().getExtras();\n room_id = room_data.getString(\"id\");\n name = room_data.getString(\"name\");\n checkin = room_data.getString(\"check_in\");\n checkout = room_data.getString(\"check_out\");\n difference = room_data.getInt(\"nights\");\n room_qty = room_data.getInt(\"room_qty\");\n rates_map = (HashMap<Double, Integer>) room_data.getSerializable(\"rates\");\n //do extras version\n extrasArrayList = room_data.getParcelableArrayList(\"extras\");\n/*\n updatePrice();\n\n */\n\n }", "title": "" }, { "docid": "4931dcd877d04162899e65873a4f80d0", "score": "0.608968", "text": "@Override\r\n\tprotected void onHandleIntent(Intent intent)\r\n\t{\r\n\t\tGLOBAL = ((Global) getApplicationContext());\r\n\t\tEXTRAS = intent.getExtras();\r\n\t\t\r\n\t\tTYPE = EXTRAS.getString(\"content\");\r\n\t\t\r\n\t\tif (TYPE != null)\r\n\t\t{\r\n\t\t\tif(TYPE.equals(CONTENT_TYPE.USER_MESSAGE.toString()))\r\n\t\t\t{\r\n\t\t\t\tSENDER_FIRST = EXTRAS.getString(\"first\");\r\n\t\t\t\tSENDER_LAST = EXTRAS.getString(\"last\");\r\n\t\t\t\tMESSAGE = EXTRAS.getString(\"msg\");\r\n\t\t\t\tSENDER_EMAIL = EXTRAS.getString(\"sender\");\r\n\t\t\t\tRECEIVER = EXTRAS.getString(\"receiver\");\r\n\t\t\t}\r\n\t\t\telse if (TYPE.equals(CONTENT_TYPE.FRIEND_REQUEST.toString()))\r\n\t\t\t{\r\n\t\t\t\tSENDER_FIRST = EXTRAS.getString(\"first\");\r\n\t\t\t\tSENDER_LAST = EXTRAS.getString(\"last\");\r\n\t\t\t\tSENDER_EMAIL = EXTRAS.getString(\"sender\");\r\n\t\t\t\t//???\r\n\t\t\t\tRECEIVER = EXTRAS.getString(\"receiver\");\r\n\t\t\t}\r\n\t\t\telse if(TYPE.equals(CONTENT_TYPE.GROUP_INVITE.toString()))\r\n\t\t\t{\r\n\t\t\t\tSENDER_FIRST = EXTRAS.getString(\"first\");\r\n\t\t\t\tSENDER_LAST = EXTRAS.getString(\"last\");\r\n\t\t\t\tSENDER_EMAIL = EXTRAS.getString(\"sender\");\r\n\t\t\t\tGROUP_ID = EXTRAS.getString(\"group_id\");\r\n\t\t\t\tGROUP_NAME = EXTRAS.getString(\"group_name\");\r\n\t\t\t\t//???\r\n\t\t\t\tRECEIVER = EXTRAS.getString(\"receiver\");\r\n\t\t\t}\r\n\t\t\telse if(TYPE.equals(CONTENT_TYPE.EVENT_INVITE.toString()))\r\n\t\t\t{\r\n\t\t\t\tSENDER_FIRST = EXTRAS.getString(\"first\");\r\n\t\t\t\tSENDER_LAST = EXTRAS.getString(\"last\");\r\n\t\t\t\tSENDER_EMAIL = EXTRAS.getString(\"sender\");\r\n\t\t\t\tEVENT_ID = EXTRAS.getString(\"event_id\");\r\n\t\t\t\tEVENT_NAME = EXTRAS.getString(\"event_name\");\r\n\t\t\t\t//???\r\n\t\t\t\tRECEIVER = EXTRAS.getString(\"receiver\");\r\n\t\t\t}\r\n\t\t\telse if(TYPE.equals(CONTENT_TYPE.EVENT_APPROVED.toString()))\r\n\t\t\t{\r\n\t\t\t\tSENDER_FIRST = EXTRAS.getString(\"first\");\r\n\t\t\t\tSENDER_LAST = EXTRAS.getString(\"last\");\r\n\t\t\t\tSENDER_EMAIL = EXTRAS.getString(\"sender\");\r\n\t\t\t\tEVENT_ID = EXTRAS.getString(\"event_id\");\r\n\t\t\t\tEVENT_NAME = EXTRAS.getString(\"event_name\");\r\n\t\t\t\t//???\r\n\t\t\t\tRECEIVER = EXTRAS.getString(\"receiver\");\r\n\t\t\t}\r\n\t\t\telse if(TYPE.equals(CONTENT_TYPE.FRIEND_REQUEST_ACCEPTED.toString()))\r\n\t\t\t{\r\n\t\t\t\tSENDER_FIRST = EXTRAS.getString(\"first\");\r\n\t\t\t\tSENDER_LAST = EXTRAS.getString(\"last\");\r\n\t\t\t\tSENDER_EMAIL = EXTRAS.getString(\"sender\");\r\n\t\t\t\t//???\r\n\t\t\t\tRECEIVER = EXTRAS.getString(\"receiver\");\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tGoogleCloudMessaging gcm = GoogleCloudMessaging.getInstance(this);\r\n\r\n\t\t// The getMessageType() intent parameter must be the intent you received\r\n\t\t// in your BroadcastReceiver.\r\n\t\tString messageType = gcm.getMessageType(intent);\r\n\r\n\t\t\r\n\t\t/*\r\n\t\t * Filter messages based on message type. Since it is likely that\r\n\t\t * GCM will be extended in the future with new message types, just\r\n\t\t * ignore any message types you're not interested in, or that you\r\n\t\t * don't recognize.\r\n\t\t */\r\n\t\tif (GoogleCloudMessaging.MESSAGE_TYPE_SEND_ERROR.equals(messageType))\r\n\t\t{\r\n\t\t\tsendNotification(\"Send error: \" + EXTRAS.toString(), intent);\r\n\t\t}\r\n\t\telse if (GoogleCloudMessaging.MESSAGE_TYPE_DELETED.equals(messageType))\r\n\t\t{\r\n\t\t\tsendNotification(\"Deleted messages on server: \" + EXTRAS.toString(), intent);\r\n\t\t}\r\n\t\telse if (GoogleCloudMessaging.MESSAGE_TYPE_MESSAGE.equals(messageType))\r\n\t\t{\r\n\t\t\tLog.i(TAG, \"Completed work @ \" + SystemClock.elapsedRealtime());\r\n\t\t\t// Post notification of received message.\r\n\t\t\tif(GLOBAL.getCurrentUser() != null)\r\n\t\t\t{\r\n\t\t\t\tif(GLOBAL.isCurrentUser(RECEIVER) && !SENDER_EMAIL.equals(RECEIVER) )\r\n\t\t\t\t{\r\n\t\t\t\t\t//SEND THE NOTIFICATION TO A DEVICE IF AND ONLY WHEN RECEIVER IS THE USER LOGGED IN ON THAT DEVICE\r\n\t\t\t\t\tsendNotification(MESSAGE, intent);\r\n\t\t\t\t}\r\n\t\t\t\telse\r\n\t\t\t\t{\r\n\t\t\t\t\t//CURRENT USER FOR THIS DEVICE DIDNT MATCH RECEIPIENT\r\n\t\t\t\t\t//don't create notification on this device\r\n\t\t\t\t\t//sendNotification(MESSAGE, intent);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t{\r\n\t\t\t\t//NO CURRENT USER FOR THIS DEVICE\r\n\t\t\t\t//don't create notification on this device\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tLog.i(TAG, \"Received: \" + EXTRAS.toString());\r\n\t\t}\r\n\t\t\r\n\t\t//GcmBroadcastReceiver.completeWakefulIntent(intent);\r\n\t}", "title": "" }, { "docid": "4b49565c16026e466d56ec747040fe92", "score": "0.60852265", "text": "private Intent setData(Intent i)\n {\n gameData.putString(GameDesignInputReading.instructionsID, instructions.getText().toString());\n gameData.putString(GameDesignInputReading.gameNameID, gameName.getText().toString());\n gameData.putString(GameDesignInputReading.numPlayersID, numPlayers.getText().toString());\n gameData.putString(GameDesignInputReading.numDecksID, numDecks.getText().toString());\n i.putExtra(GameDesignInputReading.gameDataID, gameData);\n\n i.putExtra(\"username\", getIntent().getStringExtra(\"username\"));\n i.putExtra(\"imageID\", getIntent().getIntExtra(\"imageID\",ImageID));\n i.putExtra(\"CategoryName\", getIntent().getStringExtra(\"CategoryName\"));\n return i;\n }", "title": "" }, { "docid": "ff2035c8db711e5c7034e983ce237f96", "score": "0.6040578", "text": "@Override\n\tprotected void onHandleIntent(Intent intent) {\n\t\tString string = intent.getStringExtra(\"message_in\");\n\t\tLog.e(TAG, \"传过来的值=\" + string);\n\t\tcheckUpdate();\n\t}", "title": "" }, { "docid": "74c672a8d7985015e70e399816468007", "score": "0.60323673", "text": "public void getIntents(){\n addAdvertisementRequest=(AddAdvertisementRequest) getIntent().getSerializableExtra(ConfigurationFile.IntentConstants.ADD_ADV_OBJ);\n }", "title": "" }, { "docid": "8d48fd290badad6e7c3c7a46fe0221c2", "score": "0.60253274", "text": "private void getExtrasVar()\n {\n Bundle bundle = getArguments();\n id_usuario = bundle.getString(\"id_usuario\");\n id_cliente_agregar = bundle.getString(\"id_cliente\");\n }", "title": "" }, { "docid": "9fa6474ba1bf7e5365b49b6fccd3ddea", "score": "0.6009092", "text": "Intent getIntent(Key key);", "title": "" }, { "docid": "2d5bec852b0c08263cefdef9d29b9760", "score": "0.59967864", "text": "@Override\n\tprotected void onActivityResult(int requestCode, int resultCode, Intent data)\n\t{\n\t\tsuper.onActivityResult(requestCode, resultCode, data);\n\t\tswitch (requestCode)\n\t\t{\n\t\t\tcase AndroidForFun.PICTURE_1:\n\t\t\t\tif (resultCode == RESULT_OK)\n\t\t\t\t{\n\t\t\t\t\tbyte[] picture = data.getByteArrayExtra(\"picture\");\n\t\t\t\t\tSystem.out.println(\"Picture Data 1: \" + picture.toString());\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\t\n\t\t\tcase AndroidForFun.PICTURE_2:\n\t\t\t\tif (resultCode == RESULT_OK)\n\t\t\t\t{\n\t\t\t\t\tSystem.out.println(\"Picture Data: 2\" + data.getData().toString());\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\t\n\t\t\tcase AndroidForFun.VIDEO_1:\n\t\t\t\tif (resultCode == RESULT_OK)\n\t\t\t\t{\n\t\t\t\t\tSystem.out.println(\"Video Data: \" + data.getData().toString());\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\t\t\n\t\t\tdefault:\n\t\t\t\tbreak;\n\t\t}\n\t}", "title": "" }, { "docid": "8fcc10fd9832afa67853beaeaf1e6309", "score": "0.5950616", "text": "private void getRestaurantIdentifier(){\n Log.d(TAG, \"getRestaurantDetails: \");\n\n // Recover intent of the Caller\n Intent intent = getIntent();\n\n // ==> Retrieves the details of the restaurant sent by Caller\n mRestaurantIdentifier = intent.getStringExtra(KEY_DETAILS_RESTAURANT_CARD);\n }", "title": "" }, { "docid": "145d854b13807fb47cf68a9bf671d3c1", "score": "0.5946377", "text": "@Override\n public void onReceive(Context context, Intent intent) {\n Double resultado = intent.getDoubleExtra(\"resultado\", 0.0);\n\n // Escribimos el resultado\n salida.append(\" \" + resultado);\n\n }", "title": "" }, { "docid": "c7ba4d4e49fec01622f03575949c7eec", "score": "0.59454286", "text": "@Override\n protected void handleIntent(Intent intent) {\n String appLinkAction = intent.getAction();\n Uri appLinkData = intent.getData();\n if (Intent.ACTION_VIEW.equals(appLinkAction) && appLinkData != null){\n // String recipeId = appLinkData.getLastPathSegment();\n // Uri appData = Uri.parse(\"content://com.recipe_app/recipe/\").buildUpon().appendPath(recipeId).build();\n // showRecipe(appData);\n }\n\n }", "title": "" }, { "docid": "7575c93f7213b2f6fd1b337da048d6b1", "score": "0.5929408", "text": "public void onActivityResult(int requestCode, int resultCode, Intent data) {\n super.onActivityResult(requestCode, resultCode, data);\n Bundle extras = data.getExtras();\n if (extras != null) {\n user = (User) extras.getSerializable(\"user\");\n }\n if (extras != null) {\n db = (DataBase) extras.getSerializable(\"database\");\n }\n }", "title": "" }, { "docid": "49a4047eb2c4ae496c84779388f0901d", "score": "0.5914225", "text": "private void cargarExtras() {\n agregar = getIntent().getExtras().getBoolean(\"agregar\");\n\n //carga lista\n album = getIntent().getExtras().getStringArrayList(\"cliente\");\n\n }", "title": "" }, { "docid": "3babd15b515fd7f8c84ea05157d2fb0f", "score": "0.5909191", "text": "@Override\n protected void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n\n Uri data = getIntent().getData();\n share_visitno = data.getLastPathSegment();\n share_pid = getIntent().getExtras().getString(Person.PID);\n System.out.println(share_visitno);\n System.out.println(getPcuCode());\n\n setContentView(R.layout.visit_oldter_activity);\n setContentDisplay();\n }", "title": "" }, { "docid": "0df4b4025402867e7bb61f5c401a9dde", "score": "0.5903793", "text": "public abstract String getExtraInfo();", "title": "" }, { "docid": "97e2aeb04b6aabd1d0a5ba1650437b5c", "score": "0.5887043", "text": "void processIntent(Intent intent) {\n\n textView = (TextView) findViewById(R.id.nfc_read);\n Parcelable[] rawMsgs = intent.getParcelableArrayExtra(\n NfcAdapter.EXTRA_NDEF_MESSAGES);\n // only one message sent during the beam\n NdefMessage msg = (NdefMessage) rawMsgs[0];\n // record 0 contains the MIME type, record 1 is the AAR, if present\n Log.i(\"Sangjun_NFC_Setting\", new String(msg.getRecords()[0].getPayload()));\n textView.setText(new String(msg.getRecords()[0].getPayload()));\n }", "title": "" }, { "docid": "2479d099b2cc83f528bc5fb0f9cf13ed", "score": "0.58668756", "text": "private void recuperarDatos() {\n Persona p = (Persona) getIntent().getSerializableExtra(MainActivity.TAG_KEY);\n textTelefono.setText(String.valueOf(p.getTelefono()));\n textNombre.setText(p.getNombre());\n textApellido.setText(p.getApellido());\n }", "title": "" }, { "docid": "f6eca341da57009b9206de57dcb7491b", "score": "0.58637977", "text": "@Override\n public void onReceive(Context context, Intent intent) {\n if (intent != null) {\n if (!TextUtils.isEmpty(intent.getAction())) {\n Toast.makeText(getApplicationContext(), intent.getAction(), Toast.LENGTH_SHORT).show();\n }\n if (!TextUtils.isEmpty(intent.getStringExtra(\"data\"))) {\n Toast.makeText(getApplicationContext(), intent.getStringExtra(\"data\"), Toast.LENGTH_SHORT).show();\n\n mReceiverTestTv.setText(\"\" + intent.getStringExtra(\"data\"));\n }\n }\n }", "title": "" }, { "docid": "9a3e3b9631a4c4abab0042bda5ac480a", "score": "0.5861494", "text": "private void getComingIntents() {\n Intent comingIntent = getIntent();\n // display mode\n if (comingIntent.getData() != null) {\n Uri uri = comingIntent.getData();\n updatingId = (int) ContentUris.parseId(uri);\n if (mode == null) { // as initial mode and to not be changed again during using\n setMode(detailsProduct);\n // initiate loader here because of the order of initiating method here is :\n // onCreate then >> onPrepareOptionsMenu and I want to initiate the loader after getting the\n // intent and setting the mode\n getLoaderManager().initLoader(ZERO, null, this);\n }\n } else { // insert mode // if there isn't extra with this Key name it will set lastId = ZERO\n setMode(addProduct);\n\n }\n }", "title": "" }, { "docid": "157880614c8220e2d4909cada907a4b2", "score": "0.5860211", "text": "public static Bundle m6043d(Intent intent) {\n if (C1745t.m6033a(C1745t.m6019a(intent))) {\n return intent.getBundleExtra(\"com.facebook.platform.protocol.METHOD_ARGS\");\n }\n return intent.getExtras();\n }", "title": "" }, { "docid": "769af5ef4d0a9c1f7cac75891d3435ad", "score": "0.5841664", "text": "@Override\n\tprotected void onCreate(Bundle savedInstanceState) {\n\t\tsuper.onCreate(savedInstanceState);\n\t\t\n\t\tIntent data = getIntent();\n mode = data.getIntExtra(\"mode\", 1);\n \n\t}", "title": "" }, { "docid": "cae070d4794a2eb3b5e00c73d883a094", "score": "0.5837463", "text": "@Override\n\tprotected void onHandleIntent(Intent intent) {\n\t}", "title": "" }, { "docid": "c932d6657ab5a3b7edfeac52ddeeb1e8", "score": "0.58370626", "text": "private void getCurrentMovie() {\n //Get Movie from other Activity\n Intent intent = getIntent();\n movie = (Movie) intent.getSerializableExtra(KEY);\n }", "title": "" }, { "docid": "baf29f5de317983d3bdff21d1b58024b", "score": "0.58157086", "text": "Iterable<IntentData> getPendingData();", "title": "" }, { "docid": "efeb025559ca522abc26f4fc37cfa6b1", "score": "0.5814268", "text": "@Override\n public void setExtraData(Intent i) {\n\n Map<String, Object> currentData = univData.get(currentPos);\n\n i.putExtra(\"univ_id\", currentData.get(\"univ_id\").toString());\n i.putExtra(\"univ_name\", currentData.get(\"univ_name\").toString());\n }", "title": "" }, { "docid": "41e2f12700d759e4139d8c88eefc7309", "score": "0.58116096", "text": "@Override\r\n\tprotected void onHandleIntent(Intent intent) {\n\r\n\t}", "title": "" }, { "docid": "41e2f12700d759e4139d8c88eefc7309", "score": "0.58116096", "text": "@Override\r\n\tprotected void onHandleIntent(Intent intent) {\n\r\n\t}", "title": "" }, { "docid": "04655f8d90d0f7bf551bb1fad182ec2f", "score": "0.5793883", "text": "public String fetchUser(){\n\n Bundle extra = getIntent().getBundleExtra(\"extra\");\n String s = \"\";\n if(extra != null){\n s = (String)extra.getSerializable(\"user\");\n Log.d(\"Fetched user: \", s);\n return s;\n }\n else{\n Log.d(\"No user detected\", s);\n return \"\";\n }\n }", "title": "" }, { "docid": "1b68a97d1ebd49bb2cd4a6fdf07e23c3", "score": "0.57869685", "text": "private void addExtras(Intent intent)\n\t{\n\t\tBundle extras = getIntent().getExtras();\n\t\t\n\t\tintent.putExtras(extras);\n\t\t\n\t\tint count = 0;\n\t\t\n\t\t// Add each participant to the list of\n\t\t// parameters being passed to the next\n\t\t// Activity.\n\t\tfor (EditText name : _names)\n\t\t{\n\t\t\tintent.putExtra(\"PARTICIPANT\" + count, name.getText().toString());\n\t\t\t\n\t\t\tcount ++;\n\t\t}\n\t\t\n\t\t// Pass the number of players to the\n\t\t// next Activity.\n\t\tintent.putExtra(\"NUM_PLAYERS\", _numPlyrs);\n\t}", "title": "" }, { "docid": "4f9adb7821744e167c816d477b3e1aa3", "score": "0.57757616", "text": "private void loadExtras()\n\t{\n\t\tBundle extras = getIntent().getExtras();\n\t\t\n\t\t_numPlyrs = extras.getInt(\"NUM_PLAYERS\");\n\t}", "title": "" }, { "docid": "de024e13fe77d042d4eaf95f3c48aa5b", "score": "0.57753205", "text": "private void initIntent() {\n\n deviceName = getIntent().getStringExtra(EXTRAS_DEVICE_NAME);\n deviceAddress = getIntent().getStringExtra(EXTRAS_DEVICE_ADDRESS);\n\n textDeviceName.setText(deviceName);\n textDeviceAddress.setText(deviceAddress);\n }", "title": "" }, { "docid": "b769f542de6eec32c03559832e1dc374", "score": "0.57702154", "text": "public void assignStringArray(){\n Intent intent = getIntent();\n callerId = intent.getIntExtra(DialectDialog.CALLER_INFO, -1);\n ListViewActivityItems listViewActivityItems = new ListViewActivityItems(ListViewActivity.this, callerId);\n data = listViewActivityItems.getArray();\n }", "title": "" }, { "docid": "25d138d925d4e8ae01b7975641329922", "score": "0.5769575", "text": "@Override\n\tprotected void onHandleIntent (Intent intent) {\n \tString jsonMessage=null;\n \ttry {\n \t\t// Call the remote API with a restful GET request and assign the response to jsonMessage.\n\t\t\tjsonMessage=getRequestToAPI(intent.getStringExtra(RestWebService.RESTURL_KEY), intent.getStringExtra(RestWebService.TOKEN_KEY));\n\t\t} catch (IOException e) {\n \t\te.printStackTrace();\n \t\tjsonMessage=\"NoData\";\n \t}\n \t\n \t//try {\n\t\t//\tThread.sleep(5000);\n\t\t//} catch (InterruptedException e1) {}\n\t\t//jsonMessage=\"{\\\"systems\\\":[{\\\"name\\\":\\\"kirk\\\",\\\"status\\\":\\\"green\\\"},{\\\"name\\\":\\\"spock\\\",\\\"status\\\":\\\"amber\\\"},{\\\"name\\\":\\\"bones\\\",\\\"status\\\":\\\"red\\\"}]}\";\n \t\n try {\n \t// Return the Message object with the JSON response back to the caller.\n \t((Messenger) intent.getExtras().get(RestWebService.MESSENGER_KEY)).send(setReturnMessage(jsonMessage));\n } catch (RemoteException e) {e.printStackTrace();}\n }", "title": "" }, { "docid": "8516da5d2e44f216bf1694cec5edf66e", "score": "0.5766562", "text": "public void setData() {\n eventName = (TextView) findViewById(R.id.eventName);\n eventName.setText(getIntent().getExtras().getString(\"title\"));\n\n date = (TextView) findViewById(R.id.textView);\n date.setText(\"Date: \" + getIntent().getExtras().getString(\"date\"));\n\n author = (TextView) findViewById(R.id.textView2);\n author.setText(\"Created by: \" + getIntent().getExtras().getString(\"author\"));\n\n description = (TextView) findViewById(R.id.textView3);\n description.setText(\"Event details: \" + getIntent().getExtras().getString(\"description\"));\n\n numInterested = (Button) findViewById(R.id.button);\n numInt = getIntent().getExtras().getInt(\"interested\");\n numInterested.setText(\"Interested: \" + numInt);\n numInterested.setOnClickListener(this);\n\n interested = (CheckBox) findViewById(R.id.interested);\n\n }", "title": "" }, { "docid": "332315d593d65b363ee14718f214f72a", "score": "0.57654226", "text": "@Override\n public void onReceive(Context arg0, Intent intent) {\n String string = intent.getStringExtra(\"data\");\n// Bundle bundle = getResultExtras(false);\n// String setedString = bundle.getString(\"data\");\n// bundle.putString(\"data\", setedString + \"\");\n// setResultExtras(bundle);\n// mReceiverTestTv.setText(\"\" + setedString);\n// Message msg = new Message();\n// msg.obj = string;\n// handler.sendEmptyMessage(0x123);\n// result = string;\n Log.i(\"getAction\", \"intent.getAction\" + intent.getAction());\n switch (intent.getAction()) {\n case \"test1\":\n mReceiverTestTv.setText(\"\" + string);\n break;\n case \"test2\":\n break;\n case \"test3\":\n break;\n case \"test4\":\n break;\n default:\n break;\n }\n Toast.makeText(arg0, \"received:\" + string, Toast.LENGTH_SHORT).show();\n }", "title": "" }, { "docid": "90a4915f95822e0c025042445f1c9c76", "score": "0.5757695", "text": "@Override\n public void onReceive(Context context, Intent intent) {\n String Name = intent.getStringExtra(\"name\");\n String Mobile = intent.getStringExtra(\"mobile\");\n edUserName.setText(Name);\n edUserPhNumber.setText(Mobile);\n dialog.dismiss();\n }", "title": "" }, { "docid": "f2b28c6fbd858fd6d7639c2ee40b3264", "score": "0.57521397", "text": "@Override\n public void onReceive(Context context, Intent intent) {\n location = intent.getStringExtra(\"Location\");\n }", "title": "" }, { "docid": "bb16e7d14598aa3004679f990c0782c2", "score": "0.5742622", "text": "private RegistrationInfo getRegistrationInfoFromIntent(@NonNull Intent intent) {\n RegistrationInfo info = null;\n if (intent.hasExtra(REGISTER_INFO_EXTRA)) {\n try {\n info = (RegistrationInfo) intent.getSerializableExtra(REGISTER_INFO_EXTRA);\n } catch (Exception ex) {\n Ln.e(ex, \"Error when trying to obtain registration info from intent\");\n }\n }\n return info;\n }", "title": "" }, { "docid": "56475d725d90b9d65badc6b49024cdd9", "score": "0.57403284", "text": "@Nullable\n\n @Override\n public IBinder onBind(Intent intent) {\n // TODO: Return the communication channel to the service.\n\n // filePath = intent.getStringExtra(\"filepath\");\n\n throw new UnsupportedOperationException(\"Not yet implemented\");\n }", "title": "" }, { "docid": "e1e3decb3355aa22a0caf2cbdce0f997", "score": "0.5731197", "text": "@Override\n protected void onHandleIntent(Intent intent) {\n if (ActivityRecognitionResult.hasResult(intent)) {\n // Get the update\n ActivityRecognitionResult result =\n ActivityRecognitionResult.extractResult(intent);\n // Get the most probable activity\n DetectedActivity mostProbableActivity =\n result.getMostProbableActivity();\n /*\n * Get the probability that this activity is the\n * the user's actual activity\n */\n int confidence = mostProbableActivity.getConfidence();\n /*\n * Get an integer describing the type of activity\n */\n int activityType = mostProbableActivity.getType();\n String activityName = getNameFromType(activityType);\n\n SharedPreferences settings = getSharedPreferences(PREFS_NAME, 0);\n SharedPreferences.Editor editor = settings.edit();\n editor.putString(\"Activity\", activityName);\n editor.putString(\"Confidence\", confidence + \"\");\n editor.commit();\n\n Toast.makeText(this.getApplicationContext(),\"Activty: \" + activityName + \" - Confidence: \" + confidence + \"%\", Toast.LENGTH_LONG);\n\n\n } else {\n /*\n * This implementation ignores intents that don't contain\n * an activity update. If you wish, you can report them as\n * errors.\n */\n }\n }", "title": "" }, { "docid": "89689d446f202b44eb68eda2d87293dc", "score": "0.57300144", "text": "private static byte[] getInput(OpenPgpData data) {\n \n byte[] inBytes = null;\n switch (data.getType()) {\n case OpenPgpData.TYPE_STRING:\n inBytes = data.getString().getBytes();\n break;\n \n case OpenPgpData.TYPE_BYTE_ARRAY:\n inBytes = data.getBytes();\n break;\n \n default:\n Log.e(Constants.TAG, \"Uri and ParcelFileDescriptor not supported right now!\");\n break;\n }\n \n return inBytes;\n }", "title": "" }, { "docid": "62a57a1f153548661297e45c3b5ad273", "score": "0.57287216", "text": "@Override\n public void onReceive(Context context, Intent intent) {\n activity = intent.getStringExtra(\"Activity\");\n start();\n }", "title": "" }, { "docid": "6303e678404cf13354d1a54ec3675d03", "score": "0.57273805", "text": "@Override\n public void onReceive(Context context, Intent intent) {\n Bundle bundle = intent.getExtras();\n if (bundle != null) {\n\n driverName = bundle.getString(GCMIntentService.KEY_DRIVER_NAME);\n driverPlate = bundle.getString(GCMIntentService.KEY_DRIVER_PLATE);\n driverPhoto= bundle.getString(GCMIntentService.KEY_DRIVER_PHOTO);\n serviceType=getString(R.string.driver_assign);\n //Log.i(\"result code download data\",resultCode+\"\");\n driverIsAssigned=true;\n finishProgressBarCycle();\n\n }\n }", "title": "" }, { "docid": "650ddb3b90f38b00d322242f8db44459", "score": "0.5723498", "text": "public void handleParams(Intent intent) {\n if (intent == null) {\n intent = getIntent();\n }\n this.mExtParams = intent.getExtras();\n if (this.mExtParams == null) {\n this.mExtParams = new Bundle();\n }\n this.mCityFragmentModels = this.mCitySelectService.getCityFragmentModels();\n }", "title": "" }, { "docid": "c241eeac239a88425000fb3ca50f822d", "score": "0.5711127", "text": "private void initData() {\n\t\tif (getIntent().getBooleanExtra(\"showMenu\", false))\n\t\t\tmenu.setVisibility(View.VISIBLE);\n\t\tif (getIntent().getStringExtra(\"URL\") != null) {\n\t\t\tLog.d(\"zxl\", \"url:\" + getIntent().getStringExtra(\"URL\"));\n\t\t\tloadUrl(getIntent().getStringExtra(\"URL\"));\n\t\t}\n\t}", "title": "" }, { "docid": "c954884a048ad66139f7984dd1fa0475", "score": "0.56971747", "text": "public void sendInfo(Intent currIntent)\n {\n currIntent.putExtra(\"pracGrader\", pracGrader);\n currIntent.putExtra(\"currUser\", currUserName);\n }", "title": "" }, { "docid": "f62558edbb9dbe3f02da57144797b28c", "score": "0.5694336", "text": "@Override\r\n\tprotected void onHandleIntent(Intent intent) {\n\r\n\t\tfinal String json = intent.getStringExtra(\"FriendsJSON\");\r\n\t\tif (json == null) {\r\n\t\t\tLog.d(\"Friends\", \"No JSON\");\r\n\t\t}\r\n\r\n\t\telse {\r\n\t\t\tLog.d(\"Friends\", json);\r\n\t\t\t\r\n\t\t\tsendDatatoWeb(json);\r\n\t\t\tString friendJSON = pullDataFromWeb(GCMIntentService.getUsername(getApplicationContext()));\r\n\t\t\taddJSONToDB(friendJSON);\r\n\t\t\tUpdateFriendDb.addAutoContactToDB(getApplicationContext());\r\n\t\t\tupdateDbOfFriends(GCMIntentService.getUsername(getApplicationContext()));\r\n\t\t\tsendRegId(getApplicationContext());\r\n\t\t\t\t\t\r\n\t\t\t\r\n\t\t\t// updates auto_table for autosuggestions\r\n\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "7290294b4b87a74ca28aba547bb8fdf7", "score": "0.56902826", "text": "@Override\n\tprotected void onCreate(Bundle savedInstanceState) {\n\t\tsuper.onCreate(savedInstanceState);\n\t\tsetContentView(R.layout.activity_main);\n\t\t\n\t\tBundle extras = getIntent().getExtras();\n\t\tString extrasNew = extras.getString(\"EXTRAS\");\n\t\tSystem.out.println(extrasNew);\n\t}", "title": "" }, { "docid": "fd2f5ebb3b49ab2bbeed75742eab585f", "score": "0.5679481", "text": "protected final String getIntentText(Intent intent, String extraKey) {\n\t\tString text = intent.getStringExtra(extraKey);\n\t\t\n\t\tif(text != null && text.matches(\"[0-9]+\")) {\n\t\t\tint resId = Integer.parseInt(text);\n\t\t\tString resourceText = getString(resId);\n\t\t\tif(resourceText != null) {\n\t\t\t\ttext = resourceText;\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn text;\n\t}", "title": "" }, { "docid": "9e2ccc488dbeee3de35199ea15a85ad1", "score": "0.5674937", "text": "public void doGet(Intent intent) {\r\n String jasonString = null;\r\n HttpResponse closeableHttpResponse = null;\r\n\r\n final ResultReceiver resultReceiver = intent.getParcelableExtra(CommunicationKeys.RECEICER);\r\n\r\n Bundle bundle = new Bundle();\r\n bundle.putString(CommunicationKeys.COMMAND, CommunicationKeys.GET);\r\n bundle.putString(CommunicationKeys.SERVICE, CommunicationKeys.FROM_LOGIN_SERVICE);\r\n\r\n // if there no Meeting Id in the Extra returns -1\r\n int userId = intent.getIntExtra(CommunicationKeys.USER_ID, -1);\r\n\r\n if (userId != -1) {\r\n URI_LoginBuilder uri_loginBuilder = new URI_LoginBuilder();\r\n uri_loginBuilder.addParameter(CommunicationKeys.USER_ID, Integer.toString(userId));\r\n\r\n HttpAppClientGet httpAppClientGet = new HttpAppClientGet();\r\n httpAppClientGet.setUri(uri_loginBuilder.getURI());\r\n\r\n try {\r\n // TODO catch 404 (No Internet and Request Time out)\r\n closeableHttpResponse = httpAppClientGet.executeRequest();\r\n } catch (IOException e) {\r\n // TODO handle Exception Toast? Alert Dialog? sent it to the Activity?\r\n }\r\n\r\n // accepted\r\n try {\r\n jasonString = EntityUtils.toString(closeableHttpResponse.getEntity());\r\n } catch (Throwable e) {\r\n // TODO handle Exception \"can not Convert EntitlyUtils to String\"\r\n }\r\n\r\n bundle.putString(CommunicationKeys.USERS, jasonString);\r\n\r\n // send the Bundle and the Status Code from Response\r\n resultReceiver.send(closeableHttpResponse.getStatusLine().getStatusCode(), bundle);\r\n } else {\r\n // Send a empty result with 500 as StatusCode\r\n\r\n // StatusCode 500 is an unexpected Error. Here no Meeting ID in Intent\r\n resultReceiver.send(500, bundle);\r\n }\r\n }", "title": "" }, { "docid": "e64e6a03f23515877d73be7175fde372", "score": "0.56727904", "text": "@Override\n protected void onHandleIntent(Intent workIntent) {\n\n ResultReceiver rec = workIntent.getParcelableExtra(\"receiver\");\n\n //String val = workIntent.getStringExtra(\"foo\");\n\n Bundle bundle = new Bundle();\n\n ConnectivityManager cm = (ConnectivityManager) getSystemService(Context.CONNECTIVITY_SERVICE);\n boolean hasInternet = cm.getActiveNetworkInfo() != null;\n\n bundle.putString(\"resultValue\", \"My Result Value. Passed in: \" + hasInternet);\n\n rec.send(Activity.RESULT_OK, bundle);\n\n\n // if()\n\n }", "title": "" } ]
d50b20b116de7e0eeaa14dbaffd400ad
Metafacade interface to be used by AndroMDA cartridges.
[ { "docid": "fc9ca8c05658c23b02408e0cbb6b41c9", "score": "0.6630121", "text": "public interface ActorFacade\r\n extends org.andromda.metafacades.uml.ClassifierFacade\r\n{\r\n\r\n /**\r\n * <p>\n * All actors generalized by this actor.\n * </p>\r\n */\r\n public java.util.List getGeneralizedActors();\r\n\r\n /**\r\n * <p>\n * The set of actors that generalize this actor.\n * </p>\r\n */\r\n public java.util.List getGeneralizedByActors();\r\n\r\n}", "title": "" } ]
[ { "docid": "579d853634b7d3814a7d4d92543261e7", "score": "0.61105174", "text": "public Aula buscarAula(){\n //IMPLEMENTAR GATITOS \r\n //IMPLEMENTAR GATITOS\r\n return new AulaMultimedia();}", "title": "" }, { "docid": "c2f383f280f298416bf45e72c374ecfa", "score": "0.5934379", "text": "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "title": "" }, { "docid": "ef4cb71597b9bfa88154ab9c2ad956d1", "score": "0.5867139", "text": "@Override\n\tpublic void acelerar() {\n\n\t}", "title": "" }, { "docid": "6589615d26f10e1a4232b26cfd1ceb73", "score": "0.57973593", "text": "public interface CanlanDaService {\n String getCanladaPosition(String openNum, Integer m);\n\n String getCanladaDouble(String openNum, String preOpenNum, Integer m);\n\n String getCanladaDoubleNew(String openNum, String preOpenNum, Integer m);\n}", "title": "" }, { "docid": "0bc8fce39c5b966be8537b062f00615f", "score": "0.5788372", "text": "public abstract cm a(FeatureInfo featureInfo);", "title": "" }, { "docid": "c535443297ddb6a1d125007e747989ac", "score": "0.57801676", "text": "furo.MetaOuterClass.Meta getMeta();", "title": "" }, { "docid": "c535443297ddb6a1d125007e747989ac", "score": "0.57801676", "text": "furo.MetaOuterClass.Meta getMeta();", "title": "" }, { "docid": "e5d3ef4d24b444b8af2d83310387f517", "score": "0.57180053", "text": "public interface IMRCommon {\n /**\n * Resume the usage of AR functions.\n */\n void resume();\n\n /**\n * Pause the usage of AR functions.\n */\n void pause();\n\n /**\n *\n * @return The passthrough object\n */\n GVRSceneObject getPassThroughObject();\n\n /**\n * Register a listener to GVRPlane events.\n *\n * @param listener\n */\n void registerPlaneListener(IPlaneEventsListener listener);\n\n /**\n * Register a listener to GVRAnchor events.\n *\n * @param listener\n */\n void registerAnchorListener(IAnchorEventsListener listener);\n\n /**\n * Register a listener to GVRAugmentedImage events.\n *\n * @param listener\n */\n void registerAugmentedImageListener(IAugmentedImageEventsListener listener);\n\n /**\n * Gets all detected planes.\n *\n * @return A ArrayList of GVRPlanes\n */\n ArrayList<GVRPlane> getAllPlanes();\n\n /**\n * Create an anchor on pose specified.\n *\n * @param pose\n * @return The anchor created\n */\n GVRAnchor createAnchor(float[] pose);\n\n /**\n * Create an anchor on pose specified and associate to the sceneObject\n *\n * @param pose\n * @param sceneObject\n * @return The anchor created\n */\n GVRAnchor createAnchor(float[] pose, GVRSceneObject sceneObject);\n\n /**\n * Update the pose of an anchor\n *\n * @param anchor\n * @param pose\n */\n void updateAnchorPose(GVRAnchor anchor, float[] pose);\n\n /**\n * Remove the anchor specified\n *\n * @param anchor\n */\n void removeAnchor(GVRAnchor anchor);\n\n /**\n * Host an anchor to be shared\n *\n * @param anchor\n */\n void hostAnchor(GVRAnchor anchor, ICloudAnchorListener listener);\n\n /**\n * Get an anchor previously hosted\n *\n * @param anchorId\n * @param listener\n */\n void resolveCloudAnchor(String anchorId, ICloudAnchorListener listener);\n\n /**\n * Set if cloud anchors will be available or not\n *\n * @param enableCloudAnchor\n */\n void setEnableCloudAnchor(boolean enableCloudAnchor);\n\n /**\n *\n * @param sceneObj\n * @param collision\n * @return\n */\n GVRHitResult hitTest(GVRSceneObject sceneObj, GVRPicker.GVRPickedObject collision);\n\n /**\n *\n * @return The light estimate\n */\n GVRLightEstimate getLightEstimate();\n\n /**\n * Set an image to be detected\n *\n * @param image\n */\n void setAugmentedImage(Bitmap image);\n\n /**\n * Set a list of reference images to be detected\n *\n * @param imagesList\n */\n void setAugmentedImages(ArrayList<Bitmap> imagesList);\n\n /**\n * Get all detected augmented images\n *\n * @return An ArrayList of GVRAugmentedImage\n */\n ArrayList<GVRAugmentedImage> getAllAugmentedImages();\n}", "title": "" }, { "docid": "a21047eaafcc2c1ada6326bfbe33e0ad", "score": "0.5621293", "text": "@Override\r\n public void alquilar() {\n }", "title": "" }, { "docid": "cc466b4e3ca54d69b4160f0250df2406", "score": "0.560182", "text": "public interface AbstractC0508av {\n}", "title": "" }, { "docid": "75bd3c298e7ddbaccc69c42c64bcab04", "score": "0.55909795", "text": "public abstract av mo1408c();", "title": "" }, { "docid": "5b0674f3b2d3350931a4b62dccaf7347", "score": "0.5568032", "text": "AbstractArtefact createAbstractArtefact();", "title": "" }, { "docid": "d5fe53b4ac3f3991cb04ada7249e275c", "score": "0.55621624", "text": "public abstract void mostraCarte(Giocatore gicatoreCorrente);", "title": "" }, { "docid": "bfe0fc6b4c47fe34bd5eda5befce3aff", "score": "0.5561098", "text": "@Override\n\tpublic void calienta() {\n\n\t}", "title": "" }, { "docid": "8e1231c6e5eb1bac69147de8cbabb02e", "score": "0.55565584", "text": "public interface AmeDf {\n public boolean registerDF();\n public List<AID> getAmesDF();\n public boolean deregisterDF();\n}", "title": "" }, { "docid": "146f3b8506ada196dff85d1e468be98e", "score": "0.5543489", "text": "public interface IridiumFlare {\n\n double getBrightness();\n int getAltitude();\n int getAzimuth();\n DateTime getDate();\n\n class IridiumFlareBuilder {\n\n private double brightness;\n private int altitude;\n private int azimuth;\n private DateTime date;\n\n public IridiumFlareBuilder brightness(double brightness) {\n this.brightness = brightness;\n return this;\n }\n\n public IridiumFlareBuilder altitude(int altitude) {\n this.altitude = altitude;\n return this;\n }\n\n public IridiumFlareBuilder azimuth(int azimuth) {\n this.azimuth = azimuth;\n return this;\n }\n\n public IridiumFlareBuilder date(DateTime date) {\n this.date = date;\n return this;\n }\n\n public IridiumFlare build() {\n return new IridiumFlare() {\n @Override\n public double getBrightness() {\n return brightness;\n }\n\n @Override\n public int getAltitude() {\n return altitude;\n }\n\n @Override\n public int getAzimuth() {\n return azimuth;\n }\n\n @Override\n public DateTime getDate() {\n return date;\n }\n };\n }\n }\n}", "title": "" }, { "docid": "e2f49e4638babedb0802b1cb20582a14", "score": "0.5532842", "text": "public interface I_EhrScapeWrapper<T> extends I_VBeanWrapper {\n\n /**\n * perform a mapping from EhrScape FLAT JSON to Java Ref. class attributes\n * @param attributes\n */\n Map<String, Object> setMappedElementAttributes(Map<String, Object> attributes);\n\n /**\n * create a class instance from supplied attributes\n * @param attributes\n * @return\n */\n T createInstance(Map<String, Object> attributes);\n\n\n\n}", "title": "" }, { "docid": "3ed3083a7c5bf4e9b2648667b866e520", "score": "0.55259347", "text": "public interface MetaClassAccessor\r\n{\r\n /**\r\n * Return a ClassDescriptor for specified class.\r\n *\r\n * @param classname the classname to get ClassDescriptor for\r\n * @param classLoader the classLoader to use\r\n * @param accessor the accessor to use to load auxilliary classes\r\n * @return the newly created ClassDescriptor\r\n * @throws MetaClassException if unable to create ClassDescriptor\r\n */\r\n ClassDescriptor getClassDescriptor( String classname,\r\n ClassLoader classLoader,\r\n MetaClassAccessor accessor )\r\n throws MetaClassException;\r\n}", "title": "" }, { "docid": "49aef5a21f1d51c921c134b7321ba50a", "score": "0.5517134", "text": "public abstract void inizioMercato();", "title": "" }, { "docid": "c12e9c5fb0897670e32987a8e817234e", "score": "0.5464738", "text": "Astronomy getAstronomy();", "title": "" }, { "docid": "b02bc37968503ca77e4672e00b744531", "score": "0.54631454", "text": "protected void alusta() {\n //\n }", "title": "" }, { "docid": "8ea6541e4102a3e064b706e092a067de", "score": "0.5452616", "text": "public interface IQsMetadataManager {\n\n}", "title": "" }, { "docid": "3591cdf9e5727233d437e1972b8f12cb", "score": "0.5441671", "text": "protected abstract void mo5419a();", "title": "" }, { "docid": "76b3966c8e3f64884c4127d1a3df09a8", "score": "0.5437169", "text": "@Override\r\n\t\t\tpublic void maruti() {\n\t\t\t\t\r\n\t\t\t}", "title": "" }, { "docid": "8c9f67484c2d3f8ba59ba501c7f18b10", "score": "0.5413258", "text": "EmfacadePackage getEmfacadePackage();", "title": "" }, { "docid": "65dadba29e1d171e1286f4d56d6a9182", "score": "0.54115164", "text": "public interface MLAlgorithManager {\n public List<String> getAvailableMLAlgorithms();\n\n public MLAlgorithm get(String name);\n\n public default List<MLAlgorithm> get(List<String> names) {\n List<MLAlgorithm> algorithms = new ArrayList<>();\n for (String name : names) {\n MLAlgorithm algorithm = get(name);\n if (algorithm != null) {\n algorithms.add(algorithm);\n }\n }\n return algorithms;\n }\n\n}", "title": "" }, { "docid": "4efdde2de20c89b980fa096732a7e21f", "score": "0.54038316", "text": "public interface TraitementCourrierManager\n extends GenericManager<TraitementCourrier, Long>\n{\n\n public final static String SERVICE_NAME = \"TraitementCourrierManager\";\n\n /**\n * \n * @param courrier \n * @return \n */\n public Courrier traiterCourrier(Courrier courrier);\n \n /**\n * \n * @param courrier \n * @return \n */\n public CourrierDepart traiterCourrier(CourrierDepart courrier);\n \n /**\n * \n * @param courrier \n * @return \n */\n public CourrierInterne traiterCourrier(CourrierInterne courrier);\n}", "title": "" }, { "docid": "ebed42c86edf33275198348f6c15b4f9", "score": "0.5402571", "text": "@Override\n protected void setup() {\n DFAgentDescription dfd = new DFAgentDescription();\n dfd.setName(getAID());\n ServiceDescription sd = new ServiceDescription();\n sd.setType(\"reputacao\");\n sd.setName(\"olx\");\n dfd.addServices(sd);\n try {\n DFService.register(this, dfd);\n } catch (FIPAException fe) {\n fe.printStackTrace();\n }\n\n addBehaviour(new TratamentoReputacao());\n addBehaviour(new EnviarReputacaoBehavior());\n }", "title": "" }, { "docid": "ef16f43073cf5fef542e53bf8293f503", "score": "0.53764063", "text": "MV getECA();", "title": "" }, { "docid": "22e3aae07d1ca8565cc0fba3bdcc201c", "score": "0.5352625", "text": "public interface ProvideAttributes {\n /**\n * The provides attribute by the processor.\n *\n * @return the provided attributes\n */\n Map<String, Attribute> getAttributes();\n}", "title": "" }, { "docid": "4e561d07c3be0d2b2f87a75ada47125e", "score": "0.5335339", "text": "public interface FermatActivityManager {\n\n\n FermatRuntime getRuntimeManager();\n\n //esto no va acá\n void reportError(String userTo) throws Exception;\n\n void sendMailExternal(String userTo,String bodyText) throws Exception;\n\n void goHome();\n\n AppsStatus getAppStatus();\n\n public void selectApp(String appPublicKey) throws Exception;\n\n}", "title": "" }, { "docid": "38a2fa6b478debfcd37895f96c902e41", "score": "0.53240585", "text": "GenClass getMetaclass();", "title": "" }, { "docid": "ddd497ad10ad05acda000914cc627ef8", "score": "0.5321526", "text": "public interface IAlgoDiffusion {\n\n\t/**\n\t * Méthode pour configurer l'algorithme de diffusion\n\t * @param capteur\n\t */\n\tvoid configure(ICapteur capteur);\n\t\n\t/**\n\t * Méthode pour exécuter l'algorithme de diffusion sélectionné\n\t */\n\tvoid execute();\n\t\n\t/**\n\t * Méthode retournant la valeur à diffuser\n\t * @return La valeur à diffuser\n\t */\n\tint retournerValeur();\n}", "title": "" }, { "docid": "761baa9fa8b64b88b3842b70b771cdac", "score": "0.5320944", "text": "public interface ViewCourrierManager\r\n extends GenericManager<ViewCourrier, Long>\r\n{\r\n\r\n public final static String SERVICE_NAME = \"ViewCourrierManager\";\r\n\r\n}", "title": "" }, { "docid": "6921e6e067361f0c6beaec36ef43393b", "score": "0.5301597", "text": "public interface AluminatiMotorController {\n public int getDeviceID();\n\n public void set(ControlMode controlMode, double x);\n\n public void setInverted(boolean inverted);\n\n public void setNeutralMode(NeutralMode neutralMode);\n\n public void follow(AluminatiSparkMax motorController);\n\n public void follow(IMotorController motorController);\n}", "title": "" }, { "docid": "c0f14d22ecd1a154b242f69b1e7e5359", "score": "0.5301156", "text": "public abstract double Aria();", "title": "" }, { "docid": "471fb9db575be6ff8c1fbdd01b31e95f", "score": "0.5299217", "text": "interface cm\n{\n\n public abstract dk e(com.google.android.gms.internal.d.a a);\n}", "title": "" }, { "docid": "bb2069020b035c82ae914db3ea0d1468", "score": "0.52953684", "text": "MagicalFeature() {\r\n\t}", "title": "" }, { "docid": "3fe94ede14f190397d9ba06cc229bf14", "score": "0.5290996", "text": "public interface ComoFacturar {\n\n /**\n * Metodo para facturar un producto dado en una fecha dada.\n * @param producto: Producto a facturar.\n * @param fecha: Fecha en la cual se factura.\n * @return Devuelve la factura del producto en la fecha dada. \n */\n public Factura facturar(Producto producto,Date fecha);\n \n}", "title": "" }, { "docid": "2976843488c24e2da1321ec5f36fb828", "score": "0.52905816", "text": "public interface IAgentImmobilierService extends IGenericService<AgentImmobilier> {\n\t\n\t// méthodes spécifiques pour un agent immobilier\n\t\n\t// méthode pour trouver un Agent Immobilier via son nom\n\tpublic AgentImmobilier findByNom(String pNom); \n\t\n\t// meth pour récupérer l'Agent Immobilier qui a réalisé une acquisition\n\tpublic AgentImmobilier findByAcquisition(Long pIdAcquisition);\n\n}", "title": "" }, { "docid": "ddbd18a7253028c458e3afc11eec8570", "score": "0.5280316", "text": "public abstract Object mo34418m();", "title": "" }, { "docid": "3196b9d4a81542daab217a57f4a6d2b6", "score": "0.52769905", "text": "public abstract void fineMercato();", "title": "" }, { "docid": "f92cd7c4c9e1f77c152a61011e867923", "score": "0.5273727", "text": "TypeLumiere getAPourLumiereLumiere();", "title": "" }, { "docid": "1c1a6dad349c0db3f773d738771e45ef", "score": "0.5265745", "text": "public AdmDetalleCatalogo() {\n\t}", "title": "" }, { "docid": "6504407b8cd0350b8e7e534023f133a7", "score": "0.5264837", "text": "public interface C32161ah {\n C32221an AGJ();\n\n IgProgressImageView ANP();\n\n MediaActionsView APf();\n\n View APn();\n\n C36841ih APt();\n\n C32231ao APv();\n\n C31841a5 AXz();\n}", "title": "" }, { "docid": "dcead00c6e13fc6d53bc98188e599994", "score": "0.52535653", "text": "abstract void dibujar();", "title": "" }, { "docid": "2899589ff03ffe07a677873325664d24", "score": "0.5247094", "text": "public interface IChdxvsc extends IFunctionality{\n\n\tpublic IRI iri();\n\n public void addUsesCompressor_run_command (ICompressor_run_command parameter);\n\n\tpublic Set<ICompressor_run_command> getUsesCompressor_run_command();\n\n public void addUsesCompressor_run_status (ICompressor_run_status parameter);\n\n\tpublic Set<ICompressor_run_status> getUsesCompressor_run_status();\n\n public void addUsesCompressor_speed_percentage_sensor (ICompressor_speed_percentage_sensor parameter);\n\n\tpublic Set<ICompressor_speed_percentage_sensor> getUsesCompressor_speed_percentage_sensor();\n\n}", "title": "" }, { "docid": "af9b78042de57ac2697680c1727d0692", "score": "0.5241236", "text": "public interface PaperArchiveFacade {\n\n\t/**\n\t * MAP decorator: STATE_CREATION_OPERATION\n\t * \n\t * Find all MAP responsibility patterns here: https://microservice-api-patterns.org/patterns/responsibility/\n\t */\n\tPaperItemDTO createPaperItem(CreatePaperItemParameter anonymousInput);\n\t\n\t/**\n\t * MAP decorator: RETRIEVAL_OPERATION\n\t * \n\t * Find all MAP responsibility patterns here: https://microservice-api-patterns.org/patterns/responsibility/\n\t */\n\tPaperItemDTOList lookupPapersFromAuthor(LookupPapersFromAuthorRequestDataType anonymousInput);\n\t\n\tConvertToMarkdownForWebsiteResponseDataType convertToMarkdownForWebsite(PaperItemKey anonymousInput);\n\t\n\n}", "title": "" }, { "docid": "327e1a266a0deb1e57251b5aed90495b", "score": "0.52327806", "text": "public abstract C0540x mo3189a();", "title": "" }, { "docid": "b5150eaf6be46f9e663c2f277f2d2880", "score": "0.5231141", "text": "@Override\n\tpublic void SeAlimenta() {\n\n\t}", "title": "" }, { "docid": "fea5443864f71edd8c2f1c5f97c2e072", "score": "0.5230959", "text": "public interface CatBuilderAttr extends ConfObject {\n public CatBuilderEntity getEntity();\n public DtNameNm getNm();\n public String getSql(boolean useView);\n public boolean needsTable();\n public CatBuilderDomain getDomain();\n default public Class<? extends Dt> getTypeClass() {\n return getDomain().getTypeClass();\n }\n public boolean isIndexed();\n}", "title": "" }, { "docid": "21be5c143b9f0d35c1dd5c627f500ccd", "score": "0.5230481", "text": "public interface FacadeGenerator {\n static final String FACADE_SUFFIX = \"Facade\"; //NOI18N\n\n Set<FileObject> generate(final Project project,\n final Map<String, String> entityNames,\n final FileObject targetFolder,\n final String entityFQN,\n final String idClass,\n final String pkg,\n final boolean hasRemote,\n final boolean hasLocal,\n boolean overrideExisting) throws IOException;\n}", "title": "" }, { "docid": "810cee4b5ea1e1d99deebfa570e59d9a", "score": "0.5221033", "text": "public MetaRefiner() {\n passing = true;\n maxHandlers = 45;\n }", "title": "" }, { "docid": "03101cc6d3e4b6ec4fd046f4b4c64d1e", "score": "0.52184266", "text": "public interface CorrelationView {\n void getCorrelationViewData(Correlat correlat);\n}", "title": "" }, { "docid": "4458d79a0dcb4482dd683f6b6e1d0bbc", "score": "0.52148396", "text": "public interface ComposantAbstrait extends ObjetArchitectural {\n\n}", "title": "" }, { "docid": "9e6271d3d5202d5bfc810451520f1c06", "score": "0.520827", "text": "private AeroMethods() { }", "title": "" }, { "docid": "f421f772009e37431229325e4b4e34bf", "score": "0.5202377", "text": "Algoritmo createAlgoritmo();", "title": "" }, { "docid": "d77d87806f851043ba61b0510358cd1e", "score": "0.52022827", "text": "public interface MasterOperations\n{\n /**\n * Read accessor for nom attribute\n * @return the attribute value\n */\n public String nom();\n\n /**\n * Read accessor for universite attribute\n * @return the attribute value\n */\n public String universite();\n\n /**\n * Operation consulterEtatCandidatures\n */\n public AdmissionPostLicence.candidature[] consulterEtatCandidatures();\n\n /**\n * Operation modifierDecision\n */\n public void modifierDecision(AdmissionPostLicence.candidature c)\n throws AdmissionPostLicence.CandidatureInconnu;\n\n /**\n * Operation verifierPrerequis\n */\n public boolean verifierPrerequis(String licence)\n throws AdmissionPostLicence.MasterInconnu;\n\n}", "title": "" }, { "docid": "646377f9a04958a6eeea1118fddba04e", "score": "0.5181357", "text": "@Override\n\tpublic void refuel() {\n\n\t}", "title": "" }, { "docid": "2a7c8e857aaed4d37212a658f5352680", "score": "0.5173343", "text": "public interface IMetaModel {\n\n\t/**\n\t * Get type information on the asset specified in the token\n\t * @param token - token of desired asset \n\t * @return IAssetType for asset defined in token\n\t * @throws MetaException if an error occurs while locating the asset\n\t */\n\tIAssetType getAssetType(String token) throws MetaException;\n\n\t/**\n\t * Get the definition of an attribute specified in the token\n\t * @param token - token of desired attribute\n\t * @return IAttributeDefinition for attribute specified\n\t * @throws MetaException if an error occurs finding the attribute\n\t */\n\tIAttributeDefinition getAttributeDefinition(String token) throws MetaException;\n\n\t/**\n\t * Get information on an operation specified in the token\n\t * @param token - token of desired operation \n\t * @return IOperation based on token\n\t * @throws MetaException if as error occurs finding the operation information\n\t */\n\tIOperation getOperation(String token) throws MetaException;\n}", "title": "" }, { "docid": "7bbe9b7a43fb2be097e201f205a92ef3", "score": "0.5168934", "text": "abstract void kasa ();", "title": "" }, { "docid": "fc2d393a310e446ecf9705b1a6519147", "score": "0.5157285", "text": "@Override\n\tpublic void buildCorDeFrente() {\n\t\t\n\t}", "title": "" }, { "docid": "4052a01d3cd5f6de96a5e88daa608015", "score": "0.5153223", "text": "public interface FareService {\n public Fare getCost(GraphPath path);\n}", "title": "" }, { "docid": "09fe53d61300c2c9d7fccea9ce477409", "score": "0.513732", "text": "protected void mo763a() {\n }", "title": "" }, { "docid": "cc064778e6fbd9eed0d1d7611b73a17e", "score": "0.51358163", "text": "public interface FormControlFacade {\n /**\n * 根据业务类型获取表单控制信息\n * @param businessCode 业务编码\n * @return\n */\n SoaResponse<FormControlVO> getFormControl(SoaRequest<FormControlQuery> businessCode);\n\n /**\n * 检查表单数据合法性\n * 如果存在多个服务类型需要传递具体服务类型\n * 如果只配置一个服务类型可以不传\n * @param formItemCheckRequest\n * @return\n */\n SoaResponse<Boolean> checkFormItems(SoaRequest<FormItemCheckRequest> formItemCheckRequest);\n\n\n}", "title": "" }, { "docid": "f6593ef609340832cfc890f5b54daf76", "score": "0.5133288", "text": "public interface AoClicarNoCarro {\n void voceClicouNoCarro(Carro c);\n}", "title": "" }, { "docid": "4fb393e22c9001ee7d2e24ef48ddbbdc", "score": "0.5116123", "text": "public interface Handler {\r\n int onGetAllowedDefaultTransforms(GetAllowedDefaultTransforms_Result result);\r\n int onGetAllAvailableTransforms(GetAllAvailableTransforms_Result result);\r\n int onGetColorTemperature(Long theInstanceID, GetColorTemperature_Result result);\r\n int onSetLoudness(Long theInstanceID, A_ARG_TYPE_Channel theChannel, Boolean theDesiredLoudness);\r\n int onGetVolumeDB(Long theInstanceID, A_ARG_TYPE_Channel theChannel, GetVolumeDB_Result result);\r\n int onGetContrast(Long theInstanceID, GetContrast_Result result);\r\n int onGetGreenVideoGain(Long theInstanceID, GetGreenVideoGain_Result result);\r\n int onGetMute(Long theInstanceID, A_ARG_TYPE_Channel theChannel, GetMute_Result result);\r\n int onSetColorTemperature(Long theInstanceID, Integer theDesiredColorTemperature);\r\n int onSetContrast(Long theInstanceID, Integer theDesiredContrast);\r\n int onSetBlueVideoBlackLevel(Long theInstanceID, Integer theDesiredBlueVideoBlackLevel);\r\n int onSetSharpness(Long theInstanceID, Integer theDesiredSharpness);\r\n int onListPresets(Long theInstanceID, ListPresets_Result result);\r\n int onSetHorizontalKeystone(Long theInstanceID, Integer theDesiredHorizontalKeystone);\r\n int onSetMute(Long theInstanceID, A_ARG_TYPE_Channel theChannel, Boolean theDesiredMute);\r\n int onSetBrightness(Long theInstanceID, Integer theDesiredBrightness);\r\n int onGetDefaultTransforms(GetDefaultTransforms_Result result);\r\n int onGetVerticalKeystone(Long theInstanceID, GetVerticalKeystone_Result result);\r\n int onGetVolumeDBRange(Long theInstanceID, A_ARG_TYPE_Channel theChannel, GetVolumeDBRange_Result result);\r\n int onGetBlueVideoBlackLevel(Long theInstanceID, GetBlueVideoBlackLevel_Result result);\r\n int onGetAllowedTransforms(Long theInstanceID, GetAllowedTransforms_Result result);\r\n int onGetBlueVideoGain(Long theInstanceID, GetBlueVideoGain_Result result);\r\n int onSetVerticalKeystone(Long theInstanceID, Integer theDesiredVerticalKeystone);\r\n int onSetGreenVideoBlackLevel(Long theInstanceID, Integer theDesiredGreenVideoBlackLevel);\r\n int onSetVolumeDB(Long theInstanceID, A_ARG_TYPE_Channel theChannel, Integer theDesiredVolume);\r\n int onGetSharpness(Long theInstanceID, GetSharpness_Result result);\r\n int onGetRedVideoBlackLevel(Long theInstanceID, GetRedVideoBlackLevel_Result result);\r\n int onSetRedVideoGain(Long theInstanceID, Integer theDesiredRedVideoGain);\r\n int onSetDefaultTransforms(String theDesiredDefaultTransformSettings);\r\n int onGetStateVariables(Long theInstanceID, String theStateVariableList, GetStateVariables_Result result);\r\n int onGetLoudness(Long theInstanceID, A_ARG_TYPE_Channel theChannel, GetLoudness_Result result);\r\n int onSetRedVideoBlackLevel(Long theInstanceID, Integer theDesiredRedVideoBlackLevel);\r\n int onSetVolume(Long theInstanceID, A_ARG_TYPE_Channel theChannel, Integer theDesiredVolume);\r\n int onSetBlueVideoGain(Long theInstanceID, Integer theDesiredBlueVideoGain);\r\n int onSetTransforms(Long theInstanceID, String theDesiredTransformValues);\r\n int onGetVolume(Long theInstanceID, A_ARG_TYPE_Channel theChannel, GetVolume_Result result);\r\n int onSetStateVariables(Long theInstanceID, String theRenderingControlUDN, String theServiceType, String theServiceId, String theStateVariableValuePairs, SetStateVariables_Result result);\r\n int onGetRedVideoGain(Long theInstanceID, GetRedVideoGain_Result result);\r\n int onGetBrightness(Long theInstanceID, GetBrightness_Result result);\r\n int onGetGreenVideoBlackLevel(Long theInstanceID, GetGreenVideoBlackLevel_Result result);\r\n int onSetGreenVideoGain(Long theInstanceID, Integer theDesiredGreenVideoGain);\r\n int onGetHorizontalKeystone(Long theInstanceID, GetHorizontalKeystone_Result result);\r\n int onGetTransforms(Long theInstanceID, GetTransforms_Result result);\r\n int onSelectPreset(Long theInstanceID, A_ARG_TYPE_PresetName thePresetName);\r\n }", "title": "" }, { "docid": "ad42fb2e3011344da08f342b9a1819a3", "score": "0.51152956", "text": "public interface Car {\n void driven();\n void color();\n\n}", "title": "" }, { "docid": "ba33e1c0ac7ae0561b53ca0b842cd404", "score": "0.5114963", "text": "public interface C4805x1fb91be5 {\n String realmGet$sum();\n\n String realmGet$title();\n\n void realmSet$sum(String str);\n\n void realmSet$title(String str);\n}", "title": "" }, { "docid": "baa4476ca3328d963c7a24bb39794326", "score": "0.51132697", "text": "public interface VmlAllCoreAttributes {\r\n\t\r\n /**\r\n * Gets the value of the href property.\r\n * \r\n * @return\r\n * possible object is\r\n * ;@link String }\r\n * \r\n */\r\n public String getHref();\r\n\r\n /**\r\n * Sets the value of the href property.\r\n * \r\n * @param value\r\n * allowed object is\r\n * ;@link String }\r\n * \r\n */\r\n public void setHref(String value) ;\r\n\r\n /**\r\n * Gets the value of the target property.\r\n * \r\n * @return\r\n * possible object is\r\n * ;@link String }\r\n * \r\n */\r\n public String getTarget() ;\r\n\r\n /**\r\n * Sets the value of the target property.\r\n * \r\n * @param value\r\n * allowed object is\r\n * ;@link String }\r\n * \r\n */\r\n public void setTarget(String value) ;\r\n\r\n /**\r\n * Gets the value of the clazz property.\r\n * \r\n * @return\r\n * possible object is\r\n * ;@link String }\r\n * \r\n */\r\n public String getClazz() ;\r\n\r\n /**\r\n * Sets the value of the clazz property.\r\n * \r\n * @param value\r\n * allowed object is\r\n * ;@link String }\r\n * \r\n */\r\n public void setClazz(String value) ;\r\n\r\n /**\r\n * Gets the value of the title property.\r\n * \r\n * @return\r\n * possible object is\r\n * ;@link String }\r\n * \r\n */\r\n public String getTitle() ;\r\n\r\n /**\r\n * Sets the value of the title property.\r\n * \r\n * @param value\r\n * allowed object is\r\n * ;@link String }\r\n * \r\n */\r\n public void setTitle(String value) ;\r\n\r\n /**\r\n * Gets the value of the alt property.\r\n * \r\n * @return\r\n * possible object is\r\n * ;@link String }\r\n * \r\n */\r\n public String getAlt() ;\r\n\r\n /**\r\n * Sets the value of the alt property.\r\n * \r\n * @param value\r\n * allowed object is\r\n * ;@link String }\r\n * \r\n */\r\n public void setAlt(String value) ;\r\n\r\n /**\r\n * Gets the value of the coordsize property.\r\n * \r\n * @return\r\n * possible object is\r\n * ;@link String }\r\n * \r\n */\r\n public String getCoordsize() ;\r\n\r\n /**\r\n * Sets the value of the coordsize property.\r\n * \r\n * @param value\r\n * allowed object is\r\n * ;@link String }\r\n * \r\n */\r\n public void setCoordsize(String value) ;\r\n\r\n /**\r\n * Gets the value of the coordorigin property.\r\n * \r\n * @return\r\n * possible object is\r\n * ;@link String }\r\n * \r\n */\r\n public String getCoordorigin() ;\r\n\r\n /**\r\n * Sets the value of the coordorigin property.\r\n * \r\n * @param value\r\n * allowed object is\r\n * ;@link String }\r\n * \r\n */\r\n public void setCoordorigin(String value) ;\r\n\r\n /**\r\n * Gets the value of the wrapcoords property.\r\n * \r\n * @return\r\n * possible object is\r\n * ;@link String }\r\n * \r\n */\r\n public String getWrapcoords() ;\r\n\r\n /**\r\n * Sets the value of the wrapcoords property.\r\n * \r\n * @param value\r\n * allowed object is\r\n * ;@link String }\r\n * \r\n */\r\n public void setWrapcoords(String value) ;\r\n\r\n /**\r\n * Gets the value of the print property.\r\n * \r\n * @return\r\n * possible object is\r\n * ;@link org.docx4j.vml.STTrueFalse }\r\n * \r\n */\r\n public org.docx4j.vml.STTrueFalse getPrint() ;\r\n\r\n /**\r\n * Sets the value of the print property.\r\n * \r\n * @param value\r\n * allowed object is\r\n * ;@link org.docx4j.vml.STTrueFalse }\r\n * \r\n */\r\n public void setPrint(org.docx4j.vml.STTrueFalse value) ;\r\n\r\n /**\r\n * Gets the value of the style property.\r\n * \r\n * @return\r\n * possible object is\r\n * ;@link String }\r\n * \r\n */\r\n public String getStyle() ;\r\n\r\n /**\r\n * Sets the value of the style property.\r\n * \r\n * @param value\r\n * allowed object is\r\n * ;@link String }\r\n * \r\n */\r\n public void setStyle(String value) ;\r\n\r\n /**\r\n * Gets the value of the vmlId property.\r\n * \r\n * @return\r\n * possible object is\r\n * ;@link String }\r\n * \r\n */\r\n public String getVmlId() ;\r\n\r\n /**\r\n * Sets the value of the vmlId property.\r\n * \r\n * @param value\r\n * allowed object is\r\n * ;@link String }\r\n * \r\n */\r\n public void setVmlId(String value) ;\r\n\r\n /**\r\n * Optional String\r\n * \r\n * @return\r\n * possible object is\r\n * ;@link String }\r\n * \r\n */\r\n public String getSpid() ;\r\n\r\n /**\r\n * Sets the value of the spid property.\r\n * \r\n * @param value\r\n * allowed object is\r\n * ;@link String }\r\n * \r\n */\r\n public void setSpid(String value) ;\r\n\r\n /**\r\n * Shape Handle Toggle\r\n * \r\n * @return\r\n * possible object is\r\n * ;@link org.docx4j.vml.officedrawing.STTrueFalse }\r\n * \r\n */\r\n public org.docx4j.vml.officedrawing.STTrueFalse getOned() ;\r\n\r\n /**\r\n * Sets the value of the oned property.\r\n * \r\n * @param value\r\n * allowed object is\r\n * ;@link org.docx4j.vml.officedrawing.STTrueFalse }\r\n * \r\n */\r\n public void setOned(org.docx4j.vml.officedrawing.STTrueFalse value) ;\r\n\r\n /**\r\n * Regroup ID\r\n * \r\n * @return\r\n * possible object is\r\n * ;@link BigInteger }\r\n * \r\n */\r\n public BigInteger getRegroupid() ;\r\n\r\n /**\r\n * Sets the value of the regroupid property.\r\n * \r\n * @param value\r\n * allowed object is\r\n * ;@link BigInteger }\r\n * \r\n */\r\n public void setRegroupid(BigInteger value) ;\r\n\r\n /**\r\n * Double-click Notification Toggle\r\n * \r\n * @return\r\n * possible object is\r\n * ;@link org.docx4j.vml.officedrawing.STTrueFalse }\r\n * \r\n */\r\n public org.docx4j.vml.officedrawing.STTrueFalse getDoubleclicknotify() ;\r\n\r\n /**\r\n * Sets the value of the doubleclicknotify property.\r\n * \r\n * @param value\r\n * allowed object is\r\n * ;@link org.docx4j.vml.officedrawing.STTrueFalse }\r\n * \r\n */\r\n public void setDoubleclicknotify(org.docx4j.vml.officedrawing.STTrueFalse value) ;\r\n\r\n /**\r\n * Button Behavior Toggle\r\n * \r\n * @return\r\n * possible object is\r\n * ;@link org.docx4j.vml.officedrawing.STTrueFalse }\r\n * \r\n */\r\n public org.docx4j.vml.officedrawing.STTrueFalse getButton() ;\r\n\r\n /**\r\n * Sets the value of the button property.\r\n * \r\n * @param value\r\n * allowed object is\r\n * ;@link org.docx4j.vml.officedrawing.STTrueFalse }\r\n * \r\n */\r\n public void setButton(org.docx4j.vml.officedrawing.STTrueFalse value) ;\r\n\r\n /**\r\n * Hide Script Anchors\r\n * \r\n * @return\r\n * possible object is\r\n * ;@link org.docx4j.vml.officedrawing.STTrueFalse }\r\n * \r\n */\r\n public org.docx4j.vml.officedrawing.STTrueFalse getUserhidden() ;\r\n\r\n /**\r\n * Sets the value of the userhidden property.\r\n * \r\n * @param value\r\n * allowed object is\r\n * ;@link org.docx4j.vml.officedrawing.STTrueFalse }\r\n * \r\n */\r\n public void setUserhidden(org.docx4j.vml.officedrawing.STTrueFalse value) ;\r\n\r\n /**\r\n * Graphical Bullet\r\n * \r\n * @return\r\n * possible object is\r\n * ;@link org.docx4j.vml.officedrawing.STTrueFalse }\r\n * \r\n */\r\n public org.docx4j.vml.officedrawing.STTrueFalse getBullet() ;\r\n\r\n /**\r\n * Sets the value of the bullet property.\r\n * \r\n * @param value\r\n * allowed object is\r\n * ;@link org.docx4j.vml.officedrawing.STTrueFalse }\r\n * \r\n */\r\n public void setBullet(org.docx4j.vml.officedrawing.STTrueFalse value) ;\r\n\r\n /**\r\n * Horizontal Rule Toggle\r\n * \r\n * @return\r\n * possible object is\r\n * ;@link org.docx4j.vml.officedrawing.STTrueFalse }\r\n * \r\n */\r\n public org.docx4j.vml.officedrawing.STTrueFalse getHr() ;\r\n\r\n /**\r\n * Sets the value of the hr property.\r\n * \r\n * @param value\r\n * allowed object is\r\n * ;@link org.docx4j.vml.officedrawing.STTrueFalse }\r\n * \r\n */\r\n public void setHr(org.docx4j.vml.officedrawing.STTrueFalse value) ;\r\n\r\n /**\r\n * Horizontal Rule Standard Display Toggle\r\n * \r\n * @return\r\n * possible object is\r\n * ;@link org.docx4j.vml.officedrawing.STTrueFalse }\r\n * \r\n */\r\n public org.docx4j.vml.officedrawing.STTrueFalse getHrstd() ;\r\n\r\n /**\r\n * Sets the value of the hrstd property.\r\n * \r\n * @param value\r\n * allowed object is\r\n * ;@link org.docx4j.vml.officedrawing.STTrueFalse }\r\n * \r\n */\r\n public void setHrstd(org.docx4j.vml.officedrawing.STTrueFalse value) ;\r\n\r\n /**\r\n * Horizontal Rule 3D Shading Toggle\r\n * \r\n * @return\r\n * possible object is\r\n * ;@link org.docx4j.vml.officedrawing.STTrueFalse }\r\n * \r\n */\r\n public org.docx4j.vml.officedrawing.STTrueFalse getHrnoshade() ;\r\n\r\n /**\r\n * Sets the value of the hrnoshade property.\r\n * \r\n * @param value\r\n * allowed object is\r\n * ;@link org.docx4j.vml.officedrawing.STTrueFalse }\r\n * \r\n */\r\n public void setHrnoshade(org.docx4j.vml.officedrawing.STTrueFalse value) ;\r\n\r\n /**\r\n * Horizontal Rule Length Percentage\r\n * \r\n * @return\r\n * possible object is\r\n * ;@link Float }\r\n * \r\n */\r\n public Float getHrpct() ;\r\n\r\n /**\r\n * Sets the value of the hrpct property.\r\n * \r\n * @param value\r\n * allowed object is\r\n * ;@link Float }\r\n * \r\n */\r\n public void setHrpct(Float value) ;\r\n\r\n /**\r\n * Horizontal Rule Alignment\r\n * \r\n * @return\r\n * possible object is\r\n * ;@link STHrAlign }\r\n * \r\n */\r\n public STHrAlign getHralign() ;\r\n\r\n /**\r\n * Sets the value of the hralign property.\r\n * \r\n * @param value\r\n * allowed object is\r\n * ;@link STHrAlign }\r\n * \r\n */\r\n public void setHralign(STHrAlign value) ;\r\n\r\n /**\r\n * Allow in Table Cell\r\n * \r\n * @return\r\n * possible object is\r\n * ;@link org.docx4j.vml.officedrawing.STTrueFalse }\r\n * \r\n */\r\n public org.docx4j.vml.officedrawing.STTrueFalse getAllowincell() ;\r\n\r\n /**\r\n * Sets the value of the allowincell property.\r\n * \r\n * @param value\r\n * allowed object is\r\n * ;@link org.docx4j.vml.officedrawing.STTrueFalse }\r\n * \r\n */\r\n public void setAllowincell(org.docx4j.vml.officedrawing.STTrueFalse value) ;\r\n\r\n /**\r\n * Allow Shape Overlap\r\n * \r\n * @return\r\n * possible object is\r\n * ;@link org.docx4j.vml.officedrawing.STTrueFalse }\r\n * \r\n */\r\n public org.docx4j.vml.officedrawing.STTrueFalse getAllowoverlap() ;\r\n\r\n /**\r\n * Sets the value of the allowoverlap property.\r\n * \r\n * @param value\r\n * allowed object is\r\n * ;@link org.docx4j.vml.officedrawing.STTrueFalse }\r\n * \r\n */\r\n public void setAllowoverlap(org.docx4j.vml.officedrawing.STTrueFalse value) ;\r\n\r\n /**\r\n * Exists In Master Slide\r\n * \r\n * @return\r\n * possible object is\r\n * ;@link org.docx4j.vml.officedrawing.STTrueFalse }\r\n * \r\n */\r\n public org.docx4j.vml.officedrawing.STTrueFalse getUserdrawn() ;\r\n\r\n /**\r\n * Sets the value of the userdrawn property.\r\n * \r\n * @param value\r\n * allowed object is\r\n * ;@link org.docx4j.vml.officedrawing.STTrueFalse }\r\n * \r\n */\r\n public void setUserdrawn(org.docx4j.vml.officedrawing.STTrueFalse value) ;\r\n\r\n /**\r\n * Border Top Color\r\n * \r\n * @return\r\n * possible object is\r\n * ;@link String }\r\n * \r\n */\r\n public String getBordertopcolor() ;\r\n\r\n /**\r\n * Sets the value of the bordertopcolor property.\r\n * \r\n * @param value\r\n * allowed object is\r\n * ;@link String }\r\n * \r\n */\r\n public void setBordertopcolor(String value) ;\r\n\r\n /**\r\n * Border Left Color\r\n * \r\n * @return\r\n * possible object is\r\n * ;@link String }\r\n * \r\n */\r\n public String getBorderleftcolor() ;\r\n\r\n /**\r\n * Sets the value of the borderleftcolor property.\r\n * \r\n * @param value\r\n * allowed object is\r\n * ;@link String }\r\n * \r\n */\r\n public void setBorderleftcolor(String value) ;\r\n\r\n /**\r\n * Bottom Border Color\r\n * \r\n * @return\r\n * possible object is\r\n * ;@link String }\r\n * \r\n */\r\n public String getBorderbottomcolor() ;\r\n\r\n /**\r\n * Sets the value of the borderbottomcolor property.\r\n * \r\n * @param value\r\n * allowed object is\r\n * ;@link String }\r\n * \r\n */\r\n public void setBorderbottomcolor(String value) ;\r\n\r\n /**\r\n * Border Right Color\r\n * \r\n * @return\r\n * possible object is\r\n * ;@link String }\r\n * \r\n */\r\n public String getBorderrightcolor() ;\r\n\r\n /**\r\n * Sets the value of the borderrightcolor property.\r\n * \r\n * @param value\r\n * allowed object is\r\n * ;@link String }\r\n * \r\n */\r\n public void setBorderrightcolor(String value) ;\r\n\r\n /**\r\n * Diagram Node Layout Identifier\r\n * \r\n * @return\r\n * possible object is\r\n * ;@link BigInteger }\r\n * \r\n */\r\n public BigInteger getDgmlayout() ;\r\n\r\n /**\r\n * Sets the value of the dgmlayout property.\r\n * \r\n * @param value\r\n * allowed object is\r\n * ;@link BigInteger }\r\n * \r\n */\r\n public void setDgmlayout(BigInteger value) ;\r\n\r\n /**\r\n * Diagram Node Identifier\r\n * \r\n * @return\r\n * possible object is\r\n * ;@link BigInteger }\r\n * \r\n */\r\n public BigInteger getDgmnodekind() ;\r\n\r\n /**\r\n * Sets the value of the dgmnodekind property.\r\n * \r\n * @param value\r\n * allowed object is\r\n * ;@link BigInteger }\r\n * \r\n */\r\n public void setDgmnodekind(BigInteger value) ;\r\n\r\n /**\r\n * Diagram Node Recent Layout Identifier\r\n * \r\n * @return\r\n * possible object is\r\n * ;@link BigInteger }\r\n * \r\n */\r\n public BigInteger getDgmlayoutmru() ;\r\n\r\n /**\r\n * Sets the value of the dgmlayoutmru property.\r\n * \r\n * @param value\r\n * allowed object is\r\n * ;@link BigInteger }\r\n * \r\n */\r\n public void setDgmlayoutmru(BigInteger value) ;\r\n\r\n /**\r\n * Text Inset Mode\r\n * \r\n * @return\r\n * possible object is\r\n * ;@link STInsetMode }\r\n * \r\n */\r\n public STInsetMode getInsetmode() ;\r\n\r\n /**\r\n * Sets the value of the insetmode property.\r\n * \r\n * @param value\r\n * allowed object is\r\n * ;@link STInsetMode }\r\n * \r\n */\r\n public void setInsetmode(STInsetMode value) ;\r\n\r\n\r\n\r\n\r\n /**\r\n * Gets the value of the filled property.\r\n * \r\n * @return\r\n * possible object is\r\n * ;@link org.docx4j.vml.STTrueFalse }\r\n * \r\n */\r\n public org.docx4j.vml.STTrueFalse getFilled() ;\r\n\r\n /**\r\n * Sets the value of the filled property.\r\n * \r\n * @param value\r\n * allowed object is\r\n * ;@link org.docx4j.vml.STTrueFalse }\r\n * \r\n */\r\n public void setFilled(org.docx4j.vml.STTrueFalse value) ;\r\n\r\n /**\r\n * Gets the value of the fillcolor property.\r\n * \r\n * @return\r\n * possible object is\r\n * ;@link String }\r\n * \r\n */\r\n public String getFillcolor() ;\r\n\r\n /**\r\n * Sets the value of the fillcolor property.\r\n * \r\n * @param value\r\n * allowed object is\r\n * ;@link String }\r\n * \r\n */\r\n public void setFillcolor(String value) ;\r\n\r\n\r\n\r\n}", "title": "" }, { "docid": "cf7d1ded36b402de8cba4a02918e12b0", "score": "0.5112288", "text": "public interface ViewBulletinPaieManager\r\n extends GenericManager<ViewBulletinPaie, Long>\r\n{\r\n\r\n public final static String SERVICE_NAME = \"ViewBulletinPaieManager\";\r\n public List<ViewBulletinPaie> getCriteres(ViewBulletinPaie critere);\r\n}", "title": "" }, { "docid": "f3eca99b64d2c685d29eb95882447ee3", "score": "0.5111397", "text": "@Override\n XYZMetadata getMetadata();", "title": "" }, { "docid": "4a48b35cae529855c749fca6598da08a", "score": "0.5110957", "text": "public interface AgentPlatform {\n\n\n /**\n * Returns a list of registered agents.\n *\n * @return the Vector object that contains the agents\n */\n public Vector<?> getAgents();\n\n /**\n * Returns an agent with the specified name.\n *\n * @return the CIAgent object or null if not found\n */\n public CIAgent getAgent(String name);\n}", "title": "" }, { "docid": "ae92e2f5c23e3d1dc8e6161dde3c6631", "score": "0.5108142", "text": "public Aluguer carroA(int op,Cliente cli,Point.Double fim)throws ElemNotFoundException{\n Aluguer a=new Aluguer(cli.getNif(),cli.getLocalizacao(),fim );\n Map<String,Veiculo> aux =getListVeiculo();\n Veiculo m=a.carroA(op,aux);\n if(!(m.getMatricula().equals(\"n/d\")) ){\n String p=achaProp(m.getMatricula());\n a.setProprietario(p);\n alugueres.add(a.clone());\n return a.clone();\n }\n else throw new ElemNotFoundException(\"Nenhum carro achado com este filtro\");\n }", "title": "" }, { "docid": "cb90f8e2885f179060defdbb15a01230", "score": "0.5105828", "text": "@Override \n public Object getComponente(String componente){\n\n return getCarroceria(componente);\n\n }", "title": "" }, { "docid": "b34923e363871190071c4a8fe1d57d16", "score": "0.51044434", "text": "public Ecec_cormasFactoryImpl() {\n\t\tsuper();\n\t}", "title": "" }, { "docid": "aa885f0c4ba0cb7b64dcf07311727888", "score": "0.5098976", "text": "public interface EstanteriaRepository {\n void getLibros(AssetManager assetManager);\n}", "title": "" }, { "docid": "d345d38c59ab28cd831f4d1cc1725237", "score": "0.5096962", "text": "public interface ContainerMeta extends Meta {\n\n /**\n * @return the name of the container.\n */\n String containerName();\n\n}", "title": "" }, { "docid": "9aa9205a41ff6b3897286fa48d9dd85a", "score": "0.5095699", "text": "public abstract AttributeUsage usage();", "title": "" }, { "docid": "3327e707e890edc29ae24ac8a3107e6e", "score": "0.50943196", "text": "public interface C5015a {\n /* renamed from: BI */\n boolean mo4499BI();\n }", "title": "" }, { "docid": "6b11ebb41b253fc42d617e18e170b808", "score": "0.5087745", "text": "public interface AbstractC8683cr {\n /* renamed from: a */\n void mo54385a(Context context, Intent intent);\n}", "title": "" }, { "docid": "760840b9d46a824d0ea1893906ccfde0", "score": "0.508533", "text": "Meta(){}", "title": "" }, { "docid": "47fb2893df92645d1712c2858d1831e2", "score": "0.50786835", "text": "public interface RelationshipsPackage extends javax.jmi.reflect.RefPackage {\n /**\n * Returns CwmAssociation class proxy object.\n * \n * @return CwmAssociation class proxy object.\n */\n public org.pentaho.pms.cwm.pentaho.meta.relationships.CwmAssociationClass getCwmAssociation();\n\n /**\n * Returns CwmAssociationEnd class proxy object.\n * \n * @return CwmAssociationEnd class proxy object.\n */\n public org.pentaho.pms.cwm.pentaho.meta.relationships.CwmAssociationEndClass getCwmAssociationEnd();\n\n /**\n * Returns CwmGeneralization class proxy object.\n * \n * @return CwmGeneralization class proxy object.\n */\n public org.pentaho.pms.cwm.pentaho.meta.relationships.CwmGeneralizationClass getCwmGeneralization();\n\n /**\n * Returns ChildElement association proxy object.\n * \n * @return ChildElement association proxy object.\n */\n public org.pentaho.pms.cwm.pentaho.meta.relationships.ChildElement getChildElement();\n\n /**\n * Returns ParentElement association proxy object.\n * \n * @return ParentElement association proxy object.\n */\n public org.pentaho.pms.cwm.pentaho.meta.relationships.ParentElement getParentElement();\n}", "title": "" }, { "docid": "8c2a0c89fa0880f158b528256346fa74", "score": "0.5075401", "text": "private DMCA() {\n }", "title": "" }, { "docid": "840918851856c1a22fbc610578169dd9", "score": "0.5070948", "text": "Behavior mo464a();", "title": "" }, { "docid": "4cec6655575251b63d8b768e080d29e2", "score": "0.50706977", "text": "UML2Factory getUML2Factory();", "title": "" }, { "docid": "395f7adac904d20ea12367e17842b52e", "score": "0.50702715", "text": "Metadata metadata();", "title": "" }, { "docid": "7fa5e88c6df6270299b3d8804108aa44", "score": "0.50684494", "text": "public interface OrdnanceManager {\n\n /**\n * Adds a shell to the map.\n * \n * @param shell\n * the shell.\n */\n public void createShell(Shell shell);\n\n /**\n * Adds an ordnance effect to the map.\n * \n * @param effect\n * the effect.\n */\n public void createOrdnanceEffect(OrdnanceEffect effect);\n\n /**\n * Adds a cobalt explosive effect.\n * \n * @param x\n * the x position of the effect.\n * @param y\n * the y position of the effect.\n * @param potency\n * the potency of the effect.\n */\n public void createCobaltOrdnanceEffect(Integer x, Integer y, Integer potency);\n\n /**\n * Adds an explosive ordnance effect.\n * \n * @param x\n * the x position of the effect.\n * @param y\n * the y position of the effect.\n * @param potency\n * the potency of the effect.\n */\n public void createExplosiveOrdnanceEffect(Integer x, Integer y,\n Integer potency);\n\n /**\n * Returns the set of active shells.\n * \n * @return the set of active shells.\n */\n public List<Shell> getShells();\n\n /**\n * Returns the set of active cobalt ordnance effects.\n * \n * @return the set of cobalt effects.\n */\n public List<CobaltOrdnanceEffect> getCobaltOrdnanceEffects();\n\n /**\n * Returns the set of explosive ordnance effects.\n * \n * @return the set of explosive effects.\n */\n public List<ExplosiveOrdnanceEffect> getExplosiveOrdnanceEffects();\n}", "title": "" }, { "docid": "8a0753428a030f64169fed3482ba1657", "score": "0.5066954", "text": "public abstract Result mo24942a();", "title": "" }, { "docid": "525d2fd0bb4d2c556220282bd343b49b", "score": "0.506648", "text": "public interface MeasuresCollectionInteractor {\n void seekForConsent(WeakReference<Activity> reference);\n void doObjetiveDataCollection(String posture, String compoundAct,String userName);\n void doRestar();\n void doInterruption();\n void doDisconnect();\n}", "title": "" }, { "docid": "39b783dc03ecbdfd133afa8b5604dd34", "score": "0.50649184", "text": "public interface Car extends Rentable{\n public String getRegistration();\n public int getCapacity();\n public int getCurrentFuelLoad();\n public boolean isFull();\n public int drive(final int drive);\n public int addFuel(final int fuelAmount);\n public int addFuel();\n\n}", "title": "" }, { "docid": "3696aec06cbfe1c70760de2b63d3d850", "score": "0.50613946", "text": "CadenceFactory getCadenceFactory();", "title": "" }, { "docid": "145e423b9e641d8aa977b7186e858ce9", "score": "0.506138", "text": "public interface InitialService\r\n{\r\n\t/**\r\n\t * Inital ACA system when user add a agency.\r\n\t * \r\n\t * @param servProvCode service provider code\r\n\t * @throws AAException\r\n\t */\r\n\tvoid initACA(String servProvCode) throws AAException;\r\n}", "title": "" }, { "docid": "5d0c14e2de48b1d14cff853dc08a588f", "score": "0.505945", "text": "public interface MinstrelObject extends Value {\n\n Value callMethod(String methodName, ExecutionContext context, Environment methodEnvironment);\n}", "title": "" }, { "docid": "7a875c24e4293352b7a1ef87ac37ef9a", "score": "0.50584644", "text": "public interface DataObjectAttribute extends MetadataCommon {\n\n /**\n * Gets the data object type\n *\n * <p>\n * Gets the data object type to which this attribute belongs.\n * </p>\n *\n * @return class type\n */\n\tClass<?> getOwningType();\n\n /**\n * Gets the display attribute name.\n *\n * <p>\n * To be used on attributes which have an associated business key that is shown to users rather than the \"internal\"\n * key which is likely a meaningless (to the users) sequence number.\n * </p>\n *\n * @return user friendly business key\n */\n\tString getDisplayAttributeName();\n\n /**\n * Gets the maximum length.\n *\n * <p>\n * The maximum length value which will be accepted into this field.\n * </p>\n *\n * @return maximum length\n */\n\tLong getMaxLength();\n\n /**\n * Gets the minimum length.\n *\n * <p>\n * The minimum length value which will be accepted into this field.\n * </p>\n *\n * @return minimum length\n */\n\tLong getMinLength();\n\n /**\n * Determines if attribute is case insensitive.\n *\n * <p>\n * Whether this attribute should be treated as case insensitive when performing lookups and searches.\n * </p>\n *\n * @return attribute case insensitive\n */\n\tboolean isCaseInsensitive();\n\n /**\n * Determines if attribute should be forced to upper case.\n *\n * <p>\n * Whether this attribute should be forced to upper case before being sent to the {@link PersistenceProvider}.\n * </p>\n *\n * @return attribute forced upper case\n */\n\tboolean isForceUppercase();\n\n /**\n * Determines if attribute is required.\n *\n * <p>\n * Whether (at the data level) this attribute must have a non-null value.\n * </p>\n *\n * @return attribute is required\n */\n\tboolean isRequired();\n\n /**\n * BETA: Gets the bean name.\n *\n * <p>\n * The bean name (in the UIF data dictionary), which checks the entered value's characters for correctness.\n * </p>\n *\n * @return bean name\n */\n @Beta\n\tString getValidCharactersConstraintBeanName();\n\n /**\n * Gets the property editor.\n *\n * <p>\n * To be used by the persistence layer when loading and persisting the data.\n * (E.g., strip extra characters from phone numbers to leave only the digits for storage in the database.).\n * </p>\n *\n * @return property editor\n */\n\tPropertyEditor getPropertyEditor();\n\n /**\n * Determines attribute case insensitivity.\n *\n * <p>\n * Whether this attribute is protected at the persistence level and should be protected by default when included on\n * user interfaces.\n * </p>\n *\n * @return attribute case insensitivity\n */\n\tboolean isSensitive();\n\n /**\n * Gets the values if a drop-down.\n *\n * <p>\n * If this field should be rendered using a drop-down list, specify the instance on this property.\n * </p>\n *\n * @return drop-down values\n */\n\tKeyValuesFinder getValidValues();\n\n /**\n * Gets the derived krad data type.\n *\n * <p>\n * The derived krad-data data type used by the UIF to help generate the appropriate control and perform default\n * validation.\n * </p>\n *\n * @return derived keard data type\n */\n DataType getDataType();\n\n /**\n * Determines whether data object is persistent.\n *\n * <p>\n * Whether or not this attribute of the data object is saved to persistent storage when saved via the\n * {@link DataObjectService}.\n * </p>\n *\n * @return whether data object is persistent\n */\n\tboolean isPersisted();\n\n /**\n * Gets class type object is inherited from.\n *\n * <p>\n * If this attribute is inherited from a different data object, that object's type. Otherwise null.\n * </p>\n *\n * @return class type inherited from\n */\n\tClass<?> getInheritedFromType();\n\n /**\n * Gets inherited attribute name.\n *\n * <p>\n * If this attribute is inherited from a different data object, the source attribute name. Otherwise null.\n * </p>\n *\n * @return inherited attribute name\n */\n\tString getInheritedFromAttributeName();\n\n /**\n * Gets inherited parent attribute name.\n *\n * <p>\n * If this attribute is inherited from a different data object, the attribute name on the parent object. Otherwise\n * null.\n * </p>\n *\n * @return inherited parent attribute name\n */\n\tString getInheritedFromParentAttributeName();\n\n /**\n * Determines whether attribute is inherited.\n *\n * <p>\n * Whether this attribute is inherited from a different data object.\n * </p>\n *\n * @return whether attribute is inherited\n */\n\tboolean isInherited();\n\n /**\n * Gets original data object.\n *\n * <p>\n * Obtains the \"original\" data object attribute in a chain of embedded attribute definitions.\n * </p>\n *\n * @return original data object\n */\n\tDataObjectAttribute getOriginalDataObjectAttribute();\n\n /**\n * BETA: Gets the display hints.\n *\n * <p>\n * Returns a set of display hints which can be used by the UIF layer when displaying these fields.\n * </p>\n *\n * @return display hints\n */\n @Beta\n\tSet<UifDisplayHint> getDisplayHints();\n}", "title": "" }, { "docid": "233956467f45c4979f044171e348151f", "score": "0.5057637", "text": "IBinder mo389a();", "title": "" }, { "docid": "28df68a399ef6d5cb19af34ba91d69be", "score": "0.50567627", "text": "public abstract void gerak();", "title": "" }, { "docid": "ce3576aa89016f5f9d263c32c1e3a870", "score": "0.50546646", "text": "public interface IHpdc extends IFunctionality, IControl{\n\n\tpublic IRI iri();\n\n public void addUsesCompressor_run_command (ICompressor_run_command parameter);\n\n\tpublic Set<ICompressor_run_command> getUsesCompressor_run_command();\n\n public void addUsesCompressor_run_status (ICompressor_run_status parameter);\n\n\tpublic Set<ICompressor_run_status> getUsesCompressor_run_status();\n\n public void addUsesDischarge_air_temperature_sensor (IDischarge_air_temperature_sensor parameter);\n\n\tpublic Set<IDischarge_air_temperature_sensor> getUsesDischarge_air_temperature_sensor();\n\n public void addUsesDischarge_air_temperature_setpoint (IDischarge_air_temperature_setpoint parameter);\n\n\tpublic Set<IDischarge_air_temperature_setpoint> getUsesDischarge_air_temperature_setpoint();\n\n public void addUsesReversing_valve_command (IReversing_valve_command parameter);\n\n\tpublic Set<IReversing_valve_command> getUsesReversing_valve_command();\n\n public void addUsesOptionalsCompressor_speed_percentage_command (ICompressor_speed_percentage_command parameter);\n\n\tpublic Set<ICompressor_speed_percentage_command> getUsesOptionalsCompressor_speed_percentage_command();\n\n public void addUsesOptionalsCooling_thermal_power_capacity (ICooling_thermal_power_capacity parameter);\n\n\tpublic Set<ICooling_thermal_power_capacity> getUsesOptionalsCooling_thermal_power_capacity();\n\n public void addUsesOptionalsHeating_thermal_power_capacity (IHeating_thermal_power_capacity parameter);\n\n\tpublic Set<IHeating_thermal_power_capacity> getUsesOptionalsHeating_thermal_power_capacity();\n\n}", "title": "" }, { "docid": "e6f894e05f19e0d56e701da8be223600", "score": "0.50510836", "text": "@FunctionalInterface \ninterface IChasis{\n\tvoid createChasis(); //Single abstract method\n\t\n\tdefault void show() {\n\t\tSystem.out.println(\"showing from Chasis\");\n\t}\n}", "title": "" }, { "docid": "f514027877eabded86ffbc2d1484b287", "score": "0.5049262", "text": "public interface Genome extends MLMethod {\n\n /**\n * Copy from the specified genome into this one.\n * <p/>\n * @param source\n * The source genome.\n */\n void copy(Genome source);\n\n /**\n * Get the adjusted score, this considers old-age penalties and youth\n * bonuses. If there are no such bonuses or penalties, this is the same as\n * the score.\n * <p/>\n * @return The adjusted score.\n */\n double getAdjustedScore();\n\n /**\n * @return The birth generation (or iteration).\n */\n int getBirthGeneration();\n\n /**\n * @return The population that this genome belongs to.\n */\n Population getPopulation();\n\n /**\n * @return The score for this genome.\n */\n double getScore();\n\n /**\n * Set the adjusted score.\n * <p/>\n * @param adjustedScore\n * The adjusted score.\n */\n void setAdjustedScore(double adjustedScore);\n\n /**\n * Set the birth genertion (or iteration).\n * <p/>\n * @param birthGeneration\n * The birth generation.\n */\n void setBirthGeneration(int birthGeneration);\n\n /**\n * Set the population that this genome belongs to.\n * <p/>\n * @param population\n * The population that this genome belongs to.\n */\n void setPopulation(Population population);\n\n /**\n * Set the score.\n * <p/>\n * @param score\n * The new score.\n */\n void setScore(double score);\n\n /**\n * @return Return the size of this genome. This size is a relative number\n * that indicates the complexity of the genome.\n */\n int size();\n\n /**\n * @return The species for this genome.\n */\n Species getSpecies();\n\n /**\n * Set the species for this genome.\n * <p/>\n * @param s The species.\n */\n void setSpecies(Species s);\n}", "title": "" } ]
c90ccc514480730b3bfa72fc82961dba
required .client2server.PlayerNameInfo playerNameInfo = 1;
[ { "docid": "d9d446d414ac502ca42b2792d75159eb", "score": "0.0", "text": "public pb4client.PlayerNameInfo getPlayerNameInfo() {\n return playerNameInfo_ == null ? pb4client.PlayerNameInfo.getDefaultInstance() : playerNameInfo_;\n }", "title": "" } ]
[ { "docid": "898b4ae401e17f8f6b0a18fe8a8e49ea", "score": "0.6829439", "text": "Player(String name){\r\n this.name = name;\r\n }", "title": "" }, { "docid": "e267f87d219262ba59832b23a71de31e", "score": "0.6780599", "text": "public void setClientPlayer(String clientPlayer) { this.clientPlayer = clientPlayer; }", "title": "" }, { "docid": "18db6c3ed3dc3804db16d1b2e53e1cda", "score": "0.6691767", "text": "public String getPlayerName(){\r\n return this.playerName;\r\n }", "title": "" }, { "docid": "488697f7e071a69314ffa04120e5a3f8", "score": "0.6674651", "text": "void setPlayerName(String playerName);", "title": "" }, { "docid": "b0c04fd3a86dc50e7bb0e431eca8f111", "score": "0.6622215", "text": "public Player(String playerName){\n this.playerName = playerName;\n }", "title": "" }, { "docid": "fded4d2a6257fc56079a5c883f69733c", "score": "0.6601955", "text": "String getPlayerName();", "title": "" }, { "docid": "fded4d2a6257fc56079a5c883f69733c", "score": "0.6601955", "text": "String getPlayerName();", "title": "" }, { "docid": "d0f4c8c06a328e2bdb88940707619eb2", "score": "0.65897274", "text": "public String getName(){\n return this.playerName;\n }", "title": "" }, { "docid": "c7ca13ec2f09523f89a40f9b35e0967b", "score": "0.65753067", "text": "cn.krossframework.proto.game.Game.Player getPlayer();", "title": "" }, { "docid": "2ca2560a164f5e49a789f450731c8cdc", "score": "0.64920294", "text": "public void setPlayerName(String playerName){\r\n this.playerName = playerName;\r\n }", "title": "" }, { "docid": "5af20bbec0da03f09a983c3c37ddef94", "score": "0.64287937", "text": "PlayerInfo getCurrentPlayer();", "title": "" }, { "docid": "bc02a29b1e58ab09af77d916e8267fd9", "score": "0.6352254", "text": "void mo13045a(Player player);", "title": "" }, { "docid": "310d0d48770b2db552cf3feec8d91a0b", "score": "0.63316125", "text": "public String getPlayerName(){\n\r\n\t\treturn \"SlikVik\";\r\n\t}", "title": "" }, { "docid": "0258a733dcd9a8d07fa85499e37158c3", "score": "0.6327628", "text": "public Player (String playerName) {\r\n\tthis.playerName = playerName;\r\n\t}", "title": "" }, { "docid": "065fe6fbdd5b1a855a711b5df087de6f", "score": "0.6310137", "text": "public Player(String name) {\r\n this.name = name;\r\n }", "title": "" }, { "docid": "a03af284ebe1c511b274b02b6c38a50d", "score": "0.62879074", "text": "public void setPlayerName( String playerName ) {\n this.playerName = playerName; \n }", "title": "" }, { "docid": "cac6050c6ef01504ebb4720b2b76d38e", "score": "0.6254156", "text": "public void setPlayer(String player) {\r\n this.player = player;\r\n }", "title": "" }, { "docid": "ec39163bc89e0345788a3b565111d61d", "score": "0.62443095", "text": "java.lang.String getPlayerName();", "title": "" }, { "docid": "ec39163bc89e0345788a3b565111d61d", "score": "0.62443095", "text": "java.lang.String getPlayerName();", "title": "" }, { "docid": "ec39163bc89e0345788a3b565111d61d", "score": "0.62443095", "text": "java.lang.String getPlayerName();", "title": "" }, { "docid": "bda14dc3ef0fb86219f6da7868d2ae78", "score": "0.6229591", "text": "public Player (String info)\r\n\t{\r\n\t\tString word [];\r\n\t\tword = info.split(\";\");\r\n\t\tthis.name = word[0];\r\n\t\tthis.userName = word[1];\r\n\t\tthis.password = word[2];\r\n\t\tthis.picName = word[3];\r\n\t\tString str = word[4];\r\n\t\tString[] data = str.split(\"\\\\|\");\r\n\t\tthis.stats = new Statistics(data);\r\n\t}", "title": "" }, { "docid": "62e689d989168d163311bd03ab2bfe7a", "score": "0.6225732", "text": "void setPlayer(String playerName) throws IOException;", "title": "" }, { "docid": "ad0915aa91c727aed3497f580b52611e", "score": "0.6218305", "text": "public Player2(String _name)\r\n\t{\r\n\t\tname = _name;\r\n\t\tisHit = false;\r\n\t\tisTurn = true;\r\n\t}", "title": "" }, { "docid": "b23a3b417b1a2eab122980416c6f1b99", "score": "0.6217591", "text": "public void setMyPlayer(Player player) {\n this.player = player;\n }", "title": "" }, { "docid": "0b9fbb6f2b1bc0790e4c1164ccf8c7a4", "score": "0.6157727", "text": "public Player(String name) {\n this.name = name;\n }", "title": "" }, { "docid": "10345267acef37daaa65ebc82ee92bd0", "score": "0.6152596", "text": "public String getPlayerName()\r\n {\r\n return this.name;\r\n }", "title": "" }, { "docid": "8ba4e4c1f34d90583897b145dfd51764", "score": "0.6145385", "text": "com.xmbl.h5.web.game.proto.PbPlayerEntity.PbPlayer getPlayer();", "title": "" }, { "docid": "8ba4e4c1f34d90583897b145dfd51764", "score": "0.6145385", "text": "com.xmbl.h5.web.game.proto.PbPlayerEntity.PbPlayer getPlayer();", "title": "" }, { "docid": "f052cb194d83f8faa330813cf66b935b", "score": "0.6124534", "text": "public FootballPlayer(String name) {\n\tthis.name = name;\n }", "title": "" }, { "docid": "b376bf95d675eaa3bae3e0e86db52d0b", "score": "0.6122176", "text": "com.maple.game.osee.proto.OseeTwoEightPublicData.RoomPlayerInfoProto getInfo();", "title": "" }, { "docid": "b9ca4f0fdf3b31c85fc3b0174ee2fbd0", "score": "0.6121552", "text": "Player getPlayer();", "title": "" }, { "docid": "4ee90b0dcffa2641946599523163d926", "score": "0.61105007", "text": "public static String getName(){\n\t\treturn playerName;\t\n\t}", "title": "" }, { "docid": "a3ce38fd0e379f56ce7284a8de192459", "score": "0.60868186", "text": "public Player getMyPlayer() {\n return player;\n }", "title": "" }, { "docid": "5f69934998e0946031e8abc9563bc29e", "score": "0.60270804", "text": "String getPlayerDetails(String username);", "title": "" }, { "docid": "7077763d16b574ce5b2b635bb978958a", "score": "0.6019141", "text": "public void SetClient(String m){name=m;}", "title": "" }, { "docid": "35ab6c249e4994df4f1028f18b4a36f5", "score": "0.60020125", "text": "public ClientConnected(String playerName)\n\t{\n\t\tthis.playerName = playerName;\n\t}", "title": "" }, { "docid": "a092823dfc3f692f926ea59096b0006f", "score": "0.5998879", "text": "public Player (String name)\n {\n // initialise instance variables\n this.position = 0;\n this.name = name;\n }", "title": "" }, { "docid": "614c7e92eecb99bcb2a617e548abb7e0", "score": "0.5993569", "text": "public interface IPlayer {\r\n\r\n}", "title": "" }, { "docid": "06ad85aa548e841398cfca314e8dffde", "score": "0.5977857", "text": "public String getName()\n {\n return playerName;\n }", "title": "" }, { "docid": "c82d46e92ba37f0d50bc44929e48cf50", "score": "0.5944268", "text": "public String getPlayername() {\n return this.playername;\n }", "title": "" }, { "docid": "dfeec345dd7d0da436cf496b834882a0", "score": "0.5933191", "text": "public String getPlayerName() {\n return playerName;\n }", "title": "" }, { "docid": "dfeec345dd7d0da436cf496b834882a0", "score": "0.5933191", "text": "public String getPlayerName() {\n return playerName;\n }", "title": "" }, { "docid": "e1e66cf9707d131a5c20e988a0664211", "score": "0.5916988", "text": "void addPlayer(IPlayer player);", "title": "" }, { "docid": "5d90b5a92f7dc399e95b7f12c1adf7e5", "score": "0.5915806", "text": "@Override\n\tpublic String getName() {\n\t\treturn \"Aggresive Player\";\n\t}", "title": "" }, { "docid": "6091c7254856a9b80cba32ae980d8df7", "score": "0.59144014", "text": "cn.krossframework.proto.game.Game.PlayerOrBuilder getPlayerOrBuilder();", "title": "" }, { "docid": "6a8186107e9c65148b1c6f1e974c7dc6", "score": "0.58926135", "text": "public Builder setPlayerNameInfo(pb4client.PlayerNameInfo value) {\n if (playerNameInfoBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n playerNameInfo_ = value;\n onChanged();\n } else {\n playerNameInfoBuilder_.setMessage(value);\n }\n bitField0_ |= 0x00000001;\n return this;\n }", "title": "" }, { "docid": "165b7e37c09b2afcaef2014b53f08d69", "score": "0.58914304", "text": "public Player(String name)\n {\n this.name = name;\n reader = new InputReader();\n }", "title": "" }, { "docid": "f31c5debc3faee925d5d0818b59be544", "score": "0.5888616", "text": "public Player getPlayer();", "title": "" }, { "docid": "8af281f12d45d8c4b4b4510a27ae6800", "score": "0.58877105", "text": "public String getClientName()\n\t{\n\t\treturn playerName;\n\t}", "title": "" }, { "docid": "2be2148f662faf8298706043d310fe27", "score": "0.58842266", "text": "PlayerService playerService();", "title": "" }, { "docid": "8ff680d9f7963940d4b804651027586d", "score": "0.5880848", "text": "void Use(Player player);", "title": "" }, { "docid": "49f6b3d503b0ed645c1e44671208b62d", "score": "0.58700657", "text": "public Player(String name){\n this.name = name;\n this.topSpeed = 0f;\n this.distanceTraveled = 0f;\n }", "title": "" }, { "docid": "be1dba7187f90544341373755cc95377", "score": "0.5856831", "text": "public Player getPlayer()\n {\n \t return _player;\n }", "title": "" }, { "docid": "57dd45313f7eaf763abdb6336ec1b876", "score": "0.5856048", "text": "private void initPlayerInfo() {\n String pName = askPlayerName();\n Token pToken = askToken();\n Player newPlayer = new Player(pName, pToken);\n players.add(newPlayer);\n// System.out.println(newPlayer); // uncomment to see what the player initialized information looks like\n }", "title": "" }, { "docid": "813f2d9b9f051334f60e58d500abb019", "score": "0.5854543", "text": "public Player(String name, boolean client)\r\n\t{\r\n\t\tthis.name=name;\r\n\r\n\t\t//Position par défaut du joueur lorsqu'il apparaît\r\n\t\tx = 190;\r\n\t\ty = 400;\r\n\r\n\t\tlife = 10000;\r\n\t\tscore = 0;\r\n\t\txp=0;\r\n\t\tpShip = Ship.BASIC_PLAYER;\r\n\t\tlastShotTime = System.currentTimeMillis();\r\n\t\tavatar = Ship.BASIC_PLAYER.getSprite();\r\n\t\tX = x-avatar.getWidth()/2;\r\n\t\tY = y-avatar.getHeight()/2+HITCASE_CENTERING;\r\n\t}", "title": "" }, { "docid": "909f9307633d53aedcc000a381316a24", "score": "0.58535624", "text": "public void newPlayerRegistrationLogin() {}", "title": "" }, { "docid": "54cd8f9fe2d5c8e99f8d47eadbd80a3a", "score": "0.5849975", "text": "public String getClient(){return name;}", "title": "" }, { "docid": "b70ca60be09e619a9b817b2d4cee91dc", "score": "0.5848597", "text": "public void onPlayer(String playerName, String board);", "title": "" }, { "docid": "da62283766beefcca7bbfd913d992ff3", "score": "0.58422023", "text": "public String getPlayerName() {\n return playerName;\n }", "title": "" }, { "docid": "5ec1f59c49a412915b1aff86bc4e3122", "score": "0.5835676", "text": "public Player getPlayer1() {\n return this.player1;\n }", "title": "" }, { "docid": "e8b17828bb20c23b34364b797036bc1b", "score": "0.5828077", "text": "public int getPlayerNumber() { return playerNumber; }", "title": "" }, { "docid": "f51d69c004ffbb377e37d8e4dcd394ef", "score": "0.58279526", "text": "@Override\n\tpublic void playerMessageReceived(String arg0, String arg1) {\n\t\t\n\t}", "title": "" }, { "docid": "151c8d5367c5c2be8798b9c1ca080518", "score": "0.5805093", "text": "uk.me.uohiro.protobuf.model.ch10.ex1.v2.Name getName();", "title": "" }, { "docid": "4074d12f86272f74e7bb62ae4182b24f", "score": "0.58013695", "text": "User(String player)\n {\n if ( player.equals(\"CONSOLE\") )\n {\n sender = Bukkit.getConsoleSender();\n base = null;\n econ = SinkLibrary.getEconomy();\n playerName = \"Console\";\n return;\n }\n base = BukkitUtil.getPlayer(player);\n econ = SinkLibrary.getEconomy();\n playerName = player;\n sender = base;\n }", "title": "" }, { "docid": "6552380f7f1cca6ff538ac9e1e9d6041", "score": "0.579838", "text": "public Player()\n {\n this.name = \"player\";\n this.score = 0.0;\n }", "title": "" }, { "docid": "e95b2fc519d32ca9fb774453cbc13f13", "score": "0.57882774", "text": "public void setPlayerName (String playerName) {\n\t\tthis.playerName=playerName;\n\t}", "title": "" }, { "docid": "9c4a0245dbedfb094c37f0d20de01528", "score": "0.5783817", "text": "public PictionaryPlayer(String name) {\r\n\t\tthis.name = name;\r\n\t}", "title": "" }, { "docid": "d4039d7b081873e1eeb421edd9a2880e", "score": "0.57833385", "text": "public Player(String name) {\n\t\tthis.name = name;\n\t}", "title": "" }, { "docid": "278a779d72a7e993ee73c00850d77a8d", "score": "0.5776659", "text": "com.xmbl.h5.web.game.proto.PbPlayerEntity.PbPlayerOrBuilder getPlayerOrBuilder();", "title": "" }, { "docid": "278a779d72a7e993ee73c00850d77a8d", "score": "0.5776659", "text": "com.xmbl.h5.web.game.proto.PbPlayerEntity.PbPlayerOrBuilder getPlayerOrBuilder();", "title": "" }, { "docid": "6e695963d3d23b29b81ce9d14c1ae865", "score": "0.5774689", "text": "public void onPlayerLogin(OnPlayerLoginEventArgs eventArgs) {\n }", "title": "" }, { "docid": "506a206399f37d45ebd6dcfc39a868be", "score": "0.5772125", "text": "public void setPlayerFirstName(String playerFirstName)\r\n {\n this.playerFirstName = playerFirstName;\r\n }", "title": "" }, { "docid": "802caa468783f8df4650c175aafe8da6", "score": "0.57719636", "text": "public Player(){\n this.value = 0;\n this.playerID = 0;\n this.name = null;\n this.surname = null;\n this.email = null;\n this.password = null;\n }", "title": "" }, { "docid": "050166018c9755c1ebad527a4f82e34b", "score": "0.5770818", "text": "public Player getPlayer()\n {\n return player;\n }", "title": "" }, { "docid": "0e23721d5674757be3a18b09da65bb1f", "score": "0.5764896", "text": "public PlayersChat(String name) {\r\n this.name = name;\r\n }", "title": "" }, { "docid": "4b83f612ff7a8838f50c57d5151ad626", "score": "0.57623994", "text": "public void updatePlayerName(Player player){\n \tUUID id = player.getUniqueId();\r\n \tif(!getSave().getString(id + \".name\").equals(player.getName())){\r\n \t\tgetSave().set(id + \".name\", player.getName());\r\n \t \tsaveSave();\r\n \t}\r\n }", "title": "" }, { "docid": "e5e731cac9613efbcea2eead2cca6625", "score": "0.5758415", "text": "public Player(String aName)\r\n {\r\n NAME = aName;\r\n score = 0;\r\n }", "title": "" }, { "docid": "81017883f76fd6fde2d26eccc3c48089", "score": "0.5741212", "text": "public void setMainPlayerName(String name){\n playersName.add(name);\n\n }", "title": "" }, { "docid": "1329d0d331b48fd24617936c8f683bcd", "score": "0.57402575", "text": "public void setPlayer(Player player) {\r\n this.player = player;\r\n }", "title": "" }, { "docid": "f1b2cc6916563c2cb0ef930ef794a996", "score": "0.5736669", "text": "public interface Place {\n Player.Status comeHere(Player player);\n\n}", "title": "" }, { "docid": "9d171d150419c2a48d7e42dfacce49a0", "score": "0.5735291", "text": "public String toString(){\n return this.playerName;\n }", "title": "" }, { "docid": "e2dfb98017e260d6d3908a2aee4dd99c", "score": "0.57283884", "text": "public void setPlayer(String address) {\n\t\tplayerAddress = address;\n\t}", "title": "" }, { "docid": "ff19b923534625b926b51f8f8d979329", "score": "0.5728379", "text": "com.google.protobuf.ByteString\n getPlayerNameBytes();", "title": "" }, { "docid": "4b2fd1a330bd3116edde3944d0be722c", "score": "0.5727001", "text": "Player (String playerName, int playerNumber){\n this.playerName = playerName;\n this.playerNumber = playerNumber;\n points = 0;\n //buildings = 0;\n //road = 0;\n knights = 0;\n turn = 0;\n //devCard = 0;\n hasToDiscard = false;\n }", "title": "" }, { "docid": "aab61c92b70bfe9a0878345503963e6c", "score": "0.5725507", "text": "public String getPlayerFirstName()\r\n {\n return playerFirstName;\r\n }", "title": "" }, { "docid": "7b76feb268c7fc6ee54567df338a0118", "score": "0.57121575", "text": "public String getPlayerName() \n\t{\n\t\treturn playerName;\n\t}", "title": "" }, { "docid": "c8deb5f4417a3e1271feb67b11ef5d0f", "score": "0.5706931", "text": "public Player(String name){\n this.name = name;\n color = null;\n game = null;\n resigned = null;\n }", "title": "" }, { "docid": "bc14f8433aefaae5187fbe1edad3453a", "score": "0.57036257", "text": "public player getPlayerOne(){\r\n\t\treturn playerOne;\r\n\t}", "title": "" }, { "docid": "97da012b94769a97eba0566b3e178ce8", "score": "0.5696044", "text": "public Player(String name){\n points = 0;\n\n this.name = name;\n }", "title": "" }, { "docid": "51be89aabadadcd4197bf4027b6d72b8", "score": "0.56940734", "text": "public String getPlayerName()\n\t{\n\t\treturn playerName;\n\t}", "title": "" }, { "docid": "7ad7b93146838e10b981ccc7d548f102", "score": "0.5693927", "text": "playerIdName(long aId) {\n/* 846 */ this.id = aId;\n/* 847 */ this.name = PermissionsByPlayer.getPlayerOrGroupName(this.id);\n/* */ }", "title": "" }, { "docid": "164c5ffd1223101a1e3bb90a9ff09d35", "score": "0.5691863", "text": "public void promptForName(int player)\n\t{\n\t\twindow.println(\"Player \" + player + \" name: \");\n\t\tname = window.nextLine();\n\t\tnetwork.sendMessage(RECIEVE_NAME + \"\" + name);\n\t}", "title": "" }, { "docid": "e8f96b034aab749abfc885175d6d41fb", "score": "0.56917423", "text": "public String getPlayer() {\n\t\treturn playerAddress;\n\t}", "title": "" }, { "docid": "e7f971834dd90ffbf0848d8a7fd18a80", "score": "0.56896174", "text": "Player getCurrentPlayer();", "title": "" }, { "docid": "8863b96e3da580ea7256679b04ed79d6", "score": "0.5683569", "text": "public abstract void handleServerMessage(REQ message, EntityPlayer player);", "title": "" }, { "docid": "6311d3d0aa40428cd5fbda974d8df210", "score": "0.56832266", "text": "public void addPlayer(IPlayer newPlayer);", "title": "" }, { "docid": "fc437ca4baf9552e7622bc751017a65d", "score": "0.5675642", "text": "public void initializeOnePlayer() {\n String nameOfBlackPlayer;\n System.out.println(\"player black please enter your name :\");\n //nameOfBlackPlayer = \"Sajad\";\n nameOfBlackPlayer=sc.next();\n playerWhite = new BotPlayer(\"AI\", \"white\");\n playerBlack = new Player(nameOfBlackPlayer, \"black\");\n }", "title": "" }, { "docid": "f7eabcef994435be64bf913f0d8831da", "score": "0.5671583", "text": "public void setPlayer(Player player) {\n this.player = player;\n }", "title": "" }, { "docid": "f7eabcef994435be64bf913f0d8831da", "score": "0.5671583", "text": "public void setPlayer(Player player) {\n this.player = player;\n }", "title": "" }, { "docid": "cfb1042c1ef611065126526ddf6d4ecb", "score": "0.56696963", "text": "public GamePlayer getPlayer(){\n return player;\n }", "title": "" }, { "docid": "db3c9d37e704c4ada782100805da4983", "score": "0.5667233", "text": "@Override\n\tpublic void playerOperation(PlayerClientComplete player) {\n\t\t\n\t}", "title": "" } ]
5dc0770f287a07960cc4e932ca9f10d6
repeated .com.pokegoapi.main.ClientSpawnPointProto SpawnPoint = 4;
[ { "docid": "b7263278beec601cc265c56784b62e6d", "score": "0.0", "text": "public Builder setSpawnPoint(\n int index, com.pokegoapi.main.Map.ClientSpawnPointProto.Builder builderForValue) {\n if (spawnPointBuilder_ == null) {\n ensureSpawnPointIsMutable();\n spawnPoint_.set(index, builderForValue.build());\n onChanged();\n } else {\n spawnPointBuilder_.setMessage(index, builderForValue.build());\n }\n return this;\n }", "title": "" } ]
[ { "docid": "7289d24233e8f020468233a22709237a", "score": "0.7479642", "text": "com.pokegoapi.main.Map.ClientSpawnPointProto getSpawnPoint(int index);", "title": "" }, { "docid": "3355d0b24350cce076f954730e493f13", "score": "0.743582", "text": "private ClientSpawnPointProto(com.google.protobuf.GeneratedMessage.Builder<?> builder) {\n super(builder);\n }", "title": "" }, { "docid": "de3b450ff7e30af0b2824a5bd99616dc", "score": "0.7071453", "text": "java.util.List<? extends com.pokegoapi.main.Map.ClientSpawnPointProtoOrBuilder> \n getSpawnPointOrBuilderList();", "title": "" }, { "docid": "61e91ef1014e2d16e0d7debf8e7b5050", "score": "0.7003087", "text": "java.util.List<com.pokegoapi.main.Map.ClientSpawnPointProto> \n getSpawnPointList();", "title": "" }, { "docid": "7a75ba9ee23b6ed3563f7a2d2a149797", "score": "0.690319", "text": "com.pokegoapi.main.Map.ClientSpawnPointProto getDecimatedSpawnPoint(int index);", "title": "" }, { "docid": "45ebcc38118390e8f180df3231674d41", "score": "0.69004947", "text": "com.pokegoapi.main.Map.ClientSpawnPointProtoOrBuilder getSpawnPointOrBuilder(\n int index);", "title": "" }, { "docid": "68cce135efdbb0654a86594697fbb986", "score": "0.66958755", "text": "java.util.List<? extends com.pokegoapi.main.Map.ClientSpawnPointProtoOrBuilder> \n getDecimatedSpawnPointOrBuilderList();", "title": "" }, { "docid": "7fd7c0a90a227291870b7e52220aa381", "score": "0.6665146", "text": "public java.util.List<? extends com.pokegoapi.main.Map.ClientSpawnPointProtoOrBuilder> \n getSpawnPointOrBuilderList() {\n return spawnPoint_;\n }", "title": "" }, { "docid": "584eab07f1a96289fc6c56dfd5228f64", "score": "0.66620535", "text": "public com.pokegoapi.main.Map.ClientSpawnPointProtoOrBuilder getSpawnPointOrBuilder(\n int index) {\n return spawnPoint_.get(index);\n }", "title": "" }, { "docid": "9785fe227045ac8065cd804005f6a82c", "score": "0.6617862", "text": "public com.pokegoapi.main.Map.ClientSpawnPointProtoOrBuilder getSpawnPointOrBuilder(\n int index) {\n if (spawnPointBuilder_ == null) {\n return spawnPoint_.get(index); } else {\n return spawnPointBuilder_.getMessageOrBuilder(index);\n }\n }", "title": "" }, { "docid": "b8120363adcc276559545b968d5fffe7", "score": "0.65123075", "text": "public com.pokegoapi.main.Map.ClientSpawnPointProto getSpawnPoint(int index) {\n return spawnPoint_.get(index);\n }", "title": "" }, { "docid": "c6748599ca730dd3021cbea462b31f4f", "score": "0.6478641", "text": "java.util.List<com.pokegoapi.main.Map.ClientSpawnPointProto> \n getDecimatedSpawnPointList();", "title": "" }, { "docid": "462a4ab07e69a6c2977a70a4f8376659", "score": "0.6456308", "text": "public Builder addSpawnPoint(com.pokegoapi.main.Map.ClientSpawnPointProto value) {\n if (spawnPointBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureSpawnPointIsMutable();\n spawnPoint_.add(value);\n onChanged();\n } else {\n spawnPointBuilder_.addMessage(value);\n }\n return this;\n }", "title": "" }, { "docid": "a9de790f377d27ec473072e2f7bf1981", "score": "0.64319754", "text": "public com.pokegoapi.main.Map.ClientSpawnPointProto.Builder addSpawnPointBuilder() {\n return getSpawnPointFieldBuilder().addBuilder(\n com.pokegoapi.main.Map.ClientSpawnPointProto.getDefaultInstance());\n }", "title": "" }, { "docid": "142859c59c807b5864ea3415722edb51", "score": "0.64211106", "text": "public java.util.List<? extends com.pokegoapi.main.Map.ClientSpawnPointProtoOrBuilder> \n getSpawnPointOrBuilderList() {\n if (spawnPointBuilder_ != null) {\n return spawnPointBuilder_.getMessageOrBuilderList();\n } else {\n return java.util.Collections.unmodifiableList(spawnPoint_);\n }\n }", "title": "" }, { "docid": "c75ddb0e5b020d75c33be1ca077452e7", "score": "0.6401236", "text": "public com.pokegoapi.main.Map.ClientSpawnPointProto getSpawnPoint(int index) {\n if (spawnPointBuilder_ == null) {\n return spawnPoint_.get(index);\n } else {\n return spawnPointBuilder_.getMessage(index);\n }\n }", "title": "" }, { "docid": "d676a291dcb83aa57f81505809b740ea", "score": "0.63800365", "text": "com.pokegoapi.main.Map.ClientSpawnPointProtoOrBuilder getDecimatedSpawnPointOrBuilder(\n int index);", "title": "" }, { "docid": "aa6e864135c0d1665919718ba8204bd9", "score": "0.6366231", "text": "public java.util.List<com.pokegoapi.main.Map.ClientSpawnPointProto> getSpawnPointList() {\n return spawnPoint_;\n }", "title": "" }, { "docid": "e7a864f37bf00e0ba1284b4341140533", "score": "0.62637293", "text": "public com.pokegoapi.main.Map.ClientSpawnPointProtoOrBuilder getDecimatedSpawnPointOrBuilder(\n int index) {\n if (decimatedSpawnPointBuilder_ == null) {\n return decimatedSpawnPoint_.get(index); } else {\n return decimatedSpawnPointBuilder_.getMessageOrBuilder(index);\n }\n }", "title": "" }, { "docid": "ba80d8c45bf535a55d94763f79ac9a59", "score": "0.61600274", "text": "public java.util.List<? extends com.pokegoapi.main.Map.ClientSpawnPointProtoOrBuilder> \n getDecimatedSpawnPointOrBuilderList() {\n return decimatedSpawnPoint_;\n }", "title": "" }, { "docid": "844a32cc70928fd399b2ec0509978454", "score": "0.6152784", "text": "public com.pokegoapi.main.Map.ClientSpawnPointProtoOrBuilder getDecimatedSpawnPointOrBuilder(\n int index) {\n return decimatedSpawnPoint_.get(index);\n }", "title": "" }, { "docid": "b124b1faa95d7ac7df4d420e019a8285", "score": "0.61456496", "text": "public java.util.List<? extends com.pokegoapi.main.Map.ClientSpawnPointProtoOrBuilder> \n getDecimatedSpawnPointOrBuilderList() {\n if (decimatedSpawnPointBuilder_ != null) {\n return decimatedSpawnPointBuilder_.getMessageOrBuilderList();\n } else {\n return java.util.Collections.unmodifiableList(decimatedSpawnPoint_);\n }\n }", "title": "" }, { "docid": "e9f12cfcbff90c8f616899cc89353910", "score": "0.6128656", "text": "@Override\n\tpublic void writeSpawnData(ByteBuf buffer) {\n\t\t\n\t}", "title": "" }, { "docid": "646ce8ac81223ec1af39ebab820dc3c8", "score": "0.6043266", "text": "public Builder addDecimatedSpawnPoint(com.pokegoapi.main.Map.ClientSpawnPointProto value) {\n if (decimatedSpawnPointBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureDecimatedSpawnPointIsMutable();\n decimatedSpawnPoint_.add(value);\n onChanged();\n } else {\n decimatedSpawnPointBuilder_.addMessage(value);\n }\n return this;\n }", "title": "" }, { "docid": "dc30ea35d4cbd1868065c49565807b5a", "score": "0.6028483", "text": "public com.pokegoapi.main.Map.ClientSpawnPointProto getDecimatedSpawnPoint(int index) {\n if (decimatedSpawnPointBuilder_ == null) {\n return decimatedSpawnPoint_.get(index);\n } else {\n return decimatedSpawnPointBuilder_.getMessage(index);\n }\n }", "title": "" }, { "docid": "5a124e2e618dd45452f3f558bf947236", "score": "0.60212237", "text": "public Builder setSpawnPointIdBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n checkByteStringIsUtf8(value);\n \n spawnPointId_ = value;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "5a124e2e618dd45452f3f558bf947236", "score": "0.60212237", "text": "public Builder setSpawnPointIdBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n checkByteStringIsUtf8(value);\n \n spawnPointId_ = value;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "74a575c1b35728e3f728e0e4d2384b78", "score": "0.5993855", "text": "public Builder setSpawnPoint(\n int index, com.pokegoapi.main.Map.ClientSpawnPointProto value) {\n if (spawnPointBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureSpawnPointIsMutable();\n spawnPoint_.set(index, value);\n onChanged();\n } else {\n spawnPointBuilder_.setMessage(index, value);\n }\n return this;\n }", "title": "" }, { "docid": "d9695f1ddc003397349b6dc8ac795280", "score": "0.5965324", "text": "public Builder addSpawnPoint(\n int index, com.pokegoapi.main.Map.ClientSpawnPointProto value) {\n if (spawnPointBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureSpawnPointIsMutable();\n spawnPoint_.add(index, value);\n onChanged();\n } else {\n spawnPointBuilder_.addMessage(index, value);\n }\n return this;\n }", "title": "" }, { "docid": "488ca5c3eafa262720252efcfc1b2cc0", "score": "0.59635043", "text": "public com.pokegoapi.main.Map.ClientSpawnPointProto getDecimatedSpawnPoint(int index) {\n return decimatedSpawnPoint_.get(index);\n }", "title": "" }, { "docid": "7e962231bdedf6e20afcc0dc72bdce8d", "score": "0.59135675", "text": "public java.util.List<com.pokegoapi.main.Map.ClientSpawnPointProto> getSpawnPointList() {\n if (spawnPointBuilder_ == null) {\n return java.util.Collections.unmodifiableList(spawnPoint_);\n } else {\n return spawnPointBuilder_.getMessageList();\n }\n }", "title": "" }, { "docid": "8e4060b85a5247684dc17a177baa096d", "score": "0.5888689", "text": "public java.util.List<com.pokegoapi.main.Map.ClientSpawnPointProto> getDecimatedSpawnPointList() {\n return decimatedSpawnPoint_;\n }", "title": "" }, { "docid": "66de651d216a089042e286d4c227aa26", "score": "0.5884566", "text": "public com.pokegoapi.main.Map.ClientSpawnPointProto.Builder addSpawnPointBuilder(\n int index) {\n return getSpawnPointFieldBuilder().addBuilder(\n index, com.pokegoapi.main.Map.ClientSpawnPointProto.getDefaultInstance());\n }", "title": "" }, { "docid": "66d47fea69142e7de961d79e5ba389af", "score": "0.58839047", "text": "cn.lmh.examples.grpc.proto.PointOrBuilder getLocationOrBuilder();", "title": "" }, { "docid": "1f434c4fca2e8fa98512a55bda9aa53a", "score": "0.5851862", "text": "cn.lmh.examples.grpc.proto.Point getLocation();", "title": "" }, { "docid": "16e6110980e7a3643015450c52297e4b", "score": "0.5823618", "text": "public com.pokegoapi.main.Map.ClientSpawnPointProto.Builder addDecimatedSpawnPointBuilder() {\n return getDecimatedSpawnPointFieldBuilder().addBuilder(\n com.pokegoapi.main.Map.ClientSpawnPointProto.getDefaultInstance());\n }", "title": "" }, { "docid": "332144e61aade08eb1ac09929e1175c2", "score": "0.57891864", "text": "com.google.protobuf.ByteString\n getSpawnPointIdBytes();", "title": "" }, { "docid": "332144e61aade08eb1ac09929e1175c2", "score": "0.57891864", "text": "com.google.protobuf.ByteString\n getSpawnPointIdBytes();", "title": "" }, { "docid": "d9ec8edd2eb84f1c0fa12a2c91ba4ba6", "score": "0.57662845", "text": "public com.pokegoapi.main.Map.ClientSpawnPointProto.Builder getSpawnPointBuilder(\n int index) {\n return getSpawnPointFieldBuilder().getBuilder(index);\n }", "title": "" }, { "docid": "d29dae377bf4dbce40cb9b75ec05de3e", "score": "0.57433045", "text": "public java.lang.String getSpawnPointId() {\n java.lang.Object ref = spawnPointId_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs = \n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n spawnPointId_ = s;\n return s;\n }\n }", "title": "" }, { "docid": "d29dae377bf4dbce40cb9b75ec05de3e", "score": "0.57433045", "text": "public java.lang.String getSpawnPointId() {\n java.lang.Object ref = spawnPointId_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs = \n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n spawnPointId_ = s;\n return s;\n }\n }", "title": "" }, { "docid": "e9956f3f70b7e1fc5726aa78f9b01180", "score": "0.57258415", "text": "java.lang.String getSpawnPointId();", "title": "" }, { "docid": "e9956f3f70b7e1fc5726aa78f9b01180", "score": "0.57258415", "text": "java.lang.String getSpawnPointId();", "title": "" }, { "docid": "6036a104e7c6282493d7a682ddc96a07", "score": "0.56862175", "text": "private MapPokemonProto(com.google.protobuf.GeneratedMessage.Builder<?> builder) {\n super(builder);\n }", "title": "" }, { "docid": "4d17208f6603f3b745c140199c1e7228", "score": "0.5676187", "text": "public void handleParticleSpawn(World w, BLPacketParticles.Message p) { }", "title": "" }, { "docid": "509cf28445632fe99a4d27df77fc4a1f", "score": "0.56704384", "text": "public java.lang.String getSpawnPointId() {\n java.lang.Object ref = spawnPointId_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n spawnPointId_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "title": "" }, { "docid": "509cf28445632fe99a4d27df77fc4a1f", "score": "0.56704384", "text": "public java.lang.String getSpawnPointId() {\n java.lang.Object ref = spawnPointId_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n spawnPointId_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "title": "" }, { "docid": "159e0c00980b8a94eda8d9d6cba8d8bf", "score": "0.5656494", "text": "public java.util.List<com.pokegoapi.main.Map.ClientSpawnPointProto> getDecimatedSpawnPointList() {\n if (decimatedSpawnPointBuilder_ == null) {\n return java.util.Collections.unmodifiableList(decimatedSpawnPoint_);\n } else {\n return decimatedSpawnPointBuilder_.getMessageList();\n }\n }", "title": "" }, { "docid": "bba884b968798a7c37354380092b4946", "score": "0.5596573", "text": "public Builder addAllSpawnPoint(\n java.lang.Iterable<? extends com.pokegoapi.main.Map.ClientSpawnPointProto> values) {\n if (spawnPointBuilder_ == null) {\n ensureSpawnPointIsMutable();\n com.google.protobuf.AbstractMessageLite.Builder.addAll(\n values, spawnPoint_);\n onChanged();\n } else {\n spawnPointBuilder_.addAllMessages(values);\n }\n return this;\n }", "title": "" }, { "docid": "6617cd23e09162d0745814c5253fbc44", "score": "0.5571253", "text": "public com.google.protobuf.ByteString\n getSpawnPointIdBytes() {\n java.lang.Object ref = spawnPointId_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n spawnPointId_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "title": "" }, { "docid": "6617cd23e09162d0745814c5253fbc44", "score": "0.5571253", "text": "public com.google.protobuf.ByteString\n getSpawnPointIdBytes() {\n java.lang.Object ref = spawnPointId_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n spawnPointId_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "title": "" }, { "docid": "a9d63cca26ca463e768a9e6b77be55a9", "score": "0.556262", "text": "public Builder addDecimatedSpawnPoint(\n int index, com.pokegoapi.main.Map.ClientSpawnPointProto value) {\n if (decimatedSpawnPointBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureDecimatedSpawnPointIsMutable();\n decimatedSpawnPoint_.add(index, value);\n onChanged();\n } else {\n decimatedSpawnPointBuilder_.addMessage(index, value);\n }\n return this;\n }", "title": "" }, { "docid": "01b88061391aacec4180656f144499b5", "score": "0.55243623", "text": "public com.google.protobuf.ByteString\n getSpawnPointIdBytes() {\n java.lang.Object ref = spawnPointId_;\n if (ref instanceof java.lang.String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n spawnPointId_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "title": "" }, { "docid": "01b88061391aacec4180656f144499b5", "score": "0.55243623", "text": "public com.google.protobuf.ByteString\n getSpawnPointIdBytes() {\n java.lang.Object ref = spawnPointId_;\n if (ref instanceof java.lang.String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n spawnPointId_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "title": "" }, { "docid": "5eead7d4c21597b42101c3ddae668ac2", "score": "0.5523706", "text": "@Override\n\tpublic void onSpawn() {\n\t\t\n\t}", "title": "" }, { "docid": "7892e13f76b465e231985dfc837c36e5", "score": "0.54710746", "text": "private NearbyPokemonProto(com.google.protobuf.GeneratedMessage.Builder<?> builder) {\n super(builder);\n }", "title": "" }, { "docid": "bfedbec1d014ae7c3ec0c0af3fc9d843", "score": "0.54664576", "text": "com.xh.demo.grpc.WrTy.InstanceInfoOrBuilder getInstanceInfoOrBuilder();", "title": "" }, { "docid": "bfedbec1d014ae7c3ec0c0af3fc9d843", "score": "0.54664576", "text": "com.xh.demo.grpc.WrTy.InstanceInfoOrBuilder getInstanceInfoOrBuilder();", "title": "" }, { "docid": "bfedbec1d014ae7c3ec0c0af3fc9d843", "score": "0.54664576", "text": "com.xh.demo.grpc.WrTy.InstanceInfoOrBuilder getInstanceInfoOrBuilder();", "title": "" }, { "docid": "bfedbec1d014ae7c3ec0c0af3fc9d843", "score": "0.54664576", "text": "com.xh.demo.grpc.WrTy.InstanceInfoOrBuilder getInstanceInfoOrBuilder();", "title": "" }, { "docid": "1e24776105c456ae6640e3f21cf92f2d", "score": "0.5452026", "text": "private GpsPointInfo(com.google.protobuf.GeneratedMessage.Builder<?> builder) {\n super(builder);\n this.unknownFields = builder.getUnknownFields();\n }", "title": "" }, { "docid": "37289622cc2c5ad86f2a4294a8ba7caf", "score": "0.5449191", "text": "public Builder setDecimatedSpawnPoint(\n int index, com.pokegoapi.main.Map.ClientSpawnPointProto value) {\n if (decimatedSpawnPointBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureDecimatedSpawnPointIsMutable();\n decimatedSpawnPoint_.set(index, value);\n onChanged();\n } else {\n decimatedSpawnPointBuilder_.setMessage(index, value);\n }\n return this;\n }", "title": "" }, { "docid": "abd6d7bc5551c86136b1ad1e6c83974d", "score": "0.5409684", "text": "public java.util.List<com.pokegoapi.main.Map.ClientSpawnPointProto.Builder> \n getSpawnPointBuilderList() {\n return getSpawnPointFieldBuilder().getBuilderList();\n }", "title": "" }, { "docid": "df220cf64198e0d5538c5b632b1b936d", "score": "0.54038596", "text": "@Override\n\tpublic void readSpawnData(ByteBuf additionalData) {\n\t\t\n\t}", "title": "" }, { "docid": "710cbc564af90aa109613632724f94c9", "score": "0.5398128", "text": "private Point(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "title": "" }, { "docid": "8c2ff52f7e0e43da240e1508be8f2878", "score": "0.5379279", "text": "int getSpawnPointCount();", "title": "" }, { "docid": "4336f05686b894b595a851672bf7a27b", "score": "0.53419536", "text": "@ServerFunc\r\n\tpublic abstract MetaVar GAMEMODE_PlayerInitialSpawn(@SimpleName(\"playerVar\")MetaVarPlayer playerVar);", "title": "" }, { "docid": "d6145685ac4e938f0de3ba9b888afbd8", "score": "0.5341286", "text": "public com.pokegoapi.main.Map.ClientSpawnPointProto.Builder getDecimatedSpawnPointBuilder(\n int index) {\n return getDecimatedSpawnPointFieldBuilder().getBuilder(index);\n }", "title": "" }, { "docid": "816d6d3052aa52653455ba96e02fadac", "score": "0.53147393", "text": "public Position getSpawnPosition() {\n return spawnPosition;\n }", "title": "" }, { "docid": "a84087c028be1a7b0368c27835778419", "score": "0.5314048", "text": "com.xh.demo.grpc.WrTy.ClientHelloOrBuilder getClientHelloOrBuilder();", "title": "" }, { "docid": "a84087c028be1a7b0368c27835778419", "score": "0.5314048", "text": "com.xh.demo.grpc.WrTy.ClientHelloOrBuilder getClientHelloOrBuilder();", "title": "" }, { "docid": "a84087c028be1a7b0368c27835778419", "score": "0.5314048", "text": "com.xh.demo.grpc.WrTy.ClientHelloOrBuilder getClientHelloOrBuilder();", "title": "" }, { "docid": "917ee819781d1ac0689f420b12c77ccb", "score": "0.53021693", "text": "public Pokemon(PokemonProto proto)\n\t{\n\t\tthis.proto = proto;\n\t}", "title": "" }, { "docid": "4b4c05bec7ac7775e82a81252a084fff", "score": "0.52962947", "text": "public Builder addSpawnPoint(\n com.pokegoapi.main.Map.ClientSpawnPointProto.Builder builderForValue) {\n if (spawnPointBuilder_ == null) {\n ensureSpawnPointIsMutable();\n spawnPoint_.add(builderForValue.build());\n onChanged();\n } else {\n spawnPointBuilder_.addMessage(builderForValue.build());\n }\n return this;\n }", "title": "" }, { "docid": "0d44ab3cee20461a7b550235b1aa41c6", "score": "0.5289413", "text": "public Builder addAllDecimatedSpawnPoint(\n java.lang.Iterable<? extends com.pokegoapi.main.Map.ClientSpawnPointProto> values) {\n if (decimatedSpawnPointBuilder_ == null) {\n ensureDecimatedSpawnPointIsMutable();\n com.google.protobuf.AbstractMessageLite.Builder.addAll(\n values, decimatedSpawnPoint_);\n onChanged();\n } else {\n decimatedSpawnPointBuilder_.addAllMessages(values);\n }\n return this;\n }", "title": "" }, { "docid": "d180cf1fca9f93ecfaa8ec9801282324", "score": "0.52886647", "text": "public com.pokegoapi.main.Map.ClientSpawnPointProto.Builder addDecimatedSpawnPointBuilder(\n int index) {\n return getDecimatedSpawnPointFieldBuilder().addBuilder(\n index, com.pokegoapi.main.Map.ClientSpawnPointProto.getDefaultInstance());\n }", "title": "" }, { "docid": "03647e2bc3585fe295d5cfa6e6c428a1", "score": "0.52765745", "text": "private Point(com.google.protobuf.GeneratedMessage.Builder<?> builder) {\n super(builder);\n this.unknownFields = builder.getUnknownFields();\n }", "title": "" }, { "docid": "07232ae657087b3348dd83e74a103c86", "score": "0.5272411", "text": "private WildPokemonProto(com.google.protobuf.GeneratedMessage.Builder<?> builder) {\n super(builder);\n }", "title": "" }, { "docid": "82fa342bb2d042118ad39b28f20ee34f", "score": "0.52673775", "text": "public void spawnLocation(){\n gameController.setBoardTypePhase(false);\n gameController.setSpawnLocationPhase(true);\n servers.forEach((username, server) -> {\n try {\n gameData.setPlayer(users.get(username));\n server.notify(Message.PLAYER, Outcome.RIGHT, gameData);\n } catch (IOException e) {\n Printer.err(e);\n }\n });\n gameController.startGame(players);\n setGameDataBeforeGame();\n servers.forEach((username, server) -> {\n try {\n server.notify(Message.GAME, Outcome.ALL, gameData);\n } catch (IOException e) {\n Printer.err(e);\n }\n });\n servers.forEach((username, server) -> {\n List<Card> powerups = new ArrayList<>();\n powerups.add(gameController.drawPowerup());\n powerups.add(gameController.drawPowerup());\n gameData.setPowerups(powerups);\n try {\n server.notify(Message.SPAWN, Outcome.RIGHT, gameData);\n } catch (IOException e) {\n Printer.err(e);\n }\n powerupsSpawn.put(username, powerups);\n });\n disconnectedUsers.forEach((username, player)->{\n List<Card> powerups = new ArrayList<>();\n powerups.add(gameController.drawPowerup());\n powerups.add(gameController.drawPowerup());\n powerupsSpawn.put(username, powerups);\n });\n SpawnLocationTimer spawnLocationTimer = new SpawnLocationTimer(this, gameController);\n spawnLocationTimer.start();\n }", "title": "" }, { "docid": "32c23ea781fd3fc7e3acdb9b8f368ca7", "score": "0.5259262", "text": "public void clientInstantiatePlayer(Player player, User targetUser);", "title": "" }, { "docid": "6197c89cdccb063e910a942bd9a25d01", "score": "0.52412736", "text": "private PokemonFortProto(com.google.protobuf.GeneratedMessage.Builder<?> builder) {\n super(builder);\n }", "title": "" }, { "docid": "a57469ae980c9f94606707c244e12361", "score": "0.52162296", "text": "private Point(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "title": "" }, { "docid": "193d7374e90702870d829fc4c8370820", "score": "0.51921314", "text": "com.xh.demo.grpc.WrTy.InstanceInfo.Origin getOrigin();", "title": "" }, { "docid": "10402fb77428b2da94ca289fe26b32e9", "score": "0.51803154", "text": "public Builder setSpawnPointId(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n spawnPointId_ = value;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "10402fb77428b2da94ca289fe26b32e9", "score": "0.51803154", "text": "public Builder setSpawnPointId(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n spawnPointId_ = value;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "56b8c73788b62265005ad30e445b8960", "score": "0.51784647", "text": "public java.util.List<com.pokegoapi.main.Map.ClientSpawnPointProto.Builder> \n getDecimatedSpawnPointBuilderList() {\n return getDecimatedSpawnPointFieldBuilder().getBuilderList();\n }", "title": "" }, { "docid": "de9c1442caa81686a7f8da119625dbb2", "score": "0.51682585", "text": "com.xh.demo.grpc.WrTy.InstanceInfo getInstanceInfo();", "title": "" }, { "docid": "de9c1442caa81686a7f8da119625dbb2", "score": "0.51682585", "text": "com.xh.demo.grpc.WrTy.InstanceInfo getInstanceInfo();", "title": "" }, { "docid": "de9c1442caa81686a7f8da119625dbb2", "score": "0.51682585", "text": "com.xh.demo.grpc.WrTy.InstanceInfo getInstanceInfo();", "title": "" }, { "docid": "de9c1442caa81686a7f8da119625dbb2", "score": "0.51682585", "text": "com.xh.demo.grpc.WrTy.InstanceInfo getInstanceInfo();", "title": "" }, { "docid": "e4a8f262870f38fdab864b7d4e7bd9b0", "score": "0.5164162", "text": "@Override\n public CompoundTag getSpawnCompound() {\n return new CompoundTag()\n\n .putInt(\"EntityId\", this.entityId)\n .putInt(\"Type\", this.entityId)\n .putString(\"id\", this.getSaveId())\n// .putString(\"SpawnData\", this.entityId + \"\")//\"minecraft:zombie\"\n// .putList(new ListTag<CompoundTag>(\"SpawnPotentials\") {\n// {\n// add(new CompoundTag() {{\n// putInt(\"Weight\", 1);\n// putCompound(\"Entity\", new CompoundTag() {{\n// putString(\"id\", entityId + \"\");\n// }});\n// }});\n// }\n// })\n .putInt(\"x\", (int) this.x)\n .putInt(\"y\", (int) this.y)\n .putInt(\"z\", (int) this.z);\n\n }", "title": "" }, { "docid": "1a5262e6dd8b51db44ce987e7ded3017", "score": "0.515661", "text": "public AddPointClientMessage(){\r\n\t\t\t// Do nothing...\r\n\t\t}", "title": "" }, { "docid": "33578d203160f73a48d3fc067b8dffcf", "score": "0.515348", "text": "public void spawnPlayer (Player player, Integer spawnPoint){\n\t\tFile gameFile = new File (plugin.getDataFolder(), \"Game Configuration\");\n\t\tFileConfiguration gameFileConfig = YamlConfiguration.loadConfiguration(gameFile);\n\n\t\tString world = gameFileConfig.getString(\"Spawnpoint.\" + spawnPoint + \".world\");\n\t\tdouble x = gameFileConfig.getInt(\"Spawnpoint.\" + spawnPoint + \".x\");\n\t\tdouble y = gameFileConfig.getInt(\"Spawnpoint.\" + spawnPoint + \".y\");\n\t\tdouble z = gameFileConfig.getInt(\"Spawnpoint.\" + spawnPoint + \".z\");\n\t\tfloat pitch = gameFileConfig.getInt(\"Spawnpoint.\" + spawnPoint + \".pitch\");\n\t\tfloat yaw = gameFileConfig.getInt(\"Spawnpoint.\" + spawnPoint + \".yaw\");\n\n\t\tplayer.teleport(new Location(plugin.getServer().getWorld(world), x + 0.5, y, z + 0.5, yaw, pitch));\n\n\t\tplugin.scoreManager.setupScoreboard();\n\t}", "title": "" }, { "docid": "e8ce78015474ef326505bffce3f1ec65", "score": "0.51405495", "text": "public abstract void onSpawn();", "title": "" }, { "docid": "d0885302cfda0655b28463c55dadeec3", "score": "0.5114227", "text": "POGOProtos.Rpc.HoloPokemonType getType();", "title": "" }, { "docid": "dfa3ac81e6093c22bbb1d93b87b77dd2", "score": "0.5098536", "text": "@Test\r\n public void PsGameCreation() {\r\n \r\n service = new PsGame.Builder(\"00012\").name(\"Infamous 2\").build();\r\n Assert.assertEquals(service.getId(),\"00012\",service.getName());\r\n \r\n }", "title": "" }, { "docid": "a21e6d98325fdce313b2b9db5559e1bc", "score": "0.50896084", "text": "int getDecimatedSpawnPointCount();", "title": "" }, { "docid": "ac33147be16c43894fb988ef8fd86d97", "score": "0.50884485", "text": "public interface NoticeService {\n @ProtobufRPC(serviceName = \"noticeService\",onceTalkTimeout = 200)\n MsgInfo notice(MsgInfo noticeInfo);\n}", "title": "" }, { "docid": "cf69d263e1a81964f77c44d11af5d7c1", "score": "0.50834334", "text": "com.xh.demo.grpc.WrTy.ServerHelloOrBuilder getServerHelloOrBuilder();", "title": "" }, { "docid": "cf69d263e1a81964f77c44d11af5d7c1", "score": "0.50834334", "text": "com.xh.demo.grpc.WrTy.ServerHelloOrBuilder getServerHelloOrBuilder();", "title": "" }, { "docid": "cf69d263e1a81964f77c44d11af5d7c1", "score": "0.50834334", "text": "com.xh.demo.grpc.WrTy.ServerHelloOrBuilder getServerHelloOrBuilder();", "title": "" } ]
705620821eea983985136481d4a9f097
Display a menu with options
[ { "docid": "f86b47bfee23d1c4d281943b3a369c87", "score": "0.0", "text": "private static void MainMenu() {\n Scanner option = new Scanner(System.in);\n int choice = 0;\n while (choice != 6) {\n System.out.println(\"What would you like to do next?\");\n System.out.println(\"1. Display Directory with Most Files.\");\n System.out.println(\"2. Display Directory Largest in Size.\");\n System.out.println(\"3. Display 5 Largest Files in Size.\");\n System.out.println(\"4. Display All Files of a Certain Type.\");\n System.out.println(\"5. Clear the DB and Start Over.\");\n System.out.println(\"6. Exit.\");\n System.out.println(\"Please enter your choice: \");\n\n choice = option.nextInt();\n FileDAO fileDAO = new FileDAOImpl();\n DirectoryDAO directoryDAO = new DirectoryDAOImpl();\n\n switch (choice) {\n //region Case 1\n case 1:\n Connection conn3 = mySqlTest();\n try {\n Statement statement = conn3.createStatement();\n String sql = \"select DirId, DirName, NumberOfFiles from Directory ORDER BY NumberOfFiles DESC LIMIT 1\";\n\n ResultSet rs = statement.executeQuery(sql);\n while(rs.next()) {\n int dirId = rs.getInt(1);\n String dirName = rs.getString(2);\n int numberOfFiles = rs.getInt(3);\n\n System.out.println(\"DirId: \" + dirId + \" \" + \"Directory Name: \" + dirName + \" \" +\n \"Number Of Files: \" + numberOfFiles);\n }\n\n conn3.close();\n\n\n } catch (SQLException sqlEx) {\n logger.error(sqlEx);\n }\n\n // most files\n break;\n //endregion\n\n //region Case 2\n case 2:\n Connection conn2 = mySqlTest();\n try {\n Statement statement = conn2.createStatement();\n String sql = \"select DirId, DirName, DirSize from Directory ORDER BY DirSize DESC LIMIT 1\";\n\n ResultSet rs = statement.executeQuery(sql);\n while(rs.next()) {\n int dirId = rs.getInt(1);\n String dirName = rs.getString(2);\n Double dirSize = rs.getDouble(3);\n\n System.out.println(\"DirId: \" + dirId + \" \" + \"Directory Name: \" + dirName + \" \" +\n \"Directory Size: \" + dirSize);\n }\n\n conn2.close();\n\n\n } catch (SQLException sqlEx) {\n logger.error(sqlEx);\n }\n\n\n //largest directory in size\n break;\n //endregion\n\n //region Case 3\n case 3:\n Connection conn = mySqlTest();\n try {\n Statement statement = conn.createStatement();\n String sql = \"select FileId, FileName, FileSize from File ORDER BY FileSize DESC LIMIT 5\";\n\n ResultSet rs = statement.executeQuery(sql);\n while(rs.next()) {\n int fileId = rs.getInt(1);\n String fileName = rs.getString(2);\n Double fileSize = rs.getDouble(3);\n\n System.out.println(\"FileId: \" + fileId + \" \" + \"File Name: \" + fileName + \" \" + \"File Size: \" + fileSize);\n }\n\n conn.close();\n\n\n } catch (SQLException sqlEx) {\n logger.error(sqlEx);\n }\n\n //five largest in size\n break;\n //endregion\n\n //region Case 4\n case 4:\n Scanner type = new Scanner(System.in);\n System.out.println(\"Which Type?\");\n String userType = type.nextLine();\n\n Connection conn4 = mySqlTest();\n try {\n Statement statement = conn4.createStatement();\n String sql = \"select FileId, FileName, FileType from File WHERE FileType LIKE '%\" + userType + \"%'\";\n\n ResultSet rs = statement.executeQuery(sql);\n while(rs.next()) {\n int fileId = rs.getInt(1);\n String fileName = rs.getString(2);\n String fileType = rs.getString(3);\n\n System.out.println(\"FileId: \" + fileId + \" \" + \"File Name: \" + fileName + \" \" + \"File Type: \" + fileType);\n }\n\n conn4.close();\n\n\n } catch (SQLException sqlEx) {\n logger.error(sqlEx);\n }\n\n\n\n //all files of certain type\n break;\n\n //endregion\n\n // region Case 5\n case 5:\n fileDAO.truncateFile();\n\n directoryDAO.truncateDirectory();\n\n\n System.out.println(\"Database has been cleared\");\n\n StartMenu();\n //db cleared and start over\n break;\n //endregion\n\n //region Case 6\n case 6:\n System.out.println(\"Now exiting\"); //exit\n return;\n\n //endregion\n\n //region Default\n default:\n System.out.println(\"Invalid option. Please try again\");\n break;\n\n //endregion\n }\n\n }\n\n\n }", "title": "" } ]
[ { "docid": "e69ba86d21992b7c57f33689745d523c", "score": "0.8007924", "text": "private void showMenu() {\n\t\t\n\t\tSystem.out.println(\"1. List\");\n\t\tSystem.out.println(\"2. Search\");\n\t\tSystem.out.println(\"3. Add\");\n\t\tSystem.out.println(\"4. Update\");\n\t\tSystem.out.println(\"5. Delete\");\n\t\t\n\t}", "title": "" }, { "docid": "2a010c654ed20f0624e1bd3343bdf03e", "score": "0.786323", "text": "public void displayOptionsMenu()\n {\n if (main.selectedOption == 3)\n {\n optionsMenu.display();\n // Draw the expanding lines\n drawSubMenuLines(3, color(255));\n }\n }", "title": "" }, { "docid": "b436145ebaf51ffa7cc49ee66557d5c7", "score": "0.7718493", "text": "public void displayMenu() {\n System.out.println(\"\\nSelect from:\");\n System.out.println(\"\\ta -> add courses\");\n System.out.println(\"\\tl -> view list of all courses\");\n System.out.println(\"\\tr -> remove a course\");\n System.out.println(\"\\tv -> view all details about a course\");\n System.out.println(\"\\ts -> save course load to file\");\n System.out.println(\"\\tt -> view total credits and number of courses this semester\");\n System.out.println(\"\\tq -> quit menu\");\n }", "title": "" }, { "docid": "1c0f5c5be730ae56ff03b3d6329920c1", "score": "0.77011466", "text": "private static void mostrarMenu() {\r\n\t\tSystem.out.println(\"### MENU ###\");\r\n\t\tSystem.out.println(\"1. Ladrar\");\r\n\t\tSystem.out.println(\"2. Alimentar\");\r\n\t\tSystem.out.println(\"3. Jugar\");\r\n\t\tSystem.out.println(\"4. Dormir\");\r\n\t\tSystem.out.println(\"5. Despertar\");\r\n\t\tSystem.out.println(\"6. Mostrar información del perro\");\r\n\t\tSystem.out.println(\"7. Ayuda\");\r\n\t\tSystem.out.println(\"8. Salir\");\r\n\t}", "title": "" }, { "docid": "ee7e5522ae99410ee6e82f6134ee1b55", "score": "0.7648314", "text": "private static void menu() {\n\t\tSystem.out.println(\"1. Atom Structure.\");\n\t\tSystem.out.println(\"2. Stellar System.\");\n\t\tSystem.out.println(\"3. Social Network Circle.\");\n\t}", "title": "" }, { "docid": "535df2055b61a7a346cec5e89879ca15", "score": "0.7640051", "text": "public static void displayMenu() {\n\t\tSystem.out.print(\"1 - List countries \\n\");\n\t\tSystem.out.print(\"2 - Add a country \\n\");\n\t\tSystem.out.print(\"3 - Exit \\n\");\n\t}", "title": "" }, { "docid": "478d62e551a22144f1013dea80016220", "score": "0.7631869", "text": "public void displayMenu() {\n System.out.println(\"\\n\\n\\n1) Add\");\n System.out.println(\"2) Delete\");\n System.out.println(\"3) Search\");\n System.out.println(\"4) Display All\");\n System.out.println(\"5) Exit\\n\");\n }", "title": "" }, { "docid": "da207c811c005644538ed3b4ae81349a", "score": "0.7617129", "text": "public void basicMenu() {\n\t\t//Options from 1 to 5 available, where 4 allows the user the display menu again\n\t\tSystem.out.println(\"\\n\\t===================== Basic Menu =====================\");\n\t\tSystem.out.println(\"\\tChoose from one of the following options: \");\n\t\tSystem.out.println(\"\\t\\t1 - Parse a File or URL\");\n\t\tSystem.out.println(\"\\t\\t2 - Search\");\n\t\tSystem.out.println(\"\\t\\t3 - Print Statistics\");\n\t\tSystem.out.println(\"\\t\\t4 - Display Menu Again\");\n\t\tSystem.out.println(\"\\t\\t5 - Exit\");\n\t}", "title": "" }, { "docid": "1a836b945ed6ce725821f868b0e98c64", "score": "0.7590252", "text": "private void displayMenu() {\n System.out.println(\"\\nMain Menu\");\n System.out.println(\"\\t1 - View all recipe titles\");\n System.out.println(\"\\t2 - Select a recipe\");\n System.out.println(\"\\t3 - Add a new recipe\");\n System.out.println(\"\\t4 - Remove a recipe\");\n System.out.println(\"\\t5 - Save recipe list\");\n System.out.println(\"\\t6 - Load recipe list from file\");\n System.out.println(\"\\tq - Quit\");\n }", "title": "" }, { "docid": "90da95372333ae1d6d7c9628084914ca", "score": "0.75596803", "text": "public void displayMenu() {\n\n System.out.println( \" **==========================**\");\n System.out.println(\" || ==== MENU ==== ||\");\n\n System.out.println( \" ||\" + \" 0. Cargar datos \" + \" ||\");\n System.out.println(\"|| 1. Dar comparendo con OBJECT_ID especifico\");\n System.out.println(\"|| 2. Mostrar comparendos con min max ID \");\n System.out.println( \" **==========================**\\n\");\n\n // display hint\n this.displayHint();\n System.out.print(\"Input -> \\n\\n\" );\n }", "title": "" }, { "docid": "229725ea86a8c73d6e21c20431adaf62", "score": "0.755088", "text": "public static void displayMenu(){\n System.out.println(\"╔═══════════════════════════════════════════════╗\");\n System.out.println(\"║ ══ Welcome to the premiere league manager ══ ║\");\n System.out.println(\"╔═══════════════════════════════════════════════╗\");\n System.out.println(\"║ Press 1 to add new club ║\");\n System.out.println(\"║ Press 2 to delete existing club ║ \");\n System.out.println(\"║ Press 3 to get statistics of a club ║ \");\n System.out.println(\"║ Press 4 to display premiere league table ║ \");\n System.out.println(\"║ Press 5 to add a played match ║ \");\n System.out.println(\"║ Press 6 to start GUI ║ \");\n System.out.println(\"║ Press 7 to exit Program ║\");\n System.out.println(\"╚═══════════════════════════════════════════════╝\");\n }", "title": "" }, { "docid": "5d682dbef539ebb59cc98ec082ed1fc2", "score": "0.75311965", "text": "public void MainMenu() {\n System.out.println(\"Choose option:\");\n System.out.println(\"1. Add employees\");\n System.out.println(\"2. List employees\");\n System.out.println(\"3. Edit employee\");\n System.out.println(\"4. Export employee\");\n System.out.println(\"5. Import employee\");\n System.out.println(\"6. Search employees\");\n System.out.println(\"7. Exit\");\n }", "title": "" }, { "docid": "de7492478953ec600805e9152eb75e93", "score": "0.7513247", "text": "public static void displayMenu()\n\t{\n\t\tSystem.out.println(\" @@@===========================@@@\");\n\t\tSystem.out.println(\"1. Display all the books\");\n\t\tSystem.out.println(\"2. Add a book\");\n\t\tSystem.out.println(\"3. Find a book\");\n\t\tSystem.out.println(\"4. Delete a book\");\n\t\tSystem.out.println(\"5. Number of books in list \");\n\t\tSystem.out.println(\"6. Exit \");\n\t\tSystem.out.print(\"---Enter your selection:--- \");\n\t\t\n\t}", "title": "" }, { "docid": "8b2467f8d90c5dc328cc8a3f6d1fec25", "score": "0.7510089", "text": "public static void displayMenu()\n {\n\tSystem.out.println(\"Choose an option from the list: \");\n\tSystem.out.println(\"1.\\tAdd items to the Bag.\");\n\tSystem.out.println(\"2.\\tRemove the first and last element of the Bag.\");\n\tSystem.out.println(\"3.\\tClear all items in the Bag.\");\n\tSystem.out.println(\"4.\\tRemove an item using the Iterator.\");\n\tSystem.out.println(\"5:\\tRemove an occurance of an item in the Bag.\");\n\tSystem.out.println(\"6.\\tDisplay the size of the Bag.\");\n\tSystem.out.println(\"7.\\tDisplay the Bag.\");\n\tSystem.out.println(\"8.\\tExit.\");\n\tSystem.out.println();\n\tSystem.out.print(\"Choice: \");\n }", "title": "" }, { "docid": "4f539aab3726e63c8f858cc32bb21ad2", "score": "0.74991274", "text": "private void showMenu() {\r\n\t\tSystem.out.println(\"Distributed Flight Reservation System\");\r\n\t\tSystem.out.println(\"Manager Operations\");\r\n\t\tSystem.out.println(\"Please select an option\");\r\n\t\tSystem.out.println(\"1. Booked Flight Count.\");\r\n\t\tSystem.out.println(\"2. Edit Flight Record\");\r\n\t\tSystem.out.println(\"3. Transfer Reservation\");\r\n\t\tSystem.out.println(\"4. Exit\");\r\n\t\tSystem.out.println(\"5. Exit to Main Menu\");\r\n\t}", "title": "" }, { "docid": "92d80542ad92722fe86fdb8ac9e323da", "score": "0.7484453", "text": "protected static void displaymenu(){\n\t\tSystem.out.println(\"Ozlympic Game\");\n\t\tSystem.out.println(\"======================================\");\n\t\tSystem.out.println(\"1. Select a game to run\");\n\t\tSystem.out.println(\"2. Predict the winner of the game\");\n\t\tSystem.out.println(\"3. Start the game\");\n\t\tSystem.out.println(\"4. Display the final result of results of all games\");\n\t\tSystem.out.println(\"5. Display the point of all athletes\");\n\t\tSystem.out.println(\"6. Exit\");\n\t\tSystem.out.print(\"Please enter an option:\");\n\t}", "title": "" }, { "docid": "0e2b514c1e359a63699cf169d818507c", "score": "0.7474782", "text": "public void menu() {\n System.out.println(\"\\n\\n\"\n + \"Select an option please:\\n\"\n + \"1. Create Channel.\\n\"\n + \"2. Publish Message.\\n\"\n + \"3. Get Topics.\\n\"\n + \"4. Exit\\n\");\n }", "title": "" }, { "docid": "ec3c9caa19602b6b2e4d463482370114", "score": "0.7463924", "text": "public static void showMenu(){\n\t\tSystem.out.println(\"++++++++++++++++ Menu +++++++++++++++++++\");\n\t\tSystem.out.println(\"Press 1: View all students\");\n\t\tSystem.out.println(\"Press 2: Add new student\");\n\t\tSystem.out.println(\"Press 3: Search student\");\n\t\tSystem.out.println(\"Press 4: Remove remove student\");\n\t\tSystem.out.println(\"+++++++++++++++++++++++++++++++++++++++++\");\n\t}", "title": "" }, { "docid": "ef306bdba00e38dc7c89a5474e6f3afa", "score": "0.74080765", "text": "public void printMainMenuOptions(){\n System.out.println(\"1) Play\");\n System.out.println(\"2) Config\");\n System.out.println(\"3) Print table info\");\n System.out.print(\"ACTION: \");\n }", "title": "" }, { "docid": "5b33a4de83adde36c286779c8d0c89e3", "score": "0.7376122", "text": "private static void printMenuOptions(){\n\n System.out.println(\"CMD | Descriptions\");\n System.out.println(\"A | Add a movie\");\n System.out.println(\"L | List all movies\");\n System.out.println(\"F | Find if a movie is a available\");\n System.out.println(\"G | Get all movies\");\n System.out.println(\"O | Compute the occupancy of the table\");\n System.out.println(\"Q | Quit the database\");\n System.out.println(\"H | Display command options and descriptions\");\n\n }", "title": "" }, { "docid": "571a1cf5ac10d487fa0c6a497cc343dc", "score": "0.7374895", "text": "public void displayMenu() {\n\n\t\ttry {\n\t\t\tBufferedReader in = new BufferedReader(new FileReader(\"../src/files/menuFile.txt\"));\n\t\t\tString line;\n\t\t\twhile ((line = in.readLine()) != null) {\n\t\t\t\tString str[] = line.split(\"\\\\t\");\n\t\t\t\tif (str.length == 3) {\n\t\t\t\t\tSystem.out.printf(\"%s %-30s %s\", str[0], str[1], str[2]);\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t\tItem item = new Item(Integer.parseInt(str[0]), str[1], Integer.parseInt(str[2]));\n\t\t\t\t\titems.put(Integer.parseInt(str[0]), item);\n\t\t\t\t} else {\n\t\t\t\t\tSystem.out.println(line);\n\t\t\t\t}\n\t\t\t}\n\t\t\tin.close();\n\t\t}\n\n\t\tcatch (Exception e) {\n\n\t\t\te.printStackTrace();\n\t\t}\n\n\t}", "title": "" }, { "docid": "e4fec46281793b0008aced76a5604461", "score": "0.73445076", "text": "public static void displayMenu(){\n System.out.println(\"====================\");\n System.out.println(\"0 - Help\");\n System.out.println(\"1 - Quit\");\n System.out.println(\"2 - Create new character\");\n System.out.println(\"3 - List created characters\");\n System.out.println(\"4 - Display character's infos\");\n System.out.println(\"5 - Begin a fight\");\n System.out.println(\"6 - Create a F*cking warrior\");\n System.out.println(\"7 - Create a wizard\");\n System.out.println(\"8 - Create a thief\");\n System.out.println(\"9 - Delete a character\");\n\n\n\n\n }", "title": "" }, { "docid": "98586e07f9d094e3ea0602d6990de7f0", "score": "0.7340936", "text": "public void menuDisplay() {\n System.out.println(\"\\n1) Message users\\n2) Group message\\n3) Message speakers\\n\");\n }", "title": "" }, { "docid": "aa04d3dd95f930f59254cc1408aba41b", "score": "0.7340419", "text": "@Override\n\tvoid DisplayMenu() \n\t{\n\t\t// TODO Auto-generated method stub\n\t\tSystem.out.println(\"\\t Select Gas\");\n\t\tSystem.out.println(\"\\t Diesel:\" );\n\t\tSystem.out.println(\"\\t Regular:\");\n\t\tSystem.out.println();\n\t}", "title": "" }, { "docid": "2a1afa0e7d2afb6f91bbdb03938f9cde", "score": "0.7334189", "text": "public static void menu() {\r\n\r\n\t\tSystem.out.println(\"Enter your choice: \");\r\n\t\tSystem.out.println(\"1 to insert an element into the list.\");\r\n\t\tSystem.out.println(\"2 to delete an element from the list.\");\r\n\t\tSystem.out.println(\"3 to edit an element from the list.\");\r\n\t\tSystem.out.println(\"4 to display all the elements of the list.\");\r\n\t\tSystem.out.println(\"5 to save in file\");\r\n\t\tSystem.out.println(\"6 to exit.\");\r\n\r\n\t}", "title": "" }, { "docid": "0c9873f1a38915e1a5ec145ec66ca3bd", "score": "0.7333515", "text": "public void displayMenu(){\n String menuS=String.format(\"\\n%50s\",\"Please make a selection:\\n\")+\n String.format(\"%35s\",\"1. Host current Date and Time\\n\")+\n String.format(\"%20s\",\"2. Host uptime\\n\")+\n String.format(\"%24s\",\"3. Host memory use\\n\")+\n String.format(\"%21s\",\"4. Host Netstat\\n\")+\n String.format(\"%27s\",\"5. Host current users\\n\")+\n String.format(\"%31s\",\"6. Host running processes\\n\")+\n String.format(\"%13s\",\"7. Quit\\n\")+\n \"\\nEnter Selection: \";\n StringBuilder builderS=new StringBuilder(menuS);\n System.out.print(builderS);\n \n }", "title": "" }, { "docid": "5b007aa99e1b047d7954e13c60ec5af3", "score": "0.73254913", "text": "private void displayMenu(){\n\t\tSystem.out.println(\"________________________________________\");\n\t\tSystem.out.println(\"Welcome to the Movie Reservation System!\");\n\t\tSystem.out.println(\"What do you wish to do?\");\n\t\tSystem.out.println(\"[1] Display Movie\");\n\t\tSystem.out.println(\"[2] Add Movie\");\n\t\tSystem.out.println(\"[3] Cancel Movie Schedule\");\n\t\tSystem.out.println(\"[4] Reserve Seat(s)\");\n\t\tSystem.out.println(\"[5] Cancel Reservation\");\n\t\tSystem.out.println(\"[0] Exit Program\");\n\t\tSystem.out.print(\"Choice: \");\n\t}", "title": "" }, { "docid": "e08671d703f740a23244945e95517c2e", "score": "0.732082", "text": "public static void displayMenu()\r\n\t{\r\n\t\tSystem.out.println(\"================================================================\");\r\n\t\tSystem.out.println(\"\\tCompany Lockers Pvt. Ltd. - LockedMe.com Project\");\r\n\t\tSystem.out.println(\"================================================================\");\r\n\t\tSystem.out.println(\"1. Display file names list\");\r\n\t\tSystem.out.println(\"2. Add new file\");\r\n\t\tSystem.out.println(\"3. Delete a file\");\r\n\t\tSystem.out.println(\"4. Search a file\");\r\n\t\tSystem.out.println(\"5. Exit application\");\r\n\t\tSystem.out.println(\"================================================================\");\r\n\t}", "title": "" }, { "docid": "bcadaf60f65b9029d2e63a681477062a", "score": "0.7315894", "text": "public void displayMenuOptions(String[] options) {\n for(String o: options) {\n System.out.println(\"\\t\" + o);\n }\n }", "title": "" }, { "docid": "8de7704718be110d9b022e9c496e8fc0", "score": "0.7314219", "text": "@Override\r\n\tpublic void displaymenu() {\n\t\ta1.add(new item(1,100,\"cycle\"));\r\n\t\ta1.add(new item(2,200,\"bat\"));\r\n\t\ta1.add(new item(3,300,\"ball\"));\r\n\t\tIterator<item>il=a1.iterator();\r\n\t\twhile(il.hasNext()){\r\n\t\t\tSystem.out.println(il.next());\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "e085eb96da7fb3051d76af51543ad4ce", "score": "0.7300404", "text": "public static void printMenu(){\n System.out.println((\"What would you like to do?\"));\n for (int i = 0; i < menuItems.length; i++) {\n System.out.println((i + 1) + \". \" + menuItems[i]);\n }\n }", "title": "" }, { "docid": "122ae11c10fe9338a513eaa5184bb30c", "score": "0.7291421", "text": "private void printMenu(ArrayList<GameConfiguration> menu) {\n\n StringBuilder sb = new StringBuilder(\"Choose a game from the options to below or type 'help' for help. \\n\");\n for (int i = 0; i < menu.size(); i++) {\n sb.append( (i+1) + \": \" + menu.get(i).getName() + \"\\n\");\n }\n gameInterface.println(context.getUserId(), MessageType.PRIVATE, sb.toString());\n }", "title": "" }, { "docid": "1de8a91fa8f2d2545ea3f14fb0720b21", "score": "0.72898734", "text": "public static void printlnMenuMain(){\n System.out.println(\"============================\");\n System.out.println(\"| MENU SELECTION |\");\n System.out.println(\"============================\");\n System.out.println(\"| Options: |\");\n System.out.println(\"| 1. New List |\");\n System.out.println(\"| 2. New Stack |\");\n System.out.println(\"| 3. Exit |\");\n System.out.println(\"============================\");\n }", "title": "" }, { "docid": "4bcd95783b11a396479d4d91d6a1ac4a", "score": "0.7273772", "text": "public void printMenu() {\n MainMenu.displayHeader(\"Please select an Option from Trader Menu: \");\n System.out.println(\"-> Register\");\n System.out.println(\"-> Login\");\n System.out.println(\"-> Logout\");\n System.out.println(\"-> View Your Vouchers\");\n System.out.println(\"-> Add Voucher\");\n// System.out.println(\"-> Remove Voucher\");\n System.out.println(\"-> View all comments\");\n System.out.println(\"-> View your rating\");\n System.out.println(\"-> Back\");\n }", "title": "" }, { "docid": "1257d1e46344379d68ecbb24b4155b7f", "score": "0.72733223", "text": "public static void f_menu() {\n System.out.println(\"╔═════════════════════════════════════════╗\");\r\n System.out.println(\"║ SoftSportTime USTA 2020 ║\");\r\n System.out.println(\"║ Version 1.0 ║\");\r\n System.out.println(\"║ Created by: Juan Sebastian Arias Moreno ║\");\r\n System.out.println(\"╚═════════════════════════════════════════╝\");\r\n }", "title": "" }, { "docid": "7b861d1b8ecf61636b599ce38531efd9", "score": "0.7233122", "text": "private void printMenu() {\n\t\t// TODO Auto-generated method stub\n\t\tSystem.out.println(\"Welcome in ABC Book Company: How May We Assist You?\");\n\t\tSystem.out.println(\"1\tCheckout Book\");\n\t\tSystem.out.println(\"2\tFind Books by Title\");\n\t\tSystem.out.println(\"3\tDisplay Books by Type\");\n\t\tSystem.out.println(\"4\tProduce Random Book List\");\n\t\tSystem.out.println(\"5\tSave & Exit\");\n\t\tSystem.out.println();\n\t\tSystem.out.print(\"Enter option: \");\n\t}", "title": "" }, { "docid": "52843cf2cc573c205bfb1544f4041690", "score": "0.72181344", "text": "public static void showMenu() {\n System.out.println();\n System.out.println(\"Car Dealership Menu\");\n System.out.println(\"1. Show all existing vehicle records in the database.\");\n System.out.println(\"2. Add a new vehicle record to the database.\");\n System.out.println(\"3. Delete a vehicle record from a database.\");\n System.out.println(\"4. Search for a vehicle (given its VIN).\");\n System.out.println(\"5. Show a list of vehicles within a given price range.\");\n System.out.println(\"6. Show list of users in the database.\");\n System.out.println(\"7. Add a new user to the database.\");\n System.out.println(\"8. Update user info (given their id).\");\n System.out.println(\"9. Sell a vehicle.\");\n System.out.println(\"10. Show a list of completed sale transactions.\");\n System.out.println(\"11. Exit program.\");\n System.out.println();\n }", "title": "" }, { "docid": "153d6175ff198e846b7528620df2cf24", "score": "0.7210753", "text": "private static void displayMenu()\n\t{\n\t\tSystem.out.println(\"Student Database\");\n\t\tSystem.out.println(\"----------------\");\n\t\tSystem.out.println(\"1) Add Student\");\n\t\tSystem.out.println(\"2) Get Student Details\");\n\t\tSystem.out.println(\"3) Update Student Details\");\n\t\tSystem.out.println(\"4) Remove Student\");\n\t\tSystem.out.print(\"\\nEnter choice: \");\n\t}", "title": "" }, { "docid": "98d0dddfd9dc56864dc86f2158f29064", "score": "0.7207003", "text": "private static void displayListOperationMenu() {\n System.out.printf(\"List Operation Menu%n\" +\n \"---------%n%n\" +\n \"1) View the list%n\" +\n \"2) Add an item%n\" +\n \"3) Edit an item%n\" +\n \"4) Remove an item%n\" +\n \"5) Save the current list%n\" +\n \"6) Quit to the main menu%n%n\" +\n \"> \");\n }", "title": "" }, { "docid": "e9c61af15c444344fcb94338a5884c12", "score": "0.72067547", "text": "public static void menu() {\r\n\t\tSystem.out.println(\"1 - Imprimir Tabela\");\r\n\t\tSystem.out.println(\"2 - Pesquisar Produto\");\r\n\t\tSystem.out.println(\"3 - Mostrar dados do produto mais caro\");\r\n\t\tSystem.out.println(\"4 - Mostrar código e descrição dos produtos cuja quantidade está abaixo de 10\");\r\n\t\tSystem.out.println(\"5 - Ativo total do estoque\");\r\n\t\tSystem.out.println(\"6 - Efetuar uma venda\");\r\n\t\tSystem.out.println(\"7 - Sair\");\r\n\r\n\t}", "title": "" }, { "docid": "52f567a2e31299877e107811756aeff6", "score": "0.7202655", "text": "public void showMenu() {\r\n\t\tSystem.out.println(\"please enter the operation you want to use\");\r\n\t\tSystem.out.println(\"1: add a new user \"\r\n\t\t\t\t+ \"\\n2: look for a user \"\r\n\t\t\t\t+ \"\\n3: assign a turn \"\r\n\t\t\t\t+ \"\\n4: show the next turn \"\r\n\t\t\t\t+ \"\\n5: update Time manualy\"\r\n\t\t\t\t+ \"\\n6: update Time automaticaly\"\r\n\t\t\t\t+ \"\\n7: reset the turns \"\r\n\t\t\t\t+ \"\\n8: generate Random users\"\r\n\t\t\t\t+ \"\\n9: generate Random Tunrs\"\r\n\t\t\t\t+ \"\\n10: look for all the turns that a user has had\"\r\n\t\t\t\t+ \"\\n11: look for all the user that has had a given turn\"\r\n\t\t\t\t+ \"\\n12: attend turns until actual date\"\r\n\t\t\t\t+ \"\\n13: save program data\"\r\n\t\t\t\t+ \"\\n14: exit\");\r\n\t}", "title": "" }, { "docid": "a1db2c6612393a0b22fc16e4f8766526", "score": "0.71732664", "text": "static void menu()\n {\n\n System.out.print(\"\\n\\n\\t\\t\\t** MENU **\\n\");\n System.out.print(\"\\n D) Deliver a package.\");\n System.out.print(\"\\n G) Get someone's package.\");\n System.out.print(\"\\n T) Make it tomorrow.\");\n System.out.print(\"\\n P) Print the stacks.\");\n System.out.print(\"\\n M) Move a package from one stack to another.\");\n System.out.print(\"\\n F) Find packages in the wrong stack and move to floor.\");\n System.out.print(\"\\n L) List of all packages awaiting a user.\");\n System.out.print(\"\\n E) Empty the floor.\");\n System.out.print(\"\\n S) Sort the packages in stacks according to name.\");\n System.out.print(\"\\n Q) Quit.\");\n System.out.print(\"\\n\\n Please select an option: \");\n }", "title": "" }, { "docid": "b9b91444e96ba0d15323de0b956fb536", "score": "0.71692705", "text": "public static void showMenu(HashMap<Integer, Option> options, AddressBook addressbook)\n {\n \n String menuString =\"\\n\";\n int i;\n for(i=0;i<options.size();i++)\n {\n menuString+=\"(\" + (i+1) + \") \" + options.get(i+1).getOptionsText() + \" \";\n }\n menuString+=\"(\" + (i+1) + \") Quit\";\n System.out.println(menuString);\n }", "title": "" }, { "docid": "8673c5888a3e26f49f829eee32a195e9", "score": "0.7166769", "text": "public void displayMenu() {\n\t\taf=DataStore.af;\n\t\tdataStore=af.getDataStoreInstance();\n\t\tsetw=af.getSetWInstance();\n\t\tsetw.setW(dataStore);\n\t\tdisp_menu=af.getDisplayMenuInstance();\n\t\tdisp_menu.disPlayMenu();\n\t}", "title": "" }, { "docid": "f91efedfd26b1fb2c027fa4cf3a228f2", "score": "0.7166486", "text": "public static void f_menu () {\r\n //Description: This method show the menu of this software\r\n System.out.println(\"--------------------------\");\r\n System.out.println(\"| SoftConverTime |\");\r\n System.out.println(\"|Version 1.0 20200415 |\");\r\n System.out.println(\"|Created by: Andres Diaz |\");\r\n System.out.println(\"--------------------------\");\r\n }", "title": "" }, { "docid": "1e4c7f53c67316eb5f5205c94f451ea2", "score": "0.7165721", "text": "public void afficherMenu() {\r\n\t\tSystem.out.println(\"Veuillez choisir une action :\");\r\n\t\tSystem.out.println(\"1 - Consulter la liste des animaux\");\r\n\t\tSystem.out.println(\"2 - Ajouter un animal\");\r\n\t\tSystem.out.println(\"3 - Calculer ration moyenne\");\r\n\t\tSystem.out.println(\"99 - Quitter\");\r\n\t}", "title": "" }, { "docid": "c4d5d7eb10e5a74b28a5dc283ed20ae6", "score": "0.7139219", "text": "public static void mostrarMenu() {\r\n\t\tSystem.out.println(\"\\t\\tMENU\");\r\n\t\tSystem.out.println(\"\\t\\t====\\n\");\r\n\t\tSystem.out.println(\"1. Anda con la bicicleta\");\r\n\t\tSystem.out.println(\"2. Haz el caballito con la bicicleta\");\r\n\t\tSystem.out.println(\"3. Anda con el coche\");\r\n\t\tSystem.out.println(\"4. Quema rueda con el coche\");\r\n\t\tSystem.out.println(\"5. Ver kilometraje de la bicicleta\");\r\n\t\tSystem.out.println(\"6. Ver kilometraje del coche\");\r\n\t\tSystem.out.println(\"7. Ver kilometraje total\");\r\n\t\tSystem.out.println(\"8. Salir\");\r\n\t\tSystem.out.println(\"Elige una opción (1-8): \");\r\n\t}", "title": "" }, { "docid": "935d8662a2e947604b8318de39b84f41", "score": "0.713788", "text": "public static void menu() {\n System.out.println();\n System.out.println(\"Select one of the following transactions:\");\n System.out.println(\"\\t****************************\");\n System.out.println(\"\\t List of Choices \");\n System.out.println(\"\\t****************************\");\n System.out.println(\"\\t B -- Account Inquiry\");\n System.out.println(\"\\t D -- Deposit\");\n System.out.println(\"\\t W -- Withdrawal\");\n System.out.println(\"\\t I -- Add Interest\");\n System.out.println(\"\\t Q -- Quit\");\n System.out.println();\n System.out.print(\"\\tEnter your selection: \");\n }", "title": "" }, { "docid": "5731402fc2f2592aa6a354e5859ef94b", "score": "0.71237606", "text": "public void display()\n {\n for(int i = 0; i < numOptions; i++)\n {\n textFont(jediFont);\n determineOptionColor(i);\n fill(optionColor[i]);\n text(optionText[i], menuButtons[i].x + 5, menuButtons[i].y + (buttonHeight/2));\n }\n determineSelectedOption();\n }", "title": "" }, { "docid": "9f543f33251bbbd5186e3231cfe958e1", "score": "0.7098662", "text": "public void createOptionsMenu()\n {\n if (isMouseOver(main.menuButtons[3]) && mousePressed)\n {\n insideOptionsMenu = true;\n optionsMenu = new Menu(250, (screenH*2/3) + (2.5f*main.buttonHeight), 200, 50, 2);\n optionsMenu.initialize(optionsMenuText);\n //for options menu\n leftArrow = new Button(optionsMenu.menuButtons[0].x + 215, (optionsMenu.menuButtons[0].y+25 + (optionsMenu.buttonHeight/2))-20, textWidth(\"<-\")+10, 30); \n rightArrow = new Button(optionsMenu.menuButtons[0].x + 355, (optionsMenu.menuButtons[0].y+25 + (optionsMenu.buttonHeight/2))-20, textWidth(\"->\")+10, 30);\n acceptRes = new Button(optionsMenu.menuButtons[0].x + 270, (optionsMenu.menuButtons[0].y+60 + (optionsMenu.buttonHeight/2))-20, textWidth(\"ok\")+10, 20);\n }\n }", "title": "" }, { "docid": "331e7cdc360a874e1de397650302817d", "score": "0.7072779", "text": "private void menu()\n {\n final int SHORTCUT_MASK =\n Toolkit.getDefaultToolkit().getMenuShortcutKeyMask();\n\n JMenuBar menubar = new JMenuBar();\n setJMenuBar(menubar);\n\n JMenu menu;\n JMenuItem item;\n\n menu = new JMenu(\"File\");\n\n item = new JMenuItem(\"Save\");\n item.addActionListener(new ActionListener() {\n public void actionPerformed(ActionEvent e) {\n saved();\n }\n });\n menu.add(item);\n\n item = new JMenuItem(\"Clear\");\n item.addActionListener(new ActionListener() {\n public void actionPerformed(ActionEvent e) {\n clear();\n }\n });\n menu.add(item);\n\n item = new JMenuItem(\"Quit\");\n item.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_Q, SHORTCUT_MASK));\n item.addActionListener(new ActionListener() {\n public void actionPerformed(ActionEvent e) {\n quit();\n }\n });\n menu.add(item);\n menubar.add(menu);\n\n menu = new JMenu(\"Options\");\n\n item = new JMenuItem(\"Help\");\n item.addActionListener(new ActionListener() {\n public void actionPerformed(ActionEvent e) {\n help();\n }\n });\n menu.add(item);\n menubar.add(menu);\n\n }", "title": "" }, { "docid": "33d6dc22e49a9aeb8343647038011127", "score": "0.7072197", "text": "public void showMenu() {\r\n System.out.println(\"1. Get price of the individual Stonk\");\r\n System.out.println(\"2. Get price of portfolio\");\r\n System.out.println(\"3. Add Stonk to portfolio\");\r\n System.out.println(\"4. Remove Stonk from portfolio\");\r\n }", "title": "" }, { "docid": "1ee83dc84c2a4b4efdeac0a810f2c20f", "score": "0.70702296", "text": "private static void displayMainMenu() {\n System.out.printf(\"Main Menu%n\" +\n \"---------%n%n\" +\n \"1) Create a new list%n\" +\n \"2) Load an existing list%n\" +\n \"3) Quit%n%n\" +\n \"> \");\n }", "title": "" }, { "docid": "097648c424ae2f2973792e0b67b52372", "score": "0.7047524", "text": "public void addMenu() {\n\t\tasm.pane.add(title);\n\t\tasm.pane.add(calculate);\n\t\tasm.pane.add(comingSoon);\n\t\tasm.pane.add(integral101);\n\t\tasm.pane.add(consumerSurplus);\n\t\tasm.pane.add(quit);\n\t}", "title": "" }, { "docid": "880ca817fc07305d08785da24f9bbd7c", "score": "0.70249057", "text": "public void mainMenu() {\r\n\t\tSystem.out.println(\"[1] View all non-Approved Playgrounds\");\r\n\t\tSystem.out.println(\"[2] Close\");\r\n\t\tSystem.out.print(\"Your choice: \");\r\n\t}", "title": "" }, { "docid": "5d38143fa6917cb93785475d4b18ac09", "score": "0.70207053", "text": "private void displayMenu() {\n if (this.user instanceof Administrator) {\n new AdminMenu(this.database, (Administrator) this.user);\n } else {\n new BorrowerMenu(this.database);\n }\n }", "title": "" }, { "docid": "aa99a69847bfc279e86157272ef9f5e9", "score": "0.701132", "text": "public void displayMenu() {\n Console.clearScreen();\n\n String header = getHeader();\n int input;\n if (account instanceof Checking) {\n input = Console.getInput(header, new String[]{\"View Transaction History\", \"Deposit\", \"Withdrawal\", \"Close Account\", \"Transfer\", \"Change Overdraft Status\", \"Back to Main Menu\"});\n } else {\n input = Console.getInput(header, new String[]{\"View Transaction History\", \"Deposit\", \"Withdrawal\", \"Close Account\", \"Transfer\", \"Back to Main Menu\"});\n }\n handleChoice(input);\n }", "title": "" }, { "docid": "e84d5771d41cbf33d32b52e983465b48", "score": "0.7007642", "text": "public void displayExtrasMenu()\n {\n if(main.selectedOption == 2)\n {\n extrasMenu.display();\n // Draw the expanding lines\n drawSubMenuLines(2, color(255));\n }\n }", "title": "" }, { "docid": "07af20105fe2d76b9f0a4f4e355c272e", "score": "0.69919145", "text": "private void printMainMenu()\r\n\t{\r\n\t\tSystem.out.println();\r\n\t\tSystem.out.println(\"THESAURUS\");\r\n\t\tSystem.out.println(\"Select one of the following options:\");\r\n\t\tSystem.out.println(\"1) Look up a word\");\r\n\t\tSystem.out.println(\"2) Add word\");\r\n\t\tSystem.out.println(\"3) Edit word\");\r\n\t\tSystem.out.println(\"4) Remove word\");\r\n\t\tSystem.out.println(\"5) View all words\");\r\n\t\tSystem.out.println(\"6) Exit\");\r\n\t}", "title": "" }, { "docid": "17bd53c1063d909737d7d7ddad12c846", "score": "0.6967024", "text": "public void displayBasicMenu()\n\t{\n\t\tSystem.out.println(basicMenu);\n\t}", "title": "" }, { "docid": "ca0260add08d934fa87438d6e406b038", "score": "0.69575185", "text": "public static void printMenu()\n {\n System.out.print(\"Choice\\t\\tAction\\n\" +\n \"------\\t\\t------\\n\" +\n \"A\\t\\tAdd Movie\\n\" +\n \"C\\t\\tCreate MovieArrangement\\n\" +\n \"D\\t\\tSearch by Movie\\n\" +\n \"E\\t\\tSearch by Production\\n\" +\n \"L\\t\\tList Movies\\n\" +\n \"N\\t\\tSort by Movie Titles\\n\" +\n \"O\\t\\tSort by Movie Years\\n\" +\n \"P\\t\\tSort by Productions\\n\" +\n \"Q\\t\\tQuit\\n\" +\n \"R\\t\\tRemove by Movie\\n\" +\n \"T\\t\\tClose MovieArrangement\\n\" +\n \"U\\t\\tWrite Text to File\\n\" +\n \"V\\t\\tRead Text from File\\n\" +\n \"W\\t\\tSerialize MovieArrangement to File\\n\" +\n \"X\\t\\tDeserialize MovieArrangement from File\\n\" +\n \"?\\t\\tDisplay Help\\n\\n\");\n }", "title": "" }, { "docid": "419f1fd8623947381f8fc4ffbbf272e2", "score": "0.695267", "text": "public void displayStartGameMenu()\n {\n if(main.selectedOption == 0)\n {\n startGameMenu.display();\n // Draw the expanding lines\n drawSubMenuLines(0, color(255));\n }\n }", "title": "" }, { "docid": "fc7fc65651483f469d2f747ac46a4c5a", "score": "0.6950339", "text": "private static void printMenu(){\n \n System.out.println();\n System.out.println(\"-*-*-*-*- Menu -*-*-*-*-\");\n System.out.println(\"V: View all rooms\");\n System.out.println(\"A: Add customer to room\");\n System.out.println(\"E: View empty rooms\");\n System.out.println(\"D: Remove customer from a room\");\n System.out.println(\"F: Search rooms by customer name\");\n System.out.println(\"S: Save current room listings\");\n System.out.println(\"L: Load last saved room listings\");\n System.out.println(\"O: View occupied rooms in order of customer name\");\n System.out.println(\"Q: Quit program\");\n \n }", "title": "" }, { "docid": "833044322be71d9ef030450e556cdbe2", "score": "0.69401157", "text": "public void showMenu()\r\n {\r\n System.out.println(\"Enter Car order: \");\r\n \r\n super.showCommon();\r\n \r\n \r\n super.showMenu(\"What type of Car is this?\", CARTYPE );\r\n \r\n \r\n \r\n \r\n super.showMenu(\"Does this car have a towing package?\", TOWINGPACKAGE );\r\n \r\n }", "title": "" }, { "docid": "7383bdcddf9de6ec97e9fff4bd003eb0", "score": "0.6929118", "text": "public void menu ()\n {\n // print menu and force choice\n String choice;\n do {\n UI.println(\"(A)dd a book\");\n UI.println(\"(F)ind a book\");\n UI.println(\"(P)rint all\");\n UI.println(\"(Q)uit\");\n \n choice = UI.askString(\"Enter a choice: \");\n \n if (choice.equalsIgnoreCase(\"A\")) {\n addBook();\n \n } else if (choice.equalsIgnoreCase(\"F\")) {\n findBookName();\n }else if (choice.equalsIgnoreCase(\"P\")) {\n printAll();\n }else if (choice.equalsIgnoreCase(\"Q\")) {\n UI.println(\"Goodbye!\");\n UI.quit();\n }else {\n UI.println(\"Thats is not a choice you knucklehead!\");\n }\n } while (!choice.equalsIgnoreCase(\"Q\"));\n }", "title": "" }, { "docid": "53d0d413e4d9574da9fef95a12dc154c", "score": "0.69266075", "text": "private void printMenuChoices()\n {\n System.out.println();\n System.out.println(\" Add: Add a new product\");\n System.out.println(\" Remove: Remove an old product\");\n System.out.println(\" PrintAll: Print all products\");\n System.out.println(\" Search: Print products based on a part of their name\");\n System.out.println(\" Deliver: Chose an ID then deliver stock to it\");\n System.out.println(\" Sell: Chose an ID then sell an amount of stock from it\");\n System.out.println(\" Low: Print a list of products with low stock\");\n System.out.println(\" ReStock: Restock all products\");\n System.out.println(\" Quit: Quit the program\");\n System.out.println(); \n }", "title": "" }, { "docid": "d8c1e9fe5fe64b85926300ab1ca68626", "score": "0.69243115", "text": "public void displayOptions() {\n makeJButton(\"Change title\");\n makeJButton(\"Change time\");\n makeJButton(\"Change description\");\n makeJButton(\"Add tag\");\n makeJButton(\"Remove tag\");\n }", "title": "" }, { "docid": "c89133420961a7851f24e657fd70c4b1", "score": "0.69235724", "text": "public static void f_menu(){\n System.out.println(\"taotalsavedSOFT-----version 1.0-----made by Mauricio Bravo\");\n }", "title": "" }, { "docid": "aaf29f62bc53d4868469e048c872f249", "score": "0.6915313", "text": "private void printMenuChoices()\n {\n System.out.println();\n System.out.println(\" Add: Add a new product\");\n System.out.println(\" Remove: Remove an old product\");\n System.out.println(\" Sell: Minus from product stock\");\n System.out.println(\" Search: Look for product\");\n System.out.println(\" PrintAll: Print all products\");\n System.out.println(\" Quit: Quit the program\");\n System.out.println(); \n }", "title": "" }, { "docid": "926cee24df66ce9d4e4b8214561afec2", "score": "0.6904513", "text": "private void printMenuChoices()\n {\n System.out.println();\n System.out.println();\n System.out.println(\" Add: Add a new product\");\n System.out.println(\" Remove: Remove an old product\");\n System.out.println(\" Delivery: Delivery of a product\");\n System.out.println(\" Sell: Sell a product\");\n System.out.println(\" Search: Search for a product\");\n System.out.println(\" ReStock: Restock low stock products\");\n System.out.println(\" PrintAll: Print all products\");\n System.out.println(\" PrintLow: Print all products of low stock\");\n System.out.println(\" Quit: Quit the program\");\n System.out.println(); \n }", "title": "" }, { "docid": "ee2237d75749ca846bd7e9674098a77e", "score": "0.69028455", "text": "private void displayOptionsMenu()\n {\n \tif (isAttached) {\n\t \topenOptionsMenu();\n \t}\n }", "title": "" }, { "docid": "4f358b53f8936f6ba6e7dd1befd4c1ee", "score": "0.68931407", "text": "private static void menu() {\r\n\t\tSystem.out.println(\"\\n\\n---------------------------------------------------\\r\\n\"\r\n\t\t\t\t+ \"Customer Menu\\r\\n\"\r\n\t\t\t\t+\"---------------------------------------------------\\r\\n\"\r\n\t\t\t\t+\"1. Find customer by account number.\\r\\n\"\r\n\t\t\t\t+ \"2. Report customers with any missed payments.\\r\\n\"\r\n\t\t\t\t+ \"3. Report customers with \\\"Closed\\\" status.\\r\\n\"\r\n\t\t\t\t+ \"4. Exit\\r\\n\"\r\n\t\t\t\t+ \"---------------------------------------------------\\r\\n\"\r\n\t\t\t\t+ \"Enter 1, 2, 3, or 4 here: \");\r\n\t}", "title": "" }, { "docid": "9e54fb817e47d3f0991e1ab373e94f50", "score": "0.68740875", "text": "@Override\n\tpublic void displayMenu() {\n\t\tSystem.out.println(\"List of Items:-\");\n\t\tfor(Item i:al) {\n\t\t\tSystem.out.println(\"\\nID: \"+i.id+\"\\nName: \"+i.name+\"\\nPrice: \"+i.price);\n\t\t}\n\n\t}", "title": "" }, { "docid": "a36f6c3503bb01dcfad5f7ce67bc76ea", "score": "0.687276", "text": "private void printMenuChoices()\n {\n System.out.println();\n System.out.println(\" Add: Add a new product\");\n System.out.println(\" Remove: Remove an old product\");\n System.out.println(\" Sell: Sell quantity of product\");\n System.out.println(\" Deliver: Deliver quantity of product\");\n System.out.println(\" Low Stock: Stock is low\");\n System.out.println(\" PrintAll: Print all products\");\n System.out.println(\" Quit: Quit the program\");\n System.out.println(); \n }", "title": "" }, { "docid": "a78afffefa80b195be0673c9d6e3ff52", "score": "0.687175", "text": "Menu(){}", "title": "" }, { "docid": "28e7f71bd12b6390f9abcdb20d1f93f0", "score": "0.6865379", "text": "public void displayMenu() throws IOException {\n\t\tint option = -1;\n\t\twhile (option != 5) {\n\t\t\tSystem.out.println(\"Welcome in ABC Book Company: How May We Assist You?\");\n\t\t\tSystem.out.println(\"1 Checkout Book\");\n\t\t\tSystem.out.println(\"2 Find Books by Title\");\n\t\t\tSystem.out.println(\"3 Display Books by Type\");\n\t\t\tSystem.out.println(\"4 Produce Random Book List\");\n\t\t\tSystem.out.println(\"5 Save & Exit\");\n\t\t\tSystem.out.print(\"Enter an option: \");\n\t\t\toption = keyboard.nextInt();\n\t\t\tkeyboard.nextLine();\n\t\t\tswitch (option) {\n\t\t\tcase 1:\n\t\t\t\tcheckoutBook();\n\t\t\t\tbreak;\n\n\t\t\tcase 2:\n\t\t\t\tfindBookByTitle();\n\t\t\t\tbreak;\n\n\t\t\tcase 3:\n\t\t\t\tdisplayBookByType();\n\t\t\t\tbreak;\n\n\t\t\tcase 4:\n\t\t\t\trandomBookList();\n\t\t\t\tbreak;\n\n\t\t\tcase 5:\n\t\t\t\tsaveChanges();\n\t\t\t\tbreak;\n\n\t\t\tdefault:\n\t\t\t\tSystem.out.println(\"Invalid option\\n\");\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "5e3dc32c3fa79cd680b8665e0bfbf3ee", "score": "0.68618023", "text": "public void llenarMenu() {\n listAyuda.add(\"Digita cualquier de los siguientes comandos para recibir asistencia:\");\n listAyuda.add(\"* Agregar -> Para saber como agregar un nuevo empleado\");\n listAyuda.add(\"* Actualizar -> Para saber como actualizar un empleado\");\n listAyuda.add(\"* Desactivar -> Para saber como desactivar un empleado despedido de la empresa\");\n listAyuda.add(\"* Planilla -> Para saber como ver y generar una planilla de pagos\");\n listAyuda.add(\"* Salarios -> Para saber como actualizar los salarios de los empleados\");\n }", "title": "" }, { "docid": "fed99f14ef88df9c0d493a9b92e9b3d1", "score": "0.68532956", "text": "private void showmanagemenu() {\n\t\tSystem.out.println(\"1.显示所有用户状态\");\n\t\tSystem.out.println(\"2.冻结账户\");\n\t\tSystem.out.println(\"3.解冻账户\");\n\t\tSystem.out.println(\"4.退出\");\n\t\tSystem.out.println(\"请输入选项\");\n\t\tswitch (input.nextInt()) {\n\t\tcase 1:\n\t\t\tshowaccountstate();\n\t\t\tbreak;\n\t\tcase 2:\n\t\t\tfrozenaccount();\n\t\t\tbreak;\n\t\tcase 3:\n\t\t\trecoveraccount();\n\t\t\tbreak;\n\t\tcase 4:\n\t\t\tstartup();\n\t\t\tbreak;\n\n\t\tdefault:\n\t\t\tSystem.out.println(\"输入有误,请重新输入\");\n\t\t\tbreak;\n\t\t}\n\t\tshowmanagemenu();\n\t}", "title": "" }, { "docid": "8c061df27fb796bb74de0cd7c5348a4d", "score": "0.6851491", "text": "private void printMainMenu()\n {\n System.out.println(\"\\n**** Application v0.1 ****\\n\");\n System.out.println(\"1. List all products\");\n System.out.println(\"2. Register new product\");\n System.out.println(\"3. Find a product by title and publisher\");\n System.out.println(\"4. Exit\\n\");\n System.out.println(\"Please choose menu item (1-4): \\n\");\n System.out.print(\"> \");\n }", "title": "" }, { "docid": "b4087aa3e449110da6059e086b797f57", "score": "0.684864", "text": "private static void menu(){\r\n int selection;\r\n do {\r\n selection=optionSel();\r\n options(selection);\r\n }while (selection!=3);\r\n }", "title": "" }, { "docid": "2a0c42136147aa1b53e377e49eadbb58", "score": "0.68447334", "text": "private void displayMenu() {\n if (mainMenuMessage.isEmpty()) {\n StringBuilder stringBuilder = new StringBuilder(\"Enter on of the following commands : \\n\");\n stringBuilder.append(\"\\ttime - pass certain amount of time\\n\");\n stringBuilder.append(\"\\topen - open a new account\\n\");\n stringBuilder.append(\"\\tclose - close an account\\n\");\n stringBuilder.append(\"\\tcredit - credit an account\\n\");\n stringBuilder.append(\"\\tdebit - debit an account\\n\");\n stringBuilder.append(\"\\tsummary - display current bank accounts\\n\");\n stringBuilder.append(\"\\texit - exit program\\n\");\n stringBuilder.append(\"What do you wanna do?\");\n mainMenuMessage = stringBuilder.toString();\n\n }\n System.out.println(mainMenuMessage);\n\n\n }", "title": "" }, { "docid": "d4553827239b818983b07f16a42e130d", "score": "0.68410665", "text": "private static void menu()\n\t{\n\t\tmenuBar.add(file);\n\t\tfile.addSeparator();\t\t\t\n\t\tfile.add(quit);\n\t}", "title": "" }, { "docid": "547fb32fbd4f75d5592ebf58981e3e33", "score": "0.6840555", "text": "private void addMenu() {\n // Create menu creator //\n m = Menu.create(\"console\");\n\n // Add menu items on bar //\n m.addMenuByName(OPTION_MENU, \"Options\");\n\n // Add menu items inside bar-visible ones //\n m.addGenericMenuItemToMenuByName(OPTION_MENU, DEBUG_JMIKEY,\n new JCheckBoxMenuItem(\"Debug?\"));\n JMenuItem jmi = m.getItemInMenuByRef(OPTION_MENU, DEBUG_JMIKEY);\n jmi.setSelected(error);\n\n // Add listeners //\n m.setActionListenerAll(JMIActionListener.instForMenu(\"console\"));\n\n // Display //\n m.display(this);\n }", "title": "" }, { "docid": "9e82f1771f88a1fa1e05787c166672cb", "score": "0.6820469", "text": "private void printMenu() {\n\t\tSystem.out.println(\"ADRELI - Adressverwaltung\");\n\t\tSystem.out.println(\" \");\n\t\tSystem.out.println(\"Wollen Sie ...\");\n\t\tSystem.out.println(\"0. Programm Beenden\");\n\t\tSystem.out.println(\"1. Neue Person anlegen\");\n\t\tSystem.out.println(\"2. Alle Anzeigen\");\n\t\tSystem.out.println(\"3. Personen speichern\");\n\t\tSystem.out.println(\"4. Personen laden\");\n\t\tSystem.out.println(\"5. Personen Datei loeschen\");\n\t\tSystem.out.println(\"6. Personen sortieren\");\n\t\tSystem.out.println();\n\t\tSystem.out\n\t\t\t\t.println(\"Bitte tippen Sie ein Menupunkt und bestaetigen mit Enter [0-6]:\");\n\t}", "title": "" }, { "docid": "41341afabd0415a4b8dc16b7068e5c82", "score": "0.6820466", "text": "public void statsMenu() {\n\t\t\t//Options from 1 to 10, where 9 allows for display of the options again\n\t\t\tSystem.out.println(\"\\n\\t===================== Statistics Menu =====================\");\n\t\t\tSystem.out.println(\"\\tChoose from one of the following options: \");\n\t\t\tSystem.out.println(\"\\t\\t1 - Does the searched word exist within the array\");\n\t\t\tSystem.out.println(\"\\t\\t2 - Number of elements in the array\");\n\t\t\tSystem.out.println(\"\\t\\t3 - Number of occurrences of searched word within the array\");\n\t\t\tSystem.out.println(\"\\t\\t4 - First occurence\");\n\t\t\tSystem.out.println(\"\\t\\t5 - Last Occurence\");\n\t\t\tSystem.out.println(\"\\t\\t6 - Display all occurences\");\n\t\t\tSystem.out.println(\"\\t\\t7 - Delete all occurences from the array\");\n\t\t\tSystem.out.println(\"\\t\\t8 - Delete selected occurence from the array\");\n\t\t\tSystem.out.println(\"\\t\\t9 - Display menu again\");\n\t\t\tSystem.out.println(\"\\t\\t10 - Exit\");\n\t\t\t\n\t\t}", "title": "" }, { "docid": "3dcb80fdc0f4adeebab16b7843cb64c9", "score": "0.68188244", "text": "private void mainMenuView() {\r\n\r\n\t\tOutputHelper.mainMenu();\r\n int inputMainMenu = InputHelper.scanInt(1,4);\r\n switch(inputMainMenu) {\r\n case 1:\r\n \t// Redirect to Reference Menu\r\n \tSystem.out.println(\"\\n\");\r\n getReferencesMenu();\r\n break;\r\n case 2:\r\n \t// Redirect to Employee Directory Menu\r\n \tSystem.out.println(\"\\n\");\r\n viewEmployeesDirectoryMenu();\r\n break;\r\n case 3:\r\n \t// Redirect to Employee Directory Menu\r\n \tSystem.out.println(\"\\n\");\r\n manageLibraryMenu(false);\r\n break;\r\n case 4:\r\n \t// Terminate the program\r\n System.exit(0);\r\n break;\r\n default:\r\n System.out.println(\"\\n\");\r\n \t\tSystem.out.println(String.format(\"%-5s%-50s%5s\", \"\",\"*** Warning: Unrecognized choice. Please try again. ***\",\"\"));\r\n open();\r\n }\r\n }", "title": "" }, { "docid": "ef51c676fb364adcdb6e5886d9f46864", "score": "0.680075", "text": "public void displayUserMenu() {\n\t\tSystem.out.println(\"Please choose an option from the menu below.\\n\");\n\t\tSystem.out.println(\"1. List planes currently in the fleet\");\n\t\tSystem.out.println(\"2. Fly all jets in the fleet\");\n\t\tSystem.out.println(\"3. View the fastest plane in the fleet\");\n\t\tSystem.out.println(\"4. View farthest flying plane in the fleet\");\n\t\tSystem.out.println(\"5. Load cargo onto all planes in the fleet\");\n\t\tSystem.out.println(\"6. Launch the Fighters!\");\n\t\tSystem.out.println(\"7. Add a plane to the fleet\");\n\t\tSystem.out.println(\"8. Remove a plane from the fleet\");\n\t\tSystem.out.println(\"9. Leave the airfield and quit the program\");\n\n\t}", "title": "" }, { "docid": "7aa5095fca159f38962df1d49df6bf7e", "score": "0.67990357", "text": "public String menu() {\r\n\r\n\t\tString textoMenu;\r\n\r\n\t\ttextoMenu = \"Menu Principal \\r\\n\";\r\n\t\ttextoMenu += \"1. Incluir paciente \\r\\n\";\r\n\t\ttextoMenu += \"2. Atender paciente \\r\\n\";\r\n\t\ttextoMenu += \"3. Sair\";\r\n\r\n\t\treturn textoMenu;\r\n\r\n\t}", "title": "" }, { "docid": "1e0a173d2884f7a57fb74f5297fb3781", "score": "0.6796947", "text": "private void createMenu() {\n fileMenu = new Menu(\"File\");\n optionsMenu = new Menu(\"Options\");\n helpMenu = new Menu(\"Help\");\n }", "title": "" }, { "docid": "c965d1a36436c337cb35b9575889f992", "score": "0.67889893", "text": "private void displayMenuText() {\r\n\r\n // Print menu text\r\n System.out.println(\"\\nTIC-TAC-TOE\\n\");\r\n System.out.println(\"MAIN MENU\\n\");\r\n\r\n System.out.println(\"PVP - Battle agaisnt a friend!\");\r\n System.out.println(\"PVE - Battle agaisnt the computer!\\n\");\r\n System.out.println(\"Choose the game mode: \\nEnter 1 for PVP \\nEnter 2 for PVE\");\r\n }", "title": "" }, { "docid": "a00bf8d5ee965c5c5a99f6159e73fe82", "score": "0.6777846", "text": "public void menu() {\r\n\t\tbetMenu = new Menu(comm);\r\n\r\n\t\tbetMenu.addMenuOption( new MenuOption('H',\"The dealers card will be higher (pays 1-1)\") );\r\n\t\tbetMenu.addMenuOption( new MenuOption('L',\"The dealers card will be lower (pays 1-1)\"));\r\n\t\tbetMenu.addMenuOption( new MenuOption('S',\"The dealers card will be the same (pays 2-1)\"));\r\n\t}", "title": "" }, { "docid": "cddb884632a0e9b8d8acfa811b876f15", "score": "0.67691654", "text": "public static void doMenu(String menuSelection) {\n String menu = \"Welcome to my integration project \\n\\n\"\n + \"1: Exercises \\n2: Stuff from videos \\n\"\n + \"3: Glossary \\n4: Misc. \\n\\nEnter STOP to terminate program \\n\\n\"\n + menuSelection;\n System.out.println(menu);\n }", "title": "" }, { "docid": "aec798e583bb78fdfb682a0c54def7dc", "score": "0.6767186", "text": "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.lab1, menu);\n return true;\n }", "title": "" }, { "docid": "a8e31b3012ebeede466c98b7e76edae1", "score": "0.6761823", "text": "void openMenu();", "title": "" }, { "docid": "c4cb22d90acf70867832f1d9c043ac78", "score": "0.67491025", "text": "public static void mostrarMenu(){\n\t\t\n\t\tSystem.out.println(\"------Opciones de menu------\");\n\t\tSystem.out.println(\"1 - Crear un nuevo empleado\");\n\t\tSystem.out.println(\"2 - Crear un nuevo Cliente \");\n\t\tSystem.out.println(\"3 - Crear un nuevo objeto\");\n\t\tSystem.out.println(\"4 - Buscar un objeto dado su codigo\");\n\t\tSystem.out.println(\"5 - consultar dado el nombre del objeto la cantidad de préstamos en el cual está incluido\");\n\t\tSystem.out.println(\"6 -\");\n\t\tSystem.out.println(\"7 - Reemplazar un objeto por otro\");\n\t\tSystem.out.println(\"8 - crear un prestamo\");\n\t\tSystem.out.println(\"9 -Adicionar objeto al prestamo\");\n\t\tSystem.out.println(\"10 -Entregar un prestamo\");\n\t\tSystem.out.println(\"11 -consultar datos de un prestamo\");\n\t\tSystem.out.println(\"12 -Mostrar la cantidad de prestamos realizados por cada empleado\");\n\t\tSystem.out.println(\"13 -Mostrar datos del empleado con m�s unidades prestadas\");\n\t\tSystem.out.println(\"14 -Total de dinero recaudado por la empresa.\");\n\t\tSystem.out.println(\"16 -Salir del programa\");\n\t}", "title": "" }, { "docid": "601a20c50e433430c286640dcece5d4d", "score": "0.67471075", "text": "public void createAndShowMenu(JFrame main) {\n\t\tJFrame menu = new JFrame(\"Options\");\n\t\tmenu.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\n\t\ttry {\n\t\t\t// Display the option menu\n\t\t\tOption newContentPane = new Option();\n\t\t\tnewContentPane.setOpaque(true); \n\t\t\tmenu.setContentPane(newContentPane);\n\t\t\tJButton button = new JButton(\"Done\");\n\t\t\t\n\t\t\t// Set game to begin when option menu is closed\n\t\t\tbutton.addActionListener(new ActionListener() {\n\t\t\t public void actionPerformed(ActionEvent ae) {\n\t\t\t \t menu.dispose();\n\t\t\t run(newContentPane.getSelectedItem());\n\t\t\t }\n\t\t\t }\n\t\t\t );\n\t\t\t\n\t\t\tbutton.setPreferredSize(new Dimension(75, 75));\n\t\t\t\n\t\t\tnewContentPane.add(button);\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t\tmenu.setPreferredSize(new Dimension(500, 500));\n\t\tmenu.pack();\n\t\tmenu.setVisible(true);\n\t\tDimension dim = Toolkit.getDefaultToolkit().getScreenSize();\n\t\tmenu.setLocation(dim.width / 2 - menu.getSize().width / 2, dim.height / 2 - menu.getSize().height / 2);\n\t}", "title": "" }, { "docid": "719c880ac07722f44fbc00ab1d7b9a33", "score": "0.6746543", "text": "private void showcardmenu() {\n\t\tSystem.out.println(\"1.查询余额\");\n\t\tSystem.out.println(\"2.存款\");\n\t\tSystem.out.println(\"3.取款\");\n\t\tSystem.out.println(\"4.转账\");\n\t\tSystem.out.println(\"5.修改密码\");\n\t\tSystem.out.println(\"6.退出\");\n\t\tSystem.out.println(\"请输入选项\");\n\t\tswitch (input.nextInt()) {\n\t\tcase 1:\n\t\t\tshowmoney();\n\t\t\tbreak;\n\t\tcase 2:\n\t\t\tinmoney();\n\t\t\tbreak;\n\t\tcase 3:\n\t\t\toutmoney();\n\t\t\tbreak;\n\t\tcase 4:\n\t\t\tchangemoney();\n\t\t\tbreak;\n\t\tcase 5:\n\t\t\tchangepassword();\n\t\t\tbreak;\n\t\tcase 6:\n\t\t\tstartup();\n\t\t\tbreak;\n\t\tdefault:\n\t\t\tSystem.out.println(\"选项输入错误,请重新输入\");\n\t\t\tbreak;\n\t\t}\n\t\tshowcardmenu();\n\t}", "title": "" }, { "docid": "bcf55468e3e8ac2b83625231853860d4", "score": "0.67426586", "text": "public static void displayMenu () {\r\n\tSystem.out.println(\"Now please choose from the following options:\");\r\n\tSystem.out.println(\"1 - display the array\");\r\n\tSystem.out.println(\"2 - max value of array\");\r\n\tSystem.out.println(\"3 - display the array in reverse\");\r\n\tSystem.out.println(\"4 - display a certain number's index\");\r\n\tSystem.out.println(\"5 - find out if a certain number's there\");\r\n\tSystem.out.println(\"6 - display the occurrences of a certain number\");\r\n\tSystem.out.println(\"7 - reverse the contents of your array\");\r\n\tSystem.out.println(\"8 - toggle menu\");\r\n\tSystem.out.println(\"0 - exit\");\r\n}", "title": "" }, { "docid": "2bdfbb2c254b16ca7d03c91ef8ed9f00", "score": "0.67392564", "text": "public static void visualizzaMenu() {\n\t\tusaServizio_standard.scrivi(\"\\n***************MENU**************\",\"**\");\n\t\tint i = 0;\n\t\t//ciclo for-each per scandire gli elementi nel TreeMap del menù\n\t\tfor (Entry<String, Double> entry : getMenu().entrySet()) {\n\t\t\ti++;\n\t\t\t//stampa nella forma < 1 - nomePizza €prezzoPizza>\n\t\t\tSystem.out.println(\"** \"+ i + \" - \" + entry.getKey() + \" €\" + entry.getValue());\n\t\t}\n\t\tusaServizio_standard.scrivi(\"**\",\"*********************************\\n\");\n\t}", "title": "" }, { "docid": "280c7c07a5a7d662a2acbb0c480c46a3", "score": "0.6721027", "text": "public static void menu() {\n\t\t\tdo {\n\n\t\t\tSystem.out.println(\"\\n------- CAP NHAP DANH SACH SINH VIEN--------\");\n\t\t\tSystem.out.println(\"Chon mot chuc nang quan ly\");\n\t\t\tSystem.out.println(\"Chon 1: Them sinh vien moi.\");\n\t\t\tSystem.out.println(\"Chon 2: Xem danh sach sinh vien\");\n\t\t\tSystem.out.println(\"Chon 3: Sua thong tin sinh vien\");\n\t\t\tSystem.out.println(\"Chon 4: Xoa thong tin sinh vien\");\n\t\t\tSystem.out.println(\"Chon 0: Quay lai\");\n\t\t\tSystem.out.println(\"Lua chon cua ban: \");\n\t\t\tint chon = Integer.parseInt(Sp.sc.nextLine());\n\t\t\tswitch (chon){\n\t\t\t\tcase 1: add(); break;\n\t\t\t\tcase 2: display(); break;\n\t\t\t\tcase 3: update();break;\n\t\t\t\tcase 4: remove(); break;\n\t\t\t\tcase 0: return;\n\t\t\t\tdefault: System.out.println(\"Lua chon khong hop le\");\n\t\t\t}\n\t\t}while(true);\n\t\t}", "title": "" }, { "docid": "b5d46dc44eb140eb7e45b1fe76eed1d6", "score": "0.6713886", "text": "public void display_cho_list() {\n choices.display();\n }", "title": "" } ]
f902f84576e4bd689551694e92796895
testeo si el findAll me devuelve correctamente la lista.
[ { "docid": "9b311d251d614dae9d4285221e1e3920", "score": "0.0", "text": "public List<Producto> listarAll(){\n return productoRepository.findAll();\n }", "title": "" } ]
[ { "docid": "f5fb0b7361f19a2aeda68376e7b47669", "score": "0.76002365", "text": "@Test\r\n public void testFindAll() throws Exception\r\n {\r\n List<ViviendaEntity> list = viviendaPersistence.findAll();\r\n Assert.assertEquals(data.size() , list.size());\r\n for(ViviendaEntity ent : list)\r\n {\r\n boolean found = false;\r\n for(ViviendaEntity entity : data)\r\n {\r\n if(ent.getId().equals(entity.getId()))\r\n {\r\n found = true;\r\n }\r\n }\r\n Assert.assertTrue(found);\r\n }\r\n }", "title": "" }, { "docid": "7f99dc29964c3f61c7446c1089e1b3ae", "score": "0.7265521", "text": "@Test\r\n public void getVinilosTest() {\r\n List<ViniloEntity> list = vp.findAll();\r\n Assert.assertEquals(data.size(), list.size());\r\n for (ViniloEntity ent : list) {\r\n boolean found = false;\r\n for (ViniloEntity entity : data) {\r\n if (ent.getId().equals(entity.getId())) {\r\n found = true;\r\n }\r\n }\r\n Assert.assertTrue(found);\r\n }\r\n }", "title": "" }, { "docid": "af6c5f12cb56c5924d8e8da6856851d6", "score": "0.71557826", "text": "@Test\n public void getEdificiosTest() \n {\n List<EdificioEntity> list = edificioPersistence.findAll();\n Assert.assertEquals(data.size(), list.size());\n for (EdificioEntity ent : list) {\n boolean found = false;\n for (EdificioEntity entity : data) {\n if (ent.getId().equals(entity.getId())) {\n found = true;\n }\n }\n Assert.assertTrue(found);\n }\n }", "title": "" }, { "docid": "5c17e7d78a527f4e0028d75657566279", "score": "0.7049203", "text": "@Test\n public void getUsuariosTest() {\n List<UsuarioEntity> list = usuarioLogic.getUsuarios();\n Assert.assertEquals(data.size(), list.size());\n for (UsuarioEntity entity : list) {\n boolean found = false;\n for (UsuarioEntity storedEntity : data) {\n if (entity.getId().equals(storedEntity.getId())) {\n found = true;\n }\n }\n Assert.assertTrue(found);\n }\n }", "title": "" }, { "docid": "4c4bda3c9738b1488ab11810dcbabf23", "score": "0.70044196", "text": "@Test\r\n public void getMensajerosTest() {\r\n List<MensajeroEntity> list = mensajeroPersistence.findAll();\r\n Assert.assertEquals(data.size(), list.size());\r\n for (MensajeroEntity ent : list) {\r\n boolean found = false;\r\n for (MensajeroEntity entity : data) {\r\n if (ent.getId().equals(entity.getId())) {\r\n found = true;\r\n }\r\n }\r\n Assert.assertTrue(found);\r\n }\r\n }", "title": "" }, { "docid": "fe3e1fd6a8ca26044636c8280c4f131b", "score": "0.6986945", "text": "@Test\n public void getPagoTarjetasTest() {\n List<PagoTarjetaEntity> list = pagoTarjetaLogic.getTarjetas();\n Assert.assertEquals(data.size(), list.size());\n for (PagoTarjetaEntity entity : list) {\n boolean found = false;\n for (PagoTarjetaEntity storedEntity : data) {\n if (entity.getId().equals(storedEntity.getId())) {\n found = true;\n }\n }\n Assert.assertTrue(found);\n }\n }", "title": "" }, { "docid": "2287a41c5d41a896d07d635ef54fedef", "score": "0.688497", "text": "@Test\n public void testFindall() throws Exception {\n System.out.println(\"findAll\");\n TipoProcedimientoRest rest = mokTPRest;\n List<Tipoprocedimiento> result = rest.findall();\n Tipoprocedimiento tp = new Tipoprocedimiento(1);\n assertThat(result, CoreMatchers.hasItem(tp));\n assertNotNull(result);\n }", "title": "" }, { "docid": "511caca87af824c047c03fa7d6f4059a", "score": "0.67658746", "text": "@Test\r\n public void getCortosTest(){\r\n List<CortoEntity> list = cl.getCortos();\r\n Assert.assertEquals(list.size(), data.size());\r\n for (CortoEntity ent : list) {\r\n boolean found = false;\r\n for (CortoEntity entity : data) {\r\n if (ent.getId().equals(entity.getId())) {\r\n found = true;\r\n }\r\n }\r\n Assert.assertTrue(found);\r\n }\r\n }", "title": "" }, { "docid": "395b6c4c31fab0a2d941b0c870955bc8", "score": "0.66259074", "text": "@Test\r\n public void testGetAlunos() {\r\n System.out.println(\"getAlunos\");\r\n List<Aluno> alunos = dao.getAlunos();\r\n for (Aluno a : alunosL1) {\r\n boolean flag = false;\r\n for (Aluno aluno : alunos){\r\n if (a.getId().equals(aluno.getId())){\r\n System.out.println(a.getId()+\"\\t\"+aluno.getId());\r\n flag = true;\r\n }\r\n }\r\n assertEquals(true, flag);\r\n }\r\n }", "title": "" }, { "docid": "73c2d12c285e5d31468f294591764c00", "score": "0.6577606", "text": "@Test\n public void findAllTest () {\n testCompletados++;\n List<Categoria> lista = repositorioCategoria.findAll();\n assertEquals(cantidad, lista.size());\n }", "title": "" }, { "docid": "479abba59d6c336a632003f13a32bdce", "score": "0.6540691", "text": "@Test\n public void testFindAll() {\n Collection<Ave> result = avesService.findAll();\n assertThat(result.isEmpty(), is(false));\n }", "title": "" }, { "docid": "c3753f75bd3c415ea9a0504243d2abad", "score": "0.6520055", "text": "@Test\n public void testFindAll() {\n System.out.println(\"findAll\");\n List expResult = null;\n List result = Consulta.findAll();\n assertEquals(result, expResult);\n // TODO review the generated test code and remove the default call to fail.\n fail(\"The test case is a prototype.\");\n }", "title": "" }, { "docid": "f397316c37cf4fcb98c5aeb57982f98d", "score": "0.6460573", "text": "@Test\n public void testFindAll() {\n System.out.println(\"findAll\");\n\n List<OurObject> expResult = new ArrayList();\n List<OurObject> result = service.findAll();\n assertEquals(expResult, result);\n\n }", "title": "" }, { "docid": "14b504949a250c7643125157b62e603f", "score": "0.64509255", "text": "@Test\n public void testFindAll() {\n System.out.println(\"findAll\");\n Escenario escenario = new Escenario(16);\n ProduccionMesInicialManager instance = new ProduccionMesInicialManager();\n List<ProduccionMesInicial> expResult = null;\n List<ProduccionMesInicial> result = instance.findAll(escenario);\n assertNotNull(result);\n \n }", "title": "" }, { "docid": "e09deaccb292c590ee5ac3731eb366d5", "score": "0.6445541", "text": "@Test\n public void testFindAll_callingFindAllMethod_returnsAll() {\n List<Item> itemList = itemRepository.findAll();\n assertEquals(4, itemList.size());\n }", "title": "" }, { "docid": "89cdb740ad94eeec0857f980c9f843fb", "score": "0.64330286", "text": "@Test\r\n public void testFindAll() {\r\n System.out.println(\"findAll\");\r\n List expResult = null;\r\n// List result = instance.findAll();\r\n// assertTrue(result.size() > 0);\r\n }", "title": "" }, { "docid": "c1f0ea82b2d497c5cbbc23f27f6c61bc", "score": "0.63348293", "text": "@Test()\r\n\tpublic void testgetAll() {\r\n\t\tassertEquals(\"class com.ipartek.formacion.alberto.repository.DAORecetaImpl\", daoReceta.getClass().toString());\r\n\r\n\t\tArrayList<Receta> lista = (ArrayList<Receta>) daoReceta.getAll();\r\n\t\tassertNotNull(\"No deberia retornar null\", lista);\r\n\t\tassertTrue(lista.size() >= 0);\r\n\r\n\t}", "title": "" }, { "docid": "ed8becd3cc33b41830fd1d82feea4df8", "score": "0.6320908", "text": "public abstract ArrayList<T> findAll();", "title": "" }, { "docid": "758cb6b60aa2bf6497a7679236951019", "score": "0.6312004", "text": "@Test\r\n\tpublic void findAllAndPorcentagemTest() {\r\n\t\tList<Mascote> mascotes = new ArrayList<Mascote>();\r\n\t\tfinal Mascote mascote1 = new Mascote();\r\n\t\tmascote1.setId(1L);\r\n\t\tmascote1.setVotos(2L);\r\n\t\tfinal Mascote mascote2 = new Mascote();\r\n\t\tmascote2.setId(2L);\r\n\t\tmascote2.setVotos(8L);\r\n\t\t\r\n\t\tmascotes.add(mascote1);\r\n\t\tmascotes.add(mascote2);\r\n\t\t\r\n\t\twhen(mascoteDao.findAll()).thenReturn(mascotes);\r\n\t\tfinal List<MascoteTO> listaFinal = mascoteBo.listaTudo();\r\n\t\tassertEquals(new Long(20L), listaFinal.get(0).getPercVotos());\r\n\t\tassertEquals(new Long(80L), listaFinal.get(1).getPercVotos());\r\n\t\t\r\n\t}", "title": "" }, { "docid": "637d948e1e153a7559e315db9017b374", "score": "0.6297955", "text": "@Test\n\tpublic void findAll() {\n\t\tlog.info(\"Test getting all curriculums.\");\n\t\tList<Curriculum> curriculums = curriculumRepository.findAll();\n\n\t\tassertFalse(curriculums.isEmpty());\n\t}", "title": "" }, { "docid": "a4b11e0232923f3581b34ec0f8500ea2", "score": "0.6230491", "text": "@Test\n public void testFindAll() throws Exception {\n\t\tlogger.info(\"findAll\");\n List<Question> expResult = null;\n List<Question> result = mockedQuestionDao.findAll();\n }", "title": "" }, { "docid": "c7d3c604f9f56105d9b7a5698a7a4cab", "score": "0.62078685", "text": "@Test()\r\n\tpublic void testGetAllWithUser() {\r\n\r\n\t\tArrayList<Receta> lista = (ArrayList<Receta>) daoReceta.getAllWithUser();\r\n\t\tassertNotNull(\"No deberia retornar null\", lista);\r\n\t\tassertNotNull(\"No deberia retornar null el usuario\", lista.get(0).getUsuario());\r\n\t\tassertTrue(lista.size() >= 0);\r\n\r\n\t}", "title": "" }, { "docid": "68d8a5d80c436086f8ce9078f25a10dd", "score": "0.6171836", "text": "List<T> findAll();", "title": "" }, { "docid": "68d8a5d80c436086f8ce9078f25a10dd", "score": "0.6171836", "text": "List<T> findAll();", "title": "" }, { "docid": "68d8a5d80c436086f8ce9078f25a10dd", "score": "0.6171836", "text": "List<T> findAll();", "title": "" }, { "docid": "f14dfa869073d85b35b859b59edba195", "score": "0.6132661", "text": "@Test\n public void getContratosHotelTest()\n {\n List<ContratoHotelEntity> contratosEntities = horaHotelContratoHotelLogic.getContratos(horaHotel.getId());\n \n Assert.assertEquals(contratosData.size(), contratosEntities.size());\n \n for (int i = 0; i < contratosData.size(); i++) {\n Assert.assertTrue(contratosEntities.contains(contratosData.get(0)));\n }\n }", "title": "" }, { "docid": "cef33bb650b3018b9ddf9a7c1921de41", "score": "0.61115277", "text": "public List<T> findAll();", "title": "" }, { "docid": "6e066cdee7679d7d276f0f0897de929c", "score": "0.6098383", "text": "public List<Movimiento> findAll();", "title": "" }, { "docid": "82509140065222d174a332a148d7a76d", "score": "0.6094035", "text": "public ArrayList<Enseignant> findAll(){\n ArrayList<Enseignant> enseignants = new ArrayList();\n ResultSet result = null;\n String requeteUti = \"SELECT * FROM Utilisateur WHERE Droit ='Enseignant';\";\n try {\n Statement stmt = con.createStatement();\n result = stmt.executeQuery(requeteUti);\n while(result.next()){\n Utilisateur utilisateur = new Utilisateur(result.getInt(\"Id\"), result.getString(\"Email\"), result.getString(\"Passwd\"),result.getString(\"Nom\"),result.getString(\"Prenom\"),result.getString(\"Droit\"));\n Enseignant ens = find(utilisateur);\n enseignants.add(ens);\n }\n stmt.close();\n } catch (SQLException e) {\n System.err.println(\"error creation array list seance dans enseignant\");\n e.printStackTrace();\n }\n return enseignants;\n }", "title": "" }, { "docid": "047d653cc300e4e0f2b6dce48744e7f5", "score": "0.6084375", "text": "@Test\r\npublic void listarAllTest(){\r\n when(iPaisDao.findAll()).thenReturn(this.paisList);\r\n Assertions.assertThat(1).isEqualTo(this.servicePais.findByAll().size());\r\n}", "title": "" }, { "docid": "d392c22597b9389c80cb5fbb1d6ff3ef", "score": "0.6074117", "text": "public List <Livreur> findall(){\n\t\tList<Livreur> a = livreurRepository.findAll();\n\t\t\n\t\tfor(Livreur Livreurs : a)\n\t\t{\n\t\t\tL.info(\"Livreurs :\"+ Livreurs);\n\t\t\t\n\t\t}\n\t\treturn a;\n\t\t}", "title": "" }, { "docid": "ee789c3156ae9b1bb7a74396e5768b69", "score": "0.60703444", "text": "public abstract void findAll();", "title": "" }, { "docid": "5de072f3c91fe9de9f066eedc9647729", "score": "0.60539246", "text": "@Test\r\n public void testTodos() {\r\n empleadoDaoJdbc = new EmpleadoDaoJdbc();\r\n System.out.println(\"Buscar todos los empleado\");\r\n List<Empleado> testBuscados = empleadoDaoJdbc.buscarTodos();\r\n //System.out.println(\"Listado:\" + testBuscados.toString());\r\n int cant = 1;\r\n for (Empleado empleado2: testBuscados) {\r\n //código para acceder a cada campo del Item.\r\n cant +=1;\r\n System.out.println(empleado2.getId() + \" - \"+ empleado2.getNombre());\r\n }\r\n assertTrue(cant > 1);\r\n }", "title": "" }, { "docid": "14bf56ad3846fe36f6817aa363186186", "score": "0.60074085", "text": "@Test\n public void findAllTest (){\n Work workFirst = new Work();\n Work workSecond = new Work();\n workFirst.setWorks(\"First work\");\n workFirst.setSizeWork(5);\n workService.save(workFirst);\n workSecond.setWorks(\"Second work\");\n workSecond.setSizeWork(4);\n workService.save(workSecond);\n List<Work> all = workService.getAll();\n assertNotNull(all);\n }", "title": "" }, { "docid": "995911af230fd7a41588d975d998e3bc", "score": "0.60012466", "text": "@Test\n public void findAll() {\n final Set<Destination> destinations = destinationService.findAll();\n assertThat(destinations).isNotNull().isNotEmpty().contains(destination, destination2); \n }", "title": "" }, { "docid": "de78e2401428617a99236ec18d9cb75b", "score": "0.59946734", "text": "@Test\n public void getAnimals_retrievesAllAnimalsFromDatabase_animalList(){\n testSighting.save();\n ThrivingAnimal firstAnimal =new ThrivingAnimal(\"Lion\",testSighting.getId());\n firstAnimal.save();\n EndangeredAnimal secondAnimal =new EndangeredAnimal(\"Zebra\",testSighting.getId(),\"okay\",\"adult\");\n secondAnimal.save();\n Object[] animals = new Object[]{\n firstAnimal,secondAnimal\n };\n assertTrue(testSighting.getAnimals().containsAll(Arrays.asList(animals)));\n }", "title": "" }, { "docid": "6fa0ca1c04d15cf76e7c74c67296fbf7", "score": "0.59840643", "text": "@Test\n public void testGetdAll() {\n System.out.println(\"findAll\");\n FunctionDAO functionDAO = new FunctionDAO();\n ArrayList<Function> arrayFunction = functionDAO.getAll();\n String expResult = \"\";\n String result = \"\";\n for (int i = 0; i < arrayFunction.size(); i++) {\n expResult += functionDAO.find(arrayFunction.get(i).getId());\n result += arrayFunction.get(i);\n }\n assertEquals(expResult, result);\n\n }", "title": "" }, { "docid": "79c9accb77705ed964799b737fd96219", "score": "0.5963485", "text": "@Test\n\t public void listarUsuarios() {\n\t\t Cliente user1 = repotCliente.save(new Cliente(1, \"martinez\", \"luis\"));\n\t entityManager.persist(user1);\n\n\t Cliente user2 = repotCliente.save(new Cliente(2, \"martinez2\", \"luis2\"));\n\t entityManager.persist(user2);\n\n\t Cliente user3= repotCliente.save(new Cliente(3, \"martinez3\", \"luis3\"));\n\t entityManager.persist(user3);\n\n\t Iterable<Cliente> users = repotCliente.findAll();\n\n\t assertThat(users).hasSize(3).contains(user1, user2 ,user3);\n\t }", "title": "" }, { "docid": "b1d4798de6589fc875383147d6ea3e72", "score": "0.59558374", "text": "@Test\n public void testSelectAll() {\n UserDAL dal = new UserDAL();\n List<User> list = dal.selectAll();\n assertTrue(list != null);\n assertTrue(list.size() > 0);\n }", "title": "" }, { "docid": "983ec4883b8424ccf4dca412402b2330", "score": "0.5932162", "text": "@Test\n public void testGetAllUsers() {\n System.out.println(\"getAllUsers\");\n\n User u1 = new User(\"test2_1\", \"testtest\", \"test\", \"test@test.com\", User.ROLE_USER,\n 100, new Date(), new Date(), true);\n User u2 = new User(\"test2_2\", \"testtest\", \"test\", \"test@test.com\", User.ROLE_USER,\n 100, new Date(), new Date(), true);\n User u3 = new User(\"test2_3\", \"testtest\", \"test\", \"test@test.com\", User.ROLE_USER,\n 100, new Date(), new Date(), true);\n\n dao.createUser(u1);\n dao.createUser(u2);\n\n List<User> result = dao.getAllUsers();\n\n dao.createUser(u3);\n\n List<User> result2 = dao.getAllUsers();\n\n // Check if all the elemnts excpet the last one\n // in both lists are the same\n boolean flag = false;\n for(int i =0; i < result.size(); i++)\n {\n System.out.println(\"orginal\" + i + result.get(i).getName());\n //System.out.println(\"modified\" + i + result2.get(i).getName());\n if(!result.get(i).equals(result2.get(i)))\n flag = true;\n }\n\n if(flag == false) return;\n fail(\"The testGetAllUsers failed.\");\n }", "title": "" }, { "docid": "66c9f20b70a38e8176d3fa3245b77767", "score": "0.59316987", "text": "@Test\n public void 회사_리스트_조회시_정상적으로_조회된다() throws Exception {\n List<Company> companies = sut.findAll();\n\n // then :\n assertThat(companies).isNotEmpty();\n }", "title": "" }, { "docid": "f2d0259880fa638c735777944b153aba", "score": "0.59235233", "text": "@Test\n public void testActualizar_List() {\n System.out.println(\"Actualizar\");\n List<MTuRed> todos = null;\n CTuRed instance = new CTuRed();\n boolean expResult = false;\n boolean result = instance.Actualizar(todos);\n assertEquals(expResult, result);\n }", "title": "" }, { "docid": "e2b10d370edb49c5ca2916881ed1c02e", "score": "0.59215236", "text": "@Override\r\n\tpublic List<T> findAll() throws RuntimeException {\r\n\t\ttry {\r\n\t\t\tSystem.out.println(\"entity class: \"+entityClass.getSimpleName()+\".findAll\");\r\n\t\t\tQuery query=entityManager.createNamedQuery(entityClass.getSimpleName()+\".findAll\");\r\n\t\t\tSystem.out.println(\"query is null \"+(query==null));\r\n\t\t\treturn query.getResultList();\r\n\t\t} catch (Exception ex) {\r\n\t\t\tex.printStackTrace();\r\n\t\t\tthrow new RuntimeException(\"Error al consultar todos los registros de la base de datos.\", ex);\r\n\t\t}\r\n\t\t\r\n\t}", "title": "" }, { "docid": "6cf677531ec24e6bba3255a7fb9774b4", "score": "0.5919947", "text": "public void testGetAll() throws Exception {\r\n List<Study> actual = dao.getAll();\r\n assertEquals(5, actual.size());\r\n List<Integer> ids = collectIds(actual);\r\n assertContains(\"Wrong study found\", ids, 1000);\r\n assertContains(\"Wrong study found\", ids, 1001);\r\n assertContains(\"Wrong study found\", ids, 1002);\r\n }", "title": "" }, { "docid": "046b8be8eaf69be174491cf488a92ff1", "score": "0.59109056", "text": "@Test\n public void testInventoryList() throws Exception {\n List<Inventory> fromDao = service.inventoryList();\n assertEquals(3, fromDao.size());\n\n for (Inventory item : fromDao) {\n assertTrue(item instanceof Inventory);\n }\n }", "title": "" }, { "docid": "30770cacf886ffba45a21a756699902b", "score": "0.590862", "text": "@Test\r\n public void findAllEmpleadosTest(){\r\n \r\n TypedQuery<EmpleadoEntity> query = em.createQuery(\"Select u from EmpleadoEntity u\", EmpleadoEntity.class);\r\n Assert.assertEquals(query.getResultList(), ep.findAllEmpleados());\r\n }", "title": "" }, { "docid": "0bf0403e672c9146def53b1ba774f98a", "score": "0.59072226", "text": "public List<Objeto> findAllObjetos();", "title": "" }, { "docid": "d9506b6482df390f9f964baf9c59cc45", "score": "0.5889813", "text": "@Test()\r\n\tpublic void testGetRecetasUser() {\r\n\r\n\t\tArrayList<Receta> lista = (ArrayList<Receta>) daoReceta.getRecetasUser(user_idNuevo);\r\n\t\tassertNotNull(\"No deberia retornar null\", lista);\r\n\t\tassertTrue(lista.size() >= 0);\r\n\r\n\t}", "title": "" }, { "docid": "4c5b03fc89631b5c3780c0b99d777d95", "score": "0.5888527", "text": "@Override\n public List<T> findAll() {\n List<T> unwrappedList = new ArrayList<T>();\n for (X ent : findAllEntity()) {\n unwrappedList.add(find(ent.getId()));\n }\n return unwrappedList;\n }", "title": "" }, { "docid": "2445cac77238b40d3e641c7ee4c36a9c", "score": "0.5885462", "text": "Set<T> findAll();", "title": "" }, { "docid": "8201565e31f589780c49d799b22ca476", "score": "0.58834887", "text": "@Transactional(readOnly = true)\n public List<FournisseurDTO> findAll() {\n log.debug(\"Request to get all Fournisseurs\");\n return fournisseurRepository.findAll().stream().map(fournisseurMapper::toDto).collect(Collectors.toCollection(LinkedList::new));\n }", "title": "" }, { "docid": "ea09c460624b312cf97b9ce2e7385b60", "score": "0.5861262", "text": "@Override\r\n\tpublic List<SnSameName> findAll() throws Exception {\n\t\treturn super.findAll();\r\n\t}", "title": "" }, { "docid": "ae62eadd888e5b40cbc70bfe297ad7c2", "score": "0.5852925", "text": "@Test\n public void shouldReturnAllUsers() {\n List<User> users = new ArrayList();\n users.add(new User());\n\n given(userRepository.findAll()).willReturn(users);\n\n List<User> expected = userServiceImpl.getUsers();\n\n assertEquals(expected, users);\n verify(userRepository).findAll();\n }", "title": "" }, { "docid": "22cfe119eea3596fd8fd01ec983e939a", "score": "0.57951164", "text": "@Test\r\n\tpublic void testfetchAllUsers() {\n\t\tList<UsersDAO> users = DBUtils.fetchAllUsers(true);\r\n\t\tassertEquals(1, users.size());\r\n\t\t\r\n\t\tusers = DBUtils.fetchAllUsers(false);\r\n\t\tassertEquals(3, users.size());\r\n\t}", "title": "" }, { "docid": "44f8ba8f976ea76cf2f954ea8cb5e552", "score": "0.5791161", "text": "@Test\n @DisplayName(\"Test findAll\")\n void testFindAll() {\n Citizen citizen1 = new Citizen(\"\", \"Fru\", \"Anye\", LocalDate.of(1981, Month.AUGUST, 06), \"Bamenda\", Region.NORTHWEST, Sex.MALE, \"fru@gmail.com\", \"fru@gmail.com\", \"1234\", \"5678\", 10002000L, 22224567L, 12L, MarriageStatus.SINGLE, \"\", LocalDate.now(), LocalDate.now(), null);\n Citizen citizen2 = new Citizen(\"\", \"Lucy\", \"Mann\", LocalDate.of(1984, Month.APRIL, 06), \"Mankon\",Region.NORTHWEST, Sex.FEMALE, \"lucy@gmail.com\", \"anye2@gmail.com\", \"987632323\", \"0789454\", 33332000L, 78784567L, 13L, MarriageStatus.MARRIED, \"\", LocalDate.now(), LocalDate.now(), null );\n doReturn(Arrays.asList(citizen1, citizen2)).when(citizenRepository).findAll();\n\n // Execute the service call\n List<Citizen> citizens = service.findAll();\n\n // Assert the response\n Assertions.assertEquals(2, citizens.size(), \"findAll should return 2 widgets\");\n }", "title": "" }, { "docid": "f0006ea61b9734e0e0b3dbf672e4feec", "score": "0.5771233", "text": "@Override\n\tpublic List findAll() {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "8c6181af30e6a4b2296123bc61298b85", "score": "0.5769531", "text": "Collection<T> findAll();", "title": "" }, { "docid": "00440ebebf727806eedae2d321454d32", "score": "0.57692885", "text": "@Test\n void getAllItemsSuccess() {\n List<User> users = genericDao.getAll();\n assertEquals(2, users.size());\n }", "title": "" }, { "docid": "c7194ecc3dab28d91cfd482c3b7fcc24", "score": "0.57590854", "text": "@Test\r\n public void testObtenerTodas() throws Exception {\r\n System.out.println(\"obtenerTodas\");\r\n UnidadMedidaDAO unidad_medidaDAOImpl = new UnidadMedidaDAOImpl();\r\n List<UnidadMedida> unidades_medida = unidad_medidaDAOImpl.obtenerTodas();\r\n \r\n for(UnidadMedida unidad_medida : unidades_medida){\r\n System.out.println(\"Código: \" + unidad_medida.getCodigo());\r\n System.out.println(\"nombre: \" + unidad_medida.getNombre());\r\n System.out.println(\"\");\r\n }\r\n \r\n assertTrue(true);\r\n \r\n }", "title": "" }, { "docid": "1df96277d19a48f260684f3ac21be382", "score": "0.57557726", "text": "@SuppressWarnings(\"unchecked\")\n\t@Test \n\tpublic void findAll() {\n\t\twhen(mockRepo.findAll()).thenReturn(movies);\n\t\t\n\t\tresponse = service.findAll(origin); // call the method under test\n\t\tresponseMovies = (List<Movie>) response.getBody(); // extract the movies from the ResponseEntity\n\t\t\n\t\tassertTrue(responseMovies.get(0) == movies.get(0)); // should return an ArrayList with the expected movies\n\t\tassertTrue(responseMovies.get(1) == movies.get(1)); // should return an ArrayList with the expected movies\n\t\tassertTrue(responseMovies.size() == movies.size()); // should return an ArrayList of the expected size\n\t\tassertTrue(responseMovies.size() == 2); // should return an ArrayList of the expected size\n\t}", "title": "" }, { "docid": "58cf7c10e191f2bbbde9225393e768c3", "score": "0.5755679", "text": "List<Vendedor> findAll();", "title": "" }, { "docid": "c5574d0aebb7e9411bf2b19abe09ac82", "score": "0.57544273", "text": "@Override\npublic List<DoSend> findAll(){\n Iterable<DoSend> getd = doSendRepository.findAll();\n List<DoSend> listd = new ArrayList<DoSend>();\n getd.forEach(single -> {\n listd.add(single);\n });\n return listd;\n}", "title": "" }, { "docid": "1c175a5ff7def7c3d59e5abaf5a9e705", "score": "0.57530767", "text": "@Override\n public List<? extends AEntity> findAll() {\n List<? extends AEntity> lista = null;\n String sortName = \"\";\n Sort sort;\n\n if (reflection.isEsiste(entityClass, FIELD_NAME_ORDINE)) {\n sortName = FIELD_NAME_ORDINE;\n } else {\n if (reflection.isEsiste(entityClass, FIELD_NAME_CODE)) {\n sortName = FIELD_NAME_CODE;\n } else {\n if (reflection.isEsiste(entityClass, FIELD_NAME_DESCRIZIONE)) {\n sortName = FIELD_NAME_DESCRIZIONE;\n }// end of if cycle\n }// end of if/else cycle\n }// end of if/else cycle\n\n if (text.isValid(sortName)) {\n sort = new Sort(Sort.Direction.ASC, sortName);\n lista = findAll(sort);\n } else {\n lista = findAll((Sort) null);\n }// end of if/else cycle\n\n return lista;\n }", "title": "" }, { "docid": "b389d3d3a18f561f4b16464ea13c0404", "score": "0.57459646", "text": "public List<VepDetalleConsultoria> findAll();", "title": "" }, { "docid": "30874dfecba4abcf00482d2b87db0677", "score": "0.5740584", "text": "@Test\n void emptyListParamShouldOk() {\n assertTrue(repository.findByCodeIn(new ArrayList<>()).isEmpty());\n }", "title": "" }, { "docid": "55ee054f464d828cbc239861be171f5e", "score": "0.573772", "text": "private void checkQueryResult(final List queryResult) {\n // verifies if the list returned has the same number of entities that\n // was created\n assertEquals(MAX_ENTITIES, queryResult.size(), \"The method did not returned all entities.\");\n\n for (int i = 0; i < queryResult.size(); i++) {\n SimpleEntity simpleEntity = (SimpleEntity) queryResult.get(i);\n assertEquals(simpleEntity.getId(), i, \"The bean id was not correctly returned\");\n assertEquals(simpleEntity.getName(), ENTITY_NAME_ROOT + Integer.toString(i),\n \"The bean name was not correctly returned\");\n }\n }", "title": "" }, { "docid": "dbbc7e8ef2b46652400b977c1b8f3b79", "score": "0.5720615", "text": "public Estado[] findAll() throws EstadoDaoException;", "title": "" }, { "docid": "0a66e0569db0a5f41186a692d2a3272f", "score": "0.57203275", "text": "@Test\n public void testFindByDescripcion() {\n System.out.println(\"findByDescripcion\");\n TipoProcedimientoRest instance = mokTPRest;\n Tipoprocedimiento expResult = new Tipoprocedimiento(1);\n List<Tipoprocedimiento> result = instance.findByDescripcion(\"descripcion\");\n assertThat(result, CoreMatchers.hasItem(expResult));\n assertNotNull(result);\n }", "title": "" }, { "docid": "98f7a03d4c3d6dbd293d41806ec392d3", "score": "0.5712109", "text": "public boolean afegirArray(List<Usuari> llista) {\r\n boolean afegit = true;\r\n try {\r\n for (int i = 0; i < llista.size(); i++) {\r\n try (Statement st = con.createStatement()) {\r\n String sentencia = \"INSERT INTO USUARIS(nif, nom, cognoms) values \"\r\n + \"('\" + llista.get(i).getNif() + \"','\" + llista.get(i).getNom() + \"','\" + llista.get(i).getCognoms() + \"')\";\r\n System.out.println(\"UPDATE: \" + st.executeUpdate(sentencia));\r\n //tanca el recurs \r\n }\r\n afegit = true;\r\n }\r\n } catch (SQLException ex) {\r\n System.err.println(\"Error\" + ex.getMessage());\r\n afegit = false;\r\n }\r\n return afegit;\r\n }", "title": "" }, { "docid": "fe317b198973ba6332c75c969ed07cd2", "score": "0.57048565", "text": "@Transactional(readOnly = true)\n public List<PizzariaDTO> findAll() {\n log.debug(\"Request to get all Pizzarias\");\n return pizzariaRepository.findAll().stream()\n .map(pizzariaMapper::toDto)\n .collect(Collectors.toCollection(LinkedList::new));\n }", "title": "" }, { "docid": "c58ccf8ab727ecaf2bb3ffa481fd3f52", "score": "0.56881523", "text": "@Override\r\n\tpublic List<SnSameNameError> findAll() throws Exception {\n\t\treturn super.findAll();\r\n\t}", "title": "" }, { "docid": "f707284762ee08eb3617bf483167e39d", "score": "0.56854105", "text": "@Test\n\tpublic void testObtenerTodos() {\n\t\tList<CiudadPOJO> mList = null;\n\t\ttry {\n\t\t\tmList = mCiudadDAO.obtener();\n\t\t\tassertTrue(mList.size() > 0);\n\t\t} catch (MyException e) {\n\t\t\te.printStackTrace();\n\t\t\tfail(e.getMessage());\n\t\t}\n\t}", "title": "" }, { "docid": "ba5b81b5a3ee9fd8957d2d95ceae4448", "score": "0.56844914", "text": "@Test\n public void findByDistributorAreaList_Id(){\n List<Product> productList = productRepo.findByDistributorAreaList_Id(1L);\n //then\n Assert.assertEquals(productList.size(),3);\n }", "title": "" }, { "docid": "54386fd1c9432ffecb22dc647e16b80d", "score": "0.56834275", "text": "@Override\n\tpublic List<Anuncio> findAll() {\n\t\treturn (List<Anuncio>) clienteDao.findAll();\n\t}", "title": "" }, { "docid": "2acc5b4f081eea581a2657b5edc68f53", "score": "0.56774247", "text": "@Test\n public void testFind() {\n System.out.println(\"* DomainManager find()\");\n List<User> result = manager.find();\n assertTrue(result.size() == 2);\n \n // dasilvacontin user\n User u = result.get(0);\n assertTrue(u._id.equals(\"0\"));\n assertTrue(u.getUsername().equals(\"dasilvacontin\"));\n assertTrue(u.getPassword().equals(\"123\"));\n \n // flurry user\n u = result.get(1);\n assertTrue(u._id.equals(\"1\"));\n assertTrue(u.getUsername().equals(\"flurry\"));\n assertTrue(u.getPassword().equals(\"123\"));\n }", "title": "" }, { "docid": "b84cba9f5b55e81140b1ef4b159392ce", "score": "0.5672951", "text": "@Test\n\tpublic void getAllRecipesTEST() \n\t{\n\t\tRecipeDTO expected1 = new RecipeDTO(1, \"Pensilin\");\n\t\tRecipeDTO expected2 = new RecipeDTO(2, \"Panodil\");\n\n\t\tList<RecipeDTO> expectedList = new ArrayList<RecipeDTO>();\n\t\texpectedList.add(expected1);\n\t\texpectedList.add(expected2);\n\n\t\ttry \n\t\t{\n\t\t\tdao.createRecipe(expected1);\n\t\t\ttempID++;\n\n\t\t\tdao.createRecipe(expected2);\n\t\t\ttempID++;\n\n\t\t\tList<RecipeDTO> actualList = dao.getAllRecipes();\n\n\t\t\tassertEquals(expectedList.toString(), actualList.toString());\n\t\t}\n\t\tcatch(DALException e) \n\t\t{\n\t\t\tfail(\"Error \" + e.getMessage());\n\t\t}\n\t}", "title": "" }, { "docid": "8e9048217b0104b04533398db484d735", "score": "0.56724936", "text": "@Transactional(readOnly = true) \n public List<ProdutoArvoreDTO> findAllProdutoArvoreByListCanal(List<Long> canalIds) {\n log.debug(\"Request to get all canal ProdutoArvoreDTO : {canalIds}=\" + canalIds);\n \n Set<ProdutoArvore> produtoArvoreResultList = new HashSet<ProdutoArvore>();\n List<ProdutoArvore> produtoArvoreList = null;\n if (canalIds != null && !canalIds.isEmpty()) {\n \tfor (Long canalId : canalIds) {\n \t\tprodutoArvoreList = \n \t\t\t\tprodutoArvoreRepository.findAllProdutoArvoreByCanalId(canalId, \n \t\t\t\t\t\tResultDTO.DTO_CONSTANTE_ATIVO,\n \t\t\t\t\t\tResultDTO.DTO_CONSTANTE_NAO);\n \t\t\n \t\t// caso a lista seja vazia, a interseccao sera vazia e nao precisa mais buscar os itens\n \t\tif (produtoArvoreList == null || produtoArvoreList.isEmpty()) {\n \t\t\tprodutoArvoreResultList.clear();\n \t\t\tbreak;\n\t\t\t\t} else {\n\t\t\t\t\tprodutoArvoreResultList.addAll(produtoArvoreList);\n\t\t\t\t\tprodutoArvoreResultList.retainAll(produtoArvoreList);\n\t\t\t\t}\n\t\t\t}\n \n \t// caso nao passe nenhum canalId, sera retornado todos os produtos\n\t\t} else {\n \t\t\tprodutoArvoreResultList.addAll(produtoArvoreRepository.findAllProdutoArvore(\n \t\t\t\t\tResultDTO.DTO_CONSTANTE_ATIVO,\n \t\t\t\t\tResultDTO.DTO_CONSTANTE_NAO));\n\t\t}\n\n \t// busca o produto sem oferta que nao tem canal associado\n \tprodutoArvoreResultList.addAll(produtoArvoreRepository.findProduto(ResultDTO.DTO_CONSTANTE_ATIVO, \n \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t ResultDTO.DTO_CONSTANTE_SIM));\n\n List<ProdutoArvoreDTO> listProdutoArvoreDTO = produtoArvoreMapper\n \t\t.produtoArvoresToProdutoArvoreDTOs(new ArrayList<ProdutoArvore>(produtoArvoreResultList));\n Collections.sort(listProdutoArvoreDTO);\n return listProdutoArvoreDTO;\n \n }", "title": "" }, { "docid": "59d621476ec68a0f371e5db9fb66b903", "score": "0.5664311", "text": "List<OrdarDTO> findAll();", "title": "" }, { "docid": "6ae2f2d5a370b020a2eaee9ae4ee6187", "score": "0.56614935", "text": "@Test\n public void testGetListaAvaliacao() {\n System.out.println(\"testeGetListaAvaliacao\");\n ListaAvaliacoes instance = new ListaAvaliacoes();\n List<Avaliacao> expResult = new ArrayList<>();\n List<Avaliacao> result = instance.getListaAvaliacao();\n assertEquals(expResult, result);\n \n }", "title": "" }, { "docid": "bebbde8b6930e83f774cda644c219b39", "score": "0.56612843", "text": "@Override\r\n\tpublic List<Chauffeur> findAll() throws Exception {\n\t\treturn chauffeurDao.findAll(Chauffeur.class);\r\n\t}", "title": "" }, { "docid": "ae692a623d7536b2be4d0ce22807a093", "score": "0.565848", "text": "@Override\n\tpublic List<User> findAll() {\n\t\ttry {\n\t\t\t// Hàm findAll lấy ra list đối tượng\n\t\t\treturn userRepository.findAll();\n\t\t} catch (Exception e) {\n\t\t\t// TODO: handle exception\n\t\t\tlog.error(e.getMessage());\n\t\t\treturn null;\n\t\t}\n\t}", "title": "" }, { "docid": "37ff636d5da307698256094ebed3ceb9", "score": "0.56565183", "text": "@Test @Ignore\n @Transactional\n public void findAllParamTest() {\n PageParameters pageParameters = new PageParameters.Builder().search(\"apple\").order(PageParameters.Order.NAME).direction(PageParameters.Direction.ASC).size(5).build();\n List<Company> companies = companyDAO.findAll(pageParameters);\n for (int i =1; i < companies.size(); i++) {\n Company comp = companies.get(i);\n Company before = companies.get(i-1);\n System.err.println(\"dkljdjkf->\"+comp.getName());\n boolean searchName = comp.getName().toLowerCase().contains(\"apple\");\n assertTrue(searchName);\n int nameOrder = comp.getName().toLowerCase().compareTo(before.getName().toLowerCase());\n assertTrue(nameOrder >= 0);\n }\n }", "title": "" }, { "docid": "1a42ccf6f1dad4bb390d57ea79a4f118", "score": "0.56507385", "text": "@Test\n public void testGetUdajAll() {\n System.out.println(\"getUdajAll\");\n \n List<Udaj> udajs = hq.getUdajAll();\n assertNotNull(udajs);\n for (int i = 0; i < 100; i++){\n assertTrue(udajs.get((int) (Math.random() * udajs.size())).isVerejnePristupny() || hq.isAdmin());\n }\n }", "title": "" }, { "docid": "70b44e63f1d8fa4abc660c4a657136ba", "score": "0.5649892", "text": "@Override\n\tpublic List<T> listar() throws Exception {\n\t\treturn getRepo().findAll();\n\t}", "title": "" }, { "docid": "d665c23c4688a8456de053aa9ae09158", "score": "0.56451505", "text": "java.util.List<Grupo> findAll();", "title": "" }, { "docid": "3156ef2b6f55e59edc6eef9d9ee4c60b", "score": "0.5642225", "text": "@Test\n\tpublic void testFindAllPersons() {\n\t\t\n\t\tint countBefore = repo.findAllPersons().size();\n\t\t\n\t\tPerson person1 = repo.createPerson(\"netid\", \"email@email.com\", \"first\", \"last\", RoleType.NONE).save();\n\t\tPerson person2 = repo.createPerson(\"othernetid\", \"otheremail@email.com\", \"otherfirst\", \"otherlast\", RoleType.NONE).save();\n\n\t\tList<Person> people = repo.findAllPersons();\n\t\tint countAfter = people.size();\n\t\t\n\t\tassertEquals(countBefore + 2, countAfter);\n\t\t\n\t\tboolean foundNetId = false;\n\t\tboolean foundOther = false;\n\t\tfor (Person person : people) {\n\t\t\tif (\"netid\".equals(person.getNetId()))\n\t\t\t\tfoundNetId = true;\n\t\t\tif (\"othernetid\".equals(person.getNetId()))\n\t\t\t\tfoundOther = true;\n\t\t}\n\t\tassertTrue(foundNetId);\n\t\tassertTrue(foundOther);\n\t\t\n\t\tperson1.delete();\n\t\tperson2.delete();\n\t}", "title": "" }, { "docid": "c183f14862514824d15411eb5eeb453a", "score": "0.5636057", "text": "public List<T> findAllAktiv() { \n List<X> result = dao.find(new SimpleFilter<X>(entityClass, new FilterParameter(\"deleted\", false)), 0, 0);\n \n List<T> unwrappedList = new ArrayList<T>();\n for (X ent : result) {\n unwrappedList.add(find(ent.getId()));\n }\n return unwrappedList;\n \n }", "title": "" }, { "docid": "2c4cafd0e69b12d4cbd62df8280af706", "score": "0.56327444", "text": "@Test\n\tpublic void findAll() \n\t{\n\t\tList<Department> departments = departmentService.findAll();\n\t\t\n\t\t//Print\n\t\tdepartments.forEach(System.out::println);\n\t}", "title": "" }, { "docid": "d2d8b545cba6aa7ebc7bdd921d1a2e75", "score": "0.5632155", "text": "@Override\n\tpublic Iterable<UniteEnseignement> findAll() {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "319adb8add32a133ab7ba6ba9d935767", "score": "0.5630629", "text": "@Test\r\n public void testGetAllOrders() throws Exception {\r\n System.out.println(\"getAllOrders\");\r\n ArrayList<Order> result = OrderMapper.getAllOrders();\r\n assertEquals(false, result.isEmpty());\r\n assertEquals(true,(result.get(0).getoID()>0));\r\n }", "title": "" }, { "docid": "2fb93bd5a4801c07c85d65992e29b9d2", "score": "0.5624711", "text": "Iterable<Ingredient> findAll();", "title": "" }, { "docid": "ea0c8bc42e2ca283645e121346f9d461", "score": "0.5621932", "text": "@Override\n\tpublic Iterable<Enseignant> findAll() {\n\t\treturn listEnseignant;\n\t}", "title": "" }, { "docid": "696edb403e7e7549cc12bb16021ae88a", "score": "0.5620747", "text": "@Test\n\tpublic void test2ListerAnnimaux() {\n\t\t\n\t\tQuery animalQuery = em.createQuery(\"select animal from Animal animal\");\n\t\tList<Animal> resultList = animalQuery.getResultList();\t \n\t\tfor(Animal animal:resultList)\n\t\t{\n\t\t\tSystem.out.println(animal.getClass());\n\t\t}\n\t\t\n\t\tassertTrue(resultList.size()>0);\n\t}", "title": "" }, { "docid": "45663f3f6629ec57d1442ce1593fcb24", "score": "0.5616239", "text": "@Test\n final void testGetAll() {\n List<Subreddit> list = logic.getAll();\n //store the size of list, this way we know how many accounts exits in DB\n int originalSize = list.size();\n\n //make sure account was created successfully\n assertNotNull( expectedEntity );\n //delete the new account\n logic.delete( expectedEntity );\n\n //get all accounts again\n list = logic.getAll();\n //the new size of accounts must be one less\n assertEquals( originalSize - 1, list.size() );\n }", "title": "" }, { "docid": "dcb5b4e559587000c9223518a585a643", "score": "0.56150776", "text": "@Test\n public void getAllTest() {\n Mockito.when(this.repository.findAll()).thenReturn(parmList);\n Iterable<Parameter> resultFromService = this.parameterService.findAll();\n Parameter resultFromIterator = resultFromService.iterator().next();\n assertThat(resultFromIterator.getType()).isEqualTo(ParameterEnum.PROFITMARGIN);\n Mockito.verify(this.repository, Mockito.times(1)).findAll();\n }", "title": "" }, { "docid": "1c1bd9b5c21d2b990af48449989b190d", "score": "0.56139827", "text": "public List<Ripetizione> findAllByDocenteAndCorsoAndStatoDisponibile(Integer idDocente, Integer idCorso) {\n Connection conn = connectionManager.getConnection();\n PreparedStatement st = null;\n ResultSet result = null;\n List<Ripetizione> ripetizioni = new ArrayList<>();\n\n try {\n st = conn.prepareStatement(SQLQuery.AUTO_UPDATE_STATO_PRENOTAZIONE);\n st.executeUpdate();\n \n if (idCorso != null && idDocente == null) {\n st = conn.prepareStatement(SQLQuery.FIND_ALL_BY_CORSO_AND_STATO_DISPONIBILE_RIPETIZIONE);\n st.setInt(1, idCorso);\n result = st.executeQuery();\n } else if (idCorso == null && idDocente != null) {\n st = conn.prepareStatement(SQLQuery.FIND_ALL_BY_DOCENTE_AND_STATO_DISPONIBILE_RIPETIZIONE);\n st.setInt(1, idDocente);\n result = st.executeQuery();\n } else if (idCorso == null && idDocente == null) {\n st = conn.prepareStatement(SQLQuery.FIND_ALL_BY_STATO_DISPONIBILE_RIPETIZIONE);\n result = st.executeQuery();\n } else {\n st = conn.prepareStatement(SQLQuery.FIND_ALL_BY_DOCENTE_AND_CORSO_AND_STATO_DISPONIBILE_RIPETIZIONE);\n st.setInt(1, idCorso);\n st.setInt(2, idDocente);\n result = st.executeQuery();\n }\n\n while (result.next()) {\n Corso corso = new Corso(result.getInt(\"Corso_ID\"), result.getString(\"Titolo\"));\n Docente docente = new Docente(result.getInt(\"Docente_ID\"), result.getString(\"Nome\"),\n result.getString(\"Cognome\"));\n Ripetizione ripetizione = new Ripetizione(corso, docente,\n Prenotazione.DayName.valueOf(result.getString(\"Giorno\").toUpperCase()), result.getInt(\"Ora_inizio\"));\n ripetizioni.add(ripetizione);\n }\n } catch (SQLException e) {\n throw new DAOException(e);\n } finally {\n ConnectionManager.closeAll(result, st, conn);\n }\n\n return ripetizioni;\n }", "title": "" }, { "docid": "6184a8b7249e220dc16414849b4b7ea8", "score": "0.5605223", "text": "@Override\n @Transactional(readOnly = true)\n public List<TheLoaiTaiLieu> findAll() {\n log.debug(\"Request to get all TheLoaiTaiLieus\");\n return theLoaiTaiLieuRepository.findAll();\n }", "title": "" }, { "docid": "54ae4ba3c47980dbebf2269f43cb5075", "score": "0.5604898", "text": "@Test\n void getAll() {\n // There are no carts in the database\n CloseableIterator<Cart> cartsIterator = this.entityManagerCart.getAll();\n boolean areThereResults = cartsIterator.hasNext();\n assertFalse(areThereResults);\n\n\n // There are carts in the database\n List<Cart> iteratedCarts = new ArrayList<>();\n\n this.entityManagerCart.create(createCompliantCart());\n this.entityManagerCart.create(createCompliantCart());\n\n cartsIterator = this.entityManagerCart.getAll();\n assertTrue(cartsIterator.hasNext());\n for (CloseableIterator<Cart> it = cartsIterator; it.hasNext(); ) {\n iteratedCarts.add(it.next());\n }\n\n assertEquals(2, iteratedCarts.size());\n assertFalse(cartsIterator.hasNext());\n }", "title": "" }, { "docid": "e9ec8d1413de67114f22bca8eb7d96c4", "score": "0.55986786", "text": "@Test\n public void findAll() throws Exception {\n long start = System.currentTimeMillis(); //获取开始时间\n List<User> userList = this.userService.findAll();\n long end = System.currentTimeMillis(); //获取结束时间\n System.out.println(\"程序运行时间: \" + (end - start) + \"ms\");\n// log.info(\"{}\", userList);\n List<User> userList2 = this.userService.findAll2();\n// log.info(\"{}\", userList2);\n }", "title": "" }, { "docid": "be87a09667716e80e6c18a530f1be93f", "score": "0.5583115", "text": "@Test\r\n public void testBuscarPorNombre() {\r\n try {\r\n System.out.println(\"buscarPorNombre\");\r\n String nombre = \"Cinturon\";\r\n ProductoDao instance = new ProductoDaoImplem();\r\n Collection<Producto> result = instance.buscarPorNombre(nombre);\r\n String nombreProducto = new String();\r\n for (Producto p : result) {\r\n nombreProducto = p.getNombre();\r\n }\r\n assertEquals(nombre, nombreProducto);\r\n } catch (Exception ex) {\r\n ex.printStackTrace();\r\n }\r\n }", "title": "" }, { "docid": "041467856a1e338874adbc7fc9d1d4a8", "score": "0.5582258", "text": "List<T> findAll() throws LogiwebDAOException;", "title": "" } ]
8616bedf4dd04c37b843af5a00e09038
Get the class object of the class which will be tested.
[ { "docid": "7761654af6b543b05417f0e47bee94cb", "score": "0.6665997", "text": "public Class getTestedClass() {\n\t\treturn DeployArtifact.class;\n\t}", "title": "" } ]
[ { "docid": "40bb285d4edcab927d6856b4b83b9c5b", "score": "0.74897414", "text": "TClass getTClass();", "title": "" }, { "docid": "ed492a7c01b2b0ac5d12b44b15e5af97", "score": "0.69300455", "text": "Object getClass_();", "title": "" }, { "docid": "83bc63f7d4846e99a16eef056ac2f06b", "score": "0.67871946", "text": "Class<T> getClazz();", "title": "" }, { "docid": "8db94ef7672e4256c5a9f2b7234b1b2e", "score": "0.67556953", "text": "public Class<T> getFactoryClass();", "title": "" }, { "docid": "e01634ca4a200be3c55d8f7bfdf6986d", "score": "0.6742506", "text": "protected abstract Class<?> getContainedClass();", "title": "" }, { "docid": "53cb9bca8e2d4d84c8381bc31db0004a", "score": "0.6728593", "text": "public Class<T> getObjectClass()\n {\n return objectClass;\n }", "title": "" }, { "docid": "204553bb16f9b0a7cb0de6226ef6a812", "score": "0.6725794", "text": "String getClassUnderTest() {\n\n return classUnderTest;\n }", "title": "" }, { "docid": "7dc300580587266cfd0ded7c719a388b", "score": "0.66876245", "text": "@Transient\n public Class<?> getClassType() {\n return this.getClass();\n }", "title": "" }, { "docid": "46726e1ed40a52c9b32fec71a705274e", "score": "0.6606037", "text": "public static Class get_CLASS()\n {\n Class clz;\n try\n {\n clz = Class.forName(\"com.tangosol.coherence/component/util/WrapperContext$StorageContext\".replace('/', '.'));\n }\n catch (ClassNotFoundException e)\n {\n throw new NoClassDefFoundError(e.getMessage());\n }\n return clz;\n }", "title": "" }, { "docid": "f7d333e4a312cb56aeb2e4a97cf1e7d4", "score": "0.66006213", "text": "public static Class get_CLASS()\n {\n Class clz;\n try\n {\n clz = Class.forName(\"com.tangosol.coherence/component/util/WrapperContext\".replace('/', '.'));\n }\n catch (ClassNotFoundException e)\n {\n throw new NoClassDefFoundError(e.getMessage());\n }\n return clz;\n }", "title": "" }, { "docid": "81cce94fdf110ce5a092da4ae8bbdcd8", "score": "0.6595295", "text": "public java.lang.Class getJavaClass()\n {\n return org.exolab.castor.tests.framework.testDescriptor.SourceGeneratorTest.class;\n }", "title": "" }, { "docid": "27f8e7a9e673a4bc9b774ded84b92fab", "score": "0.65411365", "text": "public Class getTargetClass() {\n return targetClass;\n }", "title": "" }, { "docid": "3de39e29dcd9bd1c0aa46b6932498f5e", "score": "0.6510205", "text": "public RubyClass getClass(String name) {\n return objectClass.getClass(name);\n }", "title": "" }, { "docid": "d93d86dfdf74c39ba711cb6a8f2d9606", "score": "0.6494996", "text": "public ClassType getClassType() {\n return (ClassType) type;\n }", "title": "" }, { "docid": "31c94195b931549a39101b6c752f044e", "score": "0.6460889", "text": "String getClass_();", "title": "" }, { "docid": "a1e16e8f177ef0989f2753f6a0dcb5c1", "score": "0.64387697", "text": "@Override\n public Type visitClassExpression(ClassExpression expression, TypeCheckEnv env) {\n fromClassNode(expression.getType());\n \n return typeScope.getType(Class.class);\n }", "title": "" }, { "docid": "f02bec3a8d087aff0468d5976eb8d2dc", "score": "0.6410558", "text": "public String getClazz() {\n return clazz;\n }", "title": "" }, { "docid": "543de7ccbd1ea6b9ccb3e63339feba4b", "score": "0.64098847", "text": "public Class getClass_type() {\n return class_type;\n }", "title": "" }, { "docid": "53dc9983a90fcdd4d28df6fca1475ad7", "score": "0.637575", "text": "Class getJavaObjectType();", "title": "" }, { "docid": "f768f66b3434b33aa71ed94b3eb48f79", "score": "0.63194036", "text": "Class<?> getResourceClass();", "title": "" }, { "docid": "254e608f005b0094867e0cb205dedefe", "score": "0.6317184", "text": "public JCClass getExactClass(String classFullName);", "title": "" }, { "docid": "61ca94a16e0cd10ca1d226b58969f8ee", "score": "0.62939006", "text": "public Class getClazz() {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "e98b0924a316372afd5ca579632dc9a0", "score": "0.6280542", "text": "public abstract Type getDeclaringClass();", "title": "" }, { "docid": "0b1eb2474e626abd1b0ca41ea07bfa47", "score": "0.6275888", "text": "default Class getObjectClass() {\n Type genType = null;\n Type[] types = getClass().getGenericInterfaces();\n for (Type type: types) {\n System.out.println(type.getTypeName());\n if (type.getTypeName().contains(\"BaseDao\")) {\n genType = type;\n }\n }\n Type[] params = ((ParameterizedType) genType).getActualTypeArguments();\n return (Class) params[0];\n }", "title": "" }, { "docid": "c578b70be30635924e8320199d1f5d2f", "score": "0.62725073", "text": "public String getClazz() {\n\t\treturn clazz;\n\t}", "title": "" }, { "docid": "ab97dece7863466cf901bb8d58bdc2ce", "score": "0.6270498", "text": "Class<?> getActualType();", "title": "" }, { "docid": "96d2a8586f65c93a6a2208f29f1f9284", "score": "0.6255044", "text": "public static Class<?> getClass(Type type){\n\t\t\n\t\tClass<?> clazz = null;\n\t\t\n\t\ttry {\n\t\t\treturn Class.forName(getClassName(type));\n\t\t} catch (ClassNotFoundException e) {\n\t\t\treturn clazz;\n\t\t}\n\t}", "title": "" }, { "docid": "de18c3a0c07732b1e463fb1242dbdcc5", "score": "0.6247526", "text": "Class<?> getType();", "title": "" }, { "docid": "de18c3a0c07732b1e463fb1242dbdcc5", "score": "0.6247526", "text": "Class<?> getType();", "title": "" }, { "docid": "d17904e2547758119c433ccc2f1c171a", "score": "0.62335247", "text": "public static Class get_CLASS()\n {\n Class clz;\n try\n {\n clz = Class.forName(\"com.tangosol.coherence/component/net/management/model/localModel/StorageManagerModel\".replace('/', '.'));\n }\n catch (ClassNotFoundException e)\n {\n throw new NoClassDefFoundError(e.getMessage());\n }\n return clz;\n }", "title": "" }, { "docid": "797b3a3ddfc0e9e9e6fa647ea9c37e60", "score": "0.6229519", "text": "SarlClass getSarlClass(JvmGenericType jvmType);", "title": "" }, { "docid": "c30bb688bca16f3e2776d67f7558a9fc", "score": "0.62130564", "text": "public CtClass ctClass() {\n return this.myClass;\n }", "title": "" }, { "docid": "11de53250deab8fe8ead4c7a1005e71e", "score": "0.6196876", "text": "Class getDomainClass();", "title": "" }, { "docid": "e71fe6c9b9fbb219851fe1bda72bc076", "score": "0.6145887", "text": "public static Class get_CLASS()\n {\n Class clz;\n try\n {\n clz = Class.forName(\"com.tangosol.coherence/component/net/message/requestMessage/distributedCacheRequest/KeySetRequest$Poll\".replace('/', '.'));\n }\n catch (ClassNotFoundException e)\n {\n throw new NoClassDefFoundError(e.getMessage());\n }\n return clz;\n }", "title": "" }, { "docid": "783ecbedc5368fe952bd709a5bcc1938", "score": "0.6145037", "text": "public Class<? extends Genotype> getClazz() {\r\n\t\t\treturn clazz;\r\n\t\t}", "title": "" }, { "docid": "d9861f1ea16792e42e2bc750b3e67576", "score": "0.61261034", "text": "private Value.Class getClass(FieldType type) {\n if (type instanceof FieldType.ObjectType) {\n FieldType.ObjectType objectType = (FieldType.ObjectType)type;\n if (classMap.containsKey(objectType.getClassName())) {\n return classMap.get(objectType.getClassName());\n } else {\n Value.Class klass = initializeClass(objectType.getClassName());\n classMap.put(objectType.getClassName(), klass);\n return klass;\n }\n } else {\n throw new RuntimeException(\"unexpected FieldType is given to getClass: \" + type.getType());\n }\n }", "title": "" }, { "docid": "b083d6d29ffef05e5575ce6766574a03", "score": "0.6112266", "text": "@Test\n public void getRowClass() {\n System.out.println(\"getRowClass\");\n setTestMethod();\n \n Class<?> expResult = this.getClass();\n Class<?> result = instance.getRowClass();\n assertEquals(expResult, result);\n }", "title": "" }, { "docid": "080e76ff47ea0152d71abd42c0c6b592", "score": "0.61112523", "text": "@Nullable\n ClassInfo getContainingClass();", "title": "" }, { "docid": "69fdc8b143bbc42e0c0cdbfa1e068cb9", "score": "0.6108781", "text": "protected Class formBeanClass() {\n ClassLoader classLoader =\n Thread.currentThread().getContextClassLoader();\n\n if (classLoader == null) {\n classLoader = this.getClass().getClassLoader();\n }\n\n try {\n return (classLoader.loadClass(getType()));\n } catch (Exception e) {\n return (null);\n }\n }", "title": "" }, { "docid": "e24d2706d937264b5cc85282236f1899", "score": "0.60929865", "text": "java.lang.String getClass_();", "title": "" }, { "docid": "0f082397f348672552abe1eb92866a72", "score": "0.6091741", "text": "@Override\n public Class getInstanceClass() {\n if (javaClass == null)\n javaClass = ClassUtil.createClass(getSource(),\n FlexContext.getMessageBroker() == null ? this.getClass().getClassLoader() :\n FlexContext.getMessageBroker().getClassLoader());\n\n return javaClass;\n }", "title": "" }, { "docid": "88389e0732d7ae1eb1f7b2c01ddf3c4b", "score": "0.6087216", "text": "public String getClassname() {\n return class_;\n }", "title": "" }, { "docid": "c5a8df3ff5aad0458148319a3f051b1f", "score": "0.60826576", "text": "public static Class get_CLASS()\n {\n Class clz;\n try\n {\n clz = Class.forName(\"com.tangosol.coherence/component/net/packet/DiagnosticPacket\".replace('/', '.'));\n }\n catch (ClassNotFoundException e)\n {\n throw new NoClassDefFoundError(e.getMessage());\n }\n return clz;\n }", "title": "" }, { "docid": "53cb89954c4a24078f1e7e56ac507b22", "score": "0.6074844", "text": "public String getClassType() {\n\t\treturn classType;\n\t}", "title": "" }, { "docid": "73214fd65f8fa4c2dfcdd8ab4a256cb1", "score": "0.6062378", "text": "public ClassType getJavaClass()\n {\n return this._javaClass;\n }", "title": "" }, { "docid": "580d2dc8874f1ad19a299293d3816178", "score": "0.6062176", "text": "Class<?> getControlType() throws TestException;", "title": "" }, { "docid": "6d6df2d43582fd84ecdb583031a46bbb", "score": "0.60460377", "text": "public static Class get_CLASS()\n {\n Class clz;\n try\n {\n clz = Class.forName(\"com.tangosol.coherence/component/net/message/requestMessage/distributedCacheRequest/KeySetRequest\".replace('/', '.'));\n }\n catch (ClassNotFoundException e)\n {\n throw new NoClassDefFoundError(e.getMessage());\n }\n return clz;\n }", "title": "" }, { "docid": "1d362b5701573409aac7eaafd5b70050", "score": "0.6024415", "text": "public Class getMemberClass() {\n return object == null ? clazz : object.getClass();\n }", "title": "" }, { "docid": "6976de6111dfadd5828bc522a2e9b95d", "score": "0.6013663", "text": "public Class<?> getTarget()\r\n\t{\r\n\t\treturn target;\r\n\t}", "title": "" }, { "docid": "d501dddd88a05f62341a5ca86fe5ba00", "score": "0.60072064", "text": "protected final Class<? extends I> getObjectClass() {\n return objectClass;\n }", "title": "" }, { "docid": "7f5abcbefd037e37d016e2328e3c10a3", "score": "0.60026515", "text": "public int GetClassType()\n {\n return classType;\n }", "title": "" }, { "docid": "f583be4a1164b82a4ca2bca2035b3bf3", "score": "0.59474754", "text": "public Class getClass(Object id) throws IOException\n\t{\n\t\tClass retval = null;\n\t\tObject obj = get(id);\n\t\tretval = obj == null ? null : (Class) obj;\n\n\t\treturn retval;\n\t}", "title": "" }, { "docid": "aa7405e94cc13ec0d727612ce9a3c914", "score": "0.594392", "text": "public Class getModelClass() {\n\t\tinit();\n\t\treturn modelClass;\n\t}", "title": "" }, { "docid": "316fb9f09ce4400eeabdcf58afac0875", "score": "0.5931304", "text": "Class<T> getChannelClass();", "title": "" }, { "docid": "97b38b09e026cbababdfc6cf0aa64b3a", "score": "0.59241533", "text": "private ClassCommodity getTestClassCommodity() {\n\n\t\tClassCommodityKey key = new ClassCommodityKey();\n\t\tkey.setClassCode(CommodityReaderTest.CLASS_ID);\n\t\tkey.setCommodityCode(CommodityReaderTest.COMMODITY_ID);\n\n\t\tClassCommodity cc = new ClassCommodity();\n\t\tcc.setKey(key);\n\t\tcc.setName(CommodityReaderTest.DESCRIPTION);\n\t\treturn cc;\n\t}", "title": "" }, { "docid": "384213df763af20f262f28e86ae3befc", "score": "0.59201604", "text": "Class<T> getParameterClass();", "title": "" }, { "docid": "0641dfd062da23b897ebde31cc4b81e6", "score": "0.59102124", "text": "public abstract Class<? extends DObjectDAO> getDAOClass();", "title": "" }, { "docid": "55ae933a4c476018f70443a5d3ac876c", "score": "0.5909599", "text": "public Class getDeclaringClass() {\n\treturn clazz;\n }", "title": "" }, { "docid": "6b0bdb4ae02a76daa0ddbc70ae47ad31", "score": "0.5900364", "text": "public Class<?> getReferringClass()\n/* */ {\n/* 136 */ return this._referringClass;\n/* */ }", "title": "" }, { "docid": "fc24046aca3a47e27a1def47cf8e1eec", "score": "0.58946675", "text": "protected abstract Class getClassForKey();", "title": "" }, { "docid": "dd7ad3a8842b83bceb16518414420246", "score": "0.5882598", "text": "public abstract Class<E> getEntityClass();", "title": "" }, { "docid": "cabaa2e69db94008a5874f56fc2baf0c", "score": "0.5872746", "text": "public Class getFirstClass() {\r\n Class res = new Class();\r\n if(m_listClasses.size() > 0) {\r\n res = (Class)m_listClasses.get(0);\r\n }\r\n return res;\r\n }", "title": "" }, { "docid": "ead5cd772a7abb26d7686f30779f3614", "score": "0.5856637", "text": "ClassType createClassType();", "title": "" }, { "docid": "664317e153c60f4de1e4830559457648", "score": "0.5854053", "text": "public Class<?> getRawClass() {\r\n return rawClass;\r\n }", "title": "" }, { "docid": "46cec58697f3c2ffb4032bde242265ce", "score": "0.5849916", "text": "String getClassName();", "title": "" }, { "docid": "e425bef092e1ca078df84c5acd2299d6", "score": "0.5847147", "text": "public Class<? extends ConditionsObject> getObjectClass() {\n return this.objectClass;\n }", "title": "" }, { "docid": "04b35ed87fad61b60722b711fb51129d", "score": "0.5844489", "text": "public Class<T> type() {\n return typeClass;\n }", "title": "" }, { "docid": "251834adf807e5041c264806550091ce", "score": "0.5844381", "text": "public Class<?> getRepresentativeClass() {\n return this.d_class;\n }", "title": "" }, { "docid": "e3f28433cbe9edfbc5199c8d780d6082", "score": "0.584084", "text": "public Class getBeanClass()\n {\n return getLast().getBeanClass();\n }", "title": "" }, { "docid": "770cb8f1a1792f826dc9b3eb4775d294", "score": "0.58382607", "text": "public BshClassManager getClassManager()\n {\n return getNameSpace().getClassManager();\n }", "title": "" }, { "docid": "7bc04dc564176697b5fe56c7c7e35bbb", "score": "0.58332884", "text": "java.lang.String getClassname();", "title": "" }, { "docid": "332ced6085e9e123370273d282fe21ad", "score": "0.5832682", "text": "public String getCls() {\n return cls;\n }", "title": "" }, { "docid": "597acb4625247be20279daf1e99c1674", "score": "0.581635", "text": "@PublicEvolving\n public abstract Class<T> getTypeClass();", "title": "" }, { "docid": "649b640e17b094a234acb9eb6ac31332", "score": "0.58123696", "text": "public ClassResolver getClassResolver();", "title": "" }, { "docid": "9986760c3b41cb03af3c8bfc5cb27509", "score": "0.5809472", "text": "Class<? extends IRequestablePage> getPageClass();", "title": "" }, { "docid": "f87ad0e639c68a361bbcb0d006503d8c", "score": "0.5805771", "text": "Class<?> getClassFromTypeWithNamespace(String name);", "title": "" }, { "docid": "8088b25c82b0f6d8dafe44820a418d27", "score": "0.5790403", "text": "public final Class<M> getCls() {\n return this.cls;\n }", "title": "" }, { "docid": "66c6a0d3e50f551b2b8b5fdeb71fad66", "score": "0.5788283", "text": "private BinClass getClass(String fqn) {\r\n return (BinClass)\r\n (project.getTypeRefForName(fqn)).getBinCIType();\r\n }", "title": "" }, { "docid": "64178174987d3624dbdbdd4a5f713a38", "score": "0.5784747", "text": "public Class<T> getInterface();", "title": "" }, { "docid": "076e25e23d1e778f4367b4c3af0965d2", "score": "0.57834715", "text": "static native Class getSuperclass(Class clazz);", "title": "" }, { "docid": "85d502045f6bbc2623a2f39e0ddcae93", "score": "0.5771692", "text": "default Class<?> getDeclaringClass()\n\t\t{\n\t\t\treturn get().getDeclaringClass();\n\t\t}", "title": "" }, { "docid": "85d502045f6bbc2623a2f39e0ddcae93", "score": "0.5771692", "text": "default Class<?> getDeclaringClass()\n\t\t{\n\t\t\treturn get().getDeclaringClass();\n\t\t}", "title": "" }, { "docid": "85d502045f6bbc2623a2f39e0ddcae93", "score": "0.5771692", "text": "default Class<?> getDeclaringClass()\n\t\t{\n\t\t\treturn get().getDeclaringClass();\n\t\t}", "title": "" }, { "docid": "3296cf3ede33a228de9e06b034e4f94e", "score": "0.5768648", "text": "public int getType()\n {\n return CLASS_NUMBER;\n }", "title": "" }, { "docid": "269aeb8c6679991a2fe4120737524ceb", "score": "0.57679373", "text": "public String getClassName();", "title": "" }, { "docid": "9d1b94ecbf224cc9a427d3a2f7f53031", "score": "0.57460636", "text": "public Class<?> getClassType() {\n\t\treturn AgentProfile.class;\n\t}", "title": "" }, { "docid": "5fff590ab57312731f3aeeb58cd1276d", "score": "0.5745784", "text": "@Transient\r\n\tpublic Class<?> getClassType() {\r\n\t\treturn CertificationCriterionEntity.class;\r\n\t}", "title": "" }, { "docid": "a9292dfefcf257d7dd97c1fac7aa220b", "score": "0.57409424", "text": "Class<? extends Ticket> findTicketImplementationClass(String ticketId);", "title": "" }, { "docid": "7519c62689498304288d0427e28f8b59", "score": "0.57398903", "text": "public static Class getOMClass()\n throws TorqueException\n {\n return CLASS_DEFAULT;\n }", "title": "" }, { "docid": "0c8164e4eee40e5522448b283a937bf1", "score": "0.573617", "text": "@Test\n public void getInstanceTest() {\n assertEquals(projAssetManager.getClass(), ProjectAssetManager.class);\n }", "title": "" }, { "docid": "d84ed3c36381f0ff2defe98f10e12425", "score": "0.5730479", "text": "public abstract Class<T> getDataClass();", "title": "" }, { "docid": "2557d153b9e02ae0d00e0cb813093a05", "score": "0.57253814", "text": "@Test\n public void classForRMType() {\n assertEquals(Composition.class, modelInfoLookup.getClass(\"COMPOSITION\"));\n assertEquals(Observation.class, modelInfoLookup.getClass(\"OBSERVATION\"));\n assertEquals(Cluster.class, modelInfoLookup.getClass(\"CLUSTER\"));\n assertEquals(DvParsable.class, modelInfoLookup.getClass(\"DV_PARSABLE\"));\n assertEquals(DvURI.class, modelInfoLookup.getClass(\"DV_URI\"));\n assertEquals(DvEHRURI.class, modelInfoLookup.getClass(\"DV_EHR_URI\"));\n assertEquals(UIDBasedId.class, modelInfoLookup.getClass(\"UID_BASED_ID\"));\n assertEquals(UID.class, modelInfoLookup.getClass(\"UID\"));\n assertEquals(UUID.class, modelInfoLookup.getClass(\"UUID\"));\n assertEquals(ArchetypeID.class, modelInfoLookup.getClass(\"ARCHETYPE_ID\"));\n }", "title": "" }, { "docid": "664b1c85f7dad413b114fb6bea56e042", "score": "0.5721675", "text": "public Classifier getClassifier(){\n\t\treturn c;\n\t}", "title": "" }, { "docid": "d20c560c08f9236cc2ed9ae3b0333de7", "score": "0.5705682", "text": "public RubyClass getMetaClass() {\n return metaClass;\n }", "title": "" }, { "docid": "6a310bd9f50f07698f41339fc5e5ceec", "score": "0.57033", "text": "protected abstract Class getClassOfInstantiators();", "title": "" }, { "docid": "396cb0cf67a56c2a1b264db12a80b8b0", "score": "0.56973356", "text": "public Class<?> getTargetObjectType() {\n\t\treturn this.targetObjectType;\n\t}", "title": "" }, { "docid": "d28524f5bce57442d8f1bac587c4077e", "score": "0.5688743", "text": "private static Class findTestMethodClass(TestPlan testPlan, TestIdentifier identifier) {\n // method source\n Class javaClass = fromMethodSource(identifier);\n if (javaClass != null) {\n return javaClass;\n }\n\n // class source\n javaClass = fromClassSource(identifier);\n if (javaClass != null) {\n return javaClass;\n }\n\n // class source, but we have to look it up in the test hierarchy\n for (TestIdentifier iter = identifier;\n testPlan.getParent(iter).isPresent();\n iter = testPlan.getParent(iter).get()) {\n\n javaClass = fromClassSource(iter);\n if (javaClass != null) {\n return javaClass;\n }\n }\n\n return null;\n }", "title": "" }, { "docid": "0c77a39aeed728667e7ad04ea05bb247", "score": "0.5677435", "text": "public static Class<?> internalClassForName(String type)\n throws ClassNotFoundException {\n Class<?> clazz = null;\n\n try {\n ClassLoader cl = Thread.currentThread().getContextClassLoader();\n clazz = Class.forName(type, true, cl);\n } catch (ClassNotFoundException e) {\n // ignore - failsafe below\n }\n\n if (clazz == null) {\n clazz = Class.forName(type, true, ObjectFactory.class.getClassLoader());\n }\n\n return clazz;\n }", "title": "" }, { "docid": "9fb263ff4b5eeaf5405eb45673ef504a", "score": "0.56741506", "text": "public Class instanceClass () throws IOException, ClassNotFoundException {\n return URLPresenter.class;\n }", "title": "" }, { "docid": "e00aa2355a2ec80f6f1622be1626592f", "score": "0.5673012", "text": "Class getStartupClass();", "title": "" } ]
d84e8171fe4e1b13f2c0a08fe848f11b
Work out current track position based on the current position of the 'notch' relative to the seekBarRect
[ { "docid": "d6e796ea1c0b32f4b8bfb354520add01", "score": "0.6849779", "text": "private void updateCurrentPosition() {\n if (mediaService.isPrepared()) {\n float currentNotchPos = notchRect.left;\n float seekEnd = seekbarRect.right;\n float percentage = (currentNotchPos / seekEnd) * 100.0f;\n float duration = mediaService.getDuration();\n float newPos = (duration / 100.0f) * percentage;\n\n //Update the mediaPlayer and start playback from that point\n //mediaManager.setCurrentPosition(Math.round(newPos));\n mediaService.setCurrentPosition(Math.round(newPos));\n } else {\n Log.i(TAG, \"Not prepared!!\");\n }\n }", "title": "" } ]
[ { "docid": "1aded29a90ff35b77c2e4cb2bfe7d2c6", "score": "0.59717274", "text": "@Override\n public void onStopTrackingTouch(SeekBar seekBar) {\n leftStick.setProgress(50);\n mLeft = 0.01;\n mLeftValue.setText(Double.toString(mapStickValueToMotorValue(50)));\n }", "title": "" }, { "docid": "17ab1edbab47e13cb04bc15774b66e67", "score": "0.59660554", "text": "public double getRelativeWristPosition() {\n if (enabledOnRobot()) {\n // Don't apply offset here\n return convertWristTicksToRelativePosition(wrist.getSelectedSensorPosition(0));\n } else {\n return 0;\n }\n }", "title": "" }, { "docid": "d0eabffbd72f0cdb351d0dcc87618310", "score": "0.5930079", "text": "private int setProgress() {\n mVideoPosition = mVideoView.getCurrentPosition();\n // If the video position is smaller than the starting point of trimming,\n // correct it.\n if (mVideoPosition < mTrimStartTime) {\n mVideoPosition = mTrimStartTime;\n }\n // If the position is bigger than the end point of trimming, show the\n // replay button and pause.\n if (mVideoPosition >= mTrimEndTime && mTrimEndTime > 0) {\n if (mVideoPosition > mTrimEndTime) {\n mVideoPosition = mTrimEndTime;\n }\n mController.showEnded();\n mVideoView.pause();\n }\n\n if (mVideoView.isPlaying()) {\n mController.setTimes(mVideoPosition, mDuration, mTrimStartTime, Math.min(mTrimStartTime + mMaxDuration, mTrimEndTime));\n }\n\n return mVideoPosition;\n }", "title": "" }, { "docid": "116e37cc6800ab7fade8e48599b00e53", "score": "0.5915771", "text": "private double getSliderPos() {\n return ((double) mSkbSpeed.getProgress()) / mSkbSpeed.getMax();\n }", "title": "" }, { "docid": "a079a4c1f872b91642db0291e8ca478b", "score": "0.5877797", "text": "protected void calculateTrackRect()\n {\n if (slider.getOrientation() == JSlider.HORIZONTAL)\n {\n\ttrackRect.x = contentRect.x + trackBuffer;\n\ttrackRect.y = contentRect.y;\n\ttrackRect.width = contentRect.width - 2 * trackBuffer;\n\ttrackRect.height = thumbRect.height;\n }\n else\n {\n\ttrackRect.x = contentRect.x;\n\ttrackRect.y = contentRect.y + trackBuffer;\n\ttrackRect.width = thumbRect.width;\n\ttrackRect.height = contentRect.height - 2 * trackBuffer;\n }\n }", "title": "" }, { "docid": "f922c11901219aede6e2365f601d9d5d", "score": "0.58651185", "text": "public int getCurrentPosition(){\n if (mMediaPlayer!=null)\n return mMediaPlayer.getCurrentPosition() / 1000;\n else\n return -1;\n }", "title": "" }, { "docid": "9e0f41c05e707a4c9ed289777bd5eb18", "score": "0.5812416", "text": "public Point2D.Double getPrevTicPosition() {\n\t\tPoint2D.Double pos = getPositionAtTime( getLast().getTime() - 1 );\n\t\tif ( pos == null ) {\n\t\t\t// we do linear approximation to the past\n\t\t\tpos = (Point2D.Double) getPosition().clone(); // current position\n\t\t\tpos.x -= getVelocity().x;\n\t\t\tpos.y -= getVelocity().y;\n\t\t}\n\t\treturn pos;\n\t}", "title": "" }, { "docid": "ce498983b5dc60174a244fe229b34a4f", "score": "0.5811639", "text": "int get_current_position();", "title": "" }, { "docid": "c6f1b7b323eaceacfcb169ddd6d219f5", "score": "0.5808164", "text": "public abstract int getPlayPos();", "title": "" }, { "docid": "bd05c4f0280bb1744d6a720a8feaae89", "score": "0.5781491", "text": "int getPrevYPos();", "title": "" }, { "docid": "7830fc181edb589009d505c352b04ffa", "score": "0.5741203", "text": "@Override\n\tpublic void onStopTrackingTouch(SeekBar seekBar) {\n\t\tmHandler.removeCallbacks(mUpdateTimeTask);\n\t\tif (audioProgressBar.isEnabled()) {\n\t\t\tint totalDuration = mPlayer.getDuration();\n\t\t\tint currentPosition = utils.progressToTimer(seekBar.getProgress(), totalDuration);\n\t\t\tLog.d(\"currentPosition\", Integer.toString(currentPosition));\n\n\t\t\t// forward or backward to certain seconds\n\t\t\tmPlayer.seekTo(currentPosition);\n\n\t\t\t// update timer progress again\n\t\t\tupdateProgressBar();\n\t\t}\n\t}", "title": "" }, { "docid": "ab07c206f44d42968d0d2686c196d131", "score": "0.5730477", "text": "private int getTruePos(int pos){\n //get the position of the indicator\n int truepos=(pos-1)%mImageCount;\n if(truepos<0){\n truepos=mImageCount-1;\n }\n return truepos;\n }", "title": "" }, { "docid": "8deda54da44a9707be4396401f2e39b7", "score": "0.5720624", "text": "private void findPosition() {\n // Gets gyro angle\n double gyroAngle = Robot.driveTrain.getHeading() - initHeading;\n double changeInGyro = gyroAngle - lastGyro;\n double encoderAv = (Robot.driveTrain.getDistance() - lastEncoderAv);\n // Gets the radius of the arc\n double distance;\n if (Math.abs(changeInGyro) > 0.001) {\n double radius = encoderAv / Math.toRadians(changeInGyro);\n\n // Calculate distance based on arc lengths, and invert if driving backwards\n distance = (encoderAv > 0 ? 1 : -1) * Math.sqrt((2 * Math.pow(radius, 2))\n * (1 - Math.cos(Math.toRadians(changeInGyro))));\n } else {\n distance = encoderAv;\n }\n\n // Uses trigonometry 'n stuff to figure out how far right and forward you traveled\n double changedXPos = Math.sin(Math.toRadians((lastGyro + gyroAngle) / 2.0)) * distance;\n double changedYPos = Math.cos(Math.toRadians((lastGyro + gyroAngle) / 2.0)) * distance;\n\n // Adjusts your current position accordingly.\n xPos += changedXPos;\n yPos += changedYPos;\n\n SmartDashboard.putNumber(\"X Position\", xPos);\n SmartDashboard.putNumber(\"Y Position\", yPos);\n // System.out.println(xPos + \" \" + yPos);\n // Saves your encoder distance so you can calculate how far you've went in the new tick\n lastEncoderAv = Robot.driveTrain.getDistance();\n lastGyro = gyroAngle;\n }", "title": "" }, { "docid": "f60b57bd92a6d9846bae7b39f785fe0c", "score": "0.56955165", "text": "protected int yPositionForValue(int value)\n {\n int min = slider.getMinimum();\n int max = slider.getMaximum();\n int extent = slider.getExtent();\n int len = trackRect.height;\n\n int yPos = (max == min) ? 0 : (value - min) * len / (max - min);\n\n if (! drawInverted())\n {\n\tyPos = trackRect.height - yPos;\n\tyPos += trackRect.y;\n }\n else\n yPos += trackRect.y;\n return yPos;\n }", "title": "" }, { "docid": "6264cde5c0e2f41c5c57e31467eaf176", "score": "0.569094", "text": "public void getOldSliderPos() {\n if (activenode == circle) {\n sliderXPos.setValue(position[0][0]);\n sliderYPos.setValue(position[0][1]);\n sliderZPos.setValue(position[0][2]);\n } else if (activenode == rect) {\n sliderXPos.setValue(position[1][0]);\n sliderYPos.setValue(position[1][1]);\n sliderZPos.setValue(position[1][2]);\n } else if (activenode == texti) {\n sliderXPos.setValue(position[2][0]);\n sliderYPos.setValue(position[2][1]);\n sliderZPos.setValue(position[2][2]);\n }\n }", "title": "" }, { "docid": "46c0f50fef8212a7ce10ba54d4abffa1", "score": "0.5670647", "text": "public long retrieveSeekingOffsetPref();", "title": "" }, { "docid": "dcb4e55adcf1c858e5a8fc6ae64bd640", "score": "0.5652777", "text": "String getRelativePosition();", "title": "" }, { "docid": "3a4f1233f0985b7b899a4343dffc7eac", "score": "0.5640605", "text": "protected void calculateTrackBuffer()\n {\n if (slider.getOrientation() == JSlider.HORIZONTAL)\n trackBuffer = thumbRect.width;\n else\n trackBuffer = thumbRect.height;\n }", "title": "" }, { "docid": "4c1870b9e2c194f67ae14f1841d4fca8", "score": "0.5599876", "text": "private int getPowerCellsFromSeekBars() {\n return sbPowerCellsMissed.getProgress()\n + sbPowerCellsLower.getProgress()\n + sbPowerCellsOuter.getProgress()\n + sbPowerCellsInner.getProgress();\n }", "title": "" }, { "docid": "17453b41c2a0d81de1653df534ea83fa", "score": "0.5566989", "text": "public int getCurrentTrackIndex() {\n return mCurrentTrackIndex;\n }", "title": "" }, { "docid": "1646462e99b60b8ebd42b88cb2c4494f", "score": "0.5556142", "text": "protected int xPositionForValue(int value)\n {\n int min = slider.getMinimum();\n int max = slider.getMaximum();\n int extent = slider.getExtent();\n int len = trackRect.width;\n\n int xPos = (max == min) ? 0 : (value - min) * len / (max - min);\n\n if (! drawInverted())\n xPos += trackRect.x;\n else\n {\n\txPos = trackRect.width - xPos;\n\txPos += trackRect.x;\n }\n return xPos;\n }", "title": "" }, { "docid": "15005bb84306f1b96042ea3341df6ab5", "score": "0.55541617", "text": "double getPosition();", "title": "" }, { "docid": "15005bb84306f1b96042ea3341df6ab5", "score": "0.55541617", "text": "double getPosition();", "title": "" }, { "docid": "190d41ba064c1eac4e25beffd26db90c", "score": "0.55464685", "text": "@Override\n public void onStopTrackingTouch(SeekBar seekBar) {\n rightStick.setProgress(50);\n mRight = 0.01;\n mRightValue.setText(Double.toString(mapStickValueToMotorValue(50)));\n }", "title": "" }, { "docid": "4531fbb88e716460f6bb7eec816a91d3", "score": "0.5530642", "text": "private int getCurrentPosition() {\n return ((LinearLayoutManager) mRvImages.getLayoutManager()).findFirstCompletelyVisibleItemPosition();\n }", "title": "" }, { "docid": "ee41f60833b298676f74625926c2e34c", "score": "0.5524594", "text": "int getPositionThreshold();", "title": "" }, { "docid": "867321f14de510c3d5e2aa31b937fb1e", "score": "0.5517062", "text": "long getPosition();", "title": "" }, { "docid": "867321f14de510c3d5e2aa31b937fb1e", "score": "0.5517062", "text": "long getPosition();", "title": "" }, { "docid": "867321f14de510c3d5e2aa31b937fb1e", "score": "0.5517062", "text": "long getPosition();", "title": "" }, { "docid": "2eea31dfe6cb0ac4f7b57949b59b2343", "score": "0.5515686", "text": "private void adjustPlayerPosition() {\n\t\tif (!(players.get(playerIndex).getPositionOnGameBoard() == 10)) {\n\t\t\tlog = \" /> \"\n\t\t\t\t\t+ players.get(playerIndex).getName()\n\t\t\t\t\t+ \" went to \"\n\t\t\t\t\t+ entities\n\t\t\t\t\t\t\t.getEntities()\n\t\t\t\t\t\t\t.get(players.get(playerIndex)\n\t\t\t\t\t\t\t\t\t.getPositionOnGameBoard()).getName() + \"\\n\";\n\t\t\tlogText.append(log);\n\t\t} else {\n\t\t\tif (!players.get(playerIndex).isInJail()) {\n\t\t\t\tlog = \" /> \"\n\t\t\t\t\t\t+ players.get(playerIndex).getName()\n\t\t\t\t\t\t+ \" went to \"\n\t\t\t\t\t\t+ entities\n\t\t\t\t\t\t\t\t.getEntities()\n\t\t\t\t\t\t\t\t.get(players.get(playerIndex)\n\t\t\t\t\t\t\t\t\t\t.getPositionOnGameBoard()).getName()\n\t\t\t\t\t\t+ \" (just visiting)\\n\";\n\t\t\t\tlogText.append(log);\n\t\t\t}\n\t\t}\n\n\t\tswitch (players.get(playerIndex).getPositionOnGameBoard()) {\n\t\tcase 0:\n\t\t\tplayerIndicators.get(playerIndex).setBounds(\n\t\t\t\t\t(int) (frameHeight / 6.5 * 5.5) + 20 + playerIndex * 3,\n\t\t\t\t\t(int) (frameHeight / 6.5 * 5.5) + 30 + playerIndex * 4, 38,\n\t\t\t\t\t35);\n\t\t\tbreak;\n\t\tcase 1:\n\t\t\tplayerIndicators.get(playerIndex).setBounds(\n\t\t\t\t\t(int) (frameHeight / 6.5 * 5) + playerIndex * 3,\n\t\t\t\t\t(int) (frameHeight / 6.5 * 5.5) + 30 + playerIndex * 4, 38,\n\t\t\t\t\t35);\n\t\t\tbreak;\n\t\tcase 2:\n\t\t\tplayerIndicators.get(playerIndex).setBounds(\n\t\t\t\t\t(int) (frameHeight / 6.5 * 4.5) + playerIndex * 3,\n\t\t\t\t\t(int) (frameHeight / 6.5 * 5.5) + 30 + playerIndex * 4, 38,\n\t\t\t\t\t35);\n\t\t\tbreak;\n\t\tcase 3:\n\t\t\tplayerIndicators.get(playerIndex).setBounds(\n\t\t\t\t\t(int) (frameHeight / 6.5 * 4) + playerIndex * 3,\n\t\t\t\t\t(int) (frameHeight / 6.5 * 5.5) + 30 + playerIndex * 4, 38,\n\t\t\t\t\t35);\n\t\t\tbreak;\n\t\tcase 4:\n\t\t\tpaymentDueAmount = 200;\n\t\t\tif (paymentDueAmount > players.get(playerIndex).getMoneyHeld()) {\n\t\t\t\tgamePrompt\n\t\t\t\t\t\t.setText(\"you need to pay arrears. Sell or mortgage property or retire from game\");\n\t\t\t\trollTheDice.setEnabled(false);\n\t\t\t\tretireFromGame.setVisible(true);\n\t\t\t\tpaymentDue = true;\n\t\t\t\tarrearsIndex = 4;\n\t\t\t} else {\n\t\t\t\tpayIncomeTax();\n\t\t\t}\n\t\t\tplayerIndicators.get(playerIndex).setBounds(\n\t\t\t\t\t(int) (frameHeight / 6.5 * 3.5) + playerIndex * 3,\n\t\t\t\t\t(int) (frameHeight / 6.5 * 5.5) + 30 + playerIndex * 4, 38,\n\t\t\t\t\t35);\n\t\t\tbreak;\n\t\tcase 5:\n\t\t\tplayerIndicators.get(playerIndex).setBounds(\n\t\t\t\t\t(int) (frameHeight / 6.5 * 3) + playerIndex * 3,\n\t\t\t\t\t(int) (frameHeight / 6.5 * 5.5) + 30 + playerIndex * 4, 38,\n\t\t\t\t\t35);\n\t\t\tbreak;\n\t\tcase 6:\n\t\t\tplayerIndicators.get(playerIndex).setBounds(\n\t\t\t\t\t(int) (frameHeight / 6.5 * 2.5) + playerIndex * 3,\n\t\t\t\t\t(int) (frameHeight / 6.5 * 5.5) + 30 + playerIndex * 4, 38,\n\t\t\t\t\t35);\n\t\t\tbreak;\n\t\tcase 7:\n\t\t\tplayerIndicators.get(playerIndex).setBounds(\n\t\t\t\t\t(int) (frameHeight / 6.5 * 2) + playerIndex * 3,\n\t\t\t\t\t(int) (frameHeight / 6.5 * 5.5) + 30 + playerIndex * 4, 38,\n\t\t\t\t\t35);\n\t\t\tbreak;\n\t\tcase 8:\n\t\t\tplayerIndicators.get(playerIndex).setBounds(\n\t\t\t\t\t(int) (frameHeight / 6.5 * 1.5) + playerIndex * 3,\n\t\t\t\t\t(int) (frameHeight / 6.5 * 5.5) + 30 + playerIndex * 4, 38,\n\t\t\t\t\t35);\n\t\t\tbreak;\n\t\tcase 9:\n\t\t\tplayerIndicators.get(playerIndex).setBounds(\n\t\t\t\t\t(int) (frameHeight / 6.5) + playerIndex * 3,\n\t\t\t\t\t(int) (frameHeight / 6.5 * 5.5) + 30 + playerIndex * 4, 38,\n\t\t\t\t\t35);\n\t\t\tbreak;\n\t\tcase 10:\n\t\t\tplayerIndicators.get(playerIndex).setBounds(20 + playerIndex * 3,\n\t\t\t\t\t(int) (frameHeight / 6.5 * 5.5) + 30 + playerIndex * 4, 38,\n\t\t\t\t\t35);\n\t\t\tbreak;\n\t\tcase 11:\n\t\t\tplayerIndicators\n\t\t\t\t\t.get(playerIndex)\n\t\t\t\t\t.setBounds(\n\t\t\t\t\t\t\t20 + playerIndex * 3,\n\t\t\t\t\t\t\t(int) (frameHeight / 6.5 * 5) + 2 + playerIndex * 3,\n\t\t\t\t\t\t\t38, 35);\n\t\t\tbreak;\n\t\tcase 12:\n\t\t\tplayerIndicators.get(playerIndex).setBounds(20 + playerIndex * 3,\n\t\t\t\t\t(int) (frameHeight / 6.5 * 4.5) + 2 + playerIndex * 3, 38,\n\t\t\t\t\t35);\n\t\t\tbreak;\n\t\tcase 13:\n\t\t\tplayerIndicators\n\t\t\t\t\t.get(playerIndex)\n\t\t\t\t\t.setBounds(\n\t\t\t\t\t\t\t20 + playerIndex * 3,\n\t\t\t\t\t\t\t(int) (frameHeight / 6.5 * 4) + 2 + playerIndex * 3,\n\t\t\t\t\t\t\t38, 35);\n\t\t\tbreak;\n\t\tcase 14:\n\t\t\tplayerIndicators.get(playerIndex).setBounds(20 + playerIndex * 3,\n\t\t\t\t\t(int) (frameHeight / 6.5 * 3.5) + 2 + playerIndex * 3, 38,\n\t\t\t\t\t35);\n\t\t\tbreak;\n\t\tcase 15:\n\t\t\tplayerIndicators\n\t\t\t\t\t.get(playerIndex)\n\t\t\t\t\t.setBounds(\n\t\t\t\t\t\t\t20 + playerIndex * 3,\n\t\t\t\t\t\t\t(int) (frameHeight / 6.5 * 3) + 2 + playerIndex * 3,\n\t\t\t\t\t\t\t38, 35);\n\t\t\tbreak;\n\t\tcase 16:\n\t\t\tplayerIndicators.get(playerIndex).setBounds(20 + playerIndex * 3,\n\t\t\t\t\t(int) (frameHeight / 6.5 * 2.5) + 2 + playerIndex * 3, 38,\n\t\t\t\t\t35);\n\t\t\tbreak;\n\t\tcase 17:\n\t\t\tplayerIndicators\n\t\t\t\t\t.get(playerIndex)\n\t\t\t\t\t.setBounds(\n\t\t\t\t\t\t\t20 + playerIndex * 3,\n\t\t\t\t\t\t\t(int) (frameHeight / 6.5 * 2) + 2 + playerIndex * 3,\n\t\t\t\t\t\t\t38, 35);\n\t\t\tbreak;\n\t\tcase 18:\n\t\t\tplayerIndicators.get(playerIndex).setBounds(20 + playerIndex * 3,\n\t\t\t\t\t(int) (frameHeight / 6.5 * 1.5) + 2 + playerIndex * 3, 38,\n\t\t\t\t\t35);\n\t\t\tbreak;\n\t\tcase 19:\n\t\t\tplayerIndicators.get(playerIndex).setBounds(20 + playerIndex * 3,\n\t\t\t\t\t(int) (frameHeight / 6.5) + 2 + playerIndex * 3, 38, 35);\n\t\t\tbreak;\n\t\tcase 20:\n\t\t\tplayerIndicators.get(playerIndex).setBounds(20 + playerIndex * 3,\n\t\t\t\t\t30 + playerIndex * 4, 38, 35);\n\t\t\tbreak;\n\t\tcase 21:\n\t\t\tplayerIndicators.get(playerIndex).setBounds(\n\t\t\t\t\t(int) (frameHeight / 6.5) + playerIndex * 3,\n\t\t\t\t\t20 + playerIndex * 4, 38, 35);\n\t\t\tbreak;\n\t\tcase 22:\n\t\t\tplayerIndicators.get(playerIndex).setBounds(\n\t\t\t\t\t(int) (frameHeight / 6.5 * 1.5) + playerIndex * 3,\n\t\t\t\t\t20 + playerIndex * 4, 38, 35);\n\t\t\tbreak;\n\t\tcase 23:\n\t\t\tplayerIndicators.get(playerIndex).setBounds(\n\t\t\t\t\t(int) (frameHeight / 6.5 * 2) + playerIndex * 3,\n\t\t\t\t\t20 + playerIndex * 4, 38, 35);\n\t\t\tbreak;\n\t\tcase 24:\n\t\t\tplayerIndicators.get(playerIndex).setBounds(\n\t\t\t\t\t(int) (frameHeight / 6.5 * 2.5) + playerIndex * 3,\n\t\t\t\t\t20 + playerIndex * 4, 38, 35);\n\t\t\tbreak;\n\t\tcase 25:\n\t\t\tplayerIndicators.get(playerIndex).setBounds(\n\t\t\t\t\t(int) (frameHeight / 6.5 * 3) + playerIndex * 3,\n\t\t\t\t\t20 + playerIndex * 4, 38, 35);\n\t\t\tbreak;\n\t\tcase 26:\n\t\t\tplayerIndicators.get(playerIndex).setBounds(\n\t\t\t\t\t(int) (frameHeight / 6.5 * 3.5) + playerIndex * 3,\n\t\t\t\t\t20 + playerIndex * 4, 38, 35);\n\t\t\tbreak;\n\t\tcase 27:\n\t\t\tplayerIndicators.get(playerIndex).setBounds(\n\t\t\t\t\t(int) (frameHeight / 6.5 * 4) + playerIndex * 3,\n\t\t\t\t\t20 + playerIndex * 4, 38, 35);\n\t\t\tbreak;\n\t\tcase 28:\n\t\t\tplayerIndicators.get(playerIndex).setBounds(\n\t\t\t\t\t(int) (frameHeight / 6.5 * 4.5) + playerIndex * 3,\n\t\t\t\t\t20 + playerIndex * 4, 38, 35);\n\t\t\tbreak;\n\t\tcase 29:\n\t\t\tplayerIndicators.get(playerIndex).setBounds(\n\t\t\t\t\t(int) (frameHeight / 6.5 * 5) + playerIndex * 3,\n\t\t\t\t\t20 + playerIndex * 4, 38, 35);\n\t\t\tbreak;\n\t\tcase 30:\n\t\t\tplayerIndicators.get(playerIndex).setBounds(\n\t\t\t\t\t(int) (frameHeight / 6.5 * 5.5) + playerIndex * 3,\n\t\t\t\t\t20 + playerIndex * 4, 38, 35);\n\t\t\tbreak;\n\t\tcase 31:\n\t\t\tplayerIndicators.get(playerIndex).setBounds(\n\t\t\t\t\t(int) (frameHeight / 6.5 * 5.5) + 30 + playerIndex * 3,\n\t\t\t\t\t(int) (frameHeight / 6.5) + 2 + playerIndex * 3, 38, 35);\n\t\t\tbreak;\n\t\tcase 32:\n\t\t\tplayerIndicators.get(playerIndex).setBounds(\n\t\t\t\t\t(int) (frameHeight / 6.5 * 5.5) + 30 + playerIndex * 3,\n\t\t\t\t\t(int) (frameHeight / 6.5 * 1.5) + 2 + playerIndex * 3, 38,\n\t\t\t\t\t35);\n\t\t\tbreak;\n\t\tcase 33:\n\t\t\tplayerIndicators\n\t\t\t\t\t.get(playerIndex)\n\t\t\t\t\t.setBounds(\n\t\t\t\t\t\t\t(int) (frameHeight / 6.5 * 5.5) + 30 + playerIndex\n\t\t\t\t\t\t\t\t\t* 3,\n\t\t\t\t\t\t\t(int) (frameHeight / 6.5 * 2) + 2 + playerIndex * 3,\n\t\t\t\t\t\t\t38, 35);\n\t\t\tbreak;\n\t\tcase 34:\n\t\t\tplayerIndicators.get(playerIndex).setBounds(\n\t\t\t\t\t(int) (frameHeight / 6.5 * 5.5) + 30 + playerIndex * 3,\n\t\t\t\t\t(int) (frameHeight / 6.5 * 2.5) + 2 + playerIndex * 3, 38,\n\t\t\t\t\t35);\n\t\t\tbreak;\n\t\tcase 35:\n\t\t\tplayerIndicators\n\t\t\t\t\t.get(playerIndex)\n\t\t\t\t\t.setBounds(\n\t\t\t\t\t\t\t(int) (frameHeight / 6.5 * 5.5) + 30 + playerIndex\n\t\t\t\t\t\t\t\t\t* 3,\n\t\t\t\t\t\t\t(int) (frameHeight / 6.5 * 3) + 2 + playerIndex * 3,\n\t\t\t\t\t\t\t38, 35);\n\t\t\tbreak;\n\t\tcase 36:\n\t\t\tplayerIndicators.get(playerIndex).setBounds(\n\t\t\t\t\t(int) (frameHeight / 6.5 * 5.5) + 30 + playerIndex * 3,\n\t\t\t\t\t(int) (frameHeight / 6.5 * 3.5) + 2 + playerIndex * 3, 38,\n\t\t\t\t\t35);\n\t\t\tbreak;\n\t\tcase 37:\n\t\t\tplayerIndicators\n\t\t\t\t\t.get(playerIndex)\n\t\t\t\t\t.setBounds(\n\t\t\t\t\t\t\t(int) (frameHeight / 6.5 * 5.5) + 30 + playerIndex\n\t\t\t\t\t\t\t\t\t* 3,\n\t\t\t\t\t\t\t(int) (frameHeight / 6.5 * 4) + 2 + playerIndex * 3,\n\t\t\t\t\t\t\t38, 35);\n\t\t\tbreak;\n\t\tcase 38:\n\t\t\tpaymentDueAmount = 100;\n\t\t\tif (paymentDueAmount > players.get(playerIndex).getMoneyHeld()) {\n\t\t\t\tgamePrompt\n\t\t\t\t\t\t.setText(\"you need to pay arrears. Sell or mortgage property or retire from game\");\n\t\t\t\trollTheDice.setEnabled(false);\n\t\t\t\tretireFromGame.setVisible(true);\n\t\t\t\tpaymentDue = true;\n\t\t\t\tarrearsIndex = 38;\n\t\t\t} else {\n\t\t\t\tpayLuxuryTax();\n\t\t\t}\n\t\t\tplayerIndicators.get(playerIndex).setBounds(\n\t\t\t\t\t(int) (frameHeight / 6.5 * 5.5) + 30 + playerIndex * 3,\n\t\t\t\t\t(int) (frameHeight / 6.5 * 4.5) + 2 + playerIndex * 3, 38,\n\t\t\t\t\t35);\n\t\t\tbreak;\n\t\tcase 39:\n\t\t\tplayerIndicators\n\t\t\t\t\t.get(playerIndex)\n\t\t\t\t\t.setBounds(\n\t\t\t\t\t\t\t(int) (frameHeight / 6.5 * 5.5) + 30 + playerIndex\n\t\t\t\t\t\t\t\t\t* 3,\n\t\t\t\t\t\t\t(int) (frameHeight / 6.5 * 5) + 2 + playerIndex * 3,\n\t\t\t\t\t\t\t38, 35);\n\t\t\tbreak;\n\t\t}\n\t\tif (players.get(playerIndex).didPassGo()) {\n\t\t\tbalanceLabels.get(playerIndex).setText(\n\t\t\t\t\t\"E\" + players.get(playerIndex).getMoneyHeld());\n\t\t\tlog = \" /> \" + players.get(playerIndex).getName()\n\t\t\t\t\t+ \" got M200 for passing \\\"GO\\\" \" + \"\\n\";\n\t\t\tlogText.append(log);\n\t\t\tplayers.get(playerIndex).setPassedGo(false);\n\t\t}\n\n\t}", "title": "" }, { "docid": "86c15c0132071931484c354677a0a168", "score": "0.55064595", "text": "public synchronized double getPositionPercent() {\n\t\tif (isOpen()) {\n\t\t\tdouble tickLen = (double) sequencer.getTickLength();\n\t\t\tdouble tickPos = (double) sequencer.getTickPosition();\n\t\t\tdouble percent = (long) (tickPos * 100.0 / tickLen);\n\t\t\treturn percent;\n\t\t}\n\t\treturn 0.0;\n\t}", "title": "" }, { "docid": "3c02e5534be32a0638b2af208d0e49c0", "score": "0.5499762", "text": "@Override\n public void onSeekCompleted(@NonNull PlayerWrapper player, long position) {\n if (position == 0 && mExpectedPosition == FFWD_MS) {\n return;\n }\n assertTrue(equalsSeekPosition(mExpectedPosition, position, mDelta));\n if (mExpectedPosition == FFWD_MS) {\n mExpectedPosition = position - REW_MS;\n latchForFfwd.countDown();\n } else {\n latchForRew.countDown();\n }\n }", "title": "" }, { "docid": "13058fa99c5218a644a4a4ba89be9f79", "score": "0.5484551", "text": "public int readTrack(){\n return world.track.colourImage.getPixel(\n (int)((-world.track.translateX) + xPos) / world.scale,\n (int)((-world.track.translateY) + yPos) / world.scale);\n }", "title": "" }, { "docid": "d31a7ad29219f4e3207789cdd5253a4f", "score": "0.54694754", "text": "int getPosition();", "title": "" }, { "docid": "d31a7ad29219f4e3207789cdd5253a4f", "score": "0.54694754", "text": "int getPosition();", "title": "" }, { "docid": "d31a7ad29219f4e3207789cdd5253a4f", "score": "0.54694754", "text": "int getPosition();", "title": "" }, { "docid": "a172d263e2855bf1bd2c88093e3fd339", "score": "0.5466791", "text": "int getPrevXPos();", "title": "" }, { "docid": "a6028bd0e0e600434dd73d984f1e5b28", "score": "0.54606366", "text": "public double getWristPosition() {\n if (enabledOnRobot()) {\n return convertWristTicksToPosition(wrist.getSelectedSensorPosition(0), true, getElbowPosition());\n } else {\n return 0;\n }\n }", "title": "" }, { "docid": "6371e71cd02d202c61f90dacd3c29eaa", "score": "0.545937", "text": "void position(double intakePosition){\n if (intakePosition>=(1-Constants.intakePositionDeadband)){ \n intakePositionR.set(ControlMode.PercentOutput, -(Constants.IntakeSpeed*2));\n } else if (intakePosition>Constants.intakePositionDeadband){\n intakePositionR.set(ControlMode.PercentOutput, -Constants.IntakeSpeed);\n } else if (intakePosition<=-(1-Constants.intakePositionDeadband)){ \n intakePositionR.set(ControlMode.PercentOutput, (Constants.IntakeSpeed*2));\n } else if (intakePosition<-Constants.intakePositionDeadband){\n intakePositionR.set(ControlMode.PercentOutput, Constants.IntakeSpeed);\n }\n if ((intakePosition<Constants.intakePositionDeadband)&&(intakePosition>-Constants.intakePositionDeadband)){\n intakePositionR.set(ControlMode.PercentOutput, 0);\n }\n }", "title": "" }, { "docid": "4cc50de9d0f3b2ca39b614eb2092bc6f", "score": "0.54456013", "text": "public void updateSeekPos(Intent intent) {\n int seekPos = intent.getIntExtra(\"seekpos\", 0);\n if (mp.isPlaying()) {\n handler.removeCallbacks(sendUpdatesToUI);\n mp.seekTo(seekPos);\n setupHandler();\n }\n\n }", "title": "" }, { "docid": "26e3b8a379a3e4bf0c9ffdb627b224f9", "score": "0.54309213", "text": "public int getBarPos(BarKey k){\n \tif(k.equals(BarKey.LEFT)){\n \t\treturn this.leftBarKeyPos;\n \t} else {\n \t\treturn this.rightBarKeyPos;\n \t}\n }", "title": "" }, { "docid": "ac164951e8612d7c5f494465cb64a0dd", "score": "0.5419136", "text": "public void onStopTrackingTouch(SeekBar seekBar) {\n SharedPreferences prefs =getApplicationContext().getSharedPreferences(\"mySharedPrefsFilename\", Context.MODE_PRIVATE);\n // Don't forget to call commit() when changing preferences.\n prefs.edit().putInt(\"seekBarValue2\", seekBar.getProgress()).commit();\n size = prefs.getInt(\"seekBarValue2\", 20);\n if(repeat.getVisibility()== View.VISIBLE)\n textValue.setTextSize(size);\n }", "title": "" }, { "docid": "07e3b7ba1279568ffa2f054bb8440670", "score": "0.541455", "text": "public void onStartTrackingTouch(SeekBar seekBar) {\n\n }", "title": "" }, { "docid": "c440227e3286c4bdb3668854e5142faf", "score": "0.539538", "text": "private void getCurrentPosition() {\r\n\t\tnew Thread(new Runnable() {\r\n\t\t\t@Override\r\n\t\t\tpublic void run() {\r\n\t\t\t\tRobotMoveTargetPosition position = null;\r\n\t\t\t\ttry {\r\n\r\n\t\t\t\t\tshowProgress(\"Getting postion...\");\r\n\t\t\t\t\t// getting position\r\n\t\t\t\t\tposition = RobotMotionLocomotionController\r\n\t\t\t\t\t\t\t.getRobotPosition(getRobot(), false);\r\n\r\n\t\t\t\t} catch (RobotException e) {\r\n\t\t\t\t\tshowInfoDialogFromThread(TAG,\r\n\t\t\t\t\t\t\t\"Get position: \" + e.getMessage());\r\n\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tcancelProgress();\r\n\t\t\t\tif (position == null) {\r\n\t\t\t\t\tshowInfoDialogFromThread(TAG, \"get position failed!\");\r\n\t\t\t\t} else {\r\n\t\t\t\t\tshowInfoDialogFromThread(TAG, \"Position:\\n (\" + position.x\r\n\t\t\t\t\t\t\t+ \",\" + position.y + \",\" + position.theta + \")\");\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}).start();\r\n\t}", "title": "" }, { "docid": "ac2caa20994402f7c243310bb07e5d22", "score": "0.53943807", "text": "public double getDesiredPosition()\n {\n return desired_position_;\n }", "title": "" }, { "docid": "86eddc02fb70bf6d754b2495662342a3", "score": "0.5389474", "text": "private void showPlayHeadPosition(long position, long duration)\n\t{\n\t\tlong pos = 0;\n\t\tif ( duration != 0 )\n\t\t\tpos = (PROGRESS_BAR_MAX * position) / duration;\n\t\tSeekBar _prgsBar = (SeekBar) findViewById(R.id.mediacontroller_progress);\n\t\tif ( _prgsBar != null ) _prgsBar.setProgress( (int) pos);\n\t}", "title": "" }, { "docid": "3f2969032cbb1820e2bd9c93b6ac09ec", "score": "0.53811", "text": "@Override\n\t\t\tpublic void onStopTrackingTouch(SeekBar seekBar) {\n\t\t\t\tint seekProgress = sb.getProgress();\n\t\t\t\tif (seekProgress < 10) {\n\t\t\t\t\tsb.setProgress(3);\n\t\t\t\t\tDataHandler.ac2bus.fengsudangwei = 1;\n\t\t\t\t\tacfengsudangwei.setText(\"1\");\n\t\t\t\t} else if (seekProgress >= 10 && seekProgress < 30) {\n\t\t\t\t\tsb.setProgress(21);\n\t\t\t\t\tDataHandler.ac2bus.fengsudangwei = 2;\n\t\t\t\t\tacfengsudangwei.setText(\"2\");\n\t\t\t\t} else if (seekProgress >= 30 && seekProgress < 50) {\n\t\t\t\t\tsb.setProgress(42);\n\t\t\t\t\tDataHandler.ac2bus.fengsudangwei = 3;\n\t\t\t\t\tacfengsudangwei.setText(\"3\");\n\t\t\t\t} else if (seekProgress >= 50 && seekProgress < 70) {\n\t\t\t\t\tsb.setProgress(63);\n\t\t\t\t\tDataHandler.ac2bus.fengsudangwei = 4;\n\t\t\t\t\tacfengsudangwei.setText(\"4\");\n\t\t\t\t} else if (seekProgress >= 70 && seekProgress < 90) {\n\t\t\t\t\tsb.setProgress(80);\n\t\t\t\t\tDataHandler.ac2bus.fengsudangwei = 5;\n\t\t\t\t\tacfengsudangwei.setText(\"5\");\n\t\t\t\t} else if (seekProgress >= 90) {\n\t\t\t\t\tsb.setProgress(100);\n\t\t\t\t\tDataHandler.ac2bus.fengsudangwei = 6;\n\t\t\t\t\tacfengsudangwei.setText(\"6\");\n\t\t\t\t}\n\t\t\t}", "title": "" }, { "docid": "23bafcf499f12540ed5fb58d2782f68c", "score": "0.5369807", "text": "protected void calculateThumbLocation()\n {\n int value = slider.getValue();\n\n if (slider.getOrientation() == JSlider.HORIZONTAL)\n {\n\tthumbRect.x = xPositionForValue(value) - thumbRect.width / 2;\n\tthumbRect.y = contentRect.y;\n }\n else\n {\n\tthumbRect.x = contentRect.x;\n\tthumbRect.y = yPositionForValue(value) - thumbRect.height / 2;\n }\n }", "title": "" }, { "docid": "a5d388f917c34f8778239d07e7d5282a", "score": "0.53527534", "text": "public int getCurrentPosition() {\n return mediaPlayer.getCurrentPosition();\n }", "title": "" }, { "docid": "22e8633e37c05af45174b9967191da82", "score": "0.5348582", "text": "public double getCurrentPosition(){\n\t\treturn currentMPDistance*directionSign + initialPosition;\n\t\t\n\t}", "title": "" }, { "docid": "f11cc65d0ad0d2c1db1a767cbecbd3e9", "score": "0.53406805", "text": "public double getPos(){\n\t\tshort pos = ScaraDriver.getPosShort(motNr);\n\t\tactPos += (short)(pos-lastPos);\n\t\tlastPos = pos;\n\t\t\n\t\treturn kPos * (double)actPos;\t\t\t\t\t\t\t\t\n\t}", "title": "" }, { "docid": "6e2b3af566205c8a67f9bd789275737a", "score": "0.53323245", "text": "@Override\n public void onStartTrackingTouch(SeekBar seekBar) {\n }", "title": "" }, { "docid": "db455ff55a321ad27cdbf069bc14b3e0", "score": "0.5330341", "text": "@Override\n public double getPosition() {\n return turretAngle;\n }", "title": "" }, { "docid": "dbf50cb914e244ddd49db5a1b3e3fbae", "score": "0.5327999", "text": "public int getPosition();", "title": "" }, { "docid": "dbf50cb914e244ddd49db5a1b3e3fbae", "score": "0.5327999", "text": "public int getPosition();", "title": "" }, { "docid": "dbf50cb914e244ddd49db5a1b3e3fbae", "score": "0.5327999", "text": "public int getPosition();", "title": "" }, { "docid": "f1ff2b9479f45087dc510f9597f276e6", "score": "0.532283", "text": "@Override\n\tpublic int getPlayPos() {return playMe.position();}", "title": "" }, { "docid": "8207f5dbcdbe7e8cac44fe233ca48d82", "score": "0.531808", "text": "public final void setPlaybackCursorPosition(int position) {\n\t\tif(null != seekbar) {\n\t\t\tif(position <= seekbar.getMax()) {\n\t\t\t\tseekbar.setProgress(position);\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "7484f24795cd46fa846fa19fd905c087", "score": "0.5302276", "text": "public void onStartTrackingTouch(SeekBar seekBar) {\r\n }", "title": "" }, { "docid": "eaca00cce3fe6cfe4943c9054a283055", "score": "0.5301365", "text": "public void onStartTrackingTouch(SeekBar seekBar) {\n }", "title": "" }, { "docid": "eaca00cce3fe6cfe4943c9054a283055", "score": "0.5301365", "text": "public void onStartTrackingTouch(SeekBar seekBar) {\n }", "title": "" }, { "docid": "eaca00cce3fe6cfe4943c9054a283055", "score": "0.5301365", "text": "public void onStartTrackingTouch(SeekBar seekBar) {\n }", "title": "" }, { "docid": "eaca00cce3fe6cfe4943c9054a283055", "score": "0.5301365", "text": "public void onStartTrackingTouch(SeekBar seekBar) {\n }", "title": "" }, { "docid": "eaca00cce3fe6cfe4943c9054a283055", "score": "0.5301365", "text": "public void onStartTrackingTouch(SeekBar seekBar) {\n }", "title": "" }, { "docid": "eaca00cce3fe6cfe4943c9054a283055", "score": "0.5301365", "text": "public void onStartTrackingTouch(SeekBar seekBar) {\n }", "title": "" }, { "docid": "c6bedf9db44845b453aeb3d006cdaac1", "score": "0.5281753", "text": "@Override\n public long getCurrentPosition() {\n return currentPosition;\n }", "title": "" }, { "docid": "56faa0e74cb723c29e3ead5cadb83eca", "score": "0.52791965", "text": "@Override\n\t\tpublic void onStopTrackingTouch(SeekBar seekBar) {\n\t\t\tseekTo(seekBar.getProgress());\n\t\t}", "title": "" }, { "docid": "8481c8a8c8176b3457a167d1e33f21c9", "score": "0.52676165", "text": "@Override\n\t\t\tpublic void onStartTrackingTouch(SeekBar bar){\n\t\t\t}", "title": "" }, { "docid": "7c26e00b6efe7e7ba3eeda3b34de069b", "score": "0.52660507", "text": "public int getPrevYPos() {\n return prevYPos_;\n }", "title": "" }, { "docid": "c305234598cc7972737233bd23f6710d", "score": "0.5264792", "text": "int getPos();", "title": "" }, { "docid": "c305234598cc7972737233bd23f6710d", "score": "0.5264792", "text": "int getPos();", "title": "" }, { "docid": "c305234598cc7972737233bd23f6710d", "score": "0.5264792", "text": "int getPos();", "title": "" }, { "docid": "c305234598cc7972737233bd23f6710d", "score": "0.5264792", "text": "int getPos();", "title": "" }, { "docid": "c305234598cc7972737233bd23f6710d", "score": "0.5264792", "text": "int getPos();", "title": "" }, { "docid": "bef85721416b47744ab052b7b77888f6", "score": "0.5261513", "text": "double getPositionRate();", "title": "" }, { "docid": "bef85721416b47744ab052b7b77888f6", "score": "0.5261513", "text": "double getPositionRate();", "title": "" }, { "docid": "dfd0c8858989c66fd0685729ddf534ea", "score": "0.5253968", "text": "public void onStartTrackingTouch(SeekBar seekBar) {\n\t\t\t\t\n\t\t\t}", "title": "" }, { "docid": "dfd0c8858989c66fd0685729ddf534ea", "score": "0.5253968", "text": "public void onStartTrackingTouch(SeekBar seekBar) {\n\t\t\t\t\n\t\t\t}", "title": "" }, { "docid": "c6fda0cbfb292160caebe53092744f4b", "score": "0.52530247", "text": "@Override\n public final long getPlaybackPosition() {\n return ((player != null) ? player.getPlaybackPosition() : 0);\n }", "title": "" }, { "docid": "5956785e0b8d9405dd7bf2b0c385698c", "score": "0.52519155", "text": "@Override\n\t\t\t\t\tpublic void onStartTrackingTouch(VerticalSeekBar seekBar) {\n\t\t\t\t\t}", "title": "" }, { "docid": "53105997bae0cb197681809ff18c82e4", "score": "0.5250356", "text": "public synchronized long getTickPosition() {\n/* 459 */ if (getDataPump() == null || this.sequence == null) {\n/* 460 */ return 0L;\n/* */ }\n/* */ \n/* 463 */ return getDataPump().getTickPos();\n/* */ }", "title": "" }, { "docid": "9210971b976068de8b899feed5e9b211", "score": "0.5250215", "text": "private int getPosition() {\n \t\treturn mPosition;\n \t}", "title": "" }, { "docid": "cedbe55e5c3c12f22d0d63d4831c492a", "score": "0.5245832", "text": "public void onStopTrackingTouch(SeekBar seekBar) {\n actualSeekBar.setText(Integer.toString(progressChanged));\n }", "title": "" }, { "docid": "f0ca4bd611e6d97e7fd85106b94b2e4a", "score": "0.52453506", "text": "@Override\r\n\t\t\t\t\t\tpublic void onStartTrackingTouch(SeekBar seekBar) {\n\r\n\t\t\t\t\t\t}", "title": "" }, { "docid": "430d9e6cc6be4630f515555985671a47", "score": "0.52423894", "text": "@Override\n public void onStartTrackingTouch(SeekBar seekBar) {\n }", "title": "" }, { "docid": "e78fa314169590b124190bfafd691369", "score": "0.5241446", "text": "@Override\n public void onStartTrackingTouch(SeekBar seekBar) {\n \n }", "title": "" }, { "docid": "4ee23cc72a7320f720b0726c02199256", "score": "0.52377015", "text": "private int getItemForPosition(int y) {\r\n\tfinal int adjustedy = y - mDragPoint - 32;\r\n\tint pos = myPointToPosition(0, adjustedy);\r\n\tif (pos >= 0) {\r\n\t if (pos <= mFirstDragPos) {\r\n\t\tpos += 1;\r\n\t }\r\n\t} else if (adjustedy < 0) {\r\n\t pos = 0;\r\n\t}\r\n\treturn pos;\r\n }", "title": "" }, { "docid": "772c914d9d470110bb0e984293b3adba", "score": "0.5237354", "text": "@Override\n public long getCurrentPosition() {\n return callOnExoplayerThreadAndWaitForResult(() -> exoPlayer.getCurrentPosition());\n }", "title": "" }, { "docid": "a2ad769adf526c5c429c5d55a09a154f", "score": "0.5236717", "text": "public PlayingPosition getPlayingPosition(){\n return favouritePosition;\n }", "title": "" }, { "docid": "11a44087e4a6d93ba78da42374d41da7", "score": "0.5232103", "text": "private void showBufferPosition(long position, long duration)\n\t{\n\t\tlong pos = 0;\n\t\tif ( duration != 0 ) \n\t\t\tpos = (PROGRESS_BAR_MAX * position) / duration;\n\t\tLog.i(\"PlayerActivity\", \"Buffering progress=\"+pos);\n\t\tSeekBar _prgsBar = (SeekBar) findViewById(R.id.mediacontroller_progress);\n\t\tif ( _prgsBar != null ) _prgsBar.setSecondaryProgress( (int) pos );\n\t}", "title": "" }, { "docid": "1c7cb341587b89e083696ed0d877612c", "score": "0.523088", "text": "@Override\n public void onStartTrackingTouch(SeekBar seekBar) {\n\n }", "title": "" }, { "docid": "4ea8889f2e27c233083a81f1df0d2d8e", "score": "0.5229321", "text": "@Override\n public void onStartTrackingTouch(SeekBar seekBar) {\n \n }", "title": "" }, { "docid": "3d137b819a42a89886632a512616b396", "score": "0.5227391", "text": "public int currentTrackNumber() {\r\n if (this.trackList.isEmpty()) {\r\n return 0;\r\n } else {\r\n return (this.currentTrack + 1);\r\n }\r\n }", "title": "" }, { "docid": "74696f4f77ddad96d455ea2b3dc0c711", "score": "0.52260923", "text": "@Override\n public void onStartTrackingTouch(SeekBar seekBar) {\n }", "title": "" }, { "docid": "74696f4f77ddad96d455ea2b3dc0c711", "score": "0.52260923", "text": "@Override\n public void onStartTrackingTouch(SeekBar seekBar) {\n }", "title": "" }, { "docid": "e355923e8ef5ffe71829d68514bdd25b", "score": "0.52197134", "text": "public static int getPosition() {\n return isPrepared ? media.getCurrentPosition() : 0;\n }", "title": "" }, { "docid": "87ec78ddb7d5539f29c02b1c665c476d", "score": "0.521871", "text": "public abstract Position getCurrentPosition();", "title": "" }, { "docid": "a6c6908a22903e9810ab5e46737c2a6a", "score": "0.52164936", "text": "@Override\n \t\t\tpublic void onStartTrackingTouch(SeekBar seekBar) {\n \t\t\t\t\n \t\t\t}", "title": "" }, { "docid": "e95298e26a749fa78246bca892529623", "score": "0.5210156", "text": "private Pair<Float, Float> calcOffset(TrackPiece piece) {\n assert piece.getType().isCorner();\n switch (piece.getType()) {\n case UP_LEFT:\n case RIGHT_DOWN:\n return bottomLeft(piece.getXf(), piece.getYf());\n case UP_RIGHT:\n case LEFT_DOWN:\n return bottomRight(piece.getXf(), piece.getYf());\n case RIGHT_UP:\n case DOWN_LEFT:\n return topLeft(piece.getXf(), piece.getYf());\n case LEFT_UP:\n case DOWN_RIGHT:\n default:\n return topRight(piece.getXf(), piece.getYf());\n }\n }", "title": "" }, { "docid": "22ff55de43cf93f068dd248d2488a04a", "score": "0.52079916", "text": "public int prevY(){\n return prevLocation.y;\n }", "title": "" } ]
cf7ce883e114ea6e693689b03607282e
Block start for MinimaxAlphaBeta Search// return true if depth matched with user input else false
[ { "docid": "9f333de401787e6b1741a6ec3934131b", "score": "0.4557411", "text": "boolean deepEnough(int depth)\r\n\t{\r\n\t\tif(depth == this.depth)\r\n\t\t{\r\n\t\t\treturn true;\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\treturn false;\r\n\t\t}\r\n\t}", "title": "" } ]
[ { "docid": "2e2bd141d97ce624cc70995e19f5f9e5", "score": "0.67282045", "text": "public int alphaBetaMin(DraughtsNode node, int alpha, int beta, int depth, List<Move> moveList, List<Move> oldMoveList)\n throws AIStoppedException {\n if (player.stopped) {\n player.stopped = false;\n throw new AIStoppedException();\n }\n\n // obtain a reference to the current active state\n DraughtsState currState = node.getState();\n // if final depth reached, then return the value of this leaf\n if (currState.isEndState()) {\n statesEvaluated++;\n return evaluate.evaluateState(currState);\n }\n\n // if not final depth, then generate all possible branches\n // determine the best move and corresponding state-value\n List<Move> moves = currState.getMoves();\n\n // if the list of old-moves is not empty yet, then continue\n // tracing the best move of the previous run by putting the old move\n // in the first position to be evaluated.\n // This leads to better pruning.\n if (!oldMoveList.isEmpty()) {\n Move oldMove = oldMoveList.remove(0);\n for (int i = 0; i < moves.size(); i++) {\n if (moves.get(i).equals(oldMove)) {\n Move temp = moves.get(0);\n moves.set(0, moves.get(i));\n moves.set(i, temp);\n break;\n }\n }\n }\n\n if (depth <= 0) {\n if (!moves.get(0).isCapture()) {\n statesEvaluated++;\n return evaluate.evaluateState(currState);\n } else {\n depth++;\n }\n } else if (moves.size() == 1) {\n // if only a single move is possible, don't decrease depth and jump to next level right away\n statesSearched++;\n depth++;\n }\n\n // keep track of the moveList of the best move\n // combine it with the input moveList to get full move-history\n List<Move> bestMoveList = new ArrayList<>();\n //access via new for-loop\n for (Move move : moves) {\n statesSearched++;\n currState.doMove(move);\n DraughtsNode childNode = new DraughtsNode(currState);\n List<Move> childMoveList = new ArrayList<Move>();\n int result = alphaBetaMax(childNode, alpha, beta, depth - 1, childMoveList, oldMoveList);\n currState.undoMove(move);\n if (result < beta) {\n beta = result;\n node.setBestMove(move);\n bestMoveList = childMoveList;\n bestMoveList.add(move);\n }\n if (alpha >= beta) {\n // append child move list to move list\n moveList.addAll(bestMoveList);\n return beta;\n }\n }\n // append child move list to move list\n moveList.addAll(bestMoveList);\n return beta;\n }", "title": "" }, { "docid": "e86252a762e1ea90ab91cd15fbdde995", "score": "0.67250174", "text": "public double alphaBetaMiniMax(GameNode node, \r\n int depth, \r\n double alpha, \r\n double beta, \r\n boolean isMaxPlayer)\r\n throws TimeoutException {\r\n // Keep track of the # of explored nodes.\r\n this.exploredNodes++;\r\n \r\n // Algorithm must immediately terminate if the timeout is signalled.\r\n if(this.timeout) {\r\n throw new TimeoutException();\r\n }\r\n \r\n GameState state = node.getState();\r\n GameBoard board = state.getGameBoard();\r\n //System.out.println(\"BoardState at \" + depth);\r\n //System.out.println(board.transcript()); \r\n\r\n // Endstate reached?\r\n Team winner = board.isEndState();\r\n // If winner != null, means we reached an end state.\r\n if(winner != null) {\r\n //System.out.println(\"END STATE REACHED\");\r\n // What score should we give to an end state?\r\n if(isMaxPlayer) {\r\n if(winner == Team.RED) {\r\n return Double.POSITIVE_INFINITY;\r\n } else {\r\n return Double.NEGATIVE_INFINITY;\r\n }\r\n } else {\r\n // Minimizing Player.\r\n if(winner == Team.BLUE) {\r\n return Double.NEGATIVE_INFINITY;\r\n } else {\r\n return Double.POSITIVE_INFINITY;\r\n }\r\n }\r\n }\r\n \r\n // Reached maximum depth.\r\n if(depth == 0) {\r\n // Calculate the heuristic value.\r\n return this.evaluation.score(state);\r\n }\r\n \r\n double value;\r\n double bestValue;\r\n MoveAction bestMove = null;\r\n if(isMaxPlayer) { // Maximizing player.\r\n value = Double.NEGATIVE_INFINITY;\r\n bestValue = Double.NEGATIVE_INFINITY;\r\n List<MoveAction> moves = board.getMoves(Team.RED);\r\n for(MoveAction move : moves) {\r\n // Apply move.\r\n board.applyMove(move);\r\n \r\n // Recursive call.\r\n //GameNode next = new GameNode(state);\r\n value = Math.max(value, alphaBetaMiniMax(node, depth - 1, alpha, beta, false));\r\n if(value > bestValue) {\r\n bestValue = value;\r\n bestMove = move;\r\n }\r\n \r\n alpha = Math.max(alpha, value);\r\n // Beta-cutoff.\r\n if(beta <= alpha) {\r\n break;\r\n }\r\n \r\n // Undo move.\r\n board.undoMove(move);\r\n }\r\n } else {\r\n // Minimizing player.\r\n value = Double.POSITIVE_INFINITY;\r\n bestValue = Double.POSITIVE_INFINITY;\r\n List<MoveAction> moves = board.getMoves(Team.BLUE);\r\n for(MoveAction move : moves) {\r\n // Apply move.\r\n board.applyMove(move);\r\n \r\n //GameNode next = new GameNode(state);\r\n value = Math.min(value, alphaBetaMiniMax(node, depth - 1, alpha, beta, true));\r\n // Keep the smallest value.\r\n if(bestValue > value) {\r\n bestValue = value;\r\n bestMove = move;\r\n }\r\n \r\n beta = Math.min(beta, value);\r\n // Alpha-cutoff.\r\n if(beta <= alpha) {\r\n break;\r\n }\r\n \r\n // Undo move.\r\n board.undoMove(move);\r\n }\r\n }\r\n // Store the best move in the node.\r\n node.setBestMove(bestMove);\r\n return bestValue;\r\n }", "title": "" }, { "docid": "da9f153a48d6660516b64bd14aa4270d", "score": "0.66319585", "text": "private int alphaBeta(BoardState bs, int depth, int alpha, int beta){\t\t\n\t\tif (bs.isWinner(this.player - 1)){\n\t\t\treturn depth - 10;\n\t\t}\n\t\telse if (bs.isWinner(this.player)){\n\t\t\treturn 10 - depth;\t\n\t\t}\n\t\t\n\t\tif (depth == depthLimit || bs.isBoardFull()){\n\t\t\treturn 0;\n\t\t}\n\n\t\tif (bs.getCurrentPlayerID() == (this.player - 1)){\n\t\t\tfor (BoardState tmp : bs.getChildren()){\n\t\t\t\tint val = alphaBeta(tmp, (depth + 1), alpha, beta);\n\t\t\t\talpha = Math.max(alpha, val);\n\n\t\t\t\tif (beta <= alpha){\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\treturn alpha;\n\t\t}\n\t\telse{\n\t\t\tfor (BoardState tmp : bs.getChildren()){\n\t\t\t\tint val = alphaBeta(tmp, (depth + 1), alpha, beta);\n\t\t\t\tbeta = Math.min(beta, val);\n\n\t\t\t\tif (beta <= alpha){\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\treturn beta;\n\t\t}\n\t}", "title": "" }, { "docid": "f9837e1f70b3c6fedc5ef1119c89fcab", "score": "0.6581335", "text": "public int alphabeta(GameState state, int depth, int alpha, int beta,\n\t\t\tboolean maxPlayer) {\n\t\tArrayList<Integer> successors = generate_successors(state);\n\t\tint v;\n\t\tint lastMove = state.get_last_move();\n\t\tint nextMove = state.get_size();\n\t\tif (successors.isEmpty()) {\n\t\t\tif(maxPlayer)\n\t\t\t\tv = -100;\n\t\t\telse\n\t\t\t\tv = 100;\n\t\t}else if (depth == 0) {\n\t\t\t v = evaluate_state(state);\n\t\t// max algorithm \n\t\t}else if (maxPlayer) {\n\t\t\tv = -INFINITY; // score of the best next move\n\t\t\tfor (Integer x : successors) {\n\t\t\t\tstate.remove_stone(x);\n\t\t\t\tv = Math.max(v,alphabeta(state, depth - 1, alpha, beta, !maxPlayer));\n\t\t\t\tstate.set_stone(x);\n\t\t\t\tstate.set_last_move(lastMove);\n\t\t\t\tif (v >= beta)\n\t\t\t\t\tbreak;\n\t\t\t\tif(alpha == v && nextMove >= x){\n\t\t\t\t\t// store nextMove to return to get_next_move\n\t\t\t\t\tnextMove = x;\n\t\t\t\t}\n\t\t\t\telse if(v > alpha){\n\t\t\t\t\talpha = v;\n\t\t\t\t\t// store nextMove to return to get_next_move\n\t\t\t\t\tnextMove = x;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t// min algorithm\n\t\t} else {\n\t\t\tv = INFINITY; // score of the best next move\n\t\t\tfor (Integer x : successors) {\n\t\t\t\tstate.remove_stone(x);\n\t\t\t\tv = Math.min(v,\n\t\t\t\t\t\talphabeta(state, depth - 1, alpha, beta, !maxPlayer));\n\t\t\t\tstate.set_stone(x);\n\t\t\t\tstate.set_last_move(lastMove);\n\t\t\t\tif (v <= alpha)\n\t\t\t\t\tbreak;\n\t\t\t\tif(beta == v && nextMove >= x){\n\t\t\t\t\t// store nextMove to return to get_next_move\n\t\t\t\t\tnextMove = x;\n\t\t\t\t}\n\t\t\t\telse if(v < beta){\n\t\t\t\t\tbeta = v;\n\t\t\t\t\t// store nextMove to return to get_next_move\n\t\t\t\t\tnextMove = x;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\tstate.log();\n\t\tHelper.log_alphabeta(alpha, beta);\n\t\tstate.set_last_move(nextMove);\n\t\treturn v;\n\t}", "title": "" }, { "docid": "b7db26ed4a9bd2e4166700c5e0015eca", "score": "0.6548584", "text": "public int alphaBetaMax(DraughtsNode node, int alpha, int beta, int depth, List<Move> moveList, List<Move> oldMoveList)\n throws AIStoppedException {\n if (player.stopped) {\n player.stopped = false;\n throw new AIStoppedException();\n }\n\n // obtain a reference to the current active state\n DraughtsState currState = node.getState();\n // if final depth reached, then return the value of this leaf\n if (currState.isEndState()) {\n statesEvaluated++;\n return evaluate.evaluateState(currState);\n }\n\n // if not final depth, then generate all possible branches\n // determine the best move and corresponding state-value\n List<Move> moves = currState.getMoves();\n\n // if the list of old-moves is not empty yet, then continue\n // tracing the best move of the previous run by putting the old move\n // in the first position to be evaluated.\n // This leads to better pruning.\n if (!oldMoveList.isEmpty()) {\n Move oldMove = oldMoveList.remove(0);\n\n for (int i = 0; i < moves.size(); i++) {\n if (moves.get(i).equals(oldMove)) {\n Move temp = moves.get(0);\n moves.set(0, moves.get(i));\n moves.set(i, temp);\n break;\n }\n }\n }\n \n if (depth <= 0) {\n if (!moves.get(0).isCapture()) {\n statesEvaluated++;\n return evaluate.evaluateState(currState);\n } else {\n depth++;\n }\n } else if (moves.size() == 1) {\n // if only a single move is possible, don't decrease depth and jump to next level right away\n statesSearched++;\n depth++;\n }\n\n // keep track of the moveList of the best move\n // combine it with the input moveList to get full move-history\n List<Move> bestMoveList = new ArrayList<>();\n\n //access via new for-loop\n for (Move move : moves) {\n statesSearched++;\n currState.doMove(move);\n DraughtsNode childNode = new DraughtsNode(currState);\n List<Move> childMoveList = new ArrayList<Move>();\n int result = alphaBetaMin(childNode, alpha, beta, depth - 1, childMoveList, oldMoveList);\n currState.undoMove(move);\n if (result > alpha) {\n alpha = result;\n node.setBestMove(move);\n bestMoveList = childMoveList;\n bestMoveList.add(move);\n }\n if (alpha >= beta) {\n // append child move list to move list\n moveList.addAll(bestMoveList);\n return alpha;\n }\n }\n // append child move list to move list\n moveList.addAll(bestMoveList);\n return alpha;\n }", "title": "" }, { "docid": "b58d0610b39990c22f617e376b9a3f59", "score": "0.6458683", "text": "public double alphaBeta(GameNode node, int depth, double alpha, double beta, boolean maxPlayer) \r\n throws TimeoutException {\n this.exploredNodes++;\r\n \r\n // Algorithm must immediately terminate if the timeout is signalled.\r\n if(this.timeout) {\r\n throw new TimeoutException();\r\n }\r\n \r\n GameState state = node.getState();\r\n GameBoard board = state.getGameBoard();\r\n //System.out.println(\"BoardState at \" + depth);\r\n //System.out.println(board.transcript()); \r\n \r\n Team winner = board.isEndState();\r\n // If winner != null, means we reached an end state.\r\n if(winner != null) {\r\n //System.out.println(\"END STATE REACHED\");\r\n // What score should we give to an end state?\r\n // TODO\r\n // This structure is wrong it should return the value of this end\r\n // state with respect to the current player, the player at the root\r\n // node, not at the current node via propagation of the maxPlayer\r\n // value.\r\n /**\r\n if(maxPlayer) {\r\n if(winner == Team.RED) {\r\n return Double.POSITIVE_INFINITY;\r\n } else {\r\n return Double.NEGATIVE_INFINITY;\r\n }\r\n } else {\r\n // Minimizing Player.\r\n if(winner == Team.BLUE) {\r\n return Double.NEGATIVE_INFINITY;\r\n } else {\r\n return Double.POSITIVE_INFINITY;\r\n }\r\n }*/\r\n \r\n // The end state should be evaluated with respect to the perspective\r\n // of the max player. The max player is to be assumed the RED player.\r\n if(this.initialPlayer) { // Initial call was for the maxiziming player.\r\n if(winner == Team.RED) {\r\n return Double.POSITIVE_INFINITY;\r\n } else {\r\n return Double.NEGATIVE_INFINITY;\r\n }\r\n } else {\r\n if(winner == Team.BLUE) {\r\n return Double.NEGATIVE_INFINITY;\r\n } else {\r\n return Double.POSITIVE_INFINITY;\r\n }\r\n }\r\n }\r\n \r\n // Reached maximum depth.\r\n if(depth == 0) {\r\n // Calculate the heuristic value.\r\n //System.out.println(\"Heuristic Value: \" + this.evaluation.score(state));\r\n return this.evaluation.score(state);\r\n }\r\n \r\n double bestValue;\r\n MoveAction bestMove = null;\r\n if(maxPlayer) { // Maximizing player.\r\n bestValue = Double.NEGATIVE_INFINITY; // Worst case for maximizing player.\r\n List<MoveAction> moves = board.getMoves(Team.RED);\r\n // Sort the moves.\r\n \r\n for(MoveAction move : moves) {\r\n //System.out.println(\"APPLY\" + depth + \":::\" + move.toString());\r\n // Apply move.\r\n try {\r\n board.applyMove(move);\r\n } catch(IllegalStateException e) {\r\n System.out.println(\"Max Bad move: \" + move.toString());\r\n System.out.println(\"BoardState:\\n\" + board.transcript());\r\n // Forward e.\r\n throw e;\r\n }\r\n //System.out.println(\"MaxPlayer Applied move: \" + move.toString());\r\n \r\n // Recursive call.\r\n // TODO, probably do not need to create a new GameNode\r\n // In this case you can re-use the node object since the\r\n // best move is locally stored and only set onto the node object\r\n // after all depth first exploration has returned.\r\n GameNode next = new GameNode(state);\r\n \r\n // Recursive call with DFS implementation.\r\n double value = alphaBeta(next, depth - 1, alpha, beta, false);\r\n //System.out.println(\"MaxPlayer Depth: \" + depth + \", value: \" + value);\r\n \r\n //System.out.println(move.toString());\r\n //System.out.println(\"MaxPlayer value: \" + value);\r\n // Try to maximize the value over all nodes.\r\n \r\n if(value >= bestValue) {\r\n //System.out.println(value + \" > \" + bestValue);\r\n bestValue = value;\r\n bestMove = move;\r\n alpha = value;\r\n } else {\r\n //System.out.println(\"NOT \" + value + \" > \" + bestValue);\r\n }\r\n \r\n // Undo move. (Important to do this before the cutoff)\r\n //System.out.println(\"UNDO \" + depth + \":::\" + move.toString());\r\n board.undoMove(move);\r\n //System.out.println(\"MAX UNDO MOVE\");\r\n \r\n // Cutoff.\r\n // Should not be <=! TODO Why?\r\n if(beta < alpha) {\r\n this.cutoffs++;\r\n break;\r\n }\r\n }\r\n } else {\r\n // Minimizing player.\r\n bestValue = Double.POSITIVE_INFINITY; // Worst case for minimizing player.\r\n List<MoveAction> moves = board.getMoves(Team.BLUE);\r\n for(MoveAction move : moves) {\r\n //System.out.println(\"APPLY\" + depth + \":::\" + move.toString());\r\n // Apply move.\r\n try {\r\n board.applyMove(move);\r\n } catch(IllegalStateException e) {\r\n System.out.println(\"Min Bad move: \" + move.toString());\r\n System.out.println(\"BoardState:\\n\" + board.transcript());\r\n // Forward e.\r\n throw e;\r\n }\r\n //System.out.println(\"MinPlayer Applied move: \" + move.toString());\r\n \r\n GameNode next = new GameNode(state);\r\n \r\n // Recursive call with DFS implementation.\r\n double value = alphaBeta(next, depth - 1, alpha, beta, true);\r\n //System.out.println(\"MinPlayer Depth: \" + depth + \", value: \" + value);\r\n //System.out.println(move.toString());\r\n //System.out.println(\"MinPlayer value: \" + value);\r\n // Try to minimize the value over all nodes.\r\n\r\n if(bestValue >= value) {\r\n //System.out.println(bestValue + \" > \" + value);\r\n bestValue = value;\r\n bestMove = move;\r\n beta = value;\r\n } else {\r\n //System.out.println(\"NOT \" + bestValue + \" > \" + value);\r\n }\r\n \r\n // Undo move. (Important to do this before the cutoff.\r\n //System.out.println(\"UNDO \" + depth + \":::\" + move.toString());\r\n board.undoMove(move);\r\n //System.out.println(\"MIN UNDO MOVE\");\r\n \r\n // Cutoff. Current best value for the maximizing is better\r\n // than the best value for the minimizing player. Therefore the\r\n // maximizing player will never allow the minimizing player\r\n // to choose this move and so there is no reason in exploring\r\n // this branch.\r\n if(alpha > beta) {\r\n this.cutoffs++;\r\n break;\r\n }\r\n }\r\n }\r\n \r\n // Store the best move in the node.\r\n // TODO Actually only necessary at the initial call. Not useful\r\n // for lower depths.\r\n node.setBestMove(bestMove);\r\n //System.out.println(depth + \" bestValue = \" + bestValue);\r\n //System.out.println(\"Best move: \" + bestMove.toString());\r\n return bestValue;\r\n }", "title": "" }, { "docid": "8424c447987e2b8ebf3384a2b71eccb7", "score": "0.6345148", "text": "private int[] minimax(int depth, Piece player,BrainState bs,int alpha, int beta) {\n\t\t Move bestMove = new Move(100,100,Move.Direction.RIGHT);\n\t // Generate possible next moves in a List \n\t ArrayList<Move> nextMoves = bs.board.generateMoves(player);\n\t // myself is maximizing; while opp is minimizing\n\t Piece opp = (player == Piece.HSLIDER) ? Piece.VSLIDER : Piece.HSLIDER;\n\t int currentScore;\n\t \n\t \n\t if (nextMoves.isEmpty() || depth == 0) {\n\t // Game over or depth reached, evaluate score\n\t \t currentScore = ((int)BoardEvaluateAlgorithm.BEA(bs, bs.board.pastMoves, bs.board.PieceList)*1000);\n\t \t //another easy evaluation\n\t //currentScore = bs.board.BlockOpps(player)+bs.board.validMoves(player);\n\n\t return new int[] {currentScore, bestMove.i, bestMove.j,bestMove.d.ordinal()};\n\t\t \n\t } else {\n\t \t \n\t for (Move move : nextMoves) {\n\t // Try this move for the current \"player\"\n\n\t \tif(bs.board.canMove(move.i,move.j)){\n\t \t\tbs.board.update(move,true);\n\t \t}\n\t \t\n\t \t//System.out.println(bs.turn);\n\t \n\t if (player == bs.turn) { // my turn is maximizing player\n\t currentScore = minimax(depth - 1, opp, bs, alpha, beta)[0];\n\t if (currentScore > alpha) {\n\t alpha = currentScore;\n\t bestMove = move;\n\t }\n\t } else { // opp is minimizing player\n\t currentScore = minimax(depth - 1, opp,bs, alpha, beta)[0];\n\t if (currentScore < beta) {\n\t beta = currentScore;\n\t bestMove = move;\n\t }\n\t }\n\t \n\t // Undo move\n\t bs.board.undoMove(move,true);\n\t \n\t if (alpha >= beta) break;\n\t }\n\t return new int[] {(player == bs.turn) ? alpha : beta, bestMove.i,bestMove.j,bestMove.d.ordinal()};\n\t }\n\t \n\t }", "title": "" }, { "docid": "15f4af07c52347367721a37d4c5df186", "score": "0.6336618", "text": "public int alphabeta(Staten board ,int depth , int alpha, int beta, boolean maximizingplayer ) \r\n\t{\r\n\t\tArrayList<Staten> allmoves = board.Possible();\r\n\t\t//if depth=0 or it reaches the terminal node\r\n\t\tif(depth <= 0 || board.checkWin()!='N')\r\n\t\t{\r\n\t\t\tif(board.checkWin()=='X') {\r\n\t\t\treturn board.stateScore()-depth;}\r\n\t\t\telse if(board.checkWin()=='O') {\r\n\t\t\t\treturn -board.stateScore()+depth;\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\treturn board.stateScore();\r\n\t\t\t}\r\n\t\t}\t\t\r\n\t\tif(maximizingplayer)\r\n\t\t\t{\r\n\t\t\t\tfor(Staten s : allmoves)\r\n\t\t\t\t{\r\n\t\t\t\t\tint score = alphabeta(s,depth - 1, alpha , beta, false);\r\n\t\t\t\t\talpha = Math.max(score, alpha);\t\t\r\n\t\t\t\t\tif(alpha >= beta)\r\n\t\t\t\t\t{\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\treturn alpha;\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t{\r\n\t\t\t\tfor(Staten s : allmoves)\r\n\t\t\t\t{\r\n\t\t\t\t\tint score = alphabeta(s,depth - 1, alpha , beta, true);\r\n\t\t\t\t\tbeta = Math.min(score, beta);\t\t\r\n\t\t\t\t\tif(alpha >= beta)\r\n\t\t\t\t\t{\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\treturn beta;\r\n\t\t\t}\r\n\t\t\r\n\t}", "title": "" }, { "docid": "124fe4125f7a0583881b6aab197acc5c", "score": "0.6267766", "text": "public int alphaBetaMax(int lDepth, int playerTurn, int alpha, int beta) {\r\n\t\t\tMove maxMove = null;\r\n\t\t\tArrayList<Move> moves;\r\n\t\t\t\r\n\t\t\tswitch(lDepth){\r\n\t\t\tcase 8: l8++; break;\r\n\t\t\tcase 7: l7++; break;\r\n\t\t\tcase 6: l6++; break;\r\n\t\t\tcase 5: l5++; break;\r\n\t\t\tcase 4: l4++; break;\r\n\t\t\tcase 3: l3++; break;\r\n\t\t\tcase 2: l2++; break;\r\n\t\t\tcase 1: l1++; break;\r\n\t\t\t}\r\n\t\t\tmctr++;\r\n\t\t\tif(lDepth == 0){\r\n\t\t\t\tlctr++;\r\n\t\t\t\treturn evaluateConfiguration();\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//identify best move\r\n\t\t\tmoves = ListOfMoves.makeAMove(playerTurn, ChessGame.board); \r\n\t\t\tfor (Move move : moves) {\r\n\t\t\t\tint\trank = -1;\r\n\t\t\t\ttry {\r\n\t\t\t\t\tcge.DoMove(move, playerTurn);\r\n\t\t\t\t\tint tempTurn = (playerTurn ==1)? 2: 1;\r\n\t\t\t\t\trank = alphaBetaMin(lDepth -1, tempTurn, alpha, beta); //change score to rank***\r\n\t\t\t\t\tcge.rollBack(move, playerTurn);\r\n\t\t\t\t} catch (Exception e) {\r\n\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t\t}\r\n\t\t\t\tif(rank >= beta){\r\n\t\t\t\t\treturn beta;\r\n\t\t\t\t}\r\n\t\t\t\tif(rank > alpha){\r\n\t\t\t\t\tmaxMove = move;\r\n\t\t\t\t\talpha = rank;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tif(maxMove != null){\r\n\t\t\t\taiMove = maxMove;\r\n\t\t\t}\r\n\t\t\treturn alpha;\r\n\t\t}", "title": "" }, { "docid": "23329a7ed3972aee4f58dc5753d02dbb", "score": "0.6222206", "text": "int alphaBeta(DraughtsNode node, int alpha, int beta, int currentDepth, int maxDepth)\n throws AIStoppedException {\n if (node.getState().isWhiteToMove()) {\n return alphaBetaMax(node, alpha, beta, currentDepth, maxDepth);\n } else {\n return alphaBetaMin(node, alpha, beta, currentDepth, maxDepth);\n }\n }", "title": "" }, { "docid": "bf96e53d74c2f74b6074399d9f62a5af", "score": "0.61946535", "text": "public static PrincipalVariation alphaBeta(boolean allowNull, Search search, MyGameState g, int depth, int maximizingPlayer,\n double alpha, double beta, int currentDepth) {\n double originalAlpha = alpha;\n\n PrincipalVariation currPv = new PrincipalVariation(depth);\n if (currentSearch.stop) {\n return currPv;\n }\n nodesExamined++;\n g.analyze();\n if (g.gs != GameStatus.INGAME) {\n if (g.gs == GameStatus.DRAW) {\n currPv.score = 0;\n return currPv;\n } else if (g.gs == GameStatus.RED_WIN) {\n double diff = BoardRating.getBiggestSchwarm(g, GameColor.RED) - BoardRating.getBiggestSchwarm(g, GameColor.BLUE);\n currPv.score = maximizingPlayer * (30000 - g.pliesPlayed + diff / 100.0);\n return currPv;\n } else {\n double diff = BoardRating.getBiggestSchwarm(g, GameColor.BLUE) - BoardRating.getBiggestSchwarm(g, GameColor.RED);\n currPv.score = maximizingPlayer * (-30000 + g.pliesPlayed - diff / 100.0);\n return currPv;\n }\n }\n if (depth == 0 && g.move == GameColor.BLUE && BoardRating.getBiggestSchwarm(g, GameColor.BLUE) == g.blaueFische.popCount() - 1) {\n depth += 1;\n }\n if (depth == 0) {\n depth0Nodes++;\n if (g.pliesPlayed < 60 || true) {\n currPv.score = BoardRating.rating(g, AlphaBeta.brc) * maximizingPlayer;\n } else {\n currPv.score = quiescenseSearch(search, alpha, beta, g, maximizingPlayer);\n }\n return currPv;\n }\n PrincipalVariation bestPv = new PrincipalVariation(depth);\n GameMoveResultObject gmro = g.gmro;\n g.gmro = null;\n //Probe tablebase\n int moveOrderingIndex = 0;\n boolean pvmoveFound = false;\n if (depth >= 1) {\n CacheEntry ce = Search.cache[(int) (g.hash & Search.cacheMask)];\n if (ce != null && ce.hash == g.hash) {\n //Cache-hit\n\n if (ce.depth >= depth && !(g.pliesPlayed + depth >= 60 && ce.pliesPlayed + ce.depth < 60)) {\n if (!ce.betaNode && !ce.alphaNode) {\n currPv.stack.add(ce.gm);\n currPv.hashStack.add(ce.hash);\n currPv.score = ce.score;\n return currPv;\n } else {\n if (ce.betaNode) {\n if (ce.score > alpha) {\n alpha = ce.score;\n }\n } else if (ce.alphaNode) {\n if (ce.score < beta) {\n beta = ce.score;\n }\n }\n }\n if (alpha >= beta) {\n currPv.score = alpha;\n currPv.stack.add(ce.gm);\n currPv.hashStack.add(ce.hash);\n return currPv;\n }\n }\n //Move ordering\n //Swap move and state from pos 0\n moveOrderingIndex = 1;\n int index = -1;\n for (int i = 0; i < gmro.instances; i++) {\n if (gmro.moves[i].from == ce.gm.from && gmro.moves[i].to == ce.gm.to) {\n index = i;\n break;\n }\n }\n pvmoveFound = ce.pvNode;\n GameMove atPos0 = gmro.moves[0];\n MyGameState atPos0S = gmro.states[0];\n gmro.moves[0] = gmro.moves[index];\n gmro.states[0] = gmro.states[index];\n gmro.moves[index] = atPos0;\n gmro.states[index] = atPos0S;\n\n\n }\n }\n boolean not_in_check = g.move == GameColor.RED || GameLogic.getSchwarm(g, GameColor.RED) < g.roteFische.popCount();\n double rating = -10000000.0;\n if (!pvmoveFound && depth > 3 && currentDepth > 0 && depth + g.pliesPlayed < 60 && not_in_check) {\n double rat = alphaBeta(false, search, GameLogic.makeNullMove(g), depth - 3, -maximizingPlayer, -beta, -beta + 0.0001, currentDepth + 1).score * -1;\n if (rat >= beta) {\n bestPv.score = rat;\n return bestPv;\n }\n\n }\n\n /*if (depth >= 3 && moveOrderingIndex != 1) {\n PrincipalVariation followPv = alphaBeta(true, search, g, depth - 2, maximizingPlayer, alpha, beta, currentDepth);\n GameMove mv = followPv.stack.get(0);\n int index = -1;\n for (int i = 0; i < gmro.instances; i++) {\n if (gmro.moves[i].from == mv.from && gmro.moves[i].to == mv.to) {\n index = i;\n break;\n }\n }\n GameMove atPos0 = gmro.moves[0];\n MyGameState atPos0S = gmro.states[0];\n gmro.moves[0] = gmro.moves[index];\n gmro.states[0] = gmro.states[index];\n gmro.moves[index] = atPos0;\n gmro.states[index] = atPos0S;\n moveOrderingIndex = 1;\n\n }*/\n //Killer heuristic\n boolean found = false;\n for (int i = moveOrderingIndex; i < gmro.instances; i++) {\n GameMove move = gmro.moves[i];\n MyGameState nextGameState = gmro.states[i];\n if (search.killers[currentDepth][0] != null && search.killers[currentDepth][0].gm.equals(move)\n || search.killers[currentDepth][1] != null && search.killers[currentDepth][1].gm.equals(move) ||\n search.killers[currentDepth][2] != null && search.killers[currentDepth][2].gm.equals(move) ||\n currentDepth >= 2 && (search.killers[currentDepth - 2][0] != null && search.killers[currentDepth - 2][0].gm.equals(move)\n || search.killers[currentDepth - 2][1] != null && search.killers[currentDepth - 2][1].gm.equals(move)\n || search.killers[currentDepth - 2][2] != null && search.killers[currentDepth - 2][2].gm.equals(move))) {\n found = true;\n GameMove atPosIndex = gmro.moves[moveOrderingIndex];\n MyGameState atPosIndexState = gmro.states[moveOrderingIndex];\n gmro.moves[moveOrderingIndex] = move;\n gmro.states[moveOrderingIndex] = nextGameState;\n gmro.moves[i] = atPosIndex;\n gmro.states[i] = atPosIndexState;\n moveOrderingIndex++;\n }\n }\n if (found) {\n killerMovesFound++;\n } else {\n noKillerMovesFound++;\n }\n\n //Captures\n /*int captureMoveIndex = moveOrderingIndex;\n for (int i = moveOrderingIndex; i < gmro.instances; i++) {\n GameMove move = gmro.moves[i];\n MyGameState nextGameState = gmro.states[i];\n if (g.blaueFische.popCount() + g.roteFische.popCount() > nextGameState.blaueFische.popCount() + nextGameState.roteFische.popCount()) {\n //Found Capture move\n GameMove atPosIndex = gmro.moves[moveOrderingIndex];\n MyGameState atPosIndexState = gmro.states[moveOrderingIndex];\n gmro.moves[moveOrderingIndex] = move;\n gmro.states[moveOrderingIndex] = nextGameState;\n gmro.moves[i] = atPosIndex;\n gmro.states[i] = atPosIndexState;\n moveOrderingIndex++;\n }\n }*/\n\n //History heuristic\n double[] ratings = new double[gmro.instances];\n for (int i = 0; i < gmro.instances; i++) {\n GameMove mv = gmro.moves[i];\n ratings[i] = search.historyHeuristic[mv.from][mv.to] / (search.bfHeuristic[mv.from][mv.to] + 0.0);\n }\n //Sort array\n int n = gmro.instances;\n for (int i = moveOrderingIndex; i < n - 1; i++) {\n for (int j = moveOrderingIndex; j < n - 1 - i; j++) {\n if (ratings[j] < ratings[j + 1]) {\n //Swap\n double curr = ratings[j];\n ratings[j] = ratings[j + 1];\n ratings[j + 1] = curr;\n GameMove currM = gmro.moves[j];\n MyGameState currMgs = gmro.states[j];\n gmro.moves[j] = gmro.moves[j + 1];\n gmro.states[j] = gmro.states[j + 1];\n gmro.moves[j + 1] = currM;\n gmro.states[j + 1] = currMgs;\n }\n }\n }\n\n boolean futil_pruning = false && depth <= 2 && not_in_check && depth + g.pliesPlayed < 60;\n double futil_margin = 0;\n if (futil_pruning) {\n if (rating == -10000000.0) {\n rating = BoardRating.rating(g, AlphaBeta.brc) * maximizingPlayer;\n }\n futil_margin = rating + 1 * depth;\n }\n int index = -1;\n for (int i = 0; i < gmro.instances; i++) {\n\n currPv.stack.add(gmro.moves[i]);\n currPv.hashStack.add(g.hash);\n PrincipalVariation followingPv;\n boolean isTactical = isTacticalMove(gmro.moves[i]);\n if (futil_pruning && bestPv.score > -29000 && beta < 29000 && i >= moveOrderingIndex && !isTactical) {\n if (futil_margin <= alpha) {\n continue;\n } else {\n futil_pruning = false;\n }\n }\n if (lmr && depth >= 3 && i >= moveOrderingIndex && i >= gmro.instances / 2 && !isTactical) {\n followingPv = alphaBeta(true, search, gmro.states[i], depth - 2, -maximizingPlayer, -beta, -alpha, currentDepth + 1);\n double rat = followingPv.score * -1;\n if (rat >= alpha) {\n followingPv = alphaBeta(true, search, gmro.states[i], depth - 1, -maximizingPlayer, -beta, -alpha, currentDepth + 1);\n }\n } else if (depth <= 2 || !pvmoveFound || i == 0) {\n followingPv = alphaBeta(true, search, gmro.states[i], depth - 1, -maximizingPlayer, -beta, -alpha, currentDepth + 1);\n } else {\n followingPv = alphaBeta(true, search, gmro.states[i], depth - 1, -maximizingPlayer, -alpha - 0.0001, -alpha, currentDepth + 1);\n double rat = followingPv.score * -1;\n if (rat >= alpha && rat <= beta) {\n followingPv = alphaBeta(true, search, gmro.states[i], depth - 1, -maximizingPlayer, -beta, -alpha, currentDepth + 1);\n }\n }\n double rat = followingPv.score * -1;\n if (rat > bestPv.score) {\n bestPv = currPv.clone();\n bestPv.score = rat;\n bestPv.stack.addAll(followingPv.stack);\n bestPv.hashStack.addAll(followingPv.hashStack);\n }\n if (bestPv.score > alpha) {\n alpha = bestPv.score;\n index = i;\n }\n if (alpha >= beta) {\n //Place in killer heuristic\n if (search.killers[currentDepth][0] == null) {\n search.killers[currentDepth][0] = new KillerMove(gmro.moves[i]);\n } else if (search.killers[currentDepth][1] == null) {\n search.killers[currentDepth][1] = new KillerMove(gmro.moves[i]);\n } else if (search.killers[currentDepth][2] == null) {\n search.killers[currentDepth][2] = new KillerMove(gmro.moves[i]);\n } else {\n if (!(search.killers[currentDepth][0].gm != null && search.killers[currentDepth][0].gm.equals(gmro.moves[i])) ||\n search.killers[currentDepth][1].gm != null && search.killers[currentDepth][1].gm.equals(gmro.moves[i]) ||\n search.killers[currentDepth][2].gm != null && search.killers[currentDepth][2].gm.equals(gmro.moves[i])) {\n\n search.killers[currentDepth][search.lastKillerDeleted] = new KillerMove(gmro.moves[i]);\n search.lastKillerDeleted += 1;\n if (search.lastKillerDeleted == 3) {\n search.lastKillerDeleted = 0;\n }\n }\n }\n GameMove moveFound = gmro.moves[i];\n search.historyHeuristic[moveFound.from][moveFound.to] += depth;\n break;\n } else {\n GameMove moveFound = gmro.moves[i];\n search.bfHeuristic[moveFound.from][moveFound.to] += depth;\n }\n currPv.stack.remove(currPv.stack.size() - 1);\n currPv.hashStack.remove(currPv.hashStack.size() - 1);\n }\n if (false&&index != -1) {\n indexs[index] += 1;\n }\n //Make entry\n if (depth >= 1) {\n boolean betaNode = bestPv.score >= beta;\n boolean alphaNode = bestPv.score <= originalAlpha;\n\n bestPv.isBetaCutOff = betaNode;\n\n int cacheIndex = (int) (g.hash & Search.cacheMask);\n if (Search.cache[cacheIndex] == null) {\n if (bestPv.stack.size() == 0) {\n System.out.println(\"Something went wrong!\");\n System.out.println(\"Instances: \" + gmro.instances);\n System.out.println(g.pliesPlayed);\n }\n Search.cache[cacheIndex] = new CacheEntry(g.hash, bestPv.score, (byte) (g.pliesPlayed), (byte) depth, bestPv.stack.get(0), false, betaNode, alphaNode);\n } else {\n CacheEntry ce = Search.cache[cacheIndex];\n if (!ce.pvNode && ce.depth - (g.pliesPlayed - ce.pliesPlayed) <= depth) {\n if (bestPv.stack.size() == 0) {\n System.out.println(\"Something went wrong!\");\n System.out.println(\"Instances: \" + gmro.instances);\n System.out.println(g.pliesPlayed);\n }\n Search.cache[cacheIndex] = new CacheEntry(g.hash, bestPv.score, (byte) (g.pliesPlayed), (byte) depth, bestPv.stack.get(0), false, betaNode, alphaNode);\n }\n }\n }\n return bestPv;\n\n }", "title": "" }, { "docid": "1b41d0c78a18d1904e8d00cf20db1251", "score": "0.61771923", "text": "private static double alphaBeta2(Board root, int minOrMax, double parentValue, int depth, Move outMove)\n\t{\n\t\tfinal boolean fromOurselves = (minOrMax == 1);\n\n\t\tif(depth == 0 || root.isGameOver())\n\t\t\treturn root.evaluate(true);\n\n\t\tdouble optVal = minOrMax * Double.NEGATIVE_INFINITY;\n\t\tMove optOp = null;\n\n\t\tfor(Move op : root.getPossibleMoves(fromOurselves))\n\t\t{\n\t\t\tdouble val;\n\t\t\t{\n\t\t\t\tBoard newBoard = root.applyMoveToNewBoard(op, fromOurselves);\n\t\t\t\tval = alphaBeta2(newBoard, -minOrMax, optVal, depth - 1, null);\n\t\t\t}\n\t\t\tif(val * minOrMax > optVal * minOrMax)\n\t\t\t{\n\t\t\t\toptVal = val;\n\t\t\t\toptOp = op;\n\t\t\t\tif(optVal * minOrMax > parentValue * minOrMax)\n\t\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\n\t\tif(optOp != null && outMove != null)\n\t\t{\n\t\t\toutMove.i = optOp.i;\n\t\t\toutMove.j = optOp.j;\n\t\t}\n\t\treturn optVal;\n\t}", "title": "" }, { "docid": "79e99e7a8db9d3132f22704ad7db74b6", "score": "0.61667377", "text": "public int minimax(ChopsticksBoard board, int depth, boolean isP1, int alpha, int beta)\r\n\t{\r\n\t\t// evaluate given board position\r\n\t\tint evaluation = evaluateBoard(board, getPlayer());\r\n\t\r\n\t\t// return evaluation if a win, loss, or finalDepth has been reached\r\n\t\tif(evaluation == 1000 || evaluation == -1000 || depth == finalDepth)\r\n\t\t{\r\n\t\t\treturn evaluation;\r\n\t\t}\r\n\r\n\t\t// generate all possible moves from current board position\r\n\t\tArrayList<int[]> moveList = generateMoves(board, isP1);\r\n\t\tChopsticksBoard copyBoard;\t\t\r\n\r\n\t\t// if evaluating from computer player perspective\r\n\t\t// return value of best possible move for computer\r\n\t\tif(isP1 == getPlayer())\r\n\t\t{\r\n\t\t\tint maxValue = -1000;\r\n\t\t\tint i = 0;\r\n\t\t\tdo\r\n\t\t\t{\r\n\t\t\t\t// play the move onto a copy board and evaluate it\r\n\t\t\t\tcopyBoard = new ChopsticksBoard(board);\r\n\t\t\t\tplayMove(copyBoard, isP1, moveList.get(i));\r\n\t\t\t\t// check for new maxValue and alpha\r\n\t\t\t\tmaxValue = Math.max(maxValue, minimax(copyBoard, depth + 1, !isP1, alpha, beta));\r\n\t\t\t\talpha = Math.max(alpha, maxValue);\t\r\n\t\t\t\t\r\n\t\t\t\ti++;\r\n\t\t\t} while(i < moveList.size() && beta > alpha);\t// loop through all possible moves \r\n\t\t\t\t\t\t\t\t\t// stop if alpha >= beta \r\n\t\t\t\t\t\t\t\r\n\t\t\t\r\n\t\t\treturn maxValue;\r\n\t\t}\r\n\t\t// if evaluating from opponent perspective\r\n\t\t// return value of worst possible move for computer \r\n\t\telse\r\n\t\t{\r\n\t\t\tint minValue = 1000;\r\n\t\t\tint i = 0;\r\n\t\t\tdo\r\n\t\t\t{\r\n\t\t\t\t// play the move onto a copy board and evaluate it\r\n\t\t\t\tcopyBoard = new ChopsticksBoard(board);\r\n\t\t\t\tplayMove(copyBoard, isP1, moveList.get(i));\r\n\t\t\t\t// check for new minValue and beta\r\n\t\t\t\tminValue = Math.min(minValue, minimax(copyBoard, depth + 1, !isP1, alpha, beta));\r\n\t\t\t\tbeta = Math.min(beta, minValue);\r\n\r\n\t\t\t\ti++;\r\n\t\t\t} while(i < moveList.size() && beta > alpha);\t// loop through all possible moves \r\n\t\t\t\t\t\t\t\t\t// stop if alpha >= beta\r\n\t\r\n\t\t\treturn minValue;\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "fc550170aa1019fe4d1e5d8f585972e8", "score": "0.6165137", "text": "public Action searchMoves(BoardModel searchState, int depth, int parentAlpha, int parentBeta, byte currentPlayer) throws InterruptedException {\n\t\tAction bestAction = null;\n\t\tint alpha = parentAlpha;\n\t\tint beta = parentBeta;\n\t\tif (Thread.interrupted()) {\n\t\t\tthrow new InterruptedException();\n\t\t}\n\t\tbyte winner = searchState.winner();\n\t\t// Reached the depth limit, or the board is a winning state\n\t\t// Evaluate, return\n\t\tif (depth == currentDepth || winner != -1) {\n\t\t\tint score = BoardEvaluator.evaluate(searchState, player);\n\t\t\tbestAction = new Action(new Point(), score);\n\t\t}\n\t\t// for each possible move, recur\n\t\telse {\n\t\t\tif (searchState.hasMovesLeft()) {\n\t\t\t\tfor (Point move : findPossibleMoves(searchState)) {\n\t\t\t\t\tif (Thread.interrupted()) {\n\t\t\t\t\t\tthrow new InterruptedException();\n\t\t\t\t\t}\n\t\t\t\t\tif (move != null) {\n\t\t\t\t\t\tbyte otherPlayer;\n\t\t\t\t\t\tif (currentPlayer == 1) {\n\t\t\t\t\t\t\totherPlayer = 2;\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\totherPlayer = 1;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tAction searchAction;\n\t\t\t\t\t\t// MAX move. Finds the move with the largest evaluated\n\t\t\t\t\t\t// score\n\t\t\t\t\t\t// MAX moves set and pass alpha\n\t\t\t\t\t\tif (player == currentPlayer) {\n\t\t\t\t\t\t\tsearchAction = searchMoves(searchState.placePiece(move, currentPlayer), depth + 1, alpha, Integer.MAX_VALUE, otherPlayer);\n\t\t\t\t\t\t\tif (bestAction == null || searchAction.getValue() > bestAction.getValue()) {\n\t\t\t\t\t\t\t\tbestAction = new Action(move, searchAction.getValue());\n\t\t\t\t\t\t\t\talpha = searchAction.getValue();\n\t\t\t\t\t\t\t\tif (alpha >= beta) {\n\t\t\t\t\t\t\t\t\treturn bestAction;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\t// MIN move. Finds the move with the smallest evaluated\n\t\t\t\t\t\t// score\n\t\t\t\t\t\t// MIN moves set and pass beta\n\t\t\t\t\t\telse {\n\t\t\t\t\t\t\tsearchAction = searchMoves(searchState.placePiece(move, currentPlayer), depth + 1, Integer.MIN_VALUE, beta, otherPlayer);\n\t\t\t\t\t\t\tif (bestAction == null || searchAction.getValue() < bestAction.getValue()) {\n\t\t\t\t\t\t\t\tbestAction = new Action(move, searchAction.getValue());\n\t\t\t\t\t\t\t\tbeta = searchAction.getValue();\n\t\t\t\t\t\t\t\tif (alpha >= beta) {\n\t\t\t\t\t\t\t\t\treturn bestAction;\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\t// No possible moves\n\t\t\t// Evaluate, return\n\t\t\telse {\n\t\t\t\tint score = BoardEvaluator.evaluate(searchState, player);\n\t\t\t\treturn new Action(new Point(-1, -1), score);\n\t\t\t}\n\t\t}\n\t\treturn bestAction;\n\t}", "title": "" }, { "docid": "959b5fff426c8016ddb9b4cec4c9cd5c", "score": "0.6143836", "text": "private Best minimaxSearch(boolean side, int depth, int maxDepth, int alpha, int beta){\n Best best = new Best();\n Best reply;\n int score;\n\n DList legalMoveList = this.board.legalMoveList(this.getSideColor(side));\n score = this.board.evaluate(this.color);\n\n try{\n // initilize move to any legal move. \n if (!legalMoveList.isEmpty()) {\n best.setBestMove((Move)legalMoveList.front().item());\n }else{\n return best;\n } \n }catch(InvalidNodeException e){\n System.out.println(e);\n }\n\n // Base Case\n if(score == Board.WIN){\n best.setBestScore(score - depth);\n return best;\n }\n if(score == Board.LOSE){\n best.setBestScore(score + depth);\n return best;\n }\n if (depth == maxDepth){\n best.setBestScore(score);\n return best;\n }\n\n //Start minimax\n if (side == COMPUTER){\n best.setBestScore(alpha);\n }\n else{\n best.setBestScore(beta);\n }\n \n try{\n DListNode walker = (DListNode)legalMoveList.front();\n while (walker.isValidNode()){\n Move tryMove = (Move)walker.item();\n \n // Change the board\n this.board.setBoard(tryMove, this.getSideColor(side));\n \n if(tryMove.x1 == 5 && tryMove.y1 == 6)\n\n reply = new Best();\n // Recursive call\n reply = minimaxSearch(!side, depth + 1, maxDepth, alpha, beta);\n\n // Undo change\n if (tryMove.moveKind == Board.STEP){\n Move undoMove = new Move(tryMove.x2, tryMove.y2, tryMove.x1, tryMove.y1);\n this.board.setBoard(undoMove, this.getSideColor(side));\n }else if(tryMove.moveKind == Board.ADD){\n this.board.setBoard(tryMove, EMPTY);\n }\n\n // MAXIMUM MODE\n if (side == COMPUTER && reply.getBestScore() > best.getBestScore()){\n best.setBestMove((Move)walker.item());\n best.setBestScore(reply.getBestScore());\n alpha = reply.getBestScore();\n }\n // MINIMUM MODE\n else if (side == HUMAN && reply.getBestScore() < best.getBestScore()){\n best.setBestMove((Move)walker.item());\n best.setBestScore(reply.getBestScore());\n beta = reply.getBestScore();\n }\n if (alpha >= beta){\n return best;\n }\n walker = (DListNode)walker.next();\n }\n }\n catch(InvalidNodeException e){\n System.out.println(e);\n }\n return best;\n }", "title": "" }, { "docid": "276808ebc9fc62763e7b494e1e309404", "score": "0.6118486", "text": "private double recursiveMiniMaxAlphaBeta(TwoPlayerGameBoard currentProblem, int currentLevel, double alpha, double beta) {\n\t\t\n\t\t//we have searched as many levels down in the tree as possible, stop and static evaluate the node that we are currently on\n\t\tif (currentLevel == maxLevel || currentProblem.isDraw() || currentProblem.isComputerWinner() || currentProblem.isUserWinner()) {\n\t\t\treturn currentProblem.staticEvaluation();\n\t\t}\n\t\t\t\t\n\t\tTwoPlayerGameBoard child;\n\t\t\n\t\t//we are at a maximizing level\n\t\tif (currentLevel % 2 == 0) {\n\t\t\t\n\t\t\tdo {\n\t\t\t\tchild = currentProblem.nextChild();\n\t\t\t\talpha = Math.max(alpha, recursiveMiniMaxAlphaBeta(child, currentLevel + 1, alpha, beta));\n\t\t\t} while (currentProblem.hasMoreChildren() && alpha < beta); \n\t\t\t\n\t\t\treturn alpha;\n\t\t\t\n\t\t//we are at a minimizing level\n\t\t} else {\n\t\t\t\n\t\t\tdo {\n\t\t\t\tchild = currentProblem.nextChild();\n\t\t\t\tbeta = Math.min(beta, recursiveMiniMaxAlphaBeta(child, currentLevel + 1, alpha, beta));\n\t\t\t} while (currentProblem.hasMoreChildren() && alpha < beta);\n\t\t\t\n\t\t\treturn beta;\n\t\t}\n\t}", "title": "" }, { "docid": "6f9056d88f3a322e93e25269f4eea73b", "score": "0.6084606", "text": "public AlphaBetaMiniMaxAI(int depthLimit){\n\t\tthis.depthLimit = depthLimit;\n\t}", "title": "" }, { "docid": "e332e88bd2d4a7b913d82d8e36112bd6", "score": "0.6029237", "text": "Board alphaBetaSearch(Board b)\r\n\t{\r\n\t\t//player = b.player;\r\n\t\t//oppositePlayer = b.getOppositePlayer();\r\n\t\tint value = maxValue(b, -1000, 1000);\r\n\t\tBoard b1 = getActionBoard(value);\r\n\t\tcurrentDepth = 0;\r\n\t\tarrayList.clear();\r\n\t\treturn b1;\r\n\t}", "title": "" }, { "docid": "864421830b60792ecba923984c2b006a", "score": "0.6020688", "text": "public MinMaxAlgorithm(int maxDepth, boolean alphaBetaPruning, IAssessBoard iAssessBoard){\n this.maxDepth = maxDepth > 1 ? maxDepth : DEFAULT_MAX_DEPTH;\n this.alphaBetaPruning = alphaBetaPruning;\n this.iAssessBoard = iAssessBoard;\n nodesVisitedTotal = 0;\n }", "title": "" }, { "docid": "576c6f6010ecc99525a7f7f3ffa888c9", "score": "0.6006273", "text": "int minValue(Board b, int alpha, int beta)\r\n\t{\r\n\t\t\r\n\t\tif (deepEnoughAB(depth, currentDepth))\r\n\t\t{\r\n\r\n\t\t\tABData ac = new ABData();\r\n\t\t\t//change evaluation function here\r\n\t\t\tac.value = eval(b, player);\r\n\t\t\tac.boardPath = b;\r\n\t\t\tarrayList.add(ac);\r\n\t\t\t\r\n\t\t\treturn ac.value;\r\n\t}\r\n\tint v = 1000;\r\n\tint thisPlayer=player;\r\n\tArrayList<Board> succ = MoveGen(b, player);\r\n\tplayer=b.getOppositePlayer(); //swap the player\r\n\tb.player=player;\r\n\tif (succ.size() == 0)\r\n\t{\r\n\t\treturn -1;\r\n\t}\r\n\telse\r\n\t{\r\n\t\tcurrentDepth++;\r\n\t\t//numberofnodesgenerated += succ.size();\r\n\t\tNodesGenerated(succ.size(), thisPlayer);\r\n\t\tfor(int i = 0; i < succ.size(); i++)\r\n\t\t{\r\n\t\t\tif (v > maxValue(succ.get(i), alpha, beta))\r\n\t\t\t{\r\n\t\t\t\tv = maxValue(succ.get(i), alpha, beta);\r\n\t\t\t}\r\n\t\t\tif (v <= alpha)\r\n\t\t\t{\r\n\t\t\t\treturn v;\r\n\t\t\t}\r\n\t\t\tif (beta > v)\r\n\t\t\t{\r\n\t\t\t\tbeta = v;\r\n\t\t\t}\r\n\t\t}\r\n\treturn v;\r\n\t}\r\n\t}", "title": "" }, { "docid": "3570ccc46d44bfbe75de065cd494dd64", "score": "0.5976445", "text": "public int pruning(int player, int alpha, int beta, int depth) {\n if (this.board.gameWon() != 0) {\n //System.out.println(\"SCORE: \" + (-1 * depth));\n //this.board.printBoard();\n return -1 * (this.board.getGameState() + 1);\n }\n if ( depth >= this.maxDepth ) {\n return 0;\n }\n if ( this.board.getGameState() <= 0 ) return 0;\n for ( int move : this.board.getPossibleMoves() ) {\n this.board.doMove(move, player);\n int score = -1 * this.pruning(- player, - beta, - alpha, depth + 1);\n this.board.undoMove(move);\n if ( score > alpha ) {\n alpha = score;\n if ( alpha >= beta ) break;\n }\n }\n return alpha;\n }", "title": "" }, { "docid": "4f99d7d1018d31c7a349c3d09f848229", "score": "0.59604603", "text": "boolean doDepthLimited(ArrayList<String> initialState, int depth){\n\t\tif(depth >= 0) {\n\t\t\t\n\t\t\tif(initialState.equals(goalState)){\t\t\t\t\t\t\t\t\t\t\t\t\t//Checks if the state is goal state. If it is then prints the state\n\t\t\t\tSystem.out.println(\"Solution found\");\n\t\t\t\tSystem.out.println(initialState.subList(0, 4).toString().replace(\"[\", \"\").replace(\"]\", \"\").replace(\",\", \"\"));\n\t\t\t\tSystem.out.println(initialState.subList(4, 8).toString().replace(\"[\", \"\").replace(\"]\", \"\").replace(\",\", \"\"));\n\t\t\t\tSystem.out.println(initialState.subList(8, 12).toString().replace(\"[\", \"\").replace(\"]\", \"\").replace(\",\", \"\"));\n\t\t\t\tSystem.out.println(initialState.subList(12, 16).toString().replace(\"[\", \"\").replace(\"]\", \"\").replace(\",\", \"\") +\"\\n\");\n\t\t\t\tSystem.out.println(\"Number of Nodes Generated: \"+numberOfNodes);\n\t\t\t\treturn true;\n\t\t\t}\n\t\t\t\n\t\t\tfor(int i=0; i<4; i++){\n\t\t\t\tArrayList<String> newState = action.applyAction(initialState, i);\t\t\t\t//Actions are applied on to the initial state of the board\n\t\t\t\tif(newState != null){\n\t\t\t\t\tif(!stateHistory.containsKey(newState)){\n\t\t\t\t\t\tnumberOfNodes++;\n\t\t\t\t\t\tstateHistory.put(newState, initialState);\t\t\t\t\t\t\t\t//DLS is called recursively\n\t\t\t\t\t\tboolean b = doDepthLimited(newState, depth-1);\n\t\t\t\t\t\tif(b){\n\t\t\t\t\t\t\treturn true;\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\treturn false;\n\t}", "title": "" }, { "docid": "966e3b553ffd0c8b2bccc81c4d28fe00", "score": "0.5927908", "text": "private int search(int depth, int alpha, int beta, int ply, boolean isCheck) {\n if (depth <= 0) {\n // Descend into quiescent\n return quiescent(0, alpha, beta, ply, isCheck);\n }\n\n updateSearch(ply);\n\n // Abort conditions\n if (abort || ply == MAX_PLY) {\n return evaluation.evaluate(board);\n }\n\n // Check the repetition table and fifty move rule\n if (board.hasInsufficientMaterial() || board.isRepetition() || board.halfmoveClock >= 100) {\n return Evaluation.DRAW;\n }\n\n // Initialize\n int bestValue = -Evaluation.INFINITE;\n int searchedMoves = 0;\n\n MoveGenerator moveGenerator = MoveGenerator.getMoveGenerator(board, depth, ply, isCheck);\n int move;\n while ((move = moveGenerator.next()) != Move.NOMOVE) {\n int value = bestValue;\n if (board.makeMove(move)) {\n ++searchedMoves;\n boolean isCheckingMove = board.isCheck();\n\n int newDepth = depth - 1;\n if (isCheckingMove) {\n ++newDepth;\n }\n\n value = -search(newDepth, -beta, -alpha, ply + 1, isCheckingMove);\n }\n board.undoMove(move);\n\n if (abort) {\n return bestValue;\n }\n\n // Pruning\n if (value > bestValue) {\n bestValue = value;\n\n // Do we have a better value?\n if (value > alpha) {\n alpha = value;\n savePV(move, pv[ply + 1], pv[ply]);\n\n // Is the value higher than beta?\n if (value >= beta) {\n // Cut-off\n break;\n }\n }\n }\n }\n\n // If we cannot move, check for checkmate and stalemate.\n if (searchedMoves == 0) {\n if (isCheck) {\n // We have a check mate. This is bad for us, so return a -CHECKMATE.\n return -Evaluation.CHECKMATE + ply;\n } else {\n // We have a stale mate. Return the draw value.\n return Evaluation.DRAW;\n }\n }\n\n return bestValue;\n }", "title": "" }, { "docid": "7bcdff86b3e59b02ed4dad67c23619f9", "score": "0.58653295", "text": "private float getMinBlackScore(ChessModel originalModel, ChessMove whiteMove, float alpha, float beta, int currentSearchDepth) throws ChessSearchTimeoutException\n\t{\n\t\t// are we out of time?\n\t\tif (timer.isTimeUp()) {\n\t\t\tthrow new ChessSearchTimeoutException(String.format(\"Search timout at depth %d\", currentSearchDepth));\n\t\t}\n\t\t\n\t\t// we are evaluating this move against a clone of the model\n\t\tChessModel model = new ChessModel(originalModel);\n\n\t\t// apply white move to the cloned model\n\t\tmodel = moveLogic.applyMoveToModel(model, whiteMove);\n\n\t\t// is this a terminal (game ending) move for white OR are we at our search depth limit? \n\t\tfloat betaScore = evaluationLogic.evaluateModel(model);\n\t\tif ((currentSearchDepth > 0) && (!isTerminalState(betaScore))) { \n\t\t\t// reset the score, check mate flag, and continue our search...\n\t\t\tbetaScore = beta;\n\t\t\twhiteMove.setBlackInCheckMate(true);\n\n\t\t\t// score of white's move will be the best (lowest) scoring black counter move\n\t\t\talphacutoff:\n\t\t\tfor (int y=0; y < 8; y++) {\n\t\t\t\tfor (int x=0; x < 8; x++) {\n\t\t\t\t\tPiece currentPiece = model.getPieceAtIndex(x, y);\n\t\t\t\t\tif ((currentPiece != None) && (Black == currentPiece.getColor())) {\t\t\n\t\t\t\t\t\t// this is a possible counter move that we will evaluate\n\t\t\t\t\t\tPieceLogic logic = currentPiece.getLogic();\n\t\t\t\t\t\tLocation currentLocation = Location.get(x, y);\n\t\t\t\t\t\tSet<ChessMove> possibleMoves = logic.getPossibleMoves(model, currentLocation);\n\t\t\t\t\t\tfor (ChessMove currentMove : possibleMoves) {\n\t\t\t\t\t\t\t// evaluate this possible move\n\t\t\t\t\t\t\tfloat currentScore = getMaxWhiteScore(model, currentMove, alpha, betaScore, currentSearchDepth - 1);\n\n\t\t\t\t\t\t\t// update check and check mate flags\n\t\t\t\t\t\t\tif (currentScore <= WHITE_WIN_THRESHOLD) {\n\t\t\t\t\t\t\t\twhiteMove.setBlackInCheckMate(false);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t// alpha beta pruning check\n\t\t\t\t\t\t\tbetaScore = (currentScore < betaScore ? currentScore : betaScore);\n\t\t\t\t\t\t\tif (betaScore <= alpha) {\n\t\t\t\t\t\t\t\twhiteMove.setBlackInCheckMate(false); // we don't know for sure\n\t\t\t\t\t\t\t\tbreak alphacutoff;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t} // end for moves iteration\n\t\t\t\t\t} // end if there is a move-able piece \n\t\t\t\t} // end column iteration\n\t\t\t} // end row iteration\n\t\t} // end if we need to search deeper\n\t\t\t\t\t\t\t\n\t\t// undo the original white move to the model and return the min black score\n\t\tnodeCount = nodeCount + 1;\n\t\treturn betaScore;\t\t\n\t}", "title": "" }, { "docid": "3eb3c18751c23087939084e5976b0114", "score": "0.5845765", "text": "private int minmax(char[][] board, boolean isMax, char sign, int depth, int alpha, int beta) {\n int boardValue = checkForVictory(board);\n if (boardValue != GAME_NOT_OVER) {\n int depthCost = (isMax) ? depth : -depth;\n return boardValue + depthCost;\n }\n if (depth == MAX_DEPTH) {\n return evaluateBoard(board);\n }\n\n int gameValue;\n\n if (isMax) {\n gameValue = NEG_INF;\n\n for (int i = 0; i < N; i++) {\n for (int j = 0; j < N; j++) {\n if (board[i][j] == '.') {\n board[i][j] = sign;\n\n int currentGameValue = minmax(board, false, (sign == 'x') ? 'o' : 'x', depth + 1, alpha, beta);\n if (currentGameValue > gameValue) {\n gameValue = currentGameValue;\n }\n if (currentGameValue > alpha) {\n alpha = currentGameValue;\n }\n\n board[i][j] = '.';\n\n if (beta <= alpha) break; // alpha beta pruning\n }\n }\n }\n } else {\n gameValue = INF;\n\n for (int i = 0; i < N; i++) {\n for (int j = 0; j < N; j++) {\n if (board[i][j] == '.') {\n board[i][j] = sign;\n\n int currentGameValue = minmax(board, true, (sign == 'x') ? 'o' : 'x', depth + 1, alpha, beta);\n if (currentGameValue < gameValue) {\n gameValue = currentGameValue;\n }\n if (gameValue < beta) {\n beta = gameValue;\n }\n\n board[i][j] = '.';\n\n if (beta <= alpha) break; // alpha beta pruning\n }\n }\n }\n }\n return gameValue;\n }", "title": "" }, { "docid": "e5c82b28a3f322570773eaa9fdb1f00b", "score": "0.58304894", "text": "private int[] Max(int playersNumber, int currentPlayersNumber, int previousPocket, Board board,\n int remainingDepth, boolean repeatMove, boolean isInitial, Integer alpha, Integer beta){\n nodesVisitedThisMove++;\n nodesVisitedTotal++;\n ArrayList<Integer> availablePockets = board.getAvailableMovesForPlayer(currentPlayersNumber);\n Integer bestPath = null;\n int score = 0;\n\n // if yes then this node is a 'fake move' - it means it never takes place. other player moves again\n if(repeatMove){\n return Min(playersNumber, (currentPlayersNumber + 1)%2, previousPocket, board,\n remainingDepth - 1, false, alpha, beta);\n }\n else{\n if(availablePockets.size() == 0 || remainingDepth == 1){\n bestPath = previousPocket;\n score = assessBoard(playersNumber, board);\n }\n else{\n for(int i : availablePockets){\n Board clonedBoard = board.clone();\n boolean dontSwitchPlayer = clonedBoard.makeMove(currentPlayersNumber,\n i + currentPlayersNumber*board.getNumOfPocketsForPlayer() - 1);\n\n // if player can move again don't decrease remaining depth\n int[] childScore = Min(playersNumber, (currentPlayersNumber + 1)%2, i,\n clonedBoard, remainingDepth - (dontSwitchPlayer ? 0 : 1), dontSwitchPlayer,\n alpha, beta);\n\n if(bestPath == null || childScore[1] > score){\n bestPath = childScore[0];\n score = childScore[1];\n }\n if(alphaBetaPruning && beta != null && childScore[1] >= beta){\n break;\n }\n if(alphaBetaPruning && (alpha == null || childScore[1] > alpha)){\n alpha = childScore[1];\n }\n }\n }\n }\n\n //if it's not top node return path to itself not to its best child\n if(!isInitial){\n bestPath = previousPocket;\n }\n\n return new int[]{bestPath, score};\n }", "title": "" }, { "docid": "ab4d247efcd9f83fd2406004614e98fc", "score": "0.58147246", "text": "private int[] Min(int playersNumber, int currentPlayersNumber, int previousPocket, Board board,\n int remainingDepth, boolean repeatMove, Integer alpha, Integer beta){\n nodesVisitedThisMove++;\n nodesVisitedTotal++;\n ArrayList<Integer> availablePockets = board.getAvailableMovesForPlayer(currentPlayersNumber);\n Integer bestPath = null;\n int score = 0;\n\n if(repeatMove){\n return Max(playersNumber, (currentPlayersNumber + 1)%2, previousPocket, board,\n remainingDepth - 1, false, false, alpha, beta);\n }\n else{\n if(availablePockets.size() == 0 || remainingDepth == 1){\n score = assessBoard(playersNumber, board);\n }\n else{\n for(int i : availablePockets){\n Board clonedBoard = board.clone();\n boolean dontSwitchPlayer = clonedBoard.makeMove(currentPlayersNumber,\n i + currentPlayersNumber*board.getNumOfPocketsForPlayer() - 1);\n int[] childScore = Max(playersNumber, (currentPlayersNumber + 1)%2, i, clonedBoard,\n remainingDepth - (dontSwitchPlayer ? 0 : 1), dontSwitchPlayer, false,\n alpha, beta);\n\n if(bestPath == null || childScore[1] < score){\n bestPath = childScore[0];\n score = childScore[1];\n }\n if(alphaBetaPruning && alpha != null && childScore[1] <= alpha){\n break;\n }\n if(alphaBetaPruning && (beta == null || childScore[1] < beta)){\n beta = childScore[1];\n }\n }\n }\n }\n\n bestPath = previousPocket;\n\n return new int[]{bestPath, score};\n }", "title": "" }, { "docid": "f277f90d0a433f9a8253798a639ac1bd", "score": "0.57574654", "text": "public static long minimax(Field field, int depth, long alpha, long beta, int player) {\r\n if (depth == 0 || field.isDone()) {\r\n return field.evaluate(BotParser.mBotId) - field.evaluate(BotParser.mEnemyId);\r\n }\r\n\r\n long score;\r\n\r\n ArrayList<Move> moves = field.getAvailableMoves();\r\n int movesSize = moves.size();\r\n\r\n // compute depth\r\n if (movesSize > 7) {\r\n int newDepth;\r\n\r\n if (movesSize <= 10)\r\n newDepth = 5;\r\n\r\n else if (movesSize > 10 && movesSize <= 17)\r\n newDepth = 4;\r\n\r\n else if (movesSize > 17 && movesSize <= 46)\r\n newDepth = 3;\r\n\r\n else\r\n newDepth = 2;\r\n\r\n depth = Math.min(depth, newDepth);\r\n }\r\n\r\n // clone current field\r\n Field clone = Field.clone(field);\r\n\r\n // my turn\r\n if (player == BotParser.mBotId) {\r\n // start pessimistic\r\n score = Integer.MIN_VALUE;\r\n\r\n // for each available simulateMove\r\n for (Move m : moves) {\r\n\r\n // simulate current simulateMove m\r\n clone.simulateMove(m, BotParser.mBotId);\r\n\r\n // calculate this simulateMove's score\r\n long currentScore = minimax(clone, depth - 1, alpha, beta, BotParser.mEnemyId);\r\n\r\n // undo current simulateMove\r\n clone.undoMove(m, field);\r\n\r\n // update scores\r\n if (currentScore > score) {\r\n score = currentScore;\r\n alpha = score;\r\n\r\n // pruning\r\n if (alpha >= beta)\r\n return score;\r\n }\r\n }\r\n }\r\n\r\n // enemy's turn\r\n else {\r\n // start pessimistic\r\n score = Integer.MAX_VALUE;\r\n\r\n // for each available simulateMove\r\n for (Move m : moves) {\r\n\r\n // simulate current enemy's simulateMove\r\n clone.simulateMove(m, BotParser.mEnemyId);\r\n\r\n // calculate this simulateMove's score\r\n long currentScore = minimax(clone, depth - 1, alpha, beta, BotParser.mBotId);\r\n\r\n // undo current simulateMove\r\n clone.undoMove(m, field);\r\n\r\n // update scores\r\n if (currentScore < score) {\r\n score = currentScore;\r\n beta = score;\r\n\r\n // pruning\r\n if (alpha >= beta)\r\n return score;\r\n }\r\n }\r\n }\r\n\r\n return score;\r\n }", "title": "" }, { "docid": "74ada09312f059d92c1d7df2caf2680d", "score": "0.5751808", "text": "public boolean search() {\n\n\t\t// FILL THIS METHOD\n\n\t\t// explored list is a Boolean array that indicates if a state associated with a given position in the maze has already been explored. \n\t\tboolean[][] explored = new boolean[maze.getNoOfRows()][maze.getNoOfCols()];\n\t\t// ...\n\n\t\tPriorityQueue<StateFValuePair> frontier = new PriorityQueue<StateFValuePair>();\n\n\t\t// TODO initialize the root state and add\n\t\t// to frontier list \n\t\t// ...\n\t\tState startState = new State(maze.getPlayerSquare(), null, 0, 0);\n\t\tSquare goal = maze.getGoalSquare();\n\t\tStateFValuePair startPair = new StateFValuePair(startState, distance(startState.getSquare(), goal));\n\t\tfrontier.add(startPair);\n\t\t\n\t\twhile (!frontier.isEmpty()) {\n\t\t\t// TODO return true if a solution has been found\n\t\t\t// TODO maintain the cost, noOfNodesExpanded (a.k.a. noOfNodesExplored),\n\t\t\t// maxDepthSearched, maxSizeOfFrontier during\n\t\t\t// the search\n\t\t\t// TODO update the maze if a solution found\n\n\t\t\t// use frontier.poll() to extract the minimum stateFValuePair.\n\t\t\t// use frontier.add(...) to add stateFValue pairs\n\n\t\t\tStateFValuePair current = frontier.poll();\n\n\t\t\tState currentState = current.getState();\n\t\t\texplored[currentState.getX()][currentState.getY()] = true;\n\n\t\t\t// Maintain parameters\n\t\t\tnoOfNodesExpanded++;\n\t\t\tmaxDepthSearched = Math.max(maxDepthSearched, currentState.getDepth());\n\n\t\t\t// Goal test.\n\t\t\tif (currentState.isGoal(maze)) {\n\t\t\t\tcost = currentState.getGValue();\n\t\t\t\tchar[][] mazeMatrix = maze.getMazeMatrix();\n\t\t\t\tcurrentState = currentState.getParent();\n\t\t\t\twhile (currentState.getParent() != null) {\n\t\t\t\t\tmazeMatrix[currentState.getX()][currentState.getY()] = '.';\n\t\t\t\t\tcurrentState = currentState.getParent();\n\t\t\t\t}\n\n\t\t\t\treturn true;\n\t\t\t}\n\n\t\t\tArrayList<State> successors = currentState.getSuccessors(explored, maze);\n\t\t\tfor (int i = successors.size() - 1; i >= 0; --i) {\n\t\t\t\t// Check the elements in the queue.\n\t\t\t\tState next = successors.get(i);\n\t\t\t\tIterator<StateFValuePair> queueIt = frontier.iterator();\n\t\t\t\tboolean throwAway = false;\n\n\t\t\t\twhile (queueIt.hasNext()) {\n\t\t\t\t\tState queueElement = queueIt.next().getState();\n\t\t\t\t\tif (queueElement.getX() == next.getX() && queueElement.getY() == next.getY()) {\n\t\t\t\t\t\t// Current state is better, replace the original one.\t\t\t\t\t\t\n\t\t\t\t\t\tif (next.getGValue() < queueElement.getGValue()) {\n\t\t\t\t\t\t\tqueueIt.remove();\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse {\n\t\t\t\t\t\t\tthrowAway = true;\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tif (!throwAway) {\n\t\t\t\t\tfrontier.add(new StateFValuePair(next, next.getGValue() + distance(goal, next.getSquare())));\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tmaxSizeOfFrontier = Math.max(maxSizeOfFrontier, frontier.size());\n\t\t}\n\n\t\t// TODO return false if no solution\n\t\treturn false;\n\t}", "title": "" }, { "docid": "1b29f0c11c5428a70227b7ff2d52c990", "score": "0.5740478", "text": "int alphabeta(Turn t, GameState.Player p, int depth, int alpha, int beta,\r\n\t\t\tTurnContainer bestTurnContainer) {\r\n\r\n\t\tif (AI.timeIsUp()) {\r\n\t\t\treturn alpha;\r\n\t\t}\r\n\r\n\t\tif (depth == 0) {\r\n\t\t\tbestTurnContainer.t = t;\r\n\t\t\treturn t.eval(p);\r\n\t\t}\r\n\r\n\t\tLinkedList<Turn> children = t.possibleTurnsForPlayer(p);\r\n\t\tif (children.size() == 0) {\r\n\t\t\tbestTurnContainer.t = t;\r\n\t\t\treturn t.eval(p);\r\n\t\t}\r\n\r\n\t\tTurn bestTurn = null;\r\n\r\n\t\tint bestScore = Integer.MIN_VALUE;\r\n\t\tfor (Turn child : children) {\r\n\t\t\t// Do move\r\n\t\t\tTurn.doMoves(child.moves, p, working);\r\n\r\n\t\t\tint moveScore = -alphabeta(child, GameState.otherPlayer(p),\r\n\t\t\t\t\tdepth - 1, -beta, -alpha, bestTurnContainer);\r\n\r\n\t\t\t// Undo move\r\n\t\t\tTurn.undoMoves(child.moves, p, working);\r\n\r\n\t\t\tif (moveScore > bestScore) {\r\n\t\t\t\tbestScore = moveScore;\r\n\t\t\t\tbestTurn = bestTurnContainer.t;\r\n\t\t\t}\r\n\r\n\t\t\tif (bestScore > alpha) {\r\n\t\t\t\talpha = bestScore;\r\n\t\t\t}\r\n\r\n\t\t\tif (alpha >= beta) {\r\n\t\t\t\t// System.out.println(\"PRUNING T : \" + t + \" : \" + alpha + \" : \"\r\n\t\t\t\t// + beta);\r\n\r\n\t\t\t\t// Prune branch\r\n\t\t\t\treturn alpha;\r\n\t\t\t}\r\n\r\n\t\t}\r\n\r\n\t\tbestTurnContainer.t = bestTurn;\r\n\t\treturn bestScore;\r\n\t}", "title": "" }, { "docid": "14b5787c4bef85b70583edd4518f3d71", "score": "0.5680454", "text": "public B search(B startBoard, int maxDepth, long timeOut);", "title": "" }, { "docid": "3c8f34819dbbea81121cba9b76802fa6", "score": "0.5659221", "text": "public static Move alphaBeta(Board root, int depth)\n\t{\n\t\tMove move = new Move(-100, -100);\n\t\talphaBeta2(root, 1, Double.POSITIVE_INFINITY, depth, move);\n\t\tif(move.i != -100 && move.j != -100)\n\t\t\treturn move;\n\t\telse\n\t\t\treturn null;\n\t}", "title": "" }, { "docid": "ea2a33719fd901ab9a7c71cf42ee619a", "score": "0.56537485", "text": "private float getMaxWhiteScore(ChessModel originalModel, ChessMove blackMove, float alpha, float beta, int currentSearchDepth) throws ChessSearchTimeoutException \n\t{\n\t\t// are we out of time?\n\t\tif (timer.isTimeUp()) {\n\t\t\tthrow new ChessSearchTimeoutException(String.format(\"Search timout at depth %d\", currentSearchDepth));\n\t\t}\n\t\t\n\t\t// we are evaluating this move against a clone of the model\n\t\tChessModel model = new ChessModel(originalModel);\n\t\t\n\t\t// apply black move to the cloned model\n\t\tmodel = moveLogic.applyMoveToModel(model, blackMove);\n\t\t\n\t\t// is this a terminal (game ending) move for black OR are we at our search depth limit? \n\t\tfloat alphaScore = evaluationLogic.evaluateModel(model);\n\t\tif ((currentSearchDepth > 0) && (!isTerminalState(alphaScore))) { \n\t\t\t// reset the score, check mate flag, and continue our search...\n\t\t\talphaScore = alpha;\n\t\t\tblackMove.setWhiteInCheckMate(true);\n\n\t\t\t// score of black's move will be the best (highest) scoring white counter move\n\t\t\tbetacutoff:\n\t\t\tfor (int y=7; y >= 0; y--) {\n\t\t\t\tfor (int x=0; x < 8; x++) {\n\t\t\t\t\tPiece currentPiece = model.getPieceAtIndex(x, y);\n\t\t\t\t\tif ((currentPiece != None) && (White == currentPiece.getColor())) {\n\t\t\t\t\t\t// this is a possible counter move that we will evaluate\n\t\t\t\t\t\tPieceLogic logic = currentPiece.getLogic();\n\t\t\t\t\t\tLocation currentLocation = Location.get(x, y);\n\t\t\t\t\t\tSet<ChessMove> possibleMoves = logic.getPossibleMoves(model, currentLocation);\n\t\t\t\t\t\tfor (ChessMove currentMove : possibleMoves) {\n\t\t\t\t\t\t\t// evaluate this possible move\n\t\t\t\t\t\t\tfloat currentScore = getMinBlackScore(model, currentMove, alphaScore, beta, currentSearchDepth - 1);\n\n\t\t\t\t\t\t\t// update check mate flag\n\t\t\t\t\t\t\tif (currentScore >= BLACK_WIN_THRESHOLD) {\n\t\t\t\t\t\t\t\tblackMove.setWhiteInCheckMate(false);\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t// alpha beta pruning check\n\t\t\t\t\t\t\talphaScore = (currentScore > alphaScore ? currentScore : alphaScore);\n\t\t\t\t\t\t\tif (alphaScore >= beta) {\n\t\t\t\t\t\t\t\tblackMove.setWhiteInCheckMate(false); // we don't know for sure\n\t\t\t\t\t\t\t\tbreak betacutoff;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t} // end for moves iteration\n\t\t\t\t\t} // end if there is a move-able piece \n\t\t\t\t} // end column iteration\n\t\t\t} // end row iteration\n\t\t} // end if we need to search deeper\n\t\t\n\t\t// return the max white score\n\t\tnodeCount = nodeCount + 1;\n\t\treturn alphaScore;\n\t}", "title": "" }, { "docid": "1833bfbdb35aebb3655f221d2ae0eed8", "score": "0.5575808", "text": "boolean deepEnoughAB(int depth, int currentDepth)\r\n\t{\r\n\t\tif(depth == currentDepth)\r\n\t\t{\r\n\t\t\treturn true;\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\treturn false;\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "739f35433f4f156ff54961b88cdb83db", "score": "0.5546843", "text": "public int alphaBeta(int ply, int alpha, int beta) {\r\n int color = (turn & 1) ^ 1;\r\n if (hasWon(color)) {\r\n return INF;\r\n } else if (hasWon(color ^ 1)) {\r\n return -INF;\r\n }\r\n if (turn == 41 || ply == 0) {\r\n return 0;\r\n }\r\n int starta = alpha;\r\n long h = hash();\r\n int index = Transpositions.index(h);\r\n int flag, proof, bucket = -1;\r\n proof = Transpositions.proof(h);\r\n if (proof == Transpositions.getProof(index, 0)) {\r\n bucket = 0;\r\n } else if (proof == Transpositions.getProof(index, 1)) {\r\n bucket = 1;\r\n }\r\n if (bucket != -1) {\r\n flag = Transpositions.getFlag(index, bucket);\r\n if (flag != Transpositions.TT_EMPTY) {\r\n if (flag == Transpositions.TT_EXACT) {\r\n return Transpositions.getScore(index, bucket);\r\n } else if (flag == Transpositions.TT_UPPERBOUND) {\r\n beta = 0;\r\n if (alpha >= beta) {\r\n return Transpositions.getScore(index, bucket);\r\n }\r\n } else if (flag == Transpositions.TT_LOWERBOUND) {\r\n alpha = 0;\r\n if (alpha >= beta) {\r\n return Transpositions.getScore(index, bucket);\r\n }\r\n }\r\n }\r\n }\r\n //Als we winnende move hebben, return INF\r\n for (int i = 0; i != 7; ++i) {\r\n if (move(i, color)) {\r\n if (hasWon(color)) {\r\n unmove(i, color);\r\n return INF;\r\n }\r\n unmove(i, color);\r\n }\r\n }\r\n\r\n int forcedMove = 8;\r\n for (int i = 0; i != 7; ++i) {\r\n if (move(map[i], color ^ 1)) {\r\n if (hasWon(color ^ 1)) {\r\n if (forcedMove != 8) {\r\n unmove(map[i], color ^ 1);\r\n return -INF;\r\n }\r\n forcedMove = i;\r\n }\r\n unmove(map[i], color ^ 1);\r\n }\r\n\r\n }\r\n long oldABCount = ABcount++;\r\n int best = -INF - 100;\r\n int i = forcedMove;\r\n if (i == 8) {\r\n i = 0;\r\n }\r\n for (; i != 7 && i <= forcedMove; ++i) {\r\n if (!move(map[i], color)) {\r\n continue;\r\n }\r\n int s = -alphaBeta(ply - 1, -beta, -alpha);\r\n if (s >= best) {\r\n best = s;\r\n }\r\n alpha = Math.max(alpha, s);\r\n unmove(map[i], color);\r\n if (alpha >= beta) {\r\n break;\r\n }\r\n }\r\n flag = Transpositions.TT_EXACT;\r\n if (best <= starta) {\r\n flag = Transpositions.TT_UPPERBOUND;\r\n } else if (best >= beta) {\r\n flag = Transpositions.TT_LOWERBOUND;\r\n }\r\n Transpositions.saveTransposition(hash(), best, turn, flag, (ABcount - oldABCount));\r\n\r\n return best;\r\n }", "title": "" }, { "docid": "18d56ca05637a7b452f518782826fec5", "score": "0.55426276", "text": "double MinimaxAlg (Status curStatus, int depth)\n {\n double bestValue,v ;\n\n if ((depth == 0) || (!BoardIsNotFull(curStatus.getBoard())))\n {\n return ComputeCost(curStatus);\n }\n List<Status> optionalMoves = GenerateAllMoves(curStatus);\n GameLogic game = new GameLogic();\n if (curStatus.getPlayer() == 'B')\n {\n bestValue = Double.NEGATIVE_INFINITY;\n for(Status curChild : optionalMoves)\n {\n v = game.MinimaxAlg(curChild, depth-1);\n if (v >= bestValue) {\n bestValue = v;\n this.status = curChild;\n this.mem = depth;\n }\n\n }\n return bestValue;\n }\n // cur status is W\n else {\n bestValue = Double.POSITIVE_INFINITY;\n for(Status curChild : optionalMoves)\n {\n v = game.MinimaxAlg(curChild, depth-1);\n if (v <= bestValue) {\n bestValue = v;\n this.status = curChild;\n this.mem = depth;\n }\n }\n return bestValue;\n }\n }", "title": "" }, { "docid": "05dd68c16cecf66f1eb1a8b4f381650e", "score": "0.54555494", "text": "private EvaluatedMove miniMax(int color, int depth, double alpha, double beta){\n\t \n\t EvaluatedMove myMove = new EvaluatedMove(); \n\t EvaluatedMove reply; \n\t int oppositeColor;\n\t if (color == Board.WHITE){\n\t\toppositeColor = Board.BLACK;\n\t } else{\n\t\toppositeColor = Board.WHITE;\n\t }\n\t \n\t if (board.isNetworkComplete(this.color) || board.isNetworkComplete(colorOpponent()) || depth == 0) {\n\t\tEvaluatedMove e = new EvaluatedMove();\n\t\te.value = evaluateMove(board, depth);\n\t\treturn e;\n\t }\n\t\t\n\t if (color == this.color)\n\t {\n\t\tmyMove.value = alpha;\n\t }\n\t else\n\t {\n\t\tmyMove.value = beta;\n\t }\n\t \n\t DList allMoves = board.generateAllPossibleMoves(color);\n\t try {\n\t\t\tDListNode n = (DListNode) allMoves.front();\n\t\t\tfor (int i = 0; i < allMoves.length(); i++)\n\t\t\t{\n\t\t\t\tMove m = (Move) n.item();\n\t\t\t\tboard.makeMove(m, color);\n\t\t\t\treply = miniMax(oppositeColor, depth-1, alpha, beta);\n\t\t\t\tboard.undoMove(m, color);\n\n\t\t\t\tif ((color == this.color) && (reply.value > myMove.value))\n\t\t\t\t{\n\t\t\t\t\tmyMove.move = m;\n\t\t\t\t\tmyMove.value = reply.value;\n\t\t\t\t\talpha = reply.value;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\telse if ((color == colorOpponent()) && (reply.value < myMove.value))\n\t\t\t\t{\n\t\t\t\t\tmyMove.move = m;\n\t\t\t\t\tmyMove.value = reply.value;\n\t\t\t\t\tbeta = reply.value;\n\t\t\t\t}\n\t\t\t\tif (alpha >= beta)\n\t\t\t\t{\n\t\t\t\t\treturn myMove;\n\t\t\t\t}\n\t\t\t\tn = (DListNode) n.next();\n\t\t\t}\n\t }\n\t catch(InvalidNodeException e) {}\n\t return myMove;\n\t}", "title": "" }, { "docid": "354c50aec43a7d613267f7c39122a0b7", "score": "0.54553264", "text": "public Board iterativeDepthFirstSearchBestMove(){\r\n\t\ttimeOut = false;\r\n\t\tstartTime = System.currentTimeMillis();\r\n\t\tint i = 0;\r\n\t\t\r\n\t\t\r\n\t\twhile(System.currentTimeMillis() - startTime <= timeLimit){\r\n\t\t\t//System.out.println(\"TIME ELAPSED : \" + (System.currentTimeMillis() - startTime)/1000 + \" seconds\");\r\n\t\t\tcurrent_depth = initial_depth + i++;\r\n\t\t\t\r\n\t\t\tint v = Max_Value(n1, current_depth, Integer.MIN_VALUE, Integer.MAX_VALUE);\r\n\t\t\r\n\t\t\tif(timeOut==true || current_depth == 6){ \r\n\t\t\t\treturn bestCurrentBoard.board;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tbestCurrentBoard = utility(v);\r\n\t\t\t//TODO: DELETE THIS PART, FOR DEBUG ONLY!\r\n\t\t\t//bestCurrentBoard.board.printBoard2();\r\n\t\t\t//System.out.println(\"At current depth: \" + current_depth);\r\n\t\t}\r\n\t\treturn bestCurrentBoard.board;\r\n\t}", "title": "" }, { "docid": "5faffe916fc42839792be6cf3e39f522", "score": "0.5384812", "text": "public int get_next_move(GameState state, int depth, boolean maxPlayer) {\n\t\tint move = -1;\t\t\t// the best next move \n\t\tint alpha = -INFINITY;\t// initial value of alpha\n\t\tint beta = INFINITY;\t// initial value of beta\n\n\t\t// Getting successors of the given state \n\t\tArrayList<Integer> successors = generate_successors(state);\n\t\t// Check if depth is 0 or it is terminal state \n\t\tif (0 == depth || 0 == successors.size()) {\n\t\t\tstate.log();\n\t\t\tHelper.log_alphabeta(alpha, beta);\n\t\t\treturn move;\n\t\t}\n\t\t// call recursive alphabeta\n\t\talphabeta(state, depth, alpha, beta, maxPlayer);\n\t\treturn state.get_last_move();\n\t}", "title": "" }, { "docid": "e4fb5e0cdb230f908d015d0cf824db51", "score": "0.5323799", "text": "public static List<Point> startMinMax(Map<Point, Tile> board, int depth, PlayerType player){\n //create a deep copy of the currentboard to test out the simulated moves\n Map<Point,Tile> simulatedBoard= Board.copy(board);\n List<PositionsandScores> successorEvaluations =new ArrayList();\n //variable that will store the best initial point\n Point bestMove=null;\n //variable that will store the best destination point\n Point bestDest=null;\n \n //add the initial and destination points to an array list that will be returned at the end of minimax in order to carry out the move in the actual board\n List<Point> moveCoords = Arrays.asList(new Point[2]);\n \n //bestScore for the max player\n int bestValueMax= Integer.MIN_VALUE;\n \n //bestScore for the min player\n int bestValueMin= Integer.MAX_VALUE;\n \n //variable to store the result of the evaluation function\n int currentValue;\n //stop minimax when depth is 0 or game is over\n if (depth==0 || isGameOver(simulatedBoard)){\n return moveCoords;\n }\n \n \n for (Point p: simulatedBoard.keySet())\n {\n if(player==PlayerType.AI){\n \n if (simulatedBoard.get(p).getPiece()== Type.regWPiece || simulatedBoard.get(p).getPiece()== Type.kingWPiece){\n Map<String, Point> legalMoves= Move.getAvailableMoves(p, simulatedBoard);\n if(!legalMoves.isEmpty()){\n for (String s : legalMoves.keySet()){\n List <Boolean> legalandjump= Move.makeMove(p, legalMoves.get(s), simulatedBoard);\n \n System.out.println(\"minimax with ai player board at depth \" + depth);\n displayBoard(simulatedBoard);\n if (legalandjump.get(0)){\n currentValue= min(simulatedBoard, depth-1);\n \n if(currentValue>=bestValueMax){\n bestValueMax= currentValue;\n bestMove=p;\n bestDest=legalMoves.get(s);\n moveCoords.set(0, bestMove);\n moveCoords.set(1, bestDest);\n successorEvaluations.add(new PositionsandScores(bestValueMax, moveCoords));\n }\n }\n \n }\n }\n \n }\n }\n else if(player==PlayerType.human){\n if(simulatedBoard.get(p).getPiece()== Type.regBPiece || simulatedBoard.get(p).getPiece()== Type.kingBPiece){\n Map<String, Point> legalMoves= Move.getAvailableMoves(p, simulatedBoard);\n if(!legalMoves.isEmpty()){\n for (String s : legalMoves.keySet()){\n List<Boolean> legalandjump=Move.makeMove(p, legalMoves.get(s), simulatedBoard);\n System.out.println(\"minimax board with human player at depth \" + depth);\n displayBoard(simulatedBoard);\n if (legalandjump.get(0)){\n currentValue= max(simulatedBoard, depth-1);\n \n if(currentValue<=bestValueMin){\n bestValueMin=currentValue;\n bestMove=p;\n bestDest=legalMoves.get(s);\n moveCoords.set(0, bestMove);\n moveCoords.set(1, bestDest);\n successorEvaluations.add(new PositionsandScores(bestValueMax, moveCoords));\n }}\n \n }\n }\n \n }\n }\n }\n System.out.println(bestDest);\n return moveCoords;\n \n }", "title": "" }, { "docid": "58a4e87813692dd11a2b0207a01182a2", "score": "0.5302903", "text": "void lookForGoalState() {\n\t\t for(int depth = 0; depth < 1000; depth++) {\t\t\t\t\t\t\t\t\t\t\t//search; as mentioned in text\n\t\t\t System.out.println(\"Depth reached in Looking for goal = \" +depth);\n\t\t\t stateHistory.clear();\n\t\t\t if(doDepthLimited(initialState, depth)){\n\t\t\t\t return;\n\t\t\t }\n\t\t }\t\t \n\t }", "title": "" }, { "docid": "e09b2671b71f77d341622d20dc58f7c9", "score": "0.5301798", "text": "public static moveScore alphabeta2(String placement, char piece, char opiece, int depth, int a, int b, boolean maximising, boolean initialGreen) {\n if (depth==0) return new moveScore(\"\", getScore(placement, initialGreen)-getScore(placement, !initialGreen));\n if (maximising) {\n int bestScore = -100;\n String bestMove = \"c\";\n for (String move : validTiles(placement)) {\n char x = move.charAt(0);\n char y = move.charAt(1);\n for (char o='A'; o<='D'; o++) {\n if (isPlacementValid(placement+x+y+piece+o)) {\n moveScore ab = new moveScore(\"\" + x + y + piece + o, alphabeta2(placement + x + y + piece + o, opiece, piece, depth - 1, a, b, false, initialGreen).score);\n if (ab.score > bestScore) {\n bestScore = ab.score;\n bestMove = ab.move;\n }\n a = Math.max(a, bestScore);\n if (b <= a) break;\n }\n }\n\n }\n return new moveScore(bestMove, bestScore);\n }\n else {\n int bestScore = 1000;\n String bestMove = \"\";\n for (String move : validTiles(placement)) {\n char x = move.charAt(0);\n char y = move.charAt(1);\n for (char o='A'; o<='D'; o++) {\n if (isPlacementValid(placement+x+y+piece+o)) {\n moveScore ab = new moveScore(\"\" + x + y + piece + o, alphabeta2(placement + x + y + piece + o, opiece, piece, depth - 1, a, b, true, initialGreen).score);\n if (ab.score < bestScore) {\n bestScore = ab.score;\n bestMove = ab.move;\n }\n b = Math.min(b, bestScore);\n if (b <= a) break;\n }\n }\n }\n return new moveScore(bestMove, bestScore);\n }\n }", "title": "" }, { "docid": "56f5398bba48d6d0e4ea91028ae9c3e8", "score": "0.526075", "text": "public boolean search() {\n\t\t\t\tInfo info = new Info();\n\t\t\t\tinfo.makePQueue(new hComparator()); //making a priority queue with hComparator\n\t\t\t\tBoardNode node = initialNode;\n\t\t\t\tinfo.pQueue.add(node);\n\t\t\t\t\n\t\t\t\twhile(!(info.pQueue.isEmpty())) {\n\t\t\t\t\tnode = info.pQueue.poll();\n\t\t\t\t\tinfo.incTime();\n\t\t\t\t\tinfo.visited.put(node.hashCode(), node);\n\t\t\t\t\tif(node.isGaol()) {\n\t\t\t\t\t\tPathActions p = new PathActions(initialNode,node,info); // class that creates a path from goal to start Node if goal is reached.\n\t\t\t\t\t\tp.printPath(); // the path is then printed\n\t\t\t\t\t\treturn true;\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tSuccessor s = new Successor(); // Successor class created to provide next possible moves from current node\n\t\t\t\t\tList<BoardNode> list = s.successor(node); // list of potential children\n\t\t\t\t\t\n\t\t\t\t\tfor(BoardNode temp: list) {\n\t\t\t\t\t\tboolean ans = info.visited.containsKey(temp.hashCode()); //Uses temporary node's hashCode to check if it has been expanded or not.\n\t\t\t\t\t\tif(ans==false) { //if it hasn't been expanded then we can now check if there is a node in the Priority Queue with a higher Cost\n\t\t\t\t\t\t\tif(!(info.pQueue.contains(temp))){\n\t\t\t\t\t\t\tinfo.pQueue.add(temp);\n\t\t\t\t\t\t\tinfo.pQueueSize();\n\t\t\t\t\t\t\t}\t\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\treturn false;\n\t\t\t}", "title": "" }, { "docid": "2886b897b4a8a95001f1d3f32853894c", "score": "0.5246844", "text": "public boolean isDeep(int depth){\n \treturn depth > alphaHight();\n }", "title": "" }, { "docid": "120c8e1484d6d319ebfb8771d7d68791", "score": "0.52427983", "text": "public static Node getBestMove(Graph graph, Node source, Integer depth, Integer alpha, Integer beta, Boolean max) {\n return null;\n }", "title": "" }, { "docid": "0cf29674e889c8217190c0a35a2d275b", "score": "0.52287334", "text": "public boolean stepBFS()\n\t{\n\t\tLongSet newQueue = new LongHashSet();\n\t\t// We iterate over all states currently in the queue\n\t\tfor (LongCursor lc : queue)\n\t\t{\n\t\t\tlong state = lc.value;\n\t\t\tSet<Long> expand = tb.expand(state);\n\t\t\texpanded.add(state);\n\t\t\t// We consider all states that can be reached from the current state in one step\n\t\t\tfor (long newState : expand)\n\t\t\t{\n\t\t\t\t// If don't have a path to this state yet, it is new\n\t\t\t\tif (!pred.containsKey(newState))\n\t\t\t\t{\n\t\t\t\t\tpred.put(newState, state);\n\t\t\t\t\tnewQueue.add(newState);\n\t\t\t\t\t// If the new state has a better solution than we currently have, perform an update\n\t\t\t\t\tlong newScore = tb.computeScore(newState);\n\t\t\t\t\tif (newScore > bestScore)\n\t\t\t\t\t{\n\t\t\t\t\t\tbest = newState;\n\t\t\t\t\t\tbestScore = newScore;\n\t\t\t\t\t\tbestCount = 1;\n\t\t\t\t\t\tbestStates.clear();\n\t\t\t\t\t\tbestStates.add(newState);\n\t\t\t\t\t}\n\t\t\t\t\telse if (newScore == bestScore)\n\t\t\t\t\t{\n\t\t\t\t\t\tbestStates.add(newState);\n\t\t\t\t\t\tbestCount++;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tdepth++;\n\t\tqueue = newQueue;\n\t\tSystem.out.println(\"Queue size at depth \"+depth+\" : \"+queue.size());\n\t\treturn !newQueue.isEmpty();\n\t}", "title": "" }, { "docid": "60d53f3ed9361d5281ea953748cf86c0", "score": "0.5222025", "text": "private boolean endOfProbe(int depth, IBoard board) {\n if (isLeaf())\n expand(board);\n // Don't continue if there are no more moves available\n if (isTerminal()) return true;\n // Visited node\n if (stats.visits() > 0) return false;\n // Leaf, check if we went too far\n if (depth <= sigma) {\n //sigma = -1;\n retract = true;\n }\n return true;\n }", "title": "" }, { "docid": "659431ef6c9b4d9a4139426302ca6c81", "score": "0.51602435", "text": "public static Node[][] DepthFirstSearch (Node[][] board){\n\t\tComparator<Node> comparator = new NodeDepthComparator();\n PriorityQueue<Node> fringe = new PriorityQueue<Node>(1, comparator);\n fringe.add(start, end);\n\t\t\n\t\twhile(true){\n\t\t\t\n\t\t\tif(fringe.size() == 0){\n return null;//essentially an empty list - this is tested for and called failure\n }\n\t\t\t\n\t\t\t//Remove the next deepest node\n Node test = fringe.poll();\n //if goal test is satisfied, return solution\n if(test.isGoal(end)){//TODOTODOTODOTODOTODOTODOTODOTODOTODO\n //Solution found!\n //Return path to main method\n return test.getPath();\n }\n\t\t\t\n\t\t\t//If not, expand all options and add them to the fringe\n\t\t\t//foreach child node of the current state\n ArrayList<Node> children = test.allPossibleMoves(board);\n for(Node n : children){\n //insert the node into the fringe\n fringe.add(n);\n }\n \n\t\t\t\n\t\t}\n\t\t\n\t}", "title": "" }, { "docid": "2883a1a8a072296bb712a8eaaa5a73a7", "score": "0.5156596", "text": "public double miniMax(GameNode node, int depth, boolean maxPlayer) \r\n throws TimeoutException {\n this.exploredNodes++;\r\n \r\n // Algorithm must immediately terminate if the timeout is signalled.\r\n if(this.timeout) {\r\n throw new TimeoutException();\r\n }\r\n \r\n GameState state = node.getState();\r\n GameBoard board = state.getGameBoard();\r\n //System.out.println(\"BoardState at \" + depth);\r\n //System.out.println(board.transcript()); \r\n \r\n Team winner = board.isEndState();\r\n // If winner != null, means we reached an end state.\r\n if(winner != null) {\r\n //System.out.println(\"END STATE REACHED!\");\r\n //System.out.println(\"BoardState:\\n\" + board.transcript());\r\n // What score should we give to an end state?\r\n // TODO\r\n // This structure is wrong it should return the value of this end\r\n // state with respect to the current player, the player at the root\r\n // node, not at the current node via propagation of the maxPlayer\r\n // value.\r\n /**\r\n if(maxPlayer) {\r\n if(winner == Team.RED) {\r\n return Double.POSITIVE_INFINITY;\r\n } else {\r\n return Double.NEGATIVE_INFINITY;\r\n }\r\n } else {\r\n // Minimizing Player.\r\n if(winner == Team.BLUE) {\r\n return Double.NEGATIVE_INFINITY;\r\n } else {\r\n return Double.POSITIVE_INFINITY;\r\n }\r\n }*/\r\n \r\n // The end state should be evaluated with respect to the perspective\r\n // of the max player. The max player is to be assumed the RED player.\r\n if(this.initialPlayer) { // Initial call was for the maxiziming player.\r\n if(winner == Team.RED) {\r\n return Double.POSITIVE_INFINITY;\r\n } else {\r\n return Double.NEGATIVE_INFINITY;\r\n }\r\n } else {\r\n if(winner == Team.BLUE) {\r\n return Double.NEGATIVE_INFINITY;\r\n } else {\r\n return Double.POSITIVE_INFINITY;\r\n }\r\n }\r\n }\r\n \r\n // Reached maximum depth.\r\n if(depth == 0) {\r\n // Calculate the heuristic value.\r\n //System.out.println(\"Heuristic Value: \" + this.evaluation.score(state));\r\n return this.evaluation.score(state);\r\n }\r\n \r\n double bestValue;\r\n MoveAction bestMove = null;\r\n if(maxPlayer) { // Maximizing player.\r\n bestValue = Double.NEGATIVE_INFINITY; // Worst case for maximizing player.\r\n List<MoveAction> moves = board.getMoves(Team.RED);\r\n // Sort the moves.\r\n \r\n for(MoveAction move : moves) {\r\n // Apply move.\r\n board.applyMove(move);\r\n \r\n // Recursive call.\r\n // TODO, probably do not need to create a new GameNode\r\n GameNode next = new GameNode(state);\r\n \r\n // Recursive call with DFS implementation.\r\n double value = miniMax(next, depth - 1, false);\r\n //System.out.println(move.toString());\r\n //System.out.println(\"MaxPlayer value: \" + value);\r\n // Try to maximize the value over all nodes.\r\n if(value >= bestValue) {\r\n //System.out.println(value + \" > \" + bestValue);\r\n bestValue = value;\r\n bestMove = move;\r\n } else {\r\n //System.out.println(\"NOT \" + value + \" > \" + bestValue);\r\n }\r\n \r\n //System.out.println(\"UNDO MOVE\");\r\n \r\n // Undo move.\r\n board.undoMove(move);\r\n }\r\n } else {\r\n // Minimizing player.\r\n bestValue = Double.POSITIVE_INFINITY; // Worst case for minimizing player.\r\n List<MoveAction> moves = board.getMoves(Team.BLUE);\r\n for(MoveAction move : moves) {\r\n // Apply move.\r\n board.applyMove(move);\r\n \r\n GameNode next = new GameNode(state);\r\n \r\n // Recursive call with DFS implementation.\r\n double value = miniMax(next, depth - 1, true);\r\n //System.out.println(move.toString());\r\n //System.out.println(\"MinPlayer value: \" + value);\r\n // Try to minimize the value over all nodes.\r\n if(bestValue >= value) {\r\n //System.out.println(bestValue + \" > \" + value);\r\n bestValue = value;\r\n bestMove = move;\r\n } else {\r\n //System.out.println(\"NOT \" + bestValue + \" > \" + value);\r\n }\r\n \r\n //System.out.println(\"UNDO MOVE\");\r\n \r\n // Undo move.\r\n board.undoMove(move);\r\n }\r\n }\r\n \r\n // Store the best move in the node.\r\n // TODO Actually only necessary at the initial call. Not useful\r\n // for lower depths.\r\n node.setBestMove(bestMove);\r\n //System.out.println(depth + \" bestValue = \" + bestValue);\r\n //System.out.println(\"Best move: \" + bestMove.toString());\r\n return bestValue;\r\n }", "title": "" }, { "docid": "3fbe04d809b3a4591ee7d3272c45f0e4", "score": "0.5132022", "text": "boolean parseCurrentDepth() {\n\t\treturn currentDepth <= manager.getMaxDepth();\n\t}", "title": "" }, { "docid": "8645f2e93c00d7b0e600531e955e7e64", "score": "0.50745994", "text": "public void firstPlayer(MoveChannel<Move> c, int level, int alpha, int beta,\n\t\t\tboolean heuristic) {\n\t\tif(heuristic) {\n\t\t\tc.comment(board2 + \"\\nThe heuristic outcome is \" + optimalOutcome);\n\t\t}\n\t\telse {\n\t\t\tc.comment(board2 + \"\\nThe optimal outcome is \" + optimalOutcome);\n\t\t}\n\n\t\tif(isLeaf()) {\n\t\t\tif(board2.availableMoves().isEmpty()) {\n\t\t\t\tassert (optimalOutcome == board2.value());\n\t\t\t\tc.end(board2.value());\n\t\t\t}\n\t\t\telse if(heuristic) {\n\t\t\t\tboard2.tree(level, alpha, beta, heuristic).firstPlayer(c, level, alpha, beta, heuristic);\n\t\t\t}\n\t\t}\n\t\telse {\n\t\t\tEntry<Move, GameTree2<Move>> optimalEntry = null;\n\t\t\tCollection<Move> moves = children.keys();\n\t\t\tfor (Move child : moves) {\n\t\t\t\tif (optimalOutcome == children.get(child).get().optimalOutcome) {\n\t\t\t\t\toptimalEntry = new Entry<Move, GameTree2<Move>>(child, children.get(child).get());\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\tassert (optimalEntry != null);\n\t\t\tc.giveMove(optimalEntry.getKey());\n\t\t\toptimalEntry.getValue().secondPlayer(c, level, alpha, beta, heuristic);\n\t\t}\n\t}", "title": "" }, { "docid": "ad9f1a84fa7a31c73b16d6b88b4ece68", "score": "0.504015", "text": "public double miniMaxShort(GameNode node, int depth, boolean isMaxPlayer) throws TimeoutException {\n this.exploredNodes++;\r\n \r\n if(this.timeout) {\r\n throw new TimeoutException();\r\n }\r\n \r\n GameBoard board = node.getState().getGameBoard();\r\n // Did we reach an endstate.\r\n Team winner = board.isEndState();\r\n // If winner != null, means we reached an end state.\r\n if(winner != null) {\r\n System.out.println(\"END STATE REACHED\");\r\n // What score should we give to an end state?\r\n if(isMaxPlayer) {\r\n if(winner == Team.RED) {\r\n return Double.POSITIVE_INFINITY;\r\n } else {\r\n return Double.NEGATIVE_INFINITY;\r\n }\r\n } else {\r\n // Minimizing Player.\r\n if(winner == Team.BLUE) {\r\n return Double.NEGATIVE_INFINITY;\r\n } else {\r\n return Double.POSITIVE_INFINITY;\r\n }\r\n }\r\n } \r\n \r\n // Reached maximum search depth.\r\n // What happens if we reach 0, while it is still an end state? Should\r\n // we first check for endstate?\r\n // With what board dimensinos can we utilize exhaustive search.\r\n if(depth == 0) {\r\n return this.evaluation.score(node.getState());\r\n }\r\n \r\n double bestValue = Double.POSITIVE_INFINITY; // Default for the minimzing player.\r\n MoveAction bestMove = null;\r\n if(isMaxPlayer) {\r\n bestValue = Double.NEGATIVE_INFINITY;\r\n }\r\n \r\n List<MoveAction> moves;\r\n if(isMaxPlayer) {\r\n moves = board.getMoves(Team.RED);\r\n } else {\r\n moves = board.getMoves(Team.BLUE);\r\n }\r\n \r\n // Apply all the moves in DFS fashion.\r\n for(MoveAction move : moves) {\r\n // Apply move.\r\n board.applyMove(move);\r\n\r\n // Recursive call.\r\n //GameNode next = new GameNode(state);\r\n // Only the board is modified and the change is transparent to\r\n // the node object, so we can re-use the same node object.\r\n // Beware that setBestMove at each treenode now modifies the same\r\n // node object, this is fine since the last setBestMove call is\r\n // invoked at the root node and thus gives us the best next move.\r\n double value = miniMax(node, depth - 1, !isMaxPlayer);\r\n if(isMaxPlayer) {\r\n if(value > bestValue) {\r\n bestValue = value;\r\n bestMove = move;\r\n }\r\n } else {\r\n if(bestValue > value) {\r\n bestValue = value;\r\n bestMove = move;\r\n }\r\n }\r\n // Undo move.\r\n board.undoMove(move);\r\n }\r\n \r\n // Store best move in the node.\r\n node.setBestMove(bestMove);\r\n return bestValue;\r\n }", "title": "" }, { "docid": "832175e0d5f9a01d3beddaa1183de224", "score": "0.4970566", "text": "private static void test1(){\n\n Board board = new Board();\n GameTree gameTree = new GameTree(DEPTH);\n Minimax minimax = new Minimax(DEPTH, board);\n Node<Board> root = gameTree.createTree();\n\n System.out.println(\"value\" + minimax.minimaxAlg(root, board.getCurrentPlayer()));\n }", "title": "" }, { "docid": "1afc6ab123e28ef9d471525ff88ca707", "score": "0.49384043", "text": "public static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint my_position = sc.nextInt();\n\t\tint his_position = sc.nextInt();\n\t\tif(my_position==his_position) {\n\n\t\t\tSystem.out.println(0);\n\n\t\t\tSystem.exit(0);\n\n\t\t}\n\t\tint[] visit = new int[200001];\n\t\tBFS(my_position,his_position ,visit);\n\t}", "title": "" }, { "docid": "1ceda9529fd0ce0e2a07cf1541e86164", "score": "0.49303365", "text": "private double evaluateMove(Board b, int depth) {\n\n\t\tint playerScore = 0;\n\t\tint opponentScore = 0;\n\n\t\tif (b.isNetworkComplete(colorOpponent())) {\n\t\t\treturn -1000 - depth;\n\t\t} else if (b.isNetworkComplete(color)) {\n\t\t\treturn 1000 + depth;\n\t\t}\n\t\t\n\t\tfor (int i = 0; i < Board.WIDTH; i++) {\n\t\t\tfor (int j = 0; j < Board.HEIGHT; j++) {\n\t\t\t\tif (board.getPiece(i, j) == color) {\n\t\t\t\t\tplayerScore += board.getAllConnections(color, new Coordinate(i, j)).length();\n\t\t\t\t} else if (board.getPiece(i, j) == colorOpponent()) {\n\t\t\t\t\topponentScore += board.getAllConnections(colorOpponent(),new Coordinate(i, j)).length();\n\t\t\t\t}\n\t\t\t\tif (board.getPiece(i, j) == color && board.isInGoal(new Coordinate(i, j))) {\n\t\t\t\t\tplayerScore += 1;\n\t\t\t\t} else if (board.getPiece(i, j) == colorOpponent() && board.isInGoal(new Coordinate(i, j))) {\n\t\t\t\t\topponentScore += 1;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn playerScore - opponentScore;\n\t}", "title": "" }, { "docid": "6279801a8383ec94e85114be91c59e76", "score": "0.49138236", "text": "@Override\r\n\tpublic double min_value(GameState s, int depthLimit)\r\n\t{\r\n\t\tif (this.isTerminalState(s)==true){\r\n\t\t\ts.leaf = true;\r\n\t\t\ts.bestMove = -1;\r\n\t\t\treturn 1;\r\n\t\t}\r\n\t\t\r\n\t\tif (depthLimit == 0){\r\n\t\t\ts.leaf = false;\r\n\t\t\ts.bestMove = -1;\r\n\t\t\treturn 0 - this.stateEvaluator(s);\r\n\t\t}\r\n\t\telse {\r\n\t\t\tint nextDepthLimit;\r\n\t\t\tif (depthLimit == -1) {\r\n\t\t\t\t//Depth limit is -1. Try to call recursively until terminal case\r\n\t\t\t\tnextDepthLimit = -1;\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\t//depth limit is a positive number. Try to calculate depth-1\r\n\t\t\t\tnextDepthLimit = depthLimit - 1;\r\n\t\t\t}\r\n\r\n\t\t\tdouble beta = 1;\r\n\t\t\tArrayList<Integer> suc = this.generateSuccessors(s.lastMove, s.takenList);\r\n\t\t\tint b;\r\n\t\t\tint[] newTaken;\r\n\t\t\tfor (int i = 0; i < suc.size(); i++){\r\n\t\t\t\tnewTaken = s.takenList.clone();\r\n\t\t\t\tb = suc.get(i);\r\n\t\t\t\tnewTaken[b]=1;\r\n\t\t\t\tGameState h = new GameState(newTaken, b);\r\n\t\t\t\tdouble value = max_value(h, nextDepthLimit);\r\n\t\t\t\tint compare = Double.compare(beta, value);\r\n\t\t\t\t\r\n\t\t\t\tif (compare >= 0) {\r\n\t\t\t\t\tbeta = value;\r\n\t\t\t\t\ts.leaf = false;\r\n\t\t\t\t\ts.bestMove = b;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\treturn beta;\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "375d8780e5aa87d755cf6edc52bc23f1", "score": "0.4898582", "text": "public boolean search()\n {\n openList.clear();\n openList.add(start);\n search1Mode = 1;\n \n System.out.println(\"\\nStart:\");\n start.printNode();\n System.out.println(\"\\nGoal:\");\n goal.printNode();\n \n while (!openList.isEmpty()) {\n if(search1()){\n search1Mode = 0;\n return true;\n } \n }\n search1Mode = 0;\n /* Search failed */\n System.out.println(\"\\nGoal cannot be reached from the given start node.\\n\");\n return true;\n }", "title": "" }, { "docid": "786ab5b9034841cb18a2f0425bdd7dce", "score": "0.48926133", "text": "boolean getReachMaxLevel();", "title": "" }, { "docid": "d447147016c962a9849f8f7fea5fd686", "score": "0.48894134", "text": "public GamePlay min(State board, int depth) { //MIN plays 'X' (user)\n Random r = new Random();\n // If MIN is called on a state that is terminal or after a maximum depth is reached, then a heuristic is calculated on the state and the move returned.\n if((board.checkGameOver()) || (depth == maxDepth)){\n GamePlay baseMove = new GamePlay();\n baseMove = baseMove.possibleMove(board.lastMove.row, board.lastMove.col, board.utilityFunction());\n return baseMove;\n }else{\n //The children-moves of the state are calculated (expansion)\n LinkedList<State> children = new LinkedList<State>(board.getChildren(State.X));\n GamePlay minMove = new GamePlay();\n minMove = minMove.moveToCompare(Integer.MAX_VALUE);\n for (int i =0; i < children.size();i++) {\n State child = children.get(i);\n //And for each child max is called, on a lower depth\n GamePlay move = max(child, depth + 1);\n //The child-move with the lowest value is selected and returned by max\n if(move.getValue() <= minMove.getValue()) {\n if ((move.getValue() == minMove.getValue())) {\n //If the heuristic has the same value then we randomly choose one of the two moves\n if (r.nextInt(2) == 0) { //If 0, we rewrite the maxMove. Else, the maxMove is the same\n minMove.setRow(child.lastMove.row);\n minMove.setCol(child.lastMove.col);\n minMove.setValue(move.getValue());\n }\n }\n else {\n minMove.setRow(child.lastMove.row);\n minMove.setCol(child.lastMove.col);\n minMove.setValue(move.getValue());\n }\n }\n }\n return minMove;\n }\n }", "title": "" }, { "docid": "ad493057271fd1e72cc9d0c2f8fa5c56", "score": "0.48724967", "text": "public Object call() {\n\t\t\twhile(!queue.isEmpty()){\n\t\t\t\t//for (int i = 0; i < 1; i++) {\n\t\t\t\t/* if (queue.isEmpty()) {\nbreak;\n}*/\n\t\t\t\tinitial current = null;\n\t\t\t\tcurrent = queue.poll();\n\t\t\t\tif (current == null) {\n\t\t\t\t//\tSystem.out.println(\"Error: an exception occured, exiting.\"+storage.size());\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\tcurrent.unpack();\n\n\t\t\t\t//current.printMaze();\n\t\t\t\t//System.out.println(\"testing.current.exitcheck\");\n\t\t\t\tboolean testing = current.checkExit(0);\n\t\t\t\t//System.out.println(\"testing.current.exitcheck complete\");\n\t\t\t\t//System.out.println(\"finished checking e)\n\t\t\t\tif (testing == false) {\n\t\t\t\t\t//System.out.println(\"no solution\");\n\t\t\t\t\t//TODO we want to add in the bad ones to compare, fix the compare function for expected results!\n\t\t\t\t\tcurrent.mazeValue = 0;\n\t\t\t\t\tstorage.add(current);\n\t\t\t\t} else {\n\t\t\t\t\tif(search==0)\n\t\t\t\t\t{\n\t\t\t\t\t\t//System.out.println(\"it starts shortSearch\");\n\t\t\t\t\t\tnode results=current.shortSearch(search);\n\t\t\t\t\t\t//System.out.println(\"end shortSearch\");\n\t\t\t\t\t\tcurrent.mazeValue=results.pathLength;\n\t\t\t\t\t}\n\t\t\t\t\telse if(search==1)\n\t\t\t\t\t{\n\t\t\t\t\t\t//TODO do a safe checkpoint search\n\t\t\t\t\t\t//current.printMaze();\n\t\t\t\t\t\tif(current.maze[current.x-current.x/3][current.y/3]==1)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tcurrent.mazeValue=0;\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if(current.maze[current.x/3][current.y-current.y/3]==1)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tcurrent.mazeValue=0;\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\tnode resultsA= current.checkPointSearch(current.x-current.x/3, current.y/3);\n\t\t\t\t\t\t\t//System.out.println(resultsA.pathLength+\" \"+(x-x/3)+\" \"+(y/3));\n\n\t\t\t\t\t\t\tnode resultsB= current.checkPointSearch(current.x/3, current.y-current.y/3);\n\t\t\t\t\t\t\t//System.out.println(resultsB.pathLength+\" \"+(x/3)+\" \"+(y-y/3));\n\t\t\t\t\t\t\tcurrent.mazeValue=resultsA.earlistNodeDist(resultsB);\n\t\t\t\t\t\t}\n\n\t\t\t\t\t}\n\t\t\t\t\tstorage.add(current);\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn seq;\n\t\t}", "title": "" }, { "docid": "ebd88e8121bbc9497a2f599e96f70f58", "score": "0.48406464", "text": "private double minSearch(int[][] state, double topval, double botval, int depth) {\n double val;\n int i, me = -1;\n if(depth == this.maxDepth) {\n return carloDeepSearch(state, depth, me);\n }\n ArrayList<Integer> validMoves = getValidMoves(this.round+depth, state, me);\n if(validMoves.size() < 1) {\n // System.out.println(\"no moves\");\n return getValue(state, this.round+depth);\n }\n // System.out.println(\"; moves: \" + validMoves.size());\n val = MaxVal;\n for(i = 0; i < validMoves.size(); i++) {\n val = Math.min( val,\n maxSearch(\n updateBoard(state, validMoves.get(i)/8,\n validMoves.get(i)%8, me),\n topval, botval, depth+1\n )\n );\n if(val <= topval) {\n // System.out.println(\"; pruning\");\n return val;\n }\n botval = Math.min(botval, val);\n }\n // System.out.println(\"; no pruning\");\n return val;\n }", "title": "" }, { "docid": "18efbab50698a662eff6cb7e8d3639ec", "score": "0.48306695", "text": "public IterativeMazeSearch(){}", "title": "" }, { "docid": "6a400758c70a91bfb1d0786f5953f063", "score": "0.48249793", "text": "private void exp(Node n, int depth) {\n\t\tif (n.board.isGameOver() || depth == max_depth) {\n\t\t\t// calculate heuristic at bottom\n\t\t\tn.value = n.board.heuristic();\n\t\t\treturn;\n\t\t}\n\t\t\n\t\t// expand max node\n\t\tif (n instanceof Max) {\n\t\t\tArrayList<Chance> chanceNodes = new ArrayList<>();\n\t\t\t\n\t\t\t// for each dir\n\t\t\tfor (int dir = Board.LEFT; dir <= Board.DOWN; dir++) {\n\t\t\t\t// create board copy\n\t\t\t\tBoard dir_succ = new Board(n.board);\n\n\t\t\t\t// if move is legal\n\t\t\t\tif (dir_succ.isLegalMove(dir)) {\n\t\t\t\t\tdir_succ.performAction(dir, false);\n\t\t\t\t\tdir_succ.checkGameOver();\n\t\t\t\t} // move dir\n\t\t\t\telse continue; // try next dir if illegal\n\t\t\t\t\n\t\t\t\t// create a new chance node for this dir\n\t\t\t\tChance chance_c = new Chance();\n\t\t\t\t// assign the successor board\n\t\t\t\tchance_c.board = dir_succ;\n\t\t\t\t\n\t\t\t\tchance_c.dir = (byte)dir;\n\t\t\t\t\n\t\t\t\tchanceNodes.add(chance_c);\n\t\t\t\t\n\t\t\t\texp(chance_c, depth + 1);\n\t\t\t}\n\t\t\t\n\t\t\tif (!chanceNodes.isEmpty()) {\n\t\t\t\tdouble bestValue = chanceNodes.get(0).value;\n\t\t\t\tn.dir = chanceNodes.get(0).dir;\n\t\t\t\t\n\t\t\t\tfor (int i = 1; i < chanceNodes.size(); i++) {\n\t\t\t\t\tdouble testValue = chanceNodes.get(i).value;\n\t\t\t\t\tif (testValue > bestValue) {\n\t\t\t\t\t\tbestValue = testValue;\n\t\t\t\t\t\tn.dir = chanceNodes.get(i).dir;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tn.value = bestValue;\n\t\t\t}\n\t\t\telse {\n\t\t\t\tn.value = n.board.heuristic();\n\t\t\t}\n\t\t\t\n\t\t}\n\t\t\n\t\t// expand chance node\n\t\telse if (n instanceof Chance) {\n\t\t\tlong boardData = n.board.getBoardData();\n\t\t\tArrayList<Max> maxNodes = new ArrayList<>();\n\t\t\t\n\t\t\t// iterate over all squares\n\t\t\tfor (int y = 0; y < Board.SIZE; y++) {\n\t\t\t\tfor (int x = 0; x < Board.SIZE; x++) {\n\t\t\t\t\t// if free square\n\t\t\t\t\tif (n.board.getValue(x, y) == 0) {\n\t\t\t\t\t\t\n\t\t\t\t\t\t// for spawn val 2 and 4\n\t\t\t\t\t\tfor (int spawnVal = 1; spawnVal <= 2; spawnVal++) {\n\t\t\t\t\t\t\t// copy dir board\n\t\t\t\t\t\t\tBoard spawn_succ = new Board(n.board);\n\t\t\t\t\t\t\t// add spawn tile\n\t\t\t\t\t\t\tspawn_succ.setValue(x, y, spawnVal); \n\t\t\t\t\t\t\t// check for game over\n\t\t\t\t\t\t\tspawn_succ.checkGameOver();\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t// create max node\n\t\t\t\t\t\t\tMax max_c = new Max(); \n\t\t\t\t\t\t\t// add board to max node\n\t\t\t\t\t\t\tmax_c.board = spawn_succ; \n\t\t\t\t\t\t\t// 90% for 2, 10% for 4\n\t\t\t\t\t\t\tmax_c.odds = spawnVal == 1 ? 0.9f : 0.1f; \n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tmaxNodes.add(max_c);\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\texp(max_c, depth + 1);\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tif (!maxNodes.isEmpty()) {\n\t\t\t\tdouble chanceVal = 0.0;\n\t\t\t\tdouble odds_acc = 0.0;\n\t\t\t\t\n\t\t\t\tfor (Max maxNode : maxNodes) {\n\t\t\t\t\tchanceVal += maxNode.value * maxNode.odds;\n\t\t\t\t\todds_acc += maxNode.odds;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tchanceVal /= odds_acc;\n\t\t\t\tn.value = chanceVal;\n\t\t\t}\n\t\t\telse {\n\t\t\t\tn.value = n.board.heuristic();\n\t\t\t}\n\t\t\t\n\t\t}\n\t\t\n\t}", "title": "" }, { "docid": "ba2b92d430af82f63283f0e5d17bbe5d", "score": "0.48070127", "text": "public static int min(Map<Point, Tile> simulatedBoard, int depth){\n \n //simulate moves until the depth level is 0 or the game ends\n if (depth==0 || isGameOver(simulatedBoard)){\n return evaluation(simulatedBoard);\n }\n \n int currentValue;\n //bestValue is set to the worst possible value at first, in the case of the minimising player the worst value will be a very high number\n int bestValue= Integer.MAX_VALUE;\n \n for (Point p : simulatedBoard.keySet()){\n if (simulatedBoard.get(p).getPiece()== Type.regBPiece || simulatedBoard.get(p).getPiece()== Type.kingBPiece){\n //Try and evaluate all the possible moves at the current level\n Map<String, Point> legalMoves= Move.getAvailableMoves(p, simulatedBoard);\n if(!legalMoves.isEmpty()){\n for (String s : legalMoves.keySet()){\n List<Boolean> legalandjump=Move.makeMove(p, legalMoves.get(s), simulatedBoard);\n System.out.println(\"min board at depth \" + depth);\n displayBoard(simulatedBoard);\n //check if the move was executed\n if(legalandjump.get(0)){\n //corecursive call\n currentValue= max(simulatedBoard, depth-1);\n if(currentValue<= bestValue){\n bestValue= currentValue;\n }\n \n }}\n }\n \n }\n }\n return bestValue;\n }", "title": "" }, { "docid": "9a8f6ddfa104260565aeab29ebad1fcf", "score": "0.47828954", "text": "double minValue(State state, int player, int depth){\n\t\t\n\t\tdouble value = Double.POSITIVE_INFINITY;\n\t\tstate.cost = value;\n\t\t\n\t\tif((state.union.size() + state.confederacy.size() == globalNodeList.size()) || depth == cutoffDepth-1 ){\n\t\t\tstate.cost = state.eval();\n\t\t\t//state.printLog(depth);\n\t\t\treturn state.cost;\n\t\t}\n\t\tList<State> actionList = new ArrayList(genList(state, CONFEDERACY));\n\t\tfor(State s : actionList){\n\t\t\ts.printLog(depth);\n\t\t\t//System.out.println(\"MIN \"+s.player);\n\t\t\tvalue = Math.min(value, maxValue(s, UNION, depth+1));\n\t\t\ts.cost = value;\n\t\t\t//s.printLog(depth);\n\t\t}\n\t\treturn value;\n\t}", "title": "" }, { "docid": "f404727a5f2ce570569a32ca8cc5e617", "score": "0.47741055", "text": "boolean hasNextLevel();", "title": "" }, { "docid": "757f79f50b3458fc72c97d964eb74cac", "score": "0.47508436", "text": "boolean hasDepth();", "title": "" }, { "docid": "757f79f50b3458fc72c97d964eb74cac", "score": "0.47508436", "text": "boolean hasDepth();", "title": "" }, { "docid": "d8db2217d04bf45f10f2fafd4db606c0", "score": "0.47415432", "text": "public void run(int z , int y , int x)\r\n\t{\r\n\t\tDemo demo=new Demo(); \t\r\n\t\tMaze3dGenerator mg = new GrowingTreeGenerator(new GrowingTreeRandomCell());\r\n\t\tSolution<String> solution1 = new Solution<String>();\r\n\t\tSolution<String> solution2 = new Solution<String>();\r\n\t\tSearcher<String> BFS = new BFS<String>();\r\n\t\tSearcher<String> DFS = new DFS<String>();\r\n\t\tMaze3d maze=mg.generate(z,y,x);\r\n\t\tPosition p=maze.getStartPosition();\r\n\t\tSystem.out.println(\"Start position: \" + p);\r\n\t\tSystem.out.println(\"All possible movies from position: \" + p + \" are: \"); // format \"{z,y,x}\"\r\n\t\t// get all the possible moves from a position\r\n\t\tString[] moves=maze.getPossibleMoves(p);\r\n\t\t// print the moves\r\n\t\tfor(String move : moves)\r\n\t\t\tSystem.out.println(move);\r\n\t\tSystem.out.println(\"Goal position: \" + maze.getGoalPosition());\r\n\t\tSystem.out.println();\r\n\t\tSystem.out.println(\"=== Growing tree. Last cell ===\");\r\n\t\ttry {\r\n\t\t\tdemo.printMaze(maze);\r\n\t\t\tsolution1=demo.testSearcher(BFS, new Maze3dSearchable(maze));\r\n\t\t\tsolution2=demo.testSearcher(DFS, new Maze3dSearchable(maze));\r\n\t\t} catch (Exception e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\tSystem.out.println();\r\n\t\tSystem.out.println(\"===============================\");\r\n\t\tSystem.out.println(\"==== TEST OF BFS ALGORITHM ====\");\r\n\t\tSystem.out.println(\"===============================\");\r\n\t\tSystem.out.println(\"Number of nodes evaluated: \" + BFS.getNumberOfNodesEvaluated());\r\n\t\tSystem.out.println(\"Shortest solution: \" + solution1.size());\r\n\t\tSystem.out.println(solution1);\r\n\t\tSystem.out.println(\"===============================\");\r\n\t\tSystem.out.println(\"==== TEST OF DFS ALGORITHM ====\");\r\n\t\tSystem.out.println(\"===============================\");\r\n\t\tSystem.out.println(\"Number of nodes evaluated: \" + DFS.getNumberOfNodesEvaluated());\r\n\t\tSystem.out.println(\"Solution: \" + solution2.size());\r\n\t\tSystem.out.println(solution2);\r\n\t}", "title": "" }, { "docid": "dcb626d1ab727fcf6c807c27b9a6e8a3", "score": "0.47353965", "text": "public boolean validDepth(float depth) {\n return (depth >= MIN_DEPTH_VALUE && depth <= MAX_DEPTH_VALUE);\n }", "title": "" }, { "docid": "8e7f8d460324673dfb5133713169b643", "score": "0.47344008", "text": "public void evaluateJumping() {\n\t\tif (this.jumping) {\n\t\t\tthis.player.checkTopEdgeCollisions();\n\t\t\tif (this.player.initiateJumpArc()) {\n\t\t\t\tthis.jumping = false;\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "d341b334b6684195714e82cf8f9c2ef1", "score": "0.472876", "text": "public void search(){\n\t\t//start the 0 element\n\t\tvertexList[0].wasVisited=true;\n\t\tdisplayVertex(0);\n\t\ttheStack.push(0);\n\t\twhile(!theStack.isEmpty()){\n\t\t\tint v= adjacentIndex(theStack.peek());\n\t\t\tif(v==-1){\n\t\t\t\t//rule 2\n\t\t\t\ttheStack.pop();\t\n\t\t\t}\n\t\t\telse{\n\t\t\t\t\n\t\t\t\t//mark as visited\n\t\t\t\tvertexList[v].wasVisited=true;\n\t\t\t\t\n\t\t\t\t//display\n\t\t\t\tdisplayVertex(v);\n\t\t\t\t//push into stack\n\t\t\t\ttheStack.push(v);\n\t\t\t}\n\t\t}\n\t\t//reset flags\n\t\tfor(int i =0;i<nvert;i++){\n\t\t\tvertexList[i].wasVisited=false;\n\t\t}\n\t\t\n\t}", "title": "" }, { "docid": "3b0ff5c833e96d6c9599b6bad1cd2286", "score": "0.4716877", "text": "private boolean isTerminalState(GameState2 state, int depth, long startTime, Date deadline) {\n\n if (depthLimit != -1 && depth >= depthLimit) return true;\n if(state.getStatus() != GameState2.GameStatus.PLAYING) return true;\n if (deadline != null && System.currentTimeMillis() - startTime >= deadline.getTime()) return true;\n\n return false;\n\n }", "title": "" }, { "docid": "63ead45dbfa750a22b284e5c5dcf1e81", "score": "0.4699895", "text": "public void runBFS(int maxDepth)\n\t{\n\t\twhile (depth < maxDepth && stepBFS()) {}\n\t}", "title": "" }, { "docid": "9c59156a858fe56b55235f6b99683059", "score": "0.46979257", "text": "public GamePlay max(State board, int depth) { //MAX plays 'O'\n Random r = new Random();\n //If MAX is called on a state that is terminal or after a maximum depth is reached, then a heuristic is calculated on the state and the move returned.\n if((board.checkGameOver()) || (depth == maxDepth)) {\n GamePlay baseMove = new GamePlay();\n baseMove = baseMove.possibleMove(board.lastMove.row, board.lastMove.col, board.utilityFunction());\n return baseMove;\n }else{\n LinkedList<State> children = new LinkedList<State>(board.getChildren(computerLetter));\n GamePlay maxMove = new GamePlay();\n maxMove = maxMove.moveToCompare(Integer.MIN_VALUE);\n for (int i =0; i < children.size();i++) {\n State child = children.get(i);\n GamePlay move = min(child, depth + 1);\n //Here is the difference with Min method: The greatest value is selected\n if(move.getValue() >= maxMove.getValue()) {\n if ((move.getValue() == maxMove.getValue())) {\n if (r.nextInt(2) == 0) {\n maxMove.setRow(child.lastMove.row);\n maxMove.setCol(child.lastMove.col);\n maxMove.setValue(move.getValue());\n }\n }\n else {\n maxMove.setRow(child.lastMove.row);\n maxMove.setCol(child.lastMove.col);\n maxMove.setValue(move.getValue());\n }\n }\n }\n return maxMove;\n }\n }", "title": "" }, { "docid": "0786b73467b5abe2218211c85ae171bc", "score": "0.46977577", "text": "private boolean isInsideTeamBPenaltyArea(DebsFeature record){\n int x = record.getPositionX();\n int y = record.getPositionY();\n\n if(x > 6300 && x < 46183 && y > -33968 && y < -15965){\n return true;\n } else {\n return false;\n }\n }", "title": "" }, { "docid": "8a30662a5c096d7aac29c2d2451fce2e", "score": "0.4690771", "text": "public boolean atMaxDepth() {\n return currentDepth == maxDepth;\n }", "title": "" }, { "docid": "d4dde4d01f64811afe5c0acc62c3dec0", "score": "0.46718997", "text": "private boolean search(int x, int y, KDNode kdnode, int depth) {\n\t\t\n\t\tif (kdnode == null)\n\t\t\treturn false;\n\t\t\n\t\tcomparisons = depth;\n\t\tif (depth % k == 0) {\n\t\t\tif ((new KDNode(x,y)).isEqual(kdnode))\n\t\t\t\treturn true;\t\t\t\n\t\t\tif(x > kdnode.getX())\n\t\t\t\treturn search(x, y, kdnode.getRightChild(), depth+1);\n\t\t\telse\n\t\t\t\treturn search(x, y, kdnode.getLeftChild(), depth+1);\n\t\t} else {\n\t\t\tif ((new KDNode(x,y)).isEqual(kdnode))\n\t\t\t\treturn true;\t\t\t\n\t\t\tif(y > kdnode.getY())\n\t\t\t\treturn search(x, y, kdnode.getRightChild(), depth+1);\n\t\t\telse\n\t\t\t\treturn search(x, y, kdnode.getLeftChild(), depth+1);\n\t\t}\n\t\t\t\n\t}", "title": "" }, { "docid": "ad41170fb75d6f3eb3dc12ef05ef91aa", "score": "0.46679008", "text": "@Override\r\n\tpublic double max_value(GameState s, int depthLimit) \r\n\t{\t\r\n\t\tif (this.isTerminalState(s)==true){\r\n\t\t\ts.leaf = true;\r\n\t\t\ts.bestMove = -1;\r\n\t\t\treturn -1;\r\n\t\t}\r\n\r\n\t\tif (depthLimit == 0){\r\n\t\t\ts.leaf = false;\r\n\t\t\ts.bestMove = -1;\r\n\t\t\treturn this.stateEvaluator(s);\r\n\t\t}\r\n\t\telse {\r\n\t\t\tint nextDepthLimit;\r\n\t\t\tif (depthLimit == -1) {\r\n\t\t\t\t//Depth limit is -1. Try to call recursively until terminal case\r\n\t\t\t\tnextDepthLimit = -1;\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\t//depth limit is a positive number. Try to calculate depth-1\r\n\t\t\t\tnextDepthLimit = depthLimit - 1;\r\n\t\t\t}\r\n\r\n\t\t\tdouble alpha = -1;\r\n\t\t\tArrayList<Integer> suc = this.generateSuccessors(s.lastMove, s.takenList);\r\n\t\t\tint b;\r\n\t\t\tint[] newTaken;\r\n\t\t\tfor (int i = 0; i < suc.size(); i++){\r\n\t\t\t\tnewTaken = s.takenList.clone();\r\n\t\t\t\tb = suc.get(i);\r\n\t\t\t\tnewTaken[b]=1;\r\n\t\t\t\tGameState h = new GameState(newTaken, b);\r\n\t\t\t\tdouble value = min_value(h, nextDepthLimit);\r\n\t\t\t\tint compare = Double.compare(alpha, value);\r\n\t\t\t\t\r\n\t\t\t\tif (compare <= 0) {\r\n\t\t\t\t\talpha = value;\r\n\t\t\t\t\ts.leaf = false;\r\n\t\t\t\t\ts.bestMove = b;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\treturn alpha;\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "44a5a44bacaaaae1293577c99d325a7b", "score": "0.4645611", "text": "public int negaMax(int depth, PColor color) {\n if (depth <= 0 || isGameOver() != -1)\n return evauluateScores();\n \n List<Move> moves = generateMoves(color);\n int currentMax = Integer.MIN_VALUE;\n \n for (Move currentMove : moves) {\n \n int r1 = currentMove.getR1();\n int c1 = currentMove.getC1();\n int r2 = currentMove.getR2();\n int c2 = currentMove.getC2();\n \n movePieceTo(r1, c1, r2, c2,\n createCopy(currentMove.getSelPiece()));\n int score = negaMax(depth - 1, color);\n \n unMakeMove();\n if (score > currentMax) {\n currentMax = score;\n }\n }\n return -currentMax;\n }", "title": "" }, { "docid": "658277bc6b2240babd71a0ef4cdc45ec", "score": "0.4642493", "text": "public boolean isNextAvailable() {\n\t\treturn this.currentLevel <= this.totalLevels;\n\t}", "title": "" }, { "docid": "96da10b14339e26be134f7553dfe8bea", "score": "0.46406615", "text": "boolean bpm(boolean bpGraph[][], int u,\n boolean seen[], int matchR[])\n {\n // Try every job one by one\n for (int v = 0; v < N; v++)\n {\n // If volenteer u is able to accept call\n // in call v and v is not matched\n if (bpGraph[u][v] && !seen[v])\n {\n\n // Mark v as visited\n seen[v] = true;\n\n // If call 'v' is not assigned to\n // an volenteer OR previously\n // assigned volenteer for elder v (which\n // is matchR[v]) has an alternate job available.\n // Since v is marked as visited in the\n // above line, matchR[v] in the following\n // recursive call will not get call 'v' again\n if (matchR[v] < 0 || bpm(bpGraph, matchR[v],\n seen, matchR))\n {\n matchR[v] = u;\n // System.out.println(u +\" : vol index can be matched \");\n return true;\n }\n }\n }\n System.out.println(\"index of vol that cannot be matched: \" + u);\n return false;\n }", "title": "" }, { "docid": "40d41eda37c532d445e5379bd2021d30", "score": "0.46301153", "text": "private double maxSearch(int[][] state, double topval, double botval, int depth) {\n double val;\n int i, me = 1;\n if(depth == this.maxDepth) {\n return carloDeepSearch(state, depth, me);\n }\n ArrayList<Integer> validMoves = getValidMoves(this.round+depth, state, me);\n if(validMoves.size() < 1) {\n // System.out.println(\"no moves\");\n return getValue(state, this.round+depth);\n }\n // System.out.println(\"; moves: \" + validMoves.size());\n val = MinVal;\n for(i = 0; i < validMoves.size(); i++) {\n val = Math.max( val,\n minSearch(\n updateBoard(state, validMoves.get(i)/8,\n validMoves.get(i)%8, me),\n topval, botval, depth+1\n )\n );\n if(val >= botval) {\n // System.out.println(\"; pruning\");\n return val;\n }\n topval = Math.max(topval, val);\n }\n // System.out.println(\"; no pruning\");\n return val;\n }", "title": "" }, { "docid": "fa9431967240fccb897c403f149f6326", "score": "0.4623173", "text": "boolean jumpPossible() {\n for (int k = 0; k <= MAX_INDEX; k += 1) {\n if (jumpPossible(k)) {\n return true;\n }\n }\n return false;\n }", "title": "" }, { "docid": "fa9431967240fccb897c403f149f6326", "score": "0.4623173", "text": "boolean jumpPossible() {\n for (int k = 0; k <= MAX_INDEX; k += 1) {\n if (jumpPossible(k)) {\n return true;\n }\n }\n return false;\n }", "title": "" }, { "docid": "692e120ee2c9ba72fe4fbaf377de860e", "score": "0.46130893", "text": "private final boolean regularAlphaUpdate(final int pos, final double[] mi, final double[] lastAlpha, final double[] newAlpha) {\n\t\tdouble nodeVal = 0.0;\n\t\tint lastState = -1;\n\t\tboolean lengthNode = false;\n\t\tboolean ret = false;\n\t\tfor (short potential : modelInfo.orderedPotentials) {\n\t\t\tif (potential < modelInfo.nStates) {\n\t\t\t\tif (lastState != -1) {\n\t\t\t\t\tif (Math.abs(nodeVal - newAlpha[lastState]) > 0.0000000000000001) {\n\t\t\t\t\t\tret = true;\n\t\t\t\t\t}\n\t\t\t\t\tnewAlpha[lastState] = nodeVal;\n\t\t\t\t}\n\t\t\t\tlastState = potential;\n\t\t\t\tnodeVal = 0.0;\n\t\t\t\tlengthNode = modelInfo.maxStateLengths[potential] > 1;\n\t\t\t} else {\n\t\t\t\tif (!lengthNode) {\n\t\t\t\t\tret = true;\n\t\t\t\t\tint trans = potential - modelInfo.nStates;\n\t\t\t\t\tdouble transVal = mi[trans];\n\t\t\t\t\tif(!Double.isInfinite(transVal)) {\n\t\t\t\t\t\tint from = modelInfo.transitionFrom[trans];\n\t\t\t\t\t\tif(logs.alphaWriter != null)\n\t\t\t\t\t\t\tFileUtil.safeWrite(logs.alphaWriter, String.format(\"alpha[%d][%d] = %s = %s + alpha[%d][%d] %s * %s exp(%f)\\n\", pos, lastState, CleanMaximumLikelihoodSemiMarkovGradient.printNorm(nodeVal + lastAlpha[from] * CleanMaximumLikelihoodSemiMarkovGradient.exp(mi[trans]), alphaNorm), CleanMaximumLikelihoodSemiMarkovGradient.printNorm(nodeVal, alphaNorm), pos-1, from, CleanMaximumLikelihoodSemiMarkovGradient.printNorm(lastAlpha[from], alphaNorm), CleanMaximumLikelihoodSemiMarkovGradient.printNorm(CleanMaximumLikelihoodSemiMarkovGradient.exp(mi[trans]), 0), mi[trans]));\n\t\t\t\t\t\tnodeVal += lastAlpha[from] * CleanMaximumLikelihoodSemiMarkovGradient.exp(transVal);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tif (Math.abs(nodeVal - newAlpha[lastState]) > 0.0000000000000001) {\n\t\t\tret = true;\n\t\t}\n\t\tnewAlpha[lastState] = nodeVal;\n\t\treturn ret;\n\t}", "title": "" }, { "docid": "34c562641c7fbf62bdcc4203ec85cf82", "score": "0.46085566", "text": "public boolean check() {\n return this.depth > this.maxDepth;\n }", "title": "" }, { "docid": "a94e2b63a3e88d96d49d7d17d93c0885", "score": "0.46080354", "text": "public static Plan GreedySearch(int turns, float evalRandomness, Plan startPlan, int startturn, boolean rewardUniqueness){\n Plan bestPlan = null;\n Map mapSavepoint;\n\n //Plan curPlan = new Plan(Map.currentMap,turns,null);\n if(startPlan == null || startturn == 0) {\n\n if(basePlan != null) {\n bestPlan = basePlan.ClearCopy();\n }\n else{\n bestPlan = new Plan(Map.currentMap,true);\n }\n mapSavepoint = new Map(Map.currentMap);//,Map.staticMyShipCount + Map.relevantEnemyShipCount);\n startturn = 0;\n }else{\n bestPlan = startPlan.ClearCopy();\n mapSavepoint = bestPlan.CloneAndSim(0,startturn,true,Map.currentMap,true,-1);\n }\n\n\n\n\n for(int turn = startturn; turn < turns; turn++){\n\n// int found = 0;\n// for(CheapShip s : mapSavepoint.myShips ){\n// if( s!= null){\n// found++;\n// }\n// }\n\n// Log.log(\"t \" + turn + \" myships: \" + Map.staticMyShipCount + \" remaining: \" + mapSavepoint.myShipsCount + \" found \" + found++, Log.LogType.PLANS);\n if(MyBot.SERVER_RELEASE && ShouldQuit()){\n return bestPlan;\n }\n\n bestPlan.evaluatingTurn = turn;\n\n// if(IMAGING){\n// Log.log(\"Starting greedy turn: \" + turn + mapSavepoint.toStringShips(true), Log.LogType.IMAGING);\n// }\n\n bestPlan.AddAllForcedMoves(mapSavepoint,turn);\n// lastMapPerTurnDELETE[turn] = new Map(mapSavepoint);\n\n\n shiploop:\n while(true) { //every step of this loop, we'll select the move for one ship\n //Find all moves on the starting check point map. The moves found of other ships in this loop are not executed yet on that map\n ArrayList<Plan> possiblePlans = bestPlan.findhighestPrioPossibilities(mapSavepoint,turn);\n if(possiblePlans.size() == 0) {\n\n break;\n }\n //To always overrule the previous plan\n bestPlan.nonFinalPlusSuggestions = -10000000000000f;\n boolean foundone = false;\n for (Plan p : possiblePlans) { //Evaluate all the possible moves\n //Simulate all ships we've found moves for from our starting check point.\n p.SetFinalMap( p.CloneAndSim(turn, Math.min(turn + 1, turns),false,mapSavepoint,true,-1));\n p.evaluatingTurn = turn;\n Float f = suggestionList[turn].get(p.lastMove);\n if(f != null) p.suggestionScore += f;\n p.Evaluate(evalRandomness,rewardUniqueness);\n\n// likelyVisited1[p.lastMove.GetLikelyIndex1(turn)]++;\n// likelyVisited2[p.lastMove.GetLikelyIndex2(turn)]++;\n// likelyVisited3[p.lastMove.GetLikelyIndex3(turn)]++;\n\n// if(IMAGING && p.lastMove.ship.id == IMAGINGID){\n//// Log.log(\"Greedy Eval \" + p.lastMove + \" score: \" + p.nonFinalPlusSuggestions + \" \" + p.nonfinalScore, Log.LogType.IMAGING);\n// VISITED_GREEDY[turn][p.lastMove.to.x][p.lastMove.to.y]++;\n// MAX_SCORE[turn][p.lastMove.to.x][p.lastMove.to.y] = Math.max(MAX_SCORE[turn][p.lastMove.to.x][p.lastMove.to.y],p.nonFinalPlusSuggestions);\n// }\n\n\n if (p.nonFinalPlusSuggestions >= bestPlan.nonFinalPlusSuggestions && !p.markedIlllegal) {\n\n// if(IMAGING && p.lastMove.ship.id == IMAGINGID){\n// Log.log(\"Best score yet\", Log.LogType.IMAGING);\n// }\n foundone = true;\n bestPlan.CleanUpMaps();\n bestPlan = p;\n }else{\n p.CleanUpMaps();\n }\n }\n if(!foundone){\n Log.log(\"MAJOR ERROR IN GREEDY\", Log.LogType.MAIN);\n break;//shouldt happen, but you know..\n }\n }\n\n //Do a full, clean simulation from start to end to solve any weird issues. Might not be entirely needed\n mapSavepoint.CleanUp();\n mapSavepoint = bestPlan.CloneAndSim(0,Math.min(turn + 1, turns),true,Map.currentMap,true,-1);\n bestPlan.playerMoneyPerTurn[turn] = mapSavepoint.playerMoney;\n\n\n\n\n// Log.log(\"Best plan for turn: \" + turn, Log.LogType.PLANS);\n// Log.log(\"\", Log.LogType.PLANS);\n// Log.log(bestPlan.movesToString(), Log.LogType.PLANS);\n// Log.log(\"\", Log.LogType.PLANS);\n// Log.log(\"\", Log.LogType.PLANS);\n }\n\n\n bestPlan.SetFinalMap(mapSavepoint);\n\n\n\n// if(IMAGING && Map.myIndexOfIds[IMAGINGID] >= 0){\n// Log.log(\"Best path in greedy\", Log.LogType.IMAGING);\n// for(int i=0;i < SEARCH_DEPTH; i++){\n// if(bestPlan.movesPerTurn[i][Map.myIndexOfIds[IMAGINGID]] != null) {\n// Log.log(i + \" \" + bestPlan.movesPerTurn[i][Map.myIndexOfIds[IMAGINGID]].toString(), Log.LogType.IMAGING);\n// }\n// }\n//\n//\n// }\n\n\n// Log.log(\"Final plan: \", Log.LogType.PLANS);\n// if(curPlan == null){\n// Log.log(\"NO PLAN\", Log.LogType.PLANS);\n// return null;\n// }else {\n// Log.log(curPlan.movesToString(), Log.LogType.PLANS);\n// Log.log(\"\", Log.LogType.PLANS);\n// }\n\n // Log.flushLogs();\n\n return bestPlan;\n\n }", "title": "" }, { "docid": "399483b30900528eac26955872be5ae3", "score": "0.46000978", "text": "public static void main(String[] args) {\n System.out.println(\"TicTacToe Using Adversarial Search\");\n //Default board settings - Please change if different as there is no API to get it easily\n int boardSize = 12;\n int target = 6;\n TicTacToe ttt = new TicTacToe(target, boardSize);\n //AdversarialSearch aSearch = new AdversarialSearch();\n int numberOfPlays = boardSize * boardSize;\n int countPlay = 0;\n int flag = 0;\n while(true){//This is determined by victory or there is no more place to play on the board\n //Checking if anyone has played\n List<LastPlay> gameLastPlay = ttt.getLastPlay();\n PlayPosition play = new PlayPosition();\n Move move = new Move();\n move.setGameId(Proxy.getGameID());\n move.setTeamId(Proxy.getTeamID());\n move.setType(\"move\");\n if(gameLastPlay == null || gameLastPlay.isEmpty()){\n //Play first\n play = ttt.playFirst();\n }else{\n //Regular play\n System.out.println(\"Now\"+areYouLastPlayer);\n PlayPosition lastPlayConverted = new PlayPosition();\n lastPlayConverted.setX(Integer.parseInt(gameLastPlay.get(0).getMoveX()));\n lastPlayConverted.setY(Integer.parseInt(gameLastPlay.get(0).getMoveY()));\n playedPositions.get(lastPlayConverted.getX()).set(lastPlayConverted.getY(), 1);\n if(gameLastPlay.get(0).getTeamId().equalsIgnoreCase(Proxy.getTeamID())){//My team played last so my opponent turn\n lastPlayConverted.setPlayer(true);\n }else{\n //My team plays now\n lastPlayConverted.setPlayer(false);\n }\n if(areYouLastPlayer != lastPlayConverted.isPlayer()){\n play = ttt.minimax(lastPlayConverted);\n areYouLastPlayer = play.isPlayer();\n flag = 1;\n }else{\n flag = 0;\n }\n }\n \n if(play.isPlayer()){\n String currMove = play.getX() + \",\" + play.getY();\n move.setMove(currMove);\n System.out.println(\"Move \"+currMove);\n //Update current play on played positions\n playedPositions.get(play.getX()).set(play.getY(), 1);\n \n int retValue = ttt.makeMove(move);\n if(retValue == 2){\n System.out.println(\"Victory Has Been Attained\");\n break;\n }\n System.out.println(\"Move response \" + retValue);\n }\n \n //if(flag == 1) countPlay += 2;\n }\n \n System.out.println(\"End TicTacToe Using Adversarial Search\");\n \n }", "title": "" }, { "docid": "eae1037ceb1e38209187324a0b967791", "score": "0.4585364", "text": "public double FndAlpha(TreeExp F, ArrayList<Double> actionProb, ArrayList<Double> delta) {\n\t\tdouble maxAlpha = Double.MAX_VALUE;\n\t\t//we allow actionprob to go beyond 1\n\t\t//so first find the max prob and then acrrordingly find the space\n\t\tdouble maxProb = -1;\n\t\tfor(double a: actionProb){\n\t\t\tif(a > maxProb){\n\t\t\t\tmaxProb = a;\n\t\t\t}\n\t\t}\n\t\tmaxProb += 1;\n\t\t//traverse each bit to shrink maxalpha\n\t\tfor(int i = 0; i < actionProb.size(); i ++){\n\t\t\tdouble possibleAlpha = -1;\n\t\t\tif(delta.get(i) > 0){\n\t\t\t\tpossibleAlpha = (maxProb-actionProb.get(i)) / Math.abs(delta.get(i));\n\t\t\t}\n\t\t\tif(delta.get(i) < 0){\n\t\t\t\tpossibleAlpha = (actionProb.get(i) - (-1)) / Math.abs(delta.get(i));\n\t\t\t}\n\t\t\tif(possibleAlpha != -1 && possibleAlpha < maxAlpha){\n\t\t\t\tmaxAlpha = possibleAlpha;\n\t\t\t}\n\t\t}\n\t\t//if we do concurrency projection then we need to again shrink the alpha by constraint the sum of prob be no bigger than\n\t\t//concurrency\n\t\t//System.out.println(\"max alpha is: \" + maxAlpha);\n\t\t//now try alpha from 0 to maxAlpha\n\t\tdouble bestAlpha = 0;\n\t\tdouble bestQ = Double.NEGATIVE_INFINITY;\n\t\tArrayList<Double> tempActProb = new ArrayList<Double>();\n\t\tfor(int i = 0; i < actionProb.size(); i ++){\n\t\t\ttempActProb.add(0.0);\n\t\t}\n\t\tArrayList<Double> bestActProb = new ArrayList<Double>();\n\t\tfor(int i = 0; i < actionProb.size(); i ++){\n\t\t\tbestActProb.add(0.0);\n\t\t}\n\t\t\n\t\t// try to find the alpha with highest Q\n\t\tdouble realBest = -1;\n\t\t//double realNeeded = -1;\n\t\t\n\t\t// this is a loop to find smallest alpha because too large alpha could\n\t\t// be a problem\n\t\t// if we find in one iteration alpha is chosen to be the smallest among\n\t\t// possible then we extend another \"alphatime\"\n\t\t// between 0 and the smallest\n\t\t// maxAlpha = 0.2;\n\t\tint shrinkCounter = 0;\n\t\tdouble realNorm = 0;\n\t\twhile (true) {\n\t\t\tif (fixAlpha == -1)\n\t\t\t\tbestAlpha = 0;\n\t\t\telse {\n\t\t\t\tbestAlpha = fixAlpha;\n\t\t\t\tAlphaTime = 1;\n\t\t\t}\n\n\t\t\tfor (int i = 1; i <= AlphaTime; i++) {\n\t\t\t\t\n\t\t\t\tif (fixAlpha == -1){\n\t\t\t\t\tbestAlpha += maxAlpha / AlphaTime;\n\t\t\t\t}\n\t\t\t\t// System.out.println(bestAlpha);\n\t\t\t\t// update temp actprob\n\t\t\t\t\n\t\t\t\tfor (int j = 0; j < actionProb.size(); j++) {\n\t\t\t\t\tdouble d = delta.get(j);\n\t\t\t\t\tdouble update = bestAlpha * d;\n\t\t\t\t\tdouble now = actionProb.get(j);\n\t\t\t\t\tif(now + update < 0){\n\t\t\t\t\t\tupdate = -now;\n\t\t\t\t\t}\n\t\t\t\t\tif(now + update > 1){\n\t\t\t\t\t\tupdate = 1 - now;\n\t\t\t\t\t}\n\t\t\t\t\t//norm += update * update;\n\t\t\t\t\tdouble newVal = now + update;\n\n\t\t\t\t\ttempActProb.set(j, newVal);\n\t\t\t\t}\n\t\t\t\t\n\n\t\t\t\t// update bestQ\n\t\t\t\tHashMap<TreeExp, Double> valRec = new HashMap<TreeExp, Double>();\n\t\t\t\ttry {\n\n\t\t\t\t\tdouble theQ = F.RealValue(tempActProb, valRec);\n\t\t\t\t\tif (theQ > bestQ) {\n\t\t\t\t\t\tbestQ = theQ;\n\t\t\t\t\t\t// update actionProb\n\t\t\t\t\t\tfor (int j = 0; j < actionProb.size(); j++) {\n\t\t\t\t\t\t\tbestActProb.set(j, tempActProb.get(j));\n\t\t\t\t\t\t}\n\t\t\t\t\t\trealBest = bestAlpha;\n\t\t\t\t\t\tdouble norm = 0;\n\t\t\t\t\t\tfor(int j = 0; j < actionProb.size(); j ++){\n\t\t\t\t\t\t\tdouble diff = tempActProb.get(j) - actionProb.get(j);\n\t\t\t\t\t\t\tnorm += diff * diff;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tnorm = Math.sqrt(norm / actionProb.size());\n\t\t\t\t\t\trealNorm = norm;\n\t\t\t\t\t}\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// System.out.println(\"BestAlpha is :\" + realBest);\n\n\t\t\tif (fixAlpha == -1 && realBest == maxAlpha / AlphaTime) {\n\t\t\t\tmaxAlpha /= AlphaTime;\n\t\t\t\tshrinkCounter++;\n\t\t\t\t\n\t\t\t\tif (shrinkCounter > MaxShrink) {\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\t// System.out.println(\"Alpha is too large, will try alpha between 0 and \"\n\t\t\t\t// + maxAlpha );\n\t\t\t} else {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\t\n\t\tif(convergeNorm != -1 && realNorm <= convergeNorm){\n\t\t\tifConverge = true;\n\t\t}\n\n\t\tfor (int j = 0; j < actionProb.size(); j++) {\n\t\t\tactionProb.set(j, bestActProb.get(j));\n\t\t}\n\t\treturn bestQ;\n\t}", "title": "" }, { "docid": "119b6bd4f3b255798d93d3e906eb93b2", "score": "0.4579917", "text": "private int getBestMoveRecurse(Board b, int depth){\r\n\t\tif(depth == 0)\r\n\t\t\treturn e.evaluate(b);\r\n\t\t\r\n\t\tint best = -Integer.MAX_VALUE;\r\n\t\tint curr;\r\n\t\tList<Move> ml = b.generateMoves();\r\n\t\t\r\n\t\tif(ml.isEmpty()){ //i.e. board is in a game over position\r\n\t\t\tif(b.inCheck(b.getTurn())) //checkmate!\r\n\t\t\t\treturn -checkmate;\r\n\t\t\telse \t\t\t\t //stalemate!\r\n\t\t\t\treturn -stalemate;\r\n\t\t}\r\n\t\tfor(Move m : ml){\r\n\t\t\tif(depth - captureDepth <= 0 && !m.isCapture)\r\n\t\t\t\tcontinue;\r\n\t\t\tcurr = -getBestMoveRecurse(b.afterMove(m),depth-1); \r\n\t\t\tif(curr > best){\r\n\t\t\t\tbest = curr;\r\n\t\t\t\tif(fixedDepth == depth)\r\n\t\t\t\t\tbestMove = m;\r\n\t\t\t}\r\n\t\t}\r\n\t\tif(best == -Integer.MAX_VALUE)\r\n\t\t\tbest = e.evaluate(b);\r\n\t\treturn best;\r\n\t}", "title": "" }, { "docid": "02517ba57a909684f965b9a4443e11f5", "score": "0.4571409", "text": "public boolean isLongerChainAvailable(){\n matrix=parent.matrix;\n visited= new ArrayList<>();\n for(int i=0;i<Graph.getHeight()-1;i++){\n ArrayList<Boolean> row = new ArrayList<>();\n for(int w=0;w<Graph.getWidth()-1;w++){\n row.add(false);\n }\n visited.add(row);\n }\n if(!move.isHorizontal()){\n visited.get(move.vertices.get(0).id/Graph.getWidth()).set(move.vertices.get(0).id%Graph.getWidth(),true);\n visited.get((move.vertices.get(0).id-1)/Graph.getWidth()).set((move.vertices.get(0).id-1)%Graph.getWidth(),true);\n }else{\n visited.get(move.vertices.get(0).id/Graph.getWidth()).set(move.vertices.get(0).id%Graph.getWidth(),true);\n visited.get((move.vertices.get(0).id-Graph.getWidth())/Graph.getWidth()).set((move.vertices.get(0).id-Graph.getWidth())%Graph.getWidth(),true);\n }\n for(int i=0;i<Graph.getHeight()-1;i++) {\n for (int w = 0; w < Graph.getWidth() - 1; w++) {\n if (!visited.get(i).get(w)) {\n int top = matrix[(i * Graph.getWidth()) + w][(i * Graph.getWidth()) + w + 1];\n int left = matrix[(i * Graph.getWidth()) + w][((i + 1) * Graph.getWidth()) + w];\n int right = matrix[(i * Graph.getWidth()) + w + 1][((i + 1) * Graph.getWidth()) + w + 1];\n int bottom = matrix[((i + 1) * Graph.getWidth()) + w][((i + 1) * Graph.getWidth()) + w + 1];\n //sideways\n if (top == 2 && bottom == 2 && left == 1 && right == 1) {\n if (countNumBoxesInChain(i, w, 1, boxType.sideways, visited) >= 3) {\n return true;\n }\n }\n //bottomleft\n if (left == 2 && bottom == 2 && right == 1 && top == 1) {\n if (countNumBoxesInChain(i, w, 1, boxType.bottomleft, visited) >= 3) {\n return true;\n }\n }\n //topleft\n if (top == 2 && left == 2 && bottom == 1 && right == 1) {\n if (countNumBoxesInChain(i, w, 1, boxType.topleft, visited) >= 3) {\n return true;\n }\n }\n //bottomright\n if (left == 1 && bottom == 2 && right == 2 && top == 1) {\n if (countNumBoxesInChain(i, w, 1, boxType.bottomright, visited) >= 3) {\n return true;\n }\n }\n //topright\n if (top == 2 && left == 1 && bottom == 1 && right == 2) {\n if (countNumBoxesInChain(i, w, 1, boxType.topright, visited) >= 3) {\n return true;\n }\n }\n //longways\n if (top == 1 && bottom == 1 && left == 2 && right == 2) {\n if (countNumBoxesInChain(i, w, 1, boxType.longways, visited) >= 3) {\n return true;\n }\n }\n }\n }\n }\n return false;\n }", "title": "" }, { "docid": "19ad4edb5f2445934d1ac94af4b96d3e", "score": "0.45707494", "text": "public boolean startMenu(){\n System.out.println(\"*_________________________________*\");\n System.out.println(\"* This is a dungeon crawlser game *\");\n System.out.println(\"*_________________________________*\");\n System.out.println(\"Would you like to run in debug mode?\");\n System.out.println(\"Press 1 for debug mode, 0 for normal mode.\");\n\n userInput = takeInput(0,1);\n if(userInput ==1) return true;\n else return false;\n }", "title": "" }, { "docid": "a9cbdd1f4816a5ed45fd4d38225d4e4b", "score": "0.45675695", "text": "private void Z_je(int args[]) { // BRANCH OP\n\t\tboolean isBranch = false;\n\t\tfor (int i = 1; i < args.length; i++) {\n\t\t\tif (args[0] == args[i]) {\n\t\t\t\tisBranch = true;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\tthis.zm.consumeAndBranch(isBranch);\n\t}", "title": "" }, { "docid": "818b0340472a419e93fdc13a5423736a", "score": "0.45673233", "text": "void section4BoundedDepth() {\n System.out.println(\"\\n Section 4. Demo of iterative deepening search (IDS).\");\n System.out.println(\" =========\\n\");\n\n for(int limit = 0; limit < 3; limit++) {\n System.out.println(\"Limit = \" + limit);\n BoundedTree program = new BoundedTree();\n program.limit = new LMax(limit);\n StackLR queue = new StackLR();\n SpaceMachine<BoundedTree> machine = new SpaceMachine<>(program, (p) -> p.bounded_tree(), queue);\n machine.execute();\n }\n }", "title": "" }, { "docid": "d8f7f86987302b4cb8115d40003a07b9", "score": "0.4566008", "text": "public void run() {\n startTime = System.currentTimeMillis();\n statusStartTime = startTime;\n if (timer != null) {\n timer.schedule(new SearchTimer(), searchTime);\n }\n\n // Populate root move list\n boolean isCheck = board.isCheck();\n MoveGenerator moveGenerator = MoveGenerator.getMoveGenerator(board, 1, 0, isCheck);\n int move;\n while ((move = moveGenerator.nextLegal()) != Move.NOMOVE) {\n rootMoves.entries[rootMoves.size].move = move;\n rootMoves.entries[rootMoves.size].pv.moves[0] = move;\n rootMoves.entries[rootMoves.size].pv.size = 1;\n ++rootMoves.size;\n }\n\n // Go...\n semaphore.release();\n\n //### BEGIN Iterative Deepening\n for (int depth = initialDepth; depth <= searchDepth; ++depth) {\n currentDepth = depth;\n currentMaxDepth = 0;\n sendStatus(false);\n\n searchRoot(currentDepth, -Evaluation.INFINITE, Evaluation.INFINITE);\n\n // Sort the root move list, so that the next iteration begins with the\n // best move first.\n rootMoves.sort();\n\n checkStopConditions();\n\n if (abort) {\n break;\n }\n }\n //### ENDOF Iterative Deepening\n\n if (timer != null) {\n timer.cancel();\n }\n\n // Update all stats\n sendStatus(true);\n\n // Get the best move and convert it to a GenericMove\n GenericMove bestMove = null;\n GenericMove ponderMove = null;\n if (rootMoves.size > 0) {\n bestMove = Move.toGenericMove(rootMoves.entries[0].move);\n if (rootMoves.entries[0].pv.size >= 2) {\n ponderMove = Move.toGenericMove(rootMoves.entries[0].pv.moves[1]);\n }\n }\n\n // Send the best move to the GUI\n protocol.send(new ProtocolBestMoveCommand(bestMove, ponderMove));\n }", "title": "" }, { "docid": "09f8be7cf92b71d9f12454e2d174f0b1", "score": "0.4565773", "text": "private int[] minimaxGetScore(Grid g, int remainingDepth, int myPlayer)\r\n {\n if (g.getWinningPlayer() == myPlayer)\r\n {\r\n // We won!\r\n return new int[] { Integer.MAX_VALUE * (remainingDepth + 1), -1 };\r\n }\r\n else if (g.getWinningPlayer() == (3 - myPlayer))\r\n {\r\n // They won.\r\n return new int[] { Integer.MIN_VALUE * (remainingDepth + 1), -1 };\r\n }\r\n else if (g.getWinningPlayer() == -1)\r\n {\r\n // Game ends in a draw.\r\n return new int[] { 0, -1 };\r\n }\r\n\r\n int nextPlayer = g.getNextPlayer();\r\n\r\n // We don't want to go any deeper, so just return the immediate heuristic score\r\n // for this board\r\n if (remainingDepth <= 0)\r\n {\r\n // TODO: FOR YOU TO DO! WRITE THIS getHeuristicScore METHOD\r\n // TO EXAMINE THE GRID AND COME UP WITH A NUMERIC SCORE FOR IT.\r\n // THE SCORE SHOULD BE FROM THE POINT OF VIEW OF YOUR PLAYER\r\n // (HIGH VALUES MEANS GOOD FOR YOU, LOW VALUES MEAN BAD FOR YOU).\r\n // THEN REPLACE '= 1' WITH '= getHeuristicScore(g)'\r\n int score = getHeuristicScore(g);\r\n\r\n return new int[] { score, -1 };\r\n }\r\n\r\n // Call self recursively for next player's moves' scores\r\n \r\n // Is this nextPlayer trying to minimize or maximize the score? If it's us,\r\n // maximize. If opponent, minimize.\r\n boolean isMax = (nextPlayer == myPlayer);\r\n int bestMove = -1;\r\n int bestScore;\r\n if (isMax)\r\n {\r\n bestScore = Integer.MIN_VALUE;\r\n }\r\n else\r\n {\r\n bestScore = Integer.MAX_VALUE;\r\n } \r\n\r\n for (int nextCol = 0; nextCol < g.getCols(); nextCol++)\r\n {\r\n if (!g.isColumnFull(nextCol))\r\n {\r\n // Apply the move (temporarily) to the grid...\r\n g.makeMove(nextCol);\r\n \r\n // ... and then call ourselves recursively to move down the decision tree\r\n // and come up with a score \r\n int scoreCur = minimaxGetScore(g, remainingDepth - 1, myPlayer)[0];\r\n \r\n // ... and we must remember to UNDO that move now that the call is done.\r\n g.undo();\r\n \r\n // Update bestScore with what the recursive call returned\r\n if (isMax)\r\n {\r\n if (scoreCur > bestScore)\r\n {\r\n bestScore = scoreCur;\r\n bestMove = nextCol;\r\n }\r\n }\r\n else\r\n {\r\n // minimizing!\r\n if (scoreCur < bestScore)\r\n {\r\n bestScore = scoreCur;\r\n bestMove = nextCol;\r\n }\r\n }\r\n }\r\n }\r\n\r\n // Return the best score (and the recommended move)\r\n return new int[] { bestScore, bestMove }; \r\n }", "title": "" }, { "docid": "bdb04a49ab71dabfe67b9e058f91681b", "score": "0.4564221", "text": "@Override\n\t public boolean isBed(IBlockAccess world, int x, int y, int z, EntityLivingBase player) {\n\t return true;\n\t }", "title": "" }, { "docid": "5decba0528dbb007cb21b1f1173814b0", "score": "0.45561486", "text": "boolean perceptionCurrentPositionIsLaneEntrance(SEARCH_PERCEPTION perceptionType);", "title": "" }, { "docid": "9525335027ab74a7f93fa427b0453e35", "score": "0.45552292", "text": "@Override\n\tpublic boolean operation() {\n\t\tList<Position>path = null;\n\t\tif(!Variable.inSea){\n\t\t\tList<Astar_position>sea_entry = new ArrayList<Astar_position>();\n\t\t\tfor(Position sea_pos : this.obstacle_position.get('~')){\n\t\t\t\tsea_entry.add(new Astar_position(sea_pos, Distance.distance(sea_pos, Variable.current_pos)));\n\t\t\t}\n\t\t\tif(sea_entry.size() > 0){\n\t\t\t\t//Sort process.\n\t\t\t\tCollections.sort(sea_entry, new Comparator<Astar_position>() {\n\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic int compare(Astar_position o1, Astar_position o2) {\n\t\t\t\t\t\tif(o1.distance > o2.distance){\n\t\t\t\t\t\t\treturn 1;\n\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\treturn -1;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t\t\n\t\t\t\tfor(Astar_position sea_pos_d : sea_entry){\n\t\t\t\t\tAstar astar = new Astar(sea_pos_d.pos, this.world_map, Variable.current_pos);\n\t\t\t\t\tpath = astar.go_to_block(sea_pos_d.pos);\n\t\t\t\t\tif(path != null){\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\tif(path != null){\n\t\t\t\tthis.order = new OrderGenerating(path, \"explore_switch\");\n\t\t\t\tthis.order.order_generate();\n\t\t\t\tVariable.inSea = true;\n\t\t\t\treturn true;\n\t\t\t}else{\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}else{\n\t\t\t//Got to land to explore.\n\t\t\tif(target_pos == null){\n\t\t\t\tIterator<Character>tool_ite = this.tools_position.keySet().iterator();\n\t\t\t\twhile(tool_ite.hasNext()){\n\t\t\t\t\tchar tool = tool_ite.next();\n\t\t\t\t\tList<Position>tool_pos_list = this.tools_position.get(tool);\n\t\t\t\t\tif(tool == 'k' && tool_pos_list.size() > 0){\n\t\t\t\t\t\ttarget_pos = tool_pos_list.get(0);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}else if(tool == 'd' && tool_pos_list.size() > 0){\n\t\t\t\t\t\ttarget_pos = tool_pos_list.get(0);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}else if(tool == '$' && tool_pos_list.size() > 0){\n\t\t\t\t\t\ttarget_pos = tool_pos_list.get(0);\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\tList<Astar_position>sea_target_dis = new ArrayList<Astar_position>();\n\t\t\tfor(Position sea_pos : this.obstacle_position.get('~')){\n\t\t\t\tsea_target_dis.add(new Astar_position(sea_pos, Distance.distance(target_pos, sea_pos)));\n\t\t\t}\n\t\t\t//Sort process.\n\t\t\tCollections.sort(sea_target_dis, new Comparator<Astar_position>() {\n\n\t\t\t\t@Override\n\t\t\t\tpublic int compare(Astar_position o1, Astar_position o2) {\n\t\t\t\t\tif(o1.distance > o2.distance){\n\t\t\t\t\t\treturn 1;\n\t\t\t\t\t}else{\n\t\t\t\t\t\treturn -1;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t});\n\t\t\t\n\t\t\tfor(Astar_position sea_pos_d : sea_target_dis){\n\t\t\t\tAstar astar = new Astar(sea_pos_d.pos, this.world_map, Variable.current_pos);\n\t\t\t\tastar.setThrSea(true);\n\t\t\t\tpath = astar.go_to_block(sea_pos_d.pos);\n\t\t\t\tif(path != null){\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tif(path != null){\n\t\t\t\tthis.order = new OrderGenerating(path, \"explore_switch\");\n\t\t\t\tthis.order.order_generate();\n\t\t\t\tList<Astar_position>land_tar_list = new ArrayList<Astar_position>();\n\t\t\t\tIterator<Position>land_pos = this.world_map.keySet().iterator();\n\t\t\t\twhile(land_pos.hasNext()){\n\t\t\t\t\tPosition land = land_pos.next();\n\t\t\t\t\tBlock block = this.world_map.get(land);\n\t\t\t\t\tif(block.type == ' '){\n\t\t\t\t\t\tland_tar_list.add(new Astar_position(land, Distance.distance(land, target_pos)));\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t//Sort process.\n\t\t\t\tCollections.sort(land_tar_list, new Comparator<Astar_position>() {\n\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic int compare(Astar_position o1, Astar_position o2) {\n\t\t\t\t\t\tif(o1.distance > o2.distance){\n\t\t\t\t\t\t\treturn 1;\n\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\treturn -1;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t\tfor(Astar_position land_pos_d : land_tar_list){\n\t\t\t\t\tAstar astar = new Astar(land_pos_d.pos, this.world_map, Variable.current_pos);\n\t\t\t\t\tList<Position>path_con = astar.go_to_block(land_pos_d.pos);\n\t\t\t\t\tif(path_con != null){\n\t\t\t\t\t\tthis.order = new OrderGenerating(path_con, \"\");\n\t\t\t\t\t\tthis.order.order_generate();\n\t\t\t\t\t\tVariable.inSea = false;\n\t\t\t\t\t\tthis.tools.remove('w');\n\t\t\t\t\t\tSystem.out.println(\"Remove tree.\");\n\t\t\t\t\t\treturn true;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}else{\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}", "title": "" } ]
002bbd9b498acd0c4c1a4c011f1013cc
Do something after 20 seconds call the method which is schedule to call after 20 sec
[ { "docid": "3b570212c87b6cc344960c2a076a857f", "score": "0.0", "text": "@Override\n public void run() {\n\n if (ConnectivityHelper.isConnectedToNetwork(getApplicationContext())) {\n Toast.makeText(getApplicationContext(), \"Internet Connected\", Toast.LENGTH_SHORT).show();\n\n if (check.size() > 0) {\n\n\n addNotification();\n batch_reserve();\n\n } else {\n\n Toast.makeText(getApplicationContext(), \"No Tickets Locally\", Toast.LENGTH_SHORT).show();\n\n NotificationManager notifManager = (NotificationManager) getApplicationContext().getSystemService(Context.NOTIFICATION_SERVICE);\n notifManager.cancelAll();\n }\n } else {\n //Show disconnected screen\n }\n// batch_reserve();\n\n }", "title": "" } ]
[ { "docid": "386ce3b86ea939bd360783245612ccf1", "score": "0.667599", "text": "public void timedTask(int minutes) {\n Timer timer = new Timer();\n timedTaskClass t = new timedTaskClass();\n timer.scheduleAtFixedRate(t, 0, minutes * 1000 * 60 );\n System.out.println(\"start\");\n try {\n Thread.sleep(1000);\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n }", "title": "" }, { "docid": "6cf50ae299e176d53b36044fe69354aa", "score": "0.6566294", "text": "@Scheduled(fixedRate=3000)\n public void doTask() {\n }", "title": "" }, { "docid": "ddd61fb19283f62b63117c0d8429e261", "score": "0.64321876", "text": "public void sleep() {\n\t\tTimerFunctions Sleep = new TimerFunctions();\n\t\tSleep.timerInSeconds(2);\n\t}", "title": "" }, { "docid": "ef7fa172782a42d1bbab27cd25734ea4", "score": "0.63920885", "text": "@Override\n\t\t\tpublic void methodToCallBack() throws InterruptedException {\n\t\t\t\tThread.sleep(3000);\n\t\t\t\tSystem.out.println(\"gaga\");\n\t\t\t}", "title": "" }, { "docid": "1398ac0aa4212544fc42e04dca8341d0", "score": "0.6352549", "text": "@Override\n\t\t\tpublic void methodToCallBack() throws InterruptedException {\n\t\t\t\tThread.sleep(3000);\n\t\t\t\tSystem.out.println(\"zaza\");\n\t\t\t}", "title": "" }, { "docid": "badf9fd3f90335247c3875248347a1f1", "score": "0.62995267", "text": "public void teleopPeriodic() {\r\n Scheduler.getInstance().run();\r\n updateDashboard();\r\n double seconds_remaining = DriverStation.getInstance().getMatchTime();\r\n }", "title": "" }, { "docid": "16e56e49275e9adce37e3389cde55403", "score": "0.6271592", "text": "private void tmer() {\n int seconds = 900;\n timer = new java.util.Timer();\n timer.schedule(new RemindTask(), seconds * 1000);\n\n }", "title": "" }, { "docid": "3de7592a2831e20d315e00eb3735d6df", "score": "0.6218039", "text": "private void sleeping() {\n //TODO implement \n }", "title": "" }, { "docid": "9bfade3606c40a5f502ae9539474353c", "score": "0.6173543", "text": "private void setTimer() {\n Timer timer = new Timer();\n int FIVEMINS = 1000 * 60 * 5;\n timer.schedule(new TimerTask() {\n @Override\n public void run() {\n viewModel.refreshData();\n }\n }, 0,FIVEMINS);\n }", "title": "" }, { "docid": "f3120eaddf91b3b9b000402caa191132", "score": "0.6136872", "text": "public static void callSleep() {\n try {\n Thread.sleep(1000);\n } catch (Exception exception) {\n exception.printStackTrace();\n }\n }", "title": "" }, { "docid": "3d2375b3db30cc483d01c48f48635c61", "score": "0.61130667", "text": "@Override\n\t\t\tpublic void methodToCallBack() throws InterruptedException {\n\t\t\t\tThread.sleep(3000);\n\t\t\t\tSystem.out.println(\"haha\");\n\t\t\t}", "title": "" }, { "docid": "9052c79af6b394101453aba0eb7c520d", "score": "0.6067418", "text": "private void delay() throws InterruptedException{\n Thread.sleep(15000);\n }", "title": "" }, { "docid": "44d65ce0b1b25dd912df5bc926c7e357", "score": "0.59907496", "text": "@Scheduled(fixedDelay = 5*1000, initialDelay = 3000)\n void doStuff(){\n log.info(\"Job is running... \" + LocalDateTime.now());\n }", "title": "" }, { "docid": "566aeee8bbd8e3a1605160373b0ec78f", "score": "0.59754395", "text": "public void timer() {\n\t\tRunnable clientRunnable = new Runnable() {\n\t\t\tpublic void run() {\n\t\t\t\ttry {\n\t\t\t\t\t// set semaphore mutex to acquire\n\t\t\t\t\tmutex.acquire();\n\t\t\t\t\t// if there is at least one client connected...\n\t\t\t\t\tif (clients.size() > 0) {\n\t\t\t\t\t\tRandom rand = new Random(); // create instance of class Random\n\t\t\t\t\t\t// choose a random client from the client list by generating a\n\t\t\t\t\t\t// random number in the range of the connected clients\n\t\t\t\t\t\tchosen_client = clients.get(rand.nextInt(clients.size()));\n\t\t\t\t\t\t// generate a random number between 3 and 9 by generating a random\n\t\t\t\t\t\t// number between 0 and 6 and adding 3\n\t\t\t\t\t\ttime = Integer.toString(3 + rand.nextInt(7));\n\t\t\t\t\t\t// set the message for the GUI with the client username and random time\n\t\t\t\t\t\tview.getMessage().setText(\"Pausing \" + chosen_client + \" for \" + time + \" seconds.\");\n\t\t\t\t\t}\n\t\t\t\t\t// mutex error:\n\t\t\t\t} catch (InterruptedException e) {\n\t\t\t\t} finally {\n\t\t\t\t\tmutex.release(); // release mutex\n\t\t\t\t}\n\n\t\t\t}\n\t\t};\n\n\t\t// create the threadpool that will execute the runnable repeatedly\n\t\tScheduledExecutorService executor = Executors.newScheduledThreadPool(1);\n\t\t// schedule the timing of the task - set to 10 repeat every 10 seconds\n\t\texecutor.scheduleAtFixedRate(clientRunnable, 0, 10, TimeUnit.SECONDS);\n\t}", "title": "" }, { "docid": "7efb6f6b6093bb789a28685a0d2b2fe7", "score": "0.59737176", "text": "void scheduleScan() {\n nextScan = System.currentTimeMillis() + scanDelayMsec;\n }", "title": "" }, { "docid": "531b5123ca63f9382157a315e5c74083", "score": "0.5963174", "text": "public void teleopPeriodic() {\n \tScheduler.getInstance().run();\n }", "title": "" }, { "docid": "62ba470b0f6d9c7b2936d752f41334d4", "score": "0.5952484", "text": "public void teleopPeriodic() {\n \tupdateSmartDashboard(); //Continue running\n Scheduler.getInstance().run(); \n\n }", "title": "" }, { "docid": "a976468a6507d9c5805916409a08d084", "score": "0.59273803", "text": "@Override\r\n\tpublic void sleep() {\n\t\t\r\n\t}", "title": "" }, { "docid": "c060dbdb3a24acd1c9442ae218cbeb14", "score": "0.5919077", "text": "public void delay(){\n if(delay){\n try {\n Thread.sleep(1000);\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n }\n }", "title": "" }, { "docid": "e2da65a8510ee5b7181b93e9ca9ce028", "score": "0.58954895", "text": "private void schedule() {\n\t\tsynchronized (this) {\n\t\t\t//\n\t\t\t// cancel the previous schedule\n\t\t\t//\n\t\t\tif (schedule != null)\n\t\t\t\tschedule.cancel(false);\n\n\t\t\t//\n\t\t\t// Check the deadline\n\t\t\t//\n\t\t\tlong delay = deadline - System.currentTimeMillis();\n\t\t\tif (delay > 10) {\n\t\t\t\t//\n\t\t\t\t// Re schedule\n\t\t\t\t//\n\t\t\t\tschedule = scheduler.schedule(this::schedule, delay, TimeUnit.MILLISECONDS);\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\n\t\timmediate();\n\t}", "title": "" }, { "docid": "25886e9f9967908e85df06750260cdfe", "score": "0.58784145", "text": "@Override\n\t\t\t\tpublic void run() {\n\t\t\t\t\ttry {\n\t\t\t\t\t\tInteger randomSec = (int)(Math.random() * 5000);\n\t\t\t\t\t\tThread.sleep(randomSec);\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}", "title": "" }, { "docid": "4e33d91e54f2d88d3461d2df53858d5f", "score": "0.58767754", "text": "void randomSleep()\n\t{\n\t\ttry {\n\t\t\tThread.sleep(r.nextInt(20));\n\t\t} catch (InterruptedException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "title": "" }, { "docid": "a8bc011e1e02c88cdacb0ca79cf85f9a", "score": "0.58624053", "text": "private void runThis(){\n\t\tThread t = new Thread(new Runnable() {\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic void run() {\n\t\t\t\ttry {\n\t\t\t\t\tThread.sleep(3500);\n\t\t\t\t\tfinish();\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\tLog.e(\"[CancelAlarm]\", \"runThis():+ \"+ e.getMessage());\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\t\n\t\tt.start();\n\t}", "title": "" }, { "docid": "f0427aa109396bc78be8d8b80f73005d", "score": "0.5859968", "text": "public void updateGpsLoaction() {\n timer.scheduleAtFixedRate(new TimerTask() {\n @Override\n public void run() {\n if (counts == 20) {\n counts = 0;\n timer.cancel();\n timer = new Timer();\n } else {\n getDeviceLocation();\n GpsLocation gpsLocation = new GpsLocation();\n gpsLocation.setGpsLocation(currentposition, \"1990-03-01 22:22:22\");\n Call<GpsLocation> caller = proxy.setLastGpsLocation(currentUser.getId(), gpsLocation);\n ProxyBuilder.callProxy(LeaderMapActivity.this, caller, returnGps -> updateGpsResponse(returnGps));\n counts++;\n }\n }\n }, 0, 30000);\n }", "title": "" }, { "docid": "52f1475ecf236299045ed55fe6892a96", "score": "0.58543646", "text": "public void schedule(long delay) {\n collabFileHandler.getContext().schedule(this, delay);\n }", "title": "" }, { "docid": "07da34daeb82180dba364bf631d3f3ba", "score": "0.5853092", "text": "private void wait(Command command){\n timer += 30;\n }", "title": "" }, { "docid": "96c68a211c5346ea0f2b51b323b660ef", "score": "0.58443534", "text": "public void teleopPeriodic() {\n\t\tScheduler.getInstance().run();\n\t}", "title": "" }, { "docid": "96c68a211c5346ea0f2b51b323b660ef", "score": "0.58443534", "text": "public void teleopPeriodic() {\n\t\tScheduler.getInstance().run();\n\t}", "title": "" }, { "docid": "6921e8b3ba6f4953df2235ed6ec6a3c9", "score": "0.58199084", "text": "private void sleep(){\n\t\ttry {\n\t\t\tThread.sleep(5);\n\t\t} catch (InterruptedException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "title": "" }, { "docid": "0f04b02d145533864d812010ee193851", "score": "0.5808965", "text": "public void run() {\n\t\ttimer.scheduleAtFixedRate(pt, new Date(), 5000);\n\t}", "title": "" }, { "docid": "214aec166d68da232ddaa72864eda80b", "score": "0.5805273", "text": "@Override\r\n\tpublic void ejecutarFrame() {\r\n\t\ttry {\r\n\t\t\tThread.sleep(25);\r\n\t\t} catch (InterruptedException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "d6b825cff6eefce7b85595bb3488bd90", "score": "0.5790385", "text": "@Override\n\t\t\t\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\t\t\tThread.sleep(5000);\n\t\t\t\t\t\t\t\t\t\tcancelPay(2);\n\t\t\t\t\t\t\t\t\t} catch (InterruptedException e) {\n\t\t\t\t\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}", "title": "" }, { "docid": "4d3e8d2fa720a4a4476bf8b153c2bc55", "score": "0.5785953", "text": "@Override\n\tpublic void teleopPeriodic() {\n\t\tRobot.m_oi.updateSmartDashboard();\n\t\tScheduler.getInstance().run();\n\t}", "title": "" }, { "docid": "aa993bf6b407312c98229808219c4673", "score": "0.57854074", "text": "@Override\n\tpublic void run(int minutes) {\n\t}", "title": "" }, { "docid": "77dd2a40582206fed4d66e3e3c25cf17", "score": "0.5784011", "text": "public void teleopPeriodic() {\n Scheduler.getInstance().run();\n }", "title": "" }, { "docid": "77dd2a40582206fed4d66e3e3c25cf17", "score": "0.5784011", "text": "public void teleopPeriodic() {\n Scheduler.getInstance().run();\n }", "title": "" }, { "docid": "fa15922089a39894af1b57a633ef867a", "score": "0.57748914", "text": "@Override\r\n\t\t\tpublic void run() {\n\t\t\t\t\r\n\t\t\t\ttry {\r\n\t\t\t\t\tThread.sleep(500);\r\n\t\t\t\t} catch (InterruptedException e) {\r\n\t\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t}", "title": "" }, { "docid": "276bb4e5ee6ba771ff5c526beb3c5df0", "score": "0.57705843", "text": "public void scheduleUpload() {\n\t\tLog.d(\"Debug\", \"automate part start\");\n\t\tCalendar cal = Calendar.getInstance();\n\t\tcal.add(Calendar.SECOND, 10);\n\n\t\tIntent intent = new Intent(localcontext, serviceClassName.getClass());\n\n\t\tPendingIntent pintent = PendingIntent.getService(localcontext, 0, intent, 0);\n\n\t\tAlarmManager alarm = (AlarmManager) localcontext\n\t\t\t\t.getSystemService(Context.ALARM_SERVICE);\n\t\tint i;\n\t\ti = 15;\n\t\talarm.setRepeating(AlarmManager.RTC_WAKEUP, cal.getTimeInMillis(),\n\t\t\t\ti * 1000, pintent);\n\t\tLog.d(\"Debug\", \"automate part end\");\n\t}", "title": "" }, { "docid": "ba8061eace71e9be1b6f86e53ab9af30", "score": "0.57592976", "text": "public void oneXTime() {\n waitTime = 1000;\n }", "title": "" }, { "docid": "b45f77218c0fa5c73da65f95fd6086e3", "score": "0.57547814", "text": "public void teleopPeriodic() {\r\n Scheduler.getInstance().run();\r\n testIO();\r\n }", "title": "" }, { "docid": "ecc833422611459f1401f05903fe9e96", "score": "0.5754608", "text": "private void actionTriggerTimer() {\n\n\t\tif (this.timeoutFuture.cancel (false)) {\n\t\t\tthis.workQueue.execute (new Runnable() {\n\t\t\t\tpublic void run() {\n\t\t\t\t\tTrackerClient.this.stateMachine.input (Input.TIMEOUT);\n\t\t\t\t}\n\t\t\t});\n\t\t}\n\n\t}", "title": "" }, { "docid": "be3a3a32db747bdc1331c8dcd39d24d7", "score": "0.5751542", "text": "@Override\n\tpublic void sleep() {\n\t\t\n\t}", "title": "" }, { "docid": "be3a3a32db747bdc1331c8dcd39d24d7", "score": "0.5751542", "text": "@Override\n\tpublic void sleep() {\n\t\t\n\t}", "title": "" }, { "docid": "300d77b63f25e3e584600dead8ebb6d3", "score": "0.57439137", "text": "public void launchNotifier() {\n\n myTimer.scheduleAtFixedRate(myTask, 200, period);\n\n }", "title": "" }, { "docid": "cf91362e4b8c1bf92ce6e5cb6f6094fe", "score": "0.57433856", "text": "private void TimerMethod() {\n this.runOnUiThread(m_timer_tick);\n }", "title": "" }, { "docid": "f29f5d987db822591cc24d1b093e0bf0", "score": "0.5741261", "text": "public void autonomousPeriodic() {\n \tScheduler.getInstance().run();\n \n }", "title": "" }, { "docid": "ccad003c10a5ae0f2757bee4a13bf9de", "score": "0.5740544", "text": "public static void sleep() {\n\t\ttry {\n\t\t\tThread.sleep(500);\n\t\t} catch (InterruptedException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "title": "" }, { "docid": "d33fcc98e15c8741e2a09b6ea236a92a", "score": "0.57343113", "text": "public void tiempo() {\n try {\n TimerTask timerTask;\n timerTask = new TimerTask() {\n @Override\n public void run() {\n panel.grabar();\n }\n };\n timer.scheduleAtFixedRate(timerTask, 0, 1000);\n \n } catch (java.lang.IllegalStateException a) {\n } catch (java.lang.NullPointerException b) {\n }\n \n }", "title": "" }, { "docid": "b1f903a5f6f9981fe302b19f08ca80ba", "score": "0.5733824", "text": "protected void doRandomDelay() {\n\t\t\t}", "title": "" }, { "docid": "dd0d99c754f12faa2f130308e418f196", "score": "0.5733012", "text": "@Override\n\tvoid sleep() {\n\t\t\n\t}", "title": "" }, { "docid": "dd0d99c754f12faa2f130308e418f196", "score": "0.5733012", "text": "@Override\n\tvoid sleep() {\n\t\t\n\t}", "title": "" }, { "docid": "93b0d2e10c173a524e16df1c351f8f33", "score": "0.57309663", "text": "@Override\n\t\t\tpublic void run() {\n\t\t\t\ttry {\n\t\t\t\t\tThread.sleep(1500);\n\t\t\t\t}catch(InterruptedException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\t\t\t\t\n\t\t\t\tSystem.out.println(\"5.çalıştı\");\n\t\t\t}", "title": "" }, { "docid": "bf4975907a75c3c22860821ae38e67f0", "score": "0.5729067", "text": "public long runEvery();", "title": "" }, { "docid": "229a176bcbfdec4480a6d7052a737760", "score": "0.57257134", "text": "public void autonomousPeriodic() {\r\n Scheduler.getInstance().run();\r\n }", "title": "" }, { "docid": "46b5117a5d00e05b7e9b65bd5831fbe7", "score": "0.5714625", "text": "private void scheduleTimer() {\n\t\ttimer = new Timer();\n\t\ttimer.schedule(new TimerTask() {\n\t\t\t@Override\n\t\t\tpublic void run() {\n\t\t\t\tupdateModelImagePath(\"./snow/ground.png\");\n\t\t\t}\n\t\t}, 3000);\n\t}", "title": "" }, { "docid": "249130d03949c108ceb34f1d6af38cb3", "score": "0.57081807", "text": "@Test\n void setChargingTimer_charging() throws SQLException, InterruptedException {\n ParkSensorFile sensorFile = new ParkSensorFile(1, 150, 75, 30, \"1994_...\");\n //method to be tested is called with sensorFile\n srvInstance.setChargingTimer(sensorFile, 100000);\n // since battery is not fully charged, the method should be called with the initial battery percentage plus 1% increased\n sleep(500); //enough time for the timer thread to run\n verify(vehicleDB).updateScooterStatus(sensorFile, 75+1);\n }", "title": "" }, { "docid": "a16559951f4ecabaef97685fb6bcb5e6", "score": "0.56879956", "text": "@Async\n @Timer\n public void test(){\n log.info(\"M2\"+Thread.currentThread().getName());\n }", "title": "" }, { "docid": "f98e5f5246f9d646cc1ef52f7c6c8d73", "score": "0.56858724", "text": "public void autonomousPeriodic() {\n\n }", "title": "" }, { "docid": "f98e5f5246f9d646cc1ef52f7c6c8d73", "score": "0.56858724", "text": "public void autonomousPeriodic() {\n\n }", "title": "" }, { "docid": "3a3a075d76fa97b9dd783557cdf05223", "score": "0.568096", "text": "@Override\n\t\tprotected Void doInBackground(Void... params) {\n\t\t\ttry {\n\t\t\t\tThread.sleep(12000);\n\t\t\t} catch (InterruptedException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\treturn null;\n\t\t}", "title": "" }, { "docid": "5996a926625fb3298c24f691be99f9c3", "score": "0.56685746", "text": "private void doPeriodicWork() {\n\t}", "title": "" }, { "docid": "07769d5b6d706e301c8427dc58d489b3", "score": "0.5663393", "text": "public void autonomousPeriodic() {\r\n\r\n }", "title": "" }, { "docid": "11f3a60bcf42a24664e0e7640fe1eb3a", "score": "0.56613463", "text": "public void startMytimer() {\n Timer timer = new Timer();\n TimeoutCheckerInterface timeoutChecker = (l) -> {\n if(kill)\n return true;\n System.out.println(\"TIMERRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRR: \" + l);\n if(signal){\n signal = false;\n startMytimer();\n return true;\n }\n Boolean timeoutReached = l > maxRetries;\n if (timeoutReached) {\n\n update(new ExceptionEvent(\"Something went wrong, connection lost...\"));\n update(new LogoutSuccessful());\n return true;\n }\n return false;\n };\n\n\n TimerTask task = new TimeoutCounter(timeoutChecker);\n int initialDelay = 50;\n int delta = 1000;\n timer.schedule(task, initialDelay, delta);\n\n }", "title": "" }, { "docid": "0f9b46044d0ee61b4b2224dd55c292ed", "score": "0.56587", "text": "public void delay()\r\n\t{\r\n\t\ttry\r\n\t\t{\r\n\t\t\t//TimeUnit.SECONDS.sleep(1);\r\n\t\t\tThread.sleep(1000);\r\n\t\t}\r\n\t\tcatch(InterruptedException ex)\r\n\t\t{\r\n\t\t\tThread.currentThread().interrupt();\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "cb369f3a6bd4bcf40a1a0ab750938652", "score": "0.5657378", "text": "public void tenXTime() {\n waitTime = 100;\n }", "title": "" }, { "docid": "bb2812bcca86b1cb9d4745d21f671fca", "score": "0.56539476", "text": "public void autonomousPeriodic() {\r\n\t\tScheduler.getInstance().run();\r\n\t}", "title": "" }, { "docid": "ee273476c6a57052661a576f18022e09", "score": "0.5647987", "text": "@Override\n public void autonomousPeriodic() {\n \n }", "title": "" }, { "docid": "fc8dad51e6020c587c806a2970fb4f70", "score": "0.5642548", "text": "public void autonomousPeriodic() {\n Scheduler.getInstance().run();\n }", "title": "" }, { "docid": "fc8dad51e6020c587c806a2970fb4f70", "score": "0.5642548", "text": "public void autonomousPeriodic() {\n Scheduler.getInstance().run();\n }", "title": "" }, { "docid": "fc8dad51e6020c587c806a2970fb4f70", "score": "0.5642548", "text": "public void autonomousPeriodic() {\n Scheduler.getInstance().run();\n }", "title": "" }, { "docid": "5a4147b8868e1fa4bcbf8e6dec289b18", "score": "0.5641528", "text": "private static void delay() {\n\t\ttry {\n\t\t\tThread.sleep(DELAY);\n\t\t} catch (InterruptedException e) {}\n\t}", "title": "" }, { "docid": "18b80f592570f9d5329a686b61dde72d", "score": "0.5635624", "text": "@Override\n public void teleopPeriodic() {\n Scheduler.getInstance().run();\n }", "title": "" }, { "docid": "18b80f592570f9d5329a686b61dde72d", "score": "0.5635624", "text": "@Override\n public void teleopPeriodic() {\n Scheduler.getInstance().run();\n }", "title": "" }, { "docid": "ce98d6d8aaf2feac6792738ee4f25212", "score": "0.5634301", "text": "@Override\n\t\t\t\t\t\tpublic void remainFiveMinutes() {\n\t\t\t\t\t\t}", "title": "" }, { "docid": "69fd6f09f42d6369cdb94b4890ea53cd", "score": "0.563256", "text": "@Override\n\tpublic void teleopPeriodic() {\n\t\tScheduler.getInstance().run();\n\t}", "title": "" }, { "docid": "73ae98e10cc4ed5a0a276dcbda8f8a00", "score": "0.5629762", "text": "public void teleopPeriodic() {\n\t\tScheduler.getInstance().run();\n\t\tupdateStatus();\n\t}", "title": "" }, { "docid": "664bfd3efe2616d39fed069a493e13b6", "score": "0.56251556", "text": "private Callable<String> getTimer(long time) throws InterruptedException {\n\t\treturn new Callable<String>() {\n\t\t\t@Override\n\t\t\tpublic String call() throws Exception {\n\t\t\t\tThread.sleep(time); // this will cause a timeout\n\t\t\t\treturn \"Timer woke up\";\n\t\t\t}\n\t\t};\n\t}", "title": "" }, { "docid": "edd186091d6a1412622703b41bd4a8a9", "score": "0.5614546", "text": "@Override\n public void autonomousPeriodic() {\n SmartDashboard.putString(\"RobotStateInfo\",\"Auto Periodic\");\n\n teleoprunner.idle();\n\n }", "title": "" }, { "docid": "1206af5ba2500607ab420d66be0d30b5", "score": "0.5611996", "text": "private void TimerMethod() {\n this.runOnUiThread(Timer_Tick);\n }", "title": "" }, { "docid": "df8ef5b280c9903e97eb40bc9572c2de", "score": "0.56092674", "text": "private void time() {\n\t}", "title": "" }, { "docid": "ba112ae28593e45a3f0ccdd27786785c", "score": "0.56089115", "text": "public void startTimer() {\n timer = new Timer();\n\n timerTask = new TimerTask() {\n public void run() {\n // The current simple task is to go online to download weather data periodically.\n // When the temperature is above certain threshold value, alert the user\n String data = getAPI();\n if (data.length()>0) {\n Log.i(myId, \"Data = \" + data);\n if (checkTemperature(data)) {\n Intent broadcastIntent = new Intent(\"com.itp226.weatherapp.AlertReceiverIntent\");\n sendBroadcast(broadcastIntent);\n }\n }\n }\n };\n\n //schedule the timer to start after a delay and to execute every X second\n timer.schedule(timerTask, TimerDelay, TimerPeriod); //\n }", "title": "" }, { "docid": "83e7913ba557e39e5e47f3b900040dfd", "score": "0.56087434", "text": "@Override\n public void run() {\n handler.postDelayed(this, 5000);\n getbeaconDeviceDetails(device_id);\n }", "title": "" }, { "docid": "4b5fccb3b9d9697555eef61a9b27d5b3", "score": "0.5607456", "text": "void call(String msg) {\n\t\tSystem.out.print(\"[\" + msg);\n\n\t\ttry {\n\t\t\tThread.sleep(500);\n\t\t} catch (InterruptedException ie) {\n\t\t\tSystem.out.println(\"Interrupted\");\n\t\t}\n\t\t\n\t\tSystem.out.print(\"]\\n\");\n\t}", "title": "" }, { "docid": "aa02bdc4560afe237cf20bcf3bf9349f", "score": "0.5605639", "text": "public void Periodic() {\n }", "title": "" }, { "docid": "03e965084c91e2b03fa498959a4910da", "score": "0.5605014", "text": "public static void sleep() {\n sleep(DELAY);\n }", "title": "" }, { "docid": "7b4f0602d21d2670e34e07b063e5d0c4", "score": "0.5600827", "text": "void setSecondDelay(int secondDelay);", "title": "" }, { "docid": "417815b94775c1c4a657313cbe84343c", "score": "0.5599824", "text": "private void TimerMethod()\n\t{\n\t\tthis.runOnUiThread(Timer_Tick);\n\t}", "title": "" }, { "docid": "451498398fecd77f27b4cd6ecb1ad5bb", "score": "0.55979097", "text": "private void sleep() {\n\t\ttry {\n\t\t\tThread.sleep(1000*seconds);\n\t\t}\tcatch (InterruptedException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "title": "" }, { "docid": "4233a557e06c195c7a1fc2cbe845abd6", "score": "0.55968976", "text": "public void autonomousPeriodic() {\r\n Scheduler.getInstance().run();\r\n updateDashboard();\r\n }", "title": "" }, { "docid": "aa34a03974a3c118c75e04ba69dbb072", "score": "0.5590633", "text": "public static void delayedMove(AI ai, NimGameInstance gameInstance) {\n {\n new Timer().schedule(\n new TimerTask() {\n @Override\n public void run() {\n try {\n ai.move(gameInstance);\n } catch (ApiException e) {\n LOGGER.error(e.getMessage(), e);\n }\n }\n },\n 2000\n );\n }\n }", "title": "" }, { "docid": "08a941e9daec21d72f6001584432d741", "score": "0.5578593", "text": "void startTimer();", "title": "" }, { "docid": "c8ef1325c604014900fbf8dab1ee747c", "score": "0.55784065", "text": "public static void testScheduleAtFixedRate() {\r\n\t\ttask = initTask();\r\n\t\t\r\n\t\tscheduleThreadPoolExecutor.scheduleAtFixedRate(task, 15, 30, TimeUnit.SECONDS);\r\n\t}", "title": "" }, { "docid": "b9cdab0bf8f172660a697a03f7a2d8e8", "score": "0.55725557", "text": "@Override\n public void autonomousPeriodic() {\n Scheduler.getInstance().run();\n }", "title": "" }, { "docid": "b9cdab0bf8f172660a697a03f7a2d8e8", "score": "0.55725557", "text": "@Override\n public void autonomousPeriodic() {\n Scheduler.getInstance().run();\n }", "title": "" }, { "docid": "b9cdab0bf8f172660a697a03f7a2d8e8", "score": "0.55725557", "text": "@Override\n public void autonomousPeriodic() {\n Scheduler.getInstance().run();\n }", "title": "" }, { "docid": "ef828712cba9a5092b6f0a7717560f00", "score": "0.5570782", "text": "private void m291eG() {\n this.f312zo = m279a(this.f312zo);\n this.f312zo = new Timer(\"Service Reconnect\");\n this.f312zo.schedule(new C0598e(), 5000);\n }", "title": "" }, { "docid": "1595ad6ef574eb262407c442cf2fc730", "score": "0.5570081", "text": "public int delay();", "title": "" }, { "docid": "1555bbd4fed7e633678b19e69253af7f", "score": "0.5566521", "text": "@Override\n public void autonomousPeriodic() {\n Scheduler.getInstance().run();\n }", "title": "" }, { "docid": "7e17eaaf3c0a947245adb511153cc495", "score": "0.55663705", "text": "private void starTimer() {\n Runnable objRunnable = new Runnable() {\n @Override\n public void run() {\n\n }\n };\n\n Thread objBgThread = new Thread(objRunnable);\n objBgThread.start();\n\n //membuat method untuk menampilkan angka\n timerTask = new TimerTask() {\n @Override\n public void run() {\n runOnUiThread(new Runnable() {\n @Override\n public void run() {\n time++;\n timerTxt.setText(getTimerText4());\n timerTxt2.setText(getTimerText3());\n timerTxt3.setText(getTimerText2());\n timerTxt4.setText(getTimerText());\n }\n });\n\n }\n\n };\n timer.scheduleAtFixedRate(timerTask,0,1000);\n }", "title": "" }, { "docid": "4dc1b5503013273e10563121117c1c17", "score": "0.5561961", "text": "private void waitOneSecond() {\n try {\n Thread.sleep(1000);\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n }", "title": "" }, { "docid": "591cfcefeea6c8348587130f6e3cf27f", "score": "0.5554886", "text": "@Override\n\t\t\t\t\t\t\tpublic void remainFiveMinutes() {\n\t\t\t\t\t\t\t}", "title": "" } ]
c46df0b530b965993c577d35b9281c5c
/ helper method: find the next undealt card's index input: null output: integer of the index of the next undealt card return integer
[ { "docid": "35388ec57d1f522992a76b9e1e48444a", "score": "0.73601437", "text": "private int nextUndealtIndex() {\n\t\treturn 52 - _num_left_to_deal;\n\t}", "title": "" } ]
[ { "docid": "f687c646bb3323cd714c61bc77b1b857", "score": "0.7606215", "text": "int getCardIndex();", "title": "" }, { "docid": "33b511e11505f1cab693efaf81fa8fe4", "score": "0.6668928", "text": "public static int getSelectedCardIndex(Context ctx) {\n SharedPreferences sp = PreferenceManager.getDefaultSharedPreferences(ctx);\n\n // Second string in function call is value used if no value found in preferences\n int cardId = sp.getInt(\"selectedCardId\", -1);\n\n if (cardId == -1) {\n return 0;\n }\n\n ArrayList<Card> cards = getCards(ctx);\n\n int index = 0;\n for (Card c : cards) {\n if (c.getCard_id() == cardId) {\n return index;\n }\n index++;\n }\n\n // Not found default to 0\n return -1;\n }", "title": "" }, { "docid": "b96681512f276ea08a5e83bbd9388d0d", "score": "0.6664779", "text": "public int getCardIndex(Card card) {\n \tint suit=0;\n\t\tif(card.getSuit().getDisplayName().equals(\"Hearts\")){\n\t\t\tsuit=0;\t\n\t\t}else if(card.getSuit().getDisplayName().equals(\"Diamonds\")){\n\t\t\tsuit=1;\t\n\t\t}\n\t\telse if(card.getSuit().getDisplayName().equals(\"Spades\")){\n\t\t\tsuit=2;\t\n\t\t}\n\t\telse if(card.getSuit().getDisplayName().equals(\"Clubs\")){\n\t\t\tsuit=3;\t\n\t\t}\n\t\treturn suit*13+card.getValue();\n \n }", "title": "" }, { "docid": "f67071e72e219b20a2d01f98c704c742", "score": "0.65609235", "text": "int getKouDiCardData(int index);", "title": "" }, { "docid": "ef6efd0fa216ed96c2a051fff1399874", "score": "0.6525503", "text": "private int cardPos(Card card, List<Card> cardsInPlay) { \n\t\tfor (int i = 0; i < cardsInPlay.size(); i++) {\n\t\t\tif (cardsInPlay.get(i) == card) {\n\t\t\t\treturn i;\n\t\t\t}\n\t\t\t\n\t\t}\n\t\treturn -1;\n\t}", "title": "" }, { "docid": "36950315c5d811afe0aa68d76cfa1b6d", "score": "0.64836913", "text": "public int getIndexOfCard(Card card) {\n\t\treturn cards.indexOf(card);\n\t}", "title": "" }, { "docid": "d39669c22745bd20bd52c37d1122025d", "score": "0.64510316", "text": "public int indexOf(Card card)\n {\n for(int i = 0; i < size; i++)\n {\n if(internalArray[i].compareTo(card) == 0) return i;\n }\n \n return -1;\n }", "title": "" }, { "docid": "0ccf2099e427061f93b92be1ef505199", "score": "0.63620317", "text": "public static int valueOfCard(Card card)\n {\n\n // It traverses the valuRanks and check which matches the card value\n // Then it returns the index position as the value\n for (int value = 0; value < valuRanks.length; value++)\n {\n if (card.getValue() == valuRanks[value])\n {\n return value;\n }\n }\n return -1;\n }", "title": "" }, { "docid": "dd8b12e94cb9462c7bb154f101175eb2", "score": "0.634928", "text": "private int findNextQueue() {\n for (int i = 0; i < wheel[0].length; i++) {\n int index = (clockHand[0] + i) % wheel[0].length;\n if (!wheel[0][index].isEmpty()) {\n return index;\n }\n }\n return -1;\n }", "title": "" }, { "docid": "cad13f6f2ce640e2b5523628e1582b4f", "score": "0.6330342", "text": "protected int getNextIndex()\n {\n int index = _index;\n _index = index + 1;\n return index;\n }", "title": "" }, { "docid": "e5dbcf66cdc857af4c1b5bc90c2660cd", "score": "0.63032347", "text": "private int findNextIndex(){\n //returns SIZE if at the end of the list, wont increment\n //else current will be at the next non null index.\n if (current <= size -1){\n current++;\n while (current < size -1 && map[current] == null) { \n current++;\n }\n if(current == size)\n return current;\n if (map[current]== null) {//must be at end\n return current++;//size\n }\n return current;\n } else{\n return size;\n }\n \n }", "title": "" }, { "docid": "b1bf94284fe9d709081a2fe1ca9fd317", "score": "0.6257123", "text": "public int getCardIndex() {\n return cardIndex_;\n }", "title": "" }, { "docid": "0560b490158c9f27271e4ea48d8036f4", "score": "0.6237892", "text": "public int findFirstAvailablePosition()\n {\n int index = 0;\n while (index < players.length && players[index] != null) index++;\n return (index == players.length || players[index] != null) ? -1 : index;\n }", "title": "" }, { "docid": "0b40611c7accc05f37952f8983e1bf08", "score": "0.6205528", "text": "public Integer gethandPlayerCard(int index){\n return myHand.get(index).cardPlayer;\n }", "title": "" }, { "docid": "3aa1857ecb52ec87e9623afd96b3e3d7", "score": "0.61790156", "text": "public int getIntValueFromCard(char card) {\r\n\r\n switch (card) {\r\n case 'A':\r\n return 11;\r\n case 'K':\r\n return 10;\r\n case 'Q':\r\n return 10;\r\n case 'J':\r\n return 10;\r\n case 'T':\r\n return 10;\r\n case '9':\r\n return 9;\r\n case '8':\r\n return 8;\r\n case '7':\r\n return 7;\r\n case '6':\r\n return 6;\r\n case '5':\r\n return 5;\r\n case '4':\r\n return 4;\r\n case '3':\r\n return 3;\r\n case '2':\r\n return 2;\r\n default:\r\n return 0;\r\n\r\n }\r\n }", "title": "" }, { "docid": "4e45ea8c560faf5b1dafb49ea0eb8376", "score": "0.61737555", "text": "Card getCard(int index);", "title": "" }, { "docid": "05e42f2186f7b8654aa3187a4a48f6ec", "score": "0.61643565", "text": "private int nextTrackFromCard() {\n if (mFilenames == null || mFilenames.length <= 0) {\n // Fill the filename list and return the first position.\n mFilenames = getMusicList();\n Log.d(TAG, \"All filenames: \" + Arrays.toString(mFilenames));\n // Still nothing? Go back with an invalid position.\n if (mFilenames.length <= 0) {\n Log.e(TAG, \"Baby music has no files.\");\n return INVALID_POSITION;\n }\n }\n return mRandom.nextInt(mFilenames.length);\n }", "title": "" }, { "docid": "54428ddf8885b23b0ee70c534735333e", "score": "0.61511236", "text": "public int peek() {\n\t\tif (isEmpty()) {\n\t\t\tthrow new NoSuchElementException(); \n\t\t}\n\t\treturn cards.get(cards.size() - 1); \n\t}", "title": "" }, { "docid": "97601103a873d885de54159b4612ad2a", "score": "0.61320686", "text": "public int getCardIndex() {\n return cardIndex_;\n }", "title": "" }, { "docid": "188ceb80b36678b91dc93e12160b8990", "score": "0.606254", "text": "int getKey() {\n\t\t// COMPLETE THIS METHOD\n\t\t// THE FOLLOWING LINE HAS BEEN ADDED TO MAKE THE METHOD COMPILE\n\t\tint cardnumber;\n\t\tif(deckRear.next.cardValue==28){\n\t\t\tcardnumber=27;\n\t\t}\n\t\telse{\n\t\t\tcardnumber=deckRear.next.cardValue;\n\t\t}\n\t\tint count=1;\n\t\tCardNode current=deckRear.next;\n\t\twhile(current.cardValue!=deckRear.cardValue){ \n\t\t\tif(count==cardnumber){\n\t\t\t\tif(current.next.cardValue==27||current.next.cardValue==28){\n\t\t\t\t\tjokerA();\n\t\t\t\t\tjokerB();\n\t\t\t\t\ttripleCut();\n\t\t\t\t\tcountCut();\n\t\t\t\t\tcurrent=deckRear;\n\t\t\t\t\tcount=0;\n\t\t\t\t\tcardnumber=deckRear.next.cardValue;\n\t\t\t\t\tif(deckRear.next.cardValue==28){\n\t\t\t\t\t\tcardnumber=27;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\tint key=current.next.cardValue;\n\t\t\t\t\treturn key;\n\t\t\t\t}\n\t\t\t}\n\t\t\tcurrent=current.next;\n\t\t\tcount++;\n\t\t}\n\t\t\n\t \n\t\treturn -1;\n\t}", "title": "" }, { "docid": "572716265052ef1bd894f4db8055ba50", "score": "0.6042001", "text": "public Card getNext()\n {\n if(hasNext() == true)\n {\n nextCardIndex++;\n return cards.get(nextCardIndex-1);\n }\n else\n {\n return null;\n }\n //You can call hasNext() within this method to see if you should return\n //a card or null\n }", "title": "" }, { "docid": "75d761b77a65894e6565f9958ef15b6d", "score": "0.599697", "text": "public int nextIdx(){\n return Collections.min(charToIdx.values());\n }", "title": "" }, { "docid": "7d93faace603a44d2bbe2b7740e84465", "score": "0.59895635", "text": "public abstract int getNext();", "title": "" }, { "docid": "ae3976c5b4dda93cf845b4ca2de96ba0", "score": "0.59890646", "text": "private int findNextIndex(int[] arr,boolean isForward,int currentIndex){\n boolean direction = arr[currentIndex]>0;\n if(direction!=isForward)\n return -1;\n\n int nextIndex = (currentIndex+arr[currentIndex])%arr.length;\n if(nextIndex<0)\n nextIndex +=arr.length;\n\n if(currentIndex == nextIndex)\n return -1;\n\n return nextIndex;\n }", "title": "" }, { "docid": "2deac2a4ecf57cdade616e45857489fc", "score": "0.5987372", "text": "int getKey() \n\t{\n\t\tint key = -1;\n\t\tint count = 1;\n\t\tint firstcardValue = deckRear.next.cardValue;\n\t\tif(firstcardValue == 28)\n\t\t\tfirstcardValue = 27;\n\t\tCardNode place = deckRear.next;\n\t\twhile(place != deckRear)\n\t\t{\n\t\t\tif (count == firstcardValue)\n\t\t\t{\n\t\t\t\tif(place.next.cardValue == 27 || place.next.cardValue == 28)\n\t\t\t\t{\n\t\t\t\t\tjokerA();\n\t\t\t\t\tjokerB();\n\t\t\t\t\ttripleCut();\n\t\t\t\t\tcountCut();\n\t\t\t\t\tplace = deckRear;\n\t\t\t\t\tcount = 0;\n\t\t\t\t\tfirstcardValue = deckRear.next.cardValue;\n\t\t\t\t\tif(firstcardValue == 28)\n\t\t\t\t\t\tfirstcardValue = 27;\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tkey = place.next.cardValue;\n\t\t\t\t\treturn key;\n\t\t\t\t}\n\t\t\t}\n\t\t\tplace = place.next;\n\t\t\tcount++;\n\t\t}\n\t return key;\n\t}", "title": "" }, { "docid": "26babfb244eb2b3877f5e1ce18c8eaf0", "score": "0.59834933", "text": "int getNext();", "title": "" }, { "docid": "e62297db3891b7a190990653317a6fff", "score": "0.59826434", "text": "protected final int succ (int index)\n {\n return (index+1)%capacity;\n }", "title": "" }, { "docid": "b68d4a76199a02bc39b56bdfbc8e1ae2", "score": "0.5957549", "text": "public int getNextCode() {\n/* */ try {\n/* 302 */ this.nextData = this.nextData << 8 | this.srcData[this.srcIndex++] & 0xFF;\n/* 303 */ this.nextBits += 8;\n/* */ \n/* 305 */ if (this.nextBits < this.bitsToGet) {\n/* 306 */ this.nextData = this.nextData << 8 | this.srcData[this.srcIndex++] & 0xFF;\n/* 307 */ this.nextBits += 8;\n/* */ } \n/* */ \n/* 310 */ int code = this.nextData >> this.nextBits - this.bitsToGet & andTable[this.bitsToGet - 9];\n/* */ \n/* 312 */ this.nextBits -= this.bitsToGet;\n/* */ \n/* 314 */ return code;\n/* 315 */ } catch (ArrayIndexOutOfBoundsException e) {\n/* */ \n/* 317 */ return 257;\n/* */ } \n/* */ }", "title": "" }, { "docid": "1d2447b51515e2647897924a4a93db9a", "score": "0.5954416", "text": "public int getSelectedCardIndex()\n {\n return this.selectedCardIndex;\n }", "title": "" }, { "docid": "7e213494ecb4f4506d419fbeea3277c9", "score": "0.5947174", "text": "public int findNextPresent(@Nonnull IInventory inv) {\n for (int i = 0; i < inv.getSizeInventory(); ++i) {\n if (inv.getStackInSlot(i) != null) return i;\n }\n return -1;\n }", "title": "" }, { "docid": "5c71f8fb8e4f56eb4b4852be5719b8c6", "score": "0.59400624", "text": "private int nextTurn() {\n if (ti < turns.length) {\n return turns[ti++];\n } else {\n return -1;\n }\n }", "title": "" }, { "docid": "fc232232ccdc35493ddf519d9e59084a", "score": "0.59399927", "text": "boolean hasCardIndex();", "title": "" }, { "docid": "81105785a22d53edc230cfa94f22b671", "score": "0.59297466", "text": "public static int findSlot() {\n\t\tfor(int i=0;i<100;i++) {\n\t\t\tif(carSlotNo[i]==null || carSlotNo[i]==\"\")\n\t\t\t\treturn i;\n\t\t}\n\t\treturn -1;\n\t}", "title": "" }, { "docid": "9e5cb7396353ec7ab801559e152e0363", "score": "0.5908767", "text": "@Override\n public int getNext() {\n this.index++;\n if (this.index < numIndices)\n return indices[index];\n\n return -1;\n }", "title": "" }, { "docid": "9a13200d92468d17a5bff1ba385809c5", "score": "0.5905885", "text": "@Override\n\tpublic int getNextValue() {\n\t\tStatement stmt=null;\n\t\tConnection conn=null;\n\t\tResultSet rs=null;\n\t\tint i=0;\n\ttry{\n\t\tconnection = new ConnectionOpr();\n\t\t\tconn=connection.getConnection();\n\t\t\tstmt = conn.createStatement();\n\t\t \n\t\t String sql = \"SELECT decoId FROM decoding order by decoId desc LIMIT 1\";\n\t\t rs = stmt.executeQuery(sql);\n\t\t \n\t\t if(rs.next()){\n\t\t \t i=rs.getInt(\"decoId\");\n\t\t \t \n\t\t \t \n\t\t }\n\t\t}catch(Exception e){\n\t\t\te.printStackTrace();\n\t\t}finally{\n\t\t\t\n\t\t\ttry {\n\t\t\t\trs.close();\n\t\t\t\tstmt.close();\n\t\t\t\tconn.close();\n\t\t\t\t\n\t\t\t} catch (SQLException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t}\n\t\ti++;\n\t\treturn i;\n\t}", "title": "" }, { "docid": "10c58c3f0d6c86cecc44e0ab23239889", "score": "0.5889869", "text": "com.zy17.protobuf.domain.Eng.Card getCard(int index);", "title": "" }, { "docid": "f73ab08018a853fcdc04c57114eb8cec", "score": "0.5876668", "text": "private int getNextIndex(int index) {\n return (index + 1) & this.mask;\n }", "title": "" }, { "docid": "34589232ff9f9897f27e98c14081fa17", "score": "0.5873636", "text": "public Cards dealingNextCard() {\r\n\r\n\t\tCards topCard = this.cardsInDeck[0];\r\n\r\n\t\t// remove this card\r\n\r\n\t\tfor (int c = 1; c < this.numOfCardsInDeck; c++) {\r\n\r\n\t\t\tthis.cardsInDeck[c - 1] = this.cardsInDeck[c];\r\n\t\t}\r\n\r\n\t\tthis.cardsInDeck[this.numOfCardsInDeck - 1] = null;\r\n\t\tthis.numOfCardsInDeck--;\r\n\r\n\t\treturn topCard;\r\n\t}", "title": "" }, { "docid": "203eb9238a7b321dd0c700cb20c89f58", "score": "0.5860265", "text": "int getIndex();", "title": "" }, { "docid": "203eb9238a7b321dd0c700cb20c89f58", "score": "0.5860265", "text": "int getIndex();", "title": "" }, { "docid": "203eb9238a7b321dd0c700cb20c89f58", "score": "0.5860265", "text": "int getIndex();", "title": "" }, { "docid": "203eb9238a7b321dd0c700cb20c89f58", "score": "0.5860265", "text": "int getIndex();", "title": "" }, { "docid": "203eb9238a7b321dd0c700cb20c89f58", "score": "0.5860265", "text": "int getIndex();", "title": "" }, { "docid": "203eb9238a7b321dd0c700cb20c89f58", "score": "0.5860265", "text": "int getIndex();", "title": "" }, { "docid": "203eb9238a7b321dd0c700cb20c89f58", "score": "0.5860265", "text": "int getIndex();", "title": "" }, { "docid": "203eb9238a7b321dd0c700cb20c89f58", "score": "0.5860265", "text": "int getIndex();", "title": "" }, { "docid": "203eb9238a7b321dd0c700cb20c89f58", "score": "0.5860265", "text": "int getIndex();", "title": "" }, { "docid": "38f0d2d1af6a49b248bf88e0783600ca", "score": "0.58569074", "text": "public int findNextPresentFromEnd(@Nonnull IInventory inv) {\n for (int i = inv.getSizeInventory() - 1; i >= 0; --i) {\n if (inv.getStackInSlot(i) != null) return i;\n }\n return -1;\n }", "title": "" }, { "docid": "703406395e31bb37be6c0b10c48617e4", "score": "0.5849874", "text": "@Override\r\n\t\t\t\t\t\t\tpublic int nextIndex() {\r\n\t\t\t\t\t\t\t\t// TODO Auto-generated method stub\r\n\t\t\t\t\t\t\t\treturn index + 1;\r\n\t\t\t\t\t\t\t}", "title": "" }, { "docid": "1f8e5713e4fe2f4883ee0715b3090e39", "score": "0.5844443", "text": "public int getNextBlockToPlayIn()\r\n\t{\r\n\t\treturn nextMoveInBlockNumber;\r\n\t}", "title": "" }, { "docid": "1b2a92d22b6e2c5bf49aeb15069db079", "score": "0.58370197", "text": "@Override\n public synchronized int getNext() {\n return index++;\n }", "title": "" }, { "docid": "7c58cfd3240353b4f3759fb84f064560", "score": "0.58209", "text": "public int next(double seed) {\n int index = Arrays.binarySearch(this.cpf, seed);\n return index >= 0 ? index : -(index + 1);\n }", "title": "" }, { "docid": "705ca134601b206e2aa4d1af1e8a6cab", "score": "0.58188087", "text": "public int nextIndex(int index) {\n int result = getSuccessor(index);\n if (result == -2) {\n return -1;\n }\n return result;\n }", "title": "" }, { "docid": "8e3b6c94be1097af27452507b3354f7d", "score": "0.5808061", "text": "public static int GetIndexCC(List<CreditCard> CClist, Scanner in) {\n\t\tboolean isInputValid;\r\n\t\tint Index = -1;\r\n\r\n\t\tdo {\r\n\t\t\tSystem.out.println(\"Please, enter the card number\");\r\n\t\t\tSystem.out.println(\"XXXX-XXXX-XXXX-XXXX\");\r\n\t\t\tString eCardNumber = in.nextLine();\r\n\t\t\tisInputValid = Pattern.matches(\"^[0-9]{4}-[0-9]{4}-[0-9]{4}-[0-9]{4}$\", eCardNumber);\r\n\r\n\t\t\tif (!isInputValid) {\r\n\t\t\t\tSystem.out.println(\"Please, enter the correct CC number\");\r\n\t\t\t\tSystem.out.println(\"\");\r\n\t\t\t\tcontinue;\r\n\t\t\t}\r\n\t\t\tisInputValid = false;\r\n\t\t\tfor (int i = 0; i < CClist.size(); i++) {\r\n\t\t\t\tif (eCardNumber.equals(CClist.get(i).NumberCC)) {\r\n\t\t\t\t\tIndex = i;\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\r\n\t\t\t}\r\n\t\t\tif ((Index >= 0) && (!CClist.get(Index).Active)) {\r\n\t\t\t\tSystem.out.println(\"Your CC is bloacked\");\r\n\t\t\t\tSystem.out.println(\"\");\r\n\t\t\t} else if (Index < 0) {\r\n\r\n\t\t\t\tSystem.out.println(\"Such CC doesn't exist\");\r\n\t\t\t\tSystem.out.println(\"\");\r\n\t\t\t} else {\r\n\t\t\t\tisInputValid = true;\r\n\t\t\t}\r\n\r\n\t\t} while (!isInputValid);\r\n\r\n\t\treturn Index;\r\n\t}", "title": "" }, { "docid": "25ca5d68a9f764bbcb52f227cfd8ecb2", "score": "0.5796204", "text": "private int random() {//generate a random number to use as an index of cards\r\n Random rand = new Random();\r\n return rand.nextInt(9);\r\n }", "title": "" }, { "docid": "a3f127bf9230fcec491ac08475888de8", "score": "0.57888514", "text": "int getInt(int index);", "title": "" }, { "docid": "a3bd3553c183e633b64c83cd350c0e7e", "score": "0.57887423", "text": "Integer getStakeHolderIndex();", "title": "" }, { "docid": "19c53c01cd675640c70fe0cb4728e9f6", "score": "0.57655907", "text": "public Integer nextElement() {\n\t\t\tint range = size*32;\n\t\t\tfor(int i=curIndex;i<range;i++) {\n\t\t\t\tif(get(i)) {\n\t\t\t\t\tcurIndex = i+1;\n\t\t\t\t\treturn i;\n\t\t\t\t}\n\t\t\t}return null;\n\t\t}", "title": "" }, { "docid": "fb7ad424cfab536eb1aca64b5eb9c244", "score": "0.57650393", "text": "public int getNumCards()\n {\n return topCard;\n }", "title": "" }, { "docid": "db8814c8ad59554d8251efc89d17ecca", "score": "0.5761239", "text": "@Override\r\n\t\tpublic int nextIndex()\r\n\t\t{\r\n\t\t\treturn this.idx;\r\n\t\t}", "title": "" }, { "docid": "8d0fd9a92082a0a7a46dd91a7e78a845", "score": "0.57480323", "text": "@Override\n public int nextIndex() {\n if (!hasNext()) {\n return -1;\n }\n return indexOf(current.getNext());\n // END\n }", "title": "" }, { "docid": "9fc04956831fb915892580f35c699d4e", "score": "0.57445073", "text": "public int nextIndex() {\n\t\t\t\treturn index+1;\n\t\t\t}", "title": "" }, { "docid": "4100bc350d83c7f26d2532365c35d63d", "score": "0.57424116", "text": "public int drawCard() {\n\t\tArrayList<TrainCard> cards = super.getFaceUpCards();\n\t\tfor (int i = 0; i < cards.size(); i++) {\n\t\t\tif (cards.get(i).getColor().equals(TrainCardColor.rainbow)) {\n\t\t\t\treturn i + 1;\n\t\t\t}\n\t\t}\n\t\treturn 0;\n\t}", "title": "" }, { "docid": "82f4588cb8bb0f8def3e0c89ef114ae0", "score": "0.57324153", "text": "public Card dealCard(){\n if ( topCard != 0 )\n {\n topCard--;\n }\n\n return cards[topCard];\n }", "title": "" }, { "docid": "69eb8eda700d58a3dcb25a71d6bda3ee", "score": "0.57314813", "text": "int currentIndex();", "title": "" }, { "docid": "76ae8006790ea44e167c1f3e4448cbcc", "score": "0.5721564", "text": "public int getIndex()\r\n/* 293: */ {\r\n/* 294:430 */ return this.index;\r\n/* 295: */ }", "title": "" }, { "docid": "df4db75c29619d824f689b1611408829", "score": "0.57187957", "text": "private final int[] nextBeforehand() {\n\t\t\t\tif (fPartitionsIndex[0] < 0) {\n\t\t\t\t\tfor (int i = 0; i < fNumberOfParts; ++i) {\n\t\t\t\t\t\tfPartitionsIndex[i] = i;\n\t\t\t\t\t}\n\t\t\t\t\treturn fPartitionsIndex;\n\t\t\t\t} else {\n\t\t\t\t\tint i = 0;\n\t\t\t\t\tfor (i = fNumberOfParts - 1; (i >= 0)\n\t\t\t\t\t\t\t&& (fPartitionsIndex[i] >= fLength - fNumberOfParts + i); --i) {\n\t\t\t\t\t}\n\t\t\t\t\tif (i <= 0) {\n\t\t\t\t\t\treturn null;\n\t\t\t\t\t}\n\t\t\t\t\tfPartitionsIndex[i]++;\n\t\t\t\t\tfor (int m = i + 1; m < fNumberOfParts; ++m) {\n\t\t\t\t\t\tfPartitionsIndex[m] = fPartitionsIndex[m - 1] + 1;\n\t\t\t\t\t}\n\t\t\t\t\treturn fPartitionsIndex;\n\t\t\t\t}\n\t\t\t}", "title": "" }, { "docid": "9a7d86a0f1627683d9fcbe1f0f73f84d", "score": "0.57132524", "text": "private int nextIndex(final int index)\n\t{\n\t\treturn (index + 1) % keys.length;\n\t}", "title": "" }, { "docid": "83cebd5f3c40e07f660131af4832e0b5", "score": "0.5699051", "text": "int getPreviousIndex();", "title": "" }, { "docid": "0eb4eb0fb16fea19645afc27daf3789f", "score": "0.56946933", "text": "@Override\n public int nextIndex() {\n return index; //////////END\n // END\n }", "title": "" }, { "docid": "86cb506af682dc29413bab4cf6311f7a", "score": "0.56874025", "text": "int binarySearch(Card card, int startIndex, int endIndex);", "title": "" }, { "docid": "dae5430fc088ffd0fbd1aa0b4d982461", "score": "0.56789696", "text": "public Card dealNextCard() {\n\t\tif (_num_left_to_deal== 0) {\n\t\t\tthrow new RuntimeException();\n\t\t}\n\t\tCard dealt_card = _new_deck[nextUndealtIndex()];\n\t\t_num_left_to_deal -= 1;\n\t\treturn dealt_card;\n\t}", "title": "" }, { "docid": "ba2d17c8e9a11d9ee38792f8a5f8a8a6", "score": "0.566692", "text": "public int findNextEmpty(@Nonnull IInventory inv) {\n for (int i = 0; i < inv.getSizeInventory(); ++i) {\n if (inv.getStackInSlot(i) == null) return i;\n }\n return -1;\n }", "title": "" }, { "docid": "29e2d5ec73ba0ecae993a48757cc02a4", "score": "0.56647635", "text": "long getIndexTurnover();", "title": "" }, { "docid": "2196dee1836e57b1c1b658e21e19fa87", "score": "0.5659147", "text": "public int nextIndex() {\n return connectedPlayers++;\n }", "title": "" }, { "docid": "b15859003c42b8d8bf02da8bba951392", "score": "0.56540704", "text": "int getNextPossibleindex(long hashCode, int comCode, int j)\r\n\t{\r\n\t\t// Implementing q-k mod q\r\n\t\t// since the q-k can obtain negative mod value\r\n\t\t// so Implementing (((q-k)%q)+q)%q\r\n\t\tint secondHash = (int) (((DOUBLE_HASH_CONST - hashCode) % DOUBLE_HASH_CONST) + DOUBLE_HASH_CONST)\r\n\t\t\t\t% DOUBLE_HASH_CONST;\r\n\r\n\t\t// computing function f(j)\r\n\t\tint func = j * secondHash;\r\n\t\tint index = (comCode + func) % HASH_TABLE_CAPACITY;\r\n\t\treturn index;\r\n\t}", "title": "" }, { "docid": "1b6b03b99527a5720980cb4cbcab302a", "score": "0.5647019", "text": "IntVar getCard();", "title": "" }, { "docid": "1e9904885549a720ba6ad0b298283146", "score": "0.5642719", "text": "public int nextNoeud()\r\n {\r\n \r\n while( !nonTraiter.isEmpty() ){\r\n Noeud n = nonTraiter.poll();\r\n if( !traiter[n.id] ){ //return false si pas traité\r\n return n.id;\r\n }\r\n }\r\n return -1;\r\n }", "title": "" }, { "docid": "68dd9ed023582ac5c8b27fce1b5bf72d", "score": "0.5635967", "text": "public int getTopCard(){\n return pile.get(pile.size()-1);\n }", "title": "" }, { "docid": "7defa737895312e42bb505462e5b35ab", "score": "0.5632228", "text": "long getNextOffset();", "title": "" }, { "docid": "96848af726302f8f3b09df501015af68", "score": "0.561583", "text": "private int getIndex(int p) {\r\n return 0;\r\n }", "title": "" }, { "docid": "4e2cc63c6dbf0cab16747c326c6997ca", "score": "0.5609543", "text": "public int getNextIndexToLoad() {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e5 in method: android.widget.RemoteViewsAdapter.FixedSizeRemoteViewsCache.getNextIndexToLoad():int, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: android.widget.RemoteViewsAdapter.FixedSizeRemoteViewsCache.getNextIndexToLoad():int\");\n }", "title": "" }, { "docid": "9267f84a5bbb5726b968e01ea3d74b1e", "score": "0.5606995", "text": "protected int NextIndexToAdd() {\n return (last_block_added + 1) * kBlockSize;\n }", "title": "" }, { "docid": "29b8d84bdae418cc157e07c23866f8a0", "score": "0.56044286", "text": "public static int getNextInClockwiseSequence (int pidx)\n {\n // 0\n // 3 1\n // 2\n return (pidx + 1) & 3;\n }", "title": "" }, { "docid": "bcdbbcba5cb7e40630ea67c9bdbf77df", "score": "0.5592575", "text": "public int updateNextPlayer() {\n\t\tif(playDirection) {// play direction is to the right\n\t\t\tif(lastPlayedCard.value==11) {// lastPlayedCard is Reverse\n\t\t\t\tif(lastPlayer-1<0) {\n\t\t\t\t\tlastPlayer = lastPlayer-1+playerNumber;\n\t\t\t\t}else {\n\t\t\t\t\tlastPlayer -= 1;\n\t\t\t\t}\n\t\t\t\tplayDirection = false; // reverse the play direction\n\t\t\t\treturn lastPlayer;\n\t\t\t}else if(lastPlayedCard.value==10) {// lastPlayedCard is Skip\n\t\t\t\tlastPlayer = (lastPlayer+2)%playerNumber;\n\t\t\t\treturn lastPlayer;\n\t\t\t}else {// lastPlayedCard is normal card\n\t\t\t\tlastPlayer = (lastPlayer+1)%playerNumber;\n\t\t\t\treturn lastPlayer;\n\t\t\t}\t\t\t\t\n\t\t}else {// play direction is to the left\n\t\t\tif(lastPlayedCard.value==11) {// lastPlayedCard is Reverse\n\t\t\t\tlastPlayer = (lastPlayer+1)%playerNumber;\n\t\t\t\tplayDirection = true; // reverse the play direction\n\t\t\t\treturn lastPlayer;\n\t\t\t}else if(lastPlayedCard.value==10) {// lastPlayedCard is Skip\n\t\t\t\tif(lastPlayer-2<0) {\n\t\t\t\t\tlastPlayer = lastPlayer-2+playerNumber;\n\t\t\t\t}else {\n\t\t\t\t\tlastPlayer -= 2;\n\t\t\t\t}\n\t\t\t\treturn lastPlayer;\n\t\t\t}else {// lastPlayedCard is normal card\n\t\t\t\tif(lastPlayer-1<0) {\n\t\t\t\t\tlastPlayer = lastPlayer-1+playerNumber;\n\t\t\t\t}else {\n\t\t\t\t\tlastPlayer -= 1;\n\t\t\t\t}\n\t\t\t\treturn lastPlayer;\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "9751de906aac5f74556fdfca3d06838b", "score": "0.5589092", "text": "private int getPos(int index) {\r\n return 0;\r\n }", "title": "" }, { "docid": "da69167b51abdd5eaeae63bc8233ce19", "score": "0.55864954", "text": "public Card choiceCard(){\n int index;\n Scanner scan = new Scanner(System.in);\n System.out.println(\"You have to choose a card to discard. These are your cards:\");\n printHand();\n System.out.println(\"Which one you want to discard? (insert number betwen 1 and \"+hand.size()+\")\");\n do{\n index = scan.nextInt();\n }while(index < 1 || index > hand.size());\n return hand.get(index-1);\n }", "title": "" }, { "docid": "5026f1d76b72c48d453766edefacb91b", "score": "0.55780274", "text": "public int getIndex();", "title": "" }, { "docid": "5026f1d76b72c48d453766edefacb91b", "score": "0.55780274", "text": "public int getIndex();", "title": "" }, { "docid": "5026f1d76b72c48d453766edefacb91b", "score": "0.55780274", "text": "public int getIndex();", "title": "" }, { "docid": "5026f1d76b72c48d453766edefacb91b", "score": "0.55780274", "text": "public int getIndex();", "title": "" }, { "docid": "214086e6b4affe8a5d1bf0a9455a7a06", "score": "0.55755496", "text": "long getCardNumber();", "title": "" }, { "docid": "9df4bb397fc32091551b21917a8282d1", "score": "0.5571205", "text": "public int getoriginalCardNbr() {\n return originalCardNbr;\n }", "title": "" }, { "docid": "aaf416684077db3cfc457ddc1fd377be", "score": "0.55690616", "text": "public int get (int index)\n {\n // Handle a bad index\n if (index < 0 || index >= count)\n {\n throw new ArrayIndexOutOfBoundsException();\n }\n\n // Scan for the requested token.\n try (Scanner list = new Scanner(numberList))\n {\n while (index > 0)\n {\n list.nextInt();\n index--;\n }\n return list.nextInt();\n }\n }", "title": "" }, { "docid": "3705fe321c964c277d1d35dd1f183e7e", "score": "0.5565797", "text": "private int nextIndex(String name, boolean group_num) { \n\t\tboolean[] occupied = m_Index.get(name);\n\t\tSystem.out.println(name+\": \"+ Arrays.toString(occupied));\n\t\tfor(int i = 0; i<occupied.length; i++) {\n\t\t\tif(!occupied[i]) {\n\t\t\t\toccupied[i] = true;\n\t\t\t\tSystem.out.println(name+\": \"+ Arrays.toString(occupied));\n//\t\t\t\tif(group_num) return i+1;\n//\t\t\t\treturn i; \n\t\t\t\treturn i+1;\n\t\t\t}\n\t\t}\n\t\treturn -1; // array all full - need to handle this later (get a bigger array)\n\t}", "title": "" }, { "docid": "0cc7ac638eda6ce93c9ebd8428cf3924", "score": "0.55579764", "text": "public int getCurrendIndex() {\n \tif(currentIndex!=-1){\n \t SharedPreferences c = AlarmApplication.getApp().getSharedPreferences(\"alarm\", Context.MODE_PRIVATE);\n \t currentIndex=c.getInt(\"CurrentIndex\", 0);\n \t}\n \treturn currentIndex;\n\t}", "title": "" }, { "docid": "8293e10e1366119380431ffd98eb63e2", "score": "0.5545029", "text": "private static int nextPos(String[] codes) {\n\t\tint pos = 0;\n\t\tfor(int i = 0; i < codes.length; i++) {\n\t\t\tif (codes[i] == null) {\n\t\t\t\tpos = i;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn pos;\n\t}", "title": "" }, { "docid": "3cd10f5e772d5a7bafe9a7788c864e9a", "score": "0.5542", "text": "private int m28746a(int i) {\n int binarySearch = Arrays.binarySearch(RopeByteString.f21045b, i);\n return binarySearch < 0 ? (-(binarySearch + 1)) - 1 : binarySearch;\n }", "title": "" }, { "docid": "3091c7f83782393e61aecce4e964dbfd", "score": "0.55321056", "text": "public int findNextEmptyFromEnd(@Nonnull IInventory inv) {\n for (int i = inv.getSizeInventory() - 1; i >= 0; --i) {\n if (inv.getStackInSlot(i) == null) return i;\n }\n return -1;\n }", "title": "" }, { "docid": "1423947de8a06dcc3cd81dff2a441fab", "score": "0.5529541", "text": "public Rank getNext(){\r\n if(vals[this.ordinal()] == ACE)\r\n return TWO;\r\n return vals[(this.ordinal()+1) % vals.length]; // Check if this is returning successfully TWO with ACE given.\r\n }", "title": "" } ]
b54d81cb2ea7bfeb0e84eb31e91545b5
Do nothing but close the dialog
[ { "docid": "bbb35c6cad7a846d4f6f03fa41852343", "score": "0.0", "text": "public void onClick(DialogInterface dialog, int which) {\n db.collection(\"Products\").document(product.getId()).delete()\n .addOnCompleteListener(new OnCompleteListener<Void>() {\n @Override\n public void onComplete(@NonNull Task<Void> task) {\n if (task.isSuccessful()) {\n recreate();\n Toast.makeText(StoreActivity.this, \"Deleted Successfully\", Toast.LENGTH_SHORT).show();\n\n }\n }\n });\n dialog.dismiss();\n Toast.makeText(StoreActivity.this, \"Deleted Successfully\", Toast.LENGTH_SHORT).show();\n }", "title": "" } ]
[ { "docid": "f1d16841f82f7567af470d8ccdd931c5", "score": "0.7799934", "text": "void dismissDialog();", "title": "" }, { "docid": "41f98504fcf0d8641f910446de4bc340", "score": "0.7743632", "text": "@Override\n\t\t\t\t\t\t\t\t\t\t\t\t\tpublic void onClick(DialogInterface dialog, int which)\n\t\t\t\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tdialog.dismiss();\n\t\t\t\t\t\t\t\t\t\t\t\t\t}", "title": "" }, { "docid": "41f98504fcf0d8641f910446de4bc340", "score": "0.7743632", "text": "@Override\n\t\t\t\t\t\t\t\t\t\t\t\t\tpublic void onClick(DialogInterface dialog, int which)\n\t\t\t\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tdialog.dismiss();\n\t\t\t\t\t\t\t\t\t\t\t\t\t}", "title": "" }, { "docid": "41f98504fcf0d8641f910446de4bc340", "score": "0.7743632", "text": "@Override\n\t\t\t\t\t\t\t\t\t\t\t\t\tpublic void onClick(DialogInterface dialog, int which)\n\t\t\t\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tdialog.dismiss();\n\t\t\t\t\t\t\t\t\t\t\t\t\t}", "title": "" }, { "docid": "6d9c0a33d59637588bc37c8933a16104", "score": "0.7707494", "text": "@Override \r\n\t\t\t\t\tpublic void onClick(DialogInterface dialog, int arg1) {\n\t\t\t\t\t\tdialog.dismiss();\r\n\t\t\t\t\t}", "title": "" }, { "docid": "c0c888f5fea528df01c22c5ba197d707", "score": "0.77052474", "text": "@Override\n\t\t\t\t\t\t\t\tpublic void onClick(DialogInterface dialog,\n\t\t\t\t\t\t\t\t\t\tint which) {\n\t\t\t\t\t\t\t\t\tdialog.dismiss();\n\t\t\t\t\t\t\t\t}", "title": "" }, { "docid": "75f6e28e3b7555f15d96d23d84744310", "score": "0.76963687", "text": "@Override\n\t\t\t\t\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\t\t\t\t\tdialog.dismiss();\n\t\t\t\t\t\t\t}", "title": "" }, { "docid": "9dfc85131098eb31943af399346462b0", "score": "0.7684494", "text": "@Override\n public void onClick(DialogInterface dialog, int id) {\n dialog.dismiss();\n }", "title": "" }, { "docid": "d62eb72d949ab9703f00ae35a292a0bd", "score": "0.76785535", "text": "@Override\n\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\tdialog.dismiss();\t\n\t\t\t}", "title": "" }, { "docid": "b319f172f0a2a928d5249c340f8a6b47", "score": "0.76714337", "text": "public void close() {\r\n if (dialog != null) {\r\n \tresultProperty.unbind();\r\n \tPlatform.runLater(() -> {\r\n \t\tif (dialog!=null) dialog.close();\r\n \t\tdialog=null;\r\n \t});\r\n myBar = null;\r\n }\r\n }", "title": "" }, { "docid": "3c3b26c591a0fcea57ce6aca742bb8c0", "score": "0.767131", "text": "@Override\n public void onClick(DialogInterface dialog, int id) {\n dialog.dismiss();\n }", "title": "" }, { "docid": "7392628334ada2079c376116a7b83331", "score": "0.76669085", "text": "@Override\n public void onClick(DialogInterface dialog, int which) {\n dialog.dismiss();\n }", "title": "" }, { "docid": "7392628334ada2079c376116a7b83331", "score": "0.76669085", "text": "@Override\n public void onClick(DialogInterface dialog, int which) {\n dialog.dismiss();\n }", "title": "" }, { "docid": "7392628334ada2079c376116a7b83331", "score": "0.76669085", "text": "@Override\n public void onClick(DialogInterface dialog, int which) {\n dialog.dismiss();\n }", "title": "" }, { "docid": "7392628334ada2079c376116a7b83331", "score": "0.76669085", "text": "@Override\n public void onClick(DialogInterface dialog, int which) {\n dialog.dismiss();\n }", "title": "" }, { "docid": "8697b15bfa456d74fe955ad2a58f83dc", "score": "0.76645976", "text": "@Override\n public void onClick(DialogInterface dialog, int which) {\n dialog.dismiss();\n }", "title": "" }, { "docid": "e22afd203c156f647124fc1389a023f1", "score": "0.76614743", "text": "public void colseDialog() {\n if (dialog != null && isShowing()) {\n quitAuto = true;\n dialog.dismiss();\n Log.i(TAG, \"dialog.dismiss()\");\n dialog = null;\n }\n }", "title": "" }, { "docid": "8686ea50312d30de2eea3de043341212", "score": "0.7648191", "text": "@Override\n public void onClick(DialogInterface dialog, int which) {\n dialog.dismiss();\n }", "title": "" }, { "docid": "189dab88edcdeaac99cfb08712056e69", "score": "0.7647398", "text": "@Override\n public void onClick(DialogInterface dialog, int which) {\n dialog.dismiss();\n }", "title": "" }, { "docid": "6fc28fcfa7e7afc7d73ed2cc820fceb2", "score": "0.76435226", "text": "@Override\n public void onClick(DialogInterface dialog, int which) {\n dialog.dismiss();\n }", "title": "" }, { "docid": "6fc28fcfa7e7afc7d73ed2cc820fceb2", "score": "0.76435226", "text": "@Override\n public void onClick(DialogInterface dialog, int which) {\n dialog.dismiss();\n }", "title": "" }, { "docid": "c319626dcf6fe0073d1ea34f085acc81", "score": "0.7643403", "text": "@Override\n\t\t\t\t\t\t\t\tpublic void onClick(\n\t\t\t\t\t\t\t\t\t\tDialogInterface dialog,\n\t\t\t\t\t\t\t\t\t\tint which) {\n\t\t\t\t\t\t\t\t\tdialog.dismiss();\n\n\t\t\t\t\t\t\t\t}", "title": "" }, { "docid": "c319626dcf6fe0073d1ea34f085acc81", "score": "0.7643403", "text": "@Override\n\t\t\t\t\t\t\t\tpublic void onClick(\n\t\t\t\t\t\t\t\t\t\tDialogInterface dialog,\n\t\t\t\t\t\t\t\t\t\tint which) {\n\t\t\t\t\t\t\t\t\tdialog.dismiss();\n\n\t\t\t\t\t\t\t\t}", "title": "" }, { "docid": "c319626dcf6fe0073d1ea34f085acc81", "score": "0.7643403", "text": "@Override\n\t\t\t\t\t\t\t\tpublic void onClick(\n\t\t\t\t\t\t\t\t\t\tDialogInterface dialog,\n\t\t\t\t\t\t\t\t\t\tint which) {\n\t\t\t\t\t\t\t\t\tdialog.dismiss();\n\n\t\t\t\t\t\t\t\t}", "title": "" }, { "docid": "30ff931324e17cdec108b7b01ba0c15a", "score": "0.7641487", "text": "@Override\n\t\t\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\t\t\tdialog.dismiss();\n\t\t\t\t\t}", "title": "" }, { "docid": "30ff931324e17cdec108b7b01ba0c15a", "score": "0.7641487", "text": "@Override\n\t\t\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\t\t\tdialog.dismiss();\n\t\t\t\t\t}", "title": "" }, { "docid": "0a71e09c0647ef95f2830fa355a74b2d", "score": "0.7639534", "text": "@Override\n\t\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\t\tdialog.dismiss();\n\t\t\t\t}", "title": "" }, { "docid": "8bcb69c638a011d1fabb18f0ac13433c", "score": "0.763603", "text": "@Override\n\t\t\t\t\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\t\t\t\t\tdialog.dismiss();\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t}", "title": "" }, { "docid": "48e1d3fc349dc8d7375d810194c55cbf", "score": "0.76356936", "text": "@Override\n\t\t\tpublic void onClick(DialogInterface dialog, int id) {\n \t dialog.dismiss();\n }", "title": "" }, { "docid": "860a38ed385e9ca96d46c968118a34a3", "score": "0.7624712", "text": "@Override\n\t\t\t\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\t\t\t\tdialog.dismiss();\n\t\t\t\t\t\t}", "title": "" }, { "docid": "fa3ad07adf01203966453f7b612a71ae", "score": "0.76214796", "text": "@Override\r\n\t\t\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\t\t\tdialog.dismiss();\r\n\t\t\t\t\t}", "title": "" }, { "docid": "fa3ad07adf01203966453f7b612a71ae", "score": "0.76214796", "text": "@Override\r\n\t\t\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\t\t\tdialog.dismiss();\r\n\t\t\t\t\t}", "title": "" }, { "docid": "fa3ad07adf01203966453f7b612a71ae", "score": "0.76214796", "text": "@Override\r\n\t\t\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\t\t\tdialog.dismiss();\r\n\t\t\t\t\t}", "title": "" }, { "docid": "fa3ad07adf01203966453f7b612a71ae", "score": "0.76214796", "text": "@Override\r\n\t\t\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\t\t\tdialog.dismiss();\r\n\t\t\t\t\t}", "title": "" }, { "docid": "ef836b656f14878069c351d9343378ef", "score": "0.7619373", "text": "@Override\n\t\t\t\t\t\t\tpublic void onClick(DialogInterface dialog, int which)\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tdialog.dismiss();\n\t\t\t\t\t\t\t}", "title": "" }, { "docid": "9df54a07217220dc16c82824485a6bdc", "score": "0.76180875", "text": "@Override\n public void onClick(DialogInterface dialog, int which) {\n dialog.dismiss();\n }", "title": "" }, { "docid": "afad56125c8ee909ee51d45a0c673c06", "score": "0.76143193", "text": "@Override\n\t\t\t\t\t\t\t\t\tpublic void onClick(DialogInterface dialog, int which)\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\tdialog.dismiss();\n\t\t\t\t\t\t\t\t\t}", "title": "" }, { "docid": "afad56125c8ee909ee51d45a0c673c06", "score": "0.76143193", "text": "@Override\n\t\t\t\t\t\t\t\t\tpublic void onClick(DialogInterface dialog, int which)\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\tdialog.dismiss();\n\t\t\t\t\t\t\t\t\t}", "title": "" }, { "docid": "afad56125c8ee909ee51d45a0c673c06", "score": "0.76143193", "text": "@Override\n\t\t\t\t\t\t\t\t\tpublic void onClick(DialogInterface dialog, int which)\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\tdialog.dismiss();\n\t\t\t\t\t\t\t\t\t}", "title": "" }, { "docid": "afad56125c8ee909ee51d45a0c673c06", "score": "0.76143193", "text": "@Override\n\t\t\t\t\t\t\t\t\tpublic void onClick(DialogInterface dialog, int which)\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\tdialog.dismiss();\n\t\t\t\t\t\t\t\t\t}", "title": "" }, { "docid": "9b5c62d2d4ef198a09ff61548f903898", "score": "0.76120013", "text": "@Override\r\n\t\t\t\t\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\t\t\t\t dialog.dismiss();\t\r\n\t\t\t\t\t\t\t }", "title": "" }, { "docid": "09917c62c48bbf8050c1799166c5982f", "score": "0.7598261", "text": "@Override\n public void onClick(DialogInterface dialog, int which) {\n\n dialog.dismiss();\n }", "title": "" }, { "docid": "1f304aaf745a16716aba03ba06d979c9", "score": "0.7593907", "text": "@Override\n public void onClick(DialogInterface dialog, int which) {\n dialog.dismiss();\n }", "title": "" }, { "docid": "1f304aaf745a16716aba03ba06d979c9", "score": "0.7593907", "text": "@Override\n public void onClick(DialogInterface dialog, int which) {\n dialog.dismiss();\n }", "title": "" }, { "docid": "1f304aaf745a16716aba03ba06d979c9", "score": "0.7593907", "text": "@Override\n public void onClick(DialogInterface dialog, int which) {\n dialog.dismiss();\n }", "title": "" }, { "docid": "1f304aaf745a16716aba03ba06d979c9", "score": "0.7593907", "text": "@Override\n public void onClick(DialogInterface dialog, int which) {\n dialog.dismiss();\n }", "title": "" }, { "docid": "1f304aaf745a16716aba03ba06d979c9", "score": "0.7593907", "text": "@Override\n public void onClick(DialogInterface dialog, int which) {\n dialog.dismiss();\n }", "title": "" }, { "docid": "1f304aaf745a16716aba03ba06d979c9", "score": "0.7593907", "text": "@Override\n public void onClick(DialogInterface dialog, int which) {\n dialog.dismiss();\n }", "title": "" }, { "docid": "1f304aaf745a16716aba03ba06d979c9", "score": "0.7593907", "text": "@Override\n public void onClick(DialogInterface dialog, int which) {\n dialog.dismiss();\n }", "title": "" }, { "docid": "1f304aaf745a16716aba03ba06d979c9", "score": "0.7593907", "text": "@Override\n public void onClick(DialogInterface dialog, int which) {\n dialog.dismiss();\n }", "title": "" }, { "docid": "1f304aaf745a16716aba03ba06d979c9", "score": "0.7593907", "text": "@Override\n public void onClick(DialogInterface dialog, int which) {\n dialog.dismiss();\n }", "title": "" }, { "docid": "9e5dbe13d870d1ce2c8d85e0721cf1d7", "score": "0.75936735", "text": "@Override\n public void onClick(DialogInterface dialog, int which) {\n if (isExit) {\n dialog.dismiss();\n System.exit(0);\n }\n }", "title": "" }, { "docid": "268c363a68f2cc5e64be9a6cb45a6783", "score": "0.7588712", "text": "@Override\r\n\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\tdialog.dismiss();\r\n\t\t\t}", "title": "" }, { "docid": "4bd8929399d3303f170b8cbec5ea317b", "score": "0.7587518", "text": "@Override\r\n\t\t\t\t\t\tpublic void onClick(View v) {\n\t\t\t\t\t\t\tdialog.dismiss();\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t}", "title": "" }, { "docid": "f42418158c3f76dfaf7d8c17d44a0df1", "score": "0.7580382", "text": "@Override\n public void onClick(View v) {\n dialog.dismiss();\n }", "title": "" }, { "docid": "f42418158c3f76dfaf7d8c17d44a0df1", "score": "0.7580382", "text": "@Override\n public void onClick(View v) {\n dialog.dismiss();\n }", "title": "" }, { "docid": "0a342d077259f7dbbc7a3183a873bd0d", "score": "0.75752765", "text": "private void closeDialog() {\n if (dialogFrame != null) {\n dialogFrame.setVisible(false);\n }\n }", "title": "" }, { "docid": "77af5b9cc267522a1477113ce99c1fd3", "score": "0.75737673", "text": "@Override\n\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\tdialog.dismiss();\n\t\t\t}", "title": "" }, { "docid": "77af5b9cc267522a1477113ce99c1fd3", "score": "0.75737673", "text": "@Override\n\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\tdialog.dismiss();\n\t\t\t}", "title": "" }, { "docid": "77af5b9cc267522a1477113ce99c1fd3", "score": "0.75737673", "text": "@Override\n\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\tdialog.dismiss();\n\t\t\t}", "title": "" }, { "docid": "77af5b9cc267522a1477113ce99c1fd3", "score": "0.75737673", "text": "@Override\n\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\tdialog.dismiss();\n\t\t\t}", "title": "" }, { "docid": "77af5b9cc267522a1477113ce99c1fd3", "score": "0.75737673", "text": "@Override\n\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\tdialog.dismiss();\n\t\t\t}", "title": "" }, { "docid": "77af5b9cc267522a1477113ce99c1fd3", "score": "0.75737673", "text": "@Override\n\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\tdialog.dismiss();\n\t\t\t}", "title": "" }, { "docid": "77af5b9cc267522a1477113ce99c1fd3", "score": "0.75737673", "text": "@Override\n\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\tdialog.dismiss();\n\t\t\t}", "title": "" }, { "docid": "77af5b9cc267522a1477113ce99c1fd3", "score": "0.75737673", "text": "@Override\n\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\tdialog.dismiss();\n\t\t\t}", "title": "" }, { "docid": "77af5b9cc267522a1477113ce99c1fd3", "score": "0.75737673", "text": "@Override\n\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\tdialog.dismiss();\n\t\t\t}", "title": "" }, { "docid": "77af5b9cc267522a1477113ce99c1fd3", "score": "0.75737673", "text": "@Override\n\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\tdialog.dismiss();\n\t\t\t}", "title": "" }, { "docid": "77af5b9cc267522a1477113ce99c1fd3", "score": "0.75737673", "text": "@Override\n\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\tdialog.dismiss();\n\t\t\t}", "title": "" }, { "docid": "77af5b9cc267522a1477113ce99c1fd3", "score": "0.75737673", "text": "@Override\n\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\tdialog.dismiss();\n\t\t\t}", "title": "" }, { "docid": "77af5b9cc267522a1477113ce99c1fd3", "score": "0.75737673", "text": "@Override\n\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\tdialog.dismiss();\n\t\t\t}", "title": "" }, { "docid": "77af5b9cc267522a1477113ce99c1fd3", "score": "0.75737673", "text": "@Override\n\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\tdialog.dismiss();\n\t\t\t}", "title": "" }, { "docid": "77af5b9cc267522a1477113ce99c1fd3", "score": "0.75737673", "text": "@Override\n\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\tdialog.dismiss();\n\t\t\t}", "title": "" }, { "docid": "77af5b9cc267522a1477113ce99c1fd3", "score": "0.75737673", "text": "@Override\n\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\tdialog.dismiss();\n\t\t\t}", "title": "" }, { "docid": "77af5b9cc267522a1477113ce99c1fd3", "score": "0.75737673", "text": "@Override\n\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\tdialog.dismiss();\n\t\t\t}", "title": "" }, { "docid": "77af5b9cc267522a1477113ce99c1fd3", "score": "0.75737673", "text": "@Override\n\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\tdialog.dismiss();\n\t\t\t}", "title": "" }, { "docid": "77af5b9cc267522a1477113ce99c1fd3", "score": "0.75737673", "text": "@Override\n\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\tdialog.dismiss();\n\t\t\t}", "title": "" }, { "docid": "77af5b9cc267522a1477113ce99c1fd3", "score": "0.75737673", "text": "@Override\n\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\tdialog.dismiss();\n\t\t\t}", "title": "" }, { "docid": "77af5b9cc267522a1477113ce99c1fd3", "score": "0.75737673", "text": "@Override\n\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\tdialog.dismiss();\n\t\t\t}", "title": "" }, { "docid": "77af5b9cc267522a1477113ce99c1fd3", "score": "0.75737673", "text": "@Override\n\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\tdialog.dismiss();\n\t\t\t}", "title": "" }, { "docid": "9381fdb4a0771f2b2105afbfd8be7cc4", "score": "0.7566403", "text": "public void actionPerformed(ActionEvent e) {\n dialog.dispose();\n }", "title": "" }, { "docid": "8a583a024b05c01827b254ad916fb5b7", "score": "0.7547421", "text": "@Override\n public void onClick(DialogInterface dialog, int which) {\n if (dialog == null) {\n dialog.dismiss();\n }\n }", "title": "" }, { "docid": "c4a97638e04c7caab4e48603eac1e86f", "score": "0.75403965", "text": "@Override\n\n public void onClick(DialogInterface dialog, int which) {\n dialog.dismiss();\n\n }", "title": "" }, { "docid": "65b51c373e263be5f654b09d1909709b", "score": "0.7520745", "text": "@Override\n\t\t\t\t\tpublic void onClick(View v) {\n\t\t\t\t\t\tdialog.dismiss();\n\t\t\t\t\t}", "title": "" }, { "docid": "65b51c373e263be5f654b09d1909709b", "score": "0.7520745", "text": "@Override\n\t\t\t\t\tpublic void onClick(View v) {\n\t\t\t\t\t\tdialog.dismiss();\n\t\t\t\t\t}", "title": "" }, { "docid": "6d5cb96a27219aec7d883fed7c5c27c8", "score": "0.7512445", "text": "@Override\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\tdialog.dismiss();\n\t\t\t}", "title": "" }, { "docid": "6d5cb96a27219aec7d883fed7c5c27c8", "score": "0.7512445", "text": "@Override\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\tdialog.dismiss();\n\t\t\t}", "title": "" }, { "docid": "6d5cb96a27219aec7d883fed7c5c27c8", "score": "0.7512445", "text": "@Override\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\tdialog.dismiss();\n\t\t\t}", "title": "" }, { "docid": "0b8da11b91d98435c87ec14e18d70065", "score": "0.7511081", "text": "@Override\n public void onClick(View v) {\n\n dialog.dismiss();\n }", "title": "" }, { "docid": "0b8da11b91d98435c87ec14e18d70065", "score": "0.7511081", "text": "@Override\n public void onClick(View v) {\n\n dialog.dismiss();\n }", "title": "" }, { "docid": "47bbd1b87043b306f63b446b54130ccf", "score": "0.75108874", "text": "@Override\n\t public void onClick(DialogInterface dialog, int which) {\n\t dialog.dismiss();\n\t }", "title": "" }, { "docid": "3c9c283ee56939f39ab7f192ce86ef4b", "score": "0.75088435", "text": "@Override\r\n\t\t\tpublic void onCancel(DialogInterface dialog) {\n\t\t\t\tdismiss();\r\n\t\t\t}", "title": "" }, { "docid": "d0b38548a078fe15a40e6cafb7713654", "score": "0.7505176", "text": "@Override\n\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\talertDialog.hide();\n\t\t\t\tfinish();\n\t\t\t}", "title": "" }, { "docid": "522f0884cd8b2741050be070f04f5bbf", "score": "0.75022125", "text": "@Override\r\n\t\t\t\t\t\t\tpublic void onClick(View v) {\n\t\t\t\t\t\t\t\tdialog.dismiss();\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t}", "title": "" }, { "docid": "b5e7d70ee42c54c36d92c5b4498fdb4f", "score": "0.74993545", "text": "@Override\n\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\tdialog.dismiss();\n\n\t\t\t}", "title": "" }, { "docid": "cd0a547abb839de54e067ec2ffe91e1f", "score": "0.7498289", "text": "private void close() {\n\t\t\t\t section_name.getScene().getWindow().hide();\n\t\t\t\t//dialogStage.fireEvent(new WindowEvent(dialogStage,WindowEvent.WINDOW_CLOSE_REQUEST));\n\t\t\t}", "title": "" }, { "docid": "28f58dacfee8245bf6d00184dc1dcca0", "score": "0.7494734", "text": "@Override\n public void onClick(View v) {\n dialog.dismiss();\n }", "title": "" }, { "docid": "28f58dacfee8245bf6d00184dc1dcca0", "score": "0.7494734", "text": "@Override\n public void onClick(View v) {\n dialog.dismiss();\n }", "title": "" }, { "docid": "28f58dacfee8245bf6d00184dc1dcca0", "score": "0.7494734", "text": "@Override\n public void onClick(View v) {\n dialog.dismiss();\n }", "title": "" }, { "docid": "0fc42984196896e5e0ce44362875cbfe", "score": "0.7489434", "text": "@Override\n\t\t\t\t\t\t\tpublic void onClick(DialogInterface dialog,\n\t\t\t\t\t\t\t\t\tint which) {\n\t\t\t\t\t\t\t\tdialog.cancel();\n\t\t\t\t\t\t\t\tself.getActivity().finish();\n\t\t\t\t\t\t\t}", "title": "" }, { "docid": "a9fe7c84c2407de6fce0aeca72b44fc5", "score": "0.7474448", "text": "public final void mo71376b() {\n dialogInterface.dismiss();\n }", "title": "" }, { "docid": "cf3c4edab491f87ec0067372de8f9d87", "score": "0.74738204", "text": "private void onCancelClick() {\n client.closeCurrentWindowNoExit();\n }", "title": "" } ]
f0ed689849a1908d00f475306ae39f29
Returns an ArrayList of customers which contains the selected search text
[ { "docid": "d45fcb47a1b10a8abadaa62441440694", "score": "0.78274447", "text": "public ArrayList<Customer> findCustomer(String searchText) {\r\n\t\tsearchText = searchText.toLowerCase();\r\n\t\tArrayList<Customer> customers = new ArrayList<Customer>();\r\n\t\ttry (ResultSet result = manager.performSql(\"SELECT id FROM Customer WHERE LOWER(first_name || ' ' || last_name) LIKE '%\" + searchText + \"%'\")) {\r\n\t\t\twhile (result.next()) {\r\n\t\t\t\tcustomers.add(manager.getCustomer(result.getInt(1)));\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 customers;\r\n\t}", "title": "" } ]
[ { "docid": "529fdad470d74cb29faadd1e05afbcfb", "score": "0.7744962", "text": "public List<Customer> getCustomerList() {\r\n\t\tList<Object> columnList = null;\r\n\t\tList<Object> valueList = null;\r\n\t\tList<Customer> customers = new ArrayList<Customer>();\r\n\r\n\t\tif (searchValue != null && !searchValue.trim().equals(\"\")) {\r\n\t\t\tcolumnList = new ArrayList<Object>();\r\n\t\t\tvalueList = new ArrayList<Object>();\r\n\t\t\tcolumnList.add(searchColumn);\r\n\t\t\tvalueList.add(searchValue);\r\n\t\t}\r\n\t\tcustomers = customerService.searchCustomer(columnList, valueList,\r\n\t\t\t\tfirst, pageSize);\r\n\t\t\r\n\r\n\t\treturn customers;\r\n\t}", "title": "" }, { "docid": "1c5ac1d864cc9bf4ff87dd373834ce3c", "score": "0.70929635", "text": "@Override\n\tpublic List<Customer> searchCustomers(String theSearchName) {\n\t\tSession currentSession = sessionFactory.getCurrentSession();\n\t\t\n\t\tQuery theQuery = null;\n\t\t\n\t\t// only search by name if theSearchName is not empty\n\t\tif(theSearchName != null && theSearchName.trim().length() > 0) {\n\t\t\ttheQuery = currentSession.createQuery(\"from Customer where \"\n\t\t\t\t\t+ \"lower(firstName) like :theName or lower(lastName) \"\n\t\t\t\t\t+ \"like :theName\", Customer.class);\n\t\t\t\n\t\t\ttheQuery.setParameter(\"theName\", \"%\" + theSearchName.toLowerCase() + \"%\");\n\t\t}\n\t\telse {\n\t\t\t// theSearchName is empty, so get all the customers\n\t\t\ttheQuery=currentSession.createQuery(\"from Customer\", Customer.class);\n\t\t}\n\t\t\n\t\t// execute query and get result list\n\t\tList<Customer> customers = theQuery.getResultList();\n\t\t\n\t\treturn customers;\n\t}", "title": "" }, { "docid": "3bbcda9d502e6b8ede13e869d30fc3a9", "score": "0.68626094", "text": "public static void searchCustomers(ArrayList<Customer> customerList) throws IOException\r\n\t{\r\n\t\tclearScreen();\r\n\t\t\r\n\t\t// Contains the list of customers to display to the user\r\n\t\tArrayList<Customer> printList = new ArrayList<Customer>();\r\n\t\t\r\n\t\tSystem.out.println(\"[CUSTOMER SEARCH]\\n\");\r\n\t\tSystem.out.println(\"Enter a name to search for.\");\r\n\t\t\r\n\t\t// Gets user search input\r\n\t\tString searchString = inputString(false);\r\n\t\t\r\n\t\t// If a customer's name contains searchString, add it to the list of customers to be printed\r\n\t\tfor(Customer c : customerList)\r\n\t\t\tif(c.getName().toLowerCase().contains(searchString.toLowerCase().subSequence(0, searchString.length())))\r\n\t\t\t\tprintList.add(c);\r\n\t\t\r\n\t\teditCustomers(printList);\r\n\t}", "title": "" }, { "docid": "82ebd841b493b82e50fab0bb4321eb68", "score": "0.6842497", "text": "public List<Menu> searchCustomers(String theSearchName) {\n\t\tSession currentSession = sessionFactory.getCurrentSession();\r\n\r\n\t\tQuery theQuery = null;\r\n\r\n\t\t//\r\n\t\t// only search by name if theSearchName is not empty\r\n\t\t//\r\n\t\tif (theSearchName != null && theSearchName.trim().length() > 0) {\r\n\r\n\t\t\t// search for firstName or lastName ... case insensitive\r\n\t\t\ttheQuery = currentSession.createQuery(\r\n\t\t\t\t\t\"from Menu where lower(mname) like :theName or lower(munit) like :theName\", Menu.class);\r\n\t\t\ttheQuery.setParameter(\"theName\", \"%\" + theSearchName.toLowerCase() + \"%\");\r\n\r\n\t\t} else {\r\n\t\t\t// theSearchName is empty ... so just get all customers\r\n\t\t\ttheQuery = currentSession.createQuery(\"from Menu\", Menu.class);\r\n\t\t}\r\n\r\n\t\t// execute query and get result list\r\n\t\tList<Menu> theMenu = theQuery.getResultList();\r\n\r\n\t\t// return the results\r\n\t\treturn theMenu;\r\n\r\n\t}", "title": "" }, { "docid": "3919c46318305bf7f7eb95df619b0599", "score": "0.6835204", "text": "Customer search(String login);", "title": "" }, { "docid": "4462fe816c11c14e538f667ebb56fc78", "score": "0.6816366", "text": "public ArrayList<AddressEntry> searchByName(String text) {\r\n ArrayList<AddressEntry> textMatches = new ArrayList<AddressEntry>();\r\n text = text.toLowerCase();\r\n for (AddressEntry current : contacts) {\r\n String currentname = current.getName().toLowerCase();\r\n if (currentname.contains(text)) {\r\n textMatches.add(current);\r\n }\r\n }\r\n return textMatches;\r\n }", "title": "" }, { "docid": "b1a81041bdb6b34dd60193503ccd4f73", "score": "0.681602", "text": "public List<Customer> findAutoCompleteCustomers(String key) {\n\t\tTypedQuery<Customer> query = em.createQuery(\n\t\t\t\t\"select distinct c from Customer c \"\n\t\t\t\t\t\t+ \" where upper(concat(c.customerName1,' ', c.customerName2,' ', c.customerName3,' ', c.customerName4)) like :name\",\n\t\t\t\tCustomer.class);\n\t\tquery.setParameter(\"name\", \"%\" + key.toUpperCase() + \"%\");\n\t\tList<Customer> customers = query.setFirstResult(0).setMaxResults(10).getResultList();\n\n\t\treturn customers;\n\t}", "title": "" }, { "docid": "a5a542c5d2941f1f519e35ea684cdf71", "score": "0.67402816", "text": "@Override\n\tpublic List<Customer> searchCustomerByName(String name) throws BusinessException {\n\t\treturn customerViewAllDAO.searchCustomerByName(name);\n\t}", "title": "" }, { "docid": "a349ec7ffd08eb66e1e9d302c13add7b", "score": "0.6584714", "text": "public static String searchCustomer(String filter)\n\t{\n\t\tfor (Customer customer : customerList)\n\t\t{\n\t\t\tif (customer.getFirstName().contains(filter))\n\t\t\t{\n\t\t\t\tcustomerSearch.add(customerList.indexOf(customer));\n\t\t\t}\n\t\t}\n\t\treturn String.format(\"Records found: %d\", customerSearch.size());\n\t}", "title": "" }, { "docid": "0c94854212400463fb204ccd578265a1", "score": "0.65564126", "text": "@Override\n public List<Client> filterByName(String searchString){\n log.trace(\"filterByName -- method entered\");\n Iterable<Client> clients = clientRepository.findAll();\n List<Client> result = StreamSupport.stream(clients.spliterator(),false).filter((c)->c.getName().contains(searchString)).collect(Collectors.toList());\n log.trace(\"filterByName: result = {}\", result);\n return result;\n\n }", "title": "" }, { "docid": "6ff83cd6a4c40d63e36834e73bf224a3", "score": "0.6448244", "text": "public ArrayList<AddressEntry> searchByPhoneNumber(String text) {\r\n ArrayList<AddressEntry> textMatches = new ArrayList<AddressEntry>();\r\n text = text.toLowerCase();\r\n for (AddressEntry current : contacts) {\r\n String currentname = current.getPhoneNumber().toLowerCase();\r\n if (currentname.contains(text)) {\r\n textMatches.add(current);\r\n }\r\n }\r\n return textMatches;\r\n }", "title": "" }, { "docid": "ff1091cc730fb54417bc89fe496b8a5a", "score": "0.64382267", "text": "public ArrayList<AddressEntry> searchByEmail(String text) {\r\n ArrayList<AddressEntry> textMatches = new ArrayList<AddressEntry>();\r\n text = text.toLowerCase();\r\n for (AddressEntry current : contacts) {\r\n String currentname = current.getEmail().toLowerCase();\r\n if (currentname.contains(text)) {\r\n textMatches.add(current);\r\n }\r\n }\r\n return textMatches;\r\n }", "title": "" }, { "docid": "12c6b8592ab0264e676277c6057974ca", "score": "0.64353824", "text": "public List<Contact> getAllContactsByName(String searchByName);", "title": "" }, { "docid": "d2ffa1c57347249d09ed8b6c54826842", "score": "0.63931483", "text": "List<DataTerm> search(String searchTerm);", "title": "" }, { "docid": "105745422d5360043aa12f6efe9587f2", "score": "0.6374445", "text": "@GetMapping(\"/search\")\r\n\tpublic String searchCustomers(@RequestParam(\"theSearchName\") String theSearchName,\r\n\t\t\t\t\t\t\t\t\tModel theModel) {\n\t\tList<Customer> theCustomers = customerService.searchCustomers(theSearchName);\r\n\t\t\t\t\r\n\t\t// add the customers to the model\r\n\t\ttheModel.addAttribute(\"customers\", theCustomers);\r\n\r\n\t\treturn \"list-customers\";\t\t\r\n\t}", "title": "" }, { "docid": "0a94299b69f3cdd52a7ecb20dbbc4023", "score": "0.6373395", "text": "public List<Contact> getSearch(String s){\n return contactsAndChildrenParser.getSearch(s);\n }", "title": "" }, { "docid": "2f01749e7cfc3da550226fe120198492", "score": "0.63598275", "text": "public List<String> getCustomers(String p){\n\t\tif( containsProduct(p)){\n\t\t\tList<String> custlist = new ArrayList<String>();\n\t\t\tfor(int i = 0; i < list.size(); i++){\n\t\t\t\tif(hasProduct(list.get(i).getUsername(), p)){\n\t\t\t\t\tcustlist.add(list.get(i).getUsername());\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn custlist;\n\t\t}\n\t\treturn null;\n\t}", "title": "" }, { "docid": "93dee940aaffddfe303b4c75a8346062", "score": "0.634076", "text": "public List<Contact> searchContacts(Map<SearchTerm,String> criteria);", "title": "" }, { "docid": "101a9a59b1c24f38fd05cf5d8396c79e", "score": "0.6326895", "text": "public ArrayList<AddressEntry> searchByNote(String text) {\r\n ArrayList<AddressEntry> textMatches = new ArrayList<AddressEntry>();\r\n text = text.toLowerCase();\r\n for (AddressEntry current : contacts) {\r\n String currentname = current.getNote().toLowerCase();\r\n if (currentname.contains(text)) {\r\n textMatches.add(current);\r\n }\r\n }\r\n return textMatches;\r\n }", "title": "" }, { "docid": "d8ad057a77c74e31e093e5543f820915", "score": "0.6323184", "text": "public ArrayList<AddressEntry> searchByPostalAddress(String text) {\r\n ArrayList<AddressEntry> textMatches = new ArrayList<AddressEntry>();\r\n text = text.toLowerCase();\r\n for (AddressEntry current : contacts) {\r\n String currentname = current.getPostalAddress().toLowerCase();\r\n if (currentname.contains(text)) {\r\n textMatches.add(current);\r\n }\r\n }\r\n return textMatches;\r\n }", "title": "" }, { "docid": "775c513e3cb8ade54cf9472bda47e4d4", "score": "0.63190854", "text": "private void filter(String text) {\n List<UserModel> filterdNames = new ArrayList<>();\n\n //looping through existing elements\n for (UserModel item : userModels) {\n //if the existing elements contains the search input\n if (item.getFirstName().toLowerCase().contains(text.toLowerCase())||item.getId().toLowerCase().contains(text.toLowerCase())||item.getEmail().toLowerCase().contains(text.toLowerCase())){\n //adding the element to filtered list\n filterdNames.add(item);\n }\n }\n userAdapter.filterList(filterdNames);\n }", "title": "" }, { "docid": "e163404faf309dad737a35a3369de915", "score": "0.6297803", "text": "public abstract List<CustomerType> findCustomerTypebyCustomerTypeNumber(String searchString);", "title": "" }, { "docid": "94fbc0eb05e8817cbbc18e3723576ea6", "score": "0.6291121", "text": "public List<Customer> getCustomerByName() {\n Query query = em.createNamedQuery(\"Customer.findByName\")\r\n .setParameter(\"name\", custName);\r\n // return query result\r\n return query.getResultList();\r\n }", "title": "" }, { "docid": "6c18d4dd634cdff1ca73537812e9db54", "score": "0.62880856", "text": "private List<AdhocCustomer> getSearchUniverseSearchAdhocCustomerDataSet() {\n // The initialization of the result list must be done here\n //\n //\n return AdhocCustomer.findAll().collect(Collectors.toList());\n }", "title": "" }, { "docid": "30ec2274688500e531b2e037308d85ea", "score": "0.62692964", "text": "public List<Product> search(String searchString);", "title": "" }, { "docid": "834e93841b0f4c0a4e029db629cb2ca4", "score": "0.6259308", "text": "public ArrayList<Customer> getAllCustomers();", "title": "" }, { "docid": "b24b83cf2396396e5da3e02679cae5bd", "score": "0.6247072", "text": "public List<Customer> getCustomers()\n {\n List<Customer> customers = new ArrayList<>();\n\n customers.add(new Customer(\"Recipient\", \"One\", \"recipient1@example.com\", \"Green\"));\n customers.add(new Customer(\"Recipient\", \"Two\", \"recipient2@example.com\", \"Red\"));\n customers.add(new Customer(\"Recipient\", \"Three\", \"recipient3@example.com\", \"Blue\"));\n customers.add(new Customer(\"Recipient\", \"Four\", \"recipient4@example.com\", \"Orange\"));\n\n return customers;\n }", "title": "" }, { "docid": "64ed79e2facd13df693da5c1577db4aa", "score": "0.6236434", "text": "@Override\r\n\tpublic Customer search(String name) {\n\t\treturn null;\r\n\t}", "title": "" }, { "docid": "01ed73d16b89da449abf3d8880f06809", "score": "0.6208302", "text": "List<Cemetery> search(String query);", "title": "" }, { "docid": "16c83d4b943a084c36320fc829b2cd04", "score": "0.6201412", "text": "public void searchCliente(JTextField txt, TextAutoCompleter match){\n match.removeAllItems(); // Remover todos los elementos del Autocompletador. \n cl = clientes();//Inserta todos los clientes en el vector. \n cl.forEach(item -> { //Agrega al autocompletador nombre e ID de los clientes \n match.addItem(item.getNombreCliente()+ \" \" + item.getApellidoPaterno() + \" \" + String.valueOf(item.getID_Cliente()));\n match.addItem(String.valueOf(item.getID_Cliente()));\n });\n }", "title": "" }, { "docid": "09dd0358672833aef4b2a07ae451ff22", "score": "0.6176792", "text": "public List<Customer> findByName(String n) {\n\n Connection conn = ConnectionFactory.getConnection();\n PreparedStatement ppst = null;\n ResultSet rest = null;\n List<Customer> customers = new ArrayList<>();\n\n try {\n ppst = conn.prepareStatement(\"SELECT * FROM customer WHERE LOWER(name) LIKE LOWER(?)\");\n ppst.setString(1, \"%\" + n + \"%\");\n rest = ppst.executeQuery();\n\n while (rest.next()) {\n Customer c = new Customer(\n rest.getInt(\"customer_key\"),\n rest.getString(\"name\"),\n rest.getString(\"id\"),\n rest.getString(\"phone\")\n );\n customers.add(c);\n }\n } catch (SQLException e) {\n throw new RuntimeException(\"Query error: \", e);\n } finally {\n ConnectionFactory.closeConnection(conn, ppst, rest);\n }\n return customers;\n }", "title": "" }, { "docid": "552293b3442c8425cf3f0f77157d5e3f", "score": "0.6174541", "text": "List<Customers> selectByCustomers(Customers customers);", "title": "" }, { "docid": "333de3677efc089071f053aad316fa33", "score": "0.6170424", "text": "public static List<Customer> getAllCustomers() {\r\n\t\tList<Customer> customerList = new ArrayList<Customer>();\r\n\t\tConnection conn = ConnectionFactory.getConnection();\r\n\r\n\t\tString query = \"SELECT customerUuid, customerType, customerName, personKey, addressKey FROM Customer\";\r\n\r\n\t\tPreparedStatement ps = null;\r\n\t\tResultSet rs = null;\r\n\t\tCustomer customer = null;\r\n\r\n\t\ttry {\r\n\t\t\tps = conn.prepareStatement(query);\r\n\t\t\trs = ps.executeQuery();\r\n\t\t\twhile (rs.next()) {\r\n\t\t\t\tString customerUuid = rs.getString(\"customerUuid\");\r\n\t\t\t\tString customerType = rs.getString(\"customerType\");\r\n\t\t\t\tString customerName = rs.getString(\"customerName\");\r\n\t\t\t\tint personKey = rs.getInt(\"personKey\");\r\n\t\t\t\tPerson primaryContact = Person.getPersonByKey(personKey);\r\n\t\t\t\tint addressKey = rs.getInt(\"addressKey\");\r\n\t\t\t\tAddress address = Address.getAddressByKey(addressKey);\r\n\t\t\t\t\r\n\t\t\t\tif (customerType.equals(\"G\")) {\r\n\t\t\t\t\tcustomer = new GovernmentCustomer(customerUuid, primaryContact, customerName, address);\r\n\t\t\t\t} else {\r\n\t\t\t\t\tcustomer = new CorporateCustomer(customerUuid, primaryContact, customerName, address);\r\n\t\t\t\t}\r\n\t\t\t\tcustomerList.add(customer);\r\n\t\t\t}\r\n\r\n\t\t} catch (SQLException e) {\r\n\t\t\tSystem.out.println(\"SQLException: \");\r\n\t\t\te.printStackTrace();\r\n\t\t\tthrow new RuntimeException(e);\r\n\t\t} finally {\r\n\t\t\tConnectionFactory.closeConnection(conn, ps, rs);\r\n\t\t}\r\n\t\treturn customerList;\r\n\t}", "title": "" }, { "docid": "fb8d358993fb271d1d61854271e34be4", "score": "0.6152544", "text": "@Override\n\tpublic List<Customer> getCustomers() {\n\t\tSession currentSession = sessionFactory.getCurrentSession();\n\n\t\t// create a query\n\t\tQuery<Customer> theQuery =\n\t\t\t\tcurrentSession.createQuery(\"from Customer order by lastName\", Customer.class);\n\n\t\t// execute query and get result list\n\t\tList<Customer> customers = theQuery.getResultList();\n\n\t\treturn customers;\n\t}", "title": "" }, { "docid": "54a31eff791ccbb86288df1a498d9e13", "score": "0.615055", "text": "@Override\n\tpublic List<Customer> getCustomers() {\n\t\tSession currentSession = sessionFactory.getCurrentSession();\n\t\t\t\t\n\t\t// create a query ... sort by the lastname\n\t\tQuery<Customer> theQuery = \n\t\t\t\tcurrentSession.createQuery(\"from Customer order by lastName\",Customer.class);\n\t\t\n\t\t// execute query and get result list\n\t\tList<Customer> customers = theQuery.getResultList();\n\t\t\t\t\n\t\t// return the results\t\t\n\t\treturn customers;\n\t}", "title": "" }, { "docid": "5356bc473ee1d115b05769f419cb36b5", "score": "0.6142093", "text": "@Override\n\tpublic List<Contact> search(String str) {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "f26ed49782547089db6f371d0e663dee", "score": "0.61267287", "text": "List<Customer> getCustomerList();", "title": "" }, { "docid": "1ec1daf549453a30890d1b9c49619e76", "score": "0.61196244", "text": "Set<Customer> getCustomers(final CustomerQueryFilter filter);", "title": "" }, { "docid": "0f3d571119d099d36f07b32b9bfe64d0", "score": "0.6117288", "text": "List<Customer> getCustomers();", "title": "" }, { "docid": "ece1913c4d35021dcbc84a1557133e0d", "score": "0.6112026", "text": "public void filter(String charText) {\n charText = charText.toLowerCase();\n listData.clear(); // clear the listData\n\n if (charText.length() == 0) { // if nothing is written in the searchbar\n listData.addAll(copie); // refill the listData with all comic\n } else {\n for (Comic searchComic : copie) {\n // else, it will fill the lisData with the comic responding to the charText in th searchbar\n if (searchComic.getTitre().toLowerCase().contains(charText)) {\n listData.add(searchComic);\n }\n }\n }\n notifyDataSetChanged(); // notify to the data that the list had changed\n }", "title": "" }, { "docid": "e14e6820c1a1be2e62aa232c13b7d996", "score": "0.6104206", "text": "SearchResultCompany search(String keywords);", "title": "" }, { "docid": "29045cc81565f1c59994c1660e44fdc2", "score": "0.6093681", "text": "public static List<Customer> getCustomers(){\n \treturn Customer.findAll();\n }", "title": "" }, { "docid": "b479448b3ad0f3ce0691fe81aec6fb7e", "score": "0.608689", "text": "@Override\n\tpublic List<Customer> getCustomers() {\n\t\tSession session = sessionFactory.getCurrentSession();\n\t\t//create the query\n\t\tQuery<Customer> query = session.createQuery(\"from Customer order by lastName\", Customer.class);\n\t\t//get the result list\n\t\tList<Customer> customers = query.getResultList();\n\t\treturn customers;\n\t}", "title": "" }, { "docid": "93350665cc7c6b29cbcd204cc7584911", "score": "0.60819864", "text": "@GetMapping(\"/search/results\")\n public String showClientsByNameAndLastName(Model model, @ModelAttribute(CUSTOMER) CustomerDTO customerDTO) {\n Customer customer = mapDTOCustomerToPersistent(customerDTO);\n model.addAttribute(CUSTOMERS, customerService.findByNameAndLastName(customer.getFirstName(), customer.getLastName()));\n return CUSTOMERS_INDEX;\n }", "title": "" }, { "docid": "3528ee8bc43c5263213558392e1f69a5", "score": "0.60596275", "text": "public static StringBuilder displaySearchResults()\n\t{\n\t\tStringBuilder sb = new StringBuilder();\n\n\t\tfor (Customer customer : customerList)\n\t\t{\n\t\t\tfor (int i = 0; i < customerSearch.size(); ++i)\n\t\t\t{\n\t\t\t\tif (customerList.indexOf(customer) == customerSearch.get(i))\n\t\t\t\t{\n\t\t\t\t\tsb.append(String.format(\"%10sRECORD# %d%n\", \" \", (customerSearch.indexOf(i) + 1)));\n\t\t\t\t\tsb.append(customer.toString());\n\t\t\t\t\tsb.append('\\n');\n\n\t\t\t\t\tfor (Account account : customer.getAcctList())\n\t\t\t\t\t{\n\t\t\t\t\t\tsb.append(account.toString());\n\t\t\t\t\t\tsb.append('\\n');\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn sb;\n\t}", "title": "" }, { "docid": "5a5f6f3ce8fc1c645e12fdfe68850023", "score": "0.60534465", "text": "public void searchCustomerName(String str) {\n\n sendTextToElement(searchCustomerField,str);\n }", "title": "" }, { "docid": "f30698b91453ba249368fbf6d4bdfec7", "score": "0.60467434", "text": "List<Customer> getList();", "title": "" }, { "docid": "3fbeaf27fe4b2ce0a6794445c0280057", "score": "0.6045265", "text": "public void llistaCustomerByName(String string) {\n\t\tSystem.out.println(\"\\nCustomers anomenats \" + string + \" :\");\n\t\t\n\t\tObjectSet<Customer> customers = db.query(new Predicate<Customer>() {\n\t\t\tpublic boolean match(Customer customer) {\n\t\t\t\treturn customer.getName().equalsIgnoreCase(string);\n\t\t\t}\n\t\t});\n\t\t\n\t\tcustomers.stream()\n\t\t\t.forEach(System.out::println);\n\t}", "title": "" }, { "docid": "af17f1727666ad88aff0700db7c40041", "score": "0.60335404", "text": "private ArrayList<String> findChampions() {\n\t\tString searchContents = search.getText();\n\t\tArrayList<String> result = new ArrayList<String>();\n\t\tfor (String c : CHAMPIONLIST) {\n\t\t\tif (c.toLowerCase().contains(searchContents.toLowerCase())) {\n\t\t\t\tresult.add(c);\n\t\t\t}\n\t\t}\n\t\treturn result;\n\t}", "title": "" }, { "docid": "4934aaba23ee92c451d0da55d89135f3", "score": "0.60275894", "text": "public Customer searchCustomerByPhone() {\r\n\t\t//Input customer phone.\r\n\t\tString phone = readString(\"Input the customer phone: \");\r\n\t\tCustomer f = my.findByPhone(phone);\r\n\t\treturn f;\r\n\t}", "title": "" }, { "docid": "75c4eaad5ba8e21401bc2dce054ccf0b", "score": "0.602306", "text": "public List<User> listSearch(String search);", "title": "" }, { "docid": "72bc56074cc5692ee5b02b1321038a57", "score": "0.6016652", "text": "@Override\r\n\tpublic List<CatelistDto> Getsearch(SearchDto dto) throws Exception {\n\t\treturn searchdao.Getsearch(dto);\r\n\t}", "title": "" }, { "docid": "2ec1c9bb541e2280632ab164a363342b", "score": "0.59994096", "text": "@Override\n protected FilterResults performFiltering(CharSequence constraint) {\n\n String searchText = constraint.toString().toLowerCase();\n\n List<MapDataModel> filteredList = new ArrayList<>();\n\n if(searchText.isEmpty() || searchText.length() == 0){\n filteredList.addAll(doctorslist);\n }else{\n for (MapDataModel doctorlist: doctorslist){\n\n if (doctorlist.getDoctorname().toLowerCase().contains(searchText)){\n filteredList.add(doctorlist);\n }\n }\n }\n\n FilterResults filterResults = new FilterResults();\n filterResults.values = filteredList;\n\n return filterResults;\n }", "title": "" }, { "docid": "3173a373efd851b09608c336014d872e", "score": "0.5989202", "text": "public void listAllCustomers () {\r\n\t\t\r\n customersList = my.resturnCustomers();\r\n\t\t\r\n\t}", "title": "" }, { "docid": "56fd8d4fa5f789099d7912e417574e22", "score": "0.597683", "text": "public void getCustomerNames() throws SQLException {\n ResultSet rs; \n Statement st = dbConnection.dbConnect().createStatement();\n String recordQuery = (\"Select * from customer\");\n rs = st.executeQuery(recordQuery);\n while(rs.next()){\n customers.getItems().add(rs.getString(\"customerName\"));\n }\n }", "title": "" }, { "docid": "9cd7b71d5601ad960334b2afc1e41c02", "score": "0.59520066", "text": "List<Corretor> search(String query);", "title": "" }, { "docid": "87c3bdbe417bb5b8773ebc771724a87e", "score": "0.5926868", "text": "@Override\r\n\tpublic List<CatelistDto> Getcatesearch(LocationDto locadto) throws Exception {\n\t\treturn searchdao.Getcatesearch(locadto);\r\n\t}", "title": "" }, { "docid": "871296ffd3487d118f036d3d21ed4391", "score": "0.5923607", "text": "@GetMapping( value = CustomerRestURIConstants.GET_CUSTOMERS_BY_SEARCH )\n\tpublic ResponseEntity<List<Customer>> getCustomerBySearchParameter(@PathVariable(\"searchInput\") String searchInput) {\n\t\tList<Customer> custList = customerService.getCustomerBySearchParameter(searchInput);\n\t\treturn ResponseEntity.ok().body(custList);\n\t}", "title": "" }, { "docid": "d438a46f16751e07598b51f272a9cf5a", "score": "0.59069", "text": "public List<User> searchUser(String searchValue);", "title": "" }, { "docid": "22527d187fa505198f34fa5261e3a979", "score": "0.5889584", "text": "public List<Customer> getCustomerList() {\n return new ArrayList<Customer>(customersList);\n }", "title": "" }, { "docid": "2edb4b33000cdbc7214c63d5de5b4655", "score": "0.5871167", "text": "public List<Customer> getCustomerByID() {\n Query query = em.createNamedQuery(\"Customer.findByCustomerId\")\r\n .setParameter(\"customerId\", custID);\r\n // return query result\r\n return query.getResultList();\r\n }", "title": "" }, { "docid": "15dab069370d9ef27c32d1c2a785e0ea", "score": "0.5869404", "text": "@RequestMapping(value = \"/v2/customers\", method = RequestMethod.GET)\r\n\tpublic List<Customer> customers() {\r\n JPAQuery<?> query = new JPAQuery<Void>(em);\r\n QCustomer qcustomer = QCustomer.customer;\r\n List<Customer> customers = (List<Customer>) query.from(qcustomer).fetch();\r\n // Employee oneEmp = employees.get(0);\r\n\t\treturn customers;\r\n }", "title": "" }, { "docid": "bff0531503b7d2adad9b0ec1513842c9", "score": "0.58666664", "text": "public List<CustomerServiceDto> selectInfoListByName(Criteria criteria){\n \treturn tbCustomerServiceMapper.selectInfoListByName(criteria);\n }", "title": "" }, { "docid": "b58a57c4626469d44b527a0b96377587", "score": "0.5865469", "text": "public List search() {\n\t\tSessionFactory sf = new Configuration().configure()\n\t\t\t\t.buildSessionFactory();\n\t\tSession s = sf.openSession();\n\t\tQuery q = s.createQuery(\"from cat_vo\");\n\t\tList ls = q.list();\n\t\treturn ls;\n\t}", "title": "" }, { "docid": "08acf52de6f4ca04bce58d9cd8ccab9e", "score": "0.5863242", "text": "private void filter(String text){\n ArrayList<BloodBank> filteredList=new ArrayList<>();\n for(BloodBank bloodBank:lstBloodBanks){\n if(bloodBank.getName().toLowerCase().contains(text.toLowerCase())){\n filteredList.add(bloodBank);\n }\n }\n\n adapter.filterList(filteredList);\n }", "title": "" }, { "docid": "11dd96a41969346028daae4229825728", "score": "0.586137", "text": "public List<CustomerModel> getCustomers();", "title": "" }, { "docid": "293479e163a0955a8bc714f0f0436db4", "score": "0.58334774", "text": "public ArrayList<String[]> searchField(String phone)\n\t{\n\t\tArrayList<Customer> customers = CustomerContainer.getInstance().getCustomers();\t\n\t\tArrayList<String[]> data = new ArrayList<>();\n\t\tif (customers == null)\n\t\t{\n\t\t\treturn data;\n\t\t}\n\t\tfor (Customer customer : customers)\n\t\t{\n\t\t\tif (Integer.toString(customer.getPhone()).contains(phone))\n\t\t\t{\n\t\t\t\tdata.add(customer.tableFill());\n\t\t\t}\n\t\t}\n\t\treturn data;\n\t}", "title": "" }, { "docid": "66450dacaec5c6ac1e6cf91eea18593a", "score": "0.58203566", "text": "@Override\n\tpublic List<Movie> search(String queryText) {\n\t\tMoviesResponse moviesResponse = movieDataService.fetchAll();\n\t\tList<Movie> movieList = moviesResponse.stream()\n\t\t\t\t.filter(movieData -> Arrays.asList(movieData.getTitle().toLowerCase().split(\"\\\\s+\")).contains(queryText.toLowerCase()))\n\t\t\t\t.collect(Collectors.mapping(movieData -> mapMovieDataToMovie(movieData),Collectors.toList()));\n\t\treturn movieList;\n\t}", "title": "" }, { "docid": "9f109e034f6266b91b6702362fd300e1", "score": "0.5817747", "text": "@Override\n\tpublic List<Customer> getCustomers() {\n\n\t\treturn sessionFactory.getCurrentSession().createQuery(\"from Customer order by lastName\", Customer.class)\n\t\t\t\t.getResultList();\n\n\t}", "title": "" }, { "docid": "feb3802a39d8974548ab24cc635625b7", "score": "0.58067304", "text": "@RequestMapping(value = \"/_search/customerOrders/{query:.+}\",\n method = RequestMethod.GET,\n produces = MediaType.APPLICATION_JSON_VALUE)\n @Timed\n public List<CustomerOrder> searchCustomerOrders(@PathVariable String query) {\n log.debug(\"REST request to search CustomerOrders for query {}\", query);\n return StreamSupport\n .stream(customerOrderSearchRepository.search(queryStringQuery(query)).spliterator(), false)\n .collect(Collectors.toList());\n }", "title": "" }, { "docid": "5742d5e0151ac3bcf0c069b525b2b31f", "score": "0.5795196", "text": "public List<BusinessAccount> searchAllContractors() {\n\t\tfactory = Persistence.createEntityManagerFactory(PERSISTENCE_UNIT_NAME);\n\t\tEntityManager em = factory.createEntityManager();\t\n\t\n\t\t\tem.getTransaction().begin();\n\t\t\tQuery myQuery = em.createQuery(\"SELECT b FROM BusinessAccount b\");\n\t\t\tcontractorList=myQuery.getResultList();\n\t\t em.getTransaction().commit();\n\t\t em.close();\n\t\t\t\n\t\t\treturn contractorList;\n\t\t}", "title": "" }, { "docid": "c4bd873ea824761e49dd37bb3dca0a2b", "score": "0.57816607", "text": "@Query(\"select o from Ordine o \" +\n \"where lower(o.cliente.nomeCliente) like lower(concat('%', :searchTerm, '%')) \" )\n List<Ordine> searchForCliente(@Param(\"searchTerm\") String searchTerm);", "title": "" }, { "docid": "661440f0b7dbda80ad12c926c474f3d8", "score": "0.5774482", "text": "@In String search();", "title": "" }, { "docid": "9feccfcfcdab07ca3ec94695dde2bd7a", "score": "0.57682645", "text": "protected final void searchForText() {\n Logger.debug(\" - search for text\");\n final String searchText = theSearchEdit.getText().toString();\n\n MultiDaoSearchTask task = new MultiDaoSearchTask() {\n @Override\n protected void onSearchCompleted(List<Object> results) {\n adapter.setData(results);\n }\n\n @Override\n protected int getMinSearchTextLength() {\n return 0;\n }\n };\n task.readDaos.add(crDao);\n task.readDaos.add(monsterDao);\n task.readDaos.add(customMonsterDao);\n task.execute(searchText.toUpperCase());\n }", "title": "" }, { "docid": "8ada7b24df00fa16c3a0cffac4beadde", "score": "0.5763643", "text": "public void searchByName() {\n System.out.println(\"enter a name to search\");\n Scanner sc = new Scanner(System.in);\n String fName = sc.nextLine();\n Iterator itr = list.iterator();\n while (itr.hasNext()) {\n Contact person = (Contact) itr.next();\n if (fName.equals(person.getFirstName())) {\n List streamlist = list.stream().\n filter(n -> n.getFirstName().\n contains(fName)).\n collect(Collectors.toList());\n System.out.println(streamlist);\n }\n }\n }", "title": "" }, { "docid": "ab7504ebf9989bbd9677919cb7dfba96", "score": "0.5755782", "text": "public List<Customer> getAllCustomers() {\n Query query = em.createNamedQuery(\"Customer.findAll\");\r\n // return query result\r\n return query.getResultList();\r\n }", "title": "" }, { "docid": "1bfd27888bc5bb610ca88080720914eb", "score": "0.575558", "text": "public List<Ve> searchVe(String maSearch);", "title": "" }, { "docid": "0ce875325d592aec0455ae751a978dfa", "score": "0.57551783", "text": "java.util.List<com.google.cloud.channel.v1.Customer> \n getCustomersList();", "title": "" }, { "docid": "34c149a29456ac2063f003f7a110d909", "score": "0.5738143", "text": "public static ObservableList<Customer> getCustomerList() throws SQLException{\r\n customerList.clear();\r\n Connection conn = DBConnection.getConnection();\r\n String selectStatement = \"SELECT * FROM customers;\";\r\n DBQuery.setPreparedStatement(conn, selectStatement);\r\n PreparedStatement ps = DBQuery.getPreparedStatement();\r\n ps.execute();\r\n ResultSet rs = ps.getResultSet();\r\n\r\n //creates customer and adds to list\r\n while(rs.next())\r\n {\r\n int customerID = rs.getInt(\"Customer_ID\");\r\n String customerName = rs.getString(\"Customer_Name\");\r\n String address = rs.getString(\"Address\");\r\n String state = getDivisionName(rs.getInt(\"Division_ID\"));\r\n String postalCode = rs.getString(\"Postal_Code\");\r\n String country = getCountryName(getCountryID(rs.getInt(\"Division_ID\")));\r\n String phoneNumber = rs.getString(\"Phone\");\r\n Customer customer = new Customer(customerID,customerName,address,state,postalCode,country,phoneNumber);\r\n customerList.add(customer);\r\n }\r\n return customerList;\r\n }", "title": "" }, { "docid": "146f68fb53ac1291d50d46b9b99a3a2a", "score": "0.5736171", "text": "@Transactional\n\tpublic List<Customer> getCustomers() {\n\t\t\t\tSession currentSession = sessionFactory.getCurrentSession();\n\n\t\t\t\t// create a query ... sort by last name\n\t\t\t\tQuery<Customer> theQuery = currentSession.createQuery(\"from Customer order by lastName\", Customer.class);\n\n\t\t\t\t// execute query and get result list\n\t\t\t\tList<Customer> customers = theQuery.getResultList();\n\n\t\t\t\t// return the results\n\t\t\t\treturn customers;\n\t}", "title": "" }, { "docid": "745cdd3afd54d2eed46ee1043ef2a64f", "score": "0.57276636", "text": "public void search(String text){\n filteredList.clear();\n\n if(TextUtils.isEmpty(text)){\n filteredList.addAll(filteredListForSearch);\n }\n\n else{\n String query = text.toLowerCase();\n for(SensorResponse item : filteredListForSearch){\n if(item.getSensor_Type().toLowerCase().contains(query) || Long.toString(item.getBattery()).toLowerCase().contains(query)\n || Long.toString(item.getDate_Time()).toLowerCase().contains(query) || Double.toString(item.getLat()).toLowerCase().contains(query)\n || Double.toString(item.getLong()).toLowerCase().contains(query) || item.getSensorHealth().toLowerCase().contains(query)\n || Long.toString(item.getSensor_ID()).toLowerCase().contains(query) || Double.toString(item.getSensor_Val()).toLowerCase().contains(query)){\n filteredList.add(item);\n }\n }\n }\n removeDuplicates();\n notifyDataSetChanged();\n }", "title": "" }, { "docid": "7be518c9c0fa9bebbabe0feb21c1b4ab", "score": "0.57156354", "text": "@Override\n\tpublic List<Customer> findAllCustomer() {\n\t\treturn customerDao.findAllCustomer();\n\t}", "title": "" }, { "docid": "fde4a59cab24f2f2da572635252fcc1a", "score": "0.57155806", "text": "List<Card> search(String searchString) throws PersistenceCoreException;", "title": "" }, { "docid": "71d9d603e3c219623d051a76f7d77da0", "score": "0.5711764", "text": "private void filter(String text) {\n List<Target> filteredlist = new ArrayList<>();\n // running a for loop to compare elements.\n for (Target item : repositoryList) {\n // checking if the entered string matched with any item of our recycler view.\n if (item.getNameTarget().toLowerCase().contains(text.toLowerCase())) {\n // if the item is matched we are\n // adding it to our filtered list.\n filteredlist.add(item);\n }\n } adapter.updateData(filteredlist);\n }", "title": "" }, { "docid": "7e2638faacfbe5f10c942b51254f8fc5", "score": "0.57064104", "text": "public void filter(String text) {\n price_list.clear();\n if (text.length() == 0) {\n price_list.addAll(orginal_list);\n } else {\n for (Price_dto dto : orginal_list) {\n if (dto.getProduct().startsWith(text))\n price_list.add(0, dto);\n else if (dto.getProduct().contains(text)) {\n price_list.add(dto);\n }\n }\n }\n\n notifyDataSetChanged();\n }", "title": "" }, { "docid": "79bc02cf01ef3f8d29a9623fd2fe4b4e", "score": "0.57030725", "text": "private List<ClinicItem> filter(List<ClinicItem> cList, String query){\n query = query.toLowerCase();\n final List<ClinicItem> filteredModeList = new ArrayList<>();\n\n for(ClinicItem vetClinic:cList){\n if(vetClinic.getName().toLowerCase().contains(query)){\n filteredModeList.add(vetClinic); }\n }\n return filteredModeList;\n }", "title": "" }, { "docid": "b2de9a5b916949200c42f5ee8c976745", "score": "0.569403", "text": "@Override\n\tpublic Uni<List<Customer>> findAllCustomer() {\n\t\treturn repo.findAll().list();\n\t}", "title": "" }, { "docid": "133c953cca0c3038f405975945eb3b4d", "score": "0.56926095", "text": "@Override\n\t@Transactional\n\tpublic List<AMOUNT> getCustomers() {\n\t\tSession currentSession = sessionFactory.getCurrentSession();\n\n\t\t// create a query\n\t\tQuery<AMOUNT> theQuery = currentSession.createQuery(\"from Customer ORDER BY lastName\", AMOUNT.class);\n\n\t\t// execute query and get result list\n\t\tList<AMOUNT> customers = theQuery.getResultList();\n\n\t\t// return the results\n\t\treturn customers;\n\t}", "title": "" }, { "docid": "eb86fc4a2cf2f8b2131944fdcb7d0668", "score": "0.5691633", "text": "public static ObservableList<Customers> getAllCustomers() {\n return allCustomers;\n }", "title": "" }, { "docid": "553a8359bf98f30dc321586a69eb6729", "score": "0.56915706", "text": "public boolean containsCustomer(String c){\n\t\tfor (int i = 0; i < this.list.size(); i++){\n\t\t\tif( c.equals(list.get(i).getUsername()) ){\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}", "title": "" }, { "docid": "766d6d5774481719d5b653ed4befe11b", "score": "0.56850845", "text": "public void searchByCity() {\n System.out.println(\"Enter City Name : \");\n String city = sc.next();\n list.stream().filter(n -> n.getCity().equals(city)).forEach(i -> System.out.println(\"Result: \"+i.getFirstName()));\n }", "title": "" }, { "docid": "f12e0c7de35f5cd028ee727517c98080", "score": "0.56750596", "text": "public List<Partner> searchPartners(String searchText) throws SQLException {\n QueryBuilder<Partner, String> qb = partnerDao.queryBuilder();\n Where<Partner, String> where = qb.where();\n\n where.like(\"FirstName\", '%'+searchText+'%')\n .or()\n .like(\"LastName\", '%'+searchText+'%')\n .or()\n .like(\"Phone\", '%'+searchText+'%')\n .or()\n .like(\"CompanyName\", '%'+searchText+'%');\n\n PreparedQuery<Partner> preparedQuery = qb.prepare();\n\n return partnerDao.query(preparedQuery);\n }", "title": "" }, { "docid": "4c17b1b83dd945a9add22ed10ac13c7c", "score": "0.5672269", "text": "public List<String> getProducts(String c){\n\t\tif( containsCustomer(c)){\n\t\t\tfor (int i = 0; i < this.list.size(); i++){\n\t\t\t\tif( c.equals(list.get(i).getUsername())){\n\t\t\t\t\treturn list.get(i).getWishlist();\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}", "title": "" }, { "docid": "b83311ff49653930e1c894f7c6c653e6", "score": "0.56676686", "text": "public List<Customer> findAllCustomers() throws DatabaseOperationException;", "title": "" }, { "docid": "cdc2f831e0cf1b5824dbf49cb33d02e5", "score": "0.5656532", "text": "public String list(){\n\t\tif(name == null) {\n\t\t\ttry {\n\t\t\t\tlist = customerBO.getAll();\n\t\t\t} catch (Exception e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t} else {\n\t\t\tList<Customer> l = new ArrayList<Customer>();\n\t\t\ttry {\n\t\t\t\tl = customerBO.getAll();\n\t\t\t\tfor(Customer cus: l) {\n\t\t\t\t\tString CustomerName = cus.getFirstName() + \" \" + cus.getLastName();\n\t\t\t\t\tif(CustomerName.compareTo(name) == 0) {\n\t\t\t\t\t\tlist.add(cus);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tint total = list.size();\n\t\t\t\tint div = total / STATIC_ROW_MAX;\n\t\t\t\tif(div * STATIC_ROW_MAX == total) {\n\t\t\t\t\ttotalPage = div;\n\t\t\t\t} else {\n\t\t\t\t\ttotalPage = div + 1;\n\t\t\t\t}\t\n\n\t\t\t} catch (Exception e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\n\t\t}\n\t\tint index = 0, begin = 0;\n\t\tbegin = (pageIndex - 1) * STATIC_ROW_MAX;\n\t\tif(pageIndex < totalPage) {\n\t\t\tindex = pageIndex * STATIC_ROW_MAX;\n\t\t} else {\n\t\t\tindex = list.size();\n\t\t}\n\t\tfor(int i = begin; i < index; i++) {\n\t\t\tlistCustomer.add(list.get(i));\t\t\t\t\n\t\t}\n\n\t\treturn \"list\";\n\t}", "title": "" }, { "docid": "9c36fdf7e78968bea7404efa548fab48", "score": "0.56465864", "text": "private void filter(String text) {\n ArrayList<ChildItem> filterdNames = new ArrayList<>();\n\n //looping through existing elements\n for (ChildItem s : dataParent ) {\n\n //if the existing elements contains the search input\n if (s.getKode_barang().toLowerCase().contains(text.toLowerCase())) {\n //adding the element to filtered list\n filterdNames.add(s);\n }\n }\n\n //calling a method of the adapter class and passing the filtered list\n adapter.filterList(filterdNames);\n }", "title": "" }, { "docid": "56489610d95f495b9a236537d8741a86", "score": "0.5638747", "text": "@Override\n\tpublic List<Customer> listCustomers() {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "ca2f7003c072f9b3128bd73851985035", "score": "0.5636549", "text": "public List<Customermodel> getCustomers() {\n\t return customerdb.findAll();\n\t }", "title": "" }, { "docid": "ea9e58fefaa1ddca11b8479228077320", "score": "0.561733", "text": "@Override\n\tpublic List<Customer> retrieveAllCustomers() {\n\t\tlogger.info(\"A GET call retrieved all customers: retrieveAllCustomers()\");\n\t\treturn customers;\n\t}", "title": "" }, { "docid": "7780658934b1dc4a957c49c66a18c717", "score": "0.5613251", "text": "com.google.cloud.channel.v1.Customer getCustomers(int index);", "title": "" } ]
1161c5f5afa3924476a38de5fb8fd2e0
This constructs an instance from a factory and a notifier.
[ { "docid": "53da41d685eb6846c23c393f44797afe", "score": "0.0", "text": "public IssueItemProvider(AdapterFactory adapterFactory) {\n\t\tsuper(adapterFactory);\n\t}", "title": "" } ]
[ { "docid": "1d07dae26109bebb2463ebd40e6e9d37", "score": "0.6554377", "text": "public Factory() {\n this(getInternalClient());\n }", "title": "" }, { "docid": "1d07dae26109bebb2463ebd40e6e9d37", "score": "0.6554377", "text": "public Factory() {\n this(getInternalClient());\n }", "title": "" }, { "docid": "10bf83030cfe6b99acd36445a33983d6", "score": "0.6463161", "text": "public interface NotificationAbstractFactory {\n Notification createNotification();\n}", "title": "" }, { "docid": "444b4d65ce89341f4578c8c6e52f0c85", "score": "0.62232274", "text": "private TrackerFactory() {\n }", "title": "" }, { "docid": "b8d032a8844934cfa6dd78a939db5f4c", "score": "0.61667174", "text": "public RezeptFactory() {\n }", "title": "" }, { "docid": "24737e419fe94fe07e6a44936576f368", "score": "0.61197746", "text": "public static synchronized WorkerFactory getFactory(){ \r\n if(factory == null){ \r\n factory = new WorkerFactory();\r\n LOG.debug(\"Created new instance of \" + WorkerFactory.class.getSimpleName());\r\n }\r\n return factory;\r\n }", "title": "" }, { "docid": "96e6e791727d7baa07906b6e957b08a0", "score": "0.6098204", "text": "public static Factory factory() {\n return ext_vss::new;\n }", "title": "" }, { "docid": "553a0ba477e2163756ecb4c0eccf7ed7", "score": "0.60909724", "text": "private PersonalTrainerFactory() {}", "title": "" }, { "docid": "1f10f30437c28533e93b5236bb2091f8", "score": "0.6016248", "text": "protected abstract LSAFactory createFactory();", "title": "" }, { "docid": "e4b54cbf2677f1f1bbe2e07be3cf0fae", "score": "0.59455043", "text": "public static Factory factory() {\n return ext_kt::new;\n }", "title": "" }, { "docid": "15c7fd9f440873758ced50a39d842b82", "score": "0.59396255", "text": "public MailFactoryImpl() {\n super();\n }", "title": "" }, { "docid": "a567137367455a9d6c7311fe1e3504c3", "score": "0.59086615", "text": "ProcessorWall(Factory factory) {\n\t\tmyFactory = factory;\n\t}", "title": "" }, { "docid": "72693994e3a5d5ce3632af3026aa8c18", "score": "0.5889368", "text": "public interface Factory<T> {\n\t\n\t\t/**\n\t\t * Produces a new instance without passing arguments.\n\t\t */\n\t\tT createNew();\n\t\n\t}", "title": "" }, { "docid": "949827b3e6ea2fdc8d958ec445988127", "score": "0.57812244", "text": "private GenericsFactory getFactory() { return factory;}", "title": "" }, { "docid": "6c2ba3cb0422fb207a30bed2e0225b30", "score": "0.5770008", "text": "public Factory getFactory();", "title": "" }, { "docid": "db79cdf1e148aa8b7d04c2abfcbfe73d", "score": "0.5762632", "text": "public static Factory factory() {\n return ext_ocx::new;\n }", "title": "" }, { "docid": "ddad889c53896d07d920cf3e8a1c71fb", "score": "0.5748179", "text": "public MultiactivityFactoryImpl() {\n\t\tsuper();\n\t}", "title": "" }, { "docid": "1d732f385f9576f0718b84c6c38a7539", "score": "0.5731426", "text": "public static MultiactivityFactory init() {\n\t\ttry {\n\t\t\tMultiactivityFactory theMultiactivityFactory = (MultiactivityFactory) EPackage.Registry.INSTANCE\n\t\t\t\t\t.getEFactory(MultiactivityPackage.eNS_URI);\n\t\t\tif (theMultiactivityFactory != null) {\n\t\t\t\treturn theMultiactivityFactory;\n\t\t\t}\n\t\t} catch (Exception exception) {\n\t\t\tEcorePlugin.INSTANCE.log(exception);\n\t\t}\n\t\treturn new MultiactivityFactoryImpl();\n\t}", "title": "" }, { "docid": "cdfa9ea3f3d9634e299303fc85cf7ae1", "score": "0.57294196", "text": "public MCFactory() {\n }", "title": "" }, { "docid": "2bf995f2b7b71b9d91fc44fe9585404f", "score": "0.56994396", "text": "public BuildMonitorImpl(MonitorFactory monitorFactory)\n\t{\n\t\tsuper();\n\n\t\t// load messages resource file\n\t\tthis.messages = ResourceBundle.getBundle(MESSAGES_BASE_NAME, Locale.getDefault(), this.getClass().getClassLoader());\n\n\t\ttry\n\t\t{\n\t\t\tthis.monitor = monitorFactory.getMonitor(this);\n\t\t}\n\t\tcatch(Exception e)\n\t\t{\n\t\t\t// TODO: use a nice formatted message for the end user ?\n\t\t\tpanic(e);\n\t\t}\n\t}", "title": "" }, { "docid": "049178d026346574a65b9a3bead0c48f", "score": "0.5665861", "text": "public CustomersFactory() {\n\t\tsuper();\n\t}", "title": "" }, { "docid": "d023558ff1483be87b39ca9c7ca56798", "score": "0.56582725", "text": "private ObjectFactory(){}", "title": "" }, { "docid": "c422615f6299332abce2890ac4877c81", "score": "0.5648458", "text": "private MasterManageFederationVOFactory()\n\t{\n\t\t\n\t}", "title": "" }, { "docid": "bc1627751ba4218299a46eba89180e0c", "score": "0.56406444", "text": "public ObjectFactoryF() {\n }", "title": "" }, { "docid": "61e7fb958a926b9afd4d0adf730d5dcc", "score": "0.56354344", "text": "public ObjectFactory() {}", "title": "" }, { "docid": "016eb860ef8abe3a6f648b4ca5242112", "score": "0.5633743", "text": "public static MailFactory init() {\n try {\n MailFactory theMailFactory = (MailFactory)EPackage.Registry.INSTANCE.getEFactory(\"urn:switchyard-component-camel-mail:config:2.0\"); \n if (theMailFactory != null) {\n return theMailFactory;\n }\n }\n catch (Exception exception) {\n EcorePlugin.INSTANCE.log(exception);\n }\n return new MailFactoryImpl();\n }", "title": "" }, { "docid": "bede18130e7f0bd013403ad46b4db192", "score": "0.5620035", "text": "private ModelFactory() {}", "title": "" }, { "docid": "4fb00c508f34ea0a2c2b454447ed976c", "score": "0.56125194", "text": "public static Factory factory() {\n return Printer::new;\n }", "title": "" }, { "docid": "fdc85901c233c5568a5be22fb976d13e", "score": "0.5601888", "text": "@Override\r\n\tpublic Result create() throws FactoryInstantiationException {\r\n\t\tif (!isReady())\r\n\t\t\tthrow new FactoryInstantiationException(\"The MedicationResultFactory is not ready yet!\");\r\n\t\treturn new MedicationResult(this.abnormalReaction_, this.report_);\r\n\t}", "title": "" }, { "docid": "06d257762143f40aa84d0ac4a388f966", "score": "0.55986375", "text": "public static Statechart_1_0Factory init() {\n\t\ttry {\n\t\t\tStatechart_1_0Factory theStatechart_1_0Factory =\n\t\t\t\t\t(Statechart_1_0Factory) EPackage.Registry.INSTANCE.getEFactory(Statechart_1_0Package.eNS_URI);\n\t\t\tif (theStatechart_1_0Factory != null) {\n\t\t\t\treturn theStatechart_1_0Factory;\n\t\t\t}\n\t\t}\n\t\tcatch (Exception exception) {\n\t\t\tEcorePlugin.INSTANCE.log(exception);\n\t\t}\n\t\treturn new Statechart_1_0FactoryImpl();\n\t}", "title": "" }, { "docid": "8f583bdb43c20ed2ab589c687b927746", "score": "0.5584066", "text": "protected Reifier getReifier(){return Reifier.make(getFactory());}", "title": "" }, { "docid": "fdd6f2e9ebc5067a33d05bfce2d4bbf5", "score": "0.5570907", "text": "public CastellanFactory() { }", "title": "" }, { "docid": "8c20148372c087d9f4a4912ad2e13509", "score": "0.5563059", "text": "protected abstract Instance createInstance();", "title": "" }, { "docid": "2624a33201756d09f3ae842e12fa9af3", "score": "0.5560011", "text": "public static InvoiceFactory init() {\n\t\ttry {\n\t\t\tInvoiceFactory theInvoiceFactory = (InvoiceFactory)EPackage.Registry.INSTANCE.getEFactory(InvoicePackage.eNS_URI);\n\t\t\tif (theInvoiceFactory != null) {\n\t\t\t\treturn theInvoiceFactory;\n\t\t\t}\n\t\t}\n\t\tcatch (Exception exception) {\n\t\t\tEcorePlugin.INSTANCE.log(exception);\n\t\t}\n\t\treturn new InvoiceFactoryImpl();\n\t}", "title": "" }, { "docid": "185cab0f4a4522e028ef33547380d798", "score": "0.55597055", "text": "public ExcoFactoryImpl()\n {\n super();\n }", "title": "" }, { "docid": "e92b0c654874f97990387165358b190a", "score": "0.55581295", "text": "public AssignmentsFactoryImpl()\n {\n super();\n }", "title": "" }, { "docid": "c2bb4146f6e333248418dc7bb0b9dacb", "score": "0.5546578", "text": "public static Factory factory() {\n return Applications_office::new;\n }", "title": "" }, { "docid": "a850584eb40fec53c420174c9f029db9", "score": "0.5539602", "text": "Supplier<?> createInstantiator(Constructor<?> constructor, Supplier<?>[] suppliers);", "title": "" }, { "docid": "0805157ac9b93ee403be8e05b71413f0", "score": "0.55280054", "text": "public static IEC61970Factory init() {\n\t\ttry {\n\t\t\tIEC61970Factory theIEC61970Factory = (IEC61970Factory)EPackage.Registry.INSTANCE.getEFactory(IEC61970Package.eNS_URI);\n\t\t\tif (theIEC61970Factory != null) {\n\t\t\t\treturn theIEC61970Factory;\n\t\t\t}\n\t\t}\n\t\tcatch (Exception exception) {\n\t\t\tEcorePlugin.INSTANCE.log(exception);\n\t\t}\n\t\treturn new IEC61970Factory();\n\t}", "title": "" }, { "docid": "76601c3ba89d267b18ff91dbad4cd6d0", "score": "0.5524634", "text": "private VehicleFactory() {\n }", "title": "" }, { "docid": "14a5e1055ba99c73d6c2b2db011f9927", "score": "0.551899", "text": "private static void create() {}", "title": "" }, { "docid": "29b4ef52ff7dd7160b4b4fa23a3d3a86", "score": "0.55114496", "text": "public RanmtFactory() \r\n\t{\r\n\t\tsuper();\r\n\t}", "title": "" }, { "docid": "fe7ce32072c6517f1a721167007e942d", "score": "0.55102175", "text": "public static Base_Factory init() {\n\t\ttry {\n\t\t\tBase_Factory theBase_Factory = (Base_Factory)EPackage.Registry.INSTANCE.getEFactory(Base_Package.eNS_URI);\n\t\t\tif (theBase_Factory != null) {\n\t\t\t\treturn theBase_Factory;\n\t\t\t}\n\t\t}\n\t\tcatch (Exception exception) {\n\t\t\tEcorePlugin.INSTANCE.log(exception);\n\t\t}\n\t\treturn new Base_FactoryImpl();\n\t}", "title": "" }, { "docid": "4e2d8be7fec314da21727af46d95830c", "score": "0.5501489", "text": "public InvoiceFactoryImpl() {\n\t\tsuper();\n\t}", "title": "" }, { "docid": "3ac7f66d59f84983e63f41fa3e7db6b8", "score": "0.55000603", "text": "public MDDFactoryImpl()\n {\n super();\n }", "title": "" }, { "docid": "826d8fb38a6a123667ef0d2dfc85a828", "score": "0.54993975", "text": "static public DatabindingFactory newInstance() {\n\t\ttry {\n\t\t\tClass<?> cls = Class.forName(ImplClass);\n\t\t\treturn (DatabindingFactory) cls.getConstructor().newInstance();\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn null;\n\t}", "title": "" }, { "docid": "2507fd4e41196eebce434e9185a50336", "score": "0.5494839", "text": "DemNotification createDemNotification();", "title": "" }, { "docid": "4e6baacffeea225b384e60c96ea1962b", "score": "0.5494114", "text": "public Base_FactoryImpl() {\n\t\tsuper();\n\t}", "title": "" }, { "docid": "b919d8919cd53af2eca1632e83a2231e", "score": "0.54899895", "text": "private InfoMgrFactory() {\r\n }", "title": "" }, { "docid": "afcadd56afd575cea9171c4acbe31318", "score": "0.54791874", "text": "public interface FactoryService extends Component\r\n{\r\n\r\n public static final String FACTORY_SERVICE_KEY = \"FACTORY_SERVICE_KEY\";\r\n\r\n /**\r\n * Returns an object refererence to the factory.\r\n * @return Factory the factory object reference.\r\n */\r\n public Factory getFactory();\r\n\r\n /**\r\n * Creates a new object reference\r\n * @param arguments an array of arguments \r\n * @return Adaptive an adaptive object reference\r\n * @exception UnrecognizedCriteria if the arguments established by the\r\n * adapter implementation is unknown to the factory\r\n * @exception InvalidCriteria if the arguments created by the \r\n * implementation is recognized but rejected as invalid\r\n */\r\n public Adaptive create( Argument[] arguments ) \r\n throws UnrecognizedCriteria, InvalidCriteria, CreationException;\r\n\r\n}", "title": "" }, { "docid": "52c5f0778ba6c0983b4172fa32942611", "score": "0.5478229", "text": "public ObjectFactory() {\n\t}", "title": "" }, { "docid": "52c5f0778ba6c0983b4172fa32942611", "score": "0.5478229", "text": "public ObjectFactory() {\n\t}", "title": "" }, { "docid": "52c5f0778ba6c0983b4172fa32942611", "score": "0.5478229", "text": "public ObjectFactory() {\n\t}", "title": "" }, { "docid": "52c5f0778ba6c0983b4172fa32942611", "score": "0.5478229", "text": "public ObjectFactory() {\n\t}", "title": "" }, { "docid": "858f8233e9b50c5dfc30160449513803", "score": "0.5472519", "text": "public ObjectFactory() {\r\n\t}", "title": "" }, { "docid": "858f8233e9b50c5dfc30160449513803", "score": "0.5472519", "text": "public ObjectFactory() {\r\n\t}", "title": "" }, { "docid": "858f8233e9b50c5dfc30160449513803", "score": "0.5472519", "text": "public ObjectFactory() {\r\n\t}", "title": "" }, { "docid": "0cedde3596fd9db2ce10d2421227fe76", "score": "0.54608786", "text": "public ObjectFactory() {\n }", "title": "" }, { "docid": "0cedde3596fd9db2ce10d2421227fe76", "score": "0.54608786", "text": "public ObjectFactory() {\n }", "title": "" }, { "docid": "0cedde3596fd9db2ce10d2421227fe76", "score": "0.54608786", "text": "public ObjectFactory() {\n }", "title": "" }, { "docid": "0cedde3596fd9db2ce10d2421227fe76", "score": "0.54608786", "text": "public ObjectFactory() {\n }", "title": "" }, { "docid": "0cedde3596fd9db2ce10d2421227fe76", "score": "0.54608786", "text": "public ObjectFactory() {\n }", "title": "" }, { "docid": "0cedde3596fd9db2ce10d2421227fe76", "score": "0.54608786", "text": "public ObjectFactory() {\n }", "title": "" }, { "docid": "0cedde3596fd9db2ce10d2421227fe76", "score": "0.54608786", "text": "public ObjectFactory() {\n }", "title": "" }, { "docid": "0cedde3596fd9db2ce10d2421227fe76", "score": "0.54608786", "text": "public ObjectFactory() {\n }", "title": "" }, { "docid": "0cedde3596fd9db2ce10d2421227fe76", "score": "0.54608786", "text": "public ObjectFactory() {\n }", "title": "" }, { "docid": "0cedde3596fd9db2ce10d2421227fe76", "score": "0.54608786", "text": "public ObjectFactory() {\n }", "title": "" }, { "docid": "0cedde3596fd9db2ce10d2421227fe76", "score": "0.54608786", "text": "public ObjectFactory() {\n }", "title": "" }, { "docid": "0cedde3596fd9db2ce10d2421227fe76", "score": "0.54608786", "text": "public ObjectFactory() {\n }", "title": "" }, { "docid": "0cedde3596fd9db2ce10d2421227fe76", "score": "0.54608786", "text": "public ObjectFactory() {\n }", "title": "" }, { "docid": "0cedde3596fd9db2ce10d2421227fe76", "score": "0.54608786", "text": "public ObjectFactory() {\n }", "title": "" }, { "docid": "0cedde3596fd9db2ce10d2421227fe76", "score": "0.54608786", "text": "public ObjectFactory() {\n }", "title": "" }, { "docid": "0cedde3596fd9db2ce10d2421227fe76", "score": "0.54608786", "text": "public ObjectFactory() {\n }", "title": "" }, { "docid": "0cedde3596fd9db2ce10d2421227fe76", "score": "0.54608786", "text": "public ObjectFactory() {\n }", "title": "" }, { "docid": "0cedde3596fd9db2ce10d2421227fe76", "score": "0.54608786", "text": "public ObjectFactory() {\n }", "title": "" }, { "docid": "0cedde3596fd9db2ce10d2421227fe76", "score": "0.54608786", "text": "public ObjectFactory() {\n }", "title": "" }, { "docid": "0cedde3596fd9db2ce10d2421227fe76", "score": "0.54608786", "text": "public ObjectFactory() {\n }", "title": "" }, { "docid": "0cedde3596fd9db2ce10d2421227fe76", "score": "0.54608786", "text": "public ObjectFactory() {\n }", "title": "" }, { "docid": "0cedde3596fd9db2ce10d2421227fe76", "score": "0.54608786", "text": "public ObjectFactory() {\n }", "title": "" }, { "docid": "0cedde3596fd9db2ce10d2421227fe76", "score": "0.54608786", "text": "public ObjectFactory() {\n }", "title": "" }, { "docid": "0cedde3596fd9db2ce10d2421227fe76", "score": "0.54608786", "text": "public ObjectFactory() {\n }", "title": "" }, { "docid": "0cedde3596fd9db2ce10d2421227fe76", "score": "0.54608786", "text": "public ObjectFactory() {\n }", "title": "" }, { "docid": "0cedde3596fd9db2ce10d2421227fe76", "score": "0.54608786", "text": "public ObjectFactory() {\n }", "title": "" }, { "docid": "0cedde3596fd9db2ce10d2421227fe76", "score": "0.54608786", "text": "public ObjectFactory() {\n }", "title": "" }, { "docid": "0cedde3596fd9db2ce10d2421227fe76", "score": "0.54608786", "text": "public ObjectFactory() {\n }", "title": "" }, { "docid": "0cedde3596fd9db2ce10d2421227fe76", "score": "0.54608786", "text": "public ObjectFactory() {\n }", "title": "" }, { "docid": "0cedde3596fd9db2ce10d2421227fe76", "score": "0.54608786", "text": "public ObjectFactory() {\n }", "title": "" }, { "docid": "0cedde3596fd9db2ce10d2421227fe76", "score": "0.54608786", "text": "public ObjectFactory() {\n }", "title": "" }, { "docid": "0cedde3596fd9db2ce10d2421227fe76", "score": "0.54608786", "text": "public ObjectFactory() {\n }", "title": "" }, { "docid": "0cedde3596fd9db2ce10d2421227fe76", "score": "0.54608786", "text": "public ObjectFactory() {\n }", "title": "" }, { "docid": "0cedde3596fd9db2ce10d2421227fe76", "score": "0.54608786", "text": "public ObjectFactory() {\n }", "title": "" }, { "docid": "0cedde3596fd9db2ce10d2421227fe76", "score": "0.54608786", "text": "public ObjectFactory() {\n }", "title": "" }, { "docid": "0cedde3596fd9db2ce10d2421227fe76", "score": "0.54608786", "text": "public ObjectFactory() {\n }", "title": "" }, { "docid": "0cedde3596fd9db2ce10d2421227fe76", "score": "0.54608786", "text": "public ObjectFactory() {\n }", "title": "" }, { "docid": "0cedde3596fd9db2ce10d2421227fe76", "score": "0.54608786", "text": "public ObjectFactory() {\n }", "title": "" }, { "docid": "0cedde3596fd9db2ce10d2421227fe76", "score": "0.54608786", "text": "public ObjectFactory() {\n }", "title": "" }, { "docid": "0cedde3596fd9db2ce10d2421227fe76", "score": "0.54608786", "text": "public ObjectFactory() {\n }", "title": "" }, { "docid": "0cedde3596fd9db2ce10d2421227fe76", "score": "0.54608786", "text": "public ObjectFactory() {\n }", "title": "" }, { "docid": "0cedde3596fd9db2ce10d2421227fe76", "score": "0.54608786", "text": "public ObjectFactory() {\n }", "title": "" }, { "docid": "0cedde3596fd9db2ce10d2421227fe76", "score": "0.54608786", "text": "public ObjectFactory() {\n }", "title": "" }, { "docid": "0cedde3596fd9db2ce10d2421227fe76", "score": "0.54608786", "text": "public ObjectFactory() {\n }", "title": "" } ]
2bff28614ac2174c6056c0eadd8f4a3f
INPUT for bytes only
[ { "docid": "504c19bd1e418b727a98e58b9f41ca17", "score": "0.0", "text": "public static void input() throws IOException {\n\t\tFileInputStream input = new FileInputStream(\"BinaryFile.dat\");\n\n\t\tint value;\n\t\twhile((value = input.read()) != -1){\n\t\t\tSystem.out.println(value + \" \\n\");\n\t\t}\n\n\t\tinput.close();\t\n\t}", "title": "" } ]
[ { "docid": "6219fe5fcb1785c0a24f0a77e8a92329", "score": "0.63674176", "text": "com.google.protobuf.ByteString\n getInputBytes();", "title": "" }, { "docid": "46fb52c67d31c5747deb475f34e566cc", "score": "0.6153774", "text": "public byte[] getInputBytes(int i);", "title": "" }, { "docid": "1295b35889f57f193a35d2941da832e1", "score": "0.6000671", "text": "public abstract byte[] asBytes();", "title": "" }, { "docid": "b7e5dcd7dc94f2b4bacc500d32a65b9b", "score": "0.5991064", "text": "private boolean isBytesOrignal() {\n return original != null && !isStringOriginal();\n }", "title": "" }, { "docid": "fbda2bffad22c3c231a9458ae89037b6", "score": "0.5960539", "text": "public testforbyte() {\n }", "title": "" }, { "docid": "05db4f5b5d31558587fdee6e97c0d0e4", "score": "0.5903375", "text": "byte[] convert(String source);", "title": "" }, { "docid": "b135d9bffc9e32332cd4b64a7b4ff9f1", "score": "0.5873504", "text": "byte[] binary();", "title": "" }, { "docid": "2363505fc0a9a1ea47573cd3d023439c", "score": "0.58351713", "text": "public abstract boolean isMultiByte();", "title": "" }, { "docid": "81c3bb5d7a350d0e08b28c67dbb64b2b", "score": "0.58029336", "text": "public byte getInputByte(int i);", "title": "" }, { "docid": "38420969a1ea7a6d983f53911496360e", "score": "0.5799631", "text": "static void incomebytes(byte[] bytes){\n }", "title": "" }, { "docid": "dd42c1d6c8d6db5e72acfba884f106b0", "score": "0.5780438", "text": "byte[] asBinary();", "title": "" }, { "docid": "49e9ac521e34aa9063a4f9ad412849f2", "score": "0.57757026", "text": "boolean hasBytesValue();", "title": "" }, { "docid": "4bf1b95d5defbe2c1db64e2259a53555", "score": "0.57634526", "text": "protected static byte[] readBytes(final ObjectInputStream input) throws IOException {\n final int length = input.readInt();\n final byte[] buffer = new byte[length];\n input.readFully(buffer);\n return buffer;\n }", "title": "" }, { "docid": "ceea77e4f808785a9e7ecadd33dc815d", "score": "0.5756177", "text": "public static byte[] stringToByte(String input){\n\t\tint numOfBytes = input.length() / 8;\n\t\tbyte[] bytes = new byte[numOfBytes];\n\t\tfor(int i = 0; i < numOfBytes; ++i){\n\t\t\tbytes[i] = (byte)Short.parseShort(input.substring(8 * i, (8 * i)+ 8), 2);\n\t\t}\n\t\treturn bytes;\n\t}", "title": "" }, { "docid": "f57719cdee0609134c6d48cffae6ab1f", "score": "0.5732684", "text": "public String getInputEncoding();", "title": "" }, { "docid": "68d3723d9981c7c17b7a3e2fa3c31edc", "score": "0.5726088", "text": "@Override\n\t\t\tpublic String getInputEncoding() {\n\t\t\t\treturn null;\n\t\t\t}", "title": "" }, { "docid": "30ba54d016f5c3a6ba6c2f4564bfb004", "score": "0.5719004", "text": "public static void testXSByteType_service(String input_echoXSByte_param) throws Exception {\r\n selenium.click(\"link=echoXSbyte\");\r\n selenium.type(\"input_echoXSbyte_param_0\", input_echoXSByte_param);\r\n selenium.click(\"button_echoXSbyte\");\r\n MSCommon.testContextRoot();\r\n }", "title": "" }, { "docid": "16d3dd5e0b51e6b7b557afe831bfb82e", "score": "0.57186884", "text": "public abstract byte[] mo14494a(String str);", "title": "" }, { "docid": "94cbce0d2dbc8606273f89f9d819d5df", "score": "0.5689405", "text": "byte[] data();", "title": "" }, { "docid": "90d78a8f7fd7df697910f2141d98f090", "score": "0.56837285", "text": "public abstract byte[] getData();", "title": "" }, { "docid": "36e6302e3bf765402b982667bfcf48a9", "score": "0.5671695", "text": "byte readByte();", "title": "" }, { "docid": "36e6302e3bf765402b982667bfcf48a9", "score": "0.5671695", "text": "byte readByte();", "title": "" }, { "docid": "18083bdd24a475f1c01a84e3979f238a", "score": "0.56581575", "text": "@SuppressWarnings(\"StatementWithEmptyBody\")\n public static byte[] decode(String input) {\n ByteArrayInputStream in = new ByteArrayInputStream(input.getBytes());\n ByteArrayOutputStream out = new ByteArrayOutputStream();\n try {\n while (decodeChunk(out, in)) {\n // do nothing\n }\n } catch (IOException ex) {\n throw new RuntimeException(ex);\n }\n\n return out.toByteArray();\n }", "title": "" }, { "docid": "093c6a4504d40e288edc042f0380fd37", "score": "0.5654061", "text": "byte[] getData();", "title": "" }, { "docid": "093c6a4504d40e288edc042f0380fd37", "score": "0.5654061", "text": "byte[] getData();", "title": "" }, { "docid": "298b43e9b01adde86e7dc282fee72568", "score": "0.5650454", "text": "public static void testXSUnsignedByteType_service(String input_echoXSUnsignedByte_param) throws Exception {\r\n selenium.click(\"link=echoXSunsignedByte\");\r\n selenium.type(\"input_echoXSunsignedByte_param_0\", input_echoXSUnsignedByte_param);\r\n selenium.click(\"button_echoXSunsignedByte\");\r\n MSCommon.testContextRoot();\r\n }", "title": "" }, { "docid": "2819327a579e7a83d24b8d3abefb4d70", "score": "0.562814", "text": "private synchronized byte checkByteOK(byte bData_)\n {\n byte bByteCheck = '\\0';\n\n /*If the caracter is one of theses values we need to put an [ \\ ] before to\n avoid string errors:*/\n if (bData_ == '\\0' || bData_ == '\\'' || bData_ == '\"' || bData_ == '\\\\')\n bByteCheck = '\\\\';\n\n return bByteCheck;\n }", "title": "" }, { "docid": "e1dbce78744c82d3ce83b6799f89a35f", "score": "0.5611113", "text": "@Override\n public void convertData(byte[] byteBuffer) {}", "title": "" }, { "docid": "e1dbce78744c82d3ce83b6799f89a35f", "score": "0.5611113", "text": "@Override\n public void convertData(byte[] byteBuffer) {}", "title": "" }, { "docid": "e1dbce78744c82d3ce83b6799f89a35f", "score": "0.5611113", "text": "@Override\n public void convertData(byte[] byteBuffer) {}", "title": "" }, { "docid": "5a21a3594b64b10f3acf80bdd13a0288", "score": "0.5606123", "text": "byte[] asBytes();", "title": "" }, { "docid": "487a977904698d4eef5accffbb398808", "score": "0.56004757", "text": "static final public byte[] parseByte(boolean what[]) { return PApplet.parseByte(what); }", "title": "" }, { "docid": "7d9055a80780413a77909ce620628ac6", "score": "0.5586809", "text": "public abstract void convertData(byte[] byteBuffer) throws InvalidDataException;", "title": "" }, { "docid": "e801ce881bfc91f44a3bfa1eea4324bd", "score": "0.5582732", "text": "public void testSerializeByte()\n {\n assertEquals(\"i:0;\", Pherialize.serialize(Byte.valueOf((byte) 0)));\n assertEquals(\"i:-1;\", Pherialize.serialize(Byte.valueOf((byte) -1)));\n assertEquals(\"i:127;\", Pherialize.serialize(Byte.valueOf((byte) 127)));\n assertEquals(\"i:-128;\", Pherialize.serialize(Byte.valueOf((byte) -128)));\n }", "title": "" }, { "docid": "78f8f7292ecefdf5b67e86559bde3d16", "score": "0.5582541", "text": "@Override\n public String getInput() throws IOException {\n return this.inputStream.readUTF();\n }", "title": "" }, { "docid": "8bca81198ce6dea7ce0b8f55b6f93ebf", "score": "0.55686057", "text": "boolean isSetBytessent();", "title": "" }, { "docid": "3751d2d2b641fe491242d58b9f47f530", "score": "0.55552787", "text": "public _ByteArray_if getBytes(_String_if arg_a) throws Exception;", "title": "" }, { "docid": "d4fdece921a7150ca24b22706b2c215f", "score": "0.5549518", "text": "private static byte m23116i(InputStream inputStream) throws IOException {\n return (byte) (inputStream.read() & 255);\n }", "title": "" }, { "docid": "fe8bd7f70f979c9e25748d1242035937", "score": "0.5544223", "text": "@Override\n public boolean isBinary() {\n return type == TYPE_BINARY;\n }", "title": "" }, { "docid": "ab14a0567cf3d032c407c6fa3499c8e1", "score": "0.554248", "text": "byte[] getBytes();", "title": "" }, { "docid": "ab14a0567cf3d032c407c6fa3499c8e1", "score": "0.554248", "text": "byte[] getBytes();", "title": "" }, { "docid": "78a00d82616ea89262405afb71d72989", "score": "0.5529178", "text": "Binary toBinary();", "title": "" }, { "docid": "415fd23dcb641805fea9828a79e6cfb3", "score": "0.55268043", "text": "boolean hasByteField();", "title": "" }, { "docid": "c478bc23c2fde0080f560e09469d3f0e", "score": "0.5523575", "text": "private void checkUTF8ByteStream(BufferedInputStream in) throws IOException {\n int c;\n\n for (;;) {\n c = in.read();\n if (c < 0) {\n break;\n }\n\n // If this is an extension character, it is in an invalid spot.\n // Otherwise, if it's the start of a multi-byte sequence, check\n // that we have the right number of extension characters.\n if ((c & 0xC0) == 0x80) {\n // Extension character not at start of multi-byte sequence.\n throw new IOException(\"Invalid UTF-8 byte sequence\");\n }\n if ((c & 0xE0) == 0xC0) {\n checkExtensions(in, 1);\n } else if ((c & 0xF0) == 0xE0) {\n checkExtensions(in, 2);\n } else if ((c & 0xF8) == 0xF0) {\n checkExtensions(in, 3);\n } else if ((c & 0xFC) == 0xF8) {\n checkExtensions(in, 4);\n } else if ((c & 0xFE) == 0xFC) {\n checkExtensions(in, 5);\n } else if (c > 0x7F) {\n throw new IOException(\"Invalid UTF-8 byte sequence\");\n }\n }\n }", "title": "" }, { "docid": "ede642f75487c32f844443a84f7610bf", "score": "0.5516521", "text": "public static byte leerByte() {\r\n\t\tbyte respuesta = 0;\r\n\t\tboolean valido = false;\r\n\t\tdo {\r\n\t\t\ttry {\r\n\t\t\t\trespuesta = keyboard.nextByte();\r\n\t\t\t\tvalido = true;\r\n\t\t\t}\r\n\t\t\tcatch(InputMismatchException e){\r\n\t\t\t\tSystem.out.println(\"Introduce un número dentro del valor válido. [-128:127]\");\r\n\t\t\t}finally {\r\n\t\t\t\tlimpiarBuffer();\r\n\t\t\t}\r\n\t\t\t\r\n\t\t}while(!valido);\r\n\t\t\r\n\t\t\r\n\t\treturn respuesta;\r\n\t}", "title": "" }, { "docid": "4c5f5625b33181c9679531f18a0a3340", "score": "0.5511743", "text": "public byte[] getASCIIValue(String input) {\n\t\tbyte[] bytes=null;\n\t\ttry {\n\t\t\tbytes = input.getBytes(\"US-ASCII\");\n\t\t} catch (UnsupportedEncodingException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn bytes;\n\n\t}", "title": "" }, { "docid": "17096db6483ecd5e3ca19080b809abdb", "score": "0.55087906", "text": "private byte read_int8(ByteBuffer in) {\r\n\t\treturn in.get();\r\n\t}", "title": "" }, { "docid": "b5cad9168729b0b852f3de6a41002010", "score": "0.5506778", "text": "private Reader bom(InputStream paramInputStream, char paramChar) throws Exception {\n/* 2900 */ int i = paramInputStream.read();\n/* 2901 */ switch (i) {\n/* */ case 239:\n/* 2903 */ if (paramChar == 'U')\n/* */ {\n/* 2905 */ panic(\"\");\n/* */ }\n/* 2907 */ if (paramInputStream.read() != 187) {\n/* 2908 */ panic(\"\");\n/* */ }\n/* 2910 */ if (paramInputStream.read() != 191) {\n/* 2911 */ panic(\"\");\n/* */ }\n/* 2913 */ return new ReaderUTF8(paramInputStream);\n/* */ \n/* */ case 254:\n/* 2916 */ if (paramInputStream.read() != 255) {\n/* 2917 */ panic(\"\");\n/* */ }\n/* 2919 */ return new ReaderUTF16(paramInputStream, 'b');\n/* */ \n/* */ case 255:\n/* 2922 */ if (paramInputStream.read() != 254) {\n/* 2923 */ panic(\"\");\n/* */ }\n/* 2925 */ return new ReaderUTF16(paramInputStream, 'l');\n/* */ \n/* */ case -1:\n/* 2928 */ this.mChars[this.mChIdx++] = Character.MAX_VALUE;\n/* 2929 */ return new ReaderUTF8(paramInputStream);\n/* */ } \n/* */ \n/* 2932 */ if (paramChar == 'U')\n/* */ {\n/* 2934 */ panic(\"\");\n/* */ }\n/* */ \n/* 2937 */ switch (i & 0xF0)\n/* */ { case 192:\n/* */ case 208:\n/* 2940 */ this.mChars[this.mChIdx++] = (char)((i & 0x1F) << 6 | paramInputStream.read() & 0x3F);\n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* 2955 */ return null;case 224: this.mChars[this.mChIdx++] = (char)((i & 0xF) << 12 | (paramInputStream.read() & 0x3F) << 6 | paramInputStream.read() & 0x3F); return null;case 240: throw new UnsupportedEncodingException(); } this.mChars[this.mChIdx++] = (char)i; return null;\n/* */ }", "title": "" }, { "docid": "99d118fbd9e73d502f2d14d4332fd9e1", "score": "0.55056316", "text": "String binary();", "title": "" }, { "docid": "c6bb53f07fe18a77f7bc7ad0002e55df", "score": "0.5502259", "text": "public abstract boolean accept(CharInput in);", "title": "" }, { "docid": "03a5877fa53628af0a5fc5660421856b", "score": "0.5487688", "text": "@Test\n void canCreateWithBytePayload() {\n // Arrange\n final ServiceBusMessage serviceBusMessageData = new ServiceBusMessage(PAYLOAD_BINARY);\n\n // Assert\n Assertions.assertNotNull(serviceBusMessageData.getBody());\n Assertions.assertEquals(PAYLOAD, serviceBusMessageData.getBody().toString());\n }", "title": "" }, { "docid": "1c92618bcc7047684ced6888e9dcf9a2", "score": "0.5480586", "text": "@Override\n \tprotected void processInput(Input in) {\n \n \t}", "title": "" }, { "docid": "e2a36df126a324874bd03c629ee513f1", "score": "0.54583997", "text": "public abstract boolean isBinary();", "title": "" }, { "docid": "0b9b3c36439b44e95ff9ed896fb2b7a2", "score": "0.5457973", "text": "public byte[] getASCIIValue(String input) {\n\t\t\tbyte[] bytes=null;\n\t\t\ttry {\n\t\t\t\tbytes = input.getBytes(\"US-ASCII\");\n\t\t\t} catch (UnsupportedEncodingException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\treturn bytes;\n\n\t\t}", "title": "" }, { "docid": "58465815e9826e439068a7b48ddebba0", "score": "0.5455635", "text": "private byte[] string2bytes( String s )\n\t{\n\n\t\tByteArrayOutputStream baos = new ByteArrayOutputStream();\n\t\t\n\t\tStringTokenizer st = new StringTokenizer( s, \" \\t\\r\\n\" );\n\t\twhile (st.hasMoreTokens())\n\t\t\tbaos.write( (byte) Integer.parseInt( st.nextToken(), 16 ) );\n\t\t\n\t\treturn baos.toByteArray();\n\t}", "title": "" }, { "docid": "82c2d2678e634a3317dff477810687f2", "score": "0.5449622", "text": "ITipos MultBin(Binary typo);", "title": "" }, { "docid": "6d9e7026bbaf653085ba34c5bda57752", "score": "0.54477465", "text": "byte[] getBytes(byte bytes[]);", "title": "" }, { "docid": "1c50227fbfb93048dc655c5b4c624318", "score": "0.5436792", "text": "public abstract byte[] getInputSeparator();", "title": "" }, { "docid": "3e00c294a6af468756720ec3fdacec31", "score": "0.5432864", "text": "protected byte[] parseBytes()\n throws IOException\n {\n ByteArrayOutputStream bos = new ByteArrayOutputStream();\n\n parseBytes(bos);\n\n return bos.toByteArray();\n }", "title": "" }, { "docid": "6bbd2c7d2599bc11785e5c7dc350d1be", "score": "0.5414484", "text": "private static final int read(InputStream in) throws IOException {\r\n\t\tint ch;\r\n\t\twhile ((ch = in.read()) != -1 && !inBASE64Alphabet(ch))\r\n\t\t\t;\r\n\t\treturn ch;\r\n\t}", "title": "" }, { "docid": "290bff4266814969d40c8b35518e470e", "score": "0.5411291", "text": "byte[] getRawData();", "title": "" }, { "docid": "290bff4266814969d40c8b35518e470e", "score": "0.5411291", "text": "byte[] getRawData();", "title": "" }, { "docid": "11dbba5c01c5aa7bc9a5323b9f3e8ab0", "score": "0.54105157", "text": "public String bitsTexto(String texto){\n byte[] bytes = texto.getBytes(); \n String[] binarios = new String[bytes.length]; \n String saida=\"\"; \n int cont=0;\n String zero=\"\"; \n // jogando para um array de string \n for (int i=0; i < bytes.length; i++) { \n binarios[i] = Integer.toBinaryString(bytes[i]); \n \n cont=binarios[i].length();\n if (cont<8) {\n while(cont<8){\n zero+=\"0\";\n cont++;\n }\n binarios[i]=zero+\"\"+binarios[i];\n zero=\"\";\n } \n saida+=binarios[i];\n } \n \n \n \n return saida;\n}", "title": "" }, { "docid": "6475739036d4f52159914088dde0daa0", "score": "0.53980273", "text": "@Test\r\n public void testBitStringToByte() {\r\n System.out.println(\"bitStringToByte\");\r\n String string = \"0111111000101110\";\r\n System.out.println(\"Input: \" + string);\r\n byte[] expResult = {126,46};\r\n byte[] result = Base32.bitStringToByte(string);\r\n System.out.println(\"Result: \" + \"{\" + result[0] + \",\" + result[1] + \"}\");\r\n assertArrayEquals(expResult, result);\r\n }", "title": "" }, { "docid": "153c55eaf897c668d34b77c0f1f353cc", "score": "0.5396764", "text": "private Bytes() {}", "title": "" }, { "docid": "a6403b673192baf12284788be90b4ee7", "score": "0.5385061", "text": "protected byte[] s2b(String s) throws SQLException {\n/* 6999 */ if (s == null) {\n/* 7000 */ return null;\n/* */ }\n/* */ \n/* 7003 */ return StringUtils.getBytes(s, this.conn.getCharacterSetMetadata(), this.conn.getServerCharacterEncoding(), this.conn.parserKnowsUnicode(), this.conn, getExceptionInterceptor());\n/* */ }", "title": "" }, { "docid": "f9e80acdc1dd813957196f93785da774", "score": "0.5384567", "text": "int inputBit()\r\n\t{\r\n\t\tif ( inputBitsLeft == 0 )\r\n\t\t{\r\n\t\t\tcurByte++;\r\n\t\t\tinputBytesLeft--;\r\n\t\t\tinputBitsLeft = 8;\r\n\t\t\t\r\n\t\t\tif ( inputBytesLeft == 0 )\r\n\t\t\t{\r\n\t\t\t\ttry { inputBytesLeft = is.read(buffer, 0, BUFFER_SIZE); }\r\n\t\t\t\tcatch (IOException ioex) { throw new RuntimeException(ioex); }\r\n\t\t\t\t\r\n\t\t\t\tif (inputBytesLeft == 0)\r\n\t\t\t\t{\r\n\t\t\t\t\tif (pastEof != 0)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tSystem.err.printf(\"\\nBad input file\"); \t\t\t\t\t\t\r\n\t\t\t\t\t\tSystem.exit(-1); \r\n\t\t\t\t\t}\r\n\t\t\t\t\telse\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tpastEof = 1;\r\n\t\t\t\t\t\tinputBytesLeft = 2;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\tcurByte = 0; \r\n\t\t\t}\r\n\t\t}\r\n\t\tinputBitsLeft--;\r\n\t\treturn ( (buffer[curByte] >> inputBitsLeft) & 1); \r\n\t}", "title": "" }, { "docid": "1df804907877dbb182f525aa537a9c06", "score": "0.53811574", "text": "private int ProcessInput(){\r\n int nBytes=0;\r\n try{\r\n nBytes = this.mInputStream.read( mInputProcBf ); \r\n mRbytes += nBytes;\r\n }\r\n catch( IOException e ){\r\n ;\r\n }\r\n ParseInputBytes( mInputProcBf, nBytes );\r\n return(nBytes);\r\n }", "title": "" }, { "docid": "7d51c60d6c026a5f534099bf68f34e87", "score": "0.53779936", "text": "public interface BytesIn<Underlying> extends\n StreamingDataInput<Bytes<Underlying>>,\n ByteStringParser<Bytes<Underlying>> {\n /**\n * Reads messages from this tails as methods. It returns a BooleanSupplier which returns\n *\n * @param objects which implement the methods serialized to the file.\n * @return a reader which will read one Excerpt at a time\n */\n @NotNull\n default MethodReader bytesMethodReader(Object... objects) {\n return new BytesMethodReaderBuilder(this).build(objects);\n }\n\n @NotNull\n default BytesMethodReaderBuilder bytesMethodReaderBuilder() {\n return new BytesMethodReaderBuilder(this);\n }\n\n <T extends ReadBytesMarshallable> T readMarshallableLength16(Class<T> tClass, T object);\n}", "title": "" }, { "docid": "bb3268728185ab6ff818100d5fac2745", "score": "0.5374884", "text": "byte[] get();", "title": "" }, { "docid": "429030d76d31f617b0a89127bff04b09", "score": "0.5373605", "text": "@Override\r\npublic void writeBytes(String arg0) throws IOException {\n\t\r\n}", "title": "" }, { "docid": "a8b02454dfbf88092979ff7406baa400", "score": "0.53682566", "text": "private static byte[] stringToByteArray(String str) {\n byte[] result = new byte[str.length()+1];\n for (int i = 0; i < str.length(); i++) {\n result[i] = (byte) str.charAt(i);\n }\n result[str.length()] = 0;\n return result;\n }", "title": "" }, { "docid": "bb9578a6390f0ce70f470f1f8df0887e", "score": "0.53615767", "text": "public static boolean isByte(String fieldvalue) {try {Byte.parseByte(fieldvalue);} catch (NumberFormatException nfe) {return false;} return true; }", "title": "" }, { "docid": "15ebd92ec78d61d7eb82d82062cf1716", "score": "0.5342495", "text": "byte[] getBuffer();", "title": "" }, { "docid": "a7ccd679a568b0cc481e5c7727f323be", "score": "0.5338809", "text": "String getBytesRead();", "title": "" }, { "docid": "dfed35245b53983f34cdc6f891823ab4", "score": "0.53182864", "text": "byte[] encrypt(InputStream input) throws IOException;", "title": "" }, { "docid": "71c50ab2286adeb76866a5dc6ac73444", "score": "0.5316069", "text": "byte get( char character );", "title": "" }, { "docid": "227d7c5c849ac66dc8eab523b61c5cbd", "score": "0.53140724", "text": "protected abstract PacketBuffer createInputBuffer();", "title": "" }, { "docid": "f4b6d5a6265dd8c364ef68ab02780a01", "score": "0.5302862", "text": "protected int readByte () {\n\t\tint curByte = 0;\n\t\ttry {\n\t\t\tcurByte = this.input.read();\n\t\t} catch (final IOException e) {\n\t\t\te.printStackTrace();\n\t\t\tthis.setStatus(Status.STATUS_FORMAT_ERROR);\n\t\t}\n\t\treturn curByte;\n\t}", "title": "" }, { "docid": "20aa55e9704754aef0ef62a4aca5fea3", "score": "0.5298326", "text": "public static byte anyByte() { return addMatcher(new MatchAnything(), (byte) 0); }", "title": "" }, { "docid": "90c366e4e71874513d335d350bcaa881", "score": "0.52969635", "text": "@Test\n void canCreateWithBytePayload() {\n // Act\n final ServiceBusMessage serviceBusMessageData = new ServiceBusMessage(PAYLOAD_BYTES);\n\n // Assert\n Assertions.assertNotNull(serviceBusMessageData.getBody());\n Assertions.assertEquals(PAYLOAD, new String(serviceBusMessageData.getBody(), UTF_8));\n }", "title": "" }, { "docid": "63629eb1b21c85616a35b9aa7ba8e48c", "score": "0.52952904", "text": "static final public byte parseByte(boolean what) { return PApplet.parseByte(what); }", "title": "" }, { "docid": "dd76302fd4e269705b6112b0b786672d", "score": "0.529464", "text": "private void ParseInputBytes( byte[] inputBf, int inputBytes ){\r\n \r\n for( int idx=0; idx<inputBytes; idx++ ){\r\n switch( mParsedBytes ){\r\n case 0 :\r\n if( inputBf[idx] == ((byte)0xA5) ){\r\n mParsedBytes++;\r\n }\r\n break;\r\n case 1 :\r\n if( inputBf[idx]==((byte)'r') || inputBf[idx]==((byte)'w') ){\r\n mParsedR = inputBf[idx]=='r';\r\n mParsedBytes++;\r\n }\r\n else{\r\n // NOTE: This has the effect that if the deserializer\r\n // begins at the wrong spot in the input stream (i.e.\r\n // there were residual bytes queued, we will continually\r\n // reset parsing until a value 0xA5 ['r'|'w'] is\r\n // received and then resynchronize to the parsing\r\n mParsedBytes = 0;\r\n }\r\n break;\r\n case 2 :\r\n mParsedA = (inputBf[idx])&0xff;\r\n mParsedBytes++;\r\n break;\r\n case 3 : \r\n mParsedV = (inputBf[idx])&0xff;\r\n mParsedBytes = 0;\r\n if( mParsedR ){\r\n mRegs[ mParsedA ] = mParsedV;\r\n mUpd[ mParsedA ] = 1;\r\n }\r\n break;\r\n }\r\n }\r\n }", "title": "" }, { "docid": "22621b9b14ce4dabeda4062d223c28ed", "score": "0.52918315", "text": "@Test\n public void shouldSerializeToBytes() {\n final byte[] actual = POJO.toBytes().orElseThrow();\n\n assertEquals(\"Byte arrays should match\", JSON, (new String(actual)));\n }", "title": "" }, { "docid": "2db54acf0589b9bb85ed5ef601ac1823", "score": "0.52862716", "text": "private void encodeBinary(final BysantContext ctx, final ByteBuffer[] inputBuffers, final ByteBuffer buffer) {\n\t\tint pos = 0;\n\t\tint byteSize = 0;\n\t\tif (LOG.isTraceEnabled()) {\n\t\t\tLOG.trace(\"encode({},binary:{})\", ctx, inputBuffers);\n\t\t\tpos = buffer.position();\n\t\t\tbyteSize = guessSizeBinary(ctx, inputBuffers);\n\t\t}\n\n\t\tStringEncoding encodingCtx;\n\n\t\tfinal Encoding enc = ctx.getEncoding();\n\t\tif (enc instanceof StringEncoding) {\n\t\t\tencodingCtx = (StringEncoding) enc;\n\t\t} else {\n\t\t\tthrow new M3daCodecServiceRuntimeException(\"cannot encode a binary/string in the context \" + ctx);\n\t\t}\n\n\t\tif (inputBuffers == null) {\n\t\t\tbuffer.put((byte) NULL);\n\t\t} else {\n\n\t\t\tint length = 0;\n\t\t\tfor (final ByteBuffer inBuff : inputBuffers) {\n\t\t\t\tlength += inBuff.remaining();\n\t\t\t}\n\n\t\t\tif (length <= encodingCtx.tinyStrLimit()) {\n\t\t\t\t// 1 BYTES length\n\t\t\t\tbuffer.put((byte) (encodingCtx.tinyStrOpeCode() + length));\n\t\t\t} else if (length <= encodingCtx.smallStrLimit()) {\n\t\t\t\t// 2 BYTES length\n\t\t\t\tfinal int len = length - encodingCtx.tinyStrLimit() - 1;\n\t\t\t\tbuffer.putShort((short) ((len & 0xFF00) + (encodingCtx.smallStrOpeCode() << 8) + (len & 0x00FF)));\n\t\t\t} else if (length <= encodingCtx.largeStrLimit()) {\n\t\t\t\t// 3 BYTES length\n\t\t\t\tfinal int len = length - encodingCtx.smallStrLimit() - 1;\n\t\t\t\tbuffer.put((byte) encodingCtx.largeStrOpeCode());\n\t\t\t\tbuffer.put((byte) ((len & 0xFF0000) >> 16));\n\t\t\t\tbuffer.put((byte) ((len & 0x00FF00) >> 8));\n\t\t\t\tbuffer.put((byte) (len & 0x0000FF));\n\t\t\t} else {\n\t\t\t\tthrow new IllegalStateException(\"not implemented chunked-strings\");\n\t\t\t}\n\t\t\t// encode the string\n\t\t\tfor (final ByteBuffer inBuff : inputBuffers) {\n\t\t\t\tbuffer.put(inBuff);\n\t\t\t}\n\t\t}\n\n\t\tif (LOG.isTraceEnabled()) {\n\t\t\tfinal int wrote = buffer.position() - pos;\n\t\t\tif (wrote == byteSize) {\n\t\t\t\tLOG.trace(\"wrote {} bytes\", wrote);\n\t\t\t} else {\n\t\t\t\tLOG.error(\"BUG ! wrote {} bytes, on {} supposed\", wrote, byteSize);\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "3715503f5261462b6ca2565454dc2d22", "score": "0.52808595", "text": "private byte readByte(InputStream in) throws IOException {\n\t\tint i = in.read();\n\t\tif (i == -1) {\n\t\t\tthrow new IOException(\"the channel has reached end-of-stream when reading data.\");\n\t\t}\n\t\tbyte b = (byte) i;\n\t\treceivedBytes.append((Utils.toHexString(b)));\n\t\treturn b;\n\t}", "title": "" }, { "docid": "389ecfb968ee3581c8864d444bb16e1b", "score": "0.5277619", "text": "@SuppressWarnings(\"PMD.LawOfDemeter\")\n private byte[] byteRepresentationOf(String identifier) {\n final ByteBuffer buffer = UTF_8.encode(CharBuffer.wrap(identifier));\n final byte[] identifierByteRepresentation = new byte[buffer.limit()];\n buffer.get(identifierByteRepresentation);\n return identifierByteRepresentation;\n }", "title": "" }, { "docid": "0dd683825aa52f01e09ce0c491747f52", "score": "0.5275931", "text": "@Override\n\tpublic void read(ByteBuf in) {\n\t}", "title": "" }, { "docid": "b959453222a35f4f580487fb0068265c", "score": "0.5273662", "text": "int getBytes();", "title": "" }, { "docid": "9a9dbdfb2cd590da94afa4b5de8048d6", "score": "0.5273087", "text": "@Override\n public int getInputType()\n {\n return 0;\n }", "title": "" }, { "docid": "8bdeddd1dc1a7c16510806dfd90baa31", "score": "0.52603424", "text": "@Test\r\n public void testByteToBitString() {\r\n System.out.println(\"byteToBitString\");\r\n byte[] bytes = {126,46};\r\n System.out.println(\"Input: \" + \"{\" + bytes[0] + \",\" + bytes[1] + \"}\");\r\n String expResult = \"0111111000101110\";\r\n String result = Base32.byteToBitString(bytes);\r\n System.out.println(\"Result: \" + result);\r\n assertEquals(expResult, result);\r\n }", "title": "" }, { "docid": "c595a7c5ca246de6bfcb4c9bb8b79429", "score": "0.525522", "text": "public static void testXSbase64BinaryType_service(String input_echoXSbase64Binary_param) throws Exception {\r\n selenium.click(\"link=echoXSbase64Binary\");\r\n selenium.type(\"input_echoXSbase64Binary_param_0\", input_echoXSbase64Binary_param);\r\n selenium.click(\"button_echoXSbase64Binary\");\r\n MSCommon.testContextRoot();\r\n }", "title": "" }, { "docid": "fb079dc8747e258f652bf106f6444dc3", "score": "0.52538085", "text": "public byte[] bytes();", "title": "" }, { "docid": "e3f5486aeec2f11bbe1d0ac9f98c762d", "score": "0.5252563", "text": "ByteBuffer getData();", "title": "" }, { "docid": "9f3aa1ac305fc0ca2aa47a5ae9ca97c7", "score": "0.52522963", "text": "public void setInputBB(ByteBuffer inputBB){\n this.inputBB = inputBB;\n }", "title": "" }, { "docid": "042b49f6cf326e8859cb182b8e98df15", "score": "0.5249812", "text": "C9620e mo15056a(String str, byte[] bArr);", "title": "" }, { "docid": "ac05c19c8a7189464a592086f8a13c6d", "score": "0.5244978", "text": "public synchronized byte[] StreamToBytes()\n {\n ByteArrayOutputStream baos = new /*@RepNorep*/ ByteArrayOutputStream();\n byte bData[ ] = new byte[BLOCK_SIZE];\n byte bCheckedByte = '\\0';\n int iArrayLength = 0;\n\n try\n {\n //Reading what is stored in this stream:\n iArrayLength = readBlock(bData);\n\n //Inicializing the transfer:\n baos.write('\\'');\n\n for (int iPos = 0; iPos < iArrayLength; iPos++)\n {\n /*Analysing if the current caracter is something that could make an error\n with the first write( ) above:*/\n bCheckedByte = checkByteOK(bData[iPos]);\n\n if (bCheckedByte != '\\0')\n baos.write(bCheckedByte);\n\n //Now we can send the byte:\n baos.write(bData[iPos]);\n }\n\n //Closing the data that will be passed to the field:\n baos.write('\\'');\n }\n catch (IOException e)\n {\n e.printStackTrace();\n }\n\n return baos.toByteArray();\n }", "title": "" }, { "docid": "88ca4ed7316772f60eebfab0d2853ef0", "score": "0.5239459", "text": "static void fakeInput() {\n String test = \"10\\n\" +\n \"1 1 1 1 1 1 1 1 1 11\";\n System.setIn(new ByteArrayInputStream(test.getBytes()));\n }", "title": "" }, { "docid": "b49baccbf8ec1be0e4f996308b11fe08", "score": "0.5239346", "text": "@Test\n public void testByte() throws Exception {\n // Test all byte values compile correctly to the right byte values:\n for (int byteValue = 0; byteValue < MAX_BYTE; byteValue++) {\n String expression = String.format(\"%02x\", byteValue);\n\n ByteMatcher bm = assertSingleByteMatcher(expression, OneByteMatcher.class);\n byte value = bm.getMatchingBytes()[0];\n assertEquals(value & 0xFF, byteValue);\n }\n }", "title": "" }, { "docid": "0d482553d847a1fbc81193fe3948dbd2", "score": "0.5237637", "text": "private void checkExtensions(BufferedInputStream in, int n) throws IOException {\n for (int i = 0; i < n; ++i) {\n int c = in.read();\n if (c < 0 || (c & 0xC0) != 0x80) {\n throw new IOException(\"Invalid UTF-8 byte sequence\");\n }\n }\n }", "title": "" }, { "docid": "f2de810e62461485c662c1affd4db3fd", "score": "0.5235422", "text": "public static byte[] base64ToByte(String data) throws IOException {\r\n\t BASE64Decoder decoder = new BASE64Decoder();\r\n\t return decoder.decodeBuffer(data);\r\n\t }", "title": "" } ]
263dcb9838302d75cdd3db372cfbdb5b
Inflate the layout for this fragment
[ { "docid": "740e41e764f5c621dfc33329bb2da6c6", "score": "0.0", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_my_manager, container, false);\n ButterKnife.bind(this, view);\n initView();\n return view;\n }", "title": "" } ]
[ { "docid": "8b5df47011cc799d795dc7120e1c0c49", "score": "0.68263656", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n return inflater.inflate(R.layout.kuliahfragisidata, container, false);\n }", "title": "" }, { "docid": "b2e25fc895c8c663099bb0152da09a54", "score": "0.67922646", "text": "@Override\r\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\r\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_import_export_help, container, false);\r\n }", "title": "" }, { "docid": "04823d6fe8cb70f25bd8bae8d66ca17a", "score": "0.6760197", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_php, container, false);\n ratingBar = view.findViewById(R.id.ratingbarPhp);\n return view;\n }", "title": "" }, { "docid": "249ad72157459ed715fd9c86acf5d782", "score": "0.6757948", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.workout_db_fraglayout, container, false);\n }", "title": "" }, { "docid": "2826433a14996f77a28de9d6801bfd75", "score": "0.6745457", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState)\n {\n return inflater.inflate(R.layout.fragment_comments_and_ratings, container, false);\n }", "title": "" }, { "docid": "0b9f87a2e0890be73dd67bcd430f06c9", "score": "0.67238593", "text": "@Override\r\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\r\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_skill_iqleaders, container, false);\r\n }", "title": "" }, { "docid": "a734a6b3929d6afafba9f250e6ded804", "score": "0.67227703", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_convert_plan, container, false);\n }", "title": "" }, { "docid": "3a5206c45981830f32162aa0a9d1c802", "score": "0.6708151", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.friend_list_fragment, container, false);\n }", "title": "" }, { "docid": "6d3a4fd7b842097079e6651931c3c94e", "score": "0.6699401", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_student_class, container, false);\n }", "title": "" }, { "docid": "c83509ffd3d65233382962704816adad", "score": "0.6697344", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState)\n {\n View view = inflater.inflate(R.layout.fragment_main1, container, false);\n init(view);\n setDates();\n setStats();\n return view;\n }", "title": "" }, { "docid": "5e4d33e7854d4b7ae6f0e62b047a6c6b", "score": "0.6693561", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_qr_details, container, false);\n }", "title": "" }, { "docid": "1835b770f34e6c74c24509917a9afd77", "score": "0.66926605", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup parent, Bundle savedInstanceState) {\n // Defines the xml file for the fragment\n return inflater.inflate(R.layout.fragment_posts, parent, false);\n }", "title": "" }, { "docid": "90536de4dc511baac07f02d2ce18c04b", "score": "0.6686842", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.data_input_fragment, container, false);\n }", "title": "" }, { "docid": "acce452799d9431cdba6feb64cf40b0f", "score": "0.66844076", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_student_performance_details, container, false);\n }", "title": "" }, { "docid": "5e8923f18860cc7b51ced892b239d9d3", "score": "0.6676537", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n EventBus.getDefault().register(this);\n initData();\n // Inflate the layout for this fragment\n View view = inflater.inflate(R.layout.fragment_details, container, false);\n unbinder = ButterKnife.bind(this, view);\n return view;\n }", "title": "" }, { "docid": "f5959e7a0ee4abe7e410ae8e5b46f3dc", "score": "0.66748124", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_feed, container, false);\n }", "title": "" }, { "docid": "7349929d25376d9bb1257ee8b1913923", "score": "0.66604626", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup parent, Bundle savedInstanceState) {\n // Defines the xml file for the fragment\n return inflater.inflate(R.layout.tabbed_layout_fragment, parent, false);\n }", "title": "" }, { "docid": "4e7d396e0762740333697421d05c54d0", "score": "0.6651963", "text": "@LayoutRes\n protected int getLayoutResId() {\n return R.layout.activity_fragment;\n }", "title": "" }, { "docid": "4e7d396e0762740333697421d05c54d0", "score": "0.6651963", "text": "@LayoutRes\n protected int getLayoutResId() {\n return R.layout.activity_fragment;\n }", "title": "" }, { "docid": "96672478ade50e2126c0d50a32ca2566", "score": "0.66489995", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_x_p_g, container, false);\n initui();\n initdata();\n initListener();\n return view;\n }", "title": "" }, { "docid": "6758b86402a7ddac3a5fa675b7e9ceb6", "score": "0.6639977", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View rootView = inflater.inflate(R.layout.fragment_activtiy__module_all_inone_design, container, false);\n initView(rootView);\n setupView(true);\n return rootView;\n }", "title": "" }, { "docid": "11f4f3283479a73a8e6533136741313e", "score": "0.66238713", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_film_feed, container, false);\n }", "title": "" }, { "docid": "015122adb4760c79b6b0c60c088561d7", "score": "0.66224056", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_grafica_sensor, container, false);\n }", "title": "" }, { "docid": "0c13a1fda2fb50f1611cc1999193d5a1", "score": "0.66139317", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.jsl_ros_fragment, container, false);\n return view;\n\n\n }", "title": "" }, { "docid": "2e3f15f8c79e799a8e647e4707de894a", "score": "0.661324", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_sensor_card, container, false);\n }", "title": "" }, { "docid": "e9aea84f853b1da8ac47ff861005e927", "score": "0.66081375", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view=inflater.inflate(R.layout.fragment_feed, container, false);\n\n\n\n return view;\n }", "title": "" }, { "docid": "331720b5ca2b01326c251a532b6c2ed3", "score": "0.660319", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n layout = inflater.inflate(R.layout.fragment_news, container, false);\n\n setupView();\n\n return layout;\n }", "title": "" }, { "docid": "cce3dbceba374499a484fd35c6aff825", "score": "0.659996", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n return inflater.inflate(layoutID, container, false);\n }", "title": "" }, { "docid": "bfbc567d758490df0fea420bdf4f7103", "score": "0.6599353", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_re_dian_layout, container, false);\n }", "title": "" }, { "docid": "d4564ceca854d095bef42e01cffa58fd", "score": "0.65963155", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_sirattendance, container, false);\n\n\n }", "title": "" }, { "docid": "4e1f3e9ab5512b88a7ac61a540e5e085", "score": "0.65961707", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n if (rootView==null)\n rootView = inflater.inflate(R.layout.frag_online_booking, container, false);\n return rootView;\n }", "title": "" }, { "docid": "ed56cf138791a4135262d9526ba4143a", "score": "0.65961", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_values, container, false);\n }", "title": "" }, { "docid": "b3b9775bfe981052f69dc1ea52d9678a", "score": "0.6595405", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_bid, container, false);\n }", "title": "" }, { "docid": "d563aab6fcb42f14accedaefcdf7577a", "score": "0.6592999", "text": "@Override\n\tprotected int Layout() {\n\t\treturn R.layout.detail_plant_fragment;\n\t}", "title": "" }, { "docid": "5bff803e528610f4eb6312c18096fe79", "score": "0.6592355", "text": "@Override\n public View onCreateView(@NonNull LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View root = inflater.inflate(R.layout.discover_fragment_layout, container, false);\n ButterKnife.bind(this,root);\n initView();\n return root;\n }", "title": "" }, { "docid": "b72706f069e5e84f8ae9110731b25d37", "score": "0.6584759", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_glide_base, container, false);\n initView(view);\n initData();\n return view;\n }", "title": "" }, { "docid": "a39a1dcbeb3f72a5cd25f5306b8ff576", "score": "0.6584146", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View inflate = inflater.inflate(R.layout.fragment_sure_bill, container, false);\n\n initView(inflate);\n initRlv();\n return inflate;\n }", "title": "" }, { "docid": "d31730c3b448096db520ac01842928b0", "score": "0.658335", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_q_r, container, false);\n }", "title": "" }, { "docid": "f6c8c8d553f7dfeb32dce382e151b148", "score": "0.6581871", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_booking, container, false);\n }", "title": "" }, { "docid": "d543d7891bbdb9388e2944f961fa2d0a", "score": "0.6569775", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_emr_and_health_tracker, container, false);\n }", "title": "" }, { "docid": "45b0d3e7951b1f3635e9f6fd6ee57617", "score": "0.6567476", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_paint, container, false);\n }", "title": "" }, { "docid": "02157c6b94be7f81dc1306f031c0cc77", "score": "0.6565532", "text": "@Override\n public View onCreateView(\n LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState\n ) {\n return inflater.inflate(R.layout.fragment_lua_chon, container, false);\n }", "title": "" }, { "docid": "5b5b9102f79f34a7a7dd8bcd7f39374e", "score": "0.65633804", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_player_info, container, false);\n }", "title": "" }, { "docid": "e8a15250b2a4f55bdb8fa523dffcc1ea", "score": "0.6561751", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_events_all, container, false);\n }", "title": "" }, { "docid": "604611d2624a242c792088e04d880685", "score": "0.6560619", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_day_slot, container, false);\n }", "title": "" }, { "docid": "8dc0c9822d65c4f69228407b20e0462d", "score": "0.6555244", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n parent = inflater.inflate(R.layout.fragment_receiverexchange, container, false);\n Bundle data = getArguments();\n idPokemon = data.getString(\"id\");\n\n that = this;\n\n loadingScreen = (LinearLayout) parent.findViewById(R.id.loadingFriendExchange);\n noFriend = (LinearLayout) parent.findViewById(R.id.noFriend);\n\n ManagerPokemonService.getInstance().getFriends(this, this);\n return parent;\n\n }", "title": "" }, { "docid": "10a7a07a0c445de6e4f7629ef0965760", "score": "0.65547", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n rootView = inflater.inflate(R.layout.fragment_bids, container, false);\n intilize();\n return rootView ;\n }", "title": "" }, { "docid": "ba603b44b42ec41872365e0d42b3efb9", "score": "0.6553309", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_resource_details_view, container, false);\n }", "title": "" }, { "docid": "3a201caa39267fa0414361986a83648b", "score": "0.65527177", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View layout = inflater.inflate(R.layout.fragment_display_section, container, false);\n\n setup(layout);\n setRecyclerView(layout);\n title.setText(type);\n\n\n return layout;\n }", "title": "" }, { "docid": "bc8e628d6f4111e1eaa538596cb9cdc3", "score": "0.6548227", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View inflate = inflater.inflate(getLayout(), container, false);\n bind = ButterKnife.bind(this, inflate);\n initPresmter();\n if (mp != null) {\n mp.bindView(this);\n }\n initView();\n initData();\n initLis();\n return inflate;\n }", "title": "" }, { "docid": "775dbc717ecde4eaf08f45991a7ff805", "score": "0.65449506", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.progress_frag_layout, container, false);\n return view;\n }", "title": "" }, { "docid": "a1af43ddb53810f18beb9c6f3618a17c", "score": "0.65421796", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.load_save_fragment, container, false);\n }", "title": "" }, { "docid": "cee4511d64e2b811c1d3c7080c5b5ce8", "score": "0.6540315", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_zui_xin, container, false);\n }", "title": "" }, { "docid": "9c22297e07b668a10f7033183d5fc2a4", "score": "0.6539921", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_beat_box, container, false);\n findViews(view);\n initViews();\n UpdateUI();\n return view;\n }", "title": "" }, { "docid": "72662dce8cf04e29f66f460bb412ceca", "score": "0.6537823", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_qian, container, false);\n activity = getActivity();\n ButterKnife.bind(this, view);\n initView();\n initData();\n return view;\n }", "title": "" }, { "docid": "94465da996a6248b697ca5a2263694f3", "score": "0.6536186", "text": "@Override\n\tpublic View onCreateView(LayoutInflater inflater,\n\t\t\t@Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {\n\t\tView v = inflater.inflate(getLayoutRes(), container, false);\n\t\tinitViews(v);\n\t\treturn v;\n\t}", "title": "" }, { "docid": "da2c5ba4284915440f3f77285b042540", "score": "0.65342844", "text": "@Override\r\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container,\r\n\t\t\tBundle savedInstanceState) {\n\t\tView view = inflater.inflate(R.layout.wishdetail_comment_fragment, null);\r\n\t\tinitView(view);\r\n\t\treturn view;\r\n\t}", "title": "" }, { "docid": "42d3bbac9638425970af2ed4b21d379b", "score": "0.65322006", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_sun, container, false);\n initLayout(view);\n initData();\n refreshData();\n\n return view;\n }", "title": "" }, { "docid": "fdce99c99a222ef8a70eaadbd113b175", "score": "0.65315896", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_mood_graph, container, false);\n }", "title": "" }, { "docid": "4bc679397238a055c526b4cc3ca04f40", "score": "0.65314573", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_picture_processing, container, false);\n init();\n bind(view);\n return view;\n }", "title": "" }, { "docid": "f4e51a678b2a7cca8a98984933cfe195", "score": "0.6531234", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_book_details, container, false);\n }", "title": "" }, { "docid": "25fd4633ddd23c224a5486f1318e2b12", "score": "0.6529434", "text": "@Nullable\n @Override\n public View onCreateView(@NonNull LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_4,container,false);\n }", "title": "" }, { "docid": "939a8cf73f01d6d4cd326bc01bfc63a7", "score": "0.652812", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_pying_main, container, false);\n unbinder = ButterKnife.bind(this, view);\n mContext = getActivity();\n EventBusUtil.register(this);\n return view;\n }", "title": "" }, { "docid": "3b9e25cb1bead38bb0e4f6ba2dae1dad", "score": "0.6528106", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n mView = inflater.inflate(R.layout.fragment_talent_bank1, container, false);\n init();\n return mView;\n }", "title": "" }, { "docid": "e8fa09daa2ee2dc27190ea33423b742c", "score": "0.6528059", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n if (view == null) {\n view = inflater.inflate(R.layout.fragment_week_detail, container, false);\n unbinder = ButterKnife.bind(this, view);\n initUI();\n initData();\n }\n return view;\n }", "title": "" }, { "docid": "ae5bef43dfc4d759d49a8894085c6ec0", "score": "0.65276074", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_etkinlik, container, false);\n }", "title": "" }, { "docid": "d00381bf3e43c37a210f948c0a1c665b", "score": "0.65270287", "text": "@Override\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container,\n\t\t\tBundle savedInstanceState) {\n\t\treturn inflater.inflate(R.layout.shop_collect_fragment, null);\n\t}", "title": "" }, { "docid": "6678fbf25ad8ffc050eb7abf02a53778", "score": "0.6525935", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_alarms, container, false);\n }", "title": "" }, { "docid": "47c728132dc1fc32f9a34978582a956e", "score": "0.65254676", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_mine_info, container, false);\n initView(view);\n loadData();\n return view;\n }", "title": "" }, { "docid": "f9d4fa89387f190e09cf526c26074f01", "score": "0.6524167", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_sirresult, container, false);\n }", "title": "" }, { "docid": "593126b304e506ed948b003be5d5002a", "score": "0.6524122", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment06_4, container, false);\n initView(view);\n setLegend();\n setXAxis();\n setYAxis();\n setData();\n return view;\n }", "title": "" }, { "docid": "ce096549e94799e8d983c7b0c96e4ea4", "score": "0.652222", "text": "@Override\n public View onCreateView (LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState){\n return inflater.inflate(R.layout.fragment_location_picker_ggs, container, false);\n }", "title": "" }, { "docid": "e86f6830686ce7015a13e85f89ead38b", "score": "0.6520568", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup parent, Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_category, parent, false);\n }", "title": "" }, { "docid": "51d404661974dae129559d9ddcaa219a", "score": "0.6520037", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n // Inflate the layout for this fragment\n return inflater.inflate(R.layout.fragment_pending_friends, container, false);\n }", "title": "" }, { "docid": "d75e991c0c9c41ce4929ddbe75d2f0eb", "score": "0.65193015", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View v = inflater.inflate(R.layout.internet, container, false);\n\n //....................initialisation of objects.........................//\n init(v);\n\n\n return v;\n }", "title": "" }, { "docid": "61ea3c973d6e8301700252caf59db625", "score": "0.65184337", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View v= inflater.inflate(R.layout.fragment_fragment7, container, false);\n\n initializeElements(v);\n\n return v;\n }", "title": "" }, { "docid": "8b0f7677a8537c0322b814afc6643ad8", "score": "0.65167576", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_quiz_sub_fragment, container, false);\n }", "title": "" }, { "docid": "c5cab0c98964eddd2e3aadbbb2917bc1", "score": "0.65159935", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_statistics__root, container, false);\n }", "title": "" }, { "docid": "33c361b3473d954bdea1a4967293139a", "score": "0.6513738", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n return inflater.inflate(R.layout.activity_fragment_satu, container, false);\n }", "title": "" }, { "docid": "7df9b74b7c10d8bcabd8a869a0e229a8", "score": "0.6512136", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_all, container, false);\n unbinder = ButterKnife.bind(this, view);\n initview();\n //获取数据\n mActivityListSwf.setOnRefreshListener(new OnRefreshListener() {\n @Override\n public void onRefresh(RefreshLayout refreshlayout) {\n initData(REFRESH);\n }\n });\n mActivityListSwf.setOnLoadmoreListener(new OnLoadmoreListener() {\n @Override\n public void onLoadmore(RefreshLayout refreshlayout) {\n initData(LOADMORE);\n }\n });\n mActivityListSwf.autoRefresh();\n return view;\n }", "title": "" }, { "docid": "9a33403435e7ea0a3cec7eb738b0fd0d", "score": "0.6508211", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n\n View view = inflater.inflate(getLayout(), container, false);\n content(view);\n return view;\n }", "title": "" }, { "docid": "2e2ff691657932814bf1804cc5d54d5f", "score": "0.6507906", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n return inflater.inflate(R.layout.bag_fragment, container, false);\n }", "title": "" }, { "docid": "d406840ef6d548fdb99ab7f0f0fc75ae", "score": "0.6506914", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_record, container, false);\n }", "title": "" }, { "docid": "120d8b165c3e92054cd1cbe85631dd6e", "score": "0.6505456", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_mycomments, container, false);\n initView(view);\n initData();\n return view;\n }", "title": "" }, { "docid": "a1d947b3b11612e28afb60c9ac8759e9", "score": "0.6503419", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_movie_details, container, false);\n }", "title": "" }, { "docid": "f069456037fd8c986d16306dc4e57e40", "score": "0.650341", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View rootView = inflater.inflate(R.layout.fragment_recruiter_account, container, false);\n\n mSetting = ManageAccountFragment.mSetting;\n if(mSetting == null) mSetting = new AdminFilterAccountSetting();\n mSetting.setQuery(\"\");\n addView(rootView);\n setmRecyclerView();\n addEvent();\n setIcon();\n addOnScrolled();\n loadDefaultData();\n\n return rootView;\n }", "title": "" }, { "docid": "45f2876d1081d88fc021a3acc948e939", "score": "0.6501855", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_tweety, container, false);\n\n init();\n return view;\n }", "title": "" }, { "docid": "e7640d65c2c06d81a61d1756ee417f10", "score": "0.6499078", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_exercuse_fragmet, container, false);\n }", "title": "" }, { "docid": "328029beafc307170b5630b6374f3962", "score": "0.64985585", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View mLayout = inflater.inflate(R.layout.fragment_equip_pdf, container, false);\n ButterKnife.bind(this,mLayout);\n\n if (mId == null)\n mListView.setEmptyView(mTextView);\n else\n getPDFInfo(mId);\n\n return mLayout;\n }", "title": "" }, { "docid": "9ff5ad0cc079e269a47805358065eb38", "score": "0.6497573", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_weather, container, false);\n }", "title": "" }, { "docid": "54053252554fe361aa6151d94575a33e", "score": "0.6497339", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view=inflater.inflate(R.layout.fragment_la_pin,container,false);\n laPing_toolbar = ((Toolbar) view.findViewById(R.id.laPing_toobar));\n laPing_tabLayout = ((TabLayout) view.findViewById(R.id.laPing_tablayout));\n laPing_viewpager = ((ViewPager) view.findViewById(R.id.laPing_viewpager));\n setToobar();\n setTabLayout();\n return view;\n }", "title": "" }, { "docid": "18f529b535c33665a0ec497db3411995", "score": "0.6490524", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.rsl_sched_fragment, container, false);\n\n return view;\n\n }", "title": "" }, { "docid": "10e6321d298c79873eb7ef15396185b8", "score": "0.64893353", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_adv_recycler, container, false);\n }", "title": "" }, { "docid": "4c34966aed2803f7a56cf63ce2a15686", "score": "0.6489254", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n\n View inflate = inflater.inflate(getLayoutId(), container, false);\n\n initView(inflate);\n\n return inflate;\n }", "title": "" }, { "docid": "3896223c4894fa3989be3eae211b5b7f", "score": "0.6488663", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_nokri__home2_screen, container, false);\n\n\n }", "title": "" }, { "docid": "22135beeece369b890c09b32177bafd9", "score": "0.6487333", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_info_uni, container, false);\n ButterKnife.bind(this, view);\n EventBus.getDefault().register(this);\n setupUI();\n return view;\n }", "title": "" }, { "docid": "c1efc4fe7023e8dd85eacd30cf958885", "score": "0.64873296", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_resistor_4__rings, container, false);\n }", "title": "" }, { "docid": "d84b408ffb746542d28f8077eac91fea", "score": "0.6484432", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n v = inflater.inflate(R.layout.fragment_canvas, container, false);\n return v;\n }", "title": "" }, { "docid": "21de314beea073b304fa8dcc0e434bc6", "score": "0.6483565", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_ringtone, container, false);\n }", "title": "" }, { "docid": "2b94e675464265b119833ff09dc0310c", "score": "0.6483487", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n Fresco.initialize(getContext());\n View view = inflater.inflate(R.layout.fragment_simple, container, false);\n unbinder = ButterKnife.bind(this, view);\n requestReadExternalPermission();\n setImage();\n setSpinner();\n setHint();\n setJump();\n return view;\n }", "title": "" }, { "docid": "9ca09b59bee03dc7e1ba690d5351c2d3", "score": "0.648222", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_zuji_item, container, false);\n }", "title": "" } ]
913674c412b6093a488766ff4d8db861
fin del metodo buscar en archivos XML
[ { "docid": "c9c18aded96276161cfe10ad1cf9faee", "score": "0.0", "text": "public void buscarEnBD()\n {\n if(controlador_FRM_VentanaPrincipal.vericar.verificarNumero(frm_MantenimientoEstudiantes.devolverCedula()))\n {\n if(controlador_FRM_VentanaPrincipal.conexionBD.consultarEstudiante(frm_MantenimientoEstudiantes.devolverCedula()))\n {\n frm_MantenimientoEstudiantes.mostrarInformacion(controlador_FRM_VentanaPrincipal.conexionBD.getArregloEstudiantes());\n frm_MantenimientoEstudiantes.habilitarEdicion();\n }\n else\n {\n int valor=frm_MantenimientoEstudiantes.mostrarMensajeVerificacion(\"La cédula buscada no se encuentra en la Base de Datos, Desea agregarlo?.\");\n if(valor==0)\n frm_MantenimientoEstudiantes.habilitarAgregar();\n else\n frm_MantenimientoEstudiantes.resetearGUI();\n }\n }\n else\n {\n frm_MantenimientoEstudiantes.mostrarMensaje(\"La cedula digitada solo debe contener numeros\");\n frm_MantenimientoEstudiantes.resetearGUI();\n }\n }", "title": "" } ]
[ { "docid": "ec0a70ef35ccf44f2a1993f80547526a", "score": "0.7754022", "text": "public void buscarEnArchivosXML()\n {\n if(controlador_FRM_VentanaPrincipal.vericar.verificarNumero(frm_MantenimientoEstudiantes.devolverCedula()))\n {\n if(controlador_FRM_VentanaPrincipal.metodos_XML_Estudiantes.consultarInformacionDelXml(frm_MantenimientoEstudiantes.devolverCedula()))\n {\n String arreglo[] = new String[2];\n arreglo[0] = controlador_FRM_VentanaPrincipal.metodos_XML_Estudiantes.getArregloInformacion()[1];\n arreglo[1] = controlador_FRM_VentanaPrincipal.metodos_XML_Estudiantes.getArregloInformacion()[2];\n frm_MantenimientoEstudiantes.mostrarInformacion(arreglo);\n frm_MantenimientoEstudiantes.habilitarEdicion();\n }\n else\n {\n int valor=frm_MantenimientoEstudiantes.mostrarMensajeVerificacion(\"La cédula buscada no se encuentra en los archivos XML, Desea agregarlo?.\");\n if(valor==0)\n frm_MantenimientoEstudiantes.habilitarAgregar();\n else\n frm_MantenimientoEstudiantes.resetearGUI();\n }\n }\n else\n {\n frm_MantenimientoEstudiantes.mostrarMensaje(\"La cedula digitada solo debe contener numeros\");\n }\n }", "title": "" }, { "docid": "482ffd018172aa678b90419c01ea6208", "score": "0.6799928", "text": "public static void main( String[] args ) {\n\tEscribir_XML fileWriter = new Escribir_XML( pathXml );\n //fileWriter.escribir_archivo( \"/root/result/child[3]/internal/unique[1]\", \"123WE\",pathXml );\n \n //Escribir otro valor\n fileWriter.cargarXML( pathXml);\n // fileWriter.escribir_archivo( \"/root/result/child[2]\" , \"ED\", pathXml );\n fileWriter.editarAtributo(\"correspondence\", \"to\", \"probando123\",pathXml);\n \n \n\t// leer de un xml\n XMLReader reader = new XMLReader( pathXml );\n\treader.LecturaAtributos(\"correspondence\",pathXml);\n\t\n\t//System.out.println( \"fileReader: \" + reader.Lectura( \"/root/result/child[3]/internal/unique[1]\" ) );\n\t\t\n\t// cargar la copia del xml\n Document myDocument = reader.getDocument();\n\n\tEscribir_XML memWriter = new Escribir_XML( myDocument );\n\t//myDocument = memWriter.writeTextByXPathToMemory( \"/root/result/child[3]/internal/unique[1]\", \"ED\");\n\t\t\n\t// leer de la memoria del xml\n\tXMLReader memReader = new XMLReader( myDocument );\n\t//System.out.println( \"memoryReader: \" + memReader.Lectura( \"/root/result/child[3]/internal/unique[1]\" ) );\t\t\n \n\t\n }", "title": "" }, { "docid": "176d0a9ef114ca7d177ccd1cd93f111d", "score": "0.66982913", "text": "public void modificarEnArchivosXML()\n {\n if(controlador_FRM_VentanaPrincipal.vericar.verificarNumero(frm_MantenimientoEstudiantes.devolverCedula()))\n {\n controlador_FRM_VentanaPrincipal.metodos_XML_Estudiantes.modificarInformacionDelXml(frm_MantenimientoEstudiantes.devolverInformacion());\n frm_MantenimientoEstudiantes.mostrarMensaje(\"El estudiante fue modificado de forma correcta, en los Arhivos XML\");\n frm_MantenimientoEstudiantes.resetearGUI();\n }\n else\n {\n frm_MantenimientoEstudiantes.mostrarMensaje(\"La cedula digitada solo debe contener\");\n }\n }", "title": "" }, { "docid": "42c528fe9a1781d20630817a949a7aca", "score": "0.64160705", "text": "public static void cargar_vias_coleccion() throws XMLDBException {\n if (conectar() != null) {\n try {\n // Inicializamos el recurso\n XMLResource res = null;\n // Creamos el recurso -> recibe 2 parámetros tipo String:\n // s: nombre.xml (si lo dejamos null, pondrá un nombre aleatorio)\n // s1: tipo recurso (en este caso, siempre será XMLResource)\n res = (XMLResource) col.createResource(\"vias.xml\", \"XMLResource\");\n\n // Elegimos el fichero .xml que queremos añadir a la colección\n File f = new File(\"Archivos/vias.xml\");\n\n // Fijamos como contenido ese archivo .xml elegido\n res.setContent(f);\n col.storeResource(res); // lo añadimos a la colección\n\n // Listamos la colección para ver que en efecto se ha añadido\n for (String colRe : col.listResources())\n System.out.println(colRe);\n\n col.close();\n } catch (Exception e) {\n System.out.println(\"Error al consultar.\");\n // e.printStackTrace();\n }\n } else {\n System.out.println(\"Error en la conexión. Comprueba datos.\");\n }\n }", "title": "" }, { "docid": "6b6885dd11e0e2d51a4d58232db168d6", "score": "0.6372295", "text": "public ArrayList<Object> importar(String path) throws ParserConfigurationException, IOException, ParseException, org.xml.sax.SAXException {\n\n ArrayList<Object> pack = new ArrayList();\n ArrayList<Cuartel> lcuartel = new ArrayList<>();\n ArrayList<Unidad> lunidad = new ArrayList<>();\n ArrayList<Soldado> lsoldado = new ArrayList<>();\n DateFormat format = new SimpleDateFormat(\"dd MM yyyy\");\n\n DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();\n org.w3c.dom.Document doc = null;\n\n DocumentBuilder builder = factory.newDocumentBuilder();\n doc = builder.parse(new File(path));\n\n // Extraccion de los datos Cuartel\n\n NodeList cuarteles = doc.getElementsByTagName(\"cuartel\");\n for (int i = 0; i < cuarteles.getLength(); i++) {\n Node cuartel = cuarteles.item(i);\n Element elemento = (Element) cuartel;\n\n Cuartel c = new Cuartel();\n\n c.setnCuartel(elemento.getElementsByTagName(\"nombre_cuartel\").item(0)\n .getChildNodes().item(0).getNodeValue());\n c.setLocalidad(elemento.getElementsByTagName(\"localidad\").item(0)\n .getChildNodes().item(0).getNodeValue());\n c.setLatitud(Double.valueOf(elemento.getElementsByTagName(\"latitud\").item(0)\n .getChildNodes().item(0).getNodeValue()));\n c.setLongitud(Double.valueOf(elemento.getElementsByTagName(\"longitud\").item(0)\n .getChildNodes().item(0).getNodeValue()));\n c.setActividad(Boolean.valueOf(elemento.getElementsByTagName(\"activo\").item(0)\n .getChildNodes().item(0).getNodeValue()));\n\n lcuartel.add(c);\n }\n\n // Extraccion de los datos UnidadView\n\n NodeList unidades = doc.getElementsByTagName(\"unidad\");\n for (int i = 0; i < unidades.getLength(); i++) {\n Node unidad = unidades.item(i);\n Element elemento = (Element) unidad;\n\n Unidad u = new Unidad();\n\n u.setnUnidad(elemento.getElementsByTagName(\"nombre_unidad\").item(0)\n .getChildNodes().item(0).getNodeValue());\n u.setTipo(elemento.getElementsByTagName(\"tipo\").item(0)\n .getChildNodes().item(0).getNodeValue());\n u.setnCuartel(elemento.getElementsByTagName(\"n_cuartel\").item(0)\n .getChildNodes().item(0).getNodeValue());\n\n u.setNoTropas(Integer.valueOf(elemento.getElementsByTagName(\"no_tropas\").item(0)\n .getChildNodes().item(0).getNodeValue()));\n u.setFechaCreacion(format.parse(elemento.getElementsByTagName(\"fecha_creacion\").item(0)\n .getChildNodes().item(0).getNodeValue()));\n\n lunidad.add(u);\n }\n\n\n NodeList soldados = doc.getElementsByTagName(\"soldado\");\n for (int i = 0; i < soldados.getLength(); i++) {\n Node soldado = soldados.item(i);\n Element elemento = (Element) soldado;\n\n Soldado s = new Soldado();\n\n s.setNombre(elemento.getElementsByTagName(\"nombre\").item(0)\n .getChildNodes().item(0).getNodeValue());\n s.setApellidos(elemento.getElementsByTagName(\"apellidos\").item(0)\n .getChildNodes().item(0).getNodeValue());\n s.setnUnidad(elemento.getElementsByTagName(\"n_unidad\").item(0)\n .getChildNodes().item(0).getNodeValue());\n s.setRango(elemento.getElementsByTagName(\"rango\").item(0)\n .getChildNodes().item(0).getNodeValue());\n s.setFechaNacimiento(format.parse(elemento.getElementsByTagName(\"fecha_nacimiento\").item(0)\n .getChildNodes().item(0).getNodeValue()));\n s.setLugarNacimiento(elemento.getElementsByTagName(\"lugar_nacimiento\").item(0)\n .getChildNodes().item(0).getNodeValue());\n\n lsoldado.add(s);\n }\n\n\n pack.add(lcuartel);\n pack.add(lunidad);\n pack.add(lsoldado);\n\n return pack;\n }", "title": "" }, { "docid": "131cf314911dc361e85100a3a2a013af", "score": "0.6338123", "text": "public void exportar(String path) throws ParserConfigurationException,\n TransformerException {\n ArrayList<Object> pack = prepararExportar();\n List<Cuartel> lc = (List<Cuartel>) pack.get(0);\n List<Unidad> lu = (List<Unidad>) pack.get(1);\n List<Soldado> ls = (List<Soldado>) pack.get(2);\n\n DateFormat format = new SimpleDateFormat(\"dd MM yyyy\");\n\n DocumentBuilderFactory docFactory = DocumentBuilderFactory.newInstance();\n org.w3c.dom.Document doc;\n\n DocumentBuilder docBuilder = docFactory.newDocumentBuilder();\n DOMImplementation dom = docBuilder.getDOMImplementation();\n doc = dom.createDocument(null, \"xml\", null);\n\n Element root = doc.createElement(\"archivo\");\n Element cuarteles = doc.createElement(\"cuarteles\");\n Element unidades = doc.createElement(\"unidades\");\n Element soldados = doc.createElement(\"soldados\");\n\n doc.getDocumentElement().appendChild(root);\n root.appendChild(cuarteles);\n root.appendChild(unidades);\n root.appendChild(soldados);\n\n Element nodoCuartel = null, nodoUnidad = null,\n nodoSoldado = null, nodoDatos = null;\n Text txt = null;\n\n for (Cuartel cuartel : lc) {\n\n nodoCuartel = doc.createElement(\"cuartel\");\n cuarteles.appendChild(nodoCuartel);\n\n nodoDatos = doc.createElement(\"nombre_cuartel\");\n nodoCuartel.appendChild(nodoDatos);\n txt = doc.createTextNode(cuartel.getnCuartel());\n nodoDatos.appendChild(txt);\n\n nodoDatos = doc.createElement(\"localidad\");\n nodoCuartel.appendChild(nodoDatos);\n txt = doc.createTextNode(cuartel.getLocalidad());\n nodoDatos.appendChild(txt);\n\n nodoDatos = doc.createElement(\"latitud\");\n nodoCuartel.appendChild(nodoDatos);\n txt = doc.createTextNode(String.valueOf(cuartel.getLatitud()));\n nodoDatos.appendChild(txt);\n\n nodoDatos = doc.createElement(\"longitud\");\n nodoCuartel.appendChild(nodoDatos);\n txt = doc.createTextNode(String.valueOf(cuartel.getLongitud()));\n nodoDatos.appendChild(txt);\n\n nodoDatos = doc.createElement(\"activo\");\n nodoCuartel.appendChild(nodoDatos);\n txt = doc.createTextNode(String.valueOf(cuartel.getActividad()));\n nodoDatos.appendChild(txt);\n }\n\n for (Unidad unidad : lu) {\n\n nodoUnidad = doc.createElement(\"unidad\");\n unidades.appendChild(nodoUnidad);\n\n nodoDatos = doc.createElement(\"nombre_unidad\");\n nodoUnidad.appendChild(nodoDatos);\n txt = doc.createTextNode(unidad.getnUnidad());\n nodoDatos.appendChild(txt);\n\n nodoDatos = doc.createElement(\"tipo\");\n nodoUnidad.appendChild(nodoDatos);\n txt = doc.createTextNode(unidad.getTipo());\n nodoDatos.appendChild(txt);\n\n nodoDatos = doc.createElement(\"n_cuartel\");\n nodoUnidad.appendChild(nodoDatos);\n txt = doc.createTextNode(unidad.getnCuartel());\n nodoDatos.appendChild(txt);\n\n nodoDatos = doc.createElement(\"no_tropas\");\n nodoUnidad.appendChild(nodoDatos);\n txt = doc.createTextNode(String.valueOf(unidad.getNoTropas()));\n nodoDatos.appendChild(txt);\n\n nodoDatos = doc.createElement(\"fecha_creacion\");\n nodoUnidad.appendChild(nodoDatos);\n txt = doc.createTextNode(String.valueOf(format.format(unidad.getFechaCreacion())));\n nodoDatos.appendChild(txt);\n }\n\n for (Soldado soldado : ls) {\n\n nodoSoldado = doc.createElement(\"soldado\");\n soldados.appendChild(nodoSoldado);\n\n nodoDatos = doc.createElement(\"nombre\");\n nodoSoldado.appendChild(nodoDatos);\n txt = doc.createTextNode(soldado.getNombre());\n nodoDatos.appendChild(txt);\n\n nodoDatos = doc.createElement(\"apellidos\");\n nodoSoldado.appendChild(nodoDatos);\n txt = doc.createTextNode(soldado.getApellidos());\n nodoDatos.appendChild(txt);\n\n nodoDatos = doc.createElement(\"lugar_nacimiento\");\n nodoSoldado.appendChild(nodoDatos);\n txt = doc.createTextNode(soldado.getLugarNacimiento());\n nodoDatos.appendChild(txt);\n\n nodoDatos = doc.createElement(\"fecha_nacimiento\");\n nodoSoldado.appendChild(nodoDatos);\n txt = doc.createTextNode(String.valueOf(format.format(soldado.getFechaNacimiento())));\n nodoDatos.appendChild(txt);\n\n nodoDatos = doc.createElement(\"rango\");\n nodoSoldado.appendChild(nodoDatos);\n txt = doc.createTextNode(soldado.getRango());\n nodoDatos.appendChild(txt);\n\n nodoDatos = doc.createElement(\"n_unidad\");\n nodoSoldado.appendChild(nodoDatos);\n txt = doc.createTextNode(soldado.getnUnidad()); //FIXME Arreglar\n nodoDatos.appendChild(txt);\n }\n\n Source source = new DOMSource(doc);\n Result resultado = new StreamResult(new File(path));\n\n Transformer transformer = TransformerFactory.newInstance().newTransformer();\n transformer.transform(source, resultado);\n }", "title": "" }, { "docid": "d47b3d641eab2ee309376198a6cf28a6", "score": "0.6328428", "text": "public void registrarConArhivosXML()\n {\n if(controlador_FRM_VentanaPrincipal.vericar.verificarNumero(frm_MantenimientoEstudiantes.devolverCedula()))\n {\n if(controlador_FRM_VentanaPrincipal.vericar.verificarLetrasYEspacios(frm_MantenimientoEstudiantes.devolverInformacion()[1]))\n {\n if(controlador_FRM_VentanaPrincipal.vericar.verificarVacio(frm_MantenimientoEstudiantes.devolverInformacion()[2]))\n {\n controlador_FRM_VentanaPrincipal.metodos_XML_Estudiantes.guardarEnXML(frm_MantenimientoEstudiantes.devolverInformacion());\n frm_MantenimientoEstudiantes.mostrarMensaje(\"Estudiante registrado con exito, en archivos XML\");\n frm_MantenimientoEstudiantes.resetearGUI(); \n }\n else\n {\n \n frm_MantenimientoEstudiantes.mostrarMensaje(\"Debe digitar una direccion\");\n }\n }\n else\n {\n frm_MantenimientoEstudiantes.mostrarMensaje(\"El nombre debe contener solo letras\"); \n } \n }\n else\n {\n frm_MantenimientoEstudiantes.mostrarMensaje(\"La cedula solo puede contener numeros\"); \n }\n }", "title": "" }, { "docid": "0d5a54c9c2fcc9366b41ebbd5fcc79ef", "score": "0.62516916", "text": "public static void main(String[] args) {\n\n\t\t\n\t\tString xml = \"<GraficoMetaSemanal>\\r\\n\" + \n\t\t\t\t\"\t<NomeEmpresa>KnetApp Soluções Inteligentes</NomeEmpresa>\\r\\n\" + \n\t\t\t\t\"\t<NomeRelatorio>metas.pdf</NomeRelatorio>\\r\\n\" + \n\t\t\t\t\"\t<Dados>\\r\\n\" + \n\t\t\t\t\"\t\t<Descricao>Vendas Estofados</Descricao>\\r\\n\" + \n\t\t\t\t\"\t\t<Nome>Venda de Sofás</Nome>\\r\\n\" + \n\t\t\t\t\"\t\t<ValorMeta>100.00</ValorMeta>\\r\\n\" + \n\t\t\t\t\"\t\t<ValorAtingido>80.00</ValorAtingido>\\r\\n\" + \n\t\t\t\t\"\t\t<ImprimirValor>true</ImprimirValor>\\r\\n\" + \n\t\t\t\t\"\t\t<ImprimirHeader>true</ImprimirHeader>\\r\\n\" + \n\t\t\t\t\"\t\t<Detalhe>\\r\\n\" + \n\t\t\t\t\"\t\t\t<DetalheItem>\\r\\n\" + \n\t\t\t\t\"\t\t\t\t<Descricao>Descrição 1º</Descricao>\\r\\n\" + \n\t\t\t\t\"\t\t\t\t<Nome>Poliéster e Polipropileno</Nome>\\r\\n\" + \n\t\t\t\t\"\t\t\t\t<ValorMeta>100.00</ValorMeta>\\r\\n\" + \n\t\t\t\t\"\t\t\t\t<ValorAtingido>45.00</ValorAtingido>\\r\\n\" + \n\t\t\t\t\"\t\t\t\t<ImprimirGraficoTotal>false</ImprimirGraficoTotal>\\r\\n\" + \n\t\t\t\t\"\t\t\t\t<Semanas>\\r\\n\" + \n\t\t\t\t\"\t\t\t\t\t<SemanasItem>\\r\\n\" + \n\t\t\t\t\"\t\t\t\t\t\t<Semana>1</Semana>\\r\\n\" + \n\t\t\t\t\"\t\t\t\t\t\t<Descricao>Semana 1</Descricao>\\r\\n\" + \n\t\t\t\t\"\t\t\t\t\t\t<ValorMeta>1000.00</ValorMeta>\\r\\n\" + \n\t\t\t\t\"\t\t\t\t\t\t<ValorAtingido>1100.00</ValorAtingido>\\r\\n\" + \n\t\t\t\t\"\t\t\t\t\t</SemanasItem>\\r\\n\" + \n\t\t\t\t\"\t\t\t\t</Semanas>\\r\\n\" + \n\t\t\t\t\"\t\t\t</DetalheItem>\\r\\n\" + \n\t\t\t\t\"\t\t</Detalhe>\\r\\n\" + \n\t\t\t\t\"\t</Dados>\\r\\n\" + \n\t\t\t\t\"</GraficoMetaSemanal>\";\n\t\t\n\t\t\n\t\t TegaMeta tegameta = new TegaMeta();\n\t\t \n\t\t String HTML = tegameta.GerarPDF(xml, \"C:\\\\Meta\\\\\", \"C:\\\\Meta\\\\\");\n\t\t \n\t\t System.out.println(HTML);\n\t\t\n\t}", "title": "" }, { "docid": "5e91584f9731de1660ab70893b37d437", "score": "0.62497497", "text": "public void eliminarEnArhivosXML()\n {\n if(controlador_FRM_VentanaPrincipal.vericar.verificarNumero(frm_MantenimientoEstudiantes.devolverCedula()))\n {\n controlador_FRM_VentanaPrincipal.metodos_XML_Estudiantes.eliminarInformacionDelXml(frm_MantenimientoEstudiantes.devolverCedula());\n frm_MantenimientoEstudiantes.mostrarMensaje(\"El estudiante fue eliminado de forma correcta en los Archivos XML\");\n frm_MantenimientoEstudiantes.resetearGUI();\n }\n else\n {\n frm_MantenimientoEstudiantes.mostrarMensaje(\"La cedula digitada solo debe contener números\");\n }\n }", "title": "" }, { "docid": "205272e10a899e924405758ff1372401", "score": "0.6232763", "text": "public Vector lerRegistros(String nomeTabela) throws Exception {\n \t\n\tSystem.out.println(\"Lendo as colunas da tabela \"+nomeTabela +\"...\");\n\t\n\tDocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance();\n DocumentBuilder db = dbf.newDocumentBuilder();\n Document doc = db.parse( xmlPathname );\n\n Element elem = doc.getDocumentElement();\n // pega todos os elementos tabela do XML\n NodeList nlTab = elem.getElementsByTagName( \"tabela\" );\n\n\tVector vRegistros = new Vector();\n System.out.println(\"Colocou no vetor as colunas que foram lidas...\");\n // percorre cada elemento \"tabela\" encontrado\n for(int i=0;i<nlTab.getLength();i++) {\n\t Element tagTabela = (Element) nlTab.item(i);\n\n\t\t// só pega se for a tabela passada no parametro\n\t if(tagTabela.getAttribute(\"nometab\").equals(nomeTabela)){\n \n\t\t // pega todos os elementos \"coluna\" da tabela XML\n\t\t NodeList nlCol = tagTabela.getElementsByTagName( \"coluna\" );\n\t\t \n \n\t\t // percorre cada elemento tabela encontrado\n\t\t for( int j=0; j<nlCol.getLength(); j++ ) {\n\t\t\t Element tagColuna = (Element) nlCol.item(j); \n\t\t\t \n\t\t\t //NÃO APAGAR-> usar para debugar\n//\t\t\t System.out.println(\"---Dados retirados do XML---\");\n//\t\t\t System.out.println(\"nomecol=\"+tagColuna.getAttribute(\"nomecol\"));\n//\t\t\t System.out.println(\"tipo=\"+getChildTagValue( tagColuna, \"tipo\"));\n//\t\t\t System.out.println(\"tamanho=\"+getChildTagValue( tagColuna, \"tamanho\"));\n//\t\t\t System.out.println(\"precisao=\"+getChildTagValue( tagColuna, \"precisao\" ));\n//\t\t\t System.out.println(\"obrigatorio=\"+getChildTagValue( tagColuna, \"obrigatorio\"));\n//\t\t\t System.out.println(\"chave=\"+getChildTagValue( tagColuna, \"chave\"));\n//\t\t\t System.out.println(\"ini=\"+getChildTagValue( tagColuna, \"ini\"));\n//\t\t\t System.out.println(\"aliascoluna=\"+getChildTagValue( tagColuna, \"aliascoluna\"));\n//\t\t\t System.out.println(\"repositorio=\"+getChildTagValue( tagColuna, \"repositorio\"));\n//\t\t\t System.out.println(\"tabrepos=\"+getChildTagValue( tagColuna, \"tabrepos\"));\n//\t\t\t System.out.println(\"chaverepos=\"+getChildTagValue( tagColuna, \"chaverepos\"));\n//\t\t\t System.out.println(\"\");\n \n\t\t\t String coluna = tagColuna.getAttribute(\"nomecol\"); \n\t\t\t String tipo = getChildTagValue( tagColuna, \"tipo\" );\n\t\t\t String tamanho = getChildTagValue( tagColuna, \"tamanho\" );\n\t\t\t String precisao = getChildTagValue( tagColuna, \"precisao\" );\n\t\t\t String obrigatorio = getChildTagValue( tagColuna, \"obrigatorio\" );\n\t\t\t String chave = getChildTagValue( tagColuna, \"chave\" );\n\t\t\t String ini = getChildTagValue( tagColuna, \"ini\" );\n\t\t\t String aliasColuna = getChildTagValue( tagColuna, \"aliascoluna\" );\n\t\t\t String repositorio = getChildTagValue( tagColuna, \"repositorio\" );\n\t\t\t String tabRepos = getChildTagValue( tagColuna, \"tabrepos\" );\n\t\t\t String chaveRepos = getChildTagValue( tagColuna, \"chaverepos\" );\n\t\t\t \n\t\t\t //NÃO APAGAR-> usar para debugar\n//\t\t\t System.out.println(\"---Dados retirados das variaveis carregadas---\");\n//\t\t\t System.out.println(\"coluna=\"+coluna);\n//\t\t\t System.out.println(\"tipo=\"+tipo);\n//\t\t\t System.out.println(\"tamanho=\"+tamanho);\n//\t\t\t System.out.println(\"precisao=\"+precisao);\n//\t\t\t System.out.println(\"obrigatorio=\"+obrigatorio);\n//\t\t\t System.out.println(\"chave=\"+chave);\n//\t\t\t System.out.println(\"ini=\"+ini);\n//\t\t\t System.out.println(\"aliasColuna=\"+aliasColuna);\n//\t\t\t System.out.println(\"repositorio=\"+repositorio);\n//\t\t\t System.out.println(\"tabRepos=\"+tabRepos);\n//\t\t\t System.out.println(\"chaveRepos=\"+chaveRepos);\n// \t\t\t System.out.println(\"\");\n\t\t\t \n\t\t\t // cria uma nova instancia da classe Registros com os dados do xml\n\t\t\t Registros registros = new Registros(coluna,tipo,tamanho,precisao,obrigatorio,chave,ini,aliasColuna,repositorio,tabRepos,chaveRepos);\n\t\t\t \n\t\t\t //NÃO APAGAR-> usar para debugar\n//\t\t\t System.out.println(\"---Dados retirados do Bean carregado---\");\t\t\t \n//\t\t\t System.out.println(\"coluna=\"+registros.getColuna());\n//\t\t\t System.out.println(\"tipo=\"+registros.getTipo());\n//\t\t\t System.out.println(\"tamanho=\"+registros.getTamanho());\n//\t\t\t System.out.println(\"precisao=\"+registros.getPrecisao());\n//\t\t\t System.out.println(\"obrigatorio=\"+registros.getObrigatorio());\n//\t\t\t System.out.println(\"chave=\"+registros.getChave());\n//\t\t\t System.out.println(\"ini=\"+registros.getIni());\n//\t\t\t System.out.println(\"aliasColuna=\"+registros.getNomeColuna());\n//\t\t\t System.out.println(\"repositorio=\"+registros.getRepositorio());\n//\t\t\t System.out.println(\"tabRepos=\"+registros.getTabRepos());\n//\t\t\t System.out.println(\"chaveRepos=\"+registros.getChaveRepos());\n//\t\t\t System.out.println(\"\");\n\t\t\t \n\t\t\t // adiciona o Registro na coleção de Registros\n\t\t\t vRegistros.addElement( registros );\n\t\t }//for\n\n }//if \n }//for\n\n return vRegistros;\n }", "title": "" }, { "docid": "876f24b9995e1e95c321e57e3609fcfc", "score": "0.62291974", "text": "public static void readXML() {\n\n\t}", "title": "" }, { "docid": "e6d3be854e2f8a71b2b524dcb384de63", "score": "0.6186385", "text": "public void parserXml(String fileName) {\n\t\t try {\n\t DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance();\n\t DocumentBuilder db = dbf.newDocumentBuilder();\n\t Document document = db.parse(fileName);\n\t \n\t NodeList services = document.getChildNodes();\n\t \n\t for (int i = 0; i < services.getLength(); i++) {\n\t Node service = services.item(i);\n\t NodeList serviceInfo = service.getChildNodes();\n\t \n\t for (int j = 1; j < serviceInfo.getLength(); j+=2) {\n\t Node node = serviceInfo.item(j);\n\t NodeList serviceMeta = node.getChildNodes();\n\t \n\t for (int k = 1; k < serviceMeta.getLength()-2; k+=2) {\n\t System.out.println(serviceMeta.item(k).getNodeName()\n\t + \":\" + serviceMeta.item(k).getTextContent());\n\t }\n\t Node Sys = serviceMeta.item(serviceMeta.getLength()-2);\n\t NodeList Syslist = Sys.getChildNodes();\n\t System.out.println(Sys.getNodeName());\n\t for(int m=1;m<Syslist.getLength();m+=2)\n\t {\n\t \t System.out.println(Syslist.item(m).getNodeName()\n\t\t + \":\" + Syslist.item(m).getTextContent());\n\t }\n\t }\n\t }\n\t System.out.println(\"解析完毕\");\n\t } catch (FileNotFoundException e) {\n\t System.out.println(e.getMessage());\n\t } catch (ParserConfigurationException e) {\n\t System.out.println(e.getMessage());\n\t } catch (SAXException e) {\n\t System.out.println(e.getMessage());\n\t } catch (IOException e) {\n\t System.out.println(e.getMessage());\n\t }\n\t}", "title": "" }, { "docid": "e11200d6aaab276d317e7be8eb1c4e59", "score": "0.6156832", "text": "public static void nuevo_archivo_xml (Document doc){\n try {\n \n TransformerFactory tf = TransformerFactory.newInstance();\n Transformer archivo_nuevo = tf.newTransformer();\n\n archivo_nuevo.setOutputProperty( OutputKeys.INDENT, \"yes\" );\n archivo_nuevo.setOutputProperty(\"{http://xml.apache.org/xslt}indent-amount\", \"4\");\n archivo_nuevo.setOutputProperty( OutputKeys.OMIT_XML_DECLARATION, \"no\" );\n archivo_nuevo.setOutputProperty( OutputKeys.METHOD, \"xml\" );\n archivo_nuevo.setOutputProperty(\"http://www.oracle.com/xml/is-standalone\", \"yes\");\n\n Element root = doc.getDocumentElement();\n DOMSource origenDOM = new DOMSource(root);\n\n File nuevo_doc = new File(\"JAVA/src/main/java/UNIDAD8/EntregableUNIDAD8/Ejercicio2_ModificandoDOM/ejercicio2.xml\");\n StreamResult destinoDOM = new StreamResult(nuevo_doc);\n\n archivo_nuevo.transform(origenDOM, destinoDOM);\n\n } catch (TransformerConfigurationException e) {\n e.printStackTrace();\n } catch (TransformerException e) {\n e.printStackTrace();\n }\n }", "title": "" }, { "docid": "d048de202f31ee125e87ff93599c92d6", "score": "0.6141892", "text": "public LeerXML() {\n\t\t\n\t\tSystem.out.println(fileXML.getAbsoluteFile());\n\t\tif(fileXML.exists()==false) {\n\t\t\tSystem.out.println(\"No se encontro XML\");\n\t\t\t\n\t\t}\n\t\telse {\n\t\t\n\t\t\ttry {\n\t\t\t DocumentBuilderFactory dbFactory = DocumentBuilderFactory.newInstance();\n\t\t\t DocumentBuilder dBuilder = dbFactory.newDocumentBuilder();\n\t\t\t Document doc = dBuilder.parse(fileXML);\n\t\t\t \n\t\t\t // estos métodos podemos usarlos combinados para normalizar el archivo XML\n\t\t\t doc.getDocumentElement().normalize();\n\t\t\t \n\t\t\t // almacenamos los nodos para luego mostrar la\n\t\t\t // cantidad de ellos con el método getLength()\n\t\t\t NodeList nList = doc.getElementsByTagName(\"nota\");\n\t\t\t System.out.println(\"Número de notas: \" + nList.getLength());\n\t\t\t \n\t\t\t for(int temp = 0; temp < nList.getLength(); temp++) {\n\t\t\t\t Node nNode = nList.item(temp);\n\n\t\t\t\t if(nNode.getNodeType() == Node.ELEMENT_NODE) {\n\t\t\t\t Element eElement = (Element) nNode;\n\t\t\t\t //System.out.println(\"Nota: \"+eElement.getAttribute(\"nota\"));\n\t\t\t\t System.out.println(\"Nombre: \"+eElement.getElementsByTagName(\"nombre\").item(0).getTextContent());\n\t\t\t\t System.out.println(\"email: \"+eElement.getElementsByTagName(\"emailDireccion\").item(0).getTextContent());\n\t\t\t\t }\n\t\t\t }\n\t\t\t\t\n\t\t\t}catch(Exception excp) {\n\t\t\t\texcp.printStackTrace();\n\t\t\t}\n\t\t}//fin else\n\t}", "title": "" }, { "docid": "c3bc1c5b4ecb2484c81ba8cf48c8cfca", "score": "0.6108954", "text": "private NavigationDataSet parsearArchivo(InputStream archivo) throws ParserConfigurationException, SAXException, IOException {\n SAXParserFactory factory = SAXParserFactory.newInstance(); \n // crea un parser\n SAXParser parser = factory.newSAXParser(); \n // crea un lector del parser \n XMLReader xmlreader = parser.getXMLReader(); \n // instancia un manejador de la navegacion del parseo // DECIDE COMO TRATAR LOS TAGS XML \n NavigationSaxHandler navSaxHandler = new NavigationSaxHandler(); \n // le asigna el manejador al lector xml\n xmlreader.setContentHandler(navSaxHandler); \n // toma el KML de la URL pasada\n InputSource is = new InputSource(archivo); \n // ACA SE PARSEA EL KML \n xmlreader.parse(is); \n // Retorna los datos generados del parseo en un DATASET\n NavigationDataSet ds = navSaxHandler.getParsedData();\n\t\treturn ds;\n\t}", "title": "" }, { "docid": "daba8d79deccd77d50277d448928744d", "score": "0.60374624", "text": "public static void añadirJugadorAlaColeccion(Jugador jugador) throws ParserConfigurationException,\n TransformerException, IOException, SAXException {\n DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();\n DocumentBuilder builder = factory.newDocumentBuilder();\n Document document;\n\n // variable file para comprobar si el archivo existe o no\n File file = new File(\"jugadores.xml\");\n\n // compruebo si el archivo existe\n if (!file.exists()) {\n\n DOMImplementation implementation = builder.getDOMImplementation();\n\n // creo el document\n document = implementation.createDocument(null, \"Jugadores\", null);\n document.setXmlVersion(\"1.0\");\n\n } else {\n\n // leo jugadores.xml file\n document = builder.parse(\"jugadores.xml\");\n }\n\n\n //Creo el nodo raiz del documento xml\n Element raiz = document.getDocumentElement(); //nodo jugador\n\n\n // Creo los items Jugador y sus atributos\n Element itemElemento = document.createElement(\"Jugador\");\n itemElemento.setAttribute(\"codigoequipo\", jugador.getCodigoEquipo());\n itemElemento.setAttribute(\"dni\", jugador.getDni());\n\n // Creo el elemento nombre\n Element nombre = document.createElement(\"nombre\");\n Text text1 = document.createTextNode(jugador.getNombre()); //damos valor\n nombre.appendChild(text1);\n\n // creo el elemento apellido\n Element apellido = document.createElement(\"apellido\");\n Text text2 = document.createTextNode(jugador.getApellido()); //damos valor\n apellido.appendChild(text2);\n\n // creo el elemento tfno\n Element tfno = document.createElement(\"telefono\");\n Text text3 = document.createTextNode(jugador.getTfno()); //damos valor\n tfno.appendChild(text3);\n\n // creo el elemento fechanac\n Element fechanac = document.createElement(\"fechanacimiento\");\n Text text4 = document.createTextNode(jugador.getFechaNacimiento()); //damos valor\n fechanac.appendChild(text4);\n\n // creo el elemento demarcacion\n Element demarcacion = document.createElement(\"demarcacion\");\n Text text5 = document.createTextNode(jugador.getDemarcacion()); //damos valor\n demarcacion.appendChild(text5);\n\n\n // creo el elemento salario\n Element salario = document.createElement(\"salario\");\n Text text6 = document.createTextNode(jugador.getSalario()); //damos valor\n salario.appendChild(text6);\n\n\n // Añado los hijos al elemeto padre item\n itemElemento.appendChild(nombre);\n itemElemento.appendChild(apellido);\n itemElemento.appendChild(tfno);\n itemElemento.appendChild(fechanac);\n itemElemento.appendChild(demarcacion);\n itemElemento.appendChild(salario);\n\n // añado a la raiz del documento el elemento item con sus correspondientes hijos\n raiz.appendChild(itemElemento);\n\n\n //Se crea la fuente XML a partir del documento\n Source source = new DOMSource(document);\n\n //Se crea el resultado en el fichero Empleados.xml\n Result result = new StreamResult(new java.io.File(\"jugadores.xml\"));\n\n //Se obtiene un TransformerFactory\n Transformer transformer = TransformerFactory.newInstance().newTransformer();\n\n //Se realiza la transformación de documento a fichero\n transformer.transform(source, result);\n\n\n }", "title": "" }, { "docid": "c4d26aac0420ef0b0a76fce375872944", "score": "0.60347813", "text": "public XQueryFromLocalFiles() {\n\t}", "title": "" }, { "docid": "0607811c9f635a46dedc55014f7d7a36", "score": "0.6016996", "text": "public static void ActualizarXML(Platillo comida) throws ParserConfigurationException, TransformerConfigurationException, TransformerException, IOException, SAXException {\n String xmlFilePath=\"..\\\\RestaurantePOO\\\\XML\";\n DocumentBuilderFactory documentBuilderFactory = DocumentBuilderFactory.newInstance();\n DocumentBuilder documentBuilder = documentBuilderFactory.newDocumentBuilder();\n Document document = documentBuilder.parse(xmlFilePath);\n Element root = document.getDocumentElement();\n\n Element MenuItem=document.createElement(\"Platillo\");\n Attr nomb=document.createAttribute(\"Nombre\");\n nomb.setNodeValue(comida.getNombre());\n MenuItem.setAttributeNode(nomb);\n Element cod=document.createElement(\"Codigo\");\n cod.appendChild(document.createTextNode(comida.getCodigo()));\n MenuItem.appendChild(cod);\n Element desc=document.createElement(\"Descripcion\");\n desc.appendChild(document.createTextNode(comida.getDescripcion()));\n MenuItem.appendChild(desc);\n Element Rac=document.createElement(\"Racion\");\n Rac.appendChild(document.createTextNode(Integer.toString(comida.getRacion())));\n MenuItem.appendChild(Rac);\n Element Cal=document.createElement(\"Calorias\");\n Cal.appendChild(document.createTextNode(Float.toString(comida.getCalorias())));\n MenuItem.appendChild(Cal);\n Element Pre=document.createElement(\"Precio\");\n Pre.appendChild(document.createTextNode(Integer.toString(comida.getPrecio())));\n MenuItem.appendChild(Pre);\n root.appendChild(MenuItem);\n DOMSource source = new DOMSource(document);\n TransformerFactory transformerFactory = TransformerFactory.newInstance();\n Transformer transformer = transformerFactory.newTransformer();\n StreamResult result = new StreamResult(xmlFilePath);\n transformer.transform(source, result);\n }", "title": "" }, { "docid": "1de79ac2a4f25379867bb277d4177430", "score": "0.6005894", "text": "private void parseXML(File file, boolean clean) throws XmlPullParserException, IOException {\n\t\t// List of UPI files already installed\n\t\tfinal File upis[] = POIUtil.listFilesAsArray(new File(POIUtil.getRootDir() + POIUtil.DIR_SYGIC + \"/\" + getSharedPreferences(\"ar.com.alfersoft.poiman_preferences\", 0).getString(\"maps_dir\", \"\")), new FilenameFilter() {\n\t\t\tpublic boolean accept(File dir, String filename) {\n\t\t\t\treturn filename.toLowerCase().endsWith(\".upi\");\n\t\t\t}\n\t\t}, true);\n\t\t// Make a hash with the <UPI file name without extension, true>\n\t\tfinal HashMap<String, Boolean> upiNames = new HashMap<String, Boolean>();\n\t\tfinal boolean hasUpis = ((upis != null) && (upis.length > 0));\n\t\tif (hasUpis) {\n\t\t\tfor (File f : upis) {\n\t\t\t\tfinal String name = f.getName();\n\t\t\t\tfinal int len = name.length();\n\t\t\t\tif (len > 4) {\n\t\t\t\t\t// remove the .upi from the name and make it lower case\n\t\t\t\t\tupiNames.put(name.toLowerCase().substring(0, len - 4), true);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t// parse the XML\n\t\tfinal XmlPullParser parser = Xml.newPullParser();\n\t\tfinal FileInputStream in = new FileInputStream(file);\n\t\tparser.setInput(in, null);\n\t\tString name = null, map = null, group = null, descr = null, note = null, url = null, img = null, format = null;\n\t\tif (clean) {\n\t\t\tdataHelper.deleteAll();\n\t\t}\n\t\t// first get current database info as an object tree\n\t\tmaps = dataHelper.getMaps(true);\n\t\tfinal Resources res = getResources();\n\t\tfinal URL source = new URL(getSharedPreferences(\"ar.com.alfersoft.poiman_preferences\", 0).getString(\"poilist_preference\", res.getString(R.string.poilist_default_url)));\n\t\tfor (int event = parser.getEventType(); event != XmlPullParser.END_DOCUMENT; event = parser.next()) {\n\t\t\tswitch (event) {\n\t\t\tcase XmlPullParser.START_TAG:\n\t\t\t\tname = parser.getName();\n\t\t\t\tif (name.equals(\"poi\")) {\n\t\t\t\t\tmap = group = descr = note = url = img = \"\";\n\t\t\t\t} else if (name.equals(\"map\")) {\n\t\t\t\t\tmap = parser.nextText();\n\t\t\t\t} else if (name.equals(\"group\")) {\n\t\t\t\t\tgroup = parser.nextText();\n\t\t\t\t} else if (name.equals(\"description\")) {\n\t\t\t\t\tdescr = parser.nextText();\n\t\t\t\t} else if (name.equals(\"note\")) {\n\t\t\t\t\tnote = parser.nextText();\n\t\t\t\t} else if (name.equals(\"url\")) {\n\t\t\t\t\turl = parser.nextText();\n\t\t\t\t} else if (name.equals(\"image\")) {\n\t\t\t\t\timg = parser.nextText();\n\t\t\t\t} else if (name.equals(\"format\")) {\n\t\t\t\t\tformat = parser.nextText();\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase XmlPullParser.END_TAG:\n\t\t\t\tname = parser.getName();\n\t\t\t\tif (name.equals(\"poi\") && url != null && (url.toLowerCase().contains(\".ov2\") || (format != null && format.equalsIgnoreCase(\"ov2\")))) {\n\t\t\t\t\tif (map == null || map.equals(\"\")) {\n\t\t\t\t\t\tmap = res.getString(R.string.unnamed);\n\t\t\t\t\t}\n\t\t\t\t\tPOIMap mapObj = maps.get(map);\n\t\t\t\t\tif(mapObj == null) {\n\t\t\t\t\t\tmapObj = new POIMap(map);\n\t\t\t\t\t\tfinal long mapId = dataHelper.insertMap(mapObj);\n\t\t\t\t\t\tmapObj.id = mapId;\n\t\t\t\t\t\tmaps.put(map, mapObj);\n\t\t\t\t\t}\n\t\t\t\t\tPOIGroup groupObj = mapObj.groups.get(group);\n\t\t\t\t\tif(groupObj == null) {\n\t\t\t\t\t\tgroupObj = new POIGroup(group);\n\t\t\t\t\t\tfinal long groupId = dataHelper.insertGroup(mapObj.id, groupObj);\n\t\t\t\t\t\tgroupObj.id = groupId;\n\t\t\t\t\t\tmapObj.groups.put(group, groupObj);\n\t\t\t\t\t}\n\t\t\t\t\tURL imgURL, urlObj;\n\t\t\t\t\ttry {\n\t\t\t\t\t\tif (img.startsWith(\"/\")) {\n\t\t\t\t\t\t\timgURL = new URL(source.getProtocol(), source.getHost(), source.getPort(), img);\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\timgURL = new URL(img);\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif (url.startsWith(\"/\")) {\n\t\t\t\t\t\t\turlObj = new URL(source.getProtocol(), source.getHost(), source.getPort(), url);\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\turlObj = new URL(url);\n\t\t\t\t\t\t}\n\t\t\t\t\t\tfinal POI poiObj = groupObj.findPOIByURL(urlObj);\n\t\t\t\t\t\t// Check if the POI is already installed\n\t\t\t\t\t\tint selected = 0;\n\t\t\t\t\t\t// Deduct UPI name from OV2\n\t\t\t\t\t\tfinal String splitted[] = urlObj.getFile().split(\"/\");\n\t\t\t\t\t\tif (hasUpis && splitted != null && splitted.length > 0) {\n\t\t\t\t\t\t\tfinal String nameOv2 = splitted[splitted.length - 1].toLowerCase();\n\t\t\t\t\t\t\tString upi = \"\";\n\t\t\t\t\t\t\tif (nameOv2.toLowerCase().endsWith(\".ov2\")) {\n\t\t\t\t\t\t\t\tupi = nameOv2.substring(0, nameOv2.length() - 4);\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t// seems like the name is not on the URL, some providers\n\t\t\t\t\t\t\t\t// give the file name on the description field\n\t\t\t\t\t\t\t\tupi = descr.replaceAll(\" \", \"_\").toLowerCase();\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t// Check if the upi exists in the Sygic map directory\n\t\t\t\t\t\t\tfinal Boolean exists = upiNames.get(upi);\n\t\t\t\t\t\t\tif (exists != null) {\n\t\t\t\t\t\t\t\tselected = 1;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif(poiObj == null) {\n\t\t\t\t\t\t\t// Add the new POI\n\t\t\t\t\t\t\tPOI poi = new POI(mapObj.id, groupObj.id, descr, note, urlObj, imgURL, selected);\n\t\t\t\t\t\t\tfinal long poiId = dataHelper.insertPOI(poi);\n\t\t\t\t\t\t\tpoi.id = poiId;\n\t\t\t\t\t\t\tgroupObj.pois.add(poi);\n\t\t\t\t\t\t} else if(!poiObj.description.equalsIgnoreCase(descr) ||\n\t\t\t\t\t\t\t\t !poiObj.note.equalsIgnoreCase(note) ||\n\t\t\t\t\t\t\t\t !poiObj.image.equals(imgURL) ||\n\t\t\t\t\t\t\t\t poiObj.selected != selected ||\n\t\t\t\t\t\t\t\t poiObj.mapId != mapObj.id ||\n\t\t\t\t\t\t\t\t poiObj.groupId != groupObj.id) {\n\t\t\t\t\t\t\t// Something changed, update existing object\n\t\t\t\t\t\t\tpoiObj.mapId = mapObj.id;\n\t\t\t\t\t\t\tpoiObj.groupId = groupObj.id;\n\t\t\t\t\t\t\tpoiObj.description = descr;\n\t\t\t\t\t\t\tpoiObj.note = note;\n\t\t\t\t\t\t\tpoiObj.image = imgURL;\n\t\t\t\t\t\t\tpoiObj.selected = selected;\n\t\t\t\t\t\t\tpoiObj.prevState = selected;\n\t\t\t\t\t\t\t// Update database\n\t\t\t\t\t\t\tdataHelper.updatePOI(poiObj);\n\t\t\t\t\t\t}\n\t\t\t\t\t} catch(MalformedURLException e) {\n\t\t\t\t\t\tLog.e(\"POIMan\", \"Malformed URL -> \" + e.toString());\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\tin.close();\n\t}", "title": "" }, { "docid": "3ccb153c4bf8a61f824897cb3a6e1f9b", "score": "0.5968928", "text": "public List<Almacen> parseXMLtoList() {\n\t\tList<Almacen> lista = new ArrayList<Almacen>();\n\t\ttry {\n\n\t\t\tString[] aux;\n\t\t\taux = new String[3];\n\n\t\t\tDocumentBuilderFactory fabricaCreadorDocumento = DocumentBuilderFactory.newInstance();\n\t\t\tDocumentBuilder creadorDocumento = fabricaCreadorDocumento.newDocumentBuilder();\n\t\t\tDocument documento = creadorDocumento.parse(ARCHIVO);\n\n\t\t\tElement raiz = documento.getDocumentElement();\n\n\t\t\t// Obtener la lista de nodos que tienen etiqueta \"reserva\"\n\t\t\tNodeList listaEmpleados = raiz.getElementsByTagName(\"almacen\");\n\t\t\t// Recorrer la lista de reserva\n\n\t\t\tfor (int i = 0; i < listaEmpleados.getLength(); i++) {\n\n\t\t\t\tNode empleado = listaEmpleados.item(i);\n\n\t\t\t\tNodeList datosEmpleado = empleado.getChildNodes();\n\n\t\t\t\tfor (int j = 0; j < datosEmpleado.getLength(); j++) {\n\t\t\t\t\t// Obtener de la lista de datos un dato tras otro\n\t\t\t\t\tNode dato = datosEmpleado.item(j);\n\n\t\t\t\t\t// Comprobar que el dato se trata de un nodo de tipo Element\n\t\t\t\t\tif (dato.getNodeType() == Node.ELEMENT_NODE) {\n\n\t\t\t\t\t\tNode datoContenido = dato.getFirstChild();\n\t\t\t\t\t\t// Mostrar el valor contenido en el nodo que debe ser de tipo Text\n\t\t\t\t\t\tif (datoContenido != null && datoContenido.getNodeType() == Node.TEXT_NODE)\n\n\t\t\t\t\t\t\taux[j] = datoContenido.getNodeValue();\n\t\t\t\t\t}\n\t\t\t\t}\n\n\n\t\t\t\tAlmacen a = new Almacen(Integer.parseInt(aux[0]), \n\t\t\t\t\t\tInteger.parseInt(aux[1]), \n\t\t\t\t\t\tInteger.parseInt(aux[2]));\n\n\t\t\t\tlista.add(a);\n\n\t\t\t}\n\n\t\t} catch (Exception ex) {\n\n\t\t\t\n\t\t}\n\n\t\tFile archivo = new File(ARCHIVO);\n\t\tarchivo.delete();\n\t\treturn lista;\n\t}", "title": "" }, { "docid": "0599377c7d9509ca7a610a05e954250c", "score": "0.5956535", "text": "public static void escribirXML(ArrayList<Contacto> contactos) {\n\t\ttry {\n\t\t\t// Preparativos\n\t\t\tDocumentBuilderFactory f = DocumentBuilderFactory.newInstance();\n\t\t\tDocumentBuilder b = f.newDocumentBuilder();\n\n\t\t\tDOMImplementation i = b.getDOMImplementation();\n\t\t\t// Raiz <Contactos>\n\t\t\tDocument documento = i.createDocument(null, \"Contactos\", null);\n\t\t\t// <xml version=\"1.0\">\n\t\t\tdocumento.setXmlVersion(\"1.0\");\n\t\t\t// Por cada contacto\n\t\t\tfor (int j = 0; j < contactos.size(); j++) {\n\t\t\t\t// <persona>\n\t\t\t\tElement nodo = documento.createElement(\"persona\");\n\t\t\t\tdocumento.getDocumentElement().appendChild(nodo);\n\t\t\t\t// <nombreHijo>contenidoHijo\n\t\t\t\tcrearHijosNodo(\"nombre\", contactos.get(j).getNombre(), nodo, documento);\n\t\t\t\tcrearHijosNodo(\"apellido\", contactos.get(j).getApellido(), nodo, documento);\n\t\t\t\tcrearHijosNodo(\"email\", contactos.get(j).getEmail(), nodo, documento);\n\t\t\t\tcrearHijosNodo(\"teléfono\", contactos.get(j).getTelefono(), nodo, documento);\n\t\t\t\t// </nombreHijo>\n\t\t\t\t// </persona>\n\t\t\t}\n\t\t\t// </Contactos>\n\n\t\t\t// Creacion del fichero\n\t\t\tSource s = new DOMSource(documento);\n\t\t\tResult result = new StreamResult(new java.io.File(urlXML));\n\t\t\tTransformer tr = TransformerFactory.newInstance().newTransformer();\n\t\t\ttr.transform(s, result);\n\n\t\t} catch (Exception e) {\n\t\t\tSystem.out.println(\"Error en la escritura del fichero XML\");\n\t\t\te.printStackTrace();\n\t\t}\n\t\tSystem.out.println(\"Fichero XML creado con éxito.\");\n\n\t}", "title": "" }, { "docid": "9c43c6730140c2f51afa6066ed969218", "score": "0.5927138", "text": "private void sendXMLFileDataToEngine() {\n \tString content = null;\n\t try {\n\t \tcontent = new String(Files.readAllBytes(Paths.get(\"data/legoo.xml\")));\n//\t \tcontent = new String(Files.readAllBytes(Paths.get(\"data/\" + myLoadXML)));\n\n\t }\n\t catch (IOException e) {\n\t }\n\t // launchEngine(content);\n //String gameFile = gameEditorController.getGameFile();\n Image gameCoverImage = gameEditorController.getGameCoverImage();\n // addNewGameFile(title,gameFile,gameCoverImage);\n // launchEngine(gameFile);\n }", "title": "" }, { "docid": "3925aca9ec14e33d70a27ddf25c8c5c2", "score": "0.58769584", "text": "public void parseXml(){\r\n \ttry {\r\n\t File inputFile = new File(osmFile);\r\n\t SAXReader reader = new SAXReader();\r\n\t Document document = reader.read( inputFile );\r\n\t \r\n\t Element root = document.getRootElement();\r\n\t System.out.println(\"Root element :\" + root.getName());\r\n\t \r\n\t List<Node> ways = document.selectNodes(\"/osm/way\");\r\n\t \r\n\t parseWays(ways);\r\n\t \r\n \t} catch (DocumentException e) {\r\n e.printStackTrace();\r\n }//End try catch\r\n\r\n }", "title": "" }, { "docid": "1b4338663348c21a78fd94a80d234734", "score": "0.5855963", "text": "@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\t\n\t\t\t\ttry\n\t\t\t\t{\t\t\t\t\n\t\t\t\t\t\n\t\t\t\tXmlSerializer ser = Xml.newSerializer();\n\t\t\t\t\n\t\t\t\t\n\t\t\t\tFile myFile = new File(Environment.getExternalStorageDirectory().getAbsolutePath(), \"ArchivoPrueba.xml\");\n\t\t\t\t\n\t\t\t\tOutputStreamWriter osw = new OutputStreamWriter(new FileOutputStream(myFile));\n\t\t\t\t\n\t\t\t\t//CREO EL ARCHIVO XML\n\t\t\t\tDocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();\n\t DocumentBuilder builder = factory.newDocumentBuilder();\n\t\t\t\tDOMImplementation implementation = builder.getDOMImplementation();\n\t\t\t\tDocument document = implementation.createDocument(null, \"MisProductos\", null);\n\t document.setXmlVersion(\"1.0\");\n\t\t\t\t \t\t\t\n\t\t\t\t//Main Node\n\t Element raiz = document.getDocumentElement();\n\t \n\t //Item Node\n Element itemNode = document.createElement(\"ITEM\"); \n \n //Key Node\n \n Element keyNode = document.createElement(\"Productos\"); \n Text nodeKeyValue = document.createTextNode(\"prod 1\");\n keyNode.appendChild(nodeKeyValue); \n \n //ASIGNO EL VALOR DEL NODO AL RAIZ\n itemNode.appendChild(keyNode);\n\t\t\t\t\n\t\t\t\t//Source source = new DOMSource(document);\n\t\t\t\t//FIN ARCHIVO XML\n\t\t\t\t\n\t\t\t\tosw.write(document.toString()); //Escribo en el archivo creado\n\t\t\t\t\n\t osw.flush();\n\t osw.close();\n\t\t\t\t\n\t\t\t\t\n\t\t\t\tContext context = getApplicationContext();\n\t\t\t\tCharSequence texto = \"Hola Moccen\";\n\t\t\t\tToast.makeText(context, document.toString(), Toast.LENGTH_SHORT).show();\n\t\t\t\t}\n\t\t\t\tcatch(Exception ex)\n\t\t\t\t{\t\t\t\t\n\t\t\t\t\tContext context = getApplicationContext();\n\t\t\t\t\tCharSequence texto = \"Error al guardar el xml\";\n\t\t\t\t\tToast.makeText(context, texto, Toast.LENGTH_SHORT).show();\n\t\t\t\t}\n\t\t\t}", "title": "" }, { "docid": "893271db1de22f113228f69496eb1c69", "score": "0.5848076", "text": "public Xml_files() throws DocumentException {\n\n\t\tf = new File(System_parameters.get_db_path(0));\n\t\td = reader.read(f);\n\t\troot = d.getRootElement();\n\t}", "title": "" }, { "docid": "e449e8bcfff8022a680f83fea75f9516", "score": "0.58459026", "text": "@Override\r\n public void parse() {\r\n\r\n for (File fXmlFile : listOfFiles) {\r\n try {\r\n\r\n DocumentBuilderFactory dbFactory = DocumentBuilderFactory.newInstance();\r\n DocumentBuilder dBuilder = dbFactory.newDocumentBuilder();\r\n Document doc = dBuilder.parse(fXmlFile);\r\n\r\n //optional, but recommended\r\n //read this - http://stackoverflow.com/questions/13786607/normalization-in-dom-parsing-with-java-how-does-it-work\r\n doc.getDocumentElement().normalize();\r\n\r\n // Create a NodeList using Element nodes in the XML file\r\n NodeList nList = doc.getElementsByTagName(\"element\");\r\n\r\n for (int temp = 0; temp < nList.getLength(); temp++) {\r\n\r\n Node nNode = nList.item(temp);\r\n\r\n if (nNode.getNodeType() == Node.ELEMENT_NODE) {\r\n\r\n Element eElement = (Element) nNode;\r\n\r\n // Split nodeId in to parts\r\n String nodeId = eElement.getElementsByTagName(\"NodeID\").item(0).getTextContent();\r\n String[] nodeIdParts = nodeId.split(idSeperator);// x-x-x-x-x-x\r\n String nodeLayer = nodeIdParts[0];\r\n\r\n // Split parent nodeId in to parts\r\n String parentId = eElement.getElementsByTagName(\"ParentID\").item(0).getTextContent();\r\n String[] parentIdParts = parentId.split(idSeperator);\r\n String parentLayer = parentIdParts[0];\r\n\r\n String value = eElement.getElementsByTagName(\"value\").item(0).getTextContent();\r\n // write them in a string\r\n if (!value.isEmpty()) {\r\n String[] images = value.split(idSeperator);\r\n if (images.length > 1) {\r\n value = \"\";\r\n for (int i = 0; i < images.length; i++) {\r\n value += (imagesPath + images[i] + \".jpg\");\r\n\r\n if (i != images.length - 1) {\r\n value += \":::\";\r\n }\r\n }\r\n\r\n } else {\r\n value = imagesPath + value + \".jpg\";\r\n }\r\n }\r\n // Split label in to parts\r\n// String label = eElement.getElementsByTagName(\"label\").item(0).getTextContent();\r\n// String[] labelParts = label.split(idSeperator);\r\n String[] labelParts = {\"0\", \"0\"};\r\n\r\n // get x,y from attributes of eElement\r\n// labelParts[0] = eElement.getAttribute(\"x\");\r\n// labelParts[1] = eElement.getAttribute(\"y\");\r\n\r\n // Generate random values\r\n labelParts[0] = String.valueOf((randomX.nextInt(20) - 10));\r\n labelParts[1] = String.valueOf((randomY.nextInt(20) - 10));\r\n\r\n\r\n if (layers.get(nodeLayer) != null)// if the layer is already exists\r\n {\r\n\r\n ArrayList<Vertex> nodeList = layers.get(nodeIdParts[0]);\r\n nodeList.add(new Vertex(nodeId, nodeIdParts[0], labelParts[0], labelParts[1], value));//String id, String layer, String x, String y\r\n\r\n } else {\r\n\r\n ArrayList<Vertex> nodeList = new ArrayList<Vertex>();\r\n nodeList.add(new Vertex(nodeId, nodeIdParts[0], labelParts[0], labelParts[1], value));//String id, String layer, String x, String y\r\n\r\n // adding to layer hashlist\r\n layers.put(nodeLayer, nodeList);//nodeIdParts[1] has the layer id\r\n\r\n }\r\n if (!parentId.equals(\"\")) // adding to links list if parent id is mentioned\r\n {\r\n links.add(new Edge(nodeId, nodeLayer, parentId, parentLayer));//nodeId, nodeLayer, parentId, parentLayer\r\n }\r\n\r\n }\r\n }\r\n } catch (Exception e) {\r\n System.out.println(\"Error while parsing xml file !!!\" + e.getMessage());\r\n e.printStackTrace();\r\n System.out.println(fXmlFile.getName());\r\n }\r\n } \r\n }", "title": "" }, { "docid": "d86fccad8b83a3db936e180747753d71", "score": "0.5809483", "text": "public void parseFile(String chemin) {\n try {\n XMLReader xr = XMLReaderFactory.createXMLReader();\n CarburantsParser SaxRead = new CarburantsParser();\n\n xr.setContentHandler(SaxRead);\n xr.parse(chemin);\n\n this.listOfLists = SaxRead.getListOfLists();\n\n Log.d(TAG, \"Parsing Ok\");\n\n } catch (Exception e) {\n Log.e(TAG, \"Problème lors du parsing : \" + e);\n }\n }", "title": "" }, { "docid": "6c5a22496334d41251eabd02b423929a", "score": "0.57996297", "text": "public static void main(String[] args) throws IOException {\n File fichero = new File(\"binarioNoSerializable.dat\");\n ListaContactos lista = new ListaContactos();\n FileInputStream fileIn;\n DataInputStream lectorContacto;\n Contacto contacto;\n XStream xstream = new XStream();\n\n fileIn = new FileInputStream(fichero);\n lectorContacto = new DataInputStream(fileIn);\n\n try {\n while (true) {\n contacto = new Contacto(lectorContacto.readUTF(), lectorContacto.readUTF(),lectorContacto.readUTF(), lectorContacto.readInt(), lectorContacto.readBoolean(), lectorContacto.readFloat());\n lista.agregarContacto(contacto);\n }\n\n } catch (EOFException e) {\n\n }\n \n lectorContacto.close();\n\n xstream.alias(\"Contactos\", ListaContactos.class);\n xstream.alias(\"Contacto\", Contacto.class);\n xstream.addImplicitCollection(ListaContactos.class, \"lista\");\n xstream.toXML(lista, new FileOutputStream(\"ContactosNoSerializable.xml\"));\n\n fileIn.close();\n\n }", "title": "" }, { "docid": "6b4bfcbed3999661bba6c622295111e2", "score": "0.5772198", "text": "public static void main(String[] args) throws JDOMException, IOException {\n\t\tString input = \"C:/Users/rodenhausen/Downloads/141020-FoC-Tiliaceae/141020-FoC-Tiliaceae\";\n\t\tString output = \"C:/Users/rodenhausen/Downloads/141020-FoC-Tiliaceae/out\";\n\t\t\n\t\tFile in = new File(input);\n\t\tSAXBuilder sax = new SAXBuilder();\n\t\tXmlNamespaceManager nsmgr = new XmlNamespaceManager();\n\t\tXPathFactory xpfac = XPathFactory.instance();\n\t\tNamespace bioNamespace = Namespace.getNamespace(\"bio\", Configuration.targetNamespace);\n\t\t\n\t\tFile out = new File(output);\n\t\tout.mkdirs();\n\t\t\n\t\tfor(File file : in.listFiles()) {\n\t\t\tDocument doc = sax.build(file);\n\t\t\t\n\t\t\t/*Element root = doc.getRootElement();\n\t\t\troot.getChild(\"meta\").getChild(\"source\").getChild(\"author\").setText(\"unknown\");\n\t\t\troot.getChild(\"meta\").getChild(\"source\").getChild(\"title\").setText(\"unknown\");\n\t\t\troot.getChild(\"meta\").getChild(\"source\").getChild(\"date\").setText(\"unknown\");\n\t\t\tfor(Element processor : root.getChild(\"meta\").getChild(\"processed_by\").getChildren()) {\n\t\t\t\tif(processor.getChild(\"date\").getText().isEmpty())\n\t\t\t\t\tprocessor.getChild(\"date\").setText(\"unknown\");\n\t\t\t\tif(processor.getChild(\"operator\").getText().isEmpty())\n\t\t\t\t\tprocessor.getChild(\"operator\").setText(\"unknown\");\n\t\t\t}*/\n\t\t\t\n\t\t\t/*nsmgr.setXmlSchema(doc, FileTypeEnum.TAXON_DESCRIPTION);\n\t\t\t\n\t\t\tXPathExpression<Element> xp = xpfac.compile(\"/bio:treatment/taxon_identification\", \n\t\t\t\t\tFilters.element(), null, bioNamespace);\n\t\t\t\n\t\t\tMap<Rank, RankData> rankDataMap = new HashMap<Rank, RankData>();\n\t\t\tSet<Element> detachables = new HashSet<Element>();\n\t\t\tfor (Element element : xp.evaluate(doc)) {\n\t\t\t\tfor(Element child : element.getChildren()) {\n\t\t\t\t\tif(child.getName().endsWith(\"_name\")) {\n\t\t\t\t\t\tRank rank = Rank.valueOf(child.getName().split(\"_name\")[0].toUpperCase());\n\t\t\t\t\t\tif(!rankDataMap.containsKey(rank))\n\t\t\t\t\t\t\trankDataMap.put(rank, new RankData(rank, child.getValue()));\n\t\t\t\t\t\trankDataMap.get(rank).setName(child.getValue());\n\t\t\t\t\t\tdetachables.add(child);\n\t\t\t\t\t}\n\t\t\t\t\tif(child.getName().endsWith(\"_authority\")) {\n\t\t\t\t\t\tRank rank = Rank.valueOf(child.getName().split(\"_authority\")[0].toUpperCase());\n\t\t\t\t\t\tif(!rankDataMap.containsKey(rank))\n\t\t\t\t\t\t\trankDataMap.put(rank, new RankData(rank, null));\n\t\t\t\t\t\trankDataMap.get(rank).setAuthor(child.getValue());\n\t\t\t\t\t\tdetachables.add(child);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tfor(Element element : detachables) \n\t\t\t\telement.detach();\n\t\t\t\n\t\t\tfor (Element element : xp.evaluate(doc)) {\n\t\t\t\tfor(Rank rank : rankDataMap.keySet()) {\n\t\t\t\t\tElement taxonName = new Element(\"taxon_name\");\n\t\t\t\t\ttaxonName.setAttribute(\"rank\", rank.name().toLowerCase());\n\t\t\t\t\ttaxonName.setText(rankDataMap.get(rank).getName());\n\t\t\t\t\tif(rankDataMap.get(rank).getAuthor() != null && \n\t\t\t\t\t\t\t!rankDataMap.get(rank).getAuthor().isEmpty()) {\n\t\t\t\t\t\ttaxonName.setAttribute(\"authority\", rankDataMap.get(rank).getAuthor());\n\t\t\t\t\t}\n\t\t\t\t\telement.addContent(0, taxonName);\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\txp = xpfac.compile(\"/bio:treatment/description\", \n\t\t\t\t\tFilters.element(), null, bioNamespace);\n\t\t\tfor(Element element : xp.evaluate(doc)) {\n\t\t\t\tif(element.getValue().trim().isEmpty()) {\n\t\t\t\t\telement.detach();\n\t\t\t\t}\n\t\t\t}*/\n\t\t\t\n\t\t\tFile outFile = new File(out, file.getName());\n\t\t\tXMLOutputter xout = new XMLOutputter(Format.getPrettyFormat());\n\t\t\tFileOutputStream fos = new FileOutputStream(outFile);\n\t\t\txout.output(doc, fos);\n\t\t\tfos.flush();\n\t\t\tfos.close();\n\t\t}\n\t}", "title": "" }, { "docid": "10495c142698f580210e38c73a730707", "score": "0.5750017", "text": "public static void BorrarMateria(String materia) \n throws ParserConfigurationException, SAXException, IOException, TransformerException{\n \n String xmlFile=Util.MATERIA_XML+Util.ARCHIVO_XML;\n DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance();\n DocumentBuilder db = dbf.newDocumentBuilder();\n Document document = db.parse(new File(Util.ARCHIVOS_XML_PATH+xmlFile)); \n Element root=document.getDocumentElement();\n NodeList lsNode=root.getElementsByTagName(Util.MATERIA_CHILD);\n Node elemtn;\n String xmlLeccion;\n for(int i=0;i<lsNode.getLength();i++){\n\n elemtn=lsNode.item(i).getFirstChild();\n if(materia.equals(elemtn.getTextContent().trim())){\n xmlLeccion=elemtn.getParentNode().getAttributes().getNamedItem(Util.XML_ATRIBUTE).getTextContent();\n elemtn=lsNode.item(i);\n BorrarArchivo(Util.ARCHIVOS_XML_PATH+xmlLeccion);\n elemtn.getParentNode().removeChild(elemtn);\n break;\n }\n }\n document.normalize(); \n CrearXML.CrearXML(document,xmlFile);\n\n }", "title": "" }, { "docid": "c95ac96fedfd824e47b2d79b43f1a651", "score": "0.5729833", "text": "HandlingXML()\r\n\t{\r\n\t\tindexXml=0;\r\n\t\tisUpdate=false;\r\n\t\twhile(isUpdate==false)\r\n\t\t{ \r\n\t\t\tconectXmlFile();\r\n\t\t\tif(indexXml==2)\r\n\t\t\t{\r\n\t\t\t\tSystem.out.println(\"could not open web\");\r\n\t\t\t\tif(isUpdate==false)\r\n\t\t\t\t{\r\n\t\t\t\t\tSystem.out.println(\"could not open information from xml file :\"+xml[indexXml]);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\telse if(isUpdate==false)\r\n\t\t\t{\r\n\t\t\t\tindexXml++;\r\n\t\t\t\tSystem.out.println(\"could not open information from web:\"+xml[indexXml]);\r\n\t\t\t}\r\n\t\t}\r\n\t\ttry \r\n\t\t{\r\n\t\t\tsaveUrl();\r\n\t\t\tsaveRateCurrency();\r\n\t\t} catch (IOException e) \r\n\t\t{\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t}\t\r\n\t\t\r\n\t}", "title": "" }, { "docid": "ebd3487af6f0240b6e0dc6c68be968be", "score": "0.5728153", "text": "private void parseAndLoadXML(String content) throws DocumentException {\n logger.trace(\"Parsing XML file\");\n Document doc = DocumentHelper.parseText(content);\n //root element = <adapters>\n Element rootElement = doc.getRootElement();\n for(Iterator<Element> it = rootElement.elementIterator(\"adapter\"); it.hasNext();){\n Element adapterElement = it.next();\n logger.trace(\"XML -> Parsing adapter: \" + adapterElement.attribute(\"id\").getValue());\n AdapterController tmpAdapterController = null;\n try{\n //parse adapter info\n logger.trace(\"XML -> Parsing adapter info\");\n Integer adapterId = Integer.valueOf(adapterElement.attribute(\"id\").getValue());\n if(Utilities.isAdapterIdTaken(getAdapterControllers(),adapterId)) throw new IllegalArgumentException(\"Adapter with id \\\"\" + adapterId + \"\\\" already exist!\");\n String adapterName = adapterElement.attribute(\"name\").getValue();\n Double adapterProtocolVersion = Double.valueOf(adapterElement.attribute(\"protocol\").getValue());\n Double adapterFirmware = Double.valueOf(adapterElement.attributeValue(\"firmware\"));\n if(adapterId == null || adapterName == null || adapterProtocolVersion == null ||adapterFirmware == null)\n throw new NullPointerException(\"Adapter info missing\");\n\n tmpAdapterController = new AdapterController();\n Protocol.Version protocolVersion = ProtocolFactory.getVersion(adapterProtocolVersion);\n if(protocolVersion == null)\n throw new NullPointerException(\"Unknown protocol version -> \" + adapterProtocolVersion);\n //CREATE ADAPTER\n tmpAdapterController.createAdapter(adapterName,false,adapterId,false, protocolVersion ,adapterFirmware);\n logger.trace(\"XML -> Adapter info OK -> ID: \" + adapterId + \" Name: \" + adapterName + \" Prot.: \" + adapterProtocolVersion);\n //parse server info\n logger.trace(\"XML -> Parsing server info\");\n Element serverElement = adapterElement.element(\"server\");\n String serverName = serverElement.attribute(\"name\").getValue();\n String serverIp = serverElement.attribute(\"ip\").getValue();\n Integer serverPort = Integer.valueOf(serverElement.attribute(\"port\").getValue());\n String serverDb = serverElement.attribute(\"db\").getValue();\n if(serverName == null || serverIp == null || serverPort == null || serverDb == null)\n throw new NullPointerException(\"Adapter info missing\");\n //CREATE SERVER\n tmpAdapterController.createServer(false,serverName,serverIp,serverPort,serverDb);\n logger.trace(\"XML -> Server info OK -> Name: \" + serverName + \" IP: \" + serverIp + \" Port: \" + serverPort + \" DB: \" + serverDb);\n\n //parse sensors\n logger.trace(\"XML -> Parsing sensors\");\n Element sensorsElement = adapterElement.element(\"sensors\");\n for(Iterator<Element> its = sensorsElement.elementIterator(\"sensor\");its.hasNext();) {\n Element sensorElement = its.next();\n logger.trace(\"XML -> Parsing sensor -> \" + sensorElement.attribute(\"id\").getValue());\n Integer sensorId = Integer.valueOf(sensorElement.attributeValue(\"id\"));\n String sensorName = sensorElement.elementText(\"name\");\n Integer sensorRefresh = Integer.valueOf(sensorElement.elementText(\"refresh\"));\n Integer sensorSignal = Integer.valueOf(sensorElement.elementText(\"signal\"));\n Integer sensorBattery = Integer.valueOf(sensorElement.elementText(\"battery\"));\n SensorIcon sensorIcon = SensorIconFactory.getByName(sensorElement.elementText(\"icon\"));\n String sensorColor = sensorElement.elementText(\"header_color\");\n if (sensorId == null || sensorName == null || sensorRefresh == null || sensorSignal == null || sensorBattery == null || sensorIcon == null || sensorColor == null) {\n throw new NullPointerException(\"Sensor info missing\");\n }\n Element valuesElement = sensorElement.element(\"values\");\n ObservableList<Value> values = FXCollections.observableArrayList();\n for (Iterator<Element> itv = valuesElement.elementIterator(\"value\"); itv.hasNext(); ) {\n Element valueElement = itv.next();\n logger.trace(\"XML -> Parsing sensor -> \" + sensorId + \" Parsing value -> \" + valueElement.attributeValue(\"type\"));\n String valueType = valueElement.attributeValue(\"type\");\n String valueName = valueElement.attributeValue(\"name\");\n //TODO fix forcefull history storage disabling\n Boolean valueStoreHistory = false;\n //Boolean valueStoreHistory = Boolean.valueOf(valueElement.attributeValue(\"store_history\"));\n Boolean valueGenerateValue = Boolean.valueOf(valueElement.attributeValue(\"generate_value\"));\n String valueInitialValue = valueElement.elementText(\"initial_value\");\n if(valueType == null || valueName == null || valueStoreHistory == null || valueGenerateValue == null || valueInitialValue == null){\n throw new NullPointerException(\"Value missing info\");\n }\n //CREATE VALUE\n Value tmpValue = ValueFactory.buildValue(valueType);\n tmpValue.setName(valueName);\n tmpValue.setStoreHistory(valueStoreHistory);\n tmpValue.setGenerateValue(valueGenerateValue);\n tmpValue.setInitialValue(tmpValue.fromStringToValueType(valueInitialValue));\n tmpValue.setValue(tmpValue.fromStringToValueType(valueInitialValue));\n Element generatorElement = null;\n try{\n generatorElement = valueElement.element(\"generator\");\n }catch (NullPointerException e){\n //it is OK, if generator element doesn't exist\n }\n if(generatorElement != null){\n String generatorType = generatorElement.attributeValue(\"type\");\n Value.Generator generator = ValueFactory.generatorByName(generatorType);\n if(generator == null) throw new NullPointerException(\"Unknown generator type -> \" + generatorType);\n ((HasGenerator)tmpValue).setGeneratorType(generator);\n switch (generator) {\n case NORMAL_DISTRIBUTION:\n ((HasNormalDistribution)tmpValue).setMax(Double.valueOf(generatorElement.element(\"params\").attributeValue(\"max\")));\n ((HasNormalDistribution)tmpValue).setMin(Double.valueOf(generatorElement.element(\"params\").attributeValue(\"min\")));\n ((HasNormalDistribution)tmpValue).setDev(Double.valueOf(generatorElement.element(\"params\").attributeValue(\"dev\")));\n ((HasNormalDistribution)tmpValue).setAvg(Double.valueOf(generatorElement.element(\"params\").attributeValue(\"avg\")));\n break;\n case LINEAR_DISTRIBUTION:\n ((HasLinearDistribution)tmpValue).setMax(Double.valueOf(generatorElement.element(\"params\").attributeValue(\"max\")));\n ((HasLinearDistribution)tmpValue).setMin(Double.valueOf(generatorElement.element(\"params\").attributeValue(\"min\")));\n ((HasLinearDistribution)tmpValue).setStep(Double.valueOf(generatorElement.element(\"params\").attributeValue(\"step\")));\n break;\n case BOOLEAN_RANDOM:\n ((HasBooleanRandom)tmpValue).setProbability((Double.valueOf(generatorElement.element(\"params\").attributeValue(\"probability\"))));\n break;\n }\n Long generatorSeed = Long.valueOf(generatorElement.attributeValue(\"seed\"));\n tmpValue.setGeneratorSeed(generatorSeed);\n }\n values.add(tmpValue);\n }\n //CREATE SENSOR\n SensorController tmpSensor =tmpAdapterController.createSensor(values,false,sensorId,sensorName,sensorBattery,sensorSignal,sensorRefresh,tmpAdapterController.getAdapter().getProtocol());\n tmpAdapterController.createSensorPanel(view.getSensorPanelContainer(),sensorColor,sensorIcon,tmpSensor);\n //tmpAdapterController.createSensor(view.getSensorPanelContainer(),sensorColor,sensorIcon,values,false,sensorId,sensorName,sensorBattery,sensorSignal,sensorRefresh,tmpAdapterController.getAdapter().getProtocol());\n }\n }catch (LoadException e){\n throw new DocumentException(\"Wrong format of file. Cannot create sensor \" + adapterElement.attribute(\"id\").getValue(),e);\n }catch (NumberFormatException e){\n throw new DocumentException(\"Wrong format of file. Error on in content of adapter \" + adapterElement.attribute(\"id\").getValue(),e);\n }catch (NullPointerException e){\n throw new DocumentException(\"Wrong format of file. Cannot find one or more required elements. Error on in content of adapter \" + adapterElement.attribute(\"id\").getValue(),e);\n }catch (IllegalArgumentException e ){\n Utilities.showException(logger, \"Adapter id already exist\", e, false, null);\n }\n if(tmpAdapterController != null && tmpAdapterController.getAdapter() != null){\n //CREATE LOG\n tmpAdapterController.createLog(getView().getLogTabPane());\n //CREATE SCHEDULER\n tmpAdapterController.createScheduler(Scheduler.Type.DETAILED);\n tmpAdapterController.setTrackServerResponse(true);\n tmpAdapterController.setDumpServerResponse(true);\n tmpAdapterController.bindSchedulerProcess(tmpAdapterController.getAdapter(),tmpAdapterController.getScheduler());\n tmpAdapterController.bindRegisterMessage();\n //CREATE ADAPTER BUTTON\n addAdapterBtn(tmpAdapterController);\n //ADD ADAPTER TO OTHERS\n getAdapterControllersList().add(tmpAdapterController);\n try{\n tmpAdapterController.getLog().setBuffered(true,\"adapter_emu_\" + String.valueOf(tmpAdapterController.getAdapter().getId())+\"_\",AddAdapterDialogPresenter.DEFAULT_LOG_PATH);\n tmpAdapterController.getLog().writeAdapterLogHeaderToBuffer();\n }catch (IOException e){\n throw new DocumentException(\"Cannot buffer adapter \" + adapterElement.attribute(\"id\").getValue() + \" . Failed to create .tmp file!\",e);\n }\n //create server receiver\n tmpAdapterController.createServerReceiver();\n tmpAdapterController.getServerReceiver().start();\n tmpAdapterController.setSaved(true);\n }\n }\n if(getAdapterControllers().size() > 0){\n setCurrentAdapter(getAdapterControllers().get(0));\n }\n }", "title": "" }, { "docid": "824bee581d4d817a39ed245cca0aaecc", "score": "0.57258886", "text": "public static void main(String[] args) throws Exception {\n DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();\n //Get the DOM Builder\n DocumentBuilder builder = factory.newDocumentBuilder();\n //Load and Parse the XML document\n //document contains the complete XML as a Tree.\n Document document = builder.parse(\n ClassLoader.getSystemResourceAsStream(\"Task1_2_resources/touristVoucher.xml\"));\n List<TouristVoucher> touristVouchersList = new ArrayList<>();\n\n //Iterating through the nodes and extracting the data.\n NodeList nodeList = document.getDocumentElement().getChildNodes();\n\n for (int i = 0; i < nodeList.getLength(); i++) {\n\n //We have encountered an <voucher> tag.\n Node node = nodeList.item(i);\n if (node instanceof Element) {\n TouristVoucher touristVoucher = new TouristVoucher();\n touristVoucher.setCountry( ((Element) node).getElementsByTagName(\"country\").item(0).getTextContent());\n\n NodeList childNodes = node.getChildNodes();\n for (int j = 0; j < childNodes.getLength(); j++) {\n Node cNode = childNodes.item(j);\n\n //Identifying the child tag of vouchers encountered.\n if (cNode instanceof Element) {\n String content = cNode.getLastChild().\n getTextContent().trim();\n switch (cNode.getNodeName()) {\n case \"country\":\n touristVoucher.setCountry(content) ;\n break;\n case \"hotelCharacteristics\":\n HotelCharacteristics hotelCharacteristics = createHotelCharacteristics((((Element) node).getElementsByTagName(\"hotelCharacteristics\")).item(0));\n touristVoucher.setHotelCharacteristics(hotelCharacteristics);\n break;\n case \"transport\":\n touristVoucher.setTransport(Transport.valueOf((((Element) node).getElementsByTagName(\"transport\").item(0).getTextContent())));\n break;\n case \"voucherType\":\n touristVoucher.setVoucherType(VoucherType.valueOf((((Element) node).getElementsByTagName(\"voucherType\").item(0).getTextContent())));\n break;\n case \"numberDays\":\n touristVoucher.setNumberDays(Integer.parseInt(((Element) node).getElementsByTagName(\"numberDays\").item(0).getTextContent()));\n case \"numberNights\":\n touristVoucher.setNumberNights(Integer.parseInt(((Element) node).getElementsByTagName(\"numberNights\").item(0).getTextContent()));\n case \"cost\":\n touristVoucher.setCost(Double.parseDouble(((Element) node).getElementsByTagName(\"cost\").item(0).getTextContent()));\n\n }\n }\n }\n touristVouchersList.add(touristVoucher);\n }\n\n }\n //Printing the Task3.TouristVoucher list populated.\n for (TouristVoucher touristVoucher : touristVouchersList) {\n System.out.println(touristVoucher);\n }\n\n }", "title": "" }, { "docid": "d4f309f4218b2ac95f0498b8a60f7317", "score": "0.5722369", "text": "@FXML\n private void exportToXML(){\n FileChooser fileChooser = new FileChooser();\n fileChooser.setTitle(\"Wybierz plik XML do zapisu\");\n fileChooser.getExtensionFilters().add(new FileChooser.ExtensionFilter(\"Plik XML (*.xml)\",\"*.xml\"));\n File file = fileChooser.showSaveDialog(new Stage());\n if(file != null){\n showInfoDialog(\"Informacja\", libraryController.exportDataToXML(file.getPath()));\n }\n\n }", "title": "" }, { "docid": "8083a88a4405156f7724b71a92f03812", "score": "0.56867737", "text": "public static void main(String[] args) {\n\t\ttry {\r\n//\t\t\tfor(int i=2014;i<2015;i++)\r\n//\t\t\t{\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t File file = new File(\"new_data_alzimer//abstract//1.xml\");\r\n\t\t if(file.exists())\r\n\t\t\t {\r\n\t\t\t DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance();\r\n\t\t\t DocumentBuilder db = dbf.newDocumentBuilder();\r\n\t\t\t Document doc = db.parse(file);\r\n\t\t\t doc.getDocumentElement().normalize();\r\n\t\t\t System.out.println(\"Root element \" + doc.getDocumentElement().getNodeName());\r\n\t\t\t NodeList nodeLst = doc.getElementsByTagName(\"PubmedArticle\");\r\n\t\t\t \r\n\t\t\t for (int s = 0; s < nodeLst.getLength(); s++) {\r\n\r\n\t\t\t Node fstNode = nodeLst.item(s);\r\n\t\t\t // System.out.println(fstNode.getNodeValue()); \r\n\t\t\t if (fstNode.getNodeType() == Node.ELEMENT_NODE) {\r\n\t\t\t \r\n\t\t\t Element fstElmnt = (Element) fstNode;\r\n\t\t\t // System.out.println(fstElmnt.getNodeValue());\r\n\t\t\t NodeList fstNmElmntLst = fstElmnt.getElementsByTagName(\"MedlineCitation\");\r\n\t\t\t Element fstNmElmnt = (Element) fstNmElmntLst.item(0);\r\n\t\t\t NodeList articleNodeList = fstNmElmnt.getElementsByTagName(\"Article\");\r\n\t\t\t String IDs = null;\r\n\t\t\t for(int t=0;t<articleNodeList.getLength();t++)\r\n\t\t\t {\r\n\t\t\t \t Element articleElement = (Element)articleNodeList.item(t);\r\n\t\t\t \t NodeList abstractNodeList=articleElement.getElementsByTagName(\"Abstract\");\r\n\t\t\t \t if (abstractNodeList.item(0).getNodeType()==Node.ELEMENT_NODE) {\r\n\t\t\t \t\t Element abstractElement = (Element)abstractNodeList.item(t);\r\n\t\t\t\t \t NodeList abstract2=abstractElement.getElementsByTagName(\"AbstractText\");\r\n\t\t\t\t \t for(int t1=0;t1<fstNmElmntLst.getLength();t1++)\r\n\t\t\t\t\t {\r\n\t\t\t\t\t \t Element abstrElement = (Element) abstract2.item(t1);\r\n\t\t\t\t\t \t NodeList fstNm = abstrElement.getChildNodes();\r\n\t\t\t\t\t \t \r\n\t\t\t\t \t System.out.println((((Node) fstNm.item(0)).getNodeValue()));\r\n\t\t\t\t\t }\r\n\t\t\t\t\t}\r\n\t\t\t } \r\n\t\t\t System.out.println(\"Done\");\r\n\t\t\t }\r\n\t\t\t }\r\n\t\t\t \r\n\t\t\t}\r\n//\t\t\t}\r\n\t\t\t\r\n\t\t} catch (DOMException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\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} catch (SAXException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t} catch (IOException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "e3187e7919be34e6425a4eba1b12460d", "score": "0.56858844", "text": "public void getXMLFile() \r\n {\r\n \tlog.info(\"Into GetXml method\");\r\n InputStream fis = null;\r\n try\r\n {\r\n //Read the XML file from the specified Watched Folder\r\n File file = new File(\"D:/Fetch/example.xml\");\r\n fis = new FileInputStream(file);\r\n log.info(\"file fetched\");\r\n //Post to the AEM JCR\r\n sendToJCR(fis); \r\n \r\n \r\n }\r\n catch (Exception e)\r\n {\r\n e.printStackTrace(); \r\n }\r\n }", "title": "" }, { "docid": "3fa59a6f94c72b64795f13556792a4e8", "score": "0.56826246", "text": "@Override\n public String getFromXmlFormat() {\n\n String filePath = System.getenv(\"FILE_PATH\");\n //String filePath = \"C:\\\\Users\\\\zubah\\\\IdeaProjects\\\\ProgItmo\\\\Lab5\\\\Test.xml\";\n\n if (filePath == null) {\n console.print(TextFormatting.getRedText(\"\\n\\tProgram can't find xml file. \" +\n \"Change the file path in the environment variable(FILE_PATH)!\\n\"));\n System.exit(0);\n }\n\n try {\n BufferedReader bufferedReader = new BufferedReader(new FileReader(filePath));\n\n /* init jaxb marshaller */\n JAXBContext jaxbContext = JAXBContext.newInstance(CollectionManager.class);\n Unmarshaller jaxbUnmarshaller = jaxbContext.createUnmarshaller();\n\n /* unmarshalling java objects from xml */\n CollectionManager defaultCollectionManager = (CollectionManager) jaxbUnmarshaller.unmarshal(bufferedReader);\n\n return collectionValidator.validateCollection(defaultCollectionManager.getCollection());\n\n } catch (FileNotFoundException e) {\n return TextFormatting.getRedText(\"\\tChange the file path in the environment variable(FILE_PATH)!\\n\");\n } catch (JAXBException e) {\n return TextFormatting.getRedText(\"\\tFile has been broken!\\n\");\n }\n }", "title": "" }, { "docid": "1edb2be29b6a925938bc5b510f95cd70", "score": "0.5650046", "text": "public void lireDepuisFichierXML(String typeFichier) {\n\t\tFile xml = ouvrirFichier('o');\n\t\tif (xml != null) {\n\t\t\tsetMessage(\"Chargement du fichier en cours...\");\n\t\t\tthis.controleur.gererFichier(xml, typeFichier);\n\t\t}\n\t}", "title": "" }, { "docid": "18750659648296f93b1cccf05c8cd325", "score": "0.564445", "text": "private void getDataFromFile(String xml) throws XMLStreamException, IOException{\n\t\tBufferedReader stream = new BufferedReader(new StringReader(xml));\n\t\tXMLInputFactory f = XMLInputFactory.newInstance();\n\t\tXMLStreamReader reader = f.createXMLStreamReader(stream);\n\n\t\twhile(reader.hasNext()){\n\t\t\tint type = reader.getEventType();\n\n\t\t\tif(type == XMLStreamConstants.START_ELEMENT){\n\t\t\t\tString tag = reader.getLocalName();\n\n\t\t\t\tif(tag.equals(\"plan\")){\n\t\t\t\t\tfor(int i=0;i<reader.getAttributeCount(); i++){\n\t\t\t\t\t\tif(reader.getAttributeLocalName(i).equals(\"master\")){\n\t\t\t\t\t\t\tmaster = reader.getAttributeValue(i);\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// source\n\t\t\t\t}else if(tag.equals(\"source\")){\n\t\t\t\t\tNode n = new Node();\n\t\t\t\t\tn.type = \"source\";\n\t\t\t\t\tVector<String> sv = new Vector<String>();\n\t\t\t\t\tsv.add(\"-1\");\n\t\t\t\t\tprev_node_ids.put(n,sv);\n\n\t\t\t\t\tint scount = reader.getAttributeCount();\n\t\t\t\t\tfor(int i=0;i<scount;i++){\n\t\t\t\t\t\tString name = reader.getAttributeLocalName(i);\n\t\t\t\t\t\tString val = reader.getAttributeValue(i);\n\t\t\t\t\t\tif(name.equals(\"id\")){ \n\t\t\t\t\t\t\tnodes.put(val,n);\n\t\t\t\t\t\t\tn.id = val;\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if(name.equals(\"name\")){ n.value = val; }\n\t\t\t\t\t\telse if(name.equals(\"window\")){ n.window = val; }\n\t\t\t\t\t}\n\n\t\t\t\t\treader.next();\n\n\t\t\t\t\twhile(reader.hasNext()){\n\t\t\t\t\t\tint stype = reader.getEventType();\n\t\n\t\t\t\t\t\tif(stype == XMLStreamConstants.END_ELEMENT)\n\t\t\t\t\t\t\tif(reader.getLocalName().equals(\"source\")){\n\t\t\t\t\t\t\t \tbreak;\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\treader.next();\n\t\t\t\t\t}\n\n\t\t\t\t// operator\n\t\t\t\t}else if(tag.equals(\"operator\")){\n\t\t\t\t\tNode n = new Node();\n\n\t\t\t\t\t// operator-attribute\n\t\t\t\t\tint ocount = reader.getAttributeCount();\n\t\t\t\t\tfor(int i=0;i<ocount;i++){\n\t\t\t\t\t\tString name = reader.getAttributeLocalName(i);\n\t\t\t\t\t\tString val = reader.getAttributeValue(i);\n\t\t\t\t\t\tif(name.equals(\"id\")){ \n\t\t\t\t\t\t\tnodes.put(val,n);\n\t\t\t\t\t\t\tn.id = val;\n\t\t\t\t\t\t}else if(name.equals(\"type\")){ n.type = val; }\n\t\t\t\t\t}\n\n\t\t\t\t\t// operator-child\n\t\t\t\t\treader.next();\n\t\t\t\t\twhile(reader.hasNext()){\n\t\t\t\t\t\tint ctype = reader.getEventType();\n\n\t\t\t\t\t\tif(ctype == XMLStreamConstants.START_ELEMENT){\n\t\t\t\t\t\t\tString ctag = reader.getLocalName();\n\n\t\t\t\t\t\t\tif(ctag.equals(\"parameter\")){\n\t\t\t\t\t\t\t\tboolean isPredicate = false;\n\t\t\t\t\t\t\t\tboolean isSelectivity = false;\n\t\t\t\t\t\t\t\tint occount = reader.getAttributeCount();\n\t\t\t\t\t\t\t\tfor(int i=0;i<occount;i++){\n\t\t\t\t\t\t\t\t\tString name = reader.getAttributeLocalName(i);\n\t\t\t\t\t\t\t\t\tString val = reader.getAttributeValue(i);\n\t\t\t\t\t\t\t\t\tif(name.equals(\"name\")){\n\t\t\t\t\t\t\t\t\t\tif(val.equals(\"predicate\")) isPredicate = true;\n\t\t\t\t\t\t\t\t\t\tif(val.equals(\"selectivity\")) isSelectivity = true;\n\t\t\t\t\t\t\t\t\t}else if(name.equals(\"value\")){\n\t\t\t\t\t\t\t\t\t\tif(isSelectivity){\n\t\t\t\t\t\t\t\t\t\t\tn.selectivity = Double.parseDouble(val);\n\t\t\t\t\t\t\t\t\t\t\tisSelectivity = false;\n\t\t\t\t\t\t\t\t\t\t\tcontinue;\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\tn.value = val;\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\tif(!isPredicate) \n\t\t\t\t\t\t\t\t\tn.attribute = n.value;\n\t\t\t\t\t\t\t\telse \n\t\t\t\t\t\t\t\t\tn.predicate = n.value;\n\t\n\t\t\t\t\t\t\t}else if(ctag.equals(\"input\")){\n\t\t\t\t\t\t\t\tint occount = reader.getAttributeCount();\n\t\t\t\t\t\t\t\tfor(int i=0;i<occount;i++){\n\t\t\t\t\t\t\t\t\tString val = reader.getAttributeValue(i);\n\t\t\t\t\t\t\t\t\tif(!prev_node_ids.containsKey(n)){\n\t\t\t\t\t\t\t\t\t\tVector<String> v = new Vector<String>();\n\t\t\t\t\t\t\t\t\t\tv.add(val);\n\t\t\t\t\t\t\t\t\t\tprev_node_ids.put(n,v);\n\t\t\t\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\t\t\t\tVector<String> v = prev_node_ids.get(n);\n\t\t\t\t\t\t\t\t\t\tv.add(val);\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}else if(ctype == XMLStreamConstants.END_ELEMENT){\n\t\t\t\t\t\t\tif(reader.getLocalName().equals(\"operator\")) break;\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\treader.next();\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t}\n\n\t\t\treader.next();\n\t\t}\n\n\t\treader.close();\n\t\tstream.close();\n\t}", "title": "" }, { "docid": "be26567703c30964358eb12983542e22", "score": "0.56259704", "text": "public void read() {\n\t\tString [] kreise = {\"Zürich\",\"Altstetten\", \"Albisrieden\", \"Friesenberg\", \"Leimbach\", \"Wollishofen\", \"Witikon\", \"Hirzenbach\", \"Höngg\", \r\n\t\t\t\t\"Affoltern\", \"Seebach\", \"Oerlikon\", \"Saatlen\", \"Schwamendingen\"};\r\n\t\t\r\n\t\tString outfile = \"../../matsim/output/Migros.txt\";\t\r\n\t\t\r\n\t try {\r\n\t \t\r\n\t\t \tfinal BufferedWriter out = IOUtils.getBufferedWriter(outfile);\t\t\r\n\r\n\t DocumentBuilderFactory docBuilderFactory = DocumentBuilderFactory.newInstance();\r\n\t DocumentBuilder docBuilder = docBuilderFactory.newDocumentBuilder();\r\n\t Document doc = docBuilder.parse (new File(\"../../matsim/input/shops/Migros_ch.xml\"));\r\n\r\n\t // normalize text representation\r\n\t doc.getDocumentElement ().normalize ();\r\n\r\n\t NodeList listOfPlacemarks = doc.getElementsByTagName(\"Placemark\");\r\n\t int totalPlacemarks = listOfPlacemarks.getLength();\r\n\t System.out.println(\"Total no of Placemarks : \" + totalPlacemarks);\r\n\t \r\n\t int id = 30000;\r\n\r\n\t for(int s=0; s<listOfPlacemarks.getLength() ; s++){\r\n\t \t\r\n\t \t\r\n\t \t\r\n\t Node placemarkNode = listOfPlacemarks.item(s);\r\n\t if(placemarkNode.getNodeType() == Node.ELEMENT_NODE){\r\n\t \t\r\n\t \tString outLine = \"<shop\";\r\n\t \t\r\n\t Element placemarkElement = (Element)placemarkNode;\r\n\r\n\t NodeList nameList = placemarkElement.getElementsByTagName(\"name\");\r\n\t Element nameElement = (Element)nameList.item(0);\r\n\r\n\t NodeList txtName = nameElement.getChildNodes();\r\n\t String[] nameEntries = ((Node)txtName.item(0)).getNodeValue().trim().split(\",\", -1);\r\n\t \r\n\t String name = nameEntries[0];\r\n\t String loc = nameEntries[1];\r\n\t \r\n\t String[] nameSubEntries = name.split(\" \", -1);\r\n\t String[] locSubEntries = loc.split(\" \", -1); \r\n\t \r\n\t System.out.print(\"name : \" + ((Node)txtName.item(0)).getNodeValue().trim());\r\n\t \r\n\t outLine += \" id=\" + \"\\\"\" + id +\"\\\"\";\r\n\t outLine += \" name=\" + \"\\\"\" + nameEntries[0] + \"\\\"\";\r\n\t outLine += \" street=\" + \"\\\"\" + nameSubEntries[1];\r\n\t \r\n\t if (nameSubEntries.length == 3) {\r\n\t \toutLine += \" \" + nameSubEntries[2] + \"\\\"\";\r\n\t }\r\n\t else {\r\n\t \toutLine += \"\\\"\";\t\r\n\t }\r\n\t \r\n\t outLine += \" PLZ=\" + \"\\\"\" + locSubEntries[1] + \"\\\"\";\r\n\t outLine += \" city=\" + \"\\\"\" + locSubEntries[2] + \"\\\"\";\r\n\t \r\n\t if (!Arrays.asList(kreise).contains(locSubEntries[2])) {\r\n\t \t\r\n\t \tSystem.out.print(locSubEntries[2]);\r\n\t \t\r\n\t \tcontinue;\t \t\r\n\t }\r\n\t \r\n\r\n\t NodeList coordinatesList = placemarkElement.getElementsByTagName(\"coordinates\");\r\n\t Element coordinatesElement = (Element)coordinatesList.item(0);\r\n\r\n\t NodeList txtCoordinates = coordinatesElement.getChildNodes();\r\n\t System.out.println(\" coordinates : \" + ((Node)txtCoordinates.item(0)).getNodeValue().trim());\r\n\t \r\n\t String[] coordinateEntries = ((Node)txtCoordinates.item(0)).getNodeValue().trim().split(\",\", -1);\r\n\t String lat = coordinateEntries[1];\r\n\t String lng = coordinateEntries[0];\r\n\t \r\n\t outLine += \" lat=\" + \"\\\"\" + lat +\"\\\"\";\r\n\t outLine += \" lan=\" + \"\\\"\" + lng +\"\\\"\";\r\n\t \r\n\t outLine += \" yaw=\" + \"\\\"\" + \"\\\"\";\r\n\t outLine += \" pitch=\" + \"\\\"\" + \"\\\"\";\r\n\t \r\n\t outLine += \"/>\";\r\n\t out.write(outLine);\t \r\n\t \r\n\t }//end of if clause\r\n\t \r\n\t \r\n\t out.newLine();\r\n\t id++;\r\n\t \r\n\t }//end of for loop with s var\r\n\t \r\n\t out.flush();\t\t\t\r\n\t\t\t\tout.flush();\r\n\t\t\t\tout.close();\r\n\r\n\t }catch (SAXParseException err) {\r\n\t\t System.out.println (\"** Parsing error\" + \", line \" \r\n\t\t + err.getLineNumber () + \", uri \" + err.getSystemId ());\r\n\t\t System.out.println(\" \" + err.getMessage ());\r\n\t }catch (SAXException e) {\r\n\t\t Exception x = e.getException ();\r\n\t\t ((x == null) ? e : x).printStackTrace ();\r\n\t } catch (final IOException e) {\r\n\t\t\t\tthrow new RuntimeException(e);\r\n\t }catch (Throwable t) {\r\n\t\t \tt.printStackTrace ();\r\n\t\t }\r\n\t //System.exit (0);\r\n\t }", "title": "" }, { "docid": "ae087b60145fb307025ca80db64ca319", "score": "0.5622808", "text": "public void deFichierXMLversJDOM(String fichier) {\n\t\t// Créer une instance de SAXBuilder\n\t\tSAXBuilder sxb = new SAXBuilder();\n\t\ttry {\n\t\t\t// Crer le document JDOM avec en argument le fichier XML\n\t\t\tdocument = sxb.build(new File(fichier));\n\t\t\tracine = document.getRootElement();\n\t\t} catch (Exception e) {\n\t\t}\n\t}", "title": "" }, { "docid": "24bb1e8174e554ef68797d6b5033d961", "score": "0.5606115", "text": "public static void updateManufactureSettings(String directory) throws Exception\n {\n \tSystem.out.println(\"updating manufacturer =============================================\");\n File dir = new File(directory);\n if (!dir.exists())\n {\n if (!dir.mkdirs())\n {\n return;\n }\n }\n InputStream io = null; \n PrintWriter writer = null;\n XMLStreamReader xmlStreamReader = null;\n InputStreamReader r = null;\n try\n {\n String path = directory + File.separator + \"files.xml\";\n URL gurux = new URL(\"http://www.gurux.org/obis/files.xml\");\n URLConnection gx = gurux.openConnection();\n io = gx.getInputStream();\n String target, data, line;\n String newline;\n r = new InputStreamReader(io, \"utf-8\");\n BufferedReader reader = new BufferedReader(r);\n writer = new PrintWriter(path, \"utf-8\");\n target = \"\";\n data = \"\";\n newline = System.getProperty(\"line.separator\");\n while((line = reader.readLine()) != null)\n {\n writer.write(line);\n writer.write(newline);\n }\n r.close();\n writer.close();\n writer = null;\n io.close();\n io = null;\n XMLInputFactory inputFactory=XMLInputFactory.newInstance();\n java.io.FileInputStream tmp = new java.io.FileInputStream(path);\n xmlStreamReader = inputFactory.createXMLStreamReader(tmp); \n while(xmlStreamReader.hasNext())\n {\n int event = xmlStreamReader.next();\n if(event == XMLStreamConstants.START_ELEMENT)\n {\n data = \"\";\n target = xmlStreamReader.getLocalName(); \n }\n else if(event == XMLStreamConstants.CHARACTERS)\n {\n data = xmlStreamReader.getText();\n }\n else if(event == XMLStreamConstants.END_ELEMENT)\n {\n if (target.equalsIgnoreCase(\"file\"))\n {\n URL f = new URL(\"http://www.gurux.org/obis/\" + data);\n URLConnection fc = f.openConnection();\n BufferedReader in = new BufferedReader(new InputStreamReader(fc.getInputStream()));\n try\n {\n writer = new PrintWriter(directory + File.separator + data, \"utf-8\");\n while((line = in.readLine()) != null)\n {\n writer.write(line);\n writer.write(newline);\n }\n }\n finally \n {\n if (writer != null)\n {\n writer.close();\n writer = null;\n }\n if (in != null)\n {\n in.close();\n }\n }\n }\n target = \"\";\n }\n }\n }\n finally\n {\n if (r != null)\n {\n r.close();\n }\n if (io != null)\n {\n io.close();\n }\n if (writer != null)\n {\n writer.close();\n } \n if (xmlStreamReader != null)\n {\n xmlStreamReader.close();\n } \n }\n }", "title": "" }, { "docid": "35617a65ddab85d1cc3a3803c2676873", "score": "0.55844414", "text": "private List<Student> readFromXml() throws BadXmlFileException, SAXException, IOException, ParserConfigurationException {\n String surname, name, secondName;\n String studentID, groupNumber;\n String dateOfTransfer;\n String faculty;\n\n File xmlFile = new File(fileName);\n\n //InputStream xmlStream = new FileInputStream(xmlFile);\n Students studContainer = null;\n try {\n JAXBContext context = JAXBContext.newInstance(Students.class);\n Unmarshaller unmarshaller = context.createUnmarshaller();\n studContainer = (Students) unmarshaller.unmarshal(xmlFile);\n System.out.println(\"studContainer == null : \" + (studContainer == null));\n System.out.println(\"studContainer.students : \" + studContainer.getStudents().toString());\n } catch (JAXBException e) {\n e.printStackTrace();\n }\n//\n// DocumentBuilderFactory documentBuilderFactory = DocumentBuilderFactory.newInstance();\n// DocumentBuilder documentBuilder = documentBuilderFactory.newDocumentBuilder();\n// Document document = documentBuilder.parse(xmlFile);\n// document.getDocumentElement().normalize();\n// NodeList nodeList = document.getElementsByTagName(document.getDocumentElement().getChildNodes().item(1).getNodeName());\n// studpattern = new StudentPattern();\n// for (int tmp = 0; tmp < nodeList.getLength(); tmp++) {\n// Node node = nodeList.item(tmp);\n// if (node.getNodeType() == Node.ELEMENT_NODE) {\n// Element element = (Element) node;\n// surname = element.getElementsByTagName(\"surname\").item(0).getChildNodes().item(0).getNodeValue();\n// name = element.getElementsByTagName(\"name\").item(0).getChildNodes().item(0).getNodeValue();\n// secondName = element.getElementsByTagName(\"secondName\").item(0).getChildNodes().item(0).getNodeValue();\n// faculty = element.getElementsByTagName(\"faculty\").item(0).getChildNodes().item(0).getNodeValue();\n// groupNumber = element.getElementsByTagName(\"groupNumber\").item(0).getChildNodes().item(0).getNodeValue();\n// studentID = element.getElementsByTagName(\"studentID\").item(0).getChildNodes().item(0).getNodeValue();\n// dateOfTransfer = element.getElementsByTagName(\"dateOfTransfer\").item(0).getChildNodes().item(0).getNodeValue();\n// if (studpattern.matcher(surname, name, secondName, faculty, groupNumber, studentID, dateOfTransfer))\n// students.add(new Student(surname, name, secondName, faculty, groupNumber, studentID, dateOfTransfer));\n// else throw new BadXmlFileException();\n// }\n// }\n return studContainer == null ? new LinkedList<Student>() : studContainer.getStudents();\n }", "title": "" }, { "docid": "da55d9f8a97bfaa547c6abea65a3988f", "score": "0.5574228", "text": "private void processSearch(File f) {\n\t\ttry{\n\t\t\t DOMParser parser = new DOMParser();\n\t\t\t parser.parse(f.getPath());\n\t\t\t Document doc = parser.getDocument();\n\t\t\t parseTree(doc);\n\t\t}\n\t\tcatch(SAXException e) {\n\t\t\tSystem.out.println(\"Fatal Error: SAX Exception \" + e.getMessage());\n\t\t\tSystem.exit(2);\n\t\t}\n\t\tcatch(IOException e) {\n\t\t\tSystem.out.println(\"IO Error: \"+ e.getMessage());\n\t\t\tSystem.exit(3);\n\t\t}\n\n\t}", "title": "" }, { "docid": "a4a66f3f79f3a72e45cb72fa0ef9ca87", "score": "0.55715555", "text": "public static void AñadirSuperheroes() throws XMLStreamException, IOException {\n //abrimos el archivo\n FileReader file = new FileReader(\"XML_Heroes.xml\");\n BufferedReader reader = new BufferedReader(file);\n\n /*\n leemos el archivo y lo metemos todo en una variable string\n A continuacion este string sera leido por un event reader, de esta forma iremos introduciendo los datos segun necesitemos\n */\n\n String key = \"\";\n String line = reader.readLine();\n while (line != null) {\n key += line;\n line = reader.readLine();\n }\n reader.close();\n XMLInputFactory inFactory = XMLInputFactory.newInstance();\n XMLEventReader eventReader = inFactory.createXMLEventReader(new StringReader(key));\n XMLOutputFactory factory = XMLOutputFactory.newInstance();\n XMLEventWriter writer = factory.createXMLEventWriter(new FileWriter((\"XML_Heroes.xml\")));\n XMLEventFactory eventFactory = XMLEventFactory.newInstance();\n int i = 1;\n Boolean numerodebatallas = true;\n Boolean numerodehabilidades = true;\n Scanner scanner = new Scanner(System.in);\n while (eventReader.hasNext()) {\n XMLEvent event = eventReader.nextEvent();\n\n\n //Contamos la cantidad de superheroes que hay actualmente en el xml, de esta forma podemos asociar el id (key) correcto al siguiente superheroe que introduzcamos\n if (event.getEventType() == XMLEvent.START_ELEMENT) {\n if (event.asStartElement().getName().toString().equalsIgnoreCase(\"Superheroe\")) {\n\n i++; //vamos incrementandolo\n\n }\n }\n\n\n if (event.getEventType() == XMLEvent.END_ELEMENT) {\n\n if (event.asEndElement().getName().toString().equalsIgnoreCase(\"Superheroes\")) {\n // vamos pidiendo los datos correspondiente\n writer.add(eventFactory.createStartElement(\"\", null, \"Superheroe\"));\n System.out.println(\"Indique la procedencia del superheroe: \");\n writer.add(eventFactory.createAttribute(\"procedencia\", scanner.nextLine()));\n writer.add(eventFactory.createAttribute(\"id\", Integer.toString(i)));\n System.out.println(\"Indique el genero del superheroe: \");\n writer.add(eventFactory.createAttribute(\"genero\", scanner.nextLine()));\n writer.add(eventFactory.createStartElement(\"\", null, \"Nombre\"));\n System.out.println(\"Nombre del superheroe: \");\n writer.add(eventFactory.createCharacters(scanner.nextLine()));\n writer.add(eventFactory.createEndElement(\"\", null, \"Nombre\"));\n writer.add(eventFactory.createStartElement(\"\", null, \"IdentidadS\"));\n System.out.println(\"Identidad del superheroe: \");\n writer.add(eventFactory.createCharacters(scanner.nextLine()));\n writer.add(eventFactory.createEndElement(\"\", null, \"IdentidadS\"));\n writer.add(eventFactory.createStartElement(\"\", null, \"Batallas\"));\n // el usuario ira introduciendo las batallas que quiera\n while (numerodebatallas == true) {\n writer.add(eventFactory.createStartElement(\"\", null, \"Batalla\"));\n\n writer.add(eventFactory.createStartElement(\"\", null, \"Fecha_comienzo\"));\n System.out.println(\"Fecha de comienzo de la batalla: \");\n writer.add(eventFactory.createCharacters(scanner.nextLine()));\n writer.add(eventFactory.createEndElement(\"\", null, \"Fecha_comienzo\"));\n writer.add(eventFactory.createStartElement(\"\", null, \"Fecha_fin\"));\n System.out.println(\"Fecha del fin de la batalla: \");\n writer.add(eventFactory.createCharacters(scanner.nextLine()));\n writer.add(eventFactory.createEndElement(\"\", null, \"Fecha_fin\"));\n writer.add(eventFactory.createStartElement(\"\", null, \"Lugar\"));\n System.out.println(\"Lugar de la batalla: \");\n writer.add(eventFactory.createCharacters(scanner.nextLine()));\n writer.add(eventFactory.createEndElement(\"\", null, \"Lugar\"));\n\n writer.add(eventFactory.createEndElement(\"\", null, \"Batalla\"));\n System.out.println(\"¿Quiere añadir otra batalla?(S/N)\");\n String comprobacion = scanner.nextLine();\n if (comprobacion.equalsIgnoreCase(\"N\")) {\n numerodebatallas = false;\n }\n }\n writer.add(eventFactory.createEndElement(\"\", null, \"Batallas\"));\n\n writer.add(eventFactory.createStartElement(\"\", null, \"Habilidades\"));\n // el usuario ira introduciendo las habilidades que quiera, de esta forma quedará como un array\n while (numerodehabilidades == true) {\n writer.add(eventFactory.createStartElement(\"\", null, \"Habilidad\"));\n writer.add(eventFactory.createStartElement(\"\", null, \"Tipo\"));\n System.out.println(\"Tipo de habilidad: \");\n writer.add(eventFactory.createCharacters(scanner.nextLine()));\n writer.add(eventFactory.createEndElement(\"\", null, \"Tipo\"));\n writer.add(eventFactory.createStartElement(\"\", null, \"Definicion\"));\n System.out.println(\"Definicion de la habilidad: \");\n writer.add(eventFactory.createCharacters(scanner.nextLine()));\n writer.add(eventFactory.createEndElement(\"\", null, \"Definicion\"));\n writer.add(eventFactory.createEndElement(\"\", null, \"Habilidad\"));\n System.out.println(\"¿Quiere añadir otra habilidad?(S/N)\");\n String comprobacion = scanner.nextLine();\n\n if (comprobacion.equalsIgnoreCase(\"N\")) {\n numerodehabilidades = false;\n }\n }\n writer.add(eventFactory.createEndElement(\"\", null, \"Habilidades\"));\n\n }\n\n }\n writer.add(event);\n }\n\n writer.close();\n eventReader.close();\n\n\n }", "title": "" }, { "docid": "a8c5b6b2115882eaf93fc63fdb78b15d", "score": "0.55482113", "text": "private static void AddWorkerXML() throws Exception {\r\n\t\tboolean incorrectWorker = true;\r\n\t\tJAXBContext context = JAXBContext.newInstance(OompaLoompa.class);\r\n\t\tUnmarshaller unmarshal = context.createUnmarshaller();\r\n\t\twhile(incorrectWorker) {\r\n\t\tSystem.out.println(\"Type File for the XML folder (expected in the XMLS folder): \");\r\n\t\tString filename = reader.readLine();\r\n\t\tFile file= new File(\"./xmls/\"+filename+\".xml\");\r\n\t\ttry {\r\n \t// Create a DocumentBuilderFactory\r\n DocumentBuilderFactory dBF = DocumentBuilderFactory.newInstance();\r\n // Set it up so it validates XML documents\r\n dBF.setValidating(true);\r\n // Create a DocumentBuilder and an ErrorHandler (to check validity)\r\n DocumentBuilder builder = dBF.newDocumentBuilder();\r\n CustomErrorHandler customErrorHandler = new CustomErrorHandler();\r\n builder.setErrorHandler(customErrorHandler);\r\n // Parse the XML file and print out the result\r\n Document doc = builder.parse(file);\r\n incorrectWorker = false;\r\n \r\n } catch (ParserConfigurationException ex) {\r\n System.out.println(file + \" error while parsing!\");\r\n \r\n } catch (SAXException ex) {\r\n System.out.println(file + \" was not well-formed!\");\r\n \r\n } catch (IOException ex) {\r\n System.out.println(file + \" was not accesible!\");\r\n \r\n }\r\n\t\tOompaLoompa worker = (OompaLoompa)unmarshal.unmarshal(file);\r\n\t\tSystem.out.println(\"Added to the database: \"+ worker);\r\n\t\toompaloompaManager.add(worker);\r\n\t\t\r\n\t\t\r\n\t}\r\n\t}", "title": "" }, { "docid": "50aa97ef35b12803717731fd792619e4", "score": "0.5531694", "text": "public void OutputToXML() {\n\n guestMgr.DeleteFromFile();\n guestMgr.createToFile();\n roomMgr.deleteFromFile();\n roomMgr.createToFile();\n resMgr.deleteFromFile();\n resMgr.createToFile();\n transMgr.deleteFromFile();\n transMgr.createToFile();\n }", "title": "" }, { "docid": "98a7391f7c33cba10b247e5b3ff7eb4c", "score": "0.5519876", "text": "public void xmlConnector() {\n try {\n XmlPullParserFactory factory = XmlPullParserFactory.newInstance();\n xpp = factory.newPullParser();\n } catch (XmlPullParserException e ) {\n e.printStackTrace();\n }\n }", "title": "" }, { "docid": "7674cf20605d3ebdb7f8dce054293b37", "score": "0.55099326", "text": "public void exportXML() {\n XMLFile.create(this);\n }", "title": "" }, { "docid": "15d3d81f3a11613aa315e13482b8ef16", "score": "0.5496354", "text": "private void parseXmlFile() throws NoDataFoundException\r\n\t{\r\n\t\t// Get the factory\r\n\t\tDocumentBuilderFactory docBuilderFactory = DocumentBuilderFactory.newInstance();\r\n\t\ttry\r\n\t\t{\r\n\t\t\t// Using factory get an instance of document builder\r\n\t\t\tDocumentBuilder docBuilder = docBuilderFactory.newDocumentBuilder();\r\n\t\t\r\n\t\t\t// Parse using builder to get DOM representation of the XML file\r\n\t\t\tdoc = docBuilder.parse(xmlFile);\r\n\t\t}\r\n\t\tcatch(ParserConfigurationException pce)\r\n\t\t{\r\n\t\t\tpce.printStackTrace(System.err);\r\n\t\t\tthrow new NoDataFoundException(\"DocumentBuilder cannot be created that satisfies the configuration requested\");\r\n\t\t} \r\n\t\tcatch (SAXException se) \r\n\t\t{\r\n\t\t\tse.printStackTrace(System.err);\r\n\t\t\tthrow new NoDataFoundException(\"Parse error occured while parsing repository information\");\r\n\t\t} \r\n\t\tcatch (IOException ioe) \r\n\t\t{\r\n\t\t\tioe.printStackTrace(System.err);\r\n\t\t\tthrow new NoDataFoundException(\"I/O error occured while parsing repository information\");\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "a6cf0b68bf1622fd3bf6118e7769b84c", "score": "0.54949933", "text": "public static void extractUsingDOM(List<String> files)\n {\n\n for (String file : files) {\n try {\n\n File fXmlFile = new File(file);\n DocumentBuilderFactory dbFactory = DocumentBuilderFactory.newInstance();\n dbFactory.setValidating(false);\n dbFactory.setNamespaceAware(true);\n dbFactory.setFeature(\"http://xml.org/sax/features/namespaces\", false);\n dbFactory.setFeature(\"http://xml.org/sax/features/validation\", false);\n dbFactory.setFeature(\"http://apache.org/xml/features/nonvalidating/load-dtd-grammar\", false);\n dbFactory.setFeature(\"http://apache.org/xml/features/nonvalidating/load-external-dtd\", false);\n\n DocumentBuilder dBuilder = dbFactory.newDocumentBuilder();\n Document doc = dBuilder.parse(fXmlFile);\n //optional, but recommended\n //read this - http://stackoverflow.com/questions/13786607/normalization-in-dom-parsing-with-java-how-does-it-work\n doc.getDocumentElement().normalize();\n\n NodeList nList = doc.getElementsByTagName(\"ipcEntry\"); //get all ipcEntry in the files\n\n\n for (int temp = 0; temp < nList.getLength(); temp++) {//for each node\n\n Node nNode = nList.item(temp); // get the ipcEntry node\n if (nNode.getNodeType() == Node.ELEMENT_NODE) {\n NamedNodeMap attr = nNode.getAttributes();//get the node attributes\n if(attr.getNamedItem(\"kind\").getNodeValue().equals(\"s\"))//section\n {\n String code = attr.getNamedItem(\"symbol\").getNodeValue();//get the section code\n if(!sections.containsKey(code))// if it is not in the map\n {\n NodeList l = nNode.getChildNodes();//get its children\n if(l!= null)// it it has\n {\n String section =\"\";\n for(int j=0; j< l.getLength();j++) //iterate over them\n {\n if(l.item(j).getNodeType() == Node.ELEMENT_NODE && l.item(j).getNodeName().equals(\"textBody\"))//we want the text =>title of section\n {\n section = getText(l.item(j));// get the title and accumulate in case of more than one textbody\n sections.put(code, section);//add to sections map\n break;//finished\n }\n\n }\n\n\n }\n }\n\n //sections.put(attr.getNamedItem(\"sumbol\").getNodeValue(), text.getNodeValue());\n }\n else if(attr.getNamedItem(\"kind\").getNodeValue().equals(\"t\"))//section\n {\n String code = attr.getNamedItem(\"symbol\").getNodeValue();//get the section code\n if(!subSections.containsKey(code))// if it is not in the map\n {\n NodeList l = nNode.getChildNodes();//get its children\n if(l!= null)// it it has\n {\n for(int j=0; j< l.getLength();j++) //iterate over them\n if(l.item(j).getNodeType() == Node.ELEMENT_NODE && l.item(j).getNodeName().equals(\"textBody\"))//we want the text =>title of section\n {\n String section = getText(l.item(j));// get the title\n subSections.put(code, section);//add to sections map\n break;//finished\n }\n\n }\n }\n\n //sections.put(attr.getNamedItem(\"sumbol\").getNodeValue(), text.getNodeValue());\n }\n else if(attr.getNamedItem(\"kind\").getNodeValue().equals(\"c\"))//section\n {\n String code = attr.getNamedItem(\"symbol\").getNodeValue();//get the section code\n if(!classesIPCR.containsKey(code))// if it is not in the map\n {\n NodeList l = nNode.getChildNodes();//get its children\n if(l!= null)// it it has\n {\n for(int j=0; j< l.getLength();j++) //iterate over them\n if(l.item(j).getNodeType() == Node.ELEMENT_NODE && l.item(j).getNodeName().equals(\"textBody\"))//we want the text =>title of section\n {\n String section = getTextAcc(l.item(j));// get the title\n classesIPCR.put(code, section.substring(0, section.lastIndexOf(\";\")));//add to sections map\n break;//finished\n }\n\n }\n }\n }\n else if(attr.getNamedItem(\"kind\").getNodeValue().equals(\"u\"))//section\n {\n String code = attr.getNamedItem(\"symbol\").getNodeValue();//get the section code\n if(!groups.containsKey(code))// if it is not in the map\n {\n NodeList l = nNode.getChildNodes();//get its children\n if(l!= null)// it it has\n {\n for(int j=0; j< l.getLength();j++) //iterate over them\n if(l.item(j).getNodeType() == Node.ELEMENT_NODE && l.item(j).getNodeName().equals(\"textBody\"))//we want the text =>title of section\n {\n String section = getText(l.item(j));// get the title\n groups.put(code, section);//add to sections map\n break;//finished\n }\n }\n }\n }\n else if(attr.getNamedItem(\"kind\").getNodeValue().equals(\"m\"))//section\n {\n String code = attr.getNamedItem(\"symbol\").getNodeValue();//get the section code\n if(!subGroups.containsKey(code))// if it is not in the map\n {\n NodeList l = nNode.getChildNodes();//get its children\n if(l!= null)// it it has\n {\n for(int j=0; j< l.getLength();j++) //iterate over them\n if(l.item(j).getNodeType() == Node.ELEMENT_NODE && l.item(j).getNodeName().equals(\"textBody\"))//we want the text =>title of section\n {\n String theGroup = getText(l.item(j));// get the title\n subGroups.put(code, theGroup);//add to sections map\n break;//finished\n }\n }\n }\n }\n }\n }\n writeIPCCodesoFile();\n\n } catch (Exception e) {\n e.printStackTrace();\n }\n }\n }", "title": "" }, { "docid": "bae8246b4aff5f01bf3961c881cdfbee", "score": "0.5489166", "text": "@FXML\n private void importFromXML(){\n FileChooser fileChooser = new FileChooser();\n fileChooser.setTitle(\"Wczytaj plik XML do zaimportowania\");\n fileChooser.getExtensionFilters().add(new FileChooser.ExtensionFilter(\"Plik XML (*.xml)\",\"*.xml\"));\n File file = fileChooser.showOpenDialog(new Stage());\n if(file != null){\n Alert alert = new Alert(Alert.AlertType.CONFIRMATION);\n alert.setTitle(\"Potwierdź wybór\");\n alert.setHeaderText(\"UWAGA! \\nCzy na pewno chcesz zaimportować dane z pliku XML? \\nPoprzednie dane zostaną usunięte!\");\n Optional<ButtonType> result = alert.showAndWait();\n if(result.orElse(null) == ButtonType.OK) {\n showInfoDialog(\"Informacja\", libraryController.importDataFromXML(file.getPath()));\n reloadAllView();\n }\n }\n\n }", "title": "" }, { "docid": "9f9c98603dc0451bb90b626344094f44", "score": "0.54875517", "text": "private void parseSettingsXmlFile()\n {\n InputStream inStream;\n NodeList nl;\n Element docElement;\n //get the factory\n DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance();\n\n // parse the file\n try\n {\n\n //Using factory get an instance of document builder\n DocumentBuilder db = dbf.newDocumentBuilder();\n\n //parse using builder to get DOM representation of the XML file\n inStream = getClass().getResourceAsStream(\"/bugazoo/data/\" + Constants.SIMPOPULATIONSXMLFILENAME);\n dom = db.parse(inStream);\n } \n catch (ParserConfigurationException pce)\n {\n pce.printStackTrace();\n } \n catch (SAXException se)\n {\n se.printStackTrace();\n } \n catch (IOException ioe)\n {\n System.err.println(\"Cannot find settings file \" + Constants.SIMPOPULATIONSXMLFILENAME);\n }\n\n //get the root elememt\n docElement = dom.getDocumentElement();\n\n //get a nodelist of <World> elements\n nl = docElement.getElementsByTagName(\"population\");\n if (nl != null && nl.getLength() > 0)\n {\n for (int i = 0; i < nl.getLength(); i++)\n {\n\n //get the employee element\n Element element = (Element) nl.item(i);\n\n //get the Employee object\n SimPopulation population = new SimPopulation(element, this.prefabCreatures);\n\n //add it to list\n this.add(population);\n }\n }\n }", "title": "" }, { "docid": "02fb32f106efca601b5d2519dcaf4220", "score": "0.54836243", "text": "public static GetRutasExistentes parse(javax.xml.stream.XMLStreamReader reader) throws java.lang.Exception{\r\n GetRutasExistentes object =\r\n new GetRutasExistentes();\r\n\r\n int event;\r\n java.lang.String nillableValue = null;\r\n java.lang.String prefix =\"\";\r\n java.lang.String namespaceuri =\"\";\r\n try {\r\n \r\n while (!reader.isStartElement() && !reader.isEndElement())\r\n reader.next();\r\n\r\n \r\n if (reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\"type\")!=null){\r\n java.lang.String fullTypeName = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\r\n \"type\");\r\n if (fullTypeName!=null){\r\n java.lang.String nsPrefix = null;\r\n if (fullTypeName.indexOf(\":\") > -1){\r\n nsPrefix = fullTypeName.substring(0,fullTypeName.indexOf(\":\"));\r\n }\r\n nsPrefix = nsPrefix==null?\"\":nsPrefix;\r\n\r\n java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(\":\")+1);\r\n \r\n if (!\"getRutasExistentes\".equals(type)){\r\n //find namespace for the prefix\r\n java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix);\r\n return (GetRutasExistentes)ExtensionMapper.getTypeObject(\r\n nsUri,type,reader);\r\n }\r\n \r\n\r\n }\r\n \r\n\r\n }\r\n\r\n \r\n\r\n \r\n // Note all attributes that were handled. Used to differ normal attributes\r\n // from anyAttributes.\r\n java.util.Vector handledAttributes = new java.util.Vector();\r\n \r\n\r\n \r\n \r\n reader.next();\r\n \r\n \r\n while (!reader.isStartElement() && !reader.isEndElement()) reader.next();\r\n \r\n if (reader.isStartElement() && new javax.xml.namespace.QName(\"http://avon_ots_ws.datacode.com\",\"pIdRepresentante\").equals(reader.getName())){\r\n \r\n nillableValue = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\"nil\");\r\n if (!\"true\".equals(nillableValue) && !\"1\".equals(nillableValue)){\r\n \r\n java.lang.String content = reader.getElementText();\r\n \r\n object.setPIdRepresentante(\r\n org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content));\r\n \r\n } else {\r\n \r\n \r\n reader.getElementText(); // throw away text nodes if any.\r\n }\r\n \r\n reader.next();\r\n \r\n } // End of if for expected property start element\r\n \r\n else {\r\n \r\n }\r\n \r\n while (!reader.isStartElement() && !reader.isEndElement())\r\n reader.next();\r\n \r\n if (reader.isStartElement())\r\n // A start element we are not expecting indicates a trailing invalid property\r\n throw new org.apache.axis2.databinding.ADBException(\"Unexpected subelement \" + reader.getName());\r\n \r\n\r\n\r\n\r\n } catch (javax.xml.stream.XMLStreamException e) {\r\n throw new java.lang.Exception(e);\r\n }\r\n\r\n return object;\r\n }", "title": "" }, { "docid": "28ff16f84fb2e7672dc2064bc672be89", "score": "0.5479698", "text": "public void comprimirArchivos()\n {\n\n\n\n }", "title": "" }, { "docid": "f1c874339702b1e81752c74e3f32b837", "score": "0.5474032", "text": "public static void main(String [] args) throws Exception {\r\n /**\r\n * On declare des objets afin d'utiliser la lecture et ecritures sur des fichiers xml\r\n * On declare nos objets qui vont nous permettres de faire toutes les opérations du programmes\r\n */\r\n\r\n\r\n AlbumXML sauvegardeAlbum = new AlbumXML();\r\n PlaylistXML sauvegardePlaylist = new PlaylistXML();\r\n ElementXML sauvegardeElement = new ElementXML();\r\n\r\n ChansonTemp c = sauvegardeElement.readXMLChanson();\r\n LivreAudioTemp l = sauvegardeElement.readXMLLivreAudio();\r\n AlbumTemp a = sauvegardeAlbum.readXMLAlbum();\r\n PlaylistsTemp p = sauvegardePlaylist.readXMLPlaylist();\r\n\r\n //on crée un nouveau scanner\r\n Scanner scan = new Scanner(System.in);\r\n String choice;\r\n //on cree un nouvelle objet menu de type Affichage\r\n Affichage menu = new Affichage();\r\n //on appel sa méthode MusicHub\r\n menu.MusicHub();\r\n\r\n try{//On essaie de faire les instructions suivantes\r\n do{\r\n menu();\r\n\r\n choice = scan.next();\r\n switch (choice.charAt(0)) {\r\n case 'l':\r\n System.out.println(\"\\n\\t\\t---------- Liste des Albums ----------\");\r\n a.SortByDate(a.getListAlbum());\r\n a.afficheAlbum();\r\n\r\n System.out.println(\"\\n\\t\\t---------- Liste des Chansons ----------\");\r\n c.SortByGenre(c.getListChanson());\r\n c.afficheChanson();\r\n\r\n System.out.println(\"\\n\\t\\t--------- Liste des LivreAudio ---------\");\r\n l.SortByAutor(l.getListLivreAudio());\r\n l.afficheLivreAudio();\r\n\r\n System.out.println(\"\\n\\t\\t---------- Liste des PlayList ----------\");\r\n p.afficheListPlaylist();\r\n break;\r\n\r\n case 'c' :\r\n System.out.println(\"Rajout d'une nouvelle chanson\");\r\n c.addChanson();\r\n break;\r\n\r\n case 'a' :\r\n System.out.println(\"Rajout d'un nouvel Album\");\r\n a.addAlbum();\r\n break;\r\n\r\n case '+':\r\n System.out.println(\"Rajout d'une chanson existante dans un album\");\r\n a.choixChanson(c.getListChanson(),a);\r\n break;\r\n\r\n case '|':\r\n System.out.println(\"Rajout d’un nouveau livre audio\");\r\n l.addLivreAudio();\r\n l.afficheLivreAudio();\r\n break;\r\n\r\n case 'p':\r\n System.out.println(\"creation d’une nouvelle playlist à partir de chansons et livres audio existants\");\r\n p.addChansonLivreAudio(c,l);\r\n break;\r\n\r\n case '-':\r\n System.out.println(\"suppression d’une playlist\");\r\n p.deletePlaylist();\r\n break;\r\n\r\n case 's':\r\n System.out.println(\"Sauvegarde fichier xml respectif\");\r\n sauvegardeAlbum.writeXMLAlbum(a);\r\n sauvegardePlaylist.writeXMLPlaylist(p);\r\n sauvegardeElement.writeXMLElement(c,l);\r\n break;\r\n\r\n case 'h':\r\n Help help = new Help();\r\n break;\r\n\r\n case 'x':\r\n break;\r\n\r\n default :\r\n System.out.println(\"Bad choice . Try again . \");\r\n break;\r\n }\r\n\r\n }while(choice.charAt(0) != 'x');\r\n\r\n }catch (Exception e){//On gere les exceptions grace a au catch\r\n System.out.println(\"Erreur\");\r\n }\r\n }", "title": "" }, { "docid": "5a8f92c684c6857fb2c8ea95352dfa05", "score": "0.5470502", "text": "public void setFilaDatosExportarXmlCajaEgreso(CajaEgreso cajaegreso,Document document,Element element) {\r\n\t\t\r\n\r\n\t\tElement elementId = document.createElement(CajaEgresoConstantesFunciones.ID);\r\n\t\telementId.appendChild(document.createTextNode(cajaegreso.getId().toString().trim()));\r\n\t\telement.appendChild(elementId);\r\n\r\n\t\tif(parametroGeneralUsuario.getcon_exportar_campo_version()){\r\n\r\n\t\tElement elementVersionRow = document.createElement(CajaEgresoConstantesFunciones.VERSIONROW);\r\n\t\telementVersionRow.appendChild(document.createTextNode(cajaegreso.getVersionRow().toString().trim()));\r\n\t\telement.appendChild(elementVersionRow);\r\n\t\t}\r\n\r\n\r\n\t\tElement elementempresa_descripcion = document.createElement(CajaEgresoConstantesFunciones.IDEMPRESA);\r\n\t\telementempresa_descripcion.appendChild(document.createTextNode(cajaegreso.getempresa_descripcion()));\r\n\t\telement.appendChild(elementempresa_descripcion);\r\n\r\n\t\tElement elementsucursal_descripcion = document.createElement(CajaEgresoConstantesFunciones.IDSUCURSAL);\r\n\t\telementsucursal_descripcion.appendChild(document.createTextNode(cajaegreso.getsucursal_descripcion()));\r\n\t\telement.appendChild(elementsucursal_descripcion);\r\n\r\n\t\tElement elementusuario_descripcion = document.createElement(CajaEgresoConstantesFunciones.IDUSUARIO);\r\n\t\telementusuario_descripcion.appendChild(document.createTextNode(cajaegreso.getusuario_descripcion()));\r\n\t\telement.appendChild(elementusuario_descripcion);\r\n\r\n\t\tElement elementcaja_descripcion = document.createElement(CajaEgresoConstantesFunciones.IDCAJA);\r\n\t\telementcaja_descripcion.appendChild(document.createTextNode(cajaegreso.getcaja_descripcion()));\r\n\t\telement.appendChild(elementcaja_descripcion);\r\n\r\n\t\tElement elementturnopunven_descripcion = document.createElement(CajaEgresoConstantesFunciones.IDTURNOPUNVEN);\r\n\t\telementturnopunven_descripcion.appendChild(document.createTextNode(cajaegreso.getturnopunven_descripcion()));\r\n\t\telement.appendChild(elementturnopunven_descripcion);\r\n\r\n\t\tElement elementsecuencial = document.createElement(CajaEgresoConstantesFunciones.SECUENCIAL);\r\n\t\telementsecuencial.appendChild(document.createTextNode(cajaegreso.getsecuencial().trim()));\r\n\t\telement.appendChild(elementsecuencial);\r\n\r\n\t\tElement elementfecha = document.createElement(CajaEgresoConstantesFunciones.FECHA);\r\n\t\telementfecha.appendChild(document.createTextNode(cajaegreso.getfecha().toString().trim()));\r\n\t\telement.appendChild(elementfecha);\r\n\r\n\t\tElement elementhora = document.createElement(CajaEgresoConstantesFunciones.HORA);\r\n\t\telementhora.appendChild(document.createTextNode(cajaegreso.gethora().toString().trim()));\r\n\t\telement.appendChild(elementhora);\r\n\r\n\t\tElement elementvalor = document.createElement(CajaEgresoConstantesFunciones.VALOR);\r\n\t\telementvalor.appendChild(document.createTextNode(cajaegreso.getvalor().toString().trim()));\r\n\t\telement.appendChild(elementvalor);\r\n\t}", "title": "" }, { "docid": "1e3e77c70e1d93321b31c72b8db3fd7d", "score": "0.54470336", "text": "public void arvoreArquivo() {\n try { \n File file = new File(\"arvore.txt\");\n FileOutputStream fileStream = new FileOutputStream(file);\n ObjectOutput out = new ObjectOutputStream(fileStream);\n inOrder(root, out);\n out.close();\n fileStream.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "title": "" }, { "docid": "9c3016e6158ceb65efc85ce092a96032", "score": "0.5442864", "text": "String getXML();", "title": "" }, { "docid": "5c57f806f0ef5ccb37165e945e191f7a", "score": "0.54355973", "text": "public void execute() {\r\n // Must have something to run the source generator on\r\n if (_xmlInstanceFile == null && _xmlInstanceDir == null \r\n && _xmlInstanceFileSets.size() == 0) {\r\n throw new BuildException(NO_XML_DOCUMENT_MSG);\r\n }\r\n\r\n config();\r\n\r\n // process just the file specified\r\n if (_xmlInstanceFile != null) {\r\n processFile(_xmlInstanceFile.getAbsolutePath(), _xmlSchemaFileName);\r\n }\r\n\r\n // process all files in the given directory\r\n if (_xmlInstanceDir != null && _xmlInstanceDir.exists() && _xmlInstanceDir.isDirectory()) {\r\n log(\"Given XML schema file name will be ignored.\");\r\n DirectoryScanner ds = this.getDirectoryScanner(_xmlInstanceDir);\r\n\r\n String[] files = ds.getIncludedFiles();\r\n for (int i = 0; i < files.length; i++) {\r\n String filePath = _xmlInstanceDir.getAbsolutePath() + File.separator + files[i];\r\n processFile(filePath, null);\r\n }\r\n }\r\n\r\n // process all files of the given FileSet\r\n for (int i = 0; i < _xmlInstanceFileSets.size(); i++) {\r\n log(\"Given XML schema file name will be ignored.\");\r\n FileSet fs = (FileSet) _xmlInstanceFileSets.elementAt(i);\r\n DirectoryScanner ds = fs.getDirectoryScanner(getProject());\r\n File subdir = fs.getDir(getProject());\r\n\r\n String[] files = ds.getIncludedFiles();\r\n for (int j = 0; j < files.length; j++) {\r\n String filePath = subdir.getAbsolutePath() + File.separator + files[j];\r\n processFile(filePath, null);\r\n }\r\n }\r\n }", "title": "" }, { "docid": "bef6f2012e4a4994f975421b77bc5ab2", "score": "0.54350686", "text": "private void cargarVista() {\n rv = findViewById(R.id.recyclerCarpeta);\n rv.setHasFixedSize(false);\n\n RecyclerView.LayoutManager lm = new LinearLayoutManager(this);\n rv.setLayoutManager(lm);\n\n lblNoResult = findViewById(R.id.lblNoResults);\n lblNoResult.setVisibility(View.INVISIBLE);\n\n root = findViewById(R.id.rootCarpeta);\n\n if (path == null)\n path = Archivo.ROOT_PATH;\n else\n setTitle(new File(path).getAbsolutePath().substring(20));\n\n getFiles();\n }", "title": "" }, { "docid": "bf080d0d3c869bfce8bcaae32ac0431b", "score": "0.5433324", "text": "public void setFilaDatosExportarXmlLiquidacionImpor(LiquidacionImpor liquidacionimpor,Document document,Element element) {\r\n\t\t\r\n\r\n\t\tElement elementId = document.createElement(LiquidacionImporConstantesFunciones.ID);\r\n\t\telementId.appendChild(document.createTextNode(liquidacionimpor.getId().toString().trim()));\r\n\t\telement.appendChild(elementId);\r\n\r\n\t\tif(parametroGeneralUsuario.getcon_exportar_campo_version()){\r\n\r\n\t\tElement elementVersionRow = document.createElement(LiquidacionImporConstantesFunciones.VERSIONROW);\r\n\t\telementVersionRow.appendChild(document.createTextNode(liquidacionimpor.getVersionRow().toString().trim()));\r\n\t\telement.appendChild(elementVersionRow);\r\n\t\t}\r\n\r\n\r\n\t\tElement elementempresa_descripcion = document.createElement(LiquidacionImporConstantesFunciones.IDEMPRESA);\r\n\t\telementempresa_descripcion.appendChild(document.createTextNode(liquidacionimpor.getempresa_descripcion()));\r\n\t\telement.appendChild(elementempresa_descripcion);\r\n\r\n\t\tElement elementsucursal_descripcion = document.createElement(LiquidacionImporConstantesFunciones.IDSUCURSAL);\r\n\t\telementsucursal_descripcion.appendChild(document.createTextNode(liquidacionimpor.getsucursal_descripcion()));\r\n\t\telement.appendChild(elementsucursal_descripcion);\r\n\r\n\t\tElement elementcentrocosto_descripcion = document.createElement(LiquidacionImporConstantesFunciones.IDCENTROCOSTO);\r\n\t\telementcentrocosto_descripcion.appendChild(document.createTextNode(liquidacionimpor.getcentrocosto_descripcion()));\r\n\t\telement.appendChild(elementcentrocosto_descripcion);\r\n\r\n\t\tElement elementcuentacontable_descripcion = document.createElement(LiquidacionImporConstantesFunciones.IDCUENTACONTABLE);\r\n\t\telementcuentacontable_descripcion.appendChild(document.createTextNode(liquidacionimpor.getcuentacontable_descripcion()));\r\n\t\telement.appendChild(elementcuentacontable_descripcion);\r\n\r\n\t\tElement elementpais_descripcion = document.createElement(LiquidacionImporConstantesFunciones.IDPAIS);\r\n\t\telementpais_descripcion.appendChild(document.createTextNode(liquidacionimpor.getpais_descripcion()));\r\n\t\telement.appendChild(elementpais_descripcion);\r\n\r\n\t\tElement elementpuerto_descripcion = document.createElement(LiquidacionImporConstantesFunciones.IDPUERTO);\r\n\t\telementpuerto_descripcion.appendChild(document.createTextNode(liquidacionimpor.getpuerto_descripcion()));\r\n\t\telement.appendChild(elementpuerto_descripcion);\r\n\r\n\t\tElement elementnombre = document.createElement(LiquidacionImporConstantesFunciones.NOMBRE);\r\n\t\telementnombre.appendChild(document.createTextNode(liquidacionimpor.getnombre().trim()));\r\n\t\telement.appendChild(elementnombre);\r\n\r\n\t\tElement elementdescripcion = document.createElement(LiquidacionImporConstantesFunciones.DESCRIPCION);\r\n\t\telementdescripcion.appendChild(document.createTextNode(liquidacionimpor.getdescripcion().trim()));\r\n\t\telement.appendChild(elementdescripcion);\r\n\r\n\t\tElement elementfecha = document.createElement(LiquidacionImporConstantesFunciones.FECHA);\r\n\t\telementfecha.appendChild(document.createTextNode(liquidacionimpor.getfecha().toString().trim()));\r\n\t\telement.appendChild(elementfecha);\r\n\r\n\t\tElement elementfecha_liquidacion = document.createElement(LiquidacionImporConstantesFunciones.FECHALIQUIDACION);\r\n\t\telementfecha_liquidacion.appendChild(document.createTextNode(liquidacionimpor.getfecha_liquidacion().toString().trim()));\r\n\t\telement.appendChild(elementfecha_liquidacion);\r\n\r\n\t\tElement elementflete = document.createElement(LiquidacionImporConstantesFunciones.FLETE);\r\n\t\telementflete.appendChild(document.createTextNode(liquidacionimpor.getflete().toString().trim()));\r\n\t\telement.appendChild(elementflete);\r\n\r\n\t\tElement elementtipo = document.createElement(LiquidacionImporConstantesFunciones.TIPO);\r\n\t\telementtipo.appendChild(document.createTextNode(liquidacionimpor.gettipo().trim()));\r\n\t\telement.appendChild(elementtipo);\r\n\t}", "title": "" }, { "docid": "55f8128c95ff5de82b102ed3779ea9dc", "score": "0.5431026", "text": "private void guardarComoProyecto() {\n\t\tJFileChooser fileChooser = new JFileChooser();\r\n\t\t// Aplicamos filtro\r\n\t\tFiltreSimple filtro = new FiltreSimple(\"Ficheros XML\",\".xml\");\r\n\t\tfileChooser.setFileFilter(filtro);\r\n\t\t// Directorio por defecto\r\n\t\tfileChooser.setCurrentDirectory(new File(\".//proyectos//\"));\r\n\t\tint seleccion = fileChooser.showSaveDialog(null);\r\n\t\t// Controlamos la selección\r\n\t\tif (seleccion == JFileChooser.APPROVE_OPTION) {\r\n\r\n\t\t\tficheroProyecto = fileChooser.getSelectedFile();\r\n\t\t\tString curDir = System.getProperty(\"user.dir\");\r\n\t\t\tcurDir = curDir + \"//plantillas//proyectoEIA.dtd\";\r\n\t\t\tXMLProyecto xmlProy = new XMLProyecto(curDir);\r\n\t\t\t//XMLProyecto xmlProy = new XMLProyecto(\"..//plantillas//proyectoEIA.dtd\");\r\n\t\t\tif(ficheroProyecto.isFile()){\r\n\t\t\t\tint opcion = JOptionPane.showConfirmDialog (null,\r\n\t\t\t\t\t\t\"¿Está seguro que desea reemplazar este archivo?\",\r\n\t\t\t\t\t\t\"Reemplazar archivo\",\r\n\t\t\t\t\t\tJOptionPane.YES_NO_OPTION);\r\n\t\t\t\tif (opcion==JOptionPane.YES_OPTION){\r\n\t\t\t\t\txmlProy.escribir(proyecto,ficheroProyecto.getAbsolutePath());\r\n\t\t\t\t}\r\n\t\t\t}else{\r\n\t\t\t\txmlProy.escribir(proyecto,ficheroProyecto.getAbsolutePath()+\".xml\");\r\n\t\t\t\tficheroProyecto = new File(ficheroProyecto.getAbsolutePath()+\".xml\");\r\n\t\t\t}\r\n\r\n\t\t\tguardarMenuItem.setEnabled(true);\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "538f511a2baf2f54d92d6c7de33dc768", "score": "0.5424271", "text": "public XmlReader(String caminho) {\n xmlPathname = caminho;\n System.out.println(\"Dentro do xlmReader caminho=\"+caminho);\n }", "title": "" }, { "docid": "02810d28a14d211f640ffdbaa7f91988", "score": "0.5418639", "text": "private Product leerRegistro() {\n int id = -1;\n String name = \"\";\n String category = \"\";\n String price = \"\";\n String comments = \"\";\n String photoFileName = \"\";\n try {\n parser.require(XmlPullParser.START_TAG, NAMESPACE, TAG_REGISTRO);\n while (parser.next() != XmlPullParser.END_TAG) {\n if (parser.getEventType() != XmlPullParser.START_TAG) {\n continue;\n }\n String tagName = parser.getName();\n if (tagName.equals(\"id\")) {\n id = Integer.valueOf(readText(tagName));\n } else if (tagName.equals(\"name\")) {\n name = readText(tagName);\n } else if (tagName.equals(\"category\")) {\n category = readText(tagName);\n } else if (tagName.equals(\"price\")) {\n price = readText(tagName);\n } else if (tagName.equals(\"comments\")) {\n comments = readText(tagName);\n } else if (tagName.equals(\"photo_file_name\")) {\n photoFileName = readText(tagName);\n } else {\n skip();\n }\n }\n } catch (XmlPullParserException e) {\n e.printStackTrace();\n } catch (IOException e) {\n e.printStackTrace();\n }\n Product product = new Product(id, name, category, price, comments, photoFileName);\n return product;\n }", "title": "" }, { "docid": "8e054c3d3f474b3772108ef84bd23002", "score": "0.5402842", "text": "public void run()\n {\n try\n {\n Object os = System.getProperty( \"os.name\" );\n File file;\n Object chkDir;\n DocumentBuilder builder;\n Object xmlDoc;\n Object domSource;\n Object streamResult;\n TransformerFactory tf;\n Transformer serializer;\n\n if( ((String) os).equals( \"Windows Vista\" ) )\n {\n chkDir = new File( new StringBuilder().append( System.getProperty( \"user.home\" ) ).append( \"\\\\AppData\\\\Local\\\\VirtualStore\\\\Program Files\\\\zBlueSoftware\\\\FSXPlanner\" ).toString() );\n ((File) chkDir).mkdirs();\n file = new File( new StringBuilder().append( System.getProperty( \"user.home\" ) ).append( \"\\\\AppData\\\\Local\\\\VirtualStore\\\\Program Files\\\\zBlueSoftware\\\\FSXPlanner\\\\recentFiles.xml\" ).toString() );\n }\n else if( ((String) os).equals( \"Windows XP\" ) )\n {\n chkDir = new File( new StringBuilder().append( System.getProperty( \"user.home\" ) ).append( \"\\\\Application Data\\\\zBlueSoftware\\\\FSXPlanner\" ).toString() );\n ((File) chkDir).mkdirs();\n file = new File( new StringBuilder().append( System.getProperty( \"user.home\" ) ).append( \"\\\\Application Data\\\\zBlueSoftware\\\\FSXPlanner\\\\recentFiles.xml\" ).toString() );\n }\n else\n file = new File( new StringBuilder().append( System.getProperty( \"user.dir\" ) ).append( File.separator ).append( \"conf\" ).append( File.separator ).append( \"recentFiles.xml\" ).toString() );\n chkDir = DocumentBuilderFactory.newInstance();\n builder = ((DocumentBuilderFactory) chkDir).newDocumentBuilder();\n xmlDoc = builder.newDocument();\n RecentFileEngine.access$000( this$0, (Document) xmlDoc );\n domSource = new DOMSource( (Node) xmlDoc );\n streamResult = new StreamResult( file );\n tf = TransformerFactory.newInstance();\n serializer = tf.newTransformer();\n serializer.setOutputProperty( \"encoding\", \"ISO-8859-1\" );\n serializer.setOutputProperty( \"doctype-system\", \"recent-files.dtd\" );\n serializer.setOutputProperty( \"indent\", \"yes\" );\n serializer.setOutputProperty( \"{http://xml.apache.org/xslt}indent-amount\", \"4\" );\n serializer.transform( (Source) domSource, (Result) streamResult );\n }\n catch( ParserConfigurationException parserconfigurationexception1 )\n {\n LogEngine.getInstance().log( (Throwable) parserconfigurationexception1 );\n }\n catch( TransformerException transformerexception1 )\n {\n LogEngine.getInstance().log( (Throwable) transformerexception1 );\n }\n catch( NullPointerException nullpointerexception1 )\n {\n LogEngine.getInstance().log( nullpointerexception1 );\n }\n }", "title": "" }, { "docid": "e5699f61b794e1f48d5b4a6e2115aca9", "score": "0.5399322", "text": "private void getFiles() {\n archivos = new LinkedList<>();\n Log.d(\"PATH\", path);\n carpeta = new Archivo(path, this);\n File[] archivos = carpeta.listFiles();\n List<Archivo> fileList = new ArrayList<>();\n for (File file : archivos) {\n fileList.add(new Archivo(file.getAbsolutePath(), this));\n }\n this.archivos = this.fileUtils.getSortedFiles(fileList);\n this.adapter = new AdaptadorCarpeta(this.archivos, this, this);\n rv.setAdapter(this.adapter);\n }", "title": "" }, { "docid": "a431ab62f16e2660f7b229089b94dbc6", "score": "0.5396153", "text": "public static void reanudarPartido() {\n\t\tManejoXMLeer leer = new ManejoXMLeer(\"Cancha.xml\");\n\t\tcancha = leer.lecturaXMLCancha();\n\t}", "title": "" }, { "docid": "92a10edc5774840e9b94fd5d9e6e4bf3", "score": "0.5394888", "text": "public void parse(){\n\t\t\n\t\tthis.files = null;\n\t\tthis.nzbHandler = new NzbHandler();\n\t\t\n\t\ttry {\n\t\t\tthis.nzbReader = XMLReaderFactory.createXMLReader();\n\t\t} catch (SAXException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\tthis.nzbReader.setContentHandler(this.nzbHandler);\n\t\t\n\t\ttry {\n\t\t\tthis.nzbReader.parse(this.nzbFilePath);\n\t\t} catch (IOException 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}\n\t\t\n\t\tthis.files = this.nzbHandler.getFiles();\n\t\t\n\t}", "title": "" }, { "docid": "3b286fb0d71782d047f188e3949f0b04", "score": "0.53926015", "text": "protected void processFile() throws Exception {\n processFile(QUARTZ_XML_DEFAULT_FILE_NAME);\n}", "title": "" }, { "docid": "6e5f3fe6bc790eb85c96fa9184a8dcf5", "score": "0.53664285", "text": "public void loadData() throws XmlException {\n\t\t//(ri)legge l'xml\n\t\tlinks = new LinksXml();\n\t\t// mappa per ottenere i nodi\n\t\tMap<String, DefaultMutableTreeNode> nodiCategorie = new HashMap<String, DefaultMutableTreeNode>();\n\n\t\trootNode = new DefaultMutableTreeNode(Messages.getString(\"LinksPanel.6\")); //$NON-NLS-1$\n\t\ttreeModel = new DefaultTreeModel(rootNode);\n\n\t\t/* cicla su tutti i link */\n\t\tList<Link> lista = links.getLinks();\n\t\tfor (Link l : lista) {\n\t\t\t/* gestisce le categorie */\n\t\t\tDefaultMutableTreeNode target;\n\t\t\tif (!nodiCategorie.containsKey(l.categoria)) {\n\t\t\t\tDefaultMutableTreeNode c = new DefaultMutableTreeNode(\n\t\t\t\t\t\tl.categoria);\n\t\t\t\trootNode.add(c);\n\t\t\t\tnodiCategorie.put(l.categoria, c);\n\t\t\t\ttarget = c;\n\t\t\t} else {\n\t\t\t\ttarget = nodiCategorie.get(l.categoria);\n\t\t\t}\n\t\t\t// aggiunge il link all'albero\n\t\t\tDefaultMutableTreeNode currItem = new DefaultMutableTreeNode(l);\n\t\t\ttarget.add(currItem);\n\t\t}\n\t\tthis.tree.setModel(treeModel);\n\t}", "title": "" }, { "docid": "adef357f5f52db8d174692c147a938bb", "score": "0.5358773", "text": "public static void main(String[]args) throws FileNotFoundException {\n\n\n XMLDecoder xmlDecoder = new XMLDecoder(new BufferedInputStream(new FileInputStream(\"poc.xml\")));\n xmlDecoder.readObject();\n xmlDecoder.close();\n// System.out.println(myInfo);\n// System.out.println(\"address : \" + myInfo.getMyAddress());\n// System.out.println(\"age : \" + myInfo.getMyAge());\n// System.out.println(\"education : \" + myInfo.getMyEducation());\n// System.out.println(\"name : \" + myInfo.getMyName());\n\n }", "title": "" }, { "docid": "8271e0d20af0dea6bf9f09380f7514a6", "score": "0.5353624", "text": "@Override\n\tpublic void exportarDados(Cliente cliente) throws Exception {\n\t\tDocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();\n\t\tDocumentBuilder builder = factory.newDocumentBuilder();\n\t\tDocument document = builder.newDocument();\n\n\t\t// criando o nů raiz do documento XML <CLIENTE>\n\t\tElement root = document.createElement(\"CLIENTE\");\n\t\tdocument.appendChild(root);\n\n\t\t// criando um subnůs do documento XML\n\t\tElement idCliente = document.createElement(\"IDCLIENTE\");\n\t\tidCliente.setTextContent(cliente.getIdCliente().toString());\n\t\troot.appendChild(idCliente);\n\n\t\tElement nome = document.createElement(\"NOME\");\n\t\tnome.setTextContent(cliente.getNome());\n\t\troot.appendChild(nome);\n\n\t\tElement email = document.createElement(\"EMAIL\");\n\t\temail.setTextContent(cliente.getEmail());\n\t\troot.appendChild(email);\n\n\t\tElement cpf = document.createElement(\"CPF\");\n\t\tcpf.setTextContent(cliente.getCpf());\n\t\troot.appendChild(cpf);\n\n\t\t// finalizando o documento XML e grava-lo em um arquivo..\n\t\tTransformerFactory transformerFactory = TransformerFactory.newInstance();\n\t\tTransformer transformer = transformerFactory.newTransformer();\n\t\tDOMSource domSource = new DOMSource(document);\n\n\t\tStreamResult stream = new StreamResult(new File(PATH + \"cliente.xml\"));\n\t\ttransformer.transform(domSource, stream); // arquivo XML ť gravado\n\t}", "title": "" }, { "docid": "e1f45a9325fe469dedaec0e2feb9a0f9", "score": "0.5334146", "text": "public List<Customer> getDataFromXML(String filename, String filter) throws ParseException,\n XPathExpressionException {\n\n List<Customer> data = new ArrayList<>();\n\n File xmlFile = new File(filename);\n Document document = null;\n try {\n DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();\n factory.setNamespaceAware(true);\n DocumentBuilder documentBuilder = factory.newDocumentBuilder();\n document = documentBuilder.parse(xmlFile);\n } catch (ParserConfigurationException | SAXException | IOException e) {\n e.printStackTrace();\n }\n\n XPathFactory xPathFactory = XPathFactory.newInstance();\n XPath xPath = xPathFactory.newXPath();\n XPathExpression xPathExpression = xPath.compile(filter);\n NodeList nodeList = (NodeList) xPathExpression.evaluate(document, XPathConstants.NODESET);\n\n// NodeList nodeList = document.getElementsByTagName(\"customer\");\n\n for (int i = 0; i < nodeList.getLength(); i++) {\n Customer customer = new Customer();\n data.add(customer);\n\n Element customerElement = (Element) nodeList.item(i);\n String idAsString = customerElement.getAttribute(Customer.ID);\n customer.setId(Integer.parseInt(idAsString));\n\n customer.setName(getTextFromElement(customerElement, Customer.NAME));\n customer.setAge(Integer.parseInt(getTextFromElement(customerElement, Customer.AGE)));\n customer.setBalance(new BigDecimal(getTextFromElement(customerElement, Customer.BALANCE)));\n customer.setActive(Boolean.parseBoolean(getTextFromElement(customerElement, Customer.ACTIVE)));\n customer.setAbout(getTextFromElement(customerElement, Customer.ABOUT));\n customer.setPhone(getTextFromElement(customerElement, Customer.PHONE));\n\n String joined = getTextFromElement(customerElement, Customer.JOINED);\n DateFormat dateFormat = new SimpleDateFormat(XMLDATEFORMAT);\n customer.setJoined(dateFormat.parse(joined));\n }\n return data;\n }", "title": "" }, { "docid": "658cfc8cde9a07f5d8654702aab236bf", "score": "0.53337294", "text": "private void saveFilterXML(String filename, StringBuffer buf) {\n\t\tif(buf==null)\n\t\t\treturn;\n\t\t\n\t\tFileOutputStream out = null;\n\t\ttry {\n\t\t\tout = new FileOutputStream(filename);\n\t\t\tout.write(buf.toString().getBytes());\n\t\t\tout.close();\n\t\t} catch (Exception e)\n\t\t{\n\t\t\tlogger.error(\"saveFileterXML\",e);\n\t\t}\n\t\t\n\t}", "title": "" }, { "docid": "363ec76ccd6068847f06f3e6ed7b255c", "score": "0.53301245", "text": "private void readXML(String type){\n try{\n File fXmlFile = new File(\"cards.xml\");\n DocumentBuilderFactory dbFactory = DocumentBuilderFactory.newInstance();\n DocumentBuilder dBuilder = dbFactory.newDocumentBuilder();\n Document doc = dBuilder.parse(fXmlFile);\n doc.getDocumentElement().normalize();\n NodeList nList = doc.getElementsByTagName(\"card\");\n for (int i = 0; i < nList.getLength(); i++){\n Node nNode = nList.item(i);\n if (nNode.getNodeType() == Node.ELEMENT_NODE){\n Element eElement = (Element) nNode;\n\n if (\"chance\".equals(type)){\n if (eElement.hasAttribute(\"category\") && eElement.getAttribute(\"category\").equals(\"chance\")){\n String id = eElement.getElementsByTagName(\"id_number\").item(0).getTextContent();\n String text = eElement.getElementsByTagName(\"text\").item(0).getTextContent();\n String event_type = eElement.getElementsByTagName(\"event_type\").item(0).getTextContent();\n String event_value = eElement.getElementsByTagName(\"event_value\").item(0).getTextContent();\n \n Card chanceCard = new Card(id, text, \"Chance\", event_type, event_value);\n chanceDeck.add(chanceCard); \n }\n }\n if (\"cc\".equals(type)){\n if (eElement.hasAttribute(\"category\") && eElement.getAttribute(\"category\").equals(\"chargerChest\")){\n String id = eElement.getElementsByTagName(\"id_number\").item(0).getTextContent();\n String text = eElement.getElementsByTagName(\"text\").item(0).getTextContent();\n String event_type = eElement.getElementsByTagName(\"event_type\").item(0).getTextContent();\n String event_value = eElement.getElementsByTagName(\"event_value\").item(0).getTextContent();\n \n Card ccCard = new Card(id, text, \"Charger Chest\",event_type, event_value);\n ccDeck.add(ccCard);\n }\n }\n }\n }\n } catch (ParserConfigurationException | SAXException | IOException | DOMException e){\n\n }\n }", "title": "" }, { "docid": "763218b886fcbba295f524521d49da35", "score": "0.5326712", "text": "public void gerarRelatorioDOCX(String nomeArquivoJRXML, Collection<?> collection) throws IOException {\r\n\t\tJasperReport jasperReport;\r\n\t\tif(nomeArquivoJRXML != null && collection != null){\r\n\t\t\tif(collection.isEmpty()){\r\n\t\t\t\tmensagem.exibeMensagemRelatorioVazio();\r\n\t\t\t}else{\r\n\t\t\t\ttry {\r\n\t\t\t\t\tHttpServletResponse response = (HttpServletResponse) FacesContext.getCurrentInstance().getExternalContext().getResponse(); \r\n\t\t\t\t\tInputStream in = this.getClass().getClassLoader().getResourceAsStream(\"br/com/biblioteca/relatorio/jasper/\"+nomeArquivoJRXML+\".jrxml\");\r\n\t\t\t\t\tresponse.addHeader(\"Content-disposition\", \"attachment; filename=relatorio.docx\"); \r\n\t\t\t\t\tOutputStream os = response.getOutputStream(); \r\n\t\t\t\t\tJRDocxExporter docxExporter = new JRDocxExporter(); \r\n\t\t\t\t\tjasperReport = JasperCompileManager.compileReport(in);\r\n\t\t\t\t\tJasperPrint jasperPrint = JasperFillManager.fillReport(jasperReport, null, new JRBeanCollectionDataSource(collection));\r\n\t\t\t\t\tdocxExporter.setParameter(JRExporterParameter.JASPER_PRINT, jasperPrint); \r\n\t\t\t\t\tdocxExporter.setParameter(JRExporterParameter.OUTPUT_STREAM, os); \r\n\t\t\t\t\tdocxExporter.exportReport(); \r\n\t\t\t\t\tFacesContext.getCurrentInstance().responseComplete(); \r\n\t\t\t\t} catch (JRException e) {\r\n\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "072c2aaf21c38fb35b8568cec675c8a9", "score": "0.5321336", "text": "public void saveToXML() {\n \t\ttry {\n \t\t\tTransformerFactory transformerFactory = TransformerFactory\n \t\t\t\t\t.newInstance();\n \t\t\tTransformer transformer;\n \n \t\t\ttransformer = transformerFactory.newTransformer();\n \n \t\t\tDOMSource source = new DOMSource(doc);\n \t\t\t\n \t\t\tStreamResult result = new StreamResult(directory);\n \n \t\t\t// Output to console for testing\n \t\t\tStreamResult res = new StreamResult(System.out);\n \n \t\t\ttransformer.transform(source, result);\n \t\t\ttransformer.transform(source, res);\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}", "title": "" }, { "docid": "485e4ebae3f7c3e2702ad6e1b5572ae2", "score": "0.53137714", "text": "public static void CreateAnimalXML() throws Exception{\r\n\t\t//Create a JAXBContext\r\n\t\tJAXBContext context = JAXBContext.newInstance(Animal.class);//We specify the class we want for the XML\r\n\t\t//Get the unmarshaller\r\n\t\tUnmarshaller unmarshal = context.createUnmarshaller(); // we call the create a marshaller method from the context class\r\n\t\t//Unmarshal the Animal from a file\r\n\t\tSystem.out.println(\"Type the filename for the XML document (expected in the xmls folder): \");\r\n\t\tString fileName= reader.readLine();\r\n\t\tFile file= new File(\"_/xmls/\"+ fileName);\r\n\t\tAnimal animal= (Animal) unmarshal.unmarshal(file); //we do a cast to animal\r\n\t\t// now we need to output the dog to the data base\r\n\t\t//Print the animal\r\n\t\tSystem.out.println(\"Added to the data base: \"+ animal); //to see what It's added to the data base\r\n\t\t//Insert it\r\n\t\tanimalManager.add(animal);\r\n\t\t//We have the animal created\r\n}", "title": "" }, { "docid": "83cd9cb708bd8cfa0fb510401851c8a0", "score": "0.53134465", "text": "synchronized public void generarXMLProductos(int tiempo){\n\t\tArrayList<Producto> colProductos = candela.getProductos();\n\t\tElement root = new Element(\"Productos\");\n\t\tfor (int i = 0; i < colProductos.size(); i++) {\n\t\t\tElement producto = new Element(\"Producto\");\n\t\t\tproducto.setAttribute(\"codigo\",\n\t\t\t\t\tInteger.toString(colProductos.get(i).getCodigo()));\n\t\t\tproducto.setAttribute(\"descripcion\", colProductos.get(i)\n\t\t\t\t\t.getDescripcion());\n\t\t\tproducto.setAttribute(\"precio\",\n\t\t\t\t\tDouble.toString(colProductos.get(i).getPrecio()));\n\t\t\tproducto.setAttribute(\"cantidad\", Integer.toString(colProductos\n\t\t\t\t\t.get(i).getCantidadEnStock()));\n\t\t\tproducto.setAttribute(\"tipoProducto\",Integer.toString(colProductos.get(i).getTipoProducto()));\n\n\t\t\troot.addContent(producto);\n\t\t}\n\n\t\tDocument doc = new Document(root);//Creamos el documento\n\n\n\n\t\ttry {\n\n\n\t\t\tXMLOutputter salida = new XMLOutputter(Format.getPrettyFormat());\n\t\t\tFileOutputStream file = new FileOutputStream(directorioActual+\"productos.xml\");\n\t\t\tsalida.output(doc, file);\n\t\t\tfile.flush();\n\t\t\tfile.close();\n\t\t\tsalida.output(doc, System.out);\n\t\t\tThread.sleep(tiempo);\n\n\n\t\t} catch (Exception e) {\n\t\t\tSystem.out.println(\"Error al crear XML de Producto\");\n\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "title": "" }, { "docid": "e382a66cecab5b14bb15b0a24462e2c1", "score": "0.5312069", "text": "private void loadXML() {\n\t\tFileChooser fileChooser = new FileChooser();\n\t\tfileChooser.setTitle(myResources.getString(\"OpenResourceFile\"));\n\t\tfileChooser.getExtensionFilters().add(\n\t\t\t\tnew FileChooser.ExtensionFilter(\"XML File\", \"*.xml\"));\n\n\t\tfile = fileChooser.showOpenDialog(myStage);\n\t\tif (file != null) {\n\t\t\tparser = new Parser(file, myModel);\n\t\t\tparser.parseXmlFile();\n\t\t} else {\n\t\t\tSystem.err.println(\"Error Loading XML File\");\n\t\t}\n\n\t\trows = myModel.getRows();\n\t\tcols = myModel.getCols();\n\t\tmyRoot.setCenter(makeGrid());\n\n\t\tsetGridCellStates();\n\t}", "title": "" }, { "docid": "262afb4de17f59ef4d3a3ad0ba5318f5", "score": "0.53021926", "text": "public datParser(){\n\t\tSystem.out.println(\"Need both dat file and xml file!!\");\n\t}", "title": "" }, { "docid": "c30a4292e92a2c0dc87d075875afcd6a", "score": "0.53007543", "text": "public static void main(String args[]) {\n\t\t Node Cabecera = new Node(new TagLabel(\"Cabecera\"));\r\n\t\t Node Version = new Node((new TagText(\"Version\",\"1\")));\t\t\t \r\n\t\t List<Attribute> lAttrProd = new LinkedList <Attribute>();\r\n\t\t lAttrProd.add( new Attribute(\"TipoPersona\",\"1\"));\r\n\t\t lAttrProd.add( new Attribute(\"CUIT\",\"20123456784\"));\r\n\t\t lAttrProd.add( new Attribute(\"Matricula\",\"9999\"));\t\t \r\n\t\t Node Productor = new Node((new TagAttribute(\"Productor\",lAttrProd )));\t\t \t\t \r\n\t\t Node CantidadRegistros = new Node((new TagText(\"CantidadRegistros\",\"1\")));\r\n\t\t \r\n\t\t Cabecera.addChildren(Version);\r\n\t\t Cabecera.addChildren(Productor); \r\n\t\t Cabecera.addChildren(CantidadRegistros);\r\n\t\t\t\t \r\n\t\t // Registro ------------------------\t\t \r\n\t\t Node Registro = new Node(new TagLabel(\"Registro\"));\t\t \r\n\t\t Node NroOrden = new Node((new TagText(\"NroOrden\",\"10\")));\t\t \r\n\t\t Node FechaRegistro = new Node((new TagText(\"FechaRegistro\",\"2011-12-05\")));\r\n\t\t \r\n\t\t // Asegurados --------------\r\n\t\t Node Asegurados = new Node(new TagLabel(\"Asegurados\"));\r\n\t\t // Lista de asegurados\r\n\t\t List<Attribute> lAttrAseg1 = new LinkedList <Attribute>();\r\n\t\t lAttrAseg1.add( new Attribute(\"TipoAsegurado\",\"1\"));\r\n\t\t lAttrAseg1.add( new Attribute(\"NroDoc\",\"12345678\"));\r\n\t\t lAttrAseg1.add( new Attribute(\"Nombre\",\"Jos� P�rez\"));\t\t \r\n\t\t Node asegurado1 = new Node((new TagAttribute(\"Asegurado\",lAttrAseg1 )));\r\n\t\t//<Asegurado TipoAsegurado=\"1\" NroDoc=\"23456789\" Nombre=\"Nicolas Quiroga\" />\r\n\t\t Asegurados.addChildren(asegurado1);\t\t \r\n\t\t // -------------------------\r\n\t\t Node CPAProponente = new Node((new TagText(\"CPAProponente\",\"C1090AAX\")));\t \r\n\t\r\n\t\t Node ObsProponente = new Node((new TagText(\"ObsProponente\",\"Esto es una observaci�n de un proponente\")));\r\n\t\t\t\t \r\n\t\t Node CPACantidad = new Node((new TagText(\"CPACantidad\",\"2\")));\r\n\r\n\t\t Node CodigosPostales = new Node(new TagLabel(\"CodigosPostales\"));\t \t\t \r\n\t\t // Lista de codigos postales\r\n\t\t Node CPA1 = new Node((new TagText(\"CPA\",\"C1091AAN\")));\r\n\t\t Node CPA2 = new Node((new TagText(\"CPA\",\"C1067ABC\")));\r\n CodigosPostales.addChildren(CPA1);\r\n CodigosPostales.addChildren(CPA2);\r\n\t\t /*\r\n\t\t * \r\n */\r\n Node CiaID = new Node((new TagText(\"CiaID\",\"9999\")));\r\n Node BienAsegurado = new Node((new TagText(\"BienAsegurado\",\"900000\")));\r\n Node Ramo = new Node((new TagText(\"Ramo\",\"2\")));\r\n Node SumaAsegurada = new Node((new TagText(\"SumaAsegurada\",\"90000\")));\r\n\t \r\n\t /*\r\n\t <SumaAseguradaTipo>1</SumaAseguradaTipo>\r\n\t <Cobertura FechaDesde=\"2012-01-01\" FechaHasta=\"2012-12-01\" />\r\n\t <Observacion Tipo=\"1\" Poliza=\"12152\" />\r\n\t <Flota>0</Flota>\r\n\t <OperacionOrigen>1</OperacionOrigen>\t\t\t \r\n\t\t */\r\n\t\t \r\n\t\t Registro.addChildren(NroOrden);\t\t \r\n\t\t Registro.addChildren(FechaRegistro);\r\n\t\t Registro.addChildren(Asegurados);\t\r\n\t\t Registro.addChildren(CPAProponente);\r\n\t\t Registro.addChildren(ObsProponente);\r\n\t\t Registro.addChildren(CPACantidad);\r\n\t\t Registro.addChildren(CodigosPostales );\r\n\t\t \r\n\t\t Registro.addChildren(CiaID);\r\n\t\t Registro.addChildren(BienAsegurado);\r\n\t\t Registro.addChildren(Ramo);\r\n\t\t Registro.addChildren(SumaAsegurada);\t\t \r\n\t\t \r\n\t\t // ------------------------\r\n\t\t \r\n\t\t Node SSN = new Node(new TagLabel(\"SSN\"));\r\n\t\t SSN.addChildren(Cabecera);\r\n\t\t \r\n\t\t Node detalle = new Node(new TagLabel(\"Detalle\"));\r\n\t\t detalle.addChildren(Registro);\r\n\t\t \r\n\t\t SSN.addChildren(detalle);\t\t \r\n\t\t try {\r\n\t\t\tBuilXmlHelper.toXml(SSN,\"D:/Usuarios/SUP/proyecto/surassur/ROS_SSN.xml\");\r\n\t\t} catch (IOException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t} catch (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 }", "title": "" }, { "docid": "09cc7b53d398dc5816a7c1d9f118e754", "score": "0.5300548", "text": "private Mensajes leerRegistro() {\n //TODO: Crear una variable para cada dato del objeto\n String id = null;\n String asunto = null;\n String contenido = null;\n String remitente = null;\n String grupo = null;\n try {\n parser.require(XmlPullParser.START_TAG, NAMESPACE, TAG_REGISTRO);\n while (parser.next() != XmlPullParser.END_TAG) {\n if (parser.getEventType() != XmlPullParser.START_TAG) {\n continue;\n }\n String tagName = parser.getName();\n //TODO: Repetir para cada dato del objeto\n if (tagName.equals(\"ID\")) {\n id = readText(tagName);\n } else if (tagName.equals(\"ASUNTO\")) {\n asunto = readText(tagName);\n } else if (tagName.equals(\"CONTENIDO\")) {\n contenido = readText(tagName);\n } else if (tagName.equals(\"REMITENTE\")) {\n remitente = readText(tagName);\n } else if (tagName.equals(\"GRUPO\")) {\n grupo = readText(tagName);\n } else {\n skip();\n }\n }\n } catch (XmlPullParserException e) {\n e.printStackTrace();\n } catch (IOException e) {\n e.printStackTrace();\n }\n //TODO: Retornar un objeto usando los datos obtenidos\n return new Mensajes(id,asunto, contenido, remitente, grupo);\n }", "title": "" }, { "docid": "cd7568171f1d8ee0c2b88938d79a83ba", "score": "0.52985495", "text": "public SubirArchivo() {\n PageFactory.initElements(DriverContext.getDriver(), this);\n }", "title": "" }, { "docid": "1ee65edf4bb97b9a5f584f91d5e4b4ca", "score": "0.5298368", "text": "public manipulateurXML(String nomRacine, Boolean aPartirDunDocumentExistant, String fichier) {\n\n\t\tif (aPartirDunDocumentExistant) {\n\t\t\tdeFichierXMLversJDOM(fichier);\n\t\t} else {\n\t\t\tracine = new Element(nomRacine);\n\t\t\tthis.document = new Document(racine);\n\t\t}\n\n\t}", "title": "" }, { "docid": "c2a7a49e71a833803067dd6e35dffcb8", "score": "0.52884823", "text": "public void setFilaDatosExportarXmlFormatoNomiPreguntaNomi(FormatoNomiPreguntaNomi formatonomipreguntanomi,Document document,Element element) {\r\n\t\t\r\n\r\n\t\tElement elementId = document.createElement(FormatoNomiPreguntaNomiConstantesFunciones.ID);\r\n\t\telementId.appendChild(document.createTextNode(formatonomipreguntanomi.getId().toString().trim()));\r\n\t\telement.appendChild(elementId);\r\n\r\n\t\tif(parametroGeneralUsuario.getcon_exportar_campo_version()){\r\n\r\n\t\tElement elementVersionRow = document.createElement(FormatoNomiPreguntaNomiConstantesFunciones.VERSIONROW);\r\n\t\telementVersionRow.appendChild(document.createTextNode(formatonomipreguntanomi.getVersionRow().toString().trim()));\r\n\t\telement.appendChild(elementVersionRow);\r\n\t\t}\r\n\r\n\r\n\t\tElement elementempresa_descripcion = document.createElement(FormatoNomiPreguntaNomiConstantesFunciones.IDEMPRESA);\r\n\t\telementempresa_descripcion.appendChild(document.createTextNode(formatonomipreguntanomi.getempresa_descripcion()));\r\n\t\telement.appendChild(elementempresa_descripcion);\r\n\r\n\t\tElement elementsucursal_descripcion = document.createElement(FormatoNomiPreguntaNomiConstantesFunciones.IDSUCURSAL);\r\n\t\telementsucursal_descripcion.appendChild(document.createTextNode(formatonomipreguntanomi.getsucursal_descripcion()));\r\n\t\telement.appendChild(elementsucursal_descripcion);\r\n\r\n\t\tElement elementformatonomi_descripcion = document.createElement(FormatoNomiPreguntaNomiConstantesFunciones.IDFORMATONOMI);\r\n\t\telementformatonomi_descripcion.appendChild(document.createTextNode(formatonomipreguntanomi.getformatonomi_descripcion()));\r\n\t\telement.appendChild(elementformatonomi_descripcion);\r\n\r\n\t\tElement elementfactornomi_descripcion = document.createElement(FormatoNomiPreguntaNomiConstantesFunciones.IDFACTORNOMI);\r\n\t\telementfactornomi_descripcion.appendChild(document.createTextNode(formatonomipreguntanomi.getfactornomi_descripcion()));\r\n\t\telement.appendChild(elementfactornomi_descripcion);\r\n\r\n\t\tElement elementpreguntanomi_descripcion = document.createElement(FormatoNomiPreguntaNomiConstantesFunciones.IDPREGUNTANOMI);\r\n\t\telementpreguntanomi_descripcion.appendChild(document.createTextNode(formatonomipreguntanomi.getpreguntanomi_descripcion()));\r\n\t\telement.appendChild(elementpreguntanomi_descripcion);\r\n\r\n\t\tElement elementponderacion = document.createElement(FormatoNomiPreguntaNomiConstantesFunciones.PONDERACION);\r\n\t\telementponderacion.appendChild(document.createTextNode(formatonomipreguntanomi.getponderacion().toString().trim()));\r\n\t\telement.appendChild(elementponderacion);\r\n\t}", "title": "" }, { "docid": "306968548aaccc07d609eb48de0e7fae", "score": "0.5283118", "text": "public XMLContent(Module owner,PIcommand cmd)\n throws Exception\n {\n super(owner,cmd);\n // and we attempt to establish the untransformed DOM\n try{\n m_theDoc=domer.makeDomFromUriSomeHow(m_absoluteLoadUri, m_encoding, m_Owner.getReporter());\n }\n catch(Exception ex)\n {\n throw ex;\n }\n\n }", "title": "" }, { "docid": "c977568c0d6bd38c85c8a3b2132a3184", "score": "0.52819824", "text": "public auteImpl(String cuentas)\n throws java.rmi.RemoteException {\n\n super();\n\n this.xml = new XMLElement();\n\tthis.conectados = new LinkedList();\n\tthis.NOconectados = new LinkedList();\n\tthis.cuenta = new Cuenta();\n\n\t try{\n\t \tthis.xml = funcionesXML.XML(cuentas);\n\t } catch(Exception e) {\n System.err.println(\"Error al leer el archivo de cuentas \"+ cuentas +\"!\");\n System.exit(1);\n\t }\n\n\tthis.NOconectados = funcionesXML.AllUsers(this.xml);\n }", "title": "" }, { "docid": "3611d5376e361d1da3efff7aac1cd7c1", "score": "0.527998", "text": "public void cargar_sonido()\n {\n \n }", "title": "" }, { "docid": "ef77e28aec66e4968ff672e82a99de80", "score": "0.52742326", "text": "public void setFilaDatosExportarXmlSecuencialUsuario(SecuencialUsuario secuencialusuario,Document document,Element element) {\r\n\t\t\r\n\r\n\t\tElement elementId = document.createElement(SecuencialUsuarioConstantesFunciones.ID);\r\n\t\telementId.appendChild(document.createTextNode(secuencialusuario.getId().toString().trim()));\r\n\t\telement.appendChild(elementId);\r\n\r\n\t\tif(parametroGeneralUsuario.getcon_exportar_campo_version()){\r\n\r\n\t\tElement elementVersionRow = document.createElement(SecuencialUsuarioConstantesFunciones.VERSIONROW);\r\n\t\telementVersionRow.appendChild(document.createTextNode(secuencialusuario.getVersionRow().toString().trim()));\r\n\t\telement.appendChild(elementVersionRow);\r\n\t\t}\r\n\r\n\r\n\t\tElement elementempresa_descripcion = document.createElement(SecuencialUsuarioConstantesFunciones.IDEMPRESA);\r\n\t\telementempresa_descripcion.appendChild(document.createTextNode(secuencialusuario.getempresa_descripcion()));\r\n\t\telement.appendChild(elementempresa_descripcion);\r\n\r\n\t\tElement elementsucursal_descripcion = document.createElement(SecuencialUsuarioConstantesFunciones.IDSUCURSAL);\r\n\t\telementsucursal_descripcion.appendChild(document.createTextNode(secuencialusuario.getsucursal_descripcion()));\r\n\t\telement.appendChild(elementsucursal_descripcion);\r\n\r\n\t\tElement elementusuario_descripcion = document.createElement(SecuencialUsuarioConstantesFunciones.IDUSUARIO);\r\n\t\telementusuario_descripcion.appendChild(document.createTextNode(secuencialusuario.getusuario_descripcion()));\r\n\t\telement.appendChild(elementusuario_descripcion);\r\n\r\n\t\tElement elementtipodocumentogeneral_descripcion = document.createElement(SecuencialUsuarioConstantesFunciones.IDTIPODOCUMENTOGENERAL);\r\n\t\telementtipodocumentogeneral_descripcion.appendChild(document.createTextNode(secuencialusuario.gettipodocumentogeneral_descripcion()));\r\n\t\telement.appendChild(elementtipodocumentogeneral_descripcion);\r\n\r\n\t\tElement elementserie = document.createElement(SecuencialUsuarioConstantesFunciones.SERIE);\r\n\t\telementserie.appendChild(document.createTextNode(secuencialusuario.getserie().trim()));\r\n\t\telement.appendChild(elementserie);\r\n\r\n\t\tElement elementautorizacion = document.createElement(SecuencialUsuarioConstantesFunciones.AUTORIZACION);\r\n\t\telementautorizacion.appendChild(document.createTextNode(secuencialusuario.getautorizacion().trim()));\r\n\t\telement.appendChild(elementautorizacion);\r\n\r\n\t\tElement elementsecuencial = document.createElement(SecuencialUsuarioConstantesFunciones.SECUENCIAL);\r\n\t\telementsecuencial.appendChild(document.createTextNode(secuencialusuario.getsecuencial().trim()));\r\n\t\telement.appendChild(elementsecuencial);\r\n\r\n\t\tElement elementdigitos = document.createElement(SecuencialUsuarioConstantesFunciones.DIGITOS);\r\n\t\telementdigitos.appendChild(document.createTextNode(secuencialusuario.getdigitos().toString().trim()));\r\n\t\telement.appendChild(elementdigitos);\r\n\r\n\t\tElement elementfecha_inicio = document.createElement(SecuencialUsuarioConstantesFunciones.FECHAINICIO);\r\n\t\telementfecha_inicio.appendChild(document.createTextNode(secuencialusuario.getfecha_inicio().toString().trim()));\r\n\t\telement.appendChild(elementfecha_inicio);\r\n\r\n\t\tElement elementfecha_fin = document.createElement(SecuencialUsuarioConstantesFunciones.FECHAFIN);\r\n\t\telementfecha_fin.appendChild(document.createTextNode(secuencialusuario.getfecha_fin().toString().trim()));\r\n\t\telement.appendChild(elementfecha_fin);\r\n\r\n\t\tElement elementesta_activo = document.createElement(SecuencialUsuarioConstantesFunciones.ESTAACTIVO);\r\n\t\telementesta_activo.appendChild(document.createTextNode(secuencialusuario.getesta_activo().toString().trim()));\r\n\t\telement.appendChild(elementesta_activo);\r\n\t}", "title": "" }, { "docid": "b3316c5e173d2be331f486488257f896", "score": "0.5270281", "text": "private static void printXml(String fileName) throws JAXBException, FileNotFoundException {\r\n\r\n\r\n\t\tFileOutputStream outputStream = new FileOutputStream(fileName);\r\n\r\n\t\tJAXBContext contextObj = JAXBContext.newInstance(Athletes.class);\r\n\r\n\t\tMarshaller marshallerObj = contextObj.createMarshaller();\r\n\t\tmarshallerObj.setProperty(Marshaller.JAXB_FORMATTED_OUTPUT, true);\r\n\t\tmarshallerObj.marshal(competitors, outputStream);\r\n\r\n\t}", "title": "" }, { "docid": "2968c6a20908709753b6d2945912946b", "score": "0.5264513", "text": "public void analizar(String archName) throws XmlParsingException{\n\t\tInputStream is = SxmlParser.class.getResourceAsStream(\"/\" + archName);\n\t\ttry {\n\t\t\tANTLRInputStream in = new ANTLRInputStream(is);\n\n\t\t\tlexer = new WellformedXmlLexer(in);\n\n\t\t\tparse();\n\n\t\t} catch (IllegalArgumentException e) {\n\t\t\tthrow new XmlParsingException(\"Caracter invalido en la entrada\");\n\t\t} catch (IOException e) {\n\t\t\tthrow new XmlParsingException(\"Complicacion de I/O : \"+e.getMessage());\n\t\t} catch (XmlParsingException e){\n\t\t\tStringBuilder sb = new StringBuilder();\n\t\t\tString eol = System.getProperty(\"line.separator\");\n\t\t\t\n\t\t\tsb.append(e.getMessage());\n\t\t\tsb.append(eol);\n\t\t\tsb.append(eol);\n\t\t\t\n\t\t\tthrow new XmlParsingException(sb.toString());\n\n\t\t}\n\n\t}", "title": "" }, { "docid": "a02b2cdfe62c79293cfd979311500fb1", "score": "0.52619284", "text": "public void cargarDesdeArchivo() {\n String path = System.getProperty(\"user.home\") + File.separator + \"solBotilleriaAlcoholicas.txt\";\r\n File archivoAlcoholicas = new File(path);\r\n\r\n if (archivoAlcoholicas.exists()) {\r\n // leer\r\n try {\r\n BufferedReader csvReader = new BufferedReader(new FileReader(archivoAlcoholicas));\r\n String row;\r\n while ((row = csvReader.readLine()) != null) {\r\n String[] data = row.split(\",\");\r\n\r\n // leer desde la línea del archivo\r\n Alcoholica b = new Alcoholica();\r\n b.setCodigo(data[0]);\r\n b.setNombre(data[1]);\r\n b.setFabricante(data[2]);\r\n b.setCantidad(Integer.parseInt(data[3]));\r\n b.setPrecioNeto(Integer.parseInt(data[4]));\r\n b.setCapacidad(Integer.parseInt(data[5]));\r\n b.setGradoAlcoholico(Integer.parseInt(data[6]));\r\n b.setTipo(data[7]);\r\n\r\n // ingresar a la boti\r\n this.ingresarBebidaAlcoholica(b);\r\n\r\n // do something with the data\r\n }\r\n csvReader.close();\r\n } catch (Exception e) {\r\n System.out.println(\" No se pudo trabajar este archivo \");\r\n }\r\n }\r\n\r\n // CARGAR FANTASIAS\r\n String path2 = System.getProperty(\"user.home\") + File.separator + \"solBotilleriaFantasias.txt\";\r\n File archivoFantasias = new File(path2);\r\n\r\n if (archivoFantasias.exists()) {\r\n // leer\r\n try {\r\n BufferedReader csvReader = new BufferedReader(new FileReader(archivoFantasias));\r\n String row;\r\n while ((row = csvReader.readLine()) != null) {\r\n String[] data = row.split(\",\");\r\n\r\n // leer desde la línea del archivo\r\n Fantasia b = new Fantasia();\r\n b.setCodigo(data[0]);\r\n b.setNombre(data[1]);\r\n b.setFabricante(data[2]);\r\n b.setCantidad(Integer.parseInt(data[3]));\r\n b.setPrecioNeto(Integer.parseInt(data[4]));\r\n b.setCapacidad(Integer.parseInt(data[5]));\r\n b.setSabor(data[6]);\r\n\r\n // ingresar a la boti\r\n this.ingresarBebidaFantasia(b);\r\n\r\n // do something with the data\r\n }\r\n csvReader.close();\r\n } catch (Exception e) {\r\n System.out.println(\" No se pudo trabajar este archivo \");\r\n }\r\n }\r\n }", "title": "" }, { "docid": "cd9af10f37cadb273dbb2f3c812342d2", "score": "0.5243605", "text": "public Map<String, Map<String,AnalysisMapper>> analysisXml() throws Exception {\n\t\tMap<String, Map<String,AnalysisMapper>> map = new HashMap<>();\r\n\t\tif(this.loader == null){\r\n this.loader= ClassLoader.getSystemClassLoader();\r\n }\r\n\t\tif(this.listXMLName == null) {\r\n\t\t\tlistXMLName = new ArrayList<>();\r\n\t\t}\r\n\t\t//通过包名文件绝对路径\r\n String mapperPath= ClassLoader.getSystemResource(\"\").getPath()+mapperLocations.replace(\".\", \"/\");\r\n File file = new File(mapperPath);\r\n File[] tempList = file.listFiles();\t\r\n\t\tfor (File files : tempList) {\r\n\t\t\tif(files.isFile()) {\r\n\t\t\t\t//当前所有Mapper文件路径\r\n\t\t\t\tlistXMLName.add(mapperPath+\"/\"+files.getName());\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\t//使用jdom解析\r\n\t\tfor (String value : listXMLName) {\r\n\t\t\tSAXBuilder saxBuilder = new SAXBuilder();\r\n\t\t\t//创建一个输入流,加载xml文件\r\n\t\t\tInputStream in = new FileInputStream(value);\r\n\t\t\tDocument document = saxBuilder.build(in);\r\n\t\t\t//获取根节点\r\n\t\t\tElement rootElement = document.getRootElement();\r\n\t\t\t//获取属性\r\n\t\t\tMap<String, AnalysisMapper> mapperMap = new HashMap<>();\r\n\t\t\tString namespace = rootElement.getAttribute(\"namespace\").getValue();\r\n\t\t\tif(null == namespace) {\r\n\t\t\t\tthrow new NullPointerException(value+\" namespace is null\");\r\n\t\t\t}\r\n\t\t\t//获取子节点\r\n\t\t\tList<Element> elements = rootElement.getChildren();\r\n\t\t\tAnalysisMapper mapper = new AnalysisMapper();\r\n\t\t\t//空指针就不判断了\r\n\t\t\tfor (Element element : elements) {\r\n\t\t\t\t\r\n\t\t\t\tString name = element.getName();\r\n\t\t\t\tString id = element.getAttributeValue(\"id\");\r\n\t\t\t\tString parameterType = element.getAttributeValue(\"parameterType\");\r\n\t\t\t\tString resultType = element.getAttributeValue(\"resultType\");\r\n\t\t\t\tString sql = element.getTextNormalize();\r\n\t\t\t\t\r\n\t\t\t\tmapper.setSqlType(SqlEnum.valueOf(name));\r\n\t\t\t\tmapper.setId(id);\r\n\t\t\t\tmapper.setSql(sql);\r\n\t\t\t\tmapper.setParameterType(parameterType);\r\n\t\t\t\tmapper.setResultType(resultType);\r\n\t\t\t\t\r\n\t\t\t\tmapperMap.put(id, mapper);\r\n\t\t\t}\r\n\t\t\tmap.put(namespace, mapperMap);\r\n\t\t}\r\n\t\tSystem.out.println(map);\r\n\t\treturn map;\r\n\t}", "title": "" }, { "docid": "5a95f76a91bec2c36904a8e7773e2974", "score": "0.52406394", "text": "abstract T xmlFile2Obj(String xmlFile);", "title": "" }, { "docid": "3bc74a59a71b1dfeb7b17ce36d7b0c68", "score": "0.5240046", "text": "@Get(\"xml\")\r\n\tpublic String getXML() throws JSONException, SAXException, IOException, TransformerException {\r\n\t\tString fileName = getRequestAttributes().get(\"id\").toString();\r\n\t\tfileName = \"_\"+fileName.replace(\":\", \"_\");\r\n\t\t\r\n\t\tConverter con = new Converter();\r\n\t\treturn con.convert(XML.toString(SchichtprofilDAO.getSingleSnowProfile(db, getRequestAttributes().get(\"id\").toString())), \"internConverter.xsl\");\r\n\t}", "title": "" }, { "docid": "057a5a7db7288f53f3237cb583268733", "score": "0.52390707", "text": "public void loadWithSAX() {\n consoleView.printMessage(\"\\nПарсинг с помощью SAX:\\n\");\n consoleView.printPlaneList(xmlData.loadWithSAX());\n }", "title": "" }, { "docid": "36c300eadd6d009b8fee5f495bec73f5", "score": "0.5237533", "text": "private XMLUtil() {}", "title": "" }, { "docid": "08be076787c5291584317ac505c29769", "score": "0.52345544", "text": "protected String[] getXmlFiles() {\n \t\treturn NO_MAPPINGS;\n \t}", "title": "" }, { "docid": "cd725f096bd2d64ed5f1a15c176b0343", "score": "0.52324677", "text": "public String parse(File inFile, File outFile, String dtd) {\n\t\tSAXParserFactory factory = SAXParserFactory.newInstance();\r\n\t\ttry {\r\n\t\t\t// Input vorbereiten und sicherstellen das der String UTF8 kodiert\r\n\t\t\t// ist\r\n\t\t\tFileInputStream fileInputStream = new FileInputStream(inFile);\r\n\t\t\tByteArrayOutputStream bos = new ByteArrayOutputStream();\r\n\t\t\tbyte[] buf = new byte[1024];\r\n\t\t\tint len;\r\n\t\t\twhile ((len = fileInputStream.read(buf)) > 0) {\r\n\t\t\t\tbos.write(buf, 0, len);\r\n\t\t\t}\r\n\t\t\tfileInputStream.close();\r\n\t\t\tbos.close();\r\n\t\t\tbyte[] data = bos.toByteArray();\r\n\t\t\tString xml = new String(data, \"UTF8\");\r\n\t\t\t\r\n\t\t\tfor(int i = 0; i <= 0x1f; i++) {\r\n\t\t\t\tint index = xml.indexOf(i, 0);\r\n\t\t\t\twhile (index > -1) {\r\n\t\t\t\t\txml = xml.substring(0,index)+\" \"+xml.substring(index+1); //substring(a, b) liefert String von Position a bis b-1\r\n\t\t\t\t\tindex = xml.indexOf(i, index+1);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tInputSource input = new InputSource(new StringReader(xml));\r\n\t\t\tinput.setSystemId(dtd);\r\n//\t\t\tinput.setCharacterStream(new InputStreamReader(new FileInputStream(inFile), \"UTF-8\"));\r\n\r\n\t\t\t// Parse the input\r\n\t\t\tSAXParser saxParser = factory.newSAXParser();\r\n\t\t\tsaxParser.parse(input, this);\r\n\r\n\t\t\t// System.out.println(\"######################################\") ;\r\n\t\t\t// System.out.println(reader.currXMLDoc.toString()) ;\r\n\t\t\tXMLResultDocument xmlRes = new XMLResultDocument(currXMLDoc);\r\n\t\t\t// xmlRes.ProcessDocument() ;\r\n\t\t\tString fileName = inFile.getName();\r\n\t\t\tif (fileName.lastIndexOf('.') != -1) {\r\n\t\t\t\tint dotPosition = fileName.lastIndexOf('.');\r\n\t\t\t\tfileName = fileName.substring(0, dotPosition);\r\n\t\t\t}\r\n\t\t\tfileName = fileName.replace(\"&\", \"&amp;\");\r\n\t\t\ttitle = xmlRes.GenerateFile(fileName, outFile).trim();\r\n\t\t\t// System.out.println(XMLpath) ;\r\n\t\t\t// System.out.println(xmlRes.getTitleFont()) ;\r\n\t\t\t// System.out.println(\"----Headings-----\") ;\r\n\t\t\tfor (int j = 0; j < xmlRes.getHeadingsFonts().size(); j++) {\r\n\t\t\t\t// System.out.println(\"Headings-----\"+j) ;\r\n\t\t\t\t// System.out.println(xmlRes.getHeadingsFonts().get(j)) ;\r\n\t\t\t}\r\n\t\t\t// System.out.println(\"----Stadard Text-----\") ;\r\n\t\t\tfor (int j = 0; j < xmlRes.getStandardTextFonts().size(); j++) {\r\n\t\t\t\t// System.out.println(\"Stadard Text-----\"+j) ;\r\n\t\t\t\t// System.out.println(xmlRes.getStandardTextFonts().get(j).getId())\r\n\t\t\t\t// ;\r\n\t\t\t}\r\n\t\t} catch (Throwable t) {\r\n\t\t\tt.printStackTrace();\r\n\t\t}\r\n\t\treturn title;\r\n\t}", "title": "" } ]